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

sierra 320u

bsdnub

Member

Thanks: 1
Messages: 30

#1
Hello Forum,

I have installed FreeBSD on my DELL Latitude D531 and trying to get my sierra 320U wireless 4G working.

I have read how to setup a network connection but am lost. Is there a way to get it setup to connect to the net?

bsdnub.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,126
Messages: 27,000

#2
What chipset does the card have? Look for a big black chip, see what's written on it.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,126
Messages: 27,000

#4
Ah, it's a 4G card, I missed that. Thought it was a wifi card.

As far as I know the only driver that comes near it is u3g(4) but that's for USB devices.
 

bsdnub

Member

Thanks: 1
Messages: 30

#9
SirDice,

Sorry I`m using PC-BSD not FreeBSD.

In /var/log/messages I can see this:
Code:
Aug 30 18:30:34 pcbsd-6427 kernel: ugecho -e AT\041SCAT=1, 2/r > /usbus5en5.2: <Sierra Wireless, Incorporated> at usbus5
Aug 30 18:30:38 pcbsd-6427 kernel: ugen5.2: <Sierra Wireless, Incorporated> at usbus5 (disconnected)
Aug 30 18:30:40 pcbsd-6427 kernel: ugen5.2: <Sierra Wireless, Incorporated> at usbus5
Aug 30 18:30:40 pcbsd-6427 kernel: umass0: <Sierra Wireless, Incorporated Aircard 320U, class 0/0, rev 2.00/0.06, addr 2> on usbus5
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,126
Messages: 27,000

#10
Something is detected, so that's a plus :)

Looks like you need to fiddle with it a bit, can't really help there.
Code:
     In some of these devices a mass storage device supported by the umass(4)
     driver is present which contains Windows and Mac OS X drivers.  The
     device starts up in disk mode (TruInstall, ZeroCD, etc.) and requires
     additional commands to switch it to modem mode. If your device is not
     switching automatically, please try to add quirks. See usbconfig(8) and
     usb_quirk(4).
From u3g(4).
 

bsdnub

Member

Thanks: 1
Messages: 30

#11
SirDice,

I tried a few things. I loaded ug3_load="YES" and usb_quirk_load="YES" into the loader.conf but still not working.

It can`t be far of if it detects the sierra 320U at start up.

Complete beginner at this kind of stuff.
 

bsdnub

Member

Thanks: 1
Messages: 30

#12
I found the site http://technotation.com/category/freebsd-and-mobile-broadband/

which i followed exactly what they said to do until i get to edit /usr/src/sys/dev/usb/serial/u3g.c.

Now i have to add U3GINIT_SIERRA in the sierra section which i put U3G_DEV(SIERRA,AirPrime, Inc., U3GINIT_SIERRA), and saved it.

Then recompiled the kernel and it gets to a part where it stops and says:

Code:
/usr/src/sys/dev/usb/serial/u3g.c:430: error: `U3G_DEV` undeclared here(not in a function) ***Error code 1

Stop in /usr/obj/usr/src/sys/MYKERNEL. *** Error code 1

Stop in /usr/src ***Error code 1
Have i done something wrong, does anyone know ?
 

humand

New Member


Messages: 16

#13
bsdnub,

add the following line to u3g.c:

Code:
 U3G_DEV(SIERRA, 320U, 0),
and the following line to usbdevs:

Code:
product SIERRA 320U                0x????  AirCard 320U
where 0x???? is your idProduct and you can find it as per http://technotation.com
(the line you added to u3g.c is wrong, follow the format from the site)
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Thanks: 3,607
Messages: 13,850

#14
bsdnub, please stop using colors as SirDice mentioned before. Use tags for filenames and paths, and
Code:
 tags for source and error messages.
 

bsdnub

Member

Thanks: 1
Messages: 30

#15
humand,

I followed what you said and the compile kernel worked, as did the install kernel.

When i rebooted my pc with the Sierra 320U 4G plugged in, went into the terminal and typed:

% dmesg | grep u3g
- comes up empty

Strange thing is i type:

Code:
% dmesg | grep ugen

ugen 0.1: <ATI> at usb0
ugen 1.1: <ATI> at usb1
ugen 2.1: <ATI> at usb2
ugen 3.1: <ATI> at usb3
ugen 4.1: <ATI> at usb4
ugen 5.1: <ATI> at usb5
ugen 5.2: <Sierra Wireless, Incorporated> at usb5
ugen 5.2: <Sierra Wireless, Incorporated> at usb5 ( disconnected )
wblock@, yep sorry about that, wasn`t sure how to post my problem.
 

humand

New Member


Messages: 16

#16
bsdnub,

please try with the following instead:
u3g.c
Code:
U3G_DEV(SIERRA, AC320U, 0),
usbdevs:
Code:
product SIERRA AC320U                0x????  AirCard 320U
where 0x???? is the idProduct. btw, what is idProduct in your case?
recompile and check if u3g picks up anything.
also, while running unplug and plug your device back, wait a couple of seconds and post the output of:
tail /var/log/messages
 

bsdnub

Member

Thanks: 1
Messages: 30

#17
humand, I tried that and the same result blank, nothing there.

Code:
tail /var/log/messages:

Sep 7 15:26:30 pcbsd 8543 kernel da0: <SWI SD Card 2.31> Removable Direct Access SCSI-2 device

sep 7 15:26:30 pcbsd 8543 kernel dao: 40.000MB/S transfers
sep 7 15:26:30 pcbsd 8543 kernel dao: Attempt to query device size failed: NOT READY, MEDIUM Not Present.
sep 7 15:26:30 pcbsd 8543 root: Unknown USB Device: vendor 0x0f3d product 0x68aa bus uhub5
sep 7 15:26:41 pcbsd 8543 kernel ugen5.2: <Sierra Wireless, Incorporated> at usbus5 ( disconnected )
sep 7 15:26:41 pcbsd 8543 kernel: umass0: at uhub5, port 1, addr 2 ( disconnected )
sep 7 15:26:41 pcbsd 8543 kernel: (dao: umass-sim0:0:0:0): lost device - 0 outstanding
sep 7 15:26:41 pcbsd 8543 kernel: (dao: umass-sim0:0:0:0): removing device entry
sep 7 15:26:49 pcbsd 8543 kernel: ugen5.2: <Sierra Wireless, Incorporated> at usbus5
sep 7 15:26:53 pcbsd 8543 kernel: ugen5.2: < Sierra Wireless, Incorporated> at usbus5 (disconnected)
 

humand

New Member


Messages: 16

#18
bsdnub,
you still haven't provided your idProduct.
note that dump_device_desc outputs both iProduct and idProduct, just want to make sure you're actually adding the value of idProduct to your usbdevs file.
 

bsdnub

Member

Thanks: 1
Messages: 30

#19
humand, My idProduct is 0x0f3d.

this is what i have done:

Code:
usbdevs:

product SIERRA AC320U      0x0f3d AirCard 320U
Code:
u3g.c:

U3G_DEV(SIERRA, AC320U, 0),
 

humand

New Member


Messages: 16

#20
bsdnub, something does not seem right, i was expecting something like 0x68??.
i have an 313U and the idProduct is 0x68aa.
we could be defining it wrong, so please post the full output of usbconfig -u ? -a ? dump_device_desc
 

PseudoCylon

Active Member

Thanks: 19
Messages: 151

#21
bsdnub said:
humand, I tried that and the same result blank, nothing there.

Code:
tail /var/log/messages:

Sep 7 15:26:30 pcbsd 8543 kernel da0: <SWI SD Card 2.31> Removable Direct Access SCSI-2 device

sep 7 15:26:30 pcbsd 8543 kernel dao: 40.000MB/S transfers
sep 7 15:26:30 pcbsd 8543 kernel dao: Attempt to query device size failed: NOT READY, MEDIUM Not Present.
sep 7 15:26:30 pcbsd 8543 root: Unknown USB Device: [B]vendor 0x0f3d product 0x68aa[/B] bus uhub5
sep 7 15:26:41 pcbsd 8543 kernel ugen5.2: <Sierra Wireless, Incorporated> at usbus5 ( disconnected )
sep 7 15:26:41 pcbsd 8543 kernel: umass0: at uhub5, port 1, addr 2 ( disconnected )
sep 7 15:26:41 pcbsd 8543 kernel: (dao: umass-sim0:0:0:0): lost device - 0 outstanding
sep 7 15:26:41 pcbsd 8543 kernel: (dao: umass-sim0:0:0:0): removing device entry
sep 7 15:26:49 pcbsd 8543 kernel: ugen5.2: <Sierra Wireless, Incorporated> at usbus5
sep 7 15:26:53 pcbsd 8543 kernel: ugen5.2: < Sierra Wireless, Incorporated> at usbus5 (disconnected)
Based on the log, the code should be

udevs
Code:
product AIRPRIME AC320U      0x68aa AirCard 320U
u3g.c
Code:
U3G_DEV(AIRPRIME, AC320U, 0),
Besides, both 313U and 320U (ones with product ID of 0x68aa) might also work with usie(4).
 

bsdnub

Member

Thanks: 1
Messages: 30

#22
pseudocylon,

I did what you said and it worked, this is what comes up:

Code:
dmesg | grep u3g

u3g0: <Sierra Wireless, Incorporated AirCard 320U, class 0/0, rev 2.00/0.06, addr 2> on usbus5
u3g0: Found 5 ports
u3g0: at uhub5, port 1, addr 2 ( disconnected )
Code:
ls /dev/cuaU*
/dev/cuaU0.0        /dev/cuaU0.1       /dev/cuaU0.2        /dev/cuaU0.3        /dev/cuaU0.4
/dev/cuaU0.0.init   /dev/cuaU0.1.init  /dev/cuaU0.2.init   /dev/cuaU0.3.init   /dev/cuaU0.4.init
/dev/cuaU0.0.lock   /dev/cuaU0.1.lock  /dev/cuaU0.2.lock   /dev/cuaU0.3.lock   /dev/cuaU0.4.lock
 

humand

New Member


Messages: 16

#24
bsdnub,

the ppp.conf from technotation.com is aimed mini-pcie modules and the example is for a specific provider. for 4g USB modems and for your own provider you need to make some modifications. you need to change /dev/cuaU0.0 to /dev/cuaU0.3 and you need to change the APN information under the AT+CGDCONT line to reflect your provider. from what i understood, you're with telstra so i crafter a ppp.conf for you.
try this:
Code:
default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/cuaU0.3
 set timeout 180

provider:
 set speed 921600
 set timeout 0
 set authname wapuser1
 set authkey wap
 set dial "ABORT BUSY TIMEOUT 3 \
        \"\" \
        AT OK-AT-OK \
        AT+CFUN=1 OK-AT-OK \
        AT+CMEE=2 OK-AT-OK \
        AT+CSQ OK \
        AT+CGDCONT=1,\\\"IP\\\",\\\"telstra.internet\\\" OK \
        ATD*99# CONNECT"
 enable dns
 resolv writable
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
 add default HISADDR
 
Top