6/18/2023 0 Comments Quick node guide![]() Let’s get started by uploading the basic example. The library also comes with an example demonstrating most of these APIs. It wraps the commands to work with the various sensors in simple APIs. The The Things Network Arduino Library comes with a class dedicated to The Things Node. You will be redirected to the newly registered device, where you can find the generated Example Code which we’ll need next. Leave the App Key on “this field will be generated”.For Device EUI, copy-paste the DevEUI you retrieved from your device.A device ID needs to be unique per application, but can be reused in another application. For Device ID, choose an ID of lower case, alphanumeric characters and nonconsecutive - and _.In the Devices box, click register device. On the application’s page, scroll down to Devices or select Devices from the top right menu. You are now ready to register your device to the application. You will be redirected to the newly added application. Leave the Handler registration on the default selected value, unless you are going to use this application in a different region than your default region.For Description, enter anything you like.For Application ID, choose a unique ID of lower case, alphanumeric characters and nonconsecutive - and _.Then change the default Handler if the one currently selected is not where you’ll be deploying most of your devices.ĭevices need to be registered with an application to communicate with. You can change all but your username later via your Profile.įrom the top right menu, select your name and then Settings. You have 24 hours to do so, so let’s wait for the mail and carry on! □ You will receive an email to confirm your email address. To register your device you’ll need a The Things Network account. □ You have connected your device, written your first sketch, uploaded it to your device and monitored your device logs to retrieve its Device EUI. Use the first EUI value to register your device. ![]() Soon, it should print a list of information: - STATUS Within 10 seconds, select Tools > Serial Monitor to open the Serial Monitor. If it still fails, check Arduino Troubleshooting, or the troubleshooting page. Close the serial monitor, check the port selection and try again. Uploads may fail if the Serial Monitor is open or if the IDE lost track of the port you selected. Select Sketch > Upload to upload the sketch. Replace REPLACE_ME with either TTN_FP_EU868 or TTN_FP_US915 depending on the frequency plan of your device. In the Arduino IDE, select File > Examples > TheThingsNetwork > DeviceInfo. This is a unique address, hard coded into the LoRa module. For this, we’ll need its unique Device EUI. To communicate via The Things Network, you need to register your device. You will have to see what /dev/*usb* (Mac/Linux) or COM (Windows) option appears in the menu after connecting the Node.Īnother common issue is that on recent Macs the Node may not appear at all. Unlike The Things Uno, which the Arduino IDE recognizes as Arduino Leonardo, it does not always recognize the Node as SparkFun Pro Micro. Select the Node’s Serial Port under Tools > Port. Select Tools > Processor > ATmega32U4 (3.3V, 8Mhz). In the Arduino IDE, select Tools > Boards > SparkFun Pro Micro. The one we ship with The Things Uno should work. Also make sure you use a cable that supports data, not just power. Some Micro-USB cables might not fit the limited space between the battery compartment and the casing. Using both batteries and USB at the same time is also ok, as the device will then switch to using USB.Ĭonnect a micro-USB cable to the connector found between the battery compartment and the top side of the case. You do not need to insert batteries while we program it, since the Node will be powered via USB. Open the case using a Phillips (cross) screw driver. Follow SparkFun’s Installation Instructions to add the additional board manager and install the SparkFun AVR Boards. ![]() Install the latest versions of both TheThingsNetwork and TheThingsNode.
0 Comments
Leave a Reply. |