[PATCH] broadband-modem/libqcdm: use signal strength from QCDM EVDO Pilot Sets log messages

Dan Williams dcbw at redhat.com
Tue Jul 26 16:15:48 UTC 2016


On Tue, 2016-07-26 at 17:44 +0200, Aleksander Morgado wrote:
> On Tue, Jul 26, 2016 at 5:24 PM, Dan Williams <dcbw at redhat.com>
> wrote:
> > 
> > When a CDMA-only modem is registered with the EVDO network, its not
> > possible to
> > read signal strength in the following cases:
> > 
> > 1) while a data connection is active on single-AT-port modems,
> > because the AT
> > port is used for PPP and not available for AT+CSQ, AT+CIND or
> > vendor-specific
> > signal strength commands
> > 
> > 2) when the modem reports only CDMA 1x signal strength with AT+CSQ
> > 
> > Now that we have a reasonable interpretation of RSSI from the QCDM
> > EVDO Pilot Sets V2 log messgae, use that when other means of
> > getting
> > signal strength aren't available.
> Nice thing! Do you have logs of a successful run for reference? +1
> from me anyway.

It's not very descriptive, but here you go :)  This is a Pantech UMW190
which only has one AT port, but even when it's disconnected it appears
to report only CDMA1x quality for AT+CSQ (eg, "99").  And of course
when connected the AT port wouldn't be available for signal strength
anyway.

ModemManager[31672]: <debug> [1469549477.991442] [mm-broadband-modem.c:8820] modem_cdma_run_registration_checks_ready(): Initial CDMA registration checks finished
ModemManager[31672]: <debug> [1469549477.991899] [mm-port-serial-at.c:459] debug_log(): (ttyACM1): --> 'AT+CSQ<CR>'
ModemManager[31672]: <debug> [1469549477.991929] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): --> 4b 0f 00 00 bb 60 7e
ModemManager[31672]: <debug> [1469549477.994087] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): <-- 4b 0f 00 00 00 00 00 00 05 00 00 00 04 00 00 00 16 00 00 00 87 03 e8 04 ff 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff a7 2c 7e
ModemManager[31672]: <debug> [1469549477.994143] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): --> 4b 05 08 00 01 dd 7e
ModemManager[31672]: <debug> [1469549477.996667] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): <-- 4b 05 08 00 03 04 02 00 02 00 01 02 00 2a 3b 7e
ModemManager[31672]: <debug> [1469549477.996710] [mm-broadband-modem.c:2171] access_tech_context_complete_and_free(): QCDM operating mode: 5
ModemManager[31672]: <debug> [1469549477.996720] [mm-broadband-modem.c:2172] access_tech_context_complete_and_free(): QCDM system mode: 4
ModemManager[31672]: <debug> [1469549477.996728] [mm-broadband-modem.c:2173] access_tech_context_complete_and_free(): QCDM hybrid pref: 0
ModemManager[31672]: <debug> [1469549477.996735] [mm-broadband-modem.c:2174] access_tech_context_complete_and_free(): QCDM WCDMA open: 0
ModemManager[31672]: <debug> [1469549477.996743] [mm-broadband-modem.c:2175] access_tech_context_complete_and_free(): QCDM EVDO open: 1
ModemManager[31672]: <debug> [1469549477.996793] [mm-iface-modem.c:933] mm_iface_modem_update_access_technologies(): Modem /org/freedesktop/ModemManager1/Modem/2: access technology changed (unknown -> evdo0)
ModemManager[31672]: <debug> [1469549478.009009] [mm-port-serial-at.c:459] debug_log(): (ttyACM1): <-- '<CR><LF>99, 2309674<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[31672]: <debug> [1469549478.009115] [mm-port-serial.c:1345] _close_internal(): (ttyACM1) device open count is 1 (close)
ModemManager[31672]: <debug> [1469549478.009197] [mm-iface-modem.c:1204] update_signal_quality(): Modem /org/freedesktop/ModemManager1/Modem/2: signal quality updated (0)
ModemManager[31672]: <debug> [1469549480.601690] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): <-- 10 00 07 01 07 01 8b 10 ff 09 fe 73 34 df d6 00 04 01 3c 76 02 3f 01 3c 16 64 00 30 00 b6 00 21 00 00 00 76 44 3c 01 77 00 76 02 00 00 85 44 d0 00 00 00 76 02 64 00 00 00 70 01 4d 00 76 02 64 00 00 00 00 00 00 00 76 02 64 00 00 00 b4 01 00 00 76 02 64 00 00 00 14 01 00 00 76 02 64 00 00 00 84 01 00 00 76 02 64 00 00 00 fc 00 00 00 76 02 64 00 00 00 80 00 00 00 76 02 64 00 00 00 64 00 00 00 76 02 64 00 00 00 d0 01 00 00 76 02 64 00 00 00 9c 00 00 00 76 02 64 00 00 00 a0 00 00 00 76 02 64 00 00 00 dc 01 00 00 76 02 64 00 00 00 44 00 00 00 76 02 64 00 00 00 b4 00 00 00 76 02 64 00 00 00 58 01 00 00 76 02 64 00 00 00 90 00 00 00 76 02 64 00 00 00 54 01 00 00 76 02 64 00 00 00 9c 01 00 00 76 02 64 00 00 00 74 00 00 00 76 02 64 00 00 00 54 00 00 00 76 02 64 00 00 00 5c 00 29 00 76 02 64 00 00 00 41 26 7e
ModemManager[31672]: <debug> [1469549480.601733] [mm-broadband-modem.c:1751] qcdm_evdo_pilot_sets_log_handle(): EVDO active pilot RSSI -100 dBm
ModemManager[31672]: <debug> [1469549480.635544] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): <-- 10 00 07 01 07 01 8b 10 c0 04 19 74 34 df d6 00 04 01 3c 76 02 03 01 3c 16 64 00 30 00 c0 01 21 00 00 00 73 44 3c 01 00 00 76 02 00 02 85 44 d0 00 00 00 76 02 64 00 00 00 70 01 00 00 76 02 64 00 00 00 00 00 00 00 76 02 64 00 00 00 b4 01 00 00 76 02 64 00 00 00 14 01 00 00 76 02 64 00 00 00 84 01 00 00 76 02 64 00 00 00 fc 00 00 00 76 02 64 00 00 00 80 00 00 00 76 02 64 00 00 00 64 00 00 00 76 02 64 00 00 00 d0 01 00 00 76 02 64 00 00 00 9c 00 00 00 76 02 64 00 00 00 a0 00 00 00 76 02 64 00 00 00 dc 01 00 00 76 02 64 00 00 00 44 00 00 00 76 02 64 00 00 00 b4 00 00 00 76 02 64 00 00 00 58 01 00 00 76 02 64 00 00 00 90 00 00 00 76 02 64 00 00 00 54 01 00 00 76 02 64 00 00 00 9c 01 00 00 76 02 64 00 00 00 74 00 00 00 76 02 64 00 00 00 54 00 00 00 76 02 64 00 00 00 5c 00 00 00 76 02 64 00 00 00 13 d1 7e
ModemManager[31672]: <debug> [1469549480.635587] [mm-broadband-modem.c:1751] qcdm_evdo_pilot_sets_log_handle(): EVDO active pilot RSSI -81 dBm
ModemManager[31672]: <debug> [1469549481.531549] [mm-broadband-modem.c:2074] modem_load_signal_quality(): loading signal quality...
ModemManager[31672]: <debug> [1469549481.531593] [mm-port-serial.c:1288] mm_port_serial_open(): (ttyACM1) device open count is 2 (open)
ModemManager[31672]: <debug> [1469549481.531623] [mm-port-serial-at.c:459] debug_log(): (ttyACM1): --> 'AT+CSQ<CR>'
ModemManager[31672]: <debug> [1469549481.547808] [mm-port-serial-at.c:459] debug_log(): (ttyACM1): <-- '<CR><LF>99, 2309674<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[31672]: <debug> [1469549481.547881] [mm-port-serial.c:1345] _close_internal(): (ttyACM1) device open count is 1 (close)
ModemManager[31672]: <debug> [1469549481.547938] [mm-iface-modem.c:1204] update_signal_quality(): Modem /org/freedesktop/ModemManager1/Modem/2: signal quality updated (52)
ModemManager[31672]: <debug> [1469549481.547953] [mm-iface-modem.c:1274] signal_quality_check_ready(): Periodic signal quality checks rescheduled (interval = 30s)
ModemManager[31672]: <debug> [1469549485.726376] [mm-port-serial-qcdm.c:221] debug_log(): (ttyUSB0): <-- 10 00 07 01 07 01 8b 10 c0 03 01 84 34 df d6 00 04 01 3c 76 02 03 00 00 17 64 00 30 00 8b 01 21 00 00 00 6e 44 d0 00 00 00 76 02 64 00 00 00 70 01 00 00 76 02 64 00 00 00 00 00 00 00 76 02 64 00 00 00 b4 01 00 00 76 02 64 00 00 00 14 01 00 00 76 02 64 00 00 00 84 01 00 00 76 02 64 00 00 00 fc 00 00 00 76 02 64 00 00 00 80 00 00 00 76 02 64 00 00 00 64 00 00 00 76 02 64 00 00 00 d0 01 00 00 76 02 64 00 00 00 9c 00 00 00 76 02 64 00 00 00 a0 00 00 00 76 02 64 00 00 00 dc 01 00 00 76 02 64 00 00 00 44 00 00 00 76 02 64 00 00 00 b4 00 00 00 76 02 64 00 00 00 58 01 00 00 76 02 64 00 00 00 90 00 00 00 76 02 64 00 00 00 54 01 00 00 76 02 64 00 00 00 9c 01 00 00 76 02 64 00 00 00 74 00 00 00 76 02 64 00 00 00 54 00 00 00 76 02 64 00 00 00 5c 00 00 00 76 02 64 00 00 00 3c 01 00 00 76 02 64 00 00 00 41 e6 7e
ModemManager[31672]: <debug> [1469549485.726486] [mm-broadband-modem.c:1751] qcdm_evdo_pilot_sets_log_handle(): EVDO active pilot RSSI -85 dBm



More information about the ModemManager-devel mailing list