summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-02 20:04:55 -0700
committerGary E. Miller <gem@rellim.com>2019-04-02 20:04:55 -0700
commitc8e33e1c5f2b0817a110a51a2a6a6b7d8e3c3bf4 (patch)
treefd8fd5931d7e579b4f33dfad5e3fb6a3d1c68054 /ubxtool
parent834b8c467b29f78da5680938f0fcb232cb1fa12f (diff)
downloadgpsd-c8e33e1c5f2b0817a110a51a2a6a6b7d8e3c3bf4.tar.gz
ubxtool: Add CFG-UART2
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool112
1 files changed, 63 insertions, 49 deletions
diff --git a/ubxtool b/ubxtool
index b40d49ce..0b43c76b 100755
--- a/ubxtool
+++ b/ubxtool
@@ -159,55 +159,69 @@ class ubx(object):
# 5 - Unit
# 6 - Description
cfgs = (
- ("CFG-USB-ENABLED", 0x10650001, "L", 1, "",
- "Flag to indicate if the USB interface should be enabled"),
- ("CFG-USB-SELFPOW", 0x10650002, "L", 1, "",
- "Self-Powered device"),
- ("CFG-USB-VENDOR_ID", 0x3065000a, "U2", 1, "",
- "Vendor ID"),
- ("CFG-USB-PRODUCT_ID", 0x3065000b, "U2", 1, "",
- "Product ID"),
- ("CFG-USB-POWER", 0x3065000c, "U2", 1, "mA",
- "Power consumption"),
- ("CFG-USB-VENDOR_STR0", 0x5065000d, "X8", 1, "",
- "Vendor string characters 0-7"),
- ("CFG-USB-VENDOR_STR1", 0x5065000e, "X8", 1, "",
- "Vendor string characters 8-15"),
- ("CFG-USB-VENDOR_STR2", 0x5065000f, "X8", 1, "",
- "Vendor string characters 16-23"),
- ("CFG-USB-VENDOR_STR3", 0x50650010, "X8", 1, "",
- "Vendor string characters 24-31"),
- ("CFG-USB-PRODUCT_STR0", 0x50650011, "X8", 1, "",
- "Product string characters 0-7"),
- ("CFG-USB-PRODUCT_STR1", 0x50650012, "X8", 1, "",
- "Product string characters 8-15"),
- ("CFG-USB-PRODUCT_STR2", 0x50650013, "X8", 1, "",
- "Product string characters 16-23"),
- ("CFG-USB-PRODUCT_STR3", 0x50650014, "X8", 1, "",
- "Product string characters 24-31"),
- ("CFG-USB-SERIAL_NO_STR0", 0x50650015, "X8", 1, "",
- "Serial number string characters 0-7"),
- ("CFG-USB-SERIAL_NO_STR1", 0x50650016, "X8", 1, "",
- "Serial number string characters 8-15"),
- ("CFG-USB-SERIAL_NO_STR2", 0x50650017, "X8", 1, "",
- "Serial number string characters 16-23"),
- ("CFG-USB-SERIAL_NO_STR3", 0x50650018, "X8", 1, "",
- "Serial number string characters 24-31"),
- ("CFG-USBINPROT-UBX", 0x10770001, "L", 1, "",
- "Flag to indicate if UBX should be an input protocol on USB"),
- ("CFG-USBINPROT-NMEA", 0x10770002, "L", 1, "",
- "Flag to indicate if NMEA should be an input protocol on USB"),
- ("CFG-USBINPROT-RTCM2X", 0x10770003, "L", 1, "",
- "Flag to indicate if RTCM2X should be an input protocol on USB"),
- ("CFG-USBINPROT-RTCM3X", 0x10770004, "L", 1, "",
- "Flag to indicate if RTCM3X should be an input protocol on USB"),
- ("CFG-USBOUTPROT-UBX", 0x10780001, "L", 1, "",
- "Flag to indicate if UBX should be an output protocol on USB"),
- ("CFG-USBOUTPROT-NMEA", 0x10780002, "L", 1, "",
- "Flag to indicate if NMEA should be an output protocol on USB"),
- ("CFG-USBOUTPROT-RTCM3X", 0x10780004, "L", 1, "",
- "Flag to indicate if RTCM3X should be an output protocol on USB"),
- )
+ ("CFG-UART2INPROT-UBX", 0x10750001, "L", 1, "",
+ "Flag to indicate if UBX should be an input protocol on UART2"),
+ ("CFG-UART2INPROT-NMEA", 0x10750002, "L", 1, "",
+ "Flag to indicate if NMEA should be an input protocol on UART2"),
+ ("CFG-UART2INPROT-RTCM2X", 0x10750003, "L", 1, "",
+ "Flag to indicate if RTCM2X should be an input protocol on UART2"),
+ ("CFG-UART2INPROT-RTCM3X", 0x10750004, "L", 1, "",
+ "Flag to indicate if RTCM3X should be an input protocol on UART2"),
+ ("CFG-UART2OUTPROT-UBX", 0x10760001, "L", 1, "",
+ "Flag to indicate if UBX should be an output protocol on UART2"),
+ ("CFG-UART2OUTPROT-NMEA", 0x10760002, "L", 1, "",
+ "Flag to indicate if NMEA should be an output protocol on UART2"),
+ ("CFG-UART2OUTPROT-RTCM3X", 0x10760004, "L", 1, "",
+ "Flag to indicate if RTCM3X should be an output protocol on UART2"),
+ ("CFG-USB-ENABLED", 0x10650001, "L", 1, "",
+ "Flag to indicate if the USB interface should be enabled"),
+ ("CFG-USB-SELFPOW", 0x10650002, "L", 1, "",
+ "Self-Powered device"),
+ ("CFG-USB-VENDOR_ID", 0x3065000a, "U2", 1, "",
+ "Vendor ID"),
+ ("CFG-USB-PRODUCT_ID", 0x3065000b, "U2", 1, "",
+ "Product ID"),
+ ("CFG-USB-POWER", 0x3065000c, "U2", 1, "mA",
+ "Power consumption"),
+ ("CFG-USB-VENDOR_STR0", 0x5065000d, "X8", 1, "",
+ "Vendor string characters 0-7"),
+ ("CFG-USB-VENDOR_STR1", 0x5065000e, "X8", 1, "",
+ "Vendor string characters 8-15"),
+ ("CFG-USB-VENDOR_STR2", 0x5065000f, "X8", 1, "",
+ "Vendor string characters 16-23"),
+ ("CFG-USB-VENDOR_STR3", 0x50650010, "X8", 1, "",
+ "Vendor string characters 24-31"),
+ ("CFG-USB-PRODUCT_STR0", 0x50650011, "X8", 1, "",
+ "Product string characters 0-7"),
+ ("CFG-USB-PRODUCT_STR1", 0x50650012, "X8", 1, "",
+ "Product string characters 8-15"),
+ ("CFG-USB-PRODUCT_STR2", 0x50650013, "X8", 1, "",
+ "Product string characters 16-23"),
+ ("CFG-USB-PRODUCT_STR3", 0x50650014, "X8", 1, "",
+ "Product string characters 24-31"),
+ ("CFG-USB-SERIAL_NO_STR0", 0x50650015, "X8", 1, "",
+ "Serial number string characters 0-7"),
+ ("CFG-USB-SERIAL_NO_STR1", 0x50650016, "X8", 1, "",
+ "Serial number string characters 8-15"),
+ ("CFG-USB-SERIAL_NO_STR2", 0x50650017, "X8", 1, "",
+ "Serial number string characters 16-23"),
+ ("CFG-USB-SERIAL_NO_STR3", 0x50650018, "X8", 1, "",
+ "Serial number string characters 24-31"),
+ ("CFG-USBINPROT-UBX", 0x10770001, "L", 1, "",
+ "Flag to indicate if UBX should be an input protocol on USB"),
+ ("CFG-USBINPROT-NMEA", 0x10770002, "L", 1, "",
+ "Flag to indicate if NMEA should be an input protocol on USB"),
+ ("CFG-USBINPROT-RTCM2X", 0x10770003, "L", 1, "",
+ "Flag to indicate if RTCM2X should be an input protocol on USB"),
+ ("CFG-USBINPROT-RTCM3X", 0x10770004, "L", 1, "",
+ "Flag to indicate if RTCM3X should be an input protocol on USB"),
+ ("CFG-USBOUTPROT-UBX", 0x10780001, "L", 1, "",
+ "Flag to indicate if UBX should be an output protocol on USB"),
+ ("CFG-USBOUTPROT-NMEA", 0x10780002, "L", 1, "",
+ "Flag to indicate if NMEA should be an output protocol on USB"),
+ ("CFG-USBOUTPROT-RTCM3X", 0x10780004, "L", 1, "",
+ "Flag to indicate if RTCM3X should be an output protocol on USB"),
+ )
def ack_ack(self, buf):
"UBX-ACK-ACK decode"