TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136736 times)
  2. FAT32 Library (69951 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46266 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41171 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26360 times)
  10. microSD click (25376 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

SigFox 2 click

Rating:

5

Author: MIKROE

Last Updated: 2018-10-23

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 4303 times

Not followed.

License: MIT license  

SigFox 2 click is a device which 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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "SigFox 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "SigFox 2 click" changes.

Do you want to report abuse regarding "SigFox 2 click".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

SigFox 2 Click

SigFox 2 Click

Front view of the SigFox 2 Click board.

View full image
SigFox 2 Click

SigFox 2 Click

Front and back view of the SigFox 2 Click board.

View full image

Library Description

The library contains basic functions for controlling the click board.

Key functions:

  • int32_t sigfox2_init() - Function for initializing the sensor.
  • int32_t sigfox2_wakeUp() - Function for waking up the sensor from the sleep mode.
  • int32_t sigfox2_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 = sigfox2_wakeUp();
 if(_status == _SIGFOX2_STATUS_SUCCESS)
 {
 mikrobus_logWrite("Wakeup succesfull",_LOG_LINE);
 _status = sigfox2_testSpicon(&spiFrameACK);
 if(spiFrameACK == 1)
 {
 mikrobus_logWrite("SPI test finished succesfully",_LOG_LINE);
 mikrobus_logWrite("Sending data to sigfox network",_LOG_LINE);
 _status = sigfox2_receiveMessage(&sendPayload[0],&rData[0]);
 if(_status == _SIGFOX2_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 = sigfox2_sleep();
 if(_status == _SIGFOX2_STATUS_SUCCESS)
 {
 mikrobus_logWrite("Sleep entered",_LOG_LINE);
 }
 else
 {
 mikrobus_logWrite("Error entering sleep",_LOG_LINE);
 }
 Delay_ms(5000);
}

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 clickUSB 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.

ALSO FROM THIS AUTHOR

Accel 11 click

5

Accel 11 click features an ultra-low power triaxial accelerometer sensor with embedded intelligence, labeled as the BMA456.

[Learn More]

VAV Press click

0

VAV Press Click is a compact add-on board that contains a board-mount pressure sensor. This board features the LMIS025B, a low differential pressure sensor from First Sensor (part of TE Connectivity). It is based on thermal flow measurement of gas through a micro-flow channel integrated within the sensor chip. The innovative LMI technology features superior sensitivity, especially for ultra-low pressures ranging from 0 to 25Pa. The extremely low gas flow through the sensor ensures high immunity to dust contamination, humidity, and long tubing compared to other flow-based pressure sensors.

[Learn More]

Expand 9 click

0

Expand 9 Click is a compact add-on board that contains a multi-port I/O expander. This board features the SX1509QB, the world’s lowest voltage level shifting GPIO expander from Semtech Corporation. The SX1509QB comes in a 16-channel configuration and allows easy serial expansion of I/O through a standard I2C serial interface. It also has a built-in level shifting feature making it highly flexible in power supply systems where communication between incompatible I/O voltages is required, an integrated LED driver for enhanced lighting, and a keypad scanning engine to implement keypad applications up to 8x8 matrix.

[Learn More]