Home > other >  Dear Daniel, I use a serial port to send and receive data, receive data of the first byte repetitive
Dear Daniel, I use a serial port to send and receive data, receive data of the first byte repetitive

Time:05-08

Send a frame data, first repeat or more than the bottom one byte, such as sending "1234", is received by the "11234", so I use a serial port assistant, to send the code is written by myself

CodePudding user response:

The code posted to see

CodePudding user response:

Estimation problem in your code, to see your source code,

CodePudding user response:

Clear before we send buffer, the best post your code,

CodePudding user response:

Estimation is not empty buffer, the source code!!!!!!!!!!

CodePudding user response:

Send the while loop problems

CodePudding user response:

Stick source, we can give you a note!

CodePudding user response:

No bad source analysis

CodePudding user response:

Sure is a problem of the code

CodePudding user response:

After send register to write data to a serial port, to test for a delivery status, waiting to send completed to continue to the next byte,

CodePudding user response:

refer to the original poster liupeilie1116 response:
send a frame data, the first repeat or more than the bottom one byte, such as sending "1234", is received by the "11234", so I use a serial port assistant, to send the code was written by my own
the landlord to solve, I also met the same problem, but not every time
  • Related