TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137096 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56122 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42073 times)
  6. FT800 Library (41384 times)
  7. GSM click (29116 times)
  8. mikroSDK (26562 times)
  9. PID Library (26489 times)
  10. microSD click (25487 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: 2185 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

EEPROM 13 click

0

EEPROM 13 Click is a compact add-on board that contains a highly reliable, nonvolatile memory solution. This board features the M24M01E, an electrically erasable programmable memory with enhanced hardware write protection for entire memory from STMicroelectronics. Its memory size of 1Mbit is organized as 128K words of 8bits each, with a page size of 256 bytes and an additional 256 bytes of identification page. The identification page can be used to store sensitive application parameters, which can be (later) permanently locked in read-only mode.

[Learn More]

GSM-GPS click

2

GSM-GPS click is a mikroBUS add-on board with a SIM808 module that combines GSM/GPRS and GPS into a single device.

[Learn More]

MP3 2 click

0

MP3 2 Click is an audio decoder expansion board with on-board microSD card slot, that enables you to create your personal audio playback system. It holds the KT403A,a SOC chip solution with intergraded MCU, hardware audio MP3/WAV decoder and DSP, from Shenzhen Qianle Microelectronics Technology Co.

[Learn More]