BeagleBone Black as reliable 3G/4G router/ modem

2,915 views
Skip to first unread message

bremenpl

unread,
Jan 14, 2015, 6:33:20 PM1/14/15
to beagl...@googlegroups.com
Hello there,
Ive had it with my internet provider for a while now. I have a free BeagleBone Black and a usb huawei 3G modem laying around though. So I thought- wny not connect the usb modem to BeagleBone Black to get internet, and then connect BeagleBone Black to my router via ethernet to distrubute it further. I was trying to accmplish this approach some time a go by googling around and trying to set up some programs on a debian distro without success...
I was wondering- isnt there any straight forward solution for aplication such as this? Maybe a separate OS even, I dont mind? This is the only task I would like BeagleBone Black to do- get and then distribute internet.
I would really aprichiate any help in here, it would be really great for me to set this up.

Miguel Aveiro

unread,
Jan 15, 2015, 11:35:37 AM1/15/15
to beagl...@googlegroups.com
I've used 3 or 4 different Huawei usb 3G modems. All worked pretty easily. I'm using an old version of the RCN images with Debian Wheezy and kernel 3.8.13-bone51.

All the tutorials for 3G modem for linux in general works good in BBB. A good one is this:
https://www.thefanclub.co.za/how-to/how-setup-usb-3g-modem-raspberry-pi-using-usbmodeswitch-and-wvdial

And I've tested only one 4G modem. It needed a newer version of usb_modeswitch, which is available in the Jessie images of RCN:
http://elinux.org/BeagleBoardDebian#Debian_Testing_.28jessie.29

I think I had to recompile the kernel because one option was not turned on in the default kernel I used. But I don't remember which one. It was a long time ago and maybe this option is available now.

I haven't "shared" the 3G connection with the ethernet port, but I have already read somewhere that it can be accomplished with firestarter and dhcp3-server (to provide the IP's). Maybe this can help you.

Miguel Aveiro
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
 

c...@isbd.net

unread,
Jan 15, 2015, 4:16:31 PM1/15/15
to beagl...@googlegroups.com
bremenpl <brem...@gmail.com> wrote:
> [-- multipart/alternative, encoding 7bit, 55 lines --]
>
> [-- text/plain, encoding 7bit, charset: UTF-8, 21 lines --]
openwrt maybe?

--
Chris Green
·

Bremenpl

unread,
Jan 15, 2015, 4:32:07 PM1/15/15
to beagl...@googlegroups.com
Thanks for the tips. I was wondering about openwrt, but im not sure either
everything is supported there. I could get more pain than usage i fear.
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/Vi0CTOoGaw4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

David Goodenough

unread,
Jan 15, 2015, 5:56:28 PM1/15/15
to beagl...@googlegroups.com
This is very standard stuff. Debian can handle everything you need.

OpenWrt is needed on kit with very restricted memory and flash, and
neither of these are a problem with the BBB.

The kernel is going to have support for most USB 3G modems (just don't
choose a brand new one it's kernel support might still be in development).
Then set up the routing, and put a dhcp server up and off you go. Oh yes,
and remember to enable IPV4 forwarding (google it, as I say this is standard
stuff).

David

David Goodenough

unread,
Jan 15, 2015, 6:07:03 PM1/15/15
to beagl...@googlegroups.com
Oh yes,and you will need an iptables SNAT rule (again google is your friend).

David

bremenpl

unread,
Jan 16, 2015, 1:53:07 PM1/16/15
to beagl...@googlegroups.com, david.go...@linkchoose.co.uk
Right now I am trying to use the tutorial from here:
http://crazy-embedder.blogspot.it/2014/12/beaglebone-black-as-3g-router-or.html?m=1

The difference I have other model of the huawei modem (e3131). After I hit lsusb, I dont see the full string like:
Bus 002 Device 005: ID 12d1:1003 Huawei chnologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

All I see is:
Bus 001 Device 003: ID 12d1:14db Huawei Technologies Co., Ltd.

Dont I have a driver? How can I install it? Is it even available? Tried to google and found nothing.

After i get to the sakis3g config I choose the Huawei stick:
https://lh3.googleusercontent.com/-DmEg3k3NJe4/VLlddzhmZuI/AAAAAAAAAfw/kDCGykbeWng/s1600/huawei.png

And after that I cant connect:
https://lh5.googleusercontent.com/-AIxBrN7xBAE/VLld8bFCucI/AAAAAAAAAf4/1PSQtQ08u3Q/s1600/failed.png

I would really aprichiate any help.

David Goodenough

unread,
Jan 16, 2015, 2:00:57 PM1/16/15
to bremenpl, beagl...@googlegroups.com
Well a quick google lead me to:-

http://www.raspberrypi.org/forums/viewtopic.php?t=18996

which I suspect will solve your problem (or at least move it forward).

David

David Goodenough

unread,
Jan 16, 2015, 3:02:30 PM1/16/15
to Bremenpl, beagl...@googlegroups.com
On Friday 16 January 2015 20:51:23 you wrote:
> The autgor claims that he installed "network manager", but doesnt specify
> what exacly- do you kbow maybe what program does he mean?
>
>
> Dnia 16 stycznia 2015 20:41:06 David Goodenough
>
> <david.go...@linkchoose.co.uk> napisał(a):
> > On Friday 16 January 2015 20:38:19 you wrote:
> > > The problem is I dont see the sr0 device. After I connect the huawei
> > > modem I already see the changed ID, which is 12d1:14db. but when I check
> > > ifconfig, there is no eth1 like it should be like in the tutorial.
> > >
> > > W dniu 2015-01-16 o 20:21, David Goodenough pisze:
> > > > On Friday 16 January 2015 20:07:14 you wrote:
> > > >> Ive been there some time a go. I am seing the Huawei as 12d1:14db
> > > >> from
> > > >> the beggining and theres no eth1 available. Also no /dev/sr0...
> > > >>
> > > >> W dniu 2015-01-16 o 20:00, David Goodenough pisze:
> > > > The bit that is important is the bit about using sg_raw. The USB
> > > > stick
> > > > defaults to looking like a CD (so that the windows driver can be
> > > > loaded)
> > > > and you need to tell it that is not what you want, you want the modem.
> > > > That is what the instructions do.
> > > >
> > > > David
> >
> > try:-
> >
> > http://forums.debian.net/viewtopic.php?f=7&t=112944
> >
> > David
I notice you have dropped the beageboard group, I have added it back, please
keep this thread on the group.

David

Bremenpl

unread,
Jan 16, 2015, 3:17:08 PM1/16/15
to David Goodenough, beagl...@googlegroups.com
Sorry for that, ive done it by accident i think.
So I tried to install the network-manager, but it was not fully
installed because it run into some errors (I think im not abble to
install a single package clean there...). After the restart there is
still no eth1 or any other.

Normally I was also always using interface file to config everything.
--
Bremenpl

Reply all
Reply to author
Forward
0 new messages