set_apn() in nm-gsm-device.c (#216) executes that command with white spaces, which would work for /dev/ttyUSB2 but not for /dev/ttyUSB0.
Removing those white spaces in set_apn() fixes the problem, however, I am not sure if the white spaces are required for something else / some other devices.
Oct 17 23:01:27 X31 NetworkManager: <info> (ttyUSB0): powering up...
Oct 17 23:01:27 X31 NetworkManager: <info> Registered on Home network
Oct 17 23:01:27 X31 NetworkManager: <info> Associated with network: +COPS: 0,0,"",2
Oct 17 23:01:27 X31 NetworkManager: <info> Connected, Woo!
with the rest working just fine.
However, the root cause of the problem is that /dev/ttyUSB0 is used and not /dev/ttyUSB2, which would be the correct device. As HAL is telling us that /dev/ttyUSB0 is the modem and not /dev/ttyUSB2 I assume either this is a HAL bug or something else I don't know/understand.
For now I've attached a patch changing the AT command in nm-gsm-device.c
some more research:
/dev/ttyUSB2:
AT+CGDCONT=1, "IP", "ISP.CINGULAR"
OK
AT+CGDCONT= 1,"IP", "ISP.CINGULAR"
OK
/dev/ttyUSB0:
AT+CGDCONT=1, "IP", "ISP.CINGULAR"
ERROR
AT+CGDCONT= 1,"IP", "ISP.CINGULAR"
OK
set_apn() in nm-gsm-device.c (#216) executes that command with white spaces, which would work for /dev/ttyUSB2 but not for /dev/ttyUSB0.
Removing those white spaces in set_apn() fixes the problem, however, I am not sure if the white spaces are required for something else / some other devices.
Oct 17 23:01:27 X31 NetworkManager: <info> (ttyUSB0): powering up...
Oct 17 23:01:27 X31 NetworkManager: <info> Registered on Home network
Oct 17 23:01:27 X31 NetworkManager: <info> Associated with network: +COPS: 0,0,"",2
Oct 17 23:01:27 X31 NetworkManager: <info> Connected, Woo!
with the rest working just fine.
However, the root cause of the problem is that /dev/ttyUSB0 is used and not /dev/ttyUSB2, which would be the correct device. As HAL is telling us that /dev/ttyUSB0 is the modem and not /dev/ttyUSB2 I assume either this is a HAL bug or something else I don't know/understand.
For now I've attached a patch changing the AT command in nm-gsm-device.c