Hello!
I am sending data from a mobile network to rs485. I would like to cut off the first 4 bytes of the incoming data and send it out on port 485. How can I do this? Can I write a script for this?
Hello!
I am sending data from a mobile network to rs485. I would like to cut off the first 4 bytes of the incoming data and send it out on port 485. How can I do this? Can I write a script for this?
Hello,
You are able to write a script for this, and my suggestion would be to use Python instead of bash for this. There’s a “pyserial” package that you can utilize as well.
I imagine the logic behind the entire code would be to await some data from X:X and then just strip the data off of the received data block. One of my colleagues suggested the use of dd skip=4 for this script.
Regards,
M.