Enable Cellular Communication on an X-Series Data Logger Using CONNECT

To enable cellular communication on an X-Series data logger, the user must set the proper settings for the Packet Data Protocol (PDP) context in the CONNECT software. The PDP context involves the local context identification parameter (cid), the PDP type, and the Access Point Name (APN). Each of these settings specifies the local cellular carrier utilized by the modem and SIM card (e.g., Verizon, AT&T, T-Mobile, etc.) and provides a way to route data packets to the WQData LIVE Web Datacenter. For modems with multiple carrier options, multiple PDP contexts can be set; however, only one can be set to the “Active cid”. The process below outlines how to set the PDP context for cellular communication.

Power On the Modem

  1. Connect the X2 logger to a PC and launch the CONNECT software.
  2. Navigate to Tool | X2 RTU | Cellular within CONNECT.
    1. Wait for 30 seconds before powering on the RTU, as the X-Series data logger will conduct internal processes on powerup that will interfere with direct communication.

Figure 1: Navigate to Tool | X2 RTU | Cellular.


  1. Select Turn Power ON to startup the X2’s RTU board, which controls communication to the internal modem and SIM card.
    1. Note that this process may take up to 30 seconds to complete.
    2. A message will appear to confirm once RTU Power is successfully turned on.
      • Note: The RTU will power down every 10 minutes or after completing a sensor reading. If this occurs, turn on the RTU again to continue direct communication.

Figure 2: Turn on the X2 RTU power.


Set the Network Configuration for the Local Cellular Carrier

Newer modem models (LE910C1-xx) available in X-Series data loggers can switch between multiple cellular carriers (e.g., AT&T, Verizon, T-Mobile, etc.). The carrier used at any given time must be specified and saved within the internal settings on the modem for proper communication. Begin by confirming the modem model and then set the proper cellular carrier accordingly.

  1. Send the AT#CGMM to return the model name of the installed modem.
    1. If the logger contains the LE910C1-xx model, continue to step 2.
    2. If the logger contains a different modem model, continue to Verify the Current APN Settings.

Figure 3: CONNECT view modem model command.


  1. Check which mode the modem is currently in by entering: AT#FWSWITCH?

Figure 4: Check the current mode command. The current mode is Verizon.


  1. Change the mode to the proper cellular carrier by entering any of the following commands:
    1. AT#FWSWITCH=0,1 (AT&T/International)
    2. AT#FWSWITCH=1,1 (Verizon)
    3. AT#FWSWITCH=3,1 (Bell)
    4. AT#FWSWITCH=4,1 (Telus)
    5. AT#FWSWITCH=40,1 (Global)
    6. AT#FWSWITCH=101,1 (T-Mobile Deutsche)
      • After sending the command, wait ~30 seconds for the firmware change to complete.

Figure 5: Change from cellular carrier mode.


  1. Resend the AT#FWSWITCH? to ensure a successful change.

Figure 6: Confirm successful mode change.


  1. Enter and send the following command (AT+WS46=28) to force the modem to only look for 4G networks.
    1. By default, modems will look for available 2G and 3G networks, which are becoming obsolete. Limiting the connection to 4G networks substantially lowers the amount of time required for the modem to connect to a network.

Figure 7: 4G-only cellular connectivity.


Verify and Configure the Current PDP Context Settings

New modem and SIM card combinations usually come with standard PDP context settings available in the list. The current PDP context settings can be verified before making any adjustments, if necessary.

  1. To confirm the PDP Context settings, select and send the AT+CGDCONT? command from the Direct Command list.

Figure 8: Response to AT+CGDCONT? command displaying the modem’s currently configured APN profiles.


  1. In the PDP Context field of the menu, enter the following information:
    1. cid
      • Each cellular carrier has multiple cid’s available for different purposes (e.g., IMS services, administrative, emergency, general internet connection, etc.). The cid necessary for communication with WQData LIVE is for general internet connections only.
        • 1 = AT&T, T-Mobile, or most International carriers
        • 3 = Verizon
    1. PDP Type – (Type of IP address assigned to the PDP)
      • IPV4V6 typically works universally; however, confirm the proper type with the cellular provider for certainty.
      • KORE SIM cards provided by NexSens use the IP PDP type. Confirm the SIM card type with NexSens if uncertain.
    1. APN
      • Each cellular carrier has multiple APNs used for different purposes and corresponding to a specific cid. The most common APNs are available within the drop-down list.
      • If the required APN is not on the list, which will often be the case, enter the proper APN enclosed in quotations.

Figure 9: Example of setting a custom APN on a 4G Verizon data logger.


  1. After entering the values, click Set. Then, a prompt will appear indicating whether the command was successful.
  2. Multiple PDP contexts with different cids can be set; however, the Active cid must be set for the carrier that is currently being utilized. Enter the appropriate cid and select Set Active cid.
  3. It is recommended to read back the APN settings via the AT+CGDCONT? direct command following the change to verify they are properly listed on the modem.


Test Network Connection

After configuring the modem APN settings, test the modem’s network connection.

  1. Send the AT+CMEE=2 Direct AT command to turn on extended error codes.

Figure 10: Turn on extended error code responses in the modem.


  1. Read the Signal Quality of the system to verify it is within the -51 dBm to -90 dBm range.

Figure 11: Verify the signal strength is adequate.


  1. Send either the AT#SGACT=1,1 (for AT&T/International) or AT#SGACT=3,1 (for Verizon) direct commands to query the modem to connect to the network and resolve an IP address.
    1. If using a WorldWide (WW) modem model, send the command manually using the Active cid number, unless the Active cid is either a 1 or 3.
      • Example: AT#SGACT=4,1

Figure 12: Successful connection of a Verizon modem, indicated by the return of an IP address.


    1. Successful connections will display the IP address assigned to the modem during its connection request.
    2. Connections that fail will display one of many messages (facilitated by the extended error code activation in step 1). Some common ones are:
      • SIM not inserted – indicates a loose or improperly installed SIM card in the modem.
      • Activation Failed – generally a cellular account setup issue.
      • Requested Service Option not subscribed – generally a cellular account setup issue.
      • Unspecified GPRS error – typically a cellular account setup issue or an incompatibility between the network in use and the supported cell modem/antenna bands.
  1. Send the Custom 1, followed by the Custom 2 command.
    1. The Custom 1 command activates the modem and sets an HTTP connection to wqdatalive.com.
    2. The Custom 2 command tests the communication with WQData LIVE by transmitting null data to wqdatalive.com and seeing if a timestamp is returned.

Figure 13: Successful Custom 1 command response.

Figure 14: Successful Custom 2 command response.


After successfully configuring the network connection, use the WQDATA tab in CONNECT to transfer data to WQData LIVE.