Skip to content

Zigbee Direct is a communication protocol designed to enable direct communication between Zigbee devices and smartphones or tablets without the need for a dedicated Zigbee hub or gateway.

License

Notifications You must be signed in to change notification settings

stm32-hotspot/STM32WBA-ZigbeeDirect-ZDD

Repository files navigation

ZigbeeDirect_OnOff Application Description


Zigbee Direct is a communication protocol designed to enable direct communication between Zigbee devices and smartphones or tablets without the need for a dedicated Zigbee hub or gateway. Inside the Zigbee Direct ecosystem, you have two main actors : the ZVD (Zigbee Virtual Device) and the ZDD (Zigbee Direct Device). On this Application, the ZVD joins the ZDD Zigbee network and controls the Zigbee device by sending On and Off commands.

Keywords

Connectivity, ZigbeeDirect, Zigbee protocol, BLE, 802.15.4 protocol

Hardware Requirements

For this application it is requested to have at least:

  • One STM32WBA55xx or STM32WBA65xx board loaded with the application ZigbeeDirect_OnOff
  • One STM32WBA55xx or STM32WBA65xx board loaded with the application ZigbeeDirect_OnOff_Server_Router_Identify(For demo use case 2 only)
  • One IOS device loaded with Ubisys Smart Home application

Demo use case 1


                       ZVD (Zigbee Virtual Device)          ZDD (Zigbee Direct Device)                                                       
                   +-------------------------------+           +-----------------+
                   |                               |           |                 |
                   | Ubisys Smart Home Application |           | WBA5 or WBA6    |
                   |      (running on IOS)         |           | Nucleo board    |
                   |                               |           |                 |
 Use the dedicated |                               |           |                 |
 smartphone apps =>|                               | --------> |                 |=> LED toggle
 to control the    |                               |           |                 |
 LED on the ZDD    |                               |           |                 |
 switch item       |                               |           |                 |
                   |-------------------------------|           |-----------------|


Application Setup

Demo use case 2


                       ZVD (Zigbee Virtual Device)          ZDD (Zigbee Direct Device)             ZD (Zigbee Device)                                                       
                   +-------------------------------+           +-----------------+              +-----------------+
                   |                               |           |                 |              |                 |
                   | Ubisys Smart Home Application |           | WBA5 or WBA6    |              | WBA5 or WBA6    |
                   |      (running on IOS)         |           | Nucleo board    |              | Nucleo board    |
                   |                               |           |                 |              |                 |
     Use the    => |                               | --------> |                 |=> LED toggle |                 |
    dedicated      |                               |           |                 |              |                 |
 smartphone apps   |                               |           |                 |              |                 |
  to control the   |                               |           |                 |              |                 |
  LED on the ZDD   |                               |           |                 |              |                 |
   switch item  => |                               | --------> |                 | -----------> |                 |=> LED toggle
                   |                               |           |                 |              |                 |
                   |-------------------------------|           |-----------------|              |-----------------|

Application Setup

Help Commands

  • To get help, please have a look a the following commands. Open an HyperTerminal connected to the WBA board and enter the command Help : You will get access to the following commands :

         APP_ZIGBEE_App_Task :    adv      ; Re-enable BLE advertisements
         APP_ZIGBEE_App_Task :    help     ; Print this help
         APP_ZIGBEE_App_Task :    on       ; Turn OnOff cluster LED ON
         APP_ZIGBEE_App_Task :    off      ; Turn OnOff cluster LED OFF
         APP_ZIGBEE_App_Task :    pjoin    ; Enable permit-join via ZDO broadcast
         APP_ZIGBEE_App_Task :    status   ; print overall status
         APP_ZIGBEE_App_Task :    swreset  ; board reset
    

Hardware and Software environment

  • This example runs on STM32WBA55xx and STM32WBA65xx devices.

  • This example has been tested with an STMicroelectronics STM32WBA55CGA_Nucleo and STM32WBA65xx_Nucleo board and can be easily tailored to any other supported device and development board.

  • On STM32WBA55CGA_Nucleo or on STM32WBA65RI_Nucleo, the jumpers must be configured as described in this section. Starting from the top left position up to the bottom right position, the jumpers on the Board must be set as follows:


**JP1:**
1-2: [ON]
3-4: [OFF]
5-6: [OFF]
7-8: [OFF]
9-10: [OFF]

**JP2:**
1-2: [ON]

Traces


BaudRate = 115200 baud
Word Length = 8 Bits
Stop Bit = 1 bit
Parity = none
Flow control = none
Terminal "Go to the Line"

About

Zigbee Direct is a communication protocol designed to enable direct communication between Zigbee devices and smartphones or tablets without the need for a dedicated Zigbee hub or gateway.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •