xmm7360 / xmm7360-usb-modeswitch

Tools for the Fibocom L850-GL / Intel XMM7360 LTE modem
124 stars 21 forks source link

Hint needed; cannot register... #28

Closed nlincke closed 4 years ago

nlincke commented 4 years ago

Hey,

i know that this repo will no longer be developed. But i would like to get it working on my x1g7 before i try the pci driver....

You would realy make me very happy if one of you could help me get it working...

I got the modem up...

mmcli -m 0                                                                                       :(
  -----------------------------
  General  |         dbus path: /org/freedesktop/ModemManager1/Modem/0
           |         device id: 084d438dc60a2ec7c5077d6f1972556482b805e9
  -----------------------------
  Hardware |      manufacturer: Fibocom
           |             model: MBIM + 3 CDC-ACM
           | firmware revision: 18500.5001.00.01.20.75
           |      h/w revision: V1.0.4
           |         supported: gsm-umts, lte
           |           current: gsm-umts, lte
           |      equipment id: 015550001073334
  -----------------------------
  System   |            device: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7
           |           drivers: cdc_mbim
           |            plugin: Fibocom
           |      primary port: cdc-wdm0
           |             ports: cdc-wdm0 (mbim), wwp0s20f0u7 (net)
...
-----------------------------
  Status   |    unlock retries: sim-pin2 (3)
           |             state: enabled
           |       power state: on
           |    signal quality: 0% (cached)
  -----------------------------
  Modes    |         supported: allowed: 3g, 4g; preferred: none
           |           current: allowed: 3g, 4g; preferred: none
  -----------------------------
  IP       |         supported: ipv4, ipv6, ipv4v6
  -----------------------------
  3GPP     |              imei: <IMEI>
           |     enabled locks: sim, fixed-dialing
           |      registration: idle
  -----------------------------
  SIM      |         dbus path: /org/freedesktop/ModemManager1/SIM/0

if i run

mmcli -m 0 --3gpp-scan

i get:

error: couldn't scan networks in the modem: 'GDBus.Error:org.freedesktop.libmbim.Error.Status.Busy: Busy'

If i run ModemManager in debugging and try connect i see this:

odemManager[5395]: <debug> [1581889376.369376] User request to connect modem
ModemManager[5395]: <info>  [1581889376.370868] Simple connect started...
ModemManager[5395]: <debug> [1581889376.370890]    PIN: unspecified
ModemManager[5395]: <debug> [1581889376.370899]    Operator ID: unspecified
ModemManager[5395]: <debug> [1581889376.370905]    Allowed roaming: yes
ModemManager[5395]: <debug> [1581889376.370911]    APN: internet.eplus.de
ModemManager[5395]: <debug> [1581889376.370918]    IP family: ipv4
ModemManager[5395]: <debug> [1581889376.370925]    Allowed authentication: none, pap, chap, mschap, mschapv2, eap
ModemManager[5395]: <debug> [1581889376.370930]    User: eplus
ModemManager[5395]: <debug> [1581889376.370934]    Password: gprs
ModemManager[5395]: <info>  [1581889376.370938] Simple connect state (4/8): Wait to get fully enabled
ModemManager[5395]: <info>  [1581889376.370973] Simple connect state (5/8): Register
ModemManager[5395]: <debug> [1581889376.370994] Launching automatic network registration...
ModemManager[5395]: [/dev/cdc-wdm0] Sent message...
<<<<<< RAW:
<<<<<<   length = 64
<<<<<<   data   = 03:00:00:00:40:00:00:00:29:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:09:00:00:00:01:00:00:00:10:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
ModemManager[5395]: [/dev/cdc-wdm0] Sent message (translated)...
<<<<<< Header:
<<<<<<   length      = 64
<<<<<<   type        = command (0x00000003)
<<<<<<   transaction = 41
<<<<<< Fragment header:
<<<<<<   total   = 1
<<<<<<   current = 0
<<<<<< Contents:
<<<<<<   service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
<<<<<<   cid     = 'register-state' (0x00000009)
<<<<<<   type    = 'set' (0x00000001)
<<<<<< Fields:
<<<<<<   ProviderId = '(null)'
<<<<<<   RegisterAction = 'automatic'
<<<<<<   DataClass = '(null)'
ModemManager[5395]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>>   length = 96
>>>>>>   data   = 03:00:00:80:60:00:00:00:29:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:09:00:00:00:07:00:00:00:30:00:00:00:00:00:00:00:01:00:00:00:01:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:02:00:00:00
ModemManager[5395]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>>   length      = 96
>>>>>>   type        = command-done (0x80000003)
>>>>>>   transaction = 41
>>>>>> Fragment header:
>>>>>>   total   = 1
>>>>>>   current = 0
>>>>>> Contents:
>>>>>>   status error = 'NotRegistered' (0x00000007)
>>>>>>   service      = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
>>>>>>   cid          = 'register-state' (0x00000009)
ModemManager[5395]: <debug> [1581889376.486033] building consolidated registration state: cs 'idle', ps 'idle', eps 'idle' --> 'idle'
ModemManager[5395]: <debug> [1581889376.486062] building consolidated registration state: cs 'idle', ps 'idle', eps 'idle' --> 'idle'
ModemManager[5395]: <debug> [1581889376.486082] building consolidated registration state: cs 'idle', ps 'idle', eps 'idle' --> 'idle'
ModemManager[5395]: <debug> [1581889376.494667] User request to disconnect modem (all bearers)
ModemManager[5395]: <debug> [1581889376.500733] User request to disconnect modem (all bearers)
Gottox commented 4 years ago

Looks like the fdd lock is still active: https://github.com/xmm7360/xmm7360-usb-modeswitch#fcc-lock

nlincke commented 4 years ago

Thanks fpr the replay. I did what was described there. I run at@nvm:fix_cat_fcclock.fcclock_mode=0 and now i am able to change CFUN etc. Anyway, it does not change anything....

nlincke commented 4 years ago

Do you have any idea what could went wrong. Is it possible to check if the FCC Lock is successfully removed?

nlincke commented 4 years ago

In case anyone finds this. I yould get it to work. I had to use the modem once under windows. After this I was able to use it under linux (Arch on an Lenovo Thinkpad X1 gen7) as well. In preparation of the PCI driver, I also disable the pin of the SIM...

So I guess the FCC hack did not work for me?!? Or i did something wrong...