I have a sensor supplying data on serial port of BL4s220 SBC. The baud rate is 19200 8N1. I have set the port input buffer size as 255. When I start the device I get 5 to 6 frames of good data. After this the garbage data starts coming in. I have not been able to locate source of this problem. Please Help.
Example Data
GOOD DATA
Alt:706 IAS:209 Pitch:0.450000 Alt:706 IAS:210
Pitch:0.444444 Alt:706 IAS:211 Pitch:0.433333 Alt:706 IAS:211
BAD DATA STARTS HERE
Alt:-5004
IAS:127
Pitch: 182.038894