Skip to main content
search

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

Objective

All industrial modems requires initial set up, so that they can communicate with other modems on the cellular networks using AT commands. This application note shows how this is done for Siretta ZETA modems and ensure that the modem is correctly configured to communicate over cellular network.

Demonstration of Solution

Resources:

  • PC with an installed ‘Terminal Emulator’ program: A Windows 10 laptop installed with Tera Term was used for the purpose of this guide.
  • Siretta Part Number: 61057 -ZETA-GEP-LTE4 (EU) Starter Kit (any ZETA starter Kit is suitable for this application)
  1. Insert SIM card to the modem
  2. Power on the modem
  3. Connect the supplied serial port cable to the PC
  4. Connect the antenna
    • As described in the Starter Kit Quick Start Guide
  5. Open Hyperterminal on the PC (or your preferred terminal emulator: PuTTY, TeraTerm).
  6. Select new connection. Name the new connection for reference in the future.
  7. Name your port.

8. Choose the correct COM port. From the drop-down list, select the correct COM port your modem is connected to.

9. Configure the port with the following settings (These settings are standard for all of the ZETA Siretta modems):
• Bits per second: 115200
• Data bits: 8
• Parity: None
• Stop bits: 1
• Flow control: Hardware

10. Click Apply
11. Send the initial ‘AT’ command to determine the serial communication with the modem is working correctly. If communication is successful. you will get an ‘OK’ response from the modem. You can then issue any other commands as required.

Commands to Check System is Working

 

Check Serial Port is Working

AT

//Receive following when successful:

OK

Set Verbose Error Reporting

AT+CMEE=2

//Receive following when successful:

OK

Commands for Basic Operation

 

Check PIN Registration

AT+CPIN?

//Receive following when successful:

+CPIN: READY

OK

//Receive following when SIM is not inserted:

+CME ERROR: SIM not inserted

//Receive following when SIM requires a PIN code:

+CME ERROR: SIM pin

 

Query Firmware Version

AT+GMR

//Receive following when successful:

Firmware version (make a note of this)

Query IMEI Number

AT+CGSN

//Receive following when successful:

IMEI number (make a note of this)

Cellular Network Operation

Set Network Registration to ‘ALL’

AT+COPS=0

//Receive following when successful:

OK

Check Network Registration

AT+CREG?

//Receive following when registered to a local network:

+CREG: 0,1

//Receive following when registered to a roaming network:

+CREG: 0,5

//Receive following when not registered to a network:

+CREG: 0,0

//Receive following when not searching for a network:

+CREG: 0,2

//Receive following when registration is denied:

+CREG: 0,3

 

NOTE:

When experiencing registration problems, check the following:

1) Antenna is connected and screwed in tightly to unit

2) SIM is valid and has credit / active

3) SIM is setup for 2G / 3G / 4G services

4) SIM is SMS enabled

5) There is signal available for the cellular network in use

6) Ensure more than 15 seconds has elapsed since power up.

 

Check Network Signal Strength

AT+CSQ

//Receive signal value >9 when successful:

+CSQ: 23,1

//Receive signal value =99 when there is no signal:

+CSQ: 99,1

//Receive signal value less than 9 when there are network connectivity issues:

+CSQ: 3,1

 

NOTE:

When experiencing bad network signal strength (less than 9), check the following:

1) Antenna is suitable for network in use and is tightly screwed to unit

2) There is good signal available for the cellular network in the area

3) Move the antenna near a window or preferably outside

4) Move the antenna to an elevated position (> 3M high)

5) Use a high gain antenna

6) Ensure short cable length (less than 3M) for cable connecting antenna to modem

 

GPRS Network Operation

Check GPRS Context Availability

AT+CGATT?

//Receive following when successful:

+CGATT: 1

OK

//Receive following when content is not available or not enabled:

+CGATT: 0

OK

Set GPRS APN For Your Network

AT+CGDCONT=1,” IP”,” APN Name”

//Receive following when successful:

OK

NOTE:

To configure the APN name correctly, follow these steps :

1) Navigate to the following link: Common Global APN Settings

2) Select the country you are in (If your country is not listed please contact Siretta)

3) Select the network from the list (If your network is not listed please contact Siretta)

4) Insert the APN name from the table in to the “APN Name” field in the ‘AT+CGDCONT’ command

Connect To GPRS Context

AT#SGACT=1,1,” APN Username”,”APN Password”

//Receive following when successful (Where x.x.x.x is your assigned IP address):

#SGACT: x.x.x.x

OK

//Receive following when the APN Name / APN Username / APN Password is incorrect:

ERROR

NOTE:

To configure the APN username and password correctly, follow these steps:

1) Navigate to the following link: Common Global APN Settings

2) Select the country you are in (If your country is not listed please contact Siretta)

3) Select the network from the list (If your network is not listed please contact Siretta)

4) Insert the APN username from the table in to the “APN Username” field in the ‘AT#SGACT’ command

5) Insert the APN password from the table in to the “APN Password” field in the ‘AT#SGACT’ command.

Setup TCP Socket Connection Parameters

NOTE:

Use the following standard parameters:

1) 300 bytes packet size

2) 90 second no activity timeout

3) 600 second connection timeout

4) 50 millisecond packet timeouts

AT#SCFG: 1,1,300,90,600,50
//Receive following when successful:
OK

Connect TCP Socket To Server IP Address

AT#SD=1,0,xxxx,”y.y.y.y”
//Receive following when successful (Serial port connected directly to server socket):
CONNECT
//Receive following when connection is dropped (Serial port no longer connected to server socket):
NO CARRIER

NOTE:
When connecting to a server socket the following should be considered:
1) The IP address of the server should be fixed and capable of accepting an incoming socket connection
2) The server port should be configured and capable of accepting an incoming socket connection

Additional Reading

Description Author
ZETA Hardware user’s manual Siretta
AT command manual Telit

Common Global APN Settings     

 

 

Siretta

 

Download PDF
Close Menu