Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Checksum Error with TCP Open Connection

Hi Everyone,
 
    I'm working on a MODBUS routine for communication with one of our control modules. I'm using NI's Modbus library to initiate a connection, check the registers, etc then report the results back to a teststand seq for fruther analysis.
 
    Problem? I made a few minor adjustments to the library (just the main routine) because i only need to read the registers for now. However, when I conenct with the TCP Open Connection, nothing happens. Well, not completely true.. I sinffed the connection with Ethereal and I get the following errors...
 
**************************************************************
1)
SENDING:
TCP: Src Port 2061, Dst Port: 502, Seq: 13, Ack: 10 , Len:12
Checksum: 02x282d [incorrect, should be 0xfd6b]
 
2)
RECEIVING:
Modbus/TCP:
-Modbus: Function 4: Read input registers. Exception: Illegal data address
exception code: Illegal data address (2).
***************************************************************************
I understand the second one and believe it's related to the first but ....?
Does anyone have any ideas or suggestions? I'd go into the TCP OPEN.vi if I could, but it wont let me, so...?
 
Thanks Again,
 
BK
 
0 Kudos
Message 1 of 2
(4,112 Views)
Hi BK,

I just came accross your post, could you tell me how you solved the TCP checksum error. I have been having the same problem.

Thanks

0 Kudos
Message 2 of 2
(3,874 Views)