Re: Serial device detection not working



Hey Thomas,


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...



ttyS1, the port where the Iridium modem is plugged in, wasn't released yet by the Modem object, so the re-scan wasn't considering it yet. The Iridium plugin, as well as the Cinterion one, have a special setup so that if 3 consecutive AT commands get timed out we mark the modem as invalid and it gets removed, releasing all its ports.

Once the modem got disconnected, did MM detect the disconnection? did it try to send AT commands, or was it just stuck somehow? Would have been good to have the logs just while the disconnection happened, if any. In theory, MM should have detected the disconnection, marked the AT port as not being connected, and it should have tried to keep on sending AT commands (e.g. to update signal quality), and after the 3rd AT command timed out it would have been removed. For some reason, this sequence didn't happen.

--
Aleksander


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]