wikiroute

networking recipes

User Tools

Site Tools


esib_iot_challenge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
esib_iot_challenge [2017/05/17 17:32] – [3. Devices] sameresib_iot_challenge [2017/05/17 17:43] – [1. Platform] samer
Line 14: Line 14:
 [{{ :lora-pilot-architecture.png?direct&650 | Figure 1. Architecture of the LoRaWAN Platform}}] [{{ :lora-pilot-architecture.png?direct&650 | Figure 1. Architecture of the LoRaWAN Platform}}]
  
-<WRAP left help 100%>+<WRAP center round help 75%>
   * Where is the LoRa modulation implemented on the platform?   * Where is the LoRa modulation implemented on the platform?
   * What are the advantages of the LoRa modulation?   * What are the advantages of the LoRa modulation?
Line 54: Line 54:
 </WRAP> </WRAP>
  
 +Download the example sketch and open it with Arduino IDE. Now you should configure your device with the same identifiers as in the backend. 
 +
 +<WRAP center round tip 100%>
 +Note that the device and application identifiers should be in little endian format. The application key is in big endian format. For example, ''0badde1cafe2deca'' is written as ''0xCA, 0xDE, 0xE2, 0xAF, 0x1C, 0xDE, 0xAD, 0x0B''.
 +</WRAP>
 +
 +
 +<code c++>
 +static const u1_t PROGMEM APPEUI[8]= { };
 +void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);}
 +
 +// This should also be in little endian format, see above.
 +static const u1_t PROGMEM DEVEUI[8]= { };
 +void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);}
  
-Download the example sketchopen it with Arduino IDE and compile it.+static const u1_t PROGMEM APPKEY[16] = { }; 
 +void os_getDevKey (u1_t* buf) {  memcpy_P(bufAPPKEY, 16);} 
 +</code>
    
 You can download the following sketch {{ :test-loraserver-comb-loraserver-dragino.zip |}} and modify it according to your preferences. Below you can find somme commented extracts of the sketch. You can download the following sketch {{ :test-loraserver-comb-loraserver-dragino.zip |}} and modify it according to your preferences. Below you can find somme commented extracts of the sketch.
esib_iot_challenge.txt · Last modified: 2021/08/28 09:53 by samer