> My 3G modem (Huawei E5) fails to setup network connection after
long
> time 'associating'.
>
> By trace the debug log, it is found that the PPP is not setup. The
> callback function at_cgdcont_cb() is not ever called, which is set to
> callback function when sending AT command 'AT+CGDCONT=cid' in function
> at_gprs_activate_primary();
>
>
>
> The callback function at_cgdata_cb() is not called, thus the PPP is not
> setup. Do you have seen similiar same issue?
>
> I paste the debug log with AT commands.
>
It sounds like the udev detection is telling oFono to use the wrong tty
for the modem device. It might be using one of the binary ports which
is not replying to AT commands. You will need to investigate this and
update the udev rule appropriately.
Thanks for your prompt reply.
I noticed that only ttyUSB0 and ttyUSB1 are exposed, but on Windows, there are four ports
(0-3) instead.
The Pcui are attached to ttyUSB1 - which is Mass storage port shown on Windows. On
Windows, the Pcui are port 2.
Though I force to write in ofono.rule, and assign OFONO_IFACE_NUM=2 for Pcui, seems it
does not work.
Here's related dmesg info:
[11002.630623] usb 1-6: USB disconnect, address 47
[11002.632193] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from
ttyUSB0
[11002.632596] option 1-6:1.0: device disconnected
[11002.661677] option: option_instat_callback: error -108
[11002.664322] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from
ttyUSB1
[11002.664711] option 1-6:1.2: device disconnected
[11025.728212] usb 4-2: new full speed USB device using uhci_hcd and address 4
[11025.842218] usb 4-2: device descriptor read/64, error -71
[11026.004260] hub 4-0:1.0: unable to enumerate USB device on port 2
[11026.224205] usb 1-6: new high speed USB device using ehci_hcd and address 49
[11026.349101] usb 1-6: New USB device found, idVendor=12d1, idProduct=1446
[11026.349121] usb 1-6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[11026.349137] usb 1-6: Product: HUAWEI Mobile Connect
[11026.349149] usb 1-6: Manufacturer: Huawei Incorporated
[11026.349161] usb 1-6: SerialNumber: 1234567890ABCDEF
[11026.354403] scsi41 : usb-storage 1-6:1.0
[11030.089585] usb 1-6: USB disconnect, address 49
[11030.955202] usb 1-6: new high speed USB device using ehci_hcd and address 50
[11031.084393] usb 1-6: New USB device found, idVendor=12d1, idProduct=142d
[11031.084413] usb 1-6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[11031.084428] usb 1-6: Product: HUAWEI Mobile Connect
[11031.084440] usb 1-6: Manufacturer: Huawei Incorporated
[11031.084452] usb 1-6: SerialNumber: 1234567890ABCDEF
[11031.098742] option 1-6:1.0: GSM modem (1-port) converter detected
[11031.100687] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0
[11031.101946] scsi42 : usb-storage 1-6:1.1
[11031.103666] option 1-6:1.2: GSM modem (1-port) converter detected
[11031.104791] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1
[11032.109812] scsi 42:0:0:0: CD-ROM HUAWEI Mass storage ffff PQ: 0 ANSI:
2
[11032.118588] scsi 42:0:0:1: Direct-Access HUAWEI Mass storage ffff PQ: 0 ANSI:
2
[11032.178245] sr0: scsi-1 drive
[11032.180431] sr 42:0:0:0: Attached scsi CD-ROM sr0
[11032.181592] sr 42:0:0:0: Attached scsi generic sg1 type 5
[11032.183663] sd 42:0:0:1: Attached scsi generic sg2 type 0
[11032.250581] sd 42:0:0:1: [sdb] Attached SCSI removable disk
Just suspect it is an issue in option driver.
Regards,
-Denis