Back to Articles



§ 012. How to convert UBLOX UBX to ASCII text

KernelSAT
2024-May-07


# Intro


Sometimes when one works w/ UBLOX UBX messages there may be need to look into. Check what is packed inside of concrete message and concrete field. UBX is binary format (unlike NMEA) and we can't simply view the UBX log. Some convertor to text form is needed. KernelSat offers BIN2TXT service which may do this job.




# BIN2TXT Service



Just upload UBLOX UBX binary log file into BIN2TXT service. If there are UBX messages inside, the service will print TXT presentation of known / supported messages. If some message is not yet known to BIN2TXT, it at least provides information about message CLASS and ID as well as CRC status (is message corrupted or not).


If the message is already supported by BIN2TXT, it will print all message's fields in compact text form. Below is an example of [UBX-NAV-PVT] output.





Extra examples of printed [UBX-NAV-SAT] and [UBX-NAV-STATUS] messages presented below:

[UBX] [NAV-SAT] 01-53 [0x01-0x35] CRC: OK
iTOW      : 346174000
version   : 1
numSvs    : 14
gnss svId cno elev azim  prR   qual svU hlth difC smth orbS ephA almA anoA aopA sbas rtcm slas sprn pr cr do clas
   0    1  46  -91    0    0.0    7   0    2    0    0    0    1    0    0    0    0    0    0    0  0  0  0    0
   0    2  46   58   73    0.1    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0    3  47   82  318    0.2    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0    4  42   30  164   -0.2    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0    8  41   23  154    0.0    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0   14  41   24  255    0.4    7   1    1    0    0    1    1    1    0    0    0    0    0    0  0  0  0    0
   0   17  44   44  310   -0.1    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0   19  39   17  317    0.4    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0   21  44   45   87   -0.1    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0   22  41   26  279    0.3    7   1    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0   28  35    0   72  -13.0    7   0    1    0    0    1    1    0    0    0    0    0    0    0  0  0  0    0
   0   32  36  -91    0    0.0    7   0    0    0    0    0    0    0    0    0    0    0    0    0  0  0  0    0
   1  123   0   29  126    0.0    1   0    0    0    0    7    0    0    0    0    0    0    0    0  0  0  0    0
   1  136   0   43  158    0.0    1   0    0    0    0    7    0    0    0    0    0    0    0    0  0  0  0    0

[UBX] [NAV-STATUS] 01-03 [0x01-0x03] CRC: OK
iTOW      : 346174000 [ms]
gpsFix    : 4
flags     : 0xDD
 gpsFixOk : 1
 diffSoln : 0
 wknSet   : 0
 towSet   : 0
fixStat   : 0x02
 diffCorr : 0
 carSlVld : 1
 rsrvd    : 0
 mapMatch : 0
flags2    : 0x08
 psmState : 0
 rsrvd1   : 0
 spfDetSt : 1
 rsrvd2   : 0
 carrSoln : 0
ttff      : 33700 [ms]
msss      : 55704 [ms]

If output text data is not too huge, it will be displayed on the web page directly. Othwerwise, text file is to be downloaded by link.



KernelSAT
2024-May-07




© 2023-2024 KernelSAT