Hi
I will tell you the format of the NMEA statement, but the maximum length needs to be confirmed according to the number of satellites, because the gsv statement will output the position information of all satellites.
RMC:
$GPRMC,015606.000,A,3150.7584,N,11712.0491,E,0.00,231.36,280715,A*67
len>78byte
GGA:
$GPGGA,015606.000,3150.7584,N,11712.0491,E,1,5,2.28,265.0,M,0.0,M,*65
len>78byte
VTG:
$GPVTG,227.15,T,M,0.00,N,0.00,K,A*3E
len>45byte
GSV:
$GPGSV,3,1,11,193,69,099,30,17,62,354,36,06,47,272,03,40,054,304E
$GPGSV,3,2,11,02,13,255,01,12,055,19,23,11,102,25,11,05,074,2475
$GPGSV,3,3,11,24,03,303,47,32,214D
$GLGSV,3,1,11,69,48,142,39,68,43,058,51,83,40,049,51,84,40,334,4364
$GLGSV,3,2,11,74,30,271,15,73,17,218,19,75,13,324,30,70,07,184,6E
$GLGSV,3,3,11,85,06,296,34,82,02,092,21,67,02,023,56
$GAGSV,1,1,03,07,61,012,41,02,29,20,3451
$BDGSV,2,1,06,08,63,015,30,11,59,350,32,12,39,081,26,14,29,184,2168
$BDGSV,2,2,06,13,07,295,01,26*50
len:It is impossible to specify the statistical length of this statement, because all satellite data needs to be output, and you can see that the module outputs 11 satellites for gps Confidence, 11 satellites for Galileo, six for beidou, and three for glonss. These satellite data are not the same for each location, and will not output fixed length statements, it is recommended to set according to the maximum length.
GSA:
$GPGSA,A,3,03,17,11,23,193,3.72,2.85,2.39*3C
len>59
GLL:
$GPGLL,3150.7584,N,11712.0491,E,015606.000,A,A*5C
len>57