Files
eg25-manager/data/pine64,pinephone-1.2.toml
Andrey Skvortsov 2d8a19bfd7 data: use 24h XTRA file for better GNSS performance
Quectel in the documentation for other Qualcomm-based modem explains
in details DPO (Dynamic Power Optimization), that is enabled on EG25-G
currently. One of requirements for DPO is, that XTRA almanac must be
less that 3.5 days old. [1]

Additionally SIMCOM says, that information predicted by XTRA is very
accurate within 24 hours, but its effectiveness decreases over time. [2]

Xtra3 files are available for 1 day (xtra3grc_24h.bin), 3
days (xtra3grc_72h.bin) and 7 days (xtra3grc.bin). Currently 7 days
variant is used.

Based on recommendations from Quectel and SIMCOM to slightly improve
GNSS performance switch default configuration to 24h XTRA variant.

1. https://sixfab.com/wp-content/uploads/2018/09/Quectel_UC20_GNSS_AT_Commands_Manual_V1.1.pdf
2. https://cdn.geekfactory.mx/sim7000g/SIM7000%20Series_GNSS_Application%20Note_V1.03.pdf
2025-09-17 23:35:22 +03:00

128 lines
5.4 KiB
TOML

[manager]
monitor_udev = true
usb_vid = 0x2c7c
usb_pid = 0x0125
# Delay between setting GPIO and PWRKEY sequence, set in microseconds
poweron_delay = 100000
# Uncomment the following if you need to change the modem detection timeout on
# resume and/or the time during which suspend is blocked after modem boot
#[suspend]
#boot_timeout = 120
#recovery_timeout = 9
[gpio]
chips = [ "1c20800.pinctrl" ]
dtr = { chip = 0, line = 34 }
pwrkey = { chip = 0, line = 35 }
reset = { chip = 0, line = 68 }
apready = { chip = 0, line = 231 }
disable = { chip = 0, line = 232 }
status = { chip = 0, line = 233 }
[at]
uart = "/dev/ttyS2"
configure = [
# Each command has 4 possible elements:
# * `cmd` : the AT command itself, which will be translated to "AT+`cmd`"
# * `subcmd`: the subcommand in case a single AT command can be used
# to change multiple parameters, such as QCFG (optional)
# * `value` : the commands, argument, usually used to set the value of
# a specific parameter (optional)
# * `expect`: the expected return value; the command is first executed
# without any value in order to query the current state. This
# state is then compared to the `expect` string; if they don't
# match, the command is then executed with value `expect` in
# order to set the parameter to the configured value (optional)
# A command can have `expect` OR `value` configured, but it shouldn't have both
# Print software version
{ cmd = "QGMR" },
# Configure audio
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
# RI signaling using physical RI pin
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
# Enable VoLTE support
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
# Enable APREADY for PP 1.2
{ cmd = "QCFG", subcmd = "apready", expect = "1,0,500" },
# URC configuration for PP 1.2 (APREADY pin connected):
# * RING URC: normal pulse length
# * Incoming SMS URC: default pulse length
# * Other URC: default length
# * Report URCs on all ports (serial and USB) for FOSS firmware
# * Reporting of URCs without any delay
# * Configure URC pin to UART Ring Indicator
{ cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",120,1000,5000,\"off\",1" },
{ cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",120,1" },
{ cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1,1" },
{ cmd = "QCFG", subcmd = "urc/delay", expect = "0" },
{ cmd = "QCFG", subcmd = "urc/cache", expect = "0" },
{ cmd = "QCFG", subcmd = "urc/ri/pin", expect = "uart_ri" },
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },
# Allow sleeping for power saving
{ cmd = "QSCLK", value = "1" },
# GNSS configuration:
# * Enable A-GPS data upload support (XTRA)
# * Disable On-Demand-Positioning (ODP) mode
# to avoid running the GNSS system in the background, even when not enabled.
# * Enable Dynamic Power Optimizations (DPO) mode to turn off GNSS RF radios
# when they are not in use.
# * Enable GPS, GLONASS, BeiDou and QZSS, disable Galileo constellation.
# A-GPS data upload doesn't work for Galileo anyway.
# * Avoid turning on GNSS support automatically when the modem boots.
{ cmd = "QGPSXTRA", expect = "1" },
{ cmd = "QGPSCFG", subcmd = "gnssconfig", expect = "2" },
{ cmd = "QGPSCFG", subcmd = "odpcontrol", expect = "0" },
{ cmd = "QGPSCFG", subcmd = "dpoenable", expect = "1" },
{ cmd = "QGPSCFG", subcmd = "gpsnmeatype", expect = "31" },
{ cmd = "QGPSCFG", subcmd = "glonassnmeatype", expect = "7" },
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "3" },
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
# SUPL (Secure User-Plane Location) configuration:
# * SUPL version 2.0
# * User Plane without SSL (7276 port).
# Frmware seems to try TLS 1.1, that is deprecated.
# * URL to SUPL server
{ cmd = "QGPSCFG", subcmd = "suplver", expect = "2" },
{ cmd = "QGPSCFG", subcmd = "plane", expect = "0" },
#
# SUPL drastically improves TTFF (time to first fix) for GNSS receiver
# and is much more effective than XTRA, but there are some privacy aspects.
#
# When SUPL is enabled:
# * IMSI (International Mobile Subscriber Identity) of your SIM-card
# and public IP are leaked to SUPL server.
# It's recommended to setup proxy server like (https://github.com/Eierkopp/supl-proxy)
# to hide this information from SUPL server.
# * IMSI is visible in trafic dumps since there is no SSL
# * Mobile data is used, regardless of the setting in operating system.
# Be carefully especially in roaming.
#
# To enable SUPL uncomment one of following lines
# { cmd = "QGPSSUPLURL", expect = "\"supl.google.com:7276\"" },
{ cmd = "QGPSSUPLURL", expect = "\"\"" },
# Disable fast poweroff for stability
{ cmd = "QCFG", subcmd = "fast/poweroff", expect = "0" },
# Configure sleep and wake up pin levels to active low
{ cmd = "QCFG", subcmd = "sleepind/level", expect = "0" },
{ cmd = "QCFG", subcmd = "wakeupin/level", expect = "0,0" },
# Do not enter RAMDUMP mode, auto-reset instead
{ cmd = "QCFG", subcmd = "ApRstLevel", expect = "1" },
{ cmd = "QCFG", subcmd = "ModemRstLevel", expect = "1" },
]
suspend = [
]
resume = [
]
reset = [ { cmd = "CFUN", value = "1,1" } ]
[gnss]
enabled = true
url = "https://xtrapath4.izatcloud.net"
file = "xtra3grc_24h.bin"