LoPy4
Last updated
Last updated
The LoPy4 is a quadruple bearer MicroPython enabled development board (LoRa, Sigfox, WiFi, Bluetooth) perfect enterprise grade IoT platform for your connected Things. With the latest Espressif chipset the LoPy4 offers a perfect combination of power, friendliness and flexibility.
Make sure you have a KPN Things Portal freemium account. Follow the registration and setup getting started to get you an account.
Use the getting started from the Pycom documentation to get started with your LoPy4. Make sure you setup both the hardware and software. You should be able to program the module when continuing this getting started.
The LoPy4 is a LoRa device, and to register a LoRa-device to a network you need three values: DevEUI, AppEUI and AppKey. These values must be registered in KPN Things and in the device. More information on these three values you can read here.
Open the KPN Things Portal. Go to the All Devices page and click on Add new Device.
Select the Own LoRa device (preset connectivity) device type
Enter a name for your LoPy4
Click Add Device to continue
Fill in the three values you determined in the previous step Determine device identifiers. Then click Add Network Info to save the network information and then Finish to continue.
You are now on the Device Detail Page. In the Status panel you will see the LoRa Connectivity status. This can temporarily be Pending creation, but if you refresh the page it should switch to Active. This means your device is correctly registered to the network.
If the LoRa Connectivity sticks to Pending creation, you could try to delete the Device and register the device again.
If the Network Status ended up in Failed, something has gone wrong. Most likely the DevEUI is already registered through another application like Thingpark or the LoRa Developer Portal. Please make sure you remove the device registration from the other application and re-add the device in the Things Portal. For more information consult our FAQ.
Use the LoRaWAN with OTAA example from Pycom to get your device connected with our LoRa network and have it send data to KPN Things.
Now your LoPy4 has joined and is sending data, you could visit the Data History tab on your Device Detail Page in the Portal. You should see your Join request and Join accept appear like in the screenshot below and at this point you will see more data as well.
More information about what you see on the Data History on the Device detail page can be found here.
You now successfully connected your Marvin device to KPN Things! To further setup your data flow in KPN Things, you should pick up the general Getting Started from step 3:
Value
How to get it
DevEUI
Use this code snippet from the Pycom documentation to retrieve the pre-programmed EUI from your LoPy4. You can use that one as DevEUI.
AppEUI
You can use this general purpose AppEUI: 0059AC00000FFFFF
AppKey
Every device should have its own unique AppKey, since it is the root security key of your device. You can generate a unique AppKey here: https://www.loratools.nl/#/keys.