CodePudding user response:
Even package, try to disconnect the two packages, one package data of head and tail, such a received packet is complete, also have a check,CodePudding user response:
NMODBUS using API, send and receive one and indivisible, API thread to read data on yourself, a serial port. Method DataReceived event sometimes really grab bag, cause NMODBUS read less than complete data, and to send data, my idea is how to make a serial port only reads need heartbeat packets, thank you,