请教各位前辈如何将串口接收到的数据中有用的部分分离出来? 我用的是51单片机,晶振:11.0592MHz,波特率:9600 串口接收到的数据如下: 0000000000002059205601OL1NN00717700000002102OL1NN00717600000002003OL1NN00717700000002004AL1NN00717
7505-0102005AL1NN00717250600002006AL1NN007179505-01020C0087
$GPGGA,065731.00,1053.990170,N,10530.862591,E,5,08,1.0,-
0000.871,M,00000.000,M,0.00,*5DD0000D0000D00000 我想要把数据中 $GPGGA,065731.00,1053.990170,N,10530.862591,E,5,08,1.0,-
0000.871,M,00000.000,M,0.00,*5D 这一部分分离出来,再由串口发出去。请教各位怎样写C程序。我的邮箱:
630034911@126.com |