TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136660 times)
  2. FAT32 Library (69898 times)
  3. Network Ethernet Library (55916 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41881 times)
  6. FT800 Library (41126 times)
  7. GSM click (28970 times)
  8. PID Library (26406 times)
  9. mikroSDK (26343 times)
  10. microSD click (25350 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: 2149 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

Thermo 8 click

5

Thermo 8 click is a very accurate thermometer Click board, with a very high typical measurement accuracy of ±0.25°C, and great data repeatability of ±0.0625°C. Besides measuring the temperature, this Click board offers a set of very useful features, such as the thermostat function, interrupt event and critical temperature alert function.

[Learn More]

DIGI POT 12 click

0

DIGI POT 12 Click is a compact add-on board that contains a digitally controlled potentiometer. This board features the AD5142A, a dual-channel, 256-position nonvolatile digital potentiometer from Analog Devices. On this Click board™, two digitally I2C-controlled potentiometers are realized with end-to-end resistance of 10KΩ and wiper resistance of only 40Ω. The DIGI POT 12 Click can be used in potentiometer and linear gain modes.

[Learn More]

eFuse 2 click

5

eFuse 2 Click is a compact add-on board that contains an integrated FET hot-swap device. This board features the TPS259631, a highly integrated circuit protection and power management solution from Texas Instruments.

[Learn More]