10

I need to connect in internet with a usb 3g dongle using at commands.

My apn provider is:

APN = tim.br
Username = tim
Password = tim

How can I connect using only at commands? It's possible?

Thanks.

FBilac
  • 163
  • 2
  • 2
  • 7

2 Answers2

8

Try something like this:-

AT+CGDCONT=1,"IP","tim.br"
ATD*99***1#
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
  • +1 What a blast from the past. I can't even remember AT commands anymore (except for `ATD` (or `ATDT`). I once had a 300 baud modem (thought I was cool) that only did pulse dialing (`ATDP`). – Sunil D. Sep 02 '13 at 18:53
  • 2
    I try this, it responds "Ok" and "Connected", what I need to execute now? Or only this commands I establish a connection? – FBilac Sep 02 '13 at 19:21
  • I check in OS using ifconfig (Linux) but can't get IP address. Do you know if I need to run new command to release a IP? – FBilac Sep 02 '13 at 19:41
  • 2
    What happens to username and passsword? – user1032861 Dec 31 '13 at 15:50
4

To connect, you need to use AT commands:

AT+CGDCONT=1,"IP","tim.br"

to configure APN, and then

ATD*99***1#

to actually connect. This will open a PPP session, and the username and password is usually provided over PAP in the PPP session itself, so you'll need to put them in your PPP client.

Divide
  • 540
  • 5
  • 12