sigfox makers tour workshop
TRANSCRIPT
![Page 1: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/1.jpg)
WorkshopSIGFOX MAKERS TOUR USING AN AKERU DEV BOARD
![Page 2: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/2.jpg)
Contribute back
![Page 3: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/3.jpg)
Contribute
Don’t forget to publish your experiments
Code Samples, HW design, fails … will be useful to other
people
We all start by copy/pasting ;)
Your own website, github, hackster.io, instructables … your call!
![Page 4: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/4.jpg)
Useful resources
Github
http://github.com/sigfox/makers-tour-resources
http://github.com.nicolsc
Add your own !
Q&A
http://sigfox.cloud.answerhub.com/
![Page 5: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/5.jpg)
First stepsUSING AN AKERU BOARD
![Page 6: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/6.jpg)
Register
http://backend.sigfox.com/activate
Kit provider :
Country :
Device ID: sticker
PAC: check the list
![Page 7: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/7.jpg)
HELLO WORLD
![Page 8: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/8.jpg)
Hello World Sketch
Open the Arduino IDE
Select the board
Board type : Arduino Uno
Try one of the File > Examples samples
![Page 9: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/9.jpg)
Hello World Sketch
#include <SoftwareSerial.h>
SoftwareSerial sigfox(5,4);
void setup(){
Serial.begin(9600);
sigfox.begin(9600);
sigfox.write("AT$SF=48 45 4c 4c 4f 20 57 4f 52 4c 44\r");
}
void loop(){
while (sigfox.available()){
Serial.print(sigfox.read());
}
}
![Page 10: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/10.jpg)
Message received ?
http://backend.sigfox.com
Navigate to the devices menu in the top bar
Click on the ID of your device
Enter the messages menu from the left navigation column
![Page 11: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/11.jpg)
First callback
![Page 12: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/12.jpg)
Callback setup
Device Type menu
Enter the Callbacks menu
Select new default callback
![Page 13: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/13.jpg)
Callback setup
![Page 14: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/14.jpg)
Callback setup
TYPE : DATA UPLINK
Choose a CHANNEL : URL | EMAIL
Email is good for a quick try
If you choose URL, you can then set the method, content-
type, and format the body as you wish
![Page 15: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/15.jpg)
Callback status
In the Devices > Messages panel, you have a indicator of the callback
status (an arrow)
Black : in progress
Green : Callback OK
Red : Callback KO
Click the arrow to display details.
KO means at least one of the callbacks failed
![Page 16: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/16.jpg)
Downlink
![Page 17: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/17.jpg)
How does it work ?
Send a message, with a downlink flag
Once message is sent, the module gets back to sleep
After 20s, it will wake up automatically, in Rx mode
It will wait 20s for a downlink message
Afterwards it will get back to sleep
![Page 18: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/18.jpg)
Downlink setup
To setup an automatic callback :
Device Type > Info > Edit
In the Downlink data settings, set the following :
Downlink Mode : DIRECT
Set the following value : 123400000BADCAFE
![Page 19: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/19.jpg)
How to request a downlink
Same AT command, with additional parameters
AT$SF=[hex byte]*, 2, 1
![Page 20: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/20.jpg)
Handle the response
When entering Rx mode, the module will display
+RX BEGIN
Received frame (if any) will be displayed as:
+RX= [byte] [byte] [byte] [byte] [byte] [byte] [byte] [byte]
End of Rx mode
+RX END
![Page 21: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/21.jpg)
Downlink callback
In Device Type > Info > Edit
change Downlink mode to CALLBACK
Create a new default callback, with TYPE : DATA | BIDIR
Then set up your URL
![Page 22: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/22.jpg)
Sample input output
AT$SF=55 50 4C 49 4E 4B, 2, 1
OK
+RX BEGIN
+RX=44 4F 57 4E 4C 49 4E 4B
+RX END
![Page 23: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/23.jpg)
Sample code
Arduino
https://github.com/sigfox/makers-tour-resources/tree/
master/Akeru/downlink
Server side
https://github.com/nicolsc/sigfox-downlink
PR welcome in different languages
![Page 24: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/24.jpg)
Go furtherUSING AN AKERU BOARD
![Page 25: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/25.jpg)
Other AT commands
AT&V : Detailed info about the module
AT$SF=[hex byte]* : Send a frame
ATS300=[int] Schedule the emission of a keep-alive frame every [int] hours
AT&W : Save settings
ATI26 :Module temperature in °C
ATI27 : Module idle power supply voltage
![Page 26: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/26.jpg)
Other AT commands
Arduino sample code + link to full references of the TD1208
module
https://github.com/sigfox/makers-tour-resources/tree/master/Akeru/mirror
![Page 27: Sigfox makers tour Workshop](https://reader033.vdocuments.mx/reader033/viewer/2022051503/587cb38d1a28ab38028b5309/html5/thumbnails/27.jpg)
Use the module only
The module has a Cortex M3 than you can reprogram
Checkout the TD Next website for instructions
http://rfmodules.td-next.com/sdk/