Replace the SIM card and change the cellular network settings from the CLI

Each Connect Sensor has a SIM card supplied by Digi installed by default, but you can choose to replace the Digi-supplied SIM card with your own SIM. If you do, you are required to configure the device with the credentials for the new SIM card.

If any information from the SIM card carrier is not correctly applied, the device will no longer connect to Digi Axess.

Before you begin

You will need the following items:

You should have these items prepared:

Step 1: Configure the APN cellular network settings for the new SIM card

In this step, you will configure the APN on the device using the CLI. This ensures that when the device connects to Digi Axess, the configuration updates from Digi Axess match the configuration already on the device.

  1. Use the USB cable to connect your computer to the device.

    1. Connect the type A end of the USB cable to the USB port on your computer.

    2. Connect the type B end of the USB cable to the mini USB port on the device.

  2. Open the terminal emulator on your computer.

  3. Open a connection to the USB port on the device. Use these settings:

    • Connection port: Connect to the COM port associated with the USB cable connected to the Connect Sensor.

    • Baud rate or bits per second: 115200

    • Data: 8 bit

    • Parity: None

    • Stop: 1 bit

    • Flow control: None

  4. Use the magnet to wake the Connect Sensor.

  5. Type the CLI command: custom apn=<apn>

    where <apn> is the APN for the carrier.

  6. Press Enter.

    Note The Connect Sensor waits 30 seconds from when you pressed Enter to begin processing the command.

  7. If your carrier requires additional APN access information, enter the following commands and provide the information. Press Enter after each command.
    • Type the CLI command: custom usr=<usr>

      where <usr> is the user name associated with the APN.

    • Type the CLI command: custom pwd=<pwd>

      where <pwd> is the password associated with the APN.

    • Type the CLI command: custom pin=<pin>

      where <pin> is the PIN associated with the SIM card.

  8. (Optional) If you entered a custom command, you can use the activate command to process the custom command immediately, rather than waiting 30 seconds.

    1. Type the CLI command: activate

    2. Press Enter.

  9. When the Connect Sensor has processed the CLI command, the device goes to sleep. The following line displays in the terminal program when the device is sleeping:

    Zzz...

  10. Close the terminal program after the device has gone to sleep.

  11. Disconnect the USB cable from the Connect Sensor and the computer.

  12. Continue to Step 2.

Step 2: Install your new SIM card

In this step, you will remove the existing SIM card and insert the new one.

Note Retain the Digi-supplied SIM card, in case you need to reset the device to the default configuration.

  1. Orient the Connect Sensor so the top of the device is facing you.

  2. If your device has a NEMA case, open the case.

  3. Locate the SIM card slot.

  4. Use your tool to push the existing SIM card into the slot. The SIM card will pop out.

  5. Remove the existing SIM card and retain it in a safe place.

  6. Insert your new SIM card into the SIM card slot. Match the chamfered corner of the SIM card to the chamfered corner of the slot.

  7. Use your tool to push the SIM card into the slot.

  8. If your device has a NEMA case, close the case.

  1. Continue to Step 3.

Step 3: Verify that the Connect Sensor can connect to Digi Axess

In this step, you will verify that the device's APN has been configured correctly by making sure the device can connect to Digi Axess.

  1. Connect to Digi Axess and update the configuration on the Connect Sensor.

    1. Manually wake the Connect Sensor with the magnet.

    2. When the device wakes up, it connects to Digi Axess and applies any configuration changes.

    3. When the updates are complete and the Connect Sensor is asleep, continue to the next step.

  2. Log into Digi Axess.

  3. Find the updated device using one of the following methods.

    • Use the Search Devices field in the toolbar to find the device that you just updated. You can search by serial number or location name.

    • Click on the device's location pin in the map.

    • Select the device from the list of mapped devices.

    • Display the devices in the table format and search for the device.