-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.defaults.py
More file actions
69 lines (58 loc) · 4.03 KB
/
config.defaults.py
File metadata and controls
69 lines (58 loc) · 4.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
""" Config variables - accessed as config.X in main.py"""
# General configuration
CRASH_RESET = True # Hard reset the esp32 device on crash.
# GPS device configuration
ENABLE_GPS = True # Enable GPS device for reading via UART serial.
GPS_UART = 1 # UART device for GPS connection
GPS_TX_PIN = 0 # ESP32 pin - connected to GPS RX pin
GPS_RX_PIN = 1 # ESP32 pin - connected to GPS TX pin
GPS_BAUD_RATE = 115200 # For LC29HEA, set 460800 - set to 115200 for most other models
GPS_SETUP_COMMANDS = [] # List of NMEA commands (without $ and checksum) to be sent to GPS device on startup.
GPS_SETUP_RESPONSE_PREFIX = "$P" # When reading responses to commands, only log lines which start with this prefix ($P = proprietary NMEA)
ENABLE_GPS_RESET = False # If enabled, GPS will be reset via GPIO pin
GPS_RESET_PIN = 8 # The GPIO pin to toggle to reset the GPS device
GPS_RESET_HIGH = True # If True, pull the pin high to reset. If false, pull it low
GPS_SETUP_COMMANDS_RESET = False # Reset GPS after writing setup commands. (GPS_RESET must be enabled).
# NMEA/Data configuration
PQTMEPE_TO_GGST = False # Convert PQTMEPE messages to GGST (for accuracy info from Quectel devices)
# USB serial configuration
ENABLE_SERIAL_CLIENT = False # Output GPS data via serial
SERIAL_UART = 2 # UART device for serial output
SERIAL_TX_PIN = 3 # Transmit pin
SERIAL_RX_PIN = 4 # Receive pin
SERIAL_BAUD_RATE = 115200 # Serial baud rate
LOG_TO_SERIAL = False # If True, log messages are sent over serial, rather than to sys.stdout (REPL)
# Bluetooth configuration
DEVICE_NAME = "ESP32_GPS" # Bluetooth device name
ENABLE_BLUETOOTH = False # Output via bluetooth device
# Wifi credentials - needed for NTRIP services
# Either set here, or ensure wifi is enabled in boot.py
# WIFI_SSID = "" # SSID for Wifi Access Point
# WIFI_PSK = "" # PSK for Wifi Access Point
# WIFI_TXPOWER = 5 # Some boards (e.g. C3) have more stable connections with reduced txpower
# ESPNow config
ESPNOW_MODE = "" # ESP Mode can be sender or receiver (or empty to disable)
# If ESPMODE = sender, send to all peers.
# If receiver, receive data from the first peer in the list as if it was a local GPS device.
# ESPNOW_PEERS = [b"\xbb\xbb\xbb\xbb\xbb\xbb"] # List of mac addresses for peers.
# ESPNOW_DISCOVER_PEERS = True # Broadcast peer mac address, and add any recived to the list of peers
ENABLE_SHELL = False # If True, enable the remote command shell
SHELL_PASSWORD = "esp32-gps" # Set a password for shell access
# NTRIP configuration
NTRIP_MODE = "client" # To enable NTRIP services, comma-separated list of: client (pull NTRIP data from caster), server (upload NTRIP data to a caster), caster (read/write to servers/clients)
# Client/Server config
NTRIP_CASTER = "crtk.net" # NTRIP caster address
NTRIP_PORT = 2101 # NTRIP caster port
NTRIP_MOUNT = "ESP32" # NTRIP mount. Note there is no support for NEAR/GGA automatic mountpoints.
NTRIP_CLIENT_CREDENTIALS = "c:c" # NTRIP client credentials (in form user:pass). Centipede: "c:c". rtk2go: "your@email.com:none" (for all modes)
NTRIP_SERVER_CREDENTIALS = "c:c" # NTRIP server credentials (in form user:pass).
# Caster config
NTRIP_CASTER_BIND_ADDRESS = "0.0.0.0" # Address to bind the NTRIP caster
NTRIP_CASTER_BIND_PORT = 2101 # Port to bind the NTRIP caster
# Sourcetable map - add one STR line to authorise each mountpoint.
# Full details at: https://software.rtcm-ntrip.org/wiki/STR
# RTCM format protocol here: https://github.com/MichaelBeechan/RTCM3.3/blob/main/RTCM3.3.PDF
NTRIP_SOURCETABLE = """
STR;ESP32;ESP32_GPS;RTCM3.3;;2;GLO+GAL+QZS+BDS+GPS;NONE;GBR;56.62;-3.94;0;0;NTRIP ESP32_GPS;none;B;N;15200;ESP32_GPS
ENDSOURCETABLE
"""