RS485 UART Rx Receive Event Handler not fired for all Tx Commands sent
You're probably not waiting until all the transmit bytes have been sent before changing the rs485 bus direction. Under Linux using a usb-&gt;rs485 converter takes care of this in hardware. When using the on chip serial ports, you'll probably need to read up on the serial driver and use the RTS to control the bus direction. Failing that, add a delay of a few character times to allow the serial buffer to empty before changing the bus direction.