The above problem does not seem to occur when the SIM is unlocked, only when the SIM is using a PIN.
A SIM using authentication and no PIN works fine. I have previously had problems using a PIN.
I don’t know how connections happen with the network.
Is it possible that the same connection identifier is being used between two devices if the SIM is locked on boot?
Perhaps that is why the credentials from one device ended up on another, because the connection was essentially being reused between two different devices.
root@swi-mdm9x28-wp:~# cm sim
SIM card is inserted and locked (LE_SIM_INSERTED).
root@swi-mdm9x28-wp:~# cm info
Device: WP7702
IMEI: 352653090002775
IMEISV: 2
FSN: VU735370350701
Firmware Version: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
Bootloader Version: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
MCU Version:
PRI Part Number (PN): 9907365
PRI Revision: 001.001
Carrier PRI Name: GENERIC
Carrier PRI Revision: 001.028_001
SKU: 1103530
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 29 Unexpected: 0
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: 123456
PDP Type: IPV4V6
Connected: no
root@swi-mdm9x28-wp:~# cm data apn 11111
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: 11111
PDP Type: IPV4V6
Connected: no
root@swi-mdm9x28-wp:~# cm sim enterpin 0000
Success.
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: 11111
PDP Type: IPV4V6
Connected: no
root@swi-mdm9x28-wp:~# cm data apn 99999
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: 99999
PDP Type: IPV4V6
Connected: no
root@swi-mdm9x28-wp:~# cm sim
SIM card is inserted and unlocked (LE_SIM_READY).
I have tried for a long time now to set the apn and auth on data profile 1.
Possibly the network keeps overriding the values I put in, but they are never applied.
The values they are being replaced with are valid apn details, they will allow the device to connect to the network.
The apn details I am trying to apply are for a corporate VPN.
The solution appears to be to use data profile 2, which seems to work fine every time.
I used your way of changing the APN @shib but when I want to run cm data connect this what happens:
root@swi-mdm9x28-wp:~# cm data connect
Setting up profile 1
Connecting ... ok
Checking if device 'rmnet_data0' is up ... ok
Routing inet ... ok
mv: can't remove '/etc/resolv.conf': Device or resource busy
Routing inet6 ... ok
mv: can't remove '/etc/resolv.conf': Device or resource busy
Testing connection ... ok
After that I try to ping mangoh.io but not a single packet is received: