mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
config: synchronize with modem-power
We cannot assume default factory values if other drivers change them
This commit is contained in:
@@ -34,15 +34,31 @@ configure = [
|
|||||||
# match, the command is then executed with value `expect` in
|
# match, the command is then executed with value `expect` in
|
||||||
# order to set the parameter to the configured value (optional)
|
# order to set the parameter to the configured value (optional)
|
||||||
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
||||||
|
# Print software version
|
||||||
{ cmd = "QGMR" },
|
{ cmd = "QGMR" },
|
||||||
|
# Configure audio
|
||||||
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
||||||
|
# RI signaling using physical RI pin
|
||||||
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
||||||
|
# Enable VoLTE support
|
||||||
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
||||||
|
# Disable APREADY for PP 1.0 because pin is not connected
|
||||||
|
{ cmd = "QCFG", subcmd = "apready", expect = "0,0,500" },
|
||||||
|
# URC configuration for PP 1.0 (APREADY pin not connected):
|
||||||
|
# * RING URC: extend pulse length
|
||||||
|
# * Incoming SMS URC: extend pulse length
|
||||||
|
# * Other URC: extend pulse length
|
||||||
|
# * Report URCs on all ports (serial and USB) for FOSS firmware
|
||||||
|
# * Delay reporting of URCs
|
||||||
|
# * Configure URC pin to UART Ring Indicator
|
||||||
{ cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
|
{ cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
|
||||||
{ cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000" },
|
{ cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000,1" },
|
||||||
{ cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1" },
|
{ cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1,1" },
|
||||||
{ cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
|
{ cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
|
||||||
|
{ cmd = "QCFG", subcmd = "urc/cache", expect = "0" },
|
||||||
|
{ cmd = "QCFG", subcmd = "urc/ri/pin", expect = "uart_ri" },
|
||||||
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },
|
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },
|
||||||
|
# Allow sleeping for power saving
|
||||||
{ cmd = "QSCLK", value = "1" },
|
{ cmd = "QSCLK", value = "1" },
|
||||||
# GNSS configuration:
|
# GNSS configuration:
|
||||||
# * Enable A-GPS data upload support (XTRA)
|
# * Enable A-GPS data upload support (XTRA)
|
||||||
@@ -62,6 +78,14 @@ configure = [
|
|||||||
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
|
||||||
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "0" },
|
||||||
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
|
||||||
|
# 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 = [
|
suspend = [
|
||||||
]
|
]
|
||||||
|
@@ -34,15 +34,31 @@ configure = [
|
|||||||
# match, the command is then executed with value `expect` in
|
# match, the command is then executed with value `expect` in
|
||||||
# order to set the parameter to the configured value (optional)
|
# order to set the parameter to the configured value (optional)
|
||||||
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
||||||
|
# Print software version
|
||||||
{ cmd = "QGMR" },
|
{ cmd = "QGMR" },
|
||||||
|
# Configure audio
|
||||||
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
||||||
|
# RI signaling using physical RI pin
|
||||||
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
||||||
|
# Enable VoLTE support
|
||||||
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
||||||
|
# Disable APREADY for PP 1.1 because pin is not connected
|
||||||
|
{ cmd = "QCFG", subcmd = "apready", expect = "0,0,500" },
|
||||||
|
# URC configuration for PP 1.1 (APREADY pin not connected):
|
||||||
|
# * RING URC: extend pulse length
|
||||||
|
# * Incoming SMS URC: extend pulse length
|
||||||
|
# * Other URC: extend pulse length
|
||||||
|
# * Report URCs on all ports (serial and USB) for FOSS firmware
|
||||||
|
# * Delay reporting of URCs
|
||||||
|
# * Configure URC pin to UART Ring Indicator
|
||||||
{ cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
|
{ cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
|
||||||
{ cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000" },
|
{ cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000,1" },
|
||||||
{ cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1" },
|
{ cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1,1" },
|
||||||
{ cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
|
{ cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
|
||||||
|
{ cmd = "QCFG", subcmd = "urc/cache", expect = "0" },
|
||||||
|
{ cmd = "QCFG", subcmd = "urc/ri/pin", expect = "uart_ri" },
|
||||||
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },
|
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },
|
||||||
|
# Allow sleeping for power saving
|
||||||
{ cmd = "QSCLK", value = "1" },
|
{ cmd = "QSCLK", value = "1" },
|
||||||
# GNSS configuration:
|
# GNSS configuration:
|
||||||
# * Enable A-GPS data upload support (XTRA)
|
# * Enable A-GPS data upload support (XTRA)
|
||||||
@@ -62,6 +78,14 @@ configure = [
|
|||||||
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
|
||||||
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "0" },
|
||||||
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
|
||||||
|
# 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 = [
|
suspend = [
|
||||||
]
|
]
|
||||||
|
@@ -31,12 +31,31 @@ configure = [
|
|||||||
# match, the command is then executed with value `expect` in
|
# match, the command is then executed with value `expect` in
|
||||||
# order to set the parameter to the configured value (optional)
|
# order to set the parameter to the configured value (optional)
|
||||||
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
||||||
|
# Print software version
|
||||||
{ cmd = "QGMR" },
|
{ cmd = "QGMR" },
|
||||||
|
# Configure audio
|
||||||
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
||||||
|
# RI signaling using physical RI pin
|
||||||
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
||||||
|
# Enable VoLTE support
|
||||||
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
||||||
|
# Enable APREADY for PP 1.2
|
||||||
{ cmd = "QCFG", subcmd = "apready", expect = "1,0,500" },
|
{ 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\"" },
|
{ cmd = "QURCCFG", subcmd = "urcport", expect = "\"all\"" },
|
||||||
|
# Allow sleeping for power saving
|
||||||
{ cmd = "QSCLK", value = "1" },
|
{ cmd = "QSCLK", value = "1" },
|
||||||
# GNSS configuration:
|
# GNSS configuration:
|
||||||
# * Enable A-GPS data upload support (XTRA)
|
# * Enable A-GPS data upload support (XTRA)
|
||||||
@@ -56,6 +75,14 @@ configure = [
|
|||||||
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "galileonmeatype", expect = "0" },
|
||||||
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "beidounmeatype", expect = "0" },
|
||||||
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
|
{ cmd = "QGPSCFG", subcmd = "autogps", expect = "0" },
|
||||||
|
# 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 = [
|
suspend = [
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user