sim300 gprs
Dear Sirs/Madams,
We are a company that is fond of proces automation. One of our tasks is:
We have a GPRS modem with Simcom Sim300 and we have to connect it with programmable logic controller (PLC), with that device we can send AT commands to the GPRS modem. We have software that can communicates and receives data from the PLC, the communication protocol is different - RS232, modem, TCP, UDP. When we connect with the GPRS network we receive an IP address and here comes the problem, when we try to connect the communication software for the PLC to this IP address , the software indicates that there is no connection. With two GPRS modems we tryed to connect modem1 with modem2 and it worked, but our purpouse is to connect the GPRS modem to the Internet and trough it to access the PLC. To be more accurate and understandable we will apply a principal scheme for what we are trying to do and the two ways (in AT commands) that we tryed to achieve that.
AT commands
Example 1:
AT
OK
AT+CGDCONT=1,"IP","globul"
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","globul","",0,0
OK
ATD*99***1#
CONNECT
<data>
NO CARRIER
Example 2:
AT
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","globul","",0,0
OK
AT+CSTT="globul"
OK
AT+CGATT?
+CGATT: 1
OK
AT+CIICR
OK
AT+CIFSR
10.8.144.163
AT+CLPORT?
TCP: 2020
UDP: 3030
OK
AT+CIPSTART="UDP","10.0.0.1","3030"
CONNECT OK
OK
Best Regards,
Julian Dimitrov