Huawei 3G modem on Angstrom

Hello my friends,

    I have a beagleboard Angstrom running on it. I try to connect to
the internet with Huawei 3G modem. Although the beagleboard can
recongize the device as Huawei when i type command lsusb, i cannot
connect to the internet. How can i succeed it, do you have any idea?

MFO

I guess can help you with that,
I don't have a beagleboard but i have a leopardboard and successfully
connected to TCELL 3G network.

You have to follow following steps.

- Install pppd
- Build the kernel with usb to serial module.
- Configure the pppd with correct chat scripts.

Install the modules with

cat modules.sh
#!/bin/sh

insmod /lib/modules/2.6.29-ridgerun-davinci1/kernel/drivers/usb/serial/
usbserial.ko vendor=0x12d1 product=0x1003
insmod /lib/modules/2.6.29-ridgerun-davinci1/kernel/drivers/usb/serial/
option.ko

This is the chat script for
cat chat.connect
'' AT
OK ATZ
OK AT+CGATT=0
OK AT+CGQREQ=1,0,0,0,0,0
OK AT+CGQMIN=1,0,0,0,0,0
OK AT+CGDCONT=1,"IP","mgb"
OK ATE1V1&D2
OK AT+IFC=2,2
OK ATD*99***1#

CONNECT \c

cat provider
connect "/usr/sbin/chat -v -f /etc/ppp/peers/chat.connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect"
/dev/ttyUSB0
4000000
debug
#nodetach
dump
noauth
idle 0
user 6597462958
usehostname
crtscts
modem
noipdefault
defaultroute
usepeerdns
persist

then execute ./pon provider

root@beagleboard:/etc/ppp/peers# pon
provider
pppd options in
effect:
debug # (from /etc/ppp/peers/
provider)
idle 0 # (from /etc/ppp/peers/
provider)
persist # (from /etc/ppp/peers/
provider)
dump # (from /etc/ppp/peers/
provider)
noauth # (from /etc/ppp/peers/
provider)
user 6597462958 # (from /etc/ppp/peers/
provider)
usehostname # (from /etc/ppp/peers/
provider)
/dev/ttyUSB0 # (from /etc/ppp/peers/
provider)
4000000 # (from /etc/ppp/peers/
provider)
lock # (from /etc/ppp/
options)
connect /usr/sbin/chat -v -f /etc/ppp/peers/
chat.connect # (from /etc/ppp/peers/
provider)
disconnect /usr/sbin/chat -v -f /etc/ppp/peers/
chat.disconnect # (from /etc/ppp/peers/
provider)
crtscts # (from /etc/ppp/peers/
provider)
modem # (from /etc/ppp/peers/
provider)
noipdefault # (from /etc/ppp/peers/
provider)
defaultroute # (from /etc/ppp/peers/
provider)
usepeerdns # (from /etc/ppp/peers/provider)

Here is the result for pon provider. Device could not connect to the
internet and i dont understand this outcome and error at all. Can you
help me about that.

Hi,

I am also trying to connect to TCELL 3G network. I installed pppd, kernel is already built with usb to serial module however could not configure pppd with correct chat scripts. Could you please explicitly tell me the locations of those modules.sh and chat.connect? This is extremely urgent for me.

Regards

Hello,

I’ve compiled ubuntu 12.04 kernel to my beaglebone by following the instructions (it comes with option module already selected):

git clone git://[github.com/RobertCNelson/linux-dev.git](http://github.com/RobertCNelson/linux-dev.git)
cd linux-dev
git checkout origin/am33x-v3.2 -b am33x-v3.2
./build_kernel.sh

from http://elinux.org/BeagleBoardUbuntu

You’ll need to download the linux-stable kernel from kernel.org repository: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

Att,

Fernando Akira Endo

Phi Innovations

Av. José Rocha Bomfim, 214 - Cj. 16
Cond. Praça Capital - Ed. Londres
Center Santa Genebra
13080-650 - Campinas - SP - Brasil
+55 19 3709-1358

2012/7/20 mdemir <mahmutdemir@gmail.com>

Hi,

I’m trying to set pppd on my beaglebone black to use with a Telit GE864-GPS modem. I was able to set the connection but in the final step i get this messages on log file:

Serial connection established.
using channel 6
Using interface ppp0
Connect: ppp0 <–> /dev/ttyO5
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc83c6fe3>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0

My /etc/ppp/peers/chat file is:

/dev/ttyO5
57600
crtscts
debug
logfile /var/log/ppp.log
local
connect ‘/usr/sbin/chat -v -e -t 90 -f /etc/ppp/gprs-connect-chat’
disconnect ‘/usr/sbin/chat -v -e -t 90 -f /etc/ppp/gprs-disconnect-chat’

and my /etc/ppp/options file:

lock
lcp-echo-failure 5
lcp-echo-interval 30
asyncmap 0
hide-password
noipdefault
defaultroute
usepeerdns
ipcp-accept-local
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noccp
name vodafone
refuse-chap
refuse-mschap
refuse-mschap-v2
refuse-eap

Can anyone tell me if i’m doing something wrong?

Thanks