Home > Mobile >  QT how to implement a package a package of read serial data
QT how to implement a package a package of read serial data

Time:09-26

Consult:
QT how to implement a package a package to read serial data

CodePudding user response:

Consult each great god, I need to decide its byte and its ID therefore need a package a package of receiving data, how can do excuse me

CodePudding user response:

Receives a sent a package to save to a QList inside, and then in the thread with one cycle to remove QList: : takeFirst ()

CodePudding user response:

refer to the second floor 灬 huo huo response:
receives a sent a package to save to a QList inside, and then in the thread using a circular out a QList: : takeFirst judging ()


Greatly on the second floor, then how can I get a package a package of receiving, I am a novice, please grant instruction

CodePudding user response:

If you are using Qt own QSerialPort class with void readyRead () signal receiving, you can baidu QSerialPort usage

CodePudding user response:

Need a serial port to send and receive the agreement the two sides to Ann package charge? Otherwise, how communication

CodePudding user response:

You may want to first learn to develop communication protocol, which is you and the sender directly, such as byte length, type, content, the terminator
  •  Tags:  
  • Qt
  • Related