For me it bails out on the first ATZ command if no PIN has been supplied. Could we just switch the order at which ATZ and AT+CPIN is sent to the device?
Using 'option' driver with the following device btw: 413c:8138 Dell Computer Corp. Wireless 5520 Voda I Mobile Broadband (3G HSDPA) Minicard EAP-SIM Port
Here are the relevant log parts with serial debugging:
Before PIN has been entered by other means than nm:
NetworkManager: <debug> [1225751171.141391] nm_serial_device_open(): (ttyUSB0) opening device...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <debug> [1225751171.254873] nm_serial_debug(): Sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
NetworkManager: <debug> [1225751171.303039] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS=0
For me it bails out on the first ATZ command if no PIN has been supplied. Could we just switch the order at which ATZ and AT+CPIN is sent to the device?
Using 'option' driver with the following device btw: 413c:8138 Dell Computer Corp. Wireless 5520 Voda I Mobile Broadband (3G HSDPA) Minicard EAP-SIM Port
Here are the relevant log parts with serial debugging:
Before PIN has been entered by other means than nm: device_ open(): (ttyUSB0) opening device...
NetworkManager: <debug> [1225751171.141391] nm_serial_
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <debug> [1225751171.254873] nm_serial_debug(): Sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
NetworkManager: <debug> [1225751171.303039] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS=0
ERROR
'
NetworkManager: <WARN> init_done(): Modem initialization failed
After: device_ open(): (ttyUSB0) opening device...
NetworkManager: <debug> [1225751314.430340] nm_serial_
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <debug> [1225751314.544000] nm_serial_debug(): Sending: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
NetworkManager: <debug> [1225751314.583058] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS='
NetworkManager: <debug> [1225751314.583896] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS=0
'
NetworkManager: <debug> [1225751314.593872] nm_serial_debug(): Got: 'ATZ E0 V1 X4 &C1 +FCLASS=0
OK
'
NetworkManager: <debug> [1225751314.593968] nm_serial_debug(): Sending: 'AT+CPIN?
'
NetworkManager: <debug> [1225751314.603890] nm_serial_debug(): Got: '
+CPIN: READY
OK
'
NetworkManager: <info> (ttyUSB0): powering up...
NetworkManager: <debug> [1225751314.604016] nm_serial_debug(): Sending: 'AT+CFUN=1
'
NetworkManager: <debug> [1225751314.615876] nm_serial_debug(): Got: '
OK
'
NetworkManager: <debug> [1225751314.616030] nm_serial_debug(): Sending: 'AT+CREG?
'
NetworkManager: <debug> [1225751314.625881] nm_serial_debug(): Got: '
+CREG: 0,1
OK
'
NetworkManager: <info> Registered on Home network
NetworkManager: <debug> [1225751314.626162] nm_serial_debug(): Sending: 'AT+COPS?
'
NetworkManager: <debug> [1225751315.039947] nm_serial_debug(): Got: '
+COPS: 1,0,"3",2
OK
'
NetworkManager: <info> Associated with network: +COPS: 1,0,"3",2
NetworkManager: <debug> [1225751315.040504] nm_serial_debug(): Sending: 'AT+CGDCONT=1, "IP", "bredband.tre.se"
'
NetworkManager: <debug> [1225751315.120059] nm_serial_debug(): Got: '
OK
'
NetworkManager: <debug> [1225751315.120533] nm_serial_debug(): Sending: 'ATD*99***1#
'
NetworkManager: <debug> [1225751315.145053] nm_serial_debug(): Got: '
CONNECT HSDPA 3.6
'
NetworkManager: <info> Connected, Woo!