Telit modules feature the TCPATRUN service allowing the user to run on the module the AT Commands sent from a PC through TCP/IP protocol. Examples: the PC sends the AT Command to the module to collect information concerning the current Network Operator on which the module is camped, or the AT Command to set/read the selected GPIO. To have more information on the TCPATRUN service refer to document [8].
To perform remotely the M2M user application uploading, the module must be configured in TCPATRUN server mode, and the PC must run a terminal emulator. The PC works as an IP client and Telnet is used as a connection method.
Here is an example to configure the TCPATRUN service in server mode. To have detailed information on the AT commands syntax refer to documents [6]/[7].
AT+CGATT? ß returns the GPRS service state
+CGATT:1 ß attached
OK
AT+CGDCONT=1,”IP”,”myAPN” ß sets up PDP context
OK
AT#SGACT=1,1 ß activates the context
#SGACT: 2.192.101.140 ß IP address assigned by the Network.
OK
AT#TCPATRUNL=0 ß disables TCPATRUN service
OK
AT#SCFG=1,1,1500,0,600,50 ß sets socket configuration. Inactivity timeout is set to 0
OK
AT#TCPATRUNCFG=1,2,1024,1024,"",1,5,1,5,2 ßsets the TCPATRUN service, listening on
OK port 1024. Instance number #2 is assigned to
the service.
AT#TCPATRUNFRWL=2 ß drops the old firewall configuration
OK
AT#TCPATRUNFRWL=1,"000.000.000.000","000.000.000.000" ß sets up new firewall
OK configuration
AT#TCPATRUNAUTH=2 ß drops old authentication parameters
OK
AT#TCPATRUNAUTH=1,"USERTEST","TEST" ß sets up new authentication parameters
OK
AT#TCPATRUNL=1 ß starts TCPATRUN service in server mode
OK
AT#SS ß check the Socket Status
#SS: 1,4, 2.192.101.140,1024
#SS: 2,0
#SS: 3,0
#SS: 4,0
#SS: 5,0
#SS: 6,0
OK
You have to install on the PC a Terminal Emulator to perform the following activities:
• Create a Telnet connection (supporting TCP option) to send AT Commands and receive the related results.
• Transfer the M2M user AppZone application.
Following the GUI used by your selected Terminal Emulator, configure the Telnet session using the IP address returned by the AT#SGACT command, the port 1024, and start the connection.
After connection, enter the Username and Password used to configure the module in TCPATRUN server mode.
Now, enter next command to begin the uploading:
AT#M2MWRITE="m2mapztest.bin",81524,1
After the module in server mode has responded with the “>>>” prompt, you can send the AppZone application using the Transfer menu provided by your Terminal Emulator, select the Send Binary File option.
On success, the module returns the OK message.
Referring to the following screenshot.
The first OK is the result of the uploading, described above.
Use AT#M2MCHDIR="\MOD" to enter the \MOD directory, the second OK is its result.
Now, use AT#M2MLIST to list the just transferred file.