loading

What are the Sigfox callbacks ?

Sigfox offers a callback service: every time a message is received by the network, you can set up the way you want it to be forwarded to your application server.You can configure your URL, content-type, request body, etc… [1]

In this tutorial we will configure a callback to turn ON/OFF a led connected to Qualcomm DragonBoard 410c using taurussystem.com APIs.

Credit:

[1] - https://blog.sigfox.com/create-callback-sigfox-backend/

Step 1: Creating a Callback

Log in your sigfox backend account and go to “Device Type”, then click on card’s name.

On the menu on the right you will be able to see at the bottom “callbacks”.Click on “New” (upper-right corner) and then “Custom callback”.

Now, choose custom callback, we will make a http GET request to taurussystem.com to update an actuator value with data coming from the sigfox device.

The URL to do it is: http://taurussystem.com/ws/webresources/Digital/set?key=SERIAL&actuator=ACTID&value={data}

Where:

  • SERIAL = API key of your Taurussystem project
  • ACTID = ID of your digital actuator component

Follow the attached image to configure your callback!

Step 2: Buy a Sigfox Dev. Kit

In this case, i'm using Texas Instruments kit available in Sigfox partners page:

https://partners.sigfox.com/products/boostxl-cc1120-90

But you can find others that you want here: https://partners.sigfox.com/products/kit

To get the project to upload it to your board, follow this intructions:

http://www.ti.com/lit/ug/swru487/swru487.pdf (if you bought TI kit)

Sigfox team takes a little time to reply to emails.

Open a terminal emulator, verifiy the port that your kit is connected and send the following commands to send data:

  • AT$SB=0,1 //send bit 0

  • AT$SB=1,1 //send bit 1

If all goes well, go to the next step!

Step 3: Download the Code and Run in DragonBoard

Get the code:

You need to make some modifications on code:

Line 16:

taurus.taurus('SERIAL')

Replace SERIAL to your taurus project serial.

Line 27:

status = taurus.read_dActuator('1001')# put your actuator ID

Replace 1001 to the actuator id registered at your dashboard.

Now, run the code and control what you want using Sigfox network and Dragonboard 410c

  • $ sudo python main.py

The command takes around 20 seconds to completed.

About This Instructable

488views

2favorites

Bio: Product Development Specialist at Das Coisas
More by leoribg:How to create an Eddystone beacon using DragonBoard Azure IoT Hub - Set Up MQTT.fx, Sigfox Callback and DragonBoard AWS IOT - Set up MQTT.fx, Sigfox Callback and DragonBoard 
Add instructable to: