Home › Forums › M2M Support Forum › sim5216a
This topic contains 8 replies, has 2 voices, and was last updated by chris 4 years, 6 months ago.
-
AuthorPosts
-
ChrisHi, i have this itead 3g shield with a sim5216A and i can’t open the network.
Sim has no PIN
I Can set the correct APN and AT+CGDCONT? gives me CGDCONT:1,”IP”,”sp.telus.com”,”0.0.0.0”0.0
I can connect to the network no problem with data call, but AT+CGSOCKCONT=1,”IP”,”sp.telus.com” gives me ERROR
AT+NETOPEN gives: NETOPEN=1
AT+IPADDR gives: ip error network not opennedI tried with othersim cards and other itead 3g shield, same problem. Anny thoughts?
ChrisOf course, but a lot of these commands don’t work for the sim52XX series, anyway i also red all documentation from simcom AT command manuals and just can’t make that CGSOCKCONT=1,”IP”,”my apn” command to work, so i can’t open the network. But SMS work o.k.
I tried the sim card in my phone and i can surf the net no problem, i tried my phone’s sim card in the shield and the same, can’t open network. Somehow the sim module doesn’t want to let me open the network…
Sim card is unlocked and there is no pw.
Aaaaarghhh…
Thanks.
Are you able to activate PDP context with the modem?
What response are you getting for below commands?
AT+CSQ?
AT+CREG?
AT+CDGCONT?
AT+CGACT?
AT+CGATT=1
AT+CIFSR
ChrisYes i can activate pd context:
At=CGACT=1,1
+AT+CGACT1,1
ok
Also have ip adress, and connected to networkAT+CSQ
+CSQ:17,99At+CREG?
+CREG:0,1AT+CGDCONT?
+CGDCONT:1,”IP”,”sp.telus.com”,”0.0.0.0”0.0AT+CGATT=1
okAT+CIFSR: This command does not exist in the command set for sim5216
Thanks for helping Sir.
Hi Chris,
Here is the link to AT Command spec for 5216.
http://simcomm2m.com/En/module/detail.aspx?id=79Looks like NETOPEN command is not supported for thismodem.
The test command and the write command of AT+NETOPEN is reserved for being
compatible with old TCP/IP command set, and the old TCP/IP command set is not recommended to
be used any longer.You need to use the TCP AT commands provided for this modem as documented in the above referenced guide..
Tks..
Hi Chris,
After you activate PDP context, you can try settin up TCP connection as below..AT+CIPCCFG=3,500,1,1,1,0,500
//Replace the IP address you want to connect to
AT+CIPOPEN=0,”TCP”,”116.228.221.51”,100//Get the IP address of teh current socket
AT+IPADDRTks..
chrisStill no go.
With PDP context activated:
AT+CIPCCFG=3,500,1,1,1,0,500
okAT+CIPOPEN=0,”TCP”,”my ip adress”,my port
IP error, invalid parameterlooks like it NEED to have PDP context defined with CGSOCKCONT before NETOPEN or any attempt to open a TCP socket….
Thans for helping
Thanks
chrisAT+CREG?
+CREG:0,1
ok
The device is registered for home networkAT+CGACT?
+CGACT:1.0
okAT+CMEE=1
okAT+CGATT=1
okconnecting to PDP profile 1:
AT+CGACT1,1
ok
connection is successfullAT+CGPADDR=1
+CGPADDR: 1,”10.168.74.190”
okAT+CGDCONT?
+CGDCONT:1,”IP”,”sp.telus.com”,”0.0.0.0”,0,0
ok
following conexion profiles are available,CIP->1
PDP Type->IP
PDP Address->0.0.0.0
Data Compression->0
Header Comression->0AT+CGSOCKCONT=1,”IP”,”sp.telus.com”
ERRORAT+CGSOCKCONT?
+CGSOCKCONT: 1,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 2,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 2,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 4,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 5,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 6,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 7,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 8,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 9,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 10,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 11,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 12,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 13,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 14,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 15,”IP”,””,”0.0.0.0”0.0
+CGSOCKCONT: 16,”IP”,””,”0.0.0.0”0.0
AT+CPIN?
READY
AT+NETOPEN
ok
+NETOPEN=1 (close)AT+NETOPEN=0
+IP ERROR:invalid parameterAT+IPADDR
+IP ERROR: Network not opened -
AuthorPosts