0
\$\begingroup\$

NOTE: I have been using this as a reference.

After recently purchasing a SIM5320A breakout board (the board) I have been trying to connect it to a TCP server. After having to connect the board to an Arduino and turn the Arduino into a middle man (Data Mode, wouldn't receive +++ over the USB connection). I have tried using Data Mode (I can receive data, but I can't send anything) and Command Mode (whenever I try to use AT+CIPOPEN=0,"TCP",[IP address in quotes],[port] I get +IP ERROR: Operation not supported).

All I need to be able to do with this is open a stable TCP connection with the server and receive and send data. If sending data from Data Mode is easy enough, I would like hear that solution first, but solutions to get the connection in Command Mode are equally appreciated.

\$\endgroup\$
  • \$\begingroup\$ Have you set up the PDP context? Obtained an IP address from the service provider? Post your sequence of commands so far. \$\endgroup\$ – TisteAndii Sep 24 '16 at 2:00
  • \$\begingroup\$ I have experience only with SIM800f, but for that you can find some tutorials from the internet. For exampe this \$\endgroup\$ – olltsu Sep 24 '16 at 5:43
2
\$\begingroup\$

Turns out that the issue that I was having is that I was not using the commands AT+CGSOCKCONT=1,"IP","CMNET" and AT+CSOCKSETPN=1 before opening the TCP socket.

If you are trying to get the SIM5320 to open a transparent TCP connection, the commands you need to send are: AT+CGSOCKCONT=1,"IP","CMNET" AT+CSOCKSETPN=1 AT+CIPMODE=1 AT+NETOPEN AT+CIPOPEN=0,"TCP","TargetIpOrDomain",TargetPort

When you are ready to end the session, you send +++ to the chip to enter command mode. To close the connection you use AT+CIPCLOSE=0 and AT+NETCLOSE to turn off the network connection mode.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.