TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139058 times)
  2. FAT32 Library (71588 times)
  3. Network Ethernet Library (56988 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29770 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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

ISM RX 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-09-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 1929 times

Not followed.

License: MIT license  

ISM RX 2 Click is a compact add-on board that contains a pin configurable, low current, sub-GHz EZRadio® receiver. This board features the Si4356, a standalone Sub-GHz RF receiver IC, from Silicon Labs, which provides a true plug-and-play receive option.

No Abuse Reported

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

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

Do you want to report abuse regarding "ISM RX 2 click".

  • mikroSDK Library 2.0.0.0
  • 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

ISM RX 2 Click

ISM RX 2 Click

Native view of the ISM RX 2 Click board.

View full image
ISM RX 2 Click

ISM RX 2 Click

Front and back view of the ISM RX 2 Click board.

View full image

Library Description

Library provides function for initializing device and control over GPIO pin states.

Key functions:

  • void ismrx2_initialize_device ( void ) - Function for waking up device and reseting it
  • uint8_t ismrx2_get_data_pin_state ( void ) - Function for getting data pin pin state

Examples description

The application is composed of three sections :

  • System Initialization - Initialize GPIO pins and LOG module
  • Application Initialization - Initilize device
  • Application Task - Wait for data pin to go down and starts sampling and waiting for sync word if it's received collect data to buffer till it receive 0 byte
void application_task ( )
{
//---------------------------------------------------------Manchester example
    if ( MANCHESTER_EXAMPLE == example_type )
    {
        if ( ISMRX2_PIN_STATE_LOW == ismrx2_get_data_pin_state() )
        {
            //Collecting data till timeout
            sample_collecter();
            //Filtering data for validation
            filter_sample();
            
            if ( ISMRX2_DEV_OK == valid_data )
            {
                //Extracting manchester data
                man_sort();
                //Extracting bit data
                bit_sort();
                //Extracting decoded data
                data_sort();
                //Logs result if valid data received ( first byte 0xFF )
                if ( ISMRX2_DEV_OK == valid_data )
                {
                    data_tmp =  &data_buf[ 1 ];
                    mikrobus_logWrite( " - RX data: ", _LOG_TEXT );
                    mikrobus_logWrite( data_tmp, _LOG_LINE );
                    mikrobus_logWrite( "*********************", _LOG_LINE );
                }

                Delay_ms( 50 );
            }
            //Resets every counter and flag
            reset_to_default(  );
        }
    }
//-----------------------------------------------------------------------------

//--------------------------------------------------------------- Basic example
    if ( DEFAULT_EXAMPLE == example_type )
    {
        if ( ISMRX2_PIN_STATE_LOW == ismrx2_get_data_pin_state() )
        {
            state = read_rf_data( &data_buf[ 0 ] );
            if ( ISMRX2_DEV_OK == state )
            {
                mikrobus_logWrite( " - RX data: ", _LOG_TEXT );
                mikrobus_logWrite( data_buf, _LOG_LINE );
                mikrobus_logWrite( "*********************", _LOG_LINE );
                Delay_ms( 50 );
            }
        }
    }
//-----------------------------------------------------------------------------
}

Additional Functions :

  • uint8_t read_rf_data ( uint8_t *read_buff ) - Function for reading data from RF antenna till you get 0 byte.
  • void min_max_check ( uint8_t check_b ) - Function for getting max and min sample data values.
  • void bit_sort ( ) - Extracting bit data from manchester buffer.
  • void data_sort ( ) - Extracting data from bit buffer.
  • void man_set_data ( uint16_t smp_cnt, uint8_t man_data ) - Function that sets data to manchester buffer
  • void man_sort ( ) - Function for extracting data from sample buffer.
  • void sample_collecter ( ) - Collecting data from pin.
  • void filter_sample ( ) - Filtering collected data.
  • void reset_to_default ( ) - Resets flags and counters to default values.

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

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

Barcode 2 Click

0

Barcode 2 Click is an adapter add-on board that contains a computerized image recognition system that is compliant with a wide range of different 1D and 2D barcode protocols.

[Learn More]

STSPIN233 click

5

STSPIN233 click is a complete solution for a 3-phase integrated motor driver, based on the STSPIN233, Low voltage 3-phase integrated motor driver. It is optimized for battery-powered, low voltage motor driving applications, featuring the lowest standby current available on the market (max 80 nA).

[Learn More]

Thermo 15 click

5

Thermo 15 Click is a Click board equipped with the sensor IC, which can digitize temperature measurements between -55°C and +125°C so that the temperature measurement data can be processed by the host MCU. Thermo 15 click provides an accuracy of ±1°C in the range from 0°C to 70°C.

[Learn More]