[Bug]: rangetest.csv generation terminating lines wrong, shifting columns
Author: chuqsterCreated Oct 1, 2026Updated Oct 1, 2026
Labelsbugfirst-contributiontriage
Category
Other
Hardware
T-Deck
Is this bug report about any UI (https://meshtastic.org/docs/configuration/device-uis/) component firmware?
- Meshtastic UI aka MUI
- InkHUD
- BaseUI
Firmware Version
2.7.26(54e0d8d)
Description
The output of the range test module appears to terminate the rows incorrectly in rangetest.csv
- configured range testing on a pair of boards: [send=heltec v4 using fixed gps, rec=t-deck w/working gps mod]
- copy rangetest.csv from rec over http://MY_IP/rangetest.csv using curl
- All attempts to import file to Google My Maps/Open Streetmaps fail on "rx lat" and "rx long" columns
Upon examining the output in the csv file it appears that line termination is inserted after the "payload" field, but the header row IDs "rx rssi" as the last field per row. This results in the first row missing the "rx rssi" field, and all subsequent rows are inserted with "rx rssi" as the first field in the row. The data is shifted right 1 field and imports fail.
Manually fixing rows (this could be done post in a sed loop I suppose) renders a file import functions will correctly parse.
Relevant log output
Enabled ":set list" in vim for visibility of line termination, EG "$"
Bad output:
time,from,sender name,sender lat,sender long,rx lat,rx long,rx elevation,rx snr,distance,hop limit,payload,rx rssi^M$
22:38:32,463650452,Stilgar,33.754398,-116.746865,33.754535,-116.747156,1905,6.500000,0,0,"seq 2"$
-29,22:39:00,463650452,Stilgar,33.754398,-116.746865,33.754535,-116.747156,1905,7.000000,0,0,"seq 3"$
-30,22:39:31,463650452,Stilgar,33.754398,-116.746865,33.754535,-116.747156,1905,5.750000,0,0,"seq 4"$
-31,22:40:29,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,6.500000,65.437790,0,"seq 6"$
-29,22:41:00,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,6.500000,65.437790,0,"seq 7"$
-30,22:41:30,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,6.250000,65.437790,0,"seq 8"$
-30,22:41:59,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,7.250000,65.437790,0,"seq 9"$
-29,22:42:32,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,5.500000,65.437790,0,"seq 10"$
Corrected output:
time,from,sender name,sender lat,sender long,rx lat,rx long,rx elevation,rx snr,distance,hop limit,payload,rx rssi^M$
22:38:32,463650452,Stilgar,33.754398,-116.746865,33.754535,-116.747156,1905,6.500000,0,0,"seq 2",-29$
22:39:00,463650452,Stilgar,33.754398,-116.746865,33.754535,-116.747156,1905,7.000000,0,0,"seq 3",-30$
22:39:31,463650452,Stilgar,33.754398,-116.746865,33.754535,-116.747156,1905,5.750000,0,0,"seq 4",-31$
22:40:29,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,6.500000,65.437790,0,"seq 6",-29$
22:41:00,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,6.500000,65.437790,0,"seq 7",-30$
22:41:30,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,6.250000,65.437790,0,"seq 8",-30$
22:41:59,463650452,Stilgar,33.754398,-116.746865,33.754078,-116.747460,1969,7.250000,65.437790,0,"seq 9",-29$Source: meshtastic/firmware