Modify

Opened 7 years ago

Last modified 5 years ago

#876 investigate enhancement

Support 3G dongle: Huawei E1820

Reported by: koter84@… Owned by:
Priority: normal Milestone:
Component: fon-network-3g Version: N/A
Severity: unknown
Cc: Hardware: both

Description

i tested my 3G dongle today, and it doesn't work.. i don't see any errors in the logs, but there is no internet connection, and the UMTS/3G page shows that it is still dialing in. This is without a hub, directly to the fonera.

its a T-Mobile NL Huawei E1820

logread gave a lot of onlined messages..

root@Fonera:~# logread -f
Jul 13 21:59:25 Fonera user.emerg syslog: onlined: failed to resolve hostname updates.fon.com: No such file or directory

so i grep'd them away..

root@Fonera:~# logread -f|grep -v 'onlined: failed'
Jul 13 21:59:53 Fonera user.debug kernel: hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
Jul 13 21:59:53 Fonera user.debug kernel: hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
Jul 13 21:59:54 Fonera user.debug kernel: hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
Jul 13 21:59:54 Fonera user.info kernel: usb 1-1: new high speed USB device using dwc_otg and address 2
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1: default language 0x0409
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1: new device strings: Mfr=3, Product=2, SerialNumber=0
Jul 13 21:59:54 Fonera user.info kernel: usb 1-1: Product: HUAWEI Mobile
Jul 13 21:59:54 Fonera user.info kernel: usb 1-1: Manufacturer: Huawei Technologies
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1: uevent
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1: usb_probe_device
Jul 13 21:59:54 Fonera user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1: adding 1-1:1.0 (config #1, interface 0)
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1:1.0: uevent
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage 1-1:1.0: usb_probe_interface
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage 1-1:1.0: usb_probe_interface - got id
Jul 13 21:59:54 Fonera user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1: adding 1-1:1.1 (config #1, interface 1)
Jul 13 21:59:54 Fonera user.debug kernel: usb 1-1:1.1: uevent
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage 1-1:1.1: usb_probe_interface
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage 1-1:1.1: usb_probe_interface - got id
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage: device found at 2
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage: waiting for device to settle before scanning
Jul 13 21:59:54 Fonera user.info kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jul 13 21:59:54 Fonera user.debug kernel: drivers/usb/core/inode.c: creating file '002'
Jul 13 21:59:54 Fonera user.debug kernel: hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
Jul 13 21:59:54 Fonera user.debug kernel: hub 1-0:1.0: port 1 enable change, status 00000503
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage: device found at 2
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage: waiting for device to settle before scanning
Jul 13 21:59:54 Fonera user.emerg syslog: 3g hotplug
Jul 13 21:59:54 Fonera user.emerg syslog: 12d1:1446 /etc/usb_modeswitch/12d1:1446
Jul 13 21:59:54 Fonera user.emerg syslog: starting usb_modeswitch
Jul 13 21:59:54 Fonera user.debug kernel: usb-storage 1-1:1.0: disconnect by usbfs
Jul 13 21:59:54 Fonera user.debug kernel:  usbdev1.2_ep81: ep_device_release called for usbdev1.2_ep81
Jul 13 21:59:54 Fonera user.debug kernel:  usbdev1.2_ep01: ep_device_release called for usbdev1.2_ep01
Jul 13 21:59:54 Fonera user.debug kernel:  usbdev1.2_ep81: ep_device_release called for usbdev1.2_ep81
Jul 13 21:59:54 Fonera user.debug kernel:  usbdev1.2_ep01: ep_device_release called for usbdev1.2_ep01
Jul 13 21:59:54 Fonera user.emerg syslog: 3g hotplug
Jul 13 21:59:54 Fonera user.warn kernel: usb 1-1: usbfs: process 1901 (usb_modeswitch) did not claim interface 0 before use
Jul 13 21:59:54 Fonera user.info : Looking for target devices ...
Jul 13 21:59:54 Fonera user.info :  No devices in target mode or class found
Jul 13 21:59:54 Fonera user.info : Looking for default devices ...
Jul 13 21:59:54 Fonera user.info :  Found default devices (1)
Jul 13 21:59:54 Fonera user.info : Accessing device 002 on bus 001 ...
Jul 13 21:59:54 Fonera user.info : Using endpoints 0x01 (out) and 0x81 (in)
Jul 13 21:59:54 Fonera user.info : Inquiring device details; driver will be detached ...
Jul 13 21:59:54 Fonera user.info : Looking for active driver ...
Jul 13 21:59:54 Fonera user.info :  OK, driver found ("usb-storage")
Jul 13 21:59:54 Fonera user.info :  OK, driver "usb-storage" detached
Jul 13 21:59:54 Fonera user.info : SCSI inquiry data (for identification)
Jul 13 21:59:54 Fonera user.info : -------------------------
Jul 13 21:59:54 Fonera user.info :   Vendor String: HUAWEI  
Jul 13 21:59:54 Fonera user.info :    Model String: Mass Storage    
Jul 13 21:59:54 Fonera user.info : Revision String: 2.31
Jul 13 21:59:54 Fonera user.info : -------------------------
Jul 13 21:59:54 Fonera user.info : USB description data (for identification)
Jul 13 21:59:54 Fonera user.info : -------------------------
Jul 13 21:59:54 Fonera user.info : Manufacturer: Huawei Technologies
Jul 13 21:59:54 Fonera user.info :      Product: HUAWEI Mobile
Jul 13 21:59:54 Fonera user.info :   Serial No.: not provided
Jul 13 21:59:54 Fonera user.info : -------------------------
Jul 13 21:59:54 Fonera user.info : Setting up communication with interface 0 ...
Jul 13 21:59:54 Fonera user.info : Trying to send the message to endpoint 0x01 ...
Jul 13 21:59:54 Fonera user.emerg syslog: 3g hotplug
Jul 13 21:59:54 Fonera user.debug kernel: hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
Jul 13 21:59:54 Fonera user.debug kernel: hub 1-0:1.0: port 1 enable change, status 00000500
Jul 13 21:59:54 Fonera user.err kernel: hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
Jul 13 21:59:54 Fonera user.debug kernel: hub 1-0:1.0: port 1, status 0500, change 0002, 480 Mb/s
Jul 13 21:59:54 Fonera user.info kernel: usb 1-1: USB disconnect, address 2
Jul 13 21:59:59 Fonera user.debug kernel: usb-storage: device scan complete
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1: usb_modeswitch timed out on ep0out len=0/0
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1: unregistering device
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1: usb_disable_device nuking all URBs
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1: unregistering interface 1-1:1.0
Jul 13 21:59:59 Fonera user.debug kernel:  usbdev1.2_ep81: ep_device_release called for usbdev1.2_ep81
Jul 13 21:59:59 Fonera user.debug kernel:  usbdev1.2_ep01: ep_device_release called for usbdev1.2_ep01
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1:1.0: uevent
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1: unregistering interface 1-1:1.1
Jul 13 21:59:59 Fonera user.debug kernel:  usbdev1.2_ep02: ep_device_release called for usbdev1.2_ep02
Jul 13 21:59:59 Fonera user.debug kernel:  usbdev1.2_ep82: ep_device_release called for usbdev1.2_ep82
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1:1.1: uevent
Jul 13 21:59:59 Fonera user.debug kernel:  usbdev1.2_ep00: ep_device_release called for usbdev1.2_ep00
Jul 13 21:59:59 Fonera user.debug kernel: usb 1-1: uevent
Jul 13 21:59:59 Fonera user.debug kernel: hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
Jul 13 21:59:59 Fonera user.debug kernel: hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
Jul 13 21:59:59 Fonera user.emerg syslog: 3g hotplug
Jul 13 21:59:59 Fonera user.emerg syslog: 3g hotplug
Jul 13 21:59:59 Fonera user.debug kernel: hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
Jul 13 21:59:59 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: new high speed USB device using dwc_otg and address 3
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: default language 0x0409
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: new device strings: Mfr=3, Product=2, SerialNumber=0
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: Product: HUAWEI Mobile
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: Manufacturer: Huawei Technologies
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: uevent
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: usb_probe_device
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: adding 1-1:1.0 (config #1, interface 0)
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1:1.0: uevent
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.0: usb_probe_interface
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.0: usb_probe_interface - got id
Jul 13 22:00:00 Fonera user.info kernel: option 1-1:1.0: GSM modem (1-port) converter detected
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jul 13 22:00:00 Fonera user.warn kernel: ttyusb -> 1 ttyUSB0 option 12D114AC
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: adding 1-1:1.1 (config #1, interface 1)
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1:1.1: uevent
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.1: usb_probe_interface
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.1: usb_probe_interface - got id
Jul 13 22:00:00 Fonera user.info kernel: option 1-1:1.1: GSM modem (1-port) converter detected
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jul 13 22:00:00 Fonera user.warn kernel: ttyusb -> 1 ttyUSB1 option 12D114AC
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: adding 1-1:1.2 (config #1, interface 2)
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1:1.2: uevent
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.2: usb_probe_interface
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.2: usb_probe_interface - got id
Jul 13 22:00:00 Fonera user.info kernel: option 1-1:1.2: GSM modem (1-port) converter detected
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Jul 13 22:00:00 Fonera user.warn kernel: ttyusb -> 1 ttyUSB2 option 12D114AC
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: adding 1-1:1.3 (config #1, interface 3)
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1:1.3: uevent
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.3: usb_probe_interface
Jul 13 22:00:00 Fonera user.debug kernel: option 1-1:1.3: usb_probe_interface - got id
Jul 13 22:00:00 Fonera user.info kernel: option 1-1:1.3: GSM modem (1-port) converter detected
Jul 13 22:00:00 Fonera user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
Jul 13 22:00:00 Fonera user.warn kernel: ttyusb -> 1 ttyUSB3 option 12D114AC
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: adding 1-1:1.4 (config #1, interface 4)
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1:1.4: uevent
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage 1-1:1.4: usb_probe_interface
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage 1-1:1.4: usb_probe_interface - got id
Jul 13 22:00:00 Fonera user.info kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1: adding 1-1:1.5 (config #1, interface 5)
Jul 13 22:00:00 Fonera user.debug kernel: usb 1-1:1.5: uevent
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage 1-1:1.5: usb_probe_interface
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage 1-1:1.5: usb_probe_interface - got id
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage: device found at 3
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage: waiting for device to settle before scanning
Jul 13 22:00:00 Fonera user.info kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Jul 13 22:00:00 Fonera user.debug kernel: drivers/usb/core/inode.c: creating file '003'
Jul 13 22:00:00 Fonera user.debug kernel: hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
Jul 13 22:00:00 Fonera user.debug kernel: hub 1-0:1.0: port 1 enable change, status 00000503
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage: device found at 3
Jul 13 22:00:00 Fonera user.debug kernel: usb-storage: waiting for device to settle before scanning
Jul 13 22:00:00 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:00 Fonera user.emerg syslog: 12d1:14ac /etc/usb_modeswitch/12d1:14ac
Jul 13 22:00:00 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:00 Fonera user.info :  OK, message successfully sent
Jul 13 22:00:00 Fonera user.info :  Device is gone, skipping any further commands
Jul 13 22:00:00 Fonera user.info : Checking for mode switch (max. 20 times, once per second) ...
Jul 13 22:00:00 Fonera user.info :  Original device is gone already, not checking
Jul 13 22:00:00 Fonera user.info :  Searching for target devices ...
Jul 13 22:00:00 Fonera user.info :  Found correct target device
Jul 13 22:00:00 Fonera user.info : Mode switch succeeded. Bye.
Jul 13 22:00:00 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:00 Fonera user.crit fonstated: enqueue --> UMTS
Jul 13 22:00:00 Fonera user.crit fonstated: running event /etc/fonstated/UMTS
Jul 13 22:00:00 Fonera user.notice root: runnow --> /etc/fonstated/ConfigFON
Jul 13 22:00:01 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:01 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:01 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:01 Fonera user.emerg syslog: 3g hotplug
Jul 13 22:00:02 Fonera user.notice root: runnow --> /etc/fonstated/ConfigWan
Jul 13 22:00:03 Fonera user.notice root: scan_umts
Jul 13 22:00:03 Fonera user.notice root: scan_umts
Jul 13 22:00:03 Fonera user.crit fonstated: finished running /etc/fonstated/UMTS
Jul 13 22:00:05 Fonera user.notice kernel: scsi 2:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jul 13 22:00:05 Fonera user.notice kernel: scsi 3:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
Jul 13 22:00:05 Fonera user.notice kernel: sd 3:0:0:0: Attached scsi removable disk sda
Jul 13 22:00:05 Fonera user.debug kernel: usb-storage: device scan complete
Jul 13 22:00:05 Fonera user.debug kernel: usb-storage: device scan complete

in the /etc/usb_modeswitch/ dir i do find the right id: 12d1:1446 and it looks like the modeswitch goes OK as well. i tried umount-ing the cd-drive.. but that didn't help

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by koter84@…

bump? or does anybody know what i can test?

comment:2 Changed 7 years ago by matthijs

  • Status changed from new to investigate

Sorry, 3G improvements aren't high on the list of the next release. Also, debugging is a bit hard at the moment. We are working on improvements to the 3G support, which should make it more reliable and easier to debug / change settings. Please hang in there.

As for your actual issue, the onlined messages are expected: Since your internet connection isn't working. The problem might be that umtsd is using the wrong ttyUSB ports, you could try to play around with the /Apps/umtsd.lua script (just below "some dummy data" are some default settings. You seem to have ttyUSB0 to ttyUSB3 available).

comment:3 Changed 7 years ago by koter84@…

last week i finally had some time to play around with the router, i successfully compiled the svn-trunk version of the fon-ng firmware and loaded it into the router.. :D (i am now running version 1805)

i also edited the umtsd.lua script, and tried every combination of the ttyUSBx ports as cmd and data port, but nothing worked. After every change to the script i just ran /Apps/umtsd.lua ... after trying every combination, i thought about rebooting after every edit, but i didn't have enough time to test that. (is it needed to reboot after changing this script? or was my method correct)

output from /Apps/umtsd.lua

state --> 1--ERROR
state --> 2--INIT

state --> 1--ERROR
state --> 2--INIT

i placed my cmd/data variables after all the if/else statements which change these two variables, so i'm sure my options were used by the script... since the usb-stick is working on my ubuntu desktop system, i did a 'tail -f /var/syslog' just before plugging in the modem. i found mainly references to USB0 and some to USB3, while USB1 and USB2 just show up once, looks like they are being probed but don't respond... but on the fonera, using these ports i still can't get a connection...

comment:4 Changed 7 years ago by matthijs

Not rebooting is ok, umtsd should be restarted whenever you plug in your 3G modem.

If you use the values from your Ubuntu system, do you get any different logread output (in particular output mentioning the "chat" program, which runs a predefined command / reply sequence against the "cmd" port I think)?

comment:5 Changed 5 years ago by matthijs

  • Hardware changed from 2.0n (FON2300) to both
  • Summary changed from Huawei E1820 no internet to Support 3G dongle: Huawei E1820
  • Type changed from bug to enhancement
  • Version changed from 2.3.6.0 (Gari) to N/A

As part of the upcoming 2.3.7.0 firmware release, we're reviewing old open tickets to see if they are still relevant, which is why you get this response now.

We will revamp the 3G point at some point in the future. When this happens, we'll need to revisit supporting this 3G stick as well.

Note that #989 also talks about this 3G stick and suggests that adding this to /etc/config/umtsd will help:

config 'umtsdevice' 'option12D114AC'
       option 'data' '/dev/ttyUSB0'
       option 'cmd' '/dev/ttyUSB0'
       option 'huawei' '1'
       option 'vendor' 'Huawei'
       option 'model' 'E1820'

It also suggests that running this command is needed, but perhaps newer usb-modeswitch versions take care of this already:

echo "12d1 14ac" > /sys/bus/usb-serial/drivers/option1/new_id

Add Comment

Modify Ticket

Action
as investigate The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.