- Locally on your computer:
Execute: git clone <YOUR_REPOSITORY>
- In your repository, insert in file
README.md
:
My Sens'it ID: <YOUR_SENSIT_ID>
- Commit and push your work!
-
Head over to the activate.
-
Select your country, enter the device ID & PAC and finish creating your account.
-
Once done, log on the backend.
-
Try sending a message by double pressing the button.
-
Click on your device ID and select the "Messages" tab. You should now see a Sigfox message.
-
Clone this repository.
-
Download and install GNU Arm Embedded Toolchain version 7.2.1.
-
Execute:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Execute:
brew install dfu-util
-
Edit:
./sensit-sdk-v2.0.0/sdk/Makefile
:- Make sure your
CC
,BIN_TOOL
,SIZE_TOOL
paths links to the right folder. - Example:
CC = /Users/<YOUR_PATH>/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc BIN_TOOL = /Users/<YOUR_PATH>/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-objcopy SIZE_TOOL = /Users/<YOUR_PATH>/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-size
- Make sure your
-
In
./sensit-sdk-v2.0.0/sdk/
, execute:make temperature
-
Download and install GNU Arm Embedded Toolchain version 7.2.1. /!\ Make sure to tick the
Add environment path variables
at the end of installation. -
Download and unzip dfu-util-0.9-win64.zip.
-
Download Make for Windows.
-
Download Zadig, you can install the STM32 driver once the device is in bootloader mode (cf. 'Program your Sens'it' steps 1. to 4.).
-
Edit:
./sensit-sdk-v2.0.0/sdk/Makefile
:- Set
LIB_PATH
,BIN_PATH
,OBJ_PATH
paths links to the right folder. - Example:
LIB_PATH = C:/Users/<YOUR_PATH>/sensit-sdk-v2.0.0/sdk/lib BIN_PATH = C:/Users/<YOUR_PATH>/sensit-sdk-v2.0.0/sdk/bin OBJ_PATH = C:/Users/<YOUR_PATH>/sensit-sdk-v2.0.0/sdk/obj
- Set
-
In
./sensit-sdk-v2.0.0/sdk/
(where theMakefile
is), execute:"C:/Users/<YOUR_PATH>/GnuWin32/bin/make.exe" temperature
Now check on the Sigfox Backend if you received some messages.
To program your Sens'it you will need to put it in bootloader:
- Connect your device to your computer.
- Reset your device. With one of the provided firmwares you can do this with 4 short presses on the button.
- When the secondary LED starts blinking, do a long press on the button.
- If both LEDs become white, your device is in bootloader mode.
- Now you can flash:
LINUX/MACOS
: Use themake prog
command to program your Sens'it.WINDOWS
: Use the"C:/Users/<YOUR_PATH>/dfu-util.exe" -a 0 -s 0x08000000:leave -D bin/sensit.bin
command to program your Sens'it.
Hourray, you just flashed the main_TEMPERATURE.c
firmware.
Now check on the Sigfox Backend if you received some messages.
- Head over to the Sigfox Platform.
- Create an account or sign in.
- Go to the
API
section and keep it open. - On the Sigfox Backend:
- Click on your device type name.
- Go to the
CALLBACKS
section. - Create a two new callbacks:
- From step 3. copy and paste the BIDIR and GEOLOC information.
- Send a Sigfox message.
Your Sens'it messages must now be appearing on the platform and you should also have the Sigfox geolocation working.
- Think of a use case with your group.
- Fill in the blanks here.
- Describe briefly your use-case idea (try to keep it business focused if you can).
-
Make sure your Sens’it is activated and messages are received on the Sigfox Backend.
-
Use the Sens’it SDK docs.
- Open index.html in the
./sensit-sdk-v2.0.0/doc/html/
folder.
- Open index.html in the
Implement a new firmware in the main.c
file (located in ./sensit-sdk-v2.0.0/sdk/src/
).
- To compile use
make main
. This command will also let you verify your code. - To flash your Sens'it you will need to put it in bootloader:
- Connect your device to your computer.
- Reset your device. With one of the provided firmwares you can do this with 4 short presses on the button.
- When the secondary LED starts blinking, do a long press on the button.
- If both LEDs become white, your device is in bootloader.
- Then, use the
make prog
command to program your Sens'it.
- Head over to https://workshop.iotagency.sigfox.com.
- Create a parser (use your name as parser name) to decode your payloads.
- Build a dashboard.
- Download & fill the pitch slides here
- Pitch your use case! (2-3min talk max)
If you want to return to the original firmware of the Sens'it 3, use the following command to program it:
dfu-util -a 0 -s 0x08000000:leave -D bin/sensit_discovery_vX.X.X.bin
Replace X.X.X
with the current version of the Discovery firmware available in the bin
folder.