nmea_parse
Parse NMEA 0183 GPS/BeiDou serial sentences into readable UTC, latitude/longitude, fix quality, satellites, HDOP, speed, and date. Validate XOR checksums and flag corrupt or non-NMEA lines.
Instructions
解析 NMEA 0183 语句(GPS/北斗模块最常见的串口输出),给人话解读。
支持 GGA/RMC/GSA/GSV/VTG/GLL,逐句输出 UTC 时间、经纬度(度分 + 十进制度)、 定位质量、卫星数、HDOP、速度、日期。把模块吐出来的整段原始数据直接贴进来: nmea_parse("$GNGGA,012345.00,3112.3456,N,12122.3456,E,1,08,0.9,12.3,M,,M,,*47") ★ 每句都验 XOR 校验和,不过的会明说「这句数据不可信」,不会把错帧当对的解。 ★ 非 NMEA 的行会单独指出并跳过,不当成数据。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |