3 has been nice enough to borrow us some Huawei E220 "Turbo 3G" USB-modems to
play around with.
The first problem was getting Linux to communicate with the device, but after
realising, that the option-module needs to be reloaded once to detect the modem
properly, everything is good.
Setting up wvdial to get a connection was pretty easy. It seems like you just
need to send the proper init-sequence to set the PIN
AT+CPIN=<pin>
(you can only do this once, so you'd probably do it somewhere else than in
wvdial.conf)
Configure the APN:
AT+CGDCONT=1,"IP","data.tre.dk"
and you're ready to connect to the Internet:
ATDT*99***1#
Of course the fun doesn't stop there. The modem actually registers three
ttyUSB-devices, so you can use one for UMTS and the others for playing around
with other stuff while still being online.
Getting the modem to send and receive sms'es was also pretty easy, when I found
the proper 3GPP standards. You just configure the SMSC:
AT+CSCA="+4531300000"
switch to text mode:
AT+CMGF=1
and you're good to go:
AT+CMGS="<phonenumber>"
<Text of message>
CTRL-Z
To avoid roaming to usage-billed operators, you should be able to do:
AT+COPS=2,0,"3 DK"
though I haven't tested that it actually works.
Comments
Post new comment