C
Hello All,
I am working on an embedded device that will communicate to stuff via RS232 / RS485 port. As of today, I am able to get the data from a PC to the embedded device. I am now in the process of trying to decipher the data to find out if data is correct and the correct response to transmit. I know to do the following:
1.) check the data length : data > than 3 bytes
2.) check parity, overrun
3.) check crc
4.) check data address, function
5.) check modbus address
6.) update counters
I have two questions...
1.) Is there a specific order to check the modbus data to see if it is correct?
2.) Is there anything that I forgot?
I am working on an embedded device that will communicate to stuff via RS232 / RS485 port. As of today, I am able to get the data from a PC to the embedded device. I am now in the process of trying to decipher the data to find out if data is correct and the correct response to transmit. I know to do the following:
1.) check the data length : data > than 3 bytes
2.) check parity, overrun
3.) check crc
4.) check data address, function
5.) check modbus address
6.) update counters
I have two questions...
1.) Is there a specific order to check the modbus data to see if it is correct?
2.) Is there anything that I forgot?