Reference Manual

Redpine Signals, Inc. Proprietary and Confidential Page 35
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
4.8.1.1 About the Sample Application
This is the ZigBee Home Automation-defined switch application using Host APIs. This application connects to the light
parent and tries to match the simple descriptors by using Match Descriptor command.
After exchanging the simple descriptors, it will send the toggle command to the light continuously.
4.8.1.2 Host API Folder Structure
The folder structure for host API along with sample applications has been given below. This folder structure is available in
the "ZigBee/utils" folder.
The folders in the ZigBee/utils folder are as follows:
apis contains the core APIs and sample application
- core contains the host mode API implementation.
- ref_apps contains the reference HA switch application.
- build - contains Makefile to compile core and ref_apps irrespective of reference project.
reference_projects contains code related to netlink sockets which is used to communicate with driver.
4.8.1.3 Building and Running the Home Automation Sample Application
The steps for building and running the home automation sample application are as follows:
1. Go to the folder "ZigBee/utils/reference_projects/src"
2. Clean the existing builds by entering the given below command
3. Build the Home Automation Switch application by using the given below command
4. Run the switch app by entering the given below command
4.9 Driver Uninstallation Procedure
The driver can be uninstalled along with the different modules by using the scripts provided in the "release" folder.
1. remove_all.sh: Uninstall the complete driver and all the modules including the common HAL modules .
4.10 Driver Information
4.10.1 Driver Statistics
Use the given below command inorder to view Wi-Fi driver statistics: