the omega2+ can't detect the i2c slave i'm working with, whenever i try the write or the read command it returns : Error : read(or write) failed
the slave is MCP23018, when i type : i2cdetect -y 0 it deosn't return back the adress of the device eventhough it worked once or twice and it gave me the right address.
can anyone help me ? what should i do ?
Posts made by Ghofran Daoues
-
the omega2+ can't detect the i2c slave i'm working with
-
RE: Errno 28: No space left on device
@crispyoz Hello, please how to do this, i'm facing the same problem
-
omega2+ and Modbus
Hello everyone,
i am looking for people who worked with pymodbus on omega2+, i need some help
-
RE: can't ping through ethernet
At this moment, i think my problem is hardware-related, actually i broke my expansion dock and i did some tricks to use it again, i thaught it worked but since then he's not seeing the ethernet dock, and when i power the expansion dock the led is green (usually it's red)
-
RE: can't ping through ethernet
even after setting an ip to the ethernet and disabling the firewall, it doesn't ping .
the output of ifconfig and ping 192.168.0.3 :
-
RE: can't ping through ethernet
omega2+ is directly connected using ethernet cable and the device doesn't run a dhcp, how to set a static ip on the omega ?
-
RE: can't ping through ethernet
yes that's true it doesn't ping anymore
here are my outputs :
service firewall stop
ping 192.168.0.3
nc 192.168.0.3 502
route
ifconfig
-
RE: can't ping through ethernet
the other time i tried to run the nmap command but coudn't it find it (nmap) and i couldn't install
command not found/ unknown package -
RE: can't ping through ethernet
i was trying to ping from the omega to my pc, and to an another device (a servo-drive), actually now it pings, but still it can't connect to the servo drive through ethernet.
ps : i'm using the pymodbus library in order to connect to this device it worked with my pc but not with the omega here's the code
from pymodbus.client.sync import ModbusTcpClient
import timeclient = ModbusTcpClient('192.168.0.3',502)
conected = client.connect()
print(conected)
time.sleep(1)
#OVERRIDE
client.write_register(4,16384)
client.write_register(9,16384)
client.write_register(10,16384)
#enable power stage
client.write_register(0,1030)
#time.sleep(0.01)
client.write_register(0,1031)
#time.sleep(0.01)
client.write_register(0,1039)
#time.sleep(0.01)
print("Power stage enabled")
#disable power stage
time.sleep(2)
client.write_register(0,0)
time.sleep(1)
client.close() -
RE: can't ping through ethernet
@crispyoz thank you !! it worked after running :'service firewall stop'
-
can't ping through ethernet
Hello everyone,
i'm not able to ping the device connected to my omega2+ through ethernet, my device's IP is (192.168.0.3) and i changed the omega's IP to (192.168.0.7). can anyone help me ? -
RE: i am getting pymodbus 502 connection refused.
@crispyoz thank you sir i found the library and now i'm getting the same error as @Nagarjuna-Reddy : "i am getting pymodbus 502 connection refused"
-
RE: i am getting pymodbus 502 connection refused.
Hello, i am looking for a pymodbus that matches the distribution of my omega2+, can you please give me the reference of the library that you are using, it is exactly what i am looking for