Re: [beagleboard] How to use a 3G modem with BeagleBone Black using Sakis3G

3,994 views
Skip to first unread message

Maxim Podbereznyy

unread,
Jun 12, 2013, 11:09:22 AM6/12/13
to beagleboard
Why do you need Sakis3G? I did just usb-modeswitch + pppd (pon provider). Huawei E352


2013/6/12 DMT <malesto...@gmail.com>
This guide is intended to help new (and perhaps experienced users) to setup and use a 3G modem on the BeagleBone Black running Angstrom Linux by using the Sakis3G script. 

*Note: The following steps should be run in a terminal window as root user. If you are accessing the BBB from USB and you don't know how to open a terminal, open https://192.168.7.2/ in the web browser on the host PC. If you are working on the BBB or using another terminal client and you are not logged in as root user (root@beaglebone:), use the following command to change the terminal window to root: 
#su
You may need to enter the root password. If you didn't specify a root password, just hit enter/return.

*Note: Don't type the #, it is simply used in this text to indicate that it is a terminal command.

Download Sakis3g from http:\\www.sakis3g.org
If the site is down, try looking at http://sourceforge.net/projects/vim-n4n0/files/
You can download the file directly from the terminal window by using the wget command:
#wget "http://www.sakis3g.org/versions/latest/armv4t/sakis3g.gz"
*Note: the alternative download location does not point to the file itself, you will have to go and get the url yourself.

Navigate to the directory/folder where you have saved the file: (example)
#cd downloads/sakis3g/

Extract the content of the file:
#tar -zxvf sakis3g.tar.gz

Make sakis3g executable. In the same directory/folder as sakis3g run:
#chmod +x sakis3g

Update packagelist: (needed to make sure the latest packages are listed)
#opkg update

Upgrade packages: (recommended but not compulsory. may take long)
#opkg upgrade

Install glibc-ultils:
Development utilities from GNU C library. Needed to recompile and run sakis3g and to compile the embedded usb-modeswitch utility. usb-modeswitch are used to switch usb modems from storage mode to modem mode.
#opkg install glibc-utils

Install libusb and development headers:
Needed to compile the embedded usb-modeswitch utility in sakis3g.
#opkg install libusb-1.0-0
#opkg install libusb-0.1-4
#opkg install libusb-1.0-dev
#opkg install libusb-0.1-dev

Recompile Sakis3G:
#./sakis3g recompile

Run Sakis3g in interactive mode:
#./sakis3g --interactive

In Sakis3G, recompile the embedded usb-modeswitch utility:
(usb-modeswitch is used to switch USB modems from storage mode to modem mode)
From the interactive menu choose:
2.More options...
  -> 5. Compile embedded Usb-ModeSwitch
  
Thats it. I hope I didn't miss anything.

--
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/groups/opt_out.
 
 



--

DMT

unread,
Jun 13, 2013, 5:31:39 AM6/13/13
to beagl...@googlegroups.com
Hi,

If I understand correctly, Sakis3G is simply a shell script that does just that. However, the benefit of the Sakis3G script is that it is interactive and easy to use for beginners.

There are a lot of info out there but not many examples are written so that beginners can easily follow (perhaps I've missed them). If you would like to add a nice step-by-step for setting up a 3G modem without the sakis3G script, it would be nice :-) 

Regards

bo.herr...@gmail.com

unread,
Aug 26, 2013, 3:53:42 PM8/26/13
to beagl...@googlegroups.com, malesto...@gmail.com
going to oder a BBB for a tracking project i wonder if there is a list of "compatible" 3g dongles?

ka...@silvertejp.nu

unread,
Oct 1, 2013, 6:01:04 AM10/1/13
to beagl...@googlegroups.com, malesto...@gmail.com
When I try to run sakis3g, I get this message:

Unable to locate dependency "getent". Script will now abort.

The getent command is not available on the BeagleBone, but it is on my PC. Does anyone know how I can install this in Ångström?

sky Chen

unread,
Feb 19, 2014, 2:09:32 AM2/19/14
to beagl...@googlegroups.com, malesto...@gmail.com, ka...@silvertejp.nu
Same problem
unable to locate dependency "getent". scipt will now abort.
have you found solution yet?

ka...@silvertejp.nu

unread,
Feb 22, 2014, 5:49:06 PM2/22/14
to beagl...@googlegroups.com, malesto...@gmail.com, ka...@silvertejp.nu
Yep, I solved it. It was quite a while ago though and I'm no longer sure of the exact steps. However, I believe it had something to do with installing a package called glibc to provide getent.

However, I didn't end up using Sakis3G because the 3G modem was used in a commerical embedded application and had to be automated. If you wan't the same kind of automation it is fairly easy to set up pppd with a chatscript to control the modem. There are various guides on the web to be found about this.
Reply all
Reply to author
Forward
0 new messages