Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions | Variables
ubxdump Namespace Reference

Functions

 extcap_config (option)
 
 extcap_version ()
 
 extcap_interfaces ()
 
 extcap_dlts ()
 
 log (msg)
 
 pcap_header ()
 
 pcap_packet (ubx_msg)
 
 ubxChecksum (msg)
 
 ubxMsg (ubxClassId, payload)
 
 sendUbxMsg (receiver, msg)
 
 ubxCfgMsg (ubxMsgClassId, rate)
 
 ubxCfgGnss (gnssId, resTrkCh, maxTrkCh, enable, sigCfgMask)
 
 control_read (fn)
 
 control_read_thread (control_in)
 
 control_write (arg, typ, payload)
 
 extcap_capture (interface, fifo, control_in, control_out)
 
 extcap_close_fifo (fifo)
 
 usage ()
 

Variables

str VERSION = "0.1"
 
str UBLOX_DEV_DESCRIPTION = 'u-blox GNSS receiver'
 u-blox / UBX related constants
 
int UBX_PREAMBLE_1 = 0xb5
 
int UBX_PREAMBLE_2 = 0x62
 
int UBX_HEADER_SIZE = 6
 
int UBX_CHKSUM_SIZE = 2
 
int UBX_PAYLOAD_LEN_OFFSET = 4
 
int UBX_GNSS_ID_GPS = 0
 
int UBX_GNSS_ID_SBAS = 1
 
int UBX_GNSS_ID_GALILEO = 2
 
int UBX_GNSS_ID_BEIDOU = 3
 
int UBX_GNSS_ID_IMES = 4
 
int UBX_GNSS_ID_QZSS = 5
 
int UBX_GNSS_ID_GLONASS = 6
 
int UBX_NAV = 0x01
 
list UBX_NAV_POSECEF = [UBX_NAV, 0x01]
 
list UBX_NAV_DOP = [UBX_NAV, 0x04]
 
list UBX_NAV_PVT = [UBX_NAV, 0x07]
 
list UBX_NAV_ODO = [UBX_NAV, 0x09]
 
list UBX_NAV_VELECEF = [UBX_NAV, 0x11]
 
list UBX_NAV_TIMEGPS = [UBX_NAV, 0x20]
 
list UBX_NAV_TIMEUTC = [UBX_NAV, 0x21]
 
list UBX_NAV_TIMELS = [UBX_NAV, 0x26]
 
list UBX_NAV_SBAS = [UBX_NAV, 0x32]
 
list UBX_NAV_SAT = [UBX_NAV, 0x35]
 
list UBX_NAV_EOE = [UBX_NAV, 0x61]
 
int UBX_RXM = 0x02
 
list UBX_RXM_SFRBX = [UBX_RXM, 0x13]
 
list UBX_RXM_MEASX = [UBX_RXM, 0x14]
 
list UBX_RXM_RAWX = [UBX_RXM, 0x15]
 
int UBX_CFG = 0x06
 
list UBX_CFG_MSG = [UBX_CFG, 0x01]
 
list UBX_CFG_SBAS = [UBX_CFG, 0x16]
 
list UBX_CFG_GNSS = [UBX_CFG, 0x3e]
 
int UBX_NMEA = 0xf0
 
list UBX_NMEA_GGA = [UBX_NMEA, 0x00]
 
list UBX_NMEA_GLL = [UBX_NMEA, 0x01]
 
list UBX_NMEA_GSA = [UBX_NMEA, 0x02]
 
list UBX_NMEA_GSV = [UBX_NMEA, 0x03]
 
list UBX_NMEA_RMC = [UBX_NMEA, 0x04]
 
list UBX_NMEA_VTG = [UBX_NMEA, 0x05]
 
list UBX_NMEA_GRS = [UBX_NMEA, 0x06]
 
list UBX_NMEA_GST = [UBX_NMEA, 0x07]
 
list UBX_NMEA_ZDA = [UBX_NMEA, 0x08]
 
list UBX_NMEA_GBS = [UBX_NMEA, 0x09]
 
list UBX_NMEA_TXT = [UBX_NMEA, 0x41]
 
list UBX_MSG_RATES
 
list UBX_GNSS_CONFIGS
 
str DLT = "147"
 PCAP-related constants.
 
str DLT_NAME = "DLT_USER0"
 
int PCAP_MAGIC = 0xa1b2c3d4
 
int PCAP_VERSION_MAJOR = 2
 
int PCAP_VERSION_MINOR = 4
 
int PCAP_THISZONE = 0
 
int PCAP_SIGFIGS = 0
 
int PCAP_SNAPLEN = 0xffffffff
 
int ERROR_USAGE = 0
 extcap-related constants
 
int ERROR_ARG = 1
 
int ERROR_INTERFACE = 2
 
int ERROR_FIFO = 3
 
int CTRL_CMD_INITIALIZED = 0
 
int CTRL_CMD_SET = 1
 
int CTRL_CMD_ADD = 2
 
int CTRL_CMD_REMOVE = 3
 
int CTRL_CMD_ENABLE = 4
 
int CTRL_CMD_DISABLE = 5
 
int CTRL_CMD_STATUSBAR_MSG = 6
 
int CTRL_CMD_INFO_MSG = 7
 
int CTRL_CMD_WARN_MSG = 8
 
int CTRL_CMD_ERROR_MSG = 9
 
int CTRL_ARG_LOGGER = 0
 
bool initialized = False
 
 fn_out = None
 
str option = ""
 
 parser = argparse.ArgumentParser(description="u-blox UBX extcap")
 
 help
 
 action
 
 nargs
 
 default
 
 args
 
 unknown
 
 file
 
int fifo_found = 0
 
str fifo = ""
 

Detailed Description

Extcap for UBX messages from an u-blox GNSS receiver.
Tested with UBX protocol version 18. 

Variable Documentation

◆ UBX_GNSS_CONFIGS

list ubxdump.UBX_GNSS_CONFIGS
Initial value:
1= [
2 (UBX_GNSS_ID_GPS, 8, 14, True, 0x01),
3 (UBX_GNSS_ID_GLONASS, 0, 0, False, 0x00),
4 (UBX_GNSS_ID_SBAS, 2, 4, True, 0x01),
5 (UBX_GNSS_ID_GALILEO, 8, 14, True, 0x01)
6 ]

◆ UBX_MSG_RATES

list ubxdump.UBX_MSG_RATES
Initial value:
1= [
2 (UBX_NAV_POSECEF, 0x01),
3 (UBX_NAV_DOP, 0x01),
4 (UBX_NAV_PVT, 0x01),
5 (UBX_NAV_ODO, 0x01),
6 (UBX_NAV_VELECEF, 0x01),
7 (UBX_NAV_TIMEGPS, 0x01),
8 (UBX_NAV_TIMEUTC, 0x01),
9 (UBX_NAV_TIMELS, 0xff),
10 (UBX_NAV_SBAS, 0x01),
11 (UBX_NAV_SAT, 0x01),
12 (UBX_NAV_EOE, 0x01),
13 (UBX_RXM_SFRBX, 0x01),
14 (UBX_RXM_MEASX, 0x01),
15 (UBX_RXM_RAWX, 0x01),
16 (UBX_NMEA_GGA, 0x00),
17 (UBX_NMEA_GLL, 0x00),
18 (UBX_NMEA_GSA, 0x00),
19 (UBX_NMEA_GSV, 0x00),
20 (UBX_NMEA_RMC, 0x00),
21 (UBX_NMEA_VTG, 0x00),
22 (UBX_NMEA_GRS, 0x00),
23 (UBX_NMEA_GST, 0x00),
24 (UBX_NMEA_ZDA, 0x00),
25 (UBX_NMEA_GBS, 0x00),
26 (UBX_NMEA_TXT, 0x00),
27 ]