Incorrect checksum tcp-client write

Hi.

I have a piece of equipment that sends data and require me to respond with a single 'A' to ack the data and be able to recieve more data.

I can send the 'A' triggerd by the incoming datastream but the other end doesn't recognize it.
After som tracing of the networktraffic i can see that tcpdump says that the 'A' data have the wrong checksum.

Can anyone figure this one out?

[{"id":"55b58d16.0e4ac4","type":"exec","z":"6f1e218b.9b457","command":"bzip2  -dc --stdout  /tmp/celox2.bz2","addpay":false,"append":"","useSpawn":"false","timer":"5","oldrc":false,"name":"Unpack file","x":690,"y":100,"wires":[["1f82a722.423339"],[],[]]},{"id":"b2f8ac6f.48693","type":"file","z":"6f1e218b.9b457","name":"Write celox2.bz2","filename":"/tmp/celox2.bz2","appendNewline":false,"createDir":false,"overwriteFile":"true","encoding":"none","x":520,"y":100,"wires":[["55b58d16.0e4ac4","da1f75c6.0291b8"]]},{"id":"7e40bc2.4ace544","type":"function","z":"6f1e218b.9b457","name":"Trim 4 first","func":"msg.payload = msg.payload.slice(4, msg.payload.length);\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":100,"wires":[["b2f8ac6f.48693"]]},{"id":"85ed8b3e.2affd8","type":"influxdb out","z":"6f1e218b.9b457","influxdb":"4293cd65.1cf4c4","name":"Write to influx","measurement":"Celox1","precision":"","retentionPolicy":"","x":1260,"y":40,"wires":[]},{"id":"1f82a722.423339","type":"json","z":"6f1e218b.9b457","name":"Convert to json","property":"payload","action":"","pretty":false,"x":900,"y":100,"wires":[["b1fe4a88.b50718"]]},{"id":"b1fe4a88.b50718","type":"flatten","z":"6f1e218b.9b457","name":"Flatten json","x":1250,"y":100,"wires":[["85ed8b3e.2affd8","2ae0c2e7.f8653e"]]},{"id":"2ae0c2e7.f8653e","type":"debug","z":"6f1e218b.9b457","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1250,"y":160,"wires":[]},{"id":"6eae927b.61ee7c","type":"debug","z":"6f1e218b.9b457","name":"före","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":310,"y":140,"wires":[]},{"id":"69f93e78.18005","type":"debug","z":"6f1e218b.9b457","name":"efter","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":870,"y":160,"wires":[]},{"id":"20a83c33.cb7104","type":"inject","z":"6f1e218b.9b457","name":"","topic":"","payload":"listen","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":150,"y":160,"wires":[["342edffc.f7b14"]]},{"id":"342edffc.f7b14","type":"tcp-client","z":"6f1e218b.9b457","action":"payload","actionType":"msg","host":"","hostType":"str","port":"7777","portType":"str","datamode":"single","datatype":"buffer","newline":"","xmlAttrkey":"$","xmlCharkey":"_","xmlStrip":false,"xmlArray":false,"xmlNormalizeTags":false,"xmlNormalize":false,"write":"A","writeType":"str","topic":"","name":"","debug":"all","x":170,"y":100,"wires":[["6eae927b.61ee7c","7e40bc2.4ace544"]]},{"id":"da1f75c6.0291b8","type":"function","z":"6f1e218b.9b457","name":"Write 'A' to stream","func":"msg.payload = \"Write\";\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":40,"wires":[["69f93e78.18005","342edffc.f7b14"]]},{"id":"4293cd65.1cf4c4","type":"influxdb","z":"","hostname":"192.168.35.52","port":"8086","protocol":"http","database":"celox","name":"celox","usetls":false,"tls":""}]

corona

:wink:

5 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.