This page last changed on Jan 03, 2014 by adrian1983.

hello everybody and happy new year

I'm back on the modbus TCP, does it work now? like somebody said before i saw on wireshark that the problem is the handshake before sending the datas.
Would you think that add TCP sockets fonctions that we could use easily would be possible ???

thank you in advance.

OK good news it works with ananas (Modbus client/serve apps) and wireshark recognized it perfectly !! Ithink i was too tired yesterday at 1H40 am to have a good reading of wireshark!!

you have to use the syntax that way exemple (write simple register):

0x00 00 00 00 00 06 01 06 00 01 12 34

it works !!!!! that's sick !!!

Posted by adrian1983 at Jan 03, 2014 13:05

Can you elaborate on how you got Modbus working? I am working on my system for my new house, any information would be awesome


Posted by drewscm at Jan 04, 2014 06:20

yeah no probs!! but i think i was a lil too fast cause, ok i can send modbus TCP frames, like i said wireshark recognize them and i tried it with a modbus tcp server simulator (no PLC at home right now) and it works really good.
BUT (cause there is always a but) the problem is it's ok to send frames but how could we treat the answers of the server??? I'm afraid we will be obliged to use shell script cause OR can't check up the answer frame and look where is the value we're intrested in inside the all frame in a case of a read modbus fonction.

was i clear??? it sounds a lil confused right ???

feel free to comunication with me on the subject.

Posted by adrian1983 at Jan 04, 2014 12:54

Can you post some examples of commands you have used?

Posted by drewscm at Jan 09, 2014 04:36

try the one i posted on the first post and look on wireshark what's going on it's a write single register example.

Posted by adrian1983 at Jan 19, 2014 11:19

does it work for you???

Posted by adrian1983 at Feb 18, 2014 09:38

I messed with it a bit, but never got it to work correctly. I have been real short on experiment time due to planning stages of custom home and of course work picked up like crazy last few weeks.

I really wish someone would work on a modbus solution for openremote, I have found all sorts of devices I can implement into my system. I wish I could help but coding is not a strong point of mine, patients issue. I found lots of different libraries online I don't think it would be tough to implement.

Can you send a few sample commands you setup in openremote? Like how to turn coil on or off. I'd really appreciate it

If someone does look into implementing modbus into openremote, let me know I'd be more than willing to help in anyway possible because I could build a killer system in my new home.

Posted by drewscm at Feb 21, 2014 02:44

you have serial modbus and TCP modbus (RTU 8bits or ASCII).

When i tried it i send a TCP command with the example i wrote before (0x00 00 00 00 00 06 01 06 00 01 12 34)

It's a function 6 "write simple register"and the value is on the last two byte (12 34).

I didn't try with sensor though.

I Don't really have time those days work on some arduino, and rapsberri personnaly plus professionnal work

I'm tireeeeddd loool.

Posted by adrian1983 at Apr 12, 2014 02:19
Document generated by Confluence on Jun 05, 2016 09:34