enzingerm / ModemManager

GNU General Public License v2.0
22 stars 2 forks source link

ModemManager hangs #5

Open gabri94 opened 4 years ago

gabri94 commented 4 years ago

First of all i am currently using the python rpc interface which works! I've installed modemmanager from this fork as you suggested, but when i try to run it with: sudo ModemManager --debug" it hangs after the debug lineInitializing XMM7360 modem!` and the only way to exit is with kill -9

gabri94 commented 4 years ago

here is some relevan lines from the output:

ModemManager[3768]: <info>  [1589197937.317322] Couldn't check support for device '/sys/devices/pci0000:00/0000:00:1f.6': not supported by any plugin
ModemManager[3768]: <debug> [1589197937.522185] (ttyXMM1): <-- '<CR><LF>+XACT: (0-6),(0-2),0,1,2,4,5,8,101,102,103,104,105,107,108,112,113,117,118,119,120,126,128,129,130,141,166<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[3768]: <debug> [1589197937.522352] (tty/ttyXMM1) Modem is XMM-based
ModemManager[3768]: <debug> [1589197937.522417] [plugin manager] task 0,ttyXMM1: found best plugin for port (XMM7360)
ModemManager[3768]: <debug> [1589197937.522443] [plugin manager] task 0,ttyXMM1: finished in '2.718014' seconds
ModemManager[3768]: <debug> [1589197937.522473] [plugin manager] task 0,ttyXMM1: found best plugin: XMM7360
ModemManager[3768]: <debug> [1589197937.522494] [plugin manager] task 0,wwan0: deferred task completed, got suggested plugin (XMM7360)
ModemManager[3768]: <debug> [1589197937.522524] [plugin Manager] task 0: still 1 running probes (1 active): wwan0
ModemManager[3768]: <debug> [1589197937.522572] (ttyXMM1) device open count is 0 (close)
ModemManager[3768]: <debug> [1589197937.522606] (ttyXMM1) closing serial port...
ModemManager[3768]: <debug> [1589197937.524002] (ttyXMM1) serial port closed
ModemManager[3768]: <debug> [1589197937.524089] (ttyXMM1) forced to close port
ModemManager[3768]: <debug> [1589197937.524144] [plugin manager] task 0,wwan0: checking with plugin 'XMM7360'
ModemManager[3768]: <debug> [1589197937.524193] (XMM7360) [wwan0] probing deferred until result suggested
ModemManager[3768]: <debug> [1589197937.524235] [plugin manager] task 0,wwan0: completed, got suggested plugin (XMM7360)
ModemManager[3768]: <debug> [1589197937.524254] [plugin manager] task 0,wwan0: finished in '2.708236' seconds
ModemManager[3768]: <debug> [1589197937.524280] [plugin manager] task 0,wwan0: best plugin matches device reported one: XMM7360
ModemManager[3768]: <debug> [1589197937.524298] [plugin manager] task 0: no more ports to probe
ModemManager[3768]: <debug> [1589197937.524313] [plugin manager] task 0: finished in '2.719971' seconds
ModemManager[3768]: <info>  [1589197937.524355] [device /sys/devices/pci0000:00/0000:00:1c.6/0000:3b:00.0] creating modem with plugin 'XMM7360' and '2' ports
ModemManager[3768]: <debug> [1589197937.527625] Initializing XMM7360 modem!
gabri94 commented 4 years ago

I did some basic debugging and it is stuck in the while loop:

  while(!rpc->sim_initialized) {
        xmm7360_rpc_pump(rpc, NULL);
    }
gabri94 commented 4 years ago

I managed to get trough it by commenting the loop cycle.

enzingerm commented 4 years ago

First of all: Thanks for trying out! I had to introduce the loop because otherwise my ModemManager stuck at asking the modem for SIM PIN status. If it does never get out of the loop, this essentially means that the Modem never sends the UtaMsSimInitIndCb RPC message, which I assumed to be some kind of notification about the SIM card having been initialized. But the problem is, I don't know. Maybe it has something to do with different firmware versions. What is the output of sudo python rpc/rpc.py (called in the xmm7360-pci repository)? Mine is Firmware version: bytearray(b'18500.5001.00.01.20.75')

enzingerm commented 4 years ago

Did the loop hang after a fresh reboot and loading the kernel driver? For me, it also hangs on the second try, maybe you could try it again directly after a reboot (but without commenting the loop)? Maybe this also has to do something with #6

yoxcu commented 3 years ago

For me it also hangs after "Initializing XMM7360 modem!" on the second try (the first try exits with a "Could not allocate error"). My firmware version (same as yours): Firmware version: bytearray(b'18500.5001.00.01.20.75')

teccem commented 2 years ago

Hello anyone. I have used Manjaro with 5.10 kernel with xmm7360-pci solution half of year ago., it was working. Last week i tried to install Linux one more time (i had to install windows), and xmm7360 started to hanging on connection process, i tried to install this soft, but got the same issue as yoxcu. I have both OS installed (Linux and Windows), before there is Linux only.

Firmware version:18500.5001.00.05.27.12

yoxcu, how you solved the issue?