How to configure an Aircard USB modem?

  • 2
  • Question
  • Updated 4 years ago
  • Answered
Hi, I have an AP330 in bridge mode I am trying to configure with a Aircard 320U - I have verified this card works using my laptop on both "Orange" and "3" networks in the UK, but when plugged into the AP330 I am not getting much luck. Do I need to set any APN, Username, Password details in HMOL? Currently it has some Cingular rubbish in there.

I have it set to connect as needed, but the blue light on the modem turns off after a few seconds after plugging it in. If I pull the ethernet cable the AP LED goes green but the blue light on the modem does not activate. I can't see the USB modem via the CLI "sh int" command either.

Help!
Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like

Posted 4 years ago

  • 2
Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Some more info:

8IC-AP330#show usbmodem status

USB Modem Attached:
Vendor ID: 0x0f3d
Product ID: 0x68aa
PPP Network Interface Status:
NONE
PPP Process Status:
NONE
PPP Interface Status:
NONE
8IC-AP330#

8IC-AP330#sh l3 int

Name IP Address Mode VLAN MAC State
----------- --------------- -------- ------ -------------- -----
eth0 192.168.0.116 wan - 08ea:448c:fdc0 U
mgt0 172.18.255.129 - 1 08ea:448c:fdc0 U
8IC-AP330#sh int

State=Operational state; Chan=Channel;
Radio=Radio profile; U=up; D=down;
Name MAC addr Mode State Chan VLAN Radio Hive SSID
----------- -------------- -------- ----- ---- ---- ---------- ---------- ---------
Mgt0 08ea:448c:fdc0 - U - 1 - Calleva... -
Agg0 08ea:448c:fdc3 backhaul D - 1 - Calleva... -
Eth0 08ea:448c:fdc0 wan U - - - - -
Eth1 08ea:448c:fdc1 access D - - - Calleva... -
Red0 08ea:448c:fdc2 backhaul D - 1 - Calleva... -
Wifi0 08ea:448c:fdd0 access U 1 - radio_ng0 - -
Wifi0.1 08ea:448c:fdd4 access U 1 - radio_ng0 Calleva... 8IC-3G
Wifi1 08ea:448c:fde4 access U 40 - radio_na0 - -

Wifi1.1 08ea:448c:fde8 access U 40 - radio_na0 Calleva... 8IC-3G
Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
The nearest modem match seems to be the 313 (looking at vendor/product id's):

8IC-AP330#sho usbmodem modem-id sierra_313

Enabled: yes
Mode: on-demand
-----------------
Modem Id: sierra_313(close support)
USB Id(s): Vendor Id: 0x0f3d, Product Id: 0x68aa
Vendor Id: 0x1199, Product Id: 0x68aa
APN: broadband
Dialup Username:
Dialup Password: g3nChBUKQFHcVhCb
Dialup Number: ATD*99***1#
Connect Type: PPP dial-up
L3 Setup mode: ---
Connect Command:
Disonnect Command:
Connect Status Command:
Connect Status Connected Pattern:
Connect Status Disconnect Pattern:
Set net work mode AUTO Command:
Set net work mode LTE Command:
Set net work mode 3G Command:
Set net work mode 2G Command:
Reset Modem Command:
Get Card Info Command:
Get Signal Strenth Command:
Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
I just looked at the log, there's some weird stuff going on here, it looks like the AP is talking to the modem but it's complaining about no service, and still seems to be using the wrong APN ("broadband") and password settings (I have cleared all that out in HMOL now, it's like the AP is using it's own settings rather than whatever is in HMOL)...

2014-03-22 01:47:31 info ah_cli: admin:
2014-03-22 01:47:29 info last message repeated 2 times
2014-03-22 01:47:25 info kernel: [board]: WDT ioctl cmd 0x5007 in ah_watchdog_booke_ioctl.
2014-03-22 01:47:23 info kernel: [mpi]: socket is closed, pid(393280), protocol(17)
2014-03-22 01:47:23 info kernel: [mpi]: socket is closed, pid(327744), protocol(17)
2014-03-22 01:47:23 info kernel: [mpi]: socket is closed, pid(131136), protocol(17)
2014-03-22 01:47:23 info pppd[23991]: Exit(status=8).
2014-03-22 01:47:23 info pppd[23991]: mpi close pppd/blockreply(0x60040)
2014-03-22 01:47:23 info pppd[23991]: mpi close pppd/blockevt(0x50040)
2014-03-22 01:47:23 info pppd[23991]: mpi close pppd/lowestevtlib(0x20040)
2014-03-22 01:47:23 info kernel: [mpi]: socket is closed, pid(262208), protocol(17)
2014-03-22 01:47:23 info pppd[23991]: mpi close pppd/hievtlib(0x40040)
2014-03-22 01:47:23 info kernel: [mpi]: socket is closed, pid(196672), protocol(17)
2014-03-22 01:47:23 info pppd[23991]: mpi close pppd/evtlib(0x30040)
2014-03-22 01:47:23 info pppd[23991]: unregistering with PM for pid=23991, name=[pppd_]
2014-03-22 01:47:23 info kernel: [board]: WDT ioctl cmd 0x5007 in ah_watchdog_booke_ioctl.
2014-03-22 01:47:22 err pppd[23991]: Connect script failed
2014-03-22 01:47:22 info chat[24005]: Failed (NO CARRIER)
2014-03-22 01:47:22 info chat[24005]: -- failed
2014-03-22 01:47:22 info chat[24005]: NO CARRIER
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: expect (CONNECT)
2014-03-22 01:47:22 info chat[24005]: send (ATD*99***1#^M)
2014-03-22 01:47:22 info chat[24005]: -- got it
2014-03-22 01:47:22 info chat[24005]: OK
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: expect (OK)
2014-03-22 01:47:22 info chat[24005]: timeout set to 10 seconds
2014-03-22 01:47:22 info chat[24005]: send (AT+CGDCONT=1,"IP","broadband"^M)
2014-03-22 01:47:22 info chat[24005]: -- got it
2014-03-22 01:47:22 info chat[24005]: OK
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: expect (OK)
2014-03-22 01:47:22 info chat[24005]: send (ATE1^M)
2014-03-22 01:47:22 info chat[24005]: -- got it
2014-03-22 01:47:22 info chat[24005]: OK
2014-03-22 01:47:22 info chat[24005]: ^M
2014-03-22 01:47:22 info chat[24005]: expect (OK)
2014-03-22 01:47:22 info chat[24005]: send (AT&F^M)
2014-03-22 01:47:22 info chat[24005]: timeout set to 5 seconds
2014-03-22 01:47:22 info chat[24005]: report (CONNECT)
2014-03-22 01:47:22 info chat[24005]: abort on (ERROR)
2014-03-22 01:47:22 info chat[24005]: abort on (NO CARRIER)
2014-03-22 01:47:22 info chat[24005]: abort on (BUSY)
2014-03-22 01:47:21 info kernel: [board]: WDT ioctl cmd 0x5007 in ah_watchdog_booke_ioctl.
2014-03-22 01:47:21 notice pppd[23991]: pppd 2.4.3 started by root, uid 0
2014-03-22 01:47:21 info registering with PM for pid=23991 name=[mod_name_pppd_mod_id_64] cmdline=[/sbin/pppd noaccomp nopcomp novj nobsdcomp noipdefault noauth defaultroute replacedefaultroute usepeerdns lock crtscts ah-pppousb linkname usb_modem0 ipparam 115200 /dev/ttyUSB3 password g3nChBUKQFHcVhCb connect USE_DIALUP_NUM=ATD*99***1# USE_APN=broadband /sbin/chat -t5 -v -E -
Photo of Phil Keeley

Phil Keeley

  • 9 Posts
  • 2 Reply Likes
Hi,

Can you confirm how you are powering the AP330? - to use the USB socket you have to use an external power adaptor, from the data sheet:

http://www.aerohive.com/pdfs/Aerohive_Datasheet_AP330.pdf


  • USB 2.0 port (with power adapter only) 


If you are using POE then the modem will not work reliably if at all.





Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Hi Phil, it's Paul Roberts from Calleva Networks, yes I read that you have to use an external PSU so I have that plugged in, my switch doesn't do POE anyway. :-(

BTW, I did find an APN entry for the Aircard 313 in HMOL which I have tried setting to "three.co.uk", still no joy though.

Do you or Ben have time for a call to have a look at this? I'd like to get it up and running for our event next week.

Cheers,

Paul
07837 362149
Photo of Andrew Garcia

Andrew Garcia, Official Rep

  • 368 Posts
  • 120 Reply Likes
You mentioned that the AP330 was in bridge mode, correct?  The USB modem feature is only available when using the AP330 in branch router mode.

Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Hi, I just checked in HMOL, sorry I meant to say device function is set to "Router" mode.

Eth0 is set to "Primary", admin state up
USB is set to "Backup1", admin state up
In modem settings it is set to "Connect as Needed".

Rgds,

Paul
Photo of Andrew Garcia

Andrew Garcia, Official Rep

  • 368 Posts
  • 120 Reply Likes
There are separate configuration boxes for the Sierra 313U and the 320U (see screen).  We pre-populate the settings for common US carriers. International customers would need to edit the APN/username/password to the relevant settings for your carrier.

You would need to edit the 320U line (the ATT Shockwave settings at the top of the list).


Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Hi, I have set my APN for the "three" network in the UK, but no userid/password is required, however if I try and blank out the password I get an error when I try and save the profile. When I go back in the passwords are back.



However, I am not sure if this is the problem, none of the lights on the aircard are illuminated so I am not sure if it is even talking to the modem, is there a way to debug/test this from the CLI?
Photo of Andrew Garcia

Andrew Garcia, Official Rep

  • 368 Posts
  • 120 Reply Likes
Hi, the usbmodem behavior is fully customizable from the CLI.  You can type "show cmds | i usbmodem" to get the full rundown.

The ones you want, to change the APN for a sierra 320U and blank out the username and password are:

usbmodem modem-id sierra_308 apn <yourAPNhere>
no usbmodem modem-id sierra_308 dialup-password
no usbmodem modem-id sierra_308 dialup-username


Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Interesting! Ok so I tried that, still no joy, here's a snippet of the log, it looks like the modem is responding to "AT" commands but failing with "NO CARRIER" when the AP dials out, however it is failing instantly so I am not sure if it is giving the modem enough time to do whatever it needs to do to bring the connection up:
2014-03-25 20:20:44 err     pppd[25618]: Connect script failed
2014-03-25 20:20:44 info    chat[25628]: Failed (NO CARRIER)
2014-03-25 20:20:44 info    chat[25628]: -- failed
2014-03-25 20:20:44 info    chat[25628]: NO CARRIER
2014-03-25 20:20:44 info    chat[25628]: ^M
2014-03-25 20:20:44 info    chat[25628]: ^M
2014-03-25 20:20:44 info    chat[25628]: expect (CONNECT)
2014-03-25 20:20:44 info    chat[25628]: send (ATD*99***1#^M)
2014-03-25 20:20:44 info    chat[25628]: -- got it
2014-03-25 20:20:44 info    chat[25628]: OK
2014-03-25 20:20:44 info    chat[25628]: ^M
2014-03-25 20:20:44 info    chat[25628]: ^M
2014-03-25 20:20:44 info    chat[25628]: expect (OK)
2014-03-25 20:20:44 info    chat[25628]: timeout set to 20 seconds
2014-03-25 20:20:44 info    chat[25628]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
2014-03-25 20:20:44 info    chat[25628]: -- got it
2014-03-25 20:20:44 info    chat[25628]: OK
2014-03-25 20:20:44 info    chat[25628]: ^M
2014-03-25 20:20:44 info    chat[25628]: expect (OK)
2014-03-25 20:20:44 info    chat[25628]: send (^MATZ^M)
2014-03-25 20:20:44 info    chat[25628]: abort on (\nRINGING\r\n\r\nRINGING\r)
2014-03-25 20:20:44 info    chat[25628]: abort on (\nNO DIALTONE\r)
2014-03-25 20:20:44 info    chat[25628]: abort on (\nNO CARRIER\r)
2014-03-25 20:20:44 info    chat[25628]: abort on (\nNO ANSWER\r)
2014-03-25 20:20:44 info    chat[25628]: abort on (\nERROR\r)
2014-03-25 20:20:44 info    chat[25628]: abort on (\nBUSY\r)
2014-03-25 20:20:44 info    chat[25628]: abort on (ERROR)
2014-03-25 20:20:44 info    chat[25628]: abort on (NO CARRIER)
2014-03-25 20:20:44 info    chat[25628]: abort on (BUSY)
2014-03-25 20:20:44 info    chat[25628]: timeout set to 10 seconds
2014-03-25 20:20:43 info    kernel: [board]: WDT ioctl cmd 0x5007 in ah_watchdog_booke_ioctl.
2014-03-25 20:20:42 notice  pppd[25618]: pppd 2.4.3 started by root, uid 0
2014-03-25 20:20:42 info    registering with PM for pid=25618 name=[mod_name_pppd_mod_id_64] cmdline=[/sbin/pppd noaccomp nopcomp novj nobsdcomp noipdefault noauth defaultroute replacedefaultroute usepeerdns lock crtscts ah-pppousb linkname usb_modem0 ipparam 115200 /dev/ttyUSB3 connect  USE_DIALUP_NUM=ATD*99***1# USE_APN=three.co.uk /sbin/chat -t5 -v -E -f /etc/chatscripts/vzw_lte.chat] 2014-03-25 20:20:42 info    pppd[25615]: PPPoE or PPPoUSB opt enabled
(Edited)
Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Ok so I magically got this working tonight, not sure how, but the thing I did different was I powered up the modem in my laptop, got connected, then unplugged it while it was still connected. As soon as I plugged it into the AP, the blue light came on and shortly after the second light lit. I unplugged the cable from eth0 and was able to browse the net via the modem. I did update the APN and username/password details for the "EE" network here in the UK via HMOL too and that worked even though HMOL still shows an incorrect password.

For info here is the log output, you can see the difference (I am using a different SIM now compared to earlier logs, but also had it working on "three")... 

2014-03-28 23:56:00 info    pppd[29822]: CHAP authentication succeeded
2014-03-28 23:55:59 notice  pppd[29822]: Connect: ppp0 <--> /dev/ttyUSB3
2014-03-28 23:55:59 info    pppd[29822]: Using interface ppp0
2014-03-28 23:55:59 warn    mDNSResponder: interface change, mdnsd refresh interface list and service!!!
2014-03-28 23:55:59 info    kernel: [mpi]: drop unsupported event 0x5 from ppp0
2014-03-28 23:55:59 info    kernel: [systop]: initializing AH dev for ifp ppp0!
2014-03-28 23:55:59 info    pppd[29822]: Serial connection established.
2014-03-28 23:55:59 info    chat[29840]: send ( ^M)
2014-03-28 23:55:59 info    chat[29840]: -- got it
2014-03-28 23:55:59 info    chat[29840]: CONNECT
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: expect (CONNECT)
2014-03-28 23:55:59 info    chat[29840]: send (ATD*99***1#^M)
2014-03-28 23:55:59 info    chat[29840]: -- got it
2014-03-28 23:55:59 info    chat[29840]: OK
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: expect (OK)
2014-03-28 23:55:59 info    chat[29840]: timeout set to 10 seconds
2014-03-28 23:55:59 info    kernel: [board]: WDT ioctl cmd 0x5007 in ah_watchdog_booke_ioctl.
2014-03-28 23:55:59 info    chat[29840]: send (AT+CGDCONT=1,"IP","everywhere"^M)
2014-03-28 23:55:59 info    chat[29840]: -- got it
2014-03-28 23:55:59 info    chat[29840]: OK
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: expect (OK)
2014-03-28 23:55:59 info    chat[29840]: send (ATE1^M)
2014-03-28 23:55:59 info    chat[29840]: -- got it
2014-03-28 23:55:59 info    chat[29840]: OK
2014-03-28 23:55:59 info    chat[29840]: ^M
2014-03-28 23:55:59 info    chat[29840]: expect (OK)
2014-03-28 23:55:58 info    chat[29840]: send (AT&F^M)
2014-03-28 23:55:58 info    chat[29840]: timeout set to 5 seconds
2014-03-28 23:55:58 info    chat[29840]: report (CONNECT)
2014-03-28 23:55:58 info    chat[29840]: abort on (ERROR)
2014-03-28 23:55:58 info    chat[29840]: abort on (NO CARRIER)
2014-03-28 23:55:58 info    chat[29840]: abort on (BUSY)
2014-03-28 23:55:57 notice  pppd[29822]: pppd 2.4.3 started by root, uid 0
2014-03-28 23:55:57 info    registering with PM for pid=29822 name=[mod_name_pppd_mod_id_64] cmdline=[/sbin/pppd noaccomp nopcomp novj nobsdcomp noipdefault noauth defaultroute replacedefaultroute usepeerdns lock crtscts ah-pppousb linkname usb_modem0 ipparam 115200 /dev/ttyUSB3 user eesecure password secure connect  USE_DIALUP_NUM=ATD*99***1# USE_APN=everywhere /sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat]
(Edited)
Photo of Andrew Garcia

Andrew Garcia, Official Rep

  • 368 Posts
  • 120 Reply Likes
Out of curiosity, were the SIMs/USB adapter used here activated before you put in the BR?  The device must be activated before the Aerohive router can use it.
Photo of Call Eva

Call Eva

  • 18 Posts
  • 1 Reply Like
Yes both the SIM and USB modem were activated in my laptop first, I haven't really got to the bottom of why it started working, there is some software that comes with the Aircard and previously I was telling it to shut down the modem before exiting, then I would unplug the modem and plug it into the AP, and it wouldn't work.

So maybe by unplugging the modem without first shutting down and exiting the software I am wondering if it's leaving the modem in a "connected" state in the internal NVRAM or something. When I get time I will try this again later as I would like to get to the bottom of it.