> Von: Aleksander Morgado <aleksan...@aleksander.es> 
> Gesendet: Samstag, 12. Februar 2022 01:02
>
> Could it be that is the default context for the initial defaut EPS bearer 
> settings?
> Carsten, could you try to setup the APN settings you require with 
> --3gpp-set-initial-eps-bearer-settings instead?
>
> E.g. mmcli -m a
> --3gpp-set-initial-eps-bearer-settings="apn=apn.vodafone.de,ip-type=ipv4,allowed-auth=pap,user=abc,password=def"

When trying to set the EPS bearer settings I get following error.

root@dev:~# mmcli -m 0 --3gpp-set-initial-eps-bearer-settings=""
error: couldn't set initial EPS bearer properties: 
'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: LTE attach 
configuration is unsupported'

It doesn't make any difference whether I use a valid APN configuration or leave 
it empty.
Possibly, that settings are preconfigured on the SIM and cannot be changed for 
that private APN.

> > root@dev:~# mmcli -m 0 
> > --3gpp-profile-manager-set="apn=apn.vodafone.de,ip-type=ipv4,allowed-auth=pap,user=abc,password=def"
> > error: couldn't set profile: 
> > 'GDBus.Error:org.freedesktop.libmbim.Error.Core.InvalidMessage: Couldn't 
> > validate update of profile '3': cannot read string data (6 bytes) (274 < 
> > 278)'
> >
>
> Oh, that's an error deep in the MBIM protocol. Could be a bug in the message 
> format, or a malformed response sent by the module (I would bet on the latter 
> 😀).
> Can you gather ModemManager *debug* logs while you run that operation?

<snip>
ModemManager[14439]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>>   length = 232
>>>>>>   data   = 
>>>>>> 03:00:00:80:E8:00:00:00:51: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:0D:00:00:00:00:00:00:00:B8:00:00:00:03:00:00:00:1C:00:00:00:34:00:00:00:50:00:00:00:34:00:00:00:84:00:00:00:34:00:00:00:01:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E: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:00:00:00:00:00:02:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E: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:00:00:00:00:00:03:00:00:00:B4:3F:75:8C:A5:60:4B:46:B3:5E:C5:86:96:41:FB:54: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:00:00:00:00:00
ModemManager[14439]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>>   length      = 232
>>>>>>   type        = command-done (0x80000003)
>>>>>>   transaction = 81
>>>>>> Fragment header:
>>>>>>   total   = 1
>>>>>>   current = 0
>>>>>> Contents:
>>>>>>   status error = 'None' (0x00000000)
>>>>>>   service      = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
>>>>>>   cid          = 'provisioned-contexts' (0x0000000d)
>>>>>> Fields:
>>>>>>   ProvisionedContextsCount = '3'
>>>>>>   ProvisionedContexts = '{
>>>>>>     [0] = {
>>>>>>           ContextId = '1'
>>>>>>           ContextType = '7e5e2a7e-4e6f-7272-736b-656e7e5e2a7e'
>>>>>>           AccessString = '(null)'
>>>>>>           UserName = '(null)'
>>>>>>           Password = '(null)'
>>>>>>           Compression = '0'
>>>>>>           AuthProtocol = '0'
>>>>>>     },
>>>>>>     [1] = {
>>>>>>           ContextId = '2'
>>>>>>           ContextType = '7e5e2a7e-4e6f-7272-736b-656e7e5e2a7e'
>>>>>>           AccessString = '(null)'
>>>>>>           UserName = '(null)'
>>>>>>           Password = '(null)'
>>>>>>           Compression = '0'
>>>>>>           AuthProtocol = '0'
>>>>>>     },
>>>>>>     [2] = {
>>>>>>           ContextId = '3'
>>>>>>           ContextType = 'b43f758c-a560-4b46-b35e-c5869641fb54'
>>>>>>           AccessString = '(null)'
>>>>>>           UserName = '(null)'
>>>>>>           Password = '(null)'
>>>>>>           Compression = '0'
>>>>>>           AuthProtocol = '0'
>>>>>>     },
>>>>>>   }'
ModemManager[14439]: <debug> [1644837060.222271] [modem0] set profile state 
(3/8): select profile (new)
ModemManager[14439]: <debug> [1644837060.224143] [modem0] creating profile '3'
ModemManager[14439]: <debug> [1644837060.225663] [modem0] set profile state 
(4/8): check activated profile
ModemManager[14439]: <debug> [1644837060.228887] [modem0] set profile state 
(5/8): deactivate profile
ModemManager[14439]: <debug> [1644837060.230210] [modem0] skipping profile 
deactivation
ModemManager[14439]: <debug> [1644837060.231761] [modem0] set profile state 
(6/8): store profile
ModemManager[14439]: <debug> [1644837060.232379] [modem0] using default 
(internet) APN type
ModemManager[14439]: <debug> [1644837060.233677] [modem0] storing profile '3': 
apn 'apn.vodafone.de', apn type 'none'
ModemManager[14439]: [/dev/cdc-wdm0] Sent message...
<<<<<< RAW:
<<<<<<   length = 156
<<<<<<   data   = 
03:00:00:00:9C:00:00:00:52: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:0D:00:00:00:01:00:00:00:6C:00:00:00:03:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E:3C:00:00:00:1E:00:00:00:5C:00:00:00:06:00:00:00:64:00:00:00:06:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:00:00:00:00:61:00:70:00:6E:00:2E:00:76:00:6F:00:64:00:61:00:66:00:6F:00:6E:00:65:00:2E:00:64:00:65:00:00:00:61:00:62:00:63:00:00:00:64:00:65:00:66:00:00:00
ModemManager[14439]: [/dev/cdc-wdm0] Sent message (translated)...
<<<<<< Header:
<<<<<<   length      = 156
<<<<<<   type        = command (0x00000003)
<<<<<<   transaction = 82
<<<<<< Fragment header:
<<<<<<   total   = 1
<<<<<<   current = 0
<<<<<< Contents:
<<<<<<   service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
<<<<<<   cid     = 'provisioned-contexts' (0x0000000d)
<<<<<<   type    = 'set' (0x00000001)
<<<<<< Fields:
<<<<<<   ContextId = '3'
<<<<<<   ContextType = '7e5e2a7e-4e6f-7272-736b-656e7e5e2a7e'
<<<<<<   AccessString = 'apn.vodafone.de'
<<<<<<   UserName = 'abc'
<<<<<<   Password = 'def'
<<<<<<   Compression = 'none'
<<<<<<   AuthProtocol = 'pap'
<<<<<<   ProviderId = '(null)'
ModemManager[14439]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>>   length = 274
>>>>>>   data   = 
>>>>>> 03:00:00:80:12:01:00:00:52: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:0D:00:00:00:00:00:00:00:E2:00:00:00:03:00:00:00:1C:00:00:00:34:00:00:00:50:00:00:00:34:00:00:00:84:00:00:00:5E:00:00:00:01:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E: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:00:00:00:00:00:02:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E: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:00:00:00:00:00:03:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E:34:00:00:00:1E:00:00:00:54:00:00:00:06:00:00:00:5C:00:00:00:06:00:00:00:00:00:00:00:01:00:00:00:61:00:70:00:6E:00:2E:00:76:00:6F:00:64:00:61:00:66:00:6F:00:6E:00:65:00:2E:00:64:00:65:00:00:00:61:00:62:00:63:00:00:00:64:00
ModemManager[14439]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>>   length      = 274
>>>>>>   type        = command-done (0x80000003)
>>>>>>   transaction = 82
>>>>>> Fragment header:
>>>>>>   total   = 1
>>>>>>   current = 0
>>>>>> Contents:
>>>>>>   status error = 'None' (0x00000000)
>>>>>>   service      = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
>>>>>>   cid          = 'provisioned-contexts' (0x0000000d)
>>>>>> Fields:
>>>>>>   ProvisionedContextsCount = '3'
>>>>>>   ProvisionedContexts = n/a: cannot read string data (6 bytes) (274 < 
>>>>>> 278)
ModemManager[14439]: <debug> [1644837060.379273] [modem0] stored profile with 
id '3'
ModemManager[14439]: <debug> [1644837060.383129] [modem0] set profile state 
(7/8): list after
ModemManager[14439]: <debug> [1644837060.387874] [modem0] querying provisioned 
contexts...
ModemManager[14439]: [/dev/cdc-wdm0] Sent message...
<<<<<< RAW:
<<<<<<   length = 48
<<<<<<   data   = 
03:00:00:00:30:00:00:00:53: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:0D:00:00:00:00:00:00:00:00:00:00:00
ModemManager[14439]: [/dev/cdc-wdm0] Sent message (translated)...
<<<<<< Header:
<<<<<<   length      = 48
<<<<<<   type        = command (0x00000003)
<<<<<<   transaction = 83
<<<<<< Fragment header:
<<<<<<   total   = 1
<<<<<<   current = 0
<<<<<< Contents:
<<<<<<   service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
<<<<<<   cid     = 'provisioned-contexts' (0x0000000d)
<<<<<<   type    = 'query' (0x00000000)
ModemManager[14439]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>>   length = 274
>>>>>>   data   = 
>>>>>> 03:00:00:80:12:01:00:00:53: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:0D:00:00:00:00:00:00:00:E2:00:00:00:03:00:00:00:1C:00:00:00:34:00:00:00:50:00:00:00:34:00:00:00:84:00:00:00:5E:00:00:00:01:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E: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:00:00:00:00:00:02:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E: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:00:00:00:00:00:03:00:00:00:7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E:34:00:00:00:1E:00:00:00:54:00:00:00:06:00:00:00:5C:00:00:00:06:00:00:00:00:00:00:00:01:00:00:00:61:00:70:00:6E:00:2E:00:76:00:6F:00:64:00:61:00:66:00:6F:00:6E:00:65:00:2E:00:64:00:65:00:00:00:61:00:62:00:63:00:00:00:64:00
ModemManager[14439]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>>   length      = 274
>>>>>>   type        = command-done (0x80000003)
>>>>>>   transaction = 83
>>>>>> Fragment header:
>>>>>>   total   = 1
>>>>>>   current = 0
>>>>>> Contents:
>>>>>>   status error = 'None' (0x00000000)
>>>>>>   service      = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
>>>>>>   cid          = 'provisioned-contexts' (0x0000000d)
>>>>>> Fields:
>>>>>>   ProvisionedContextsCount = '3'
>>>>>>   ProvisionedContexts = n/a: cannot read string data (6 bytes) (274 < 
>>>>>> 278)
ModemManager[14439]: [/dev/cdc-wdm0] Received message...
>>>>>> RAW:
>>>>>>   length = 64
>>>>>>   data   = 
>>>>>> 07:00:00:80:40:00:00:00:00: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:0B:00:00:00:14:00:00:00:13:00:00:00:00:00:00:00:3C:00:00:00:02:00:00:00:FF:FF:00:00
ModemManager[14439]: [/dev/cdc-wdm0] Received message (translated)...
>>>>>> Header:
>>>>>>   length      = 64
>>>>>>   type        = indicate-status (0x80000007)
>>>>>>   transaction = 0
>>>>>> Fragment header:
>>>>>>   total   = 1
>>>>>>   current = 0
>>>>>> Contents:
>>>>>>   service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
>>>>>>   cid     = 'signal-state' (0x0000000b)
>>>>>> Fields:
>>>>>>   Rssi = '19'
>>>>>>   ErrorRate = '0'
>>>>>>   SignalStrengthInterval = '60'
>>>>>>   RssiThreshold = '2'
>>>>>>   ErrorRateThreshold = '65535'

Thanks for your help and clarification on the other questions.

Carsten

Reply via email to