Connect your LoRaWAN gateway and verify its connection status - Amazon IoT Core
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Connect your LoRaWAN gateway and verify its connection status

Before you can check the gateway connection status, you must have already added your gateway and connected it to Amazon IoT Core for LoRaWAN. For information about how to add your gateway, see Add a gateway to Amazon IoT Core for LoRaWAN.

Connect your gateway to Amazon IoT Core for LoRaWAN

After you've added your gateway, connect to the configuration interface of your gateway to enter the configuration information and trust certificates.

After adding the gateway's information to Amazon IoT Core for LoRaWAN, add some Amazon IoT Core for LoRaWAN information to the gateway device. The documentation provided by the gateway's vendor should describe the process for uploading the certificate files to the gateway and configuring the gateway device to communicate with Amazon IoT Core for LoRaWAN.

Gateways qualified for use with Amazon IoT Core for LoRaWAN

For instructions on how to configure your LoRaWAN gateway, refer to the configure gateway device section of the Amazon IoT Core for LoRaWAN workshop. Here, you'll find information about instructions for connecting gateways that are qualified for use with Amazon IoT Core for LoRaWAN.

Gateways that support CUPS protocol

The following instructions show how you can connect your gateways that support the CUPS protocol.

  1. Upload the following files that you obtained when adding your gateway.

    • Gateway device certificate and private key files.

    • Trust certificate file for CUPS endpoint, cups.trust.

  2. Specify the CUPS endpoint URL that you obtained previously. The endpoint will be of the format prefix.cups.lorawan.region.amazonaws.com:443.

For details about how to obtain this information, see Add a gateway to Amazon IoT Core for LoRaWAN.

Gateways that support LNS protocol

The following instructions show how you can connect your gateways that support the LNS protocol.

  1. Upload the following files that you obtained when adding your gateway.

    • Gateway device certificate and private key files.

    • Trust certificate file for LNS endpoint, lns.trust.

  2. Specify the LNS endpoint URL that you obtained previously. The endpoint will be of the format prefix.lns.lorawan.region.amazonaws.com:443.

For details about how to obtain this information, see Add a gateway to Amazon IoT Core for LoRaWAN.

After that you've connected your gateway to Amazon IoT Core for LoRaWAN, you can check the status of your connection and get information about when the last uplink was received by using the console or the API.

Check gateway connection status using the console

To check the connection status using the console, navigate to the Gateways page of the Amazon IoT console and choose the gateway you've added. In the LoRaWAN specific details section of the Gateway details page, you'll see the connection status and the date and time the last uplink was received.

Check gateway connection status using the API

To check the connection status using the API, use the GetWirelessGatewayStatistics API. This API doesn't have a request body and only contains a response body that shows whether the gateway is connected and when the last uplink was received.

Note

The time when the last uplink was received, or the LastUplinkReceivedAt value, is only valid for 3 months.

HTTP/1.1 200 Content-type: application/json { "ConnectionStatus": "Connected", "LastUplinkReceivedAt": "2021-03-24T23:13:08.476015749Z", "WirelessGatewayId": "30cbdcf3-86de-4291-bfab-5bfa2b12bad5" }