Control Panel

The application displays the module‘s information in the terminal and sends it to a website, where the information is presented.

You can see the module's information by going to this address:

http://appzone.telit.com/Demo/GETserver//Demo/GETserver/Demo/ControlPanel/

1.1.1.7.           Application workflow

M2M_main.c

      Send to Process 1

M2M_proc1.c

      Set the variable 'TCP_SERVER_PORT' to 80 (HTTP port).

      Set the variable 'GPRS_APN' according to the network provider (for example: INTERNETG).

The APN must be set according to the SIM card network provider in order to connect to the internet.

      Set the variable 'SERVER' to the AppZone server address (APPZONE.TELIT.COM).

      Open USB/UART

      Call the function 'get_IP'

The function activates PDP context and gets IP from the network

      Call the function 'socketProcess'

      Create TCP socket

      Set the socket port (80 for HTTP) and server address (APPZONE.TELIT.COM)

      Connect the socket.

      Call the function 'UpdateSendString'

The function gets the module's information (IMEI, FW version, signal level, GPIO, etc.) and prepare the string to be sent.

      Send HTTP GET request to the server with the prepared string

The HTTP GET request format is as follows:

GET /Demo/ControlPanel/update.php?update=%s HTTP/1.1\r\n

Host: %s\r\n

\r\n\r\n\r\n\r\n

      Close the socket