This post describes how I got the Business Everywhere, Option 3G/EDGE package from Orange Romania working on Linux, which unfortunately is not officially supported. These days I found a higher kind of fun than configuring things so I won't make a habit of such posts. I make an exception now, however, because this information may save someone's time and because in the process of figuring things out I had to give AT commands to a modem, which reminded me of the old days when I was a kid and only started to use a PC.
To be more precise I talk about Ubuntu Linux. In general, your mileage may vary and you may need to adapt these instructions, but they will at least give you a starting point.
Here is what you need to do.
sudo apt-get install pppd wvdial sudo vim /etc/ppp/orange #debug nodetach connect "/usr/bin/wvdial --chat --config /etc/wvdial.conf" /dev/noz0 460800 noauth noccp novj usepeerdns defaultroute sudo vim /etc/wvdial.conf [Dialer Defaults] Modem = /dev/noz0 Baud = 460800 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Init3 = AT+CGDCONT=1,"IP","internet" Dial Command = ATD Idle Seconds = 3000 Username = dummy Password = dummy Phone = *99#
To connect to the Internet you say pppd call orange. You type C-c to hung up.
The above tells pppd that authentication is not needed (noauth), disables some stuff that does not seem to be supported by Orange (noccp, novj), sets up the phone number (*99#), and the access point (internet). If you have problems it might help to uncomment the debug line and see what goes wrong.
If the SIM is protected you may need to unlock it first. Both minicom and kermit can be used to send AT commands to the modem. Here is how to send a SMS (and how to unlock the SIM if not already unlocked).
rg@rg-laptop:~/blog$ kermit C-Kermit 8.0.211, 10 Apr 2004, for Linux Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/home/rg/blog/) C-Kermit>set line /dev/noz0 (/home/rg/blog/) C-Kermit>c Connecting to /dev/noz0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- at+cpin="0000" OK at+cpms="SM" +CPMS: 0,50,0,50,0,50 OK at+cmgf=1 OK at+cmgs="PHONE NUMBER" > MESSAGE > <TYPE C-z TO END THE MESSAGE> +CMGS: 10 OK (Back at localhost) ---------------------------------------------------- (/home/rg/blog/) C-Kermit>q A serial connection might still be active on /dev/noz0. OK to exit? y Closing /dev/noz0...OK
Very similar settings are used to get Zapp (Romania) working on Linux. Zapp provides Linux support on their webpage.
2 comments:
Hi,
I have an AMOI U2000+ USB Modem which I switched from ZeroCD mode to modem mode and it created 3 serial devices, /dev/ttyUSB[012].
However, all attempts to get a connection fail when issuing the ATD command. For example, using your wvdial.conf:
WvDial<*1>: WvDial: Internet dialer version 1.56
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2
WvDial Modem<*1>: TQ0 V1 E1 S0=0 &C1 &D2
WvDial Modem<*1>: OK
WvDial<*1>: Sending: AT+CGDCONT=1,"IP","internet"
WvDial Modem<*1>: AT+CGDCONT=1,"IP","internet"
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<Notice>: Idle Seconds = 3000, disabling automatic reconnect.
WvDial<*1>: Sending: ATD*99#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATD*99#
WvDial Modem<*1>: ERROR
WvDial<Err>: Invalid dial command.
WvDial<*1>: Disconnecting at Fri Dec 28 14:27:45 2007
Connect script failed
ATDT produces the same error. I don't need a PIN code for my SIM, as I have disabled it using a real phone. What do you think I could do?
I didn't have that problem so I don't know how to solve it. Can you dial a normal phone number (with atd07xxxxxxx)?
Also, I would try the stuff in sections 10.1.18, 10.1.19, 10.2 and surrounding things from:
http://www.3gpp.org/ftp/Specs/archive/27_series/27.007/27007-3d0.zip
Post a Comment
Note: (1) You need to have third-party cookies enabled in order to comment on Blogger. (2) Better to copy your comment before hitting publish/preview. Blogger sometimes eats comments on the first try, but the second works. Crazy Blogger.