I through two usb to TTL meet in my laptop, using serial debugging assistants and write your own MFC software to send and receive communication, the debug found on both sides of the transceiver are correctly,
But I use two usb transfer 485 modules, debugging in accordance with the above way, again found MFC software debug, receive the serial debugging assistants from the data is not right, such as sending the ff 00 01, 02, 03 04 05 accept to is divided into two times to 00 00 ff (e.g., for the first time received 01), (the second time sometimes can only receive 1 byte, such as 02),
It is unclear why this is so, what is the problem of usb transfer module 485, writing software may cause problems or me, if is a software written questions, feeling the usb to TTL communication will not be normal, please miss the eldest brother sisters!
CodePudding user response:
Both devices with serial assistants try, a serial port belongs to flow equipment, not necessarily a can read