Applicable Products
Part number | Description |
ZETA-GEP-LTE4 (EU) | Low Power LTE Cat 4 European Modem with GPIO and GNSS |
ZETA-G-GPRS | Entry Level GPRS Modem with GNSS (GL) |
ZETA-N2-GPRS | Entry Level GPRS Modem (GL) |
ZETA-NEP-LTE4 (EU) | Low Power LTE Cat 4 European Modem with GPIO |
ZETA-NEP-LTEM (GL) | Low Power Global LTE Cat M Modem with GPIO |
ZETA-NLP-LTE1 (EU) | Ultra Low Power European LTE Cat 1 Modem |
ZETA-NLP-LTEM (GL) | Ultra Low Power Global LTE Cat M Modem |
ZETA-N-LTE (EU) | High Performance LTE Cat 4 Modem with GPIO |
ZETA-NSP-LTE1 (EU) | Low Power European LTE Cat 1 Modem |
Demonstration of Solution
Resources used for this application note are as follows:
• ZETA-NEP-LTE4 (EU) modem (Low Power Modem with RS232 and USB serial): https://www.siretta.com/products/industrial-modems/lte-cat-4-mobile-network/enhanced-lte-cat-4-european-modem-with-gpio/
• Modem Starter Kit Quick Start Guide: ZETA-xxP Quick Start Guide
• Initial Modem Setup Guide Application Note: Initial Modem Setup Guide App Note – LP (siretta.com)
• Data enabled SIM card.
• A PC with an installed ‘Terminal Emulator’ program: Window 11 Laptop installed with Tera Term used for the purpose of this guide.
• AT command reference manual: ZETA-xxP-LTE1 / ZETA-xxP-LTE4 AT Command – https://pages.services/pages.siretta.com/zeta-xxp-lte1-zeta-xxp-lte4-at-command-reference-manual/?ts=1658149511127
Setup GPRS Connection Parameters
1. Set extended error messages by using at command below.
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
AT+CMEE=2
OK |
2. Set GPRS APN Name by using at command below.
Outgoing Connection (Old Commands – No longer supported).
3. If the sim card requires username and password use below at commands otherwise continue with step 4.
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
//Set GPRS Username
AT#USERID=”APN username” //Set GPRS Password AT#PASSW=” APN password |
4. Open GPRS context 1 by using below command.
Note: This will return your ISP assigned IP address as seen below.
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
AT#GPRS=1 +IP: “10.49.78.129”
OK |
5. Open Socket on Port Number at IP Address (Or URL) using below at command.
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
AT#SKTD=0,80,”www.siretta.com”,0,0
CONNECT |
6. If successful, this will return CONNECT.
7. Set protocol using below command.
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
GET /time.php HTTP/1.1
Host: www.siretta.com
HTTP/1.1 200 OK
Date: Tue, 20 Feb 2024 12:57:53 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
CF-Cache-Status: DYNAMIC
Report-To: {“endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report\/v3?s=fL WGA3KZQXP%2BeD1hmWShzeGB0leN8w%3D”}],”group”:”cf-nel”,”max_age”:604800}
NEL: {“success_fraction”:0,”report_to”:”cf-nel”,”max_age”:604800}
Server: cloudflare
CF-RAY: 8586eafdfb086627-AMS
alt-svc: h3=”:443″; ma=86400
18
#NITZ: 24/02/20,12:57:53 |
Outgoing Connection (New Commands)
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
//Set packet size and timeouts on context 1-6 AT#SCFG=1,1,300,90,600,50
OK |
COM3 – Tera Term VT |
File Edit Setup Control Window Help |
//Open GPRS context 1-6 with APN username and APN password AT#SGACT=1,1,”APN Name”,”APN Password”
//This will return your ISP assigned IP address #SGACT: 10.188.232.13 OK
//Open Socket on Port Number at IP Address
AT#SD=1,0,80,”www.siretta.com”,0,0 //If successful this will return CONNECT
CONNECT
//Set protocol GET /time.php HTTP/1.1 //Request and query time script Host: www.siretta.com //If successful this will return #NITZ command as described in the AT manual #NITZ: yy/mm/dd,hh:mm:ss
HTTP/1.1 200 OK Date: Tue, 20 Feb 2024 15:08:36 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding CF-Cache-Status: DYNAMIC Report-To: {“endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report\/v3?s=eE0BEOvB06KrA6 PjmhJPt4xSMv3fCW2Ab2WfsEJrsMEU0Cj4741M1hIW0wGOVHZRqjOfJRKzNHQAJyL2A2ECkIAD 70HPWdUbl4m1AYxrbQg3bFMWVHxE9aK7YH6xOP9V0Kg%3D”}],”group”:”cf-nel”,”max_age”:604800} NEL: {“success_fraction”:0,”report_to”:”cf-nel”,”max_age”:604800} Server: cloudflare CF-RAY: 8587aa7888906f0b-CDG alt-svc: h3=”:443″; ma=86400 18 #NITZ: 24/02/20,15:08:36 0 NO CARRIER //After timeout or ‘+++’ will return NO CARRIER // Close GPRS context 1-6 AT#SGACT=1,0 |
Note: Please note that this script and service provided by Siretta is for test purposes only. Siretta will not guarantee that this service will remain in operation indefinitely into the future. For applications which rely on using this service it is recommended that you maintain and run the script on your own server using the example script provided below.
Example PHP Script
Additional Reading
Description | Author |
Modem Starter Kit- Quick Start Guide: ZETA-xxP Quick Start Guide | Siretta |
AT command manual
|
Telit |
|
Siretta |
Link to download Tera Term
https://osdn.net/projects/ttssh2/downloads/68252/teraterm-4.96.exe/ |
OSDN |