at-command3gmodem3g-networkdial-up

Data Call with AT commands failed


I'm using at commands to connect with a 3g modem to internet. All messages show that all is OK but there no internet acces and modem status in windows 7 is disconected. The led from the modem in on like it is connected to internet. The commands that i`m using are(in this order):

COM5 115200 4000

CODE INTRODUCED: AT+CGREG? +CGREG: 0,1 OK

CODE INTRODUCED: AT+CGREG=? +CGREG: (0-2) OK

CODE INTRODUCED: AT+CGREG? +CGREG: 0,1 OK

CODE INTRODUCED: AT+COPS? +COPS: 0,2,"22603",0 OK

CODE INTRODUCED: AT+CSQ +CSQ: 21,99 OK

CODE INTRODUCED: AT+CGATT=1 OK

CODE INTRODUCED: AT+CGDCONT=1,"IP","broadband" OK

CODE INTRODUCED: AT+CGACT=1,1 OK

CODE INTRODUCED: AT+CEER +CEER: No cause information available OK

CODE INTRODUCED: AT+CGACT? +CGACT: 1,1 OK

CODE INTRODUCED: AT+CGATT? +CGATT: 1 OK

CODE INTRODUCED: AT+CGREG? +CGREG: 0,1 OK

CODE INTRODUCED: AT+CGDCONT? +CGDCONT: 1,"IP","broadband","0.0.0.0",0,0 OK

CODE INTRODUCED: AT+CGACT=0,1 OK

CODE INTRODUCED: AT+CEER +CEER: No cause information available OK

CODE INTRODUCED: AT+COPS? +COPS: 0,2,"22603",0 OK

CODE INTRODUCED: AT+CSQ +CSQ: 21,99 OK

CODE INTRODUCED: AT+CGATT=1 OK

CODE INTRODUCED: AT+CGDCONT=1,"IP","broadband" OK

CODE INTRODUCED: AT+CGACT=1,1 OK

CODE INTRODUCED: AT+CEER +CEER: No cause information available OK

CODE INTRODUCED: AT+CGACT? +CGACT: 1,1 OK

CODE INTRODUCED: AT+CGATT? +CGATT: 1 OK

CODE INTRODUCED: AT+CGREG? +CGREG: 0,1 OK

CODE INTRODUCED: AT+CGDCONT? +CGDCONT: 1,"IP","broadband","0.0.0.0",0,0 OK

CODE INTRODUCED: AT+CGACT=0,1 OK

CODE INTRODUCED: AT+CEER +CEER: No cause information available OK

What am I missing?


Solution

  • Probably establishing the connection on the device won't be sufficient as windows will not be notified of the connection. You should setup a modem in Windows and use this to establish the connection.

    DotRas ist a project to do exactly this in c#. But there may be other solutions for other languages as well. If you are scripting you can have a look at WMI. There are classes for modems as well.