Home > Mobile >  Android receive serial data on and off
Android receive serial data on and off

Time:02-16

I microcontroller directly send a string: the abcd, result the android received here is intermittent, and how to solve this? Does each joining together? Don't know much about android, MCU program into the dma is directly display the complete continuous data,


CodePudding user response:

Is this kind of situation, can only be reconstructed, you use this thread from rxBuf tail is assembled to StringBuffer object in the tail, and then another thread from the StringBuffer object head processing, processed to remove, or this object will be more and more big, will lead to abnormal program,
  • Related