nielsbasjes opened a new issue, #743:
URL: https://github.com/apache/plc4x/issues/743

   ### What would you like to happen?
   
   As requested by @chrisdutz a wireshark dump when requesting a set of 
correctly and incorrectly alligned sets of modbus registers.
   
   Notes about this trace:
   - The device at hand is a solar inverter that conforms to the SunSpec 
standard.
   - The requested field is this one (which apparently must be read 
completely): https://github.com/sunspec/models/blob/master/json/model_1.json#L36
   ```json
               {
                   "desc": "Manufacturer specific value (32 chars)",
                   "label": "Model",
                   "mandatory": "M",
                   "name": "Md",
                   "size": 16,
                   "static": "S",
                   "type": "string"
               }
   ```
   - I have the device in an isolated network so I do an SSH with port 
forwarding to a jumphost. The effect is that all traffic is to and from 
localhost (127.0.0.1) and the port TOWARDS the system is port 1502 (instead of 
the normal 502).
   - The connection definition is 
`modbus-tcp:tcp://127.0.0.1:1502?unit-identifier=126` 
   
   In sequence in a single request I retrieve it:
   - Correctly.
   - Correct start address yet I get 15 instead of 16 registers.
   - Start reading at the second register till the end. 
   
   
   The console output related to this trace:
   ```
   17:15:44,366 [INFO ] TcpChannelFactory                       :   60: 
Configuring Bootstrap with ModbusTcpConfiguration{requestTimeout=5000, 
unitIdentifier=126}
   17:15:44,632 [INFO ] PartialRegisters                        :   65: Good 
ModbusTag[4x40021:UINT[16]]:  0x5342 0x332E 0x362D 0x3141 0x562D 0x3431 0x0000 
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
   17:15:44,632 [ERROR] PartialRegisters                        :   68: FAIL 
ModbusTag[4x40021:UINT[15]]: INVALID_ADDRESS
   17:15:44,633 [INFO ] PartialRegisters                        :   65: Good 
ModbusTag[4x40022:UINT[15]]:  0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
   ```
    
   
   ### Programming Languages
   
   - [X] plc4j
   - [ ] plc4go
   - [ ] plc4c
   - [ ] plc4net
   
   ### Protocols
   
   - [ ] AB-Ethernet
   - [ ] ADS /AMS
   - [ ] BACnet/IP
   - [ ] CANopen
   - [ ] DeltaV
   - [ ] DF1
   - [ ] EtherNet/IP
   - [ ] Firmata
   - [ ] KNXnet/IP
   - [X] Modbus
   - [ ] OPC-UA
   - [ ] S7


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to