1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Toastman's mod - Tether USB using netcfg?

Discussion in 'Tomato Firmware' started by Alex81, Nov 23, 2012.

  1. Alex81

    Alex81 Serious Server Member

    Hi friends! I have been using tomato for more than a year, thanks a lot for the contributions..

    I am trying to use my AT&T 4G hotspot as WAN connection (USB tethered mode)

    I'm using Toastman's mod on WRT610N v2 (tomato-K26USB-NVRAM60K-1.28.7500.4MIPSR2Toastman-RT-VLAN-Ext)

    Here is someone who got the same 4G hotspot working via netcfg: https://bbs.archlinux.org/viewtopic.php?id=135981

    Can the same be done in Tomato? I've tried to choose "3G modem" in the wan settings, but no luck. I have set the USB IP of the 4G modem to be 192.168.2.2 and my tomato is at 192.168.1.1

    ## quote ##

    I was trying to get my new cellular mobile hotspot (Sierra Wireless 754S) to work in tethered mode via USB cable with my laptop (I figured it would require less power than using the WiFi connection to it).
    At first I was trying to use wvdial as I did with my previous cellular modem, but I wasn't having much success. Then I figured out I could use netcfg, which I was already using for WiFi at home.
    I used the ethernet-dhcp example and just edited the line from eth0 to wwan0. No need for wpa_supplicant in tethered mode.
    /etc/network.d/attelevate {I chose attelevate for the filename}
    CONNECTION='ethernet' DESCRIPTION='A basic dhcp ethernet connection using iproute' INTERFACE='wwan0' IP='dhcp' ## for DHCPv6 #IP6='dhcp' ## for IPv6 autoconfiguration #IP6='stateless'
    # netcfg attelevate
    {starts the connection}

    HTH
     
  2. Alex81

    Alex81 Serious Server Member

    here is my log as well , in case someone can help. it seems that tomato correctly identifies the 4G as a sierra device (sierra is the manufacturer) but then it exits with some log entries. here is the log:

    ##
    Dec 31 22:05:36 unknown user.debug hotplug[1157]: Attached USB device 1-1:1.9 [INTERFACE=8/6/80 PRODUCT=1199/68a3/6]
    Dec 31 22:05:36 unknown user.warn kernel: usb 1-1: config 1 has no interface number 4
    Dec 31 22:05:36 unknown user.warn kernel: usb 1-1: config 1 has no interface number 5
    Dec 31 22:05:36 unknown user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
    Dec 31 22:05:36 unknown user.info kernel: scsi1 : SCSI emulation for USB Mass Storage devices
    Dec 31 22:05:36 unknown user.info kernel: Registered led device: 1-1
    Dec 31 22:05:36 unknown user.debug hotplug[1162]: Attached USB device 1-1:1.2 [INTERFACE=255/255/255 PRODUCT=1199/68a3/6]
    Dec 31 22:05:36 unknown user.debug hotplug[1164]: Attached USB device 1-1:1.3 [INTERFACE=255/255/255 PRODUCT=1199/68a3/6]
    Dec 31 22:05:36 unknown user.debug hotplug[1165]: Attached USB device 1-1:1.1 [INTERFACE=255/255/255 PRODUCT=1199/68a3/6]
    Dec 31 22:05:36 unknown user.debug hotplug[1148]: Attached USB device 1-1:1.0 [INTERFACE=255/255/255 PRODUCT=1199/68a3/6]
    Dec 31 22:05:36 unknown user.debug hotplug[1166]: Attached USB device 1-1:1.7 [INTERFACE=255/255/255 PRODUCT=1199/68a3/6]
    Dec 31 22:05:38 unknown user.notice kernel: scsi 1:0:0:0: Direct-Access SWI SD Card 2.31 PQ: 0 ANSI: 2
    Dec 31 22:05:38 unknown user.notice kernel: sd 1:0:0:0: [sda] Attached SCSI removable disk
    Dec 31 22:05:46 unknown user.notice root: 3G MODEM ready - 1199:68a3
    Dec 31 22:05:46 unknown user.info kernel: usbcore: registered new interface driver usbserial
    Dec 31 22:05:46 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
    Dec 31 22:05:46 unknown user.info kernel: usbcore: registered new interface driver usbserial_generic
    Dec 31 22:05:46 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
    Dec 31 22:05:46 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
    Dec 31 22:05:46 unknown user.info kernel: usbcore: registered new interface driver option
    Dec 31 22:05:46 unknown user.info kernel: drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.2
    Dec 31 22:05:46 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Sierra USB modem
    Dec 31 22:05:46 unknown user.info kernel: sierra 1-1:1.0: Sierra USB modem converter detected
    Dec 31 22:05:46 unknown user.info kernel: usb 1-1: Sierra USB modem converter now attached to ttyUSB0
    Dec 31 22:05:46 unknown user.info kernel: sierra 1-1:1.1: Sierra USB modem converter detected
    Dec 31 22:05:46 unknown user.info kernel: usb 1-1: Sierra USB modem converter now attached to ttyUSB1
    Dec 31 22:05:46 unknown user.info kernel: sierra 1-1:1.2: Sierra USB modem converter detected
    Dec 31 22:05:46 unknown user.info kernel: usb 1-1: Sierra USB modem converter now attached to ttyUSB2
    Dec 31 22:05:46 unknown user.info kernel: sierra 1-1:1.3: Sierra USB modem converter detected
    Dec 31 22:05:46 unknown user.info kernel: usb 1-1: Sierra USB modem converter now attached to ttyUSB3
    Dec 31 22:05:46 unknown user.info kernel: usbcore: registered new interface driver sierra
    Dec 31 22:05:46 unknown user.info kernel: drivers/usb/serial/sierra.c: USB Driver for Sierra Wireless USB modems: v.1.7.0
    Dec 31 22:05:48 unknown user.notice root: 3G MODEM ready - using sierra module
    Dec 31 22:06:15 unknown user.info redial[1084]: WAN down. Reconnecting...
    Dec 31 22:06:15 unknown daemon.info dnsmasq[1091]: exiting on receipt of SIGTERM
    Dec 31 22:06:15 unknown user.debug init[1]: 182: pptp peerdns disabled
    Dec 31 22:06:15 unknown daemon.info dnsmasq[1242]: started, version 2.61 cachesize 1500
    Dec 31 22:06:15 unknown daemon.info dnsmasq[1242]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack
    Dec 31 22:06:15 unknown daemon.info dnsmasq[1242]: asynchronous logging enabled, queue limit is 5 messages
     
  3. Alex81

    Alex81 Serious Server Member

    seems the problem is that sierra presents the 4G USB modem as a virtual ethernet interface. as per this thread below, the sierra_net.c would need to be compiled

    linksysinfo.org/index.php?threads/shibby-mod-3g-usb-sticks.36903/

    will keep searching in case any of the tomato mods support this
     
  4. Alex81

    Alex81 Serious Server Member

Share This Page