JA Purity IV
  • Start
  • Present
    • Agreements
    • Briefs
    • Companies
    • Appointments
    • News
    • Regulations
    • New Offices
    • Projects
    • Seminars
    • Technology
  • Novelty
    • Structured cabling
    • Cables
    • Connectors
      • Circular connectors
      • Power connectors
      • Industrial connectors
      • PCB Connectors
      • RF Connectors
    • Cable-Connector Assemblies
    • Ethernet
    • Industrial Ethernet
    • Industrial Tools
    • Tools
    • Interconnection
    • Microconnection
    • Industrial networks
    • Routers
    • Switches
  • Optical fiber
    • Couplers and Splitters
    • Fiber optic cables
    • Distribution boxes
    • Fiber optic connectors
    • Media converters
    • Fiber optic course
      • Measurement and certification techniques
    • Laser diode
    • FTTH and FTTx networks
    • Fiber Optic Tools
    • Instruments for Fiber Optics
      • Optical Network Certifiers
      • Optical Loss Testers
      • Fiber Optic Cutters
      • Optical Signal Detectors
      • Fiber Optic Fusion Splicers
      • Optical Network Fault Locators
      • Optical Power Meters
      • OTDR
    • whiplashes
    • Optical Networks
    • Fiber optic switch
    • Optical transceivers
    • Optical fiber formation channel
      • Fiber Optic Fusion Training Videos
      • Fiber Optic Connector Training Videos
      • Fiber Optic Testing and Measurement Training Videos
  • Envelopes
    • Rack Cabinets
    • Frames and Chassis
    • Mounting boxes
    • Technical Furniture
    • Parts
    • Racks
    • Air conditioning systems
  • Technology
    • Storage
    • Security Software
    • Product Catalogs
    • Data Centers
    • Components
    • Photonics
    • Computing
    • Instrumentation
    • Investigation
    • Various products
    • Security
    • Video - IP
  • Wireless
    • Smart City
    • Antennas and links
    • RF Components
    • RF Connection
    • EMC/EMI
    • RF test and measurement equipment
      • Analyzers
      • Amplifiers
      • Testers
      • Generators
      • For LTE - WiMAX
      • Field Meters
      • Multimeters
      • Oscilloscopes
      • Other RF Equipment
      • Measurement Software
    • GSM/GPRS/UMTS/GPS
    • M2M
    • Other Products
    • Wireless Networks
    • RFID
  • Contact
  • Language
  1. It's here:  
  2. Start
  3. Wireless
  4. M2M
  5. Wakeup/Keep-Alive
Details
Carlos Martinez By Carlos Martinez
Carlos Martinez
Thursday, September 17, 2009
September 17, 2009

Wakeup/Keep-Alive

The intention of this document is to give the reader a basic understanding of the architecture of Enfora devices in order to address the potential repercussions of dynamic IP allocation in a GPRS network.
Many, if not all, GPRS service providers use dynamic IP addressing for mobile devices activated on their networks in their architecture. Carriers will use an architecture similar to Dynamic Host Control Protocol (DHCP) for managing IP addresses on a network. This poses a challenge for mobile applications when they register on a network and potentially receive a new IP address with each connection. The mobile device will then have to manage the IP allocation notification from the network to the system providing the solution. Figure 1 illustrates this problem.
Enfora has designed an architecture that will help resolve the potential problems that can arise when a system host needs to know the IP address of mobile devices deployed in the field. The general structure and the commands required for execution are detailed below. Examples of different implementations will be outlined for further details.
Two basic architectures have been created and will interact with each other to manage the process of acquiring a new IP address. These architectures are called Wakeup/Keep Alive and Friends.
The Wakeup/Keep Alive architecture is designed to provide timing and delivery confirmations to a specific server when a new IP address is obtained. The command also allows the definition of a Keep Alive timer, which will be used to generate a data packet at a specified interval. This gives the server the ability to maintain active information for multiple IP addresses used in its application.
The Friends mode architecture allows the definition of multiple IP addresses that will have access to the modem.

This design has two purposes.

M2M1-1One access level provides remote programming of the module over the air, using access to the Application Programming Interface (API). This architecture will be covered in detail in another document.
The second purpose of this architecture is to define the IP addresses of the servers that will be used in conjunction with the Wakeup/Keep Alive parameters.
The command format for defining the Friends is as follows:

 

AT$FRIEND=
friend#: (1-10) Indicates which friend to add or replace.
server-indication: (0-1) This flag indicates whether the specified friend will work as a server or not. 1=Server
IP: “(0-255).(0-255)-(0-255).(0-255)”

 

Up to 10 Friendly IP addresses can be defined. Each of these addresses will be able to access the modem. Each Friend can be identified as a server. An additional use of this Friends list is to allow which IP addresses can execute commands over the air using the Enfora API.
The command to define the Wakeup/Keep Alive architecture is as follows:

 
AT$WAKEUP =
<retry-period>
<wakeup-mode>
0 = No wakeup messages are sent.

1 = Send messages starting from the receipt of the new IP every<retry-period> minutes.

2 = Send an acknowledgment message using the at$acktm command once the new IP is received every<retry-period> minutes.
 

<retry-period>
The number of minutes the Keep-alive request is sent to the server. Zero indicates no retries.

 

• When this command is used, an event from group 0 will be generated in the module's event table.
• The parameter
The acknowledgment and retry messages are used in conjunction with Wakeup/Keep Alive.
The command format is as follows:

 

AT$ACKTM:
<retry-period><IP-reselect>

 

<max-retry>
The maximum number of wakeup messages the modem will send to each server once it receives the new IP address, or once the Keep-Alive period has ended.
Zero indicates that no messages should be sent.

 

<retry-período>
The number of seconds between successive Wakeup message retries.
Zero indicates no retries.

 

<IP-reselect>
1. IP reselection disabled.
2. If an acknowledgment message has not been received on all defined Friends servers and the number of retries has ended, it is assumed that there is a communication problem and a new IP reselection process will begin.

M2M1-3Upon receiving the first or a new IP address, the modem will check its Friends list (starting with the first and going up to the tenth) to determine if any servers exist. If a server is found, a Wakeup message will be sent at the interval defined in the $ACKTM command until the specified retry limit is reached or an acknowledgment message is received. This process will be repeated for each IP address in the Friends list until the list is exhausted or an acknowledgment is received from a server in the list. An acknowledgment from the server is not required.
If Keep-Alive is enabled, wakeup messages will be repeated at the interval defined in the $WAKEUP command after the previous wakeup sequence has finished. The Keep-Alive request will be sent regardless of when the previous message sequence was acknowledged.
The IP reselection option is an automated feature that allows the modem to obtain a new IP address from the network if communication cannot be established. The modem will send messages to all IP addresses in the Friends list that are defined as servers. If the modem does not receive an acknowledgment message, as defined in the Enfora API, from any of the server's logs, it will obtain a new IP address from the network.
An additional parameter, consisting of a 20-character field, allows the device to be uniquely identified within its system. This parameter will be included in the UDP packet payload when the Wakeup/Keep-alive data is transmitted.
Modem identification is performed as follows:

 

AT$MDMID =
<modem-identificador>
A 20-character field is used to identify the modem.
Figure 2 illustrates the use of Friends with a single server.
In this example, the Enabler-IIIG is configured to send Wakeup messages to IP address 168.121.100.1 every 20 seconds for up to 10 times, or until an acknowledgment is received by the Enabler-IIIG from the server. The Enabler-IIIG will send a Keep-alive message to the server every 60 minutes. In this example, the IP reselection period is disabled.
Figure 3 illustrates the use of Friends with multiple servers.
In this example, the Enabler-IIIG is configured to send the Wakeup packet to the first server in its Friends list. The packet will be sent to this first server every 20 seconds for up to 10 times, or until the server responds with an acknowledgment. If no acknowledgment is received after 10 attempts, the modem will initiate the Wakeup process with the next server in the list. This process continues (one server at a time) until the Friends list is exhausted or until the first acknowledgment is received from a server. In this example, 10 Wakeup packets will be sent during the first 200 seconds to address 168.121.100.1. Then, another 10 packets will be sent to address 168.121.100.2 during the second 200 seconds. Finally, 10 Wakeup packets will be sent to address 168.121.100.3 during the third 200-second period. If the modem does not receive an acknowledgment during these 600 seconds (10 minutes), the modem will stop sending Wakeup packets until the next Keep-alive period ends. In this example, the Keep-alive period is 60 minutes.
The IP address reselection option is enabled. If the modem does not receive an acknowledgment message from any of the servers at the end of the wake-up period, it will obtain a new IP address from the network.

 

More information or a quote

 

José Adarve (M2M Applications Engineer, Venco Electrónica) and Angel Gutiérrez (M2M Product Manager, Venco Electrónica).

Carlos Martinez
Carlos Martinez
Interpretation of M2M Easiest Article: Homemade Wireless Spy Camera Next

Unlabeled

  • Wireless terminal for easy integration

    Janus Remote Communications announces the launch of the Terminus GSM864Q Open Frame. The Terminus Open Frame module's design allows for easy integration into custom devices or existing designs.

  • Yamaha launches a new concept in advanced M2M connectivity

    The 1 STOP SOLUTION method links intelligent production machines and enterprise software to overcome limitations in information exchange in an advanced M2M environment.

    In recent years, the proliferation of high-speed communications infrastructure and...

  • Fail-safe, wireless operator control and surveillance via fast roaming

    Siemens Industry Automation has improved the performance and equipment of its handheld devices for wireless operator control and machine and plant control, and has also increased them with additional functions.

  • Avnet Embedded introduces the new generation of GSM/GPRS terminals from Cinterion

    Avnet Embedded, an Avnet, Inc. company, announces the availability of a new generation of Cinterion GSM/GPRS terminals that offer greatly improved functionality while maintaining full compatibility with previous models.

  • BroadForward provides an M2M proxy solution for the world's first PVNO

    BroadForward, a software company based in the Netherlands, has announced that its BFX gateway is now fully operational, supporting the world's first Virtual Private Network Operator (VPN). The Netherlands-based CGI systems integrator implemented BFX to...

  • Homemade wireless spy camera

    My house, my boat, my horse. Anyone who wants to watch over their valuable possessions 24 hours a day must either watch over them constantly or leave others to do so.

Siglent
Cofitel group
CIOE
Rec Farnel

Newsletter

Subscribe to our newsletter:

Latest News

Agriculture and livestock farming lead the IoT in Spain with 44.8% of devices

Monday, September 7, 2026

The agricultural and livestock sector is consolidating its position as a leader in the implementation of the Internet of Things in...

Broadband Forum introduces the Matter Service API to power the open smart home

Thursday, August 20, 2026

The Matter Service API is the first standardized solution in history that offers...

Wireless Logic agrees to acquire Algar Telecom's IoT business in Brazil

Friday, August 14, 2026

Wireless Logic has announced the signing of an agreement to acquire the IoT connectivity business of...

The EU launches a €10 billion tender to create up to seven AI Gigafactories in Europe

Thursday, August 6, 2026

The EU has launched a tender to establish up to seven AI Gigafactories across Europe,...

Cybergune: the new cybersecurity community of the Basque Country

Monday, July 20, 2026

The Basque Cybersecurity Industries Association (Cybasque) has launched Cybergune, the new...

Social networks

Facebook Twitter Instagram LinkedIn YouTube

cover 267

Subscribe to CONECtrónica magazine

You can subscribe to the Conectrónica magazine in 2 formats.

Digital Format: 5 downloadable PDF editions at an annual cost of 60 Euros (VAT included)

Paper Format: 5 editions to be received by mail at an annual cost of 180 Euros (VAT included).

Contact our subscriptions department at subscriptions@conectronica.com

Payment via Bizum or bank transfer

Technical Courses and Seminars

Mouser drives IoT development with its LoRaWAN resource center and new wireless connectivity solutions

Mouser drives IoT development with its LoRaWAN resource center and new wireless connectivity solutions

Mouser Electronics, Inc. highlights its comprehensive LoRa® resource center as the market accelerates...

DataCom: Technical guide for networks, fiber optics and structured cabling

DataCom: Technical guide for networks, fiber optics and structured cabling

Digital transformation has turned data networks into a critical infrastructure for...

Taoglas launches The Antenna Podcast, a new technical space about antenna design and innovation

Antennas remain one of the most critical and, at the same time, most misunderstood elements in...

ISE 2026 Barcelona: Summits, Megatrends and the most ambitious content program in the AV sector

Returning to Barcelona in February 2026, Integrated Systems Europe (ISE) presents its program of...

E-book: the future of satellite communications

Mouser Electronics, Inc., in collaboration with Qorvo and other technology innovators...

Optical Networks

Nokia unveils the first commercial AI-RAN platform for mobile networks

Nokia today announced the industry's first commercial AI-RAN platform, marking one of...

Televés renews Overlight with more efficient optical transmitters and a Quattro receiver that is 60% more compact

Televés expands its Overlight solution for distributing television signals over fiber optics with a...

VIAVI launches AI Experts: artificial intelligence to accelerate network validation and diagnosis

VIAVI Solutions Inc. has announced the launch of AI Experts, the first addition to its...

The glass box imperative: governance of intent-based automation in AI-native networks

Connectivity is a fundamental infrastructure, and reliability standards continue to rise...

Multidimensional reconfigurable add/delete optical multiplexer for WDM-MDM systems

In the rapidly evolving field of optical networks, the demands for greater flexibility and...

LAN 2026: Standards, Trends and New Developments in Local Area Networks

The local area network (LAN) ecosystem is undergoing a phase of accelerated transformation in 2026, driven by...

Evolution of optical networks: ROADM, OpenROADM and OpenZR+ in the 400G and 800G era

The rapid increase in data traffic is driving the construction of new infrastructure worldwide...

Connectors. FTTH Magazine. Industrial Electronics. Fiber Optic Courses, Online Seminars, Technology News and Trade Shows, Industrial Fiber Optic Cables and Connectors, Company News, Oscilloscopes and Tools, Data Centers.

Electronic Magazine © of Telecommunications for Professionals.

All rights reserved GM2 Technical Publications, SL.

Symphonic Poem, 27. Esc B. Floor 1 Pta 5

28054 (Madrid - SPAIN)

Conectrónica is part of GM2 Publicaciones Técnicas, a publishing group specializing in technical and professional publications. Among its publications is Convertronic, specializing in professional electronics and power electronics.

e-mail: gm2@gm2publicacionestecnicas.com or consultations@conectronica.com

Privacy Policy

Legal Notice