owagner / modbus2mqtt

Modbus master which publishes via MQTT
MIT License
122 stars 81 forks source link

modbus over tcp #3

Open oedemis opened 8 years ago

oedemis commented 8 years ago

Can i also poll the slaves via Modbus TCP ?

In the code there is no option

owagner commented 8 years ago

Not currently implemented.

However, the modbus-tk library which is used for all Modbus communication does support Modbus TCP master, so it should be easy to add.

Note that pyserial can connect via TCP, but that's not the same as Modbus TCP; it's for accessing remote serial ports (e.g. via remserial)

owagner commented 8 years ago

I've added experimental support for Modbus TCP in v0.5. Untested, as I have no Modbus TCP devices.

owagner commented 8 years ago

Did you have a chance to test this?

gomez100 commented 8 years ago

No at this moment! Anyway I suggest you to download ad use https://sourceforge.net/projects/modbuspal/ It's a great simulator, with AUTOLEARN function, support multiple Slave ID and random function to assing random data to any register! Let me know it you find it useful for your test! Andrea

2016-05-01 13:04 GMT+02:00 Oliver Wagner notifications@github.com:

Did you have a chance to test this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/owagner/modbus2mqtt/issues/3#issuecomment-216034932