Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Modbus TCP Problems with string reading
Modbus TCP Problems with string reading [message #1791150] Mon, 25 June 2018 08:14
Vito Scornavacche is currently offline Vito ScornavaccheFriend
Messages: 7
Registered: February 2018
Junior Member
Hi all,
I'm having troubles with the reading of strings with the Modbus driver. Modbus works with memory cells of 16 bits, so there are 2 chars each cell.
The problem is that chars in the string readed are swapped: if the original string is ABCD, I read BADC. I have read that the protocol works in this way and the slave have to swap the chars while reading. Obviously i noticed the data.order field, but it doesn't works; i tried all the orders (LSB, LSW, MSB, MSW) but nothing changes.
How can i solve this? Have i to swap manually chars on my own?
Previous Topic:influxdb in Eclipse Kura
Next Topic:Kura 3.2.0 CA-signed x.509 Azure IoT Hub
Goto Forum:
  


Current Time: Wed Nov 14 07:01:05 GMT 2018

Powered by FUDForum. Page generated in 0.01972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top