Other Parts Discussed in Thread: Z-STACK, LAUNCHXL-CC1352P, LAUNCHXL-CC1352R1, LAUNCHXL-CC26X2R1, UNIFLASH, CC2652RB, CCSTUDIO,
Hi,
I am following "Z-Stack Linux Gateway - Quick Start Guide" to set-up and try to run sample gateway application.
I have used Raspberry-pi instead of Beagle bone as Gateway and follow the below stape.
- Raspberry-Pi Setup:
Set-up the Raspberry pi 3b model with Raspberry Pi OS (32-bit) with desktop and kernel version is 5.4
Update and upgrade all packages.
-
- sudo apt-get update
- sudo apt-get upgrade
- Install killall tools.
- sudo apt-get install psmisc
- Install dos2unix package
- sudo apt-get install dos2unix
Ensure that the source/scripts/package_builder script has TARGET_PLATFORM set to "BEAGLEBONE_BLACK" (ie. export TARGET_PLATFORM="BEAGLEBONE_BLACK") .
-
- sudo apt-get install autoconf automake libtool curl make g++ unzip
- apt-get install protobuf-c-compiler
- git clone github.com/.../protobuf.git
- cd protobuf
- ./autogen.sh
- ./configure
- make
- make check
- sudo make install
- sudo ldconfig # refresh shared library cache.
2. Gateway Setup: The following instructions will cover setting up the Zigbee Gateway project.
Using WinSCP, connect to the Raspberry-Pi.
Copy the source/ folder to the Raspberry-Pi home directory.
On the host, navigate to the source/ directory.
cd source/
Convert the setup script to Unix line endings and make executable. Then run the setup script. This will convert all necessary scripts to Unix line endings, will delete (if applicable) and rebuild the source Linux Gateway code, extract binaries, make files executable and install all Node Modules:
-
- sudo dos2unix setup.sh
- sudo chmod +x setup.sh
- sudo ./setup.sh
3. ZNP Setup: The following instructions will assist in programming one of the LaunchPads (LAUNCHXL-CC1352P, LAUNCHXL-CC1352R1, or LAUNCHXL-CC26X2R1) with a ZNP hex image.
Connect the LaunchPad to your PC.
Open Flash Programmer 2 (or UniFlash).
Erase all flash sections on the LaunchPad.
Select the appropriate image for the Launchpad:
ZNP images are located in Firmware/znp/
For example, a CC26x2R1 Launchpad will use "CC2652R1LP_GW_ZNP_UART.hex"
Flash this image to the LaunchPad.
When flashed successfully, connect the LaunchPad to the host, using the A-Male to Mini-Male USB Cable.
4. To start the gateway:
Open a new terminal accessing the host (eg PuTTY for Raspberry-Pi)
-
- cd ~/source/out/Precompiled/servers
- sudo ./zigbeeHAgw
This will start and monitor the following servers:
NPI_lnx
ZLSZNP
NWKMGR_SRVR
GATEWAY_SRVR
OTA_SRVR
To start the sample gateway application
-
- cd ~/source/out/Precompiled/servers
- sudo ./start_application
Gateway is not showing server connected to it.
after run "start application" it showing a below result.
"Waiting to connect to network manager server..."