When
3G USB Modem plug-ed in to board it will recognize as a storage device. Change the connection as usb a serial connection. For
this conversion install usbmodeswitch (NOT usb-modeswitch in Angstrom package browser) and
usb-modeswitch-data via opkg.
Commands
:
$
opkg install usb-modeswitch-data
$
opkg install usbm odeswitch
if
it gives the error, install required dependency packages.
$lsusb //use full to fine the device ID
$usb_modeswitch
-c /etc/usb_modeswitch.d/1c9e:f000
//1c9e:f000
is device ID
It
will give the four usb-serial connection
$ ls /dev:
ttyUSB0,ttyUSB1,ttyUSB2,ttyUSB3.
Find the device which usefull to connection. This can be
done by wvdialconf tool.
$wvdialconf
wvdialconf package integrated with wvdial package. Wvdial is a tool to configure the ppp connection directly . Connecting the ppp connection through wvdial. For this Install wvdial and all dependency libraries.
(http://www.angstrom-distribution.org/repo/?pkgname=wvdial ).
$wvdialconf
It will write configuration file into “/etc/wvdial.conf”. Modify the
configuration file according the service providers apn, userid and password. On
the BeagleBoard-xm ppp connection through wvdial is not supporting
(for my case).
$wvdial
Use PPPD package to dial-up 3G usb modem. Below 4 Scripts are usefull to create the connection through command line.
/etc/ppp/options
=============
lock
asyncmap
0
lcp-echo-failure
4
lcp-echo-interval
30
hide-password
proxyarp
noipx
/etc/ppp/peers/provider
=================
connect
"/usr/sbin/chat -v -f /etc/ppp/peers/chat.connect"
disconnect
"/usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect"
/dev/ttyUSB3
115200
debug
nodetach
dump
noauth
idle
0
user
6597462958
usehostname
crtscts
modem
noipdefault
defaultroute
usepeerdns
/etc/ppp/peers/chat.connect
=====================
ABORT
BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO
DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
''
ATZ
OK
ATE1
OK
AT+CGATT=0
OK
AT+CGDCONT=1,"IP","tatadocomo3g"
OK
AT+CGATT=1
OK-AT-OK
ATDT*99#
CONNECT
' '
/etc/ppp/peers/chat.disconnect
=====================
TIMEOUT
5
'NO
CARRIER' ATH
OK
AT+CGATT=0
OK
ATZ
:::::::::::::::::::::::::::::::::::::::::::::::::::::::
Dial-up
connection through pppd command.
root@beagleboard:~#
pppd logfile pppd.txt call provider &
//command
to dial up 3G usb modem.
root@beagleboard:~#
ifconfig
lo
Link encap:Local Loopback
inet
addr:127.0.0.1 Mask:255.0.0.0
inet6
addr: ::1/128 Scope:Host
UP
LOOPBACK RUNNING MTU:16436 Metric:1
RX
packets:0 errors:0 dropped:0 overruns:0 frame:0
TX
packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
txqueuelen:0
RX
bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ppp0
Link encap:Point-to-Point Protocol
inet
addr:xx.xx.xx.xx P-t-P:10.64.64.64 Mask:255.255.255.255
UP
POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX
packets:129 errors:0 dropped:0 overruns:0 frame:0
TX
packets:169 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
txqueuelen:3
RX
bytes:19414 (18.9 KiB) TX bytes:23432 (22.8 KiB)
That's it.
This connection use full as a tcp/ip socket connection.
No comments:
Post a Comment