TOP Contributors

  1. MIKROE (2658 codes)
  2. Alcides Ramos (355 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 (136925 times)
  2. FAT32 Library (70047 times)
  3. Network Ethernet Library (56012 times)
  4. USB Device Library (46313 times)
  5. Network WiFi Library (41935 times)
  6. FT800 Library (41241 times)
  7. GSM click (29028 times)
  8. PID Library (26435 times)
  9. mikroSDK (26415 times)
  10. microSD click (25390 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

ZigBee click

Rating:

5

Author: MIKROE

Last Updated: 2020-08-21

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: ZigBee

Downloaded: 2170 times

Not followed.

License: MIT license  

ZigBee Click is a compact add-on board that contains a fully integrated Zigbee transceiver with a 32-bit ARM® Cortex M3TM microprocessor, Flash and RAM memory, and peripherals.

No Abuse Reported

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

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

Do you want to report abuse regarding "ZigBee 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

ZigBee Click

ZigBee Click

Native view of the ZigBee Click board.

View full image
ZigBee Click

ZigBee Click

Front and back view of the ZigBee Click board.

View full image

Library Description

Library provides functions and macros for complete control over device. Library has one buffer that collects data with zigbee_process function. You can clear it and write it with library functions, you can also check if there is new data in buffer with zigbee_resp. There is generic function for sending one string of data, and one additional function for concating two string so you can use predefined AT commands from library.

Key functions:

  • void zigbee_send_cmd ( uint8_t *cmd_buf ) - Sends string to device
  • void zigbee_process ( uint8_t process_b ) - Collects data to library buffer
  • uint8_t zigbee_resp ( void ) - Checks if there is new data in library buffer

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of UART module and additional pins
  • Application Initialization - Initialization of driver, UART ISR and then configures device. Depending on previous selected device mode it creates new PAN network or joins to one.
  • Application Task - * Host mode: Broadcasts message 'MikroE' every 3 seconds. * User mode: Cheks if something is received.
void application_task ( )
{
    if ( DEV_HOST == dev_mode )
    {
        //Broadcasts message 'MikroE' over it's PAN network
        zigbee_send_at( ZIGBEE_AT_BCAST, &AT_BCAST_MSG[ 0 ] );
        resp_wait(  );
        Delay_ms( 3000 );
    }
    else if ( DEV_USER == dev_mode )
    {
        //Checks if there is something received
        resp_wait(  );
    }
}


Additional Functions :

  • void logger_function ( uint8_t *demo_txt, uint8_t write_macro ) - Wrapper function
  • void resp_wait ( ) - Function for waiting for complete response

Other mikroE Libraries used in the example:

  • UART
  • C_String

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

ADAC click

0

The click is designed to run on either 3.3V or 5V power supply. ADAC click communicates with the target microcontroller over I2C interface, with additional functionality provided by the RST pin on the mikroBUS™ line.

[Learn More]

LDC 2 click

0

LDC 2 Click is a compact add-on board that measures inductance change which a conductive target causes when it moves into the inductor's AC magnetic field. This board features the LDC1041, inductance-to-digital converter (LDC) for inductive sensing solutions from Texas Instruments.

[Learn More]

Joystick 2 click

0

Joystick 2 Click is a smart navigation key concept based on SKRHABE010 by Alps, a 4-direction joystick switch with Center-push Function.

[Learn More]