Serial device detection not working
- From: Thomas Bechtold <thomasbechtold jpberlin de>
- To: <networkmanager-list gnome org>
- Subject: Serial device detection not working
- Date: Thu, 29 Mar 2012 12:34:43 +0200
Hi,
i had an active connection (latest MM_06 from git) with the iridium
modem but after a while, the modem disconnected. After that, the modem
was no longer detected by MM.
Then i tried to redetect serial modems but without success.
dbus-send --system --type=method_call --print-reply
--dest=org.freedesktop.ModemManager /org/freedesktop/ModemManager
org.freedesktop.ModemManager.ScanDevices
modem-manager[4232]: <debug> [mm-manager.c:1057] mm_manager_start():
Starting device scan...
modem-manager[4232]: <debug> [mm-manager.c:875] device_added():
(tty/ttyS0): port's parent platform driver is not whitelisted
modem-manager[4232]: <debug> [mm-manager.c:875] device_added():
(tty/ttyS2): port's parent platform driver is not whitelisted
modem-manager[4232]: <debug> [mm-manager.c:875] device_added():
(tty/ttyS4): port's parent platform driver is not whitelisted
modem-manager[4232]: <debug> [mm-manager.c:875] device_added():
(net/usb0): port's parent platform driver is not whitelisted
modem-manager[4232]: <debug> [mm-manager.c:1075] mm_manager_start():
Finished device scan...
root@D110012:~# nmcli dev
DEVICE TYPE STATE
usb0 802-3-ethernet unavailable
I also powered off/on the iridium modem, executed the dbus-command to
rescan but the modem is still not detected.
A MM restart worked for that:
~# kill `pidof modem-manager` && modem-manager --log-level=DEBUG
everse-i-search)`kill': kill `pidof modem-manager` && modem-manager
--log-level=
modem-manager[4232]: <info> [main.c:41] mm_signal_handler(): Caught
signal 15, shutting down...
modem-manager[4232]: <info> [mm-modem.c:759] mm_modem_set_state():
Modem /org/freedesktop/ModemManager/Modems/1: state changed (registered
-> disabling)
modem-manager[4232]: mm_serial_port_close_force: assertion
`priv->open_count > 0' failed
modem-manager[4232]: <info> [mm-modem.c:759] mm_modem_set_state():
Modem /org/freedesktop/ModemManager/Modems/1: state changed (disabling
-> disabled)
modem-manager[4232]: <debug> [mm-manager.c:243] remove_modem(): Removed
modem /sys/devices/platform/atmel_usart.1
modem-manager[5613]: <info> [main.c:167] main(): ModemManager (version
0.5.999) starting...
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Option'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'X22X'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Ericsson MBM'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Sierra'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Linktop'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'AnyData'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Longcheer'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Wavecom'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Novatel'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'SimTech'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Nokia'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Samsung'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Gobi'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Huawei'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'MotoC'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'ZTE'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Option High-Speed'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Cinterion'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Iridium'
modem-manager[5613]: <info> [mm-manager.c:158] found_plugin(): Loaded
plugin 'Generic'
modem-manager[5613]: <info> [mm-manager.c:210] load_plugins():
Successfully loaded 20 plugins
modem-manager[5613]: <debug> [mm-manager.c:1057] mm_manager_start():
Starting device scan...
modem-manager[5613]: <debug> [mm-manager.c:875] device_added():
(tty/ttyS0): port's parent platform driver is not whitelisted
modem-manager[5613]: <debug> [mm-manager.c:875] device_added():
(tty/ttyS2): port's parent platform driver is not whitelisted
modem-manager[5613]: <debug> [mm-manager.c:875] device_added():
(tty/ttyS4): port's parent platform driver is not whitelisted
modem-manager[5613]: <debug> [mm-manager.c:875] device_added():
(net/usb0): port's parent platform driver is not whitelisted
modem-manager[5613]: <debug> [mm-manager.c:1075] mm_manager_start():
Finished device scan...
modem-manager[5613]: <info> [mm-serial-port.c:805]
mm_serial_port_open(): (ttyS1) opening serial port...
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 1 (open)
modem-manager[5613]: <debug> [mm-plugin-base.c:1050] try_open():
(ttyS1): probe requested by plugin 'Cinterion'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+GCAP<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- 'AT+GCAP<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <--
'<CR><LF>+GCAP:+CGSM,+DS,+WIRIDIUM<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CGMI<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- 'AT+CGMI'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>Iridium<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CGMM<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- 'AT+CGMM<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>9522B<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 0 (close)
modem-manager[5613]: <info> [mm-serial-port.c:923]
mm_serial_port_close(): (ttyS1) closing serial port...
modem-manager[5613]: <info> [mm-serial-port.c:944]
mm_serial_port_close(): (ttyS1) serial port closed
modem-manager[5613]: <debug> [mm-plugin-iridium.c:90]
check_vendor_iridium(): Iridium RS232 modem detected
modem-manager[5613]: <debug> [mm-modem-base.c:927] grab_port(): (ttyS1)
type AT claimed by /sys/devices/platform/atmel_usart.1
modem-manager[5613]: <info> [mm-manager.c:630] do_grab_port():
(Iridium): GSM modem /sys/devices/platform/atmel_usart.1 claimed port
ttyS1
modem-manager[5613]: <debug> [mm-manager.c:362] add_modem(): Added
modem /sys/devices/platform/atmel_usart.1
modem-manager[5613]: <debug> [mm-manager.c:298] check_export_modem():
(tty/ttyS1): outstanding support task prevents export of
/sys/devices/platform/atmel_usart.1
modem-manager[5613]: <debug> [mm-modem-base.c:208] log_port():
(/sys/devices/platform/atmel_usart.1) tty/ttyS1 primary
modem-manager[5613]: <debug> [mm-modem-base.c:208] log_port():
(/sys/devices/platform/atmel_usart.1) tty/ttyS1 data
modem-manager[5613]: <info> [mm-serial-port.c:805]
mm_serial_port_open(): (ttyS1) opening serial port...
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 1 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 2 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 3 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 4 (open)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'ATE0<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- 'A'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- 'TE0<CR><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+GMI<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>Iridium<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+GMM<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>9522B<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+GMR<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>Call Processor Version: ST08005<CR><LF><CR><LF>DSP
Version: 0x002b<CR><LF><CR><LF>ASIC Version: 32.1<CR><LF><CR><LF>NVM
Version: S2_0003<CR><LF><CR><LF>BOOT Version:
BOOT0bb8/HW13(H2dS2c)/02/RAW0a.02<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CGMI<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>Iridium<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CGMM<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>9522B<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CGMR<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>Call Processor Version: ST08005<CR><LF><CR><LF>DSP
Version: 0x002b<CR><LF><CR><LF>ASIC Version: 32.1<CR><LF><CR><LF>NVM
Version: S2_0003<CR><LF><CR><LF>BOOT Version:
BOOT0bb8/HW13(H2dS2c)/02/RAW0a.02<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'ATI<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>2400<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'ATI1<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>0000<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+GSN<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>300025010008260<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CGSN<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>300025010008260<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-modem-helpers.c:1068]
mm_create_device_identifier(): Device ID source
'00001e2d0000000024000000300025010008260CallProcessorVersion:ST08005DSPVersion:0x002bASICVersion:32.1NVMVersion:S2_0003BOOTVersion:BOOT0bb8/HW13(H2dS2c)/02/RAW0a.029522BIridium'
modem-manager[5613]: <debug> [mm-modem-helpers.c:1069]
mm_create_device_identifier(): Device ID
'3ec303ecfea2bac5805ed0d6401a7cb8ab7457cf'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 3 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'ATE0<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 2 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CMEE=1<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CPIN?<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>+CPIN:SIM PIN2<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 3 (open)
modem-manager[5613]: <debug> [mm-manager.c:313] check_export_modem():
Exported modem /sys/devices/platform/atmel_usart.1 as
/org/freedesktop/ModemManager/Modems/0
modem-manager[5613]: <debug> [mm-manager.c:327] check_export_modem():
(/org/freedesktop/ModemManager/Modems/0): VID 0x1E2D PID 0x0000
(platform)
modem-manager[5613]: <debug> [mm-manager.c:328] check_export_modem():
(/org/freedesktop/ModemManager/Modems/0): data port is ttyS1
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 2 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CLCK=?<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <--
'<LF>+CLCK:("CS","SC","FD","AO","AI","IR","AB")<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 3 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 4 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 3 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CLCK=?<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <--
'<CR><LF>+CLCK:("CS","SC","FD","AO","AI","IR","AB")<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 4 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:874]
mm_serial_port_open(): (ttyS1) device open count is 5 (open)
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 4 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CLCK="SC",2<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>+CLCK:0<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 3 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CLCK="FD",2<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>+CLCK:0<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 2 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CLCK="SC",2<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>+CLCK:0<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 1 (close)
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): --> 'AT+CLCK="FD",2<CR>'
modem-manager[5613]: <debug> [mm-at-serial-port.c:334] debug_log():
(ttyS1): <-- '<CR><LF>+CLCK:0<CR><LF><CR><LF>OK<CR><LF>'
modem-manager[5613]: <debug> [mm-serial-port.c:908]
mm_serial_port_close(): (ttyS1) device open count is 0 (close)
modem-manager[5613]: <info> [mm-serial-port.c:923]
mm_serial_port_close(): (ttyS1) closing serial port...
modem-manager[5613]: <info> [mm-serial-port.c:944]
mm_serial_port_close(): (ttyS1) serial port closed
Cheers,
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]