TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136822 times)
  2. FAT32 Library (69984 times)
  3. Network Ethernet Library (55964 times)
  4. USB Device Library (46280 times)
  5. Network WiFi Library (41893 times)
  6. FT800 Library (41203 times)
  7. GSM click (28997 times)
  8. PID Library (26420 times)
  9. mikroSDK (26386 times)
  10. microSD click (25383 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: 4309 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

Ambient 21 click

0

Ambient 21 Click is a compact add-on board used to measure the amount of the present ambient light. This board features ams AG's TSL2591, a very-high sensitivity light-to-digital converter that transforms light intensity to a digital signal output capable of the direct I2C interface. It combines one broadband photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit, providing a flexible and wide operating range of up to 88klx with an excellent responsivity close to the human eyes' response. The TSL2591 also has a programmable interrupt function and an integrated filter to reduce unwanted IR signals from the environment, improving lux accuracy across various light sources.

[Learn More]

Charger 11 click

5

Charger 11 Click is a LiFePO4 (lithium iron phosphate) battery charger. This click can be used for Low-Cost LiFePO4 battery chargers, or Power Tools, toys, backup energy storage solutions, etc.

[Learn More]

H-Bridge 6 click

5

H-Bridge 6 Click is a compact add-on board that contains a DC motor driver for automotive applications. This board features the VNHD7008AY, an H-bridge motor driver for automotive DC motor driving from STMicroelectronics.

[Learn More]