SigFox 2 Click Board (North America)
SigFox 2 Click Board (North America)
The SigFox 2 Click Board™ for North America is a device that carries the SN10-12, a fully integrated Sigfox certified module by InnoComm, allowing connection to a low power wide area network (LPWAN) that enables communication utilizing the Industrial, Scientific, and Medical (ISM) radio frequency band.
The SigFox 2 Click Board™ comes with the subscription to the Sigfox network for a duration of one year from the moment of Activation.
It comes in a package that also includes the mikroSDK software and a library with all the functions. The Click Board™ comes as a fully tested and approved prototype, making it a reliable device ready to use on the development board.
Note: The Sigfox 2 Click Board™ is intended to be used in the RCZ2 (North America) and RCZ4 (Asia).
Software Support
We provide a library for the SigFox Click Board™on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains basic functions for controlling the click board.
Key Functions
int32_t sigfox_init()
- Function for initializing the sensor.int32_t sigfox_wakeUp()
- Function for waking up the sensor from the sleep mode.int32_t sigfox_sleep()
- Function for placing sigfox to the low power mode.
Example Description
Click board wakes up from sleep. Some tests are performed. After the tests and after the data has been sent and received from the network the click board is placed into the sleep mode to its low power mode. All events that are executed inside of the application task are printed to the serial port.
void applicationTask() { char spiFrameACK = 0; char rData[20]; uint8_t sendPayload[12] = "Test msg"; _status = sigfox_wakeUp(); if(_status == _SIGFOX_STATUS_SUCCESS) { mikrobus_logWrite("Wakeup succesfull",_LOG_LINE); _status = sigfox_testSpicon(&spiFrameACK); if(spiFrameACK == 1) { mikrobus_logWrite("SPI test finished succesfully",_LOG_LINE); mikrobus_logWrite("Sending data to sigfox network",_LOG_LINE); _status = sigfox_receiveMessage(&sendPayload[0],&rData[0]); if(_status == _SIGFOX_STATUS_SUCCESS) { mikrobus_logWrite("Data received",_LOG_LINE); mikrobus_logWrite(&rData[0],_LOG_LINE); } else { mikrobus_logWrite("Network error",_LOG_LINE); } } else { mikrobus_logWrite("Error in echo frame",_LOG_LINE); } } else { mikrobus_logWrite("Error in wakeup",_LOG_LINE); } _status = sigfox_sleep(); if(_status == _SIGFOX_STATUS_SUCCESS) { mikrobus_logWrite("Sleep entered",_LOG_LINE); } else { mikrobus_logWrite("Error entering sleep",_LOG_LINE); } Delay_ms(5000); }
The full application code, and ready to use projects can be found on our Libstock page.
Other MikroElektronika libraries used in the example:
- SPI Library
- UART Library
- Conversions Library
- C_String Library
Additional notes and information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
The SigFox Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
SigFox 2 Click Board (North America)
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.