11
« on: August 17, 2015, 08:19:20 AM »
Hi Guys,
Still Bashing head on desk with this one.
Is it possible that the ModbusRTU driver is not recognising /dev/ttyUSB0 for the Port Name? Does it need a COM address. May be due to declining options but I feel as though Godra's suggestion of 'Linking' a COM port with /dev/ttyUSB0 would be successful, unfortunately I cant get that to work in Mono on my Pi. I am unfamiliar with wine, but from what i have googled/hunted for in my pi there is no equivalent to DOSDevices in MONO. I tried a symlink but could not get that to associate with Mono (damn my limited linux knowledge).
PLC is receiving bits through minicom (RX flashing when I push keys) and everything seems to check out with /dev/ttyUSB0 in set serial etc.
FYI i am using a USB to Serial converter into com port 1 of my PLC which runs perfectly with AHMI on Windows (port name COM1)
Tried installing UBUNTU MATE today to see if there was any change but coming up with the same 'FAILED TO OPEN /DEV/TTYUSB0"
At the moment I am trying to install QT Creator to see if I can get Qmodbus-master communicating. Does not do what I require but may help me whittle down where my issue lies. Just thought I would put this out there in the meantime.
@Vitor. Thankyou for reposting link. Unfortunately mu PLC doesnt support TCP without a gateway (as far as I can gather)