Dr. Spam
Dr. Spam

Reputation: 529

Connecting 3g modem to the internet with AT commands

Home project, and getting stuck on the topic at hand.

Project is in c#, connecting to serial port, all fine and dandy, then i got stuck trying to get the modem to go online.

Read a bit and first info i got was:

  1. Set apn using AT+CGDCONT
  2. Dial using ATD"number"

I have the correct settings, and that does more or less nothing. Response from the modem is OK and CONNECT.

After more digging I got somewhere (but still useless) by doing a few things before dialing:

  1. AT+CGACT=1 PDP context activation
  2. AT+CGDATA="PPP",1 enter data mode

Then i dial in and the led on my modem stops flashing (indicates an active connection) but i still can't access anything online.

Obviously I'm missing something, so i turn to you.

And i would like to do this with AT commands if possible, i can always turn to RAS later :)

Upvotes: 2

Views: 4008

Answers (1)

Dr. Spam
Dr. Spam

Reputation: 529

Gave up on AT commands after realizing it's not practical at all. Finished the project by using dotRas for internet connections, and used the modems secondary port to send/receive SMS messages via AT commands and get misc data (network mode, signal strength...)

Upvotes: 1

Related Questions