Tool/software: Linux
Hi,
I am setting up Zigbee Linux Sensor to Cloud Setup 1.0.0 on ubuntu-18 but fails see below details,
INSTALL SSH SERVER ON UBUNTU
$ sudo apt install openssh-server
install npm
$ sudo apt-get install npm
1. Update and upgrade all packages.
$ sudo apt-get update
$ sudo apt-get upgrade
2. Install killall tools.
$ sudo apt-get install psmisc
3. Install dos2unix package.
$ sudo apt-get install tofrodos
$ sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix
4. $ 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 --prefix=/usr
$ make
$ make check
$ sudo make install
$ sudo ldconfig
# refresh shared library cache('/usr/local/lib').
5. The same applies for github.com/.../protobuf-c.git
protobuf-c/t/generated-code2/cxx-generate-packed-data.cc line 1002:43
change- const google::protobuf::Reflection *reflection = mess.GetReflection();
instead of
const google::protobuf::Message::Reflection *reflection = mess.GetReflection();
6. Install pkg-config
$ sudo apt-get install pkg-config
7. Download, run, and install the gateway package from www.ti.com/.../ZIGBEE-LINUX-SENSOR-TO-CLOUD
7.1. Using WinSCP, connect to the Rapberry pi 3b.
7.2. Copy the source/ folder to the Rapberry pi home directory.
7.3. Back in PuTTY, navigate to the new folder.
$ cd source/
7.4. Create a x86 and arm folder inside of /Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/protobuf-c/lib and copy libprotobuf-c.a/la/so.1/so.1.0.0 from /usr/lib along with creating a pkgconfig folder in which to place libprotobuf-c.pc
7.5. Go to /Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway/zcl_port.c and replace memcpy(buf, pActionRsp->payload.data, len); with memcpy(buf, pActionRsp->payload.data, pActionRsp->payload.len);
7.6. Go to /Zigbee_3_0_Linux_Gateway_1_0_0/source/scripts/package_builder and change TARGET_PLATFORM to x86 and libprotobuf-c.so.0/0.0.0 to libprotobuf-c.so.1/1.0.0, respectively.
7.7. Change /Zigbee_3_0_Linux_Gateway_1_0_0/source/setup.sh from libprotobuf-c.so.0/0.0.0 to libprotobuf-c.so.1/1.0.0, respectively.
7.8. change ""mqtt": "~1.0.10"," to ""mqtt": "1.13.0"," in package.json under /source/Projects/node/node_zb_gateway
7.9 nevigate to /source/Projects/zstack/linux/scripts/hagateway
$ sudo nano zigbeeHAgw
change ttyACM0 to ttyUSB0 save file and exit.
Comment out the folllowing lines in in zigbeeHAgw.
"../tools/bbb_usbreset.bin"
7.10 /Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost
Change devPath="/dev/ttyACM0" to devPath="/dev/ttyUSB0" in NPI_Gateway.cfg
7.11. 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
8. ZNP Setup
1. Connect the LaunchPad CC2651R1F to PC.
2. Open Flash UniFlash.
3. Select the following image:
Firmware/znp/CC2652LP-USB-GW-ZNP.hex
4. Flash this image to the LaunchPad.
5. When flashed successful, disconnect the LaunchPad from the PC and connect to the Rapberry pi.
9. Navigate the source/Projects/node/ folder.
1. Run the following command to start the Linux Zigbee Gateway and the Node.js Zigbee Gateway hosting a local web application.
$ sudo ./start_local.sh
4. Wait for the Gateway to start. An IP Address will be printed out in the terminal indicating where the local web application is being hosted. On your PC in a web browser, navigate to the IP address of your BeagleBone Black, followed by port 5000.
webserver: Server running on http://192.168.0.101:5000
5. web application should appear successfully.
when click on Open Network button below message appear in terminal,
webserver: open network
ZB-Gateway: Called openNetwork()
nwkmgr: openNetwork
sendMessage: no responseHndl
Logs of scripts-
ajit@ajit-VirtualBox:~/source$ sudo ./setup.sh
******************* BEGIN SETUP! ********************
This setup script will:
- make all necessary scripts executable
- ensure necessary files have UNIX line endings
- remove prebuilt directories
- install Node Modules for Node.js Zigbee Gateway
- build Linux Zigbee Gateway
- extract Linux Zigbee Gateway binaries
*****************************************************
Entered /Projets/node Directory
Make the gateway scripts executable
SUCCESS - gateway scripts executable
/home/ajit/source
Remove ERROR__out or out Directory if present
rm: cannot remove 'ERROR__out/': No such file or directory
rm: cannot remove 'out/': No such file or directory
Don't worry, there are no Previous built package to delete. Carry on.
Convert all files from dos2unix
SUCCESS: Converted Scripts to Unix Line endings
Entered /Projets/node/nodejs_zb_gateway Directory
Installing Node Modules
> bufferutil@1.2.1 install /home/ajit/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory '/home/ajit/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_MTHOD_ARGS_TYPE)’:
../src/bufferutil.cc:102:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: *((unsigned char*)to+2) = *((unsigned char*)from+2) ^ *((unsigned char*)mask+2);
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:103:7: note: here
case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
^~~~
../src/bufferutil.cc:103:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:104:7: note: here
case 1: *((unsigned char*)to ) = *((unsigned char*)from ) ^ *((unsigned char*)mask);
^~~~
../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NANMETHOD_ARGS_TYPE)’:
../src/bufferutil.cc:77:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: *((unsigned char*)from+2) = *((unsigned char*)from+2) ^ ((unsigned char*)mask)[2];
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:78:7: note: here
case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
^~~~
../src/bufferutil.cc:78:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:79:7: note: here
case 1: *((unsigned char*)from ) = *((unsigned char*)from ) ^ ((unsigned char*)mask)[0];
^~~~
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory '/home/ajit/source/Projects/node/nodejs_zb_gateway/node_modules/bufferutil/build'
> utf-8-validate@1.2.2 install /home/ajit/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory '/home/ajit/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:
../src/validation.cc:81:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:82:7: note: here
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:83:7: note: here
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:84:7: note: here
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:85:7: note: here
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:86:7: note: here
case 0 : ch += (uint8_t) value[i];
^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:52:5: note: here
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:52:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:53:5: note: here
case 2: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:59:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 0xF4: if (a > 0x8F) return 0;
^~
../src/validation.cc:62:5: note: here
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
^~~~
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/home/ajit/source/Projects/node/nodejs_zb_gateway/node_modules/utf-8-validate/build'
nodejs_zb_gateway@1.0.0 /home/ajit/source/Projects/node/nodejs_zb_gateway
+-- buffer-reverse@1.0.1
+-- bytebuffer@3.5.5
| +-- bufferview@1.0.1
| `-- long@2.4.0
+-- express@4.16.4
| +-- accepts@1.3.5
| | +-- mime-types@2.1.22
| | | `-- mime-db@1.38.0
| | `-- negotiator@0.6.1
| +-- array-flatten@1.1.1
| +-- body-parser@1.18.3
| | +-- bytes@3.0.0
| | +-- http-errors@1.6.3
| | +-- iconv-lite@0.4.23
| | | `-- safer-buffer@2.1.2
| | `-- raw-body@2.3.3
| +-- content-disposition@0.5.2
| +-- content-type@1.0.4
| +-- cookie@0.3.1
| +-- cookie-signature@1.0.6
| +-- debug@2.6.9
| | `-- ms@2.0.0
| +-- depd@1.1.2
| +-- encodeurl@1.0.2
| +-- escape-html@1.0.3
| +-- etag@1.8.1
| +-- finalhandler@1.1.1
| | `-- unpipe@1.0.0
| +-- fresh@0.5.2
| +-- merge-descriptors@1.0.1
| +-- methods@1.1.2
| +-- on-finished@2.3.0
| | `-- ee-first@1.1.1
| +-- parseurl@1.3.2
| +-- path-to-regexp@0.1.7
| +-- proxy-addr@2.0.4
| | +-- forwarded@0.1.2
| | `-- ipaddr.js@1.8.0
| +-- qs@6.5.2
| +-- range-parser@1.2.0
| +-- safe-buffer@5.1.2
| +-- send@0.16.2
| | +-- destroy@1.0.4
| | `-- mime@1.4.1
| +-- serve-static@1.13.2
| +-- setprototypeof@1.1.0
| +-- statuses@1.4.0
| +-- type-is@1.6.16
| | `-- media-typer@0.3.0
| +-- utils-merge@1.0.1
| `-- vary@1.1.2
+-- ibmiotf@0.2.41
| +-- axios@0.5.4
| | `-- es6-promise@2.3.0
| +-- bluebird@2.11.0
| +-- btoa@1.2.1
| +-- concat-stream@1.6.2
| | +-- buffer-from@1.1.1
| | +-- readable-stream@2.3.6
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@2.0.0
| | | +-- string_decoder@1.1.1
| | | `-- util-deprecate@1.0.2
| | `-- typedarray@0.0.6
| +-- events@1.1.1
| +-- form-data@2.3.3
| | +-- asynckit@0.4.0
| | `-- combined-stream@1.0.7
| | `-- delayed-stream@1.0.0
| +-- format@0.2.2
| +-- loglevel@1.6.1
| `-- mqtt@2.18.8
| +-- es6-map@0.1.5
| | +-- d@1.0.0
| | +-- es5-ext@0.10.49
| | | `-- next-tick@1.0.0
| | +-- es6-iterator@2.0.3
| | +-- es6-set@0.1.5
| | +-- es6-symbol@3.1.1
| | `-- event-emitter@0.3.5
| +-- help-me@1.1.0
| | +-- callback-stream@1.1.0
| | `-- glob-stream@6.1.0
| | +-- extend@3.0.2
| | +-- glob@7.1.3
| | | +-- fs.realpath@1.0.0
| | | +-- inflight@1.0.6
| | | +-- minimatch@3.0.4
| | | | `-- brace-expansion@1.1.11
| | | | +-- balanced-match@1.0.0
| | | | `-- concat-map@0.0.1
| | | `-- path-is-absolute@1.0.1
| | +-- glob-parent@3.1.0
| | | +-- is-glob@3.1.0
| | | | `-- is-extglob@2.1.1
| | | `-- path-dirname@1.0.2
| | +-- is-negated-glob@1.0.0
| | +-- ordered-read-streams@1.0.1
| | +-- pumpify@1.5.1
| | | `-- pump@2.0.1
| | +-- remove-trailing-separator@1.1.0
| | +-- to-absolute-glob@2.0.2
| | | `-- is-absolute@1.0.0
| | | +-- is-relative@1.0.0
| | | | `-- is-unc-path@1.0.0
| | | | `-- unc-path-regex@0.1.2
| | | `-- is-windows@1.0.2
| | `-- unique-stream@2.3.1
| | +-- json-stable-stringify-without-jsonify@1.0.1
| | `-- through2-filter@3.0.0
| +-- mqtt-packet@5.6.0
| +-- pump@3.0.0
| `-- websocket-stream@5.3.0
| +-- readable-stream@3.3.0
| `-- ws@6.2.1
| `-- async-limiter@1.0.0
+-- mqtt@1.13.0
| +-- commist@1.1.0
| | `-- leven@2.1.0
| +-- end-of-stream@1.4.1
| | `-- once@1.4.0
| | `-- wrappy@1.0.2
| +-- help-me@0.1.0
| +-- inherits@2.0.3
| +-- minimist@1.2.0
| +-- mqtt-connection@2.1.1
| | +-- mqtt-packet@3.5.0
| | +-- reduplexer@1.1.0
| | | `-- readable-stream@1.0.34
| | | +-- isarray@0.0.1
| | | `-- string_decoder@0.10.31
| | `-- through2@0.6.5
| | `-- readable-stream@1.0.34
| | +-- isarray@0.0.1
| | `-- string_decoder@0.10.31
| +-- mqtt-packet@3.5.0
| | `-- bl@1.2.2
| +-- pump@1.0.3
| +-- readable-stream@1.0.34
| | +-- core-util-is@1.0.2
| | +-- isarray@0.0.1
| | `-- string_decoder@0.10.31
| +-- reinterval@1.1.0
| +-- split2@2.2.0
| +-- websocket-stream@3.3.3
| | +-- duplexify@3.7.1
| | | `-- stream-shift@1.0.0
| | +-- through2@2.0.5
| | `-- ws@1.1.5
| | +-- options@0.0.6
| | `-- ultron@1.0.2
| `-- xtend@4.0.1
+-- node-persist@0.0.12
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| `-- q@1.1.2
+-- protocol-buffers@2.4.7
| +-- generate-function@2.3.1
| | `-- is-property@1.0.2
| +-- generate-object-property@1.2.0
| +-- protobuf-schema@1.5.1
| +-- resolve-protobuf-schema@1.0.2
| +-- signed-varint@2.0.1
| | `-- varint@5.0.0
| `-- varint@4.0.1
`-- socket.io@1.3.7
+-- debug@2.1.0
| `-- ms@0.6.2
+-- engine.io@1.5.4
| +-- base64id@0.1.0
| +-- debug@1.0.3
| | `-- ms@0.6.2
| +-- engine.io-parser@1.2.2
| | +-- after@0.8.1
| | +-- arraybuffer.slice@0.0.6
| | +-- base64-arraybuffer@0.1.2
| | +-- blob@0.0.4
| | `-- utf8@2.1.0
| `-- ws@0.8.0
| +-- bufferutil@1.2.1
| | +-- bindings@1.2.1
| | `-- nan@2.13.2
| `-- utf-8-validate@1.2.2
| `-- nan@2.4.0
+-- has-binary-data@0.1.3
| `-- isarray@0.0.1
+-- socket.io-adapter@0.3.1
| +-- debug@1.0.2
| | `-- ms@0.6.2
| +-- object-keys@1.0.1
| `-- socket.io-parser@2.2.2
| +-- debug@0.7.4
| `-- isarray@0.0.1
+-- socket.io-client@1.3.7
| +-- backo2@1.0.2
| +-- component-bind@1.0.0
| +-- component-emitter@1.1.2
| +-- debug@0.7.4
| +-- engine.io-client@1.5.4
| | +-- component-inherit@0.0.3
| | +-- debug@1.0.4
| | | `-- ms@0.6.2
| | +-- has-cors@1.0.3
| | | `-- global@2.0.1
| | +-- parsejson@0.0.1
| | +-- parseqs@0.0.2
| | +-- parseuri@0.0.4
| | +-- ws@0.8.0
| | `-- xmlhttprequest@1.5.0
| +-- has-binary@0.1.6
| | `-- isarray@0.0.1
| +-- indexof@0.0.1
| +-- object-component@0.0.3
| +-- parseuri@0.0.2
| | `-- better-assert@1.0.2
| | `-- callsite@1.0.0
| `-- to-array@0.1.3
`-- socket.io-parser@2.2.4
+-- benchmark@1.0.0
+-- debug@0.7.4
+-- isarray@0.0.1
`-- json3@3.2.6
npm WARN nodejs_zb_gateway@1.0.0 No repository field.
SUCCESS: Installed all Node Modules Successfully
/home/ajit/source
Make build_all executable
SUCCESS: build_all script is now executable
Make scripts/ executable
SUCCESS: scripts/ folder is now executable
Run ./build_all
./package_builder: line 22: svnversion: command not found
SVN Version =
Main project\'s base directory: GATEWAY=/home/ajit/source (leave blank to use the detault)
Project output subdirectory: PKGS_OUTPUT_DIR=/home/ajit/source/out (leave blank to use the detault)
Building RUNTIME package for x86 platform
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
rm -f project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING NPI SERVER FOR x86
make[1]: Entering directory '/home/ajit/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHot'
Compiling ipclib/server/npi_lnx_ipc.c ...
Compiling ipclib/server/npi_lnx_uart.c ...
Compiling ipclib/server/npi_lnx_spi.c ...
Compiling ipclib/server/npi_lnx_i2c.c ...
Compiling ipclib/server/hal_gpio.c ...
Compiling ipclib/server/hal_i2c.c ...
Compiling ../../../../srvwrapper/trace.c ...
Compiling ipclib/server/hal_spi.c ...
Compiling ../../../../srvwrapper/configparser.c ...
Building target out/NPI_lnx_x86_server ...
********************************************************
make[1]: Leaving directory '/home/ajit/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHos'
Cleaning up osal_zstack_server_znp.o ../source/zmain.o znp_af.o znp_misc.o znp_zdo.o ../zstackpb/zstack.pb-c.o ./zstackpb/zstackpb.o ../srvwrapper/api_client.o ../srvwrapper/trace.o ../srvwrapper/main.o ../srvwrapper/api_srver.o ../srvwrapper/configparser.o ../linux_osal/common/OSAL_Memory.o ../linux_osal/common/OSAL_PwrMgr.o ../liux_osal/common/OSAL_Timers.o ../linux_osal/common/OSAL.o ../../../../Components/services/saddr/saddr.o ../sourc/OnBoard.o ../hal/hal_timer.o ../source/pb_utils.o ../zstackserverznp/zstack_pb_ctrl.o out/*
********************************************************
Building ZLSZNP_x86
Compiler: gcc
Targer platform: x86
********************************************************
Compiling osal_zstack_server_znp.c
Compiling ../source/zmain.c
Compiling znp_af.c
znp_af.c: In function ‘sendGpSecRsp’:
znp_af.c:525:14: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
afStatus_t status;
^~~~~~
Compiling znp_misc.c
znp_misc.c: In function ‘processAFIncomingMsgInd’:
znp_misc.c:706:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
leftover = (uint32)pPtr % 4;
^
Compiling znp_zdo.c
Compiling ../zstackpb/zstack.pb-c.c
Compiling ../zstackpb/zstackpb.c
Compiling ../srvwrapper/api_client.c
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/trace.c
Compiling ../srvwrapper/main.c
Compiling ../srvwrapper/api_server.c
Compiling ../srvwrapper/configparser.c
Compiling ../linux_osal/common/OSAL_Memory.c
Compiling ../linux_osal/common/OSAL_PwrMgr.c
Compiling ../linux_osal/common/OSAL_Timers.c
../linux_osal/common/OSAL_Timers.c: In function ‘osal_start_timerEx’:
../linux_osal/common/OSAL_Timers.c:278:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-varible]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_start_reload_timer’:
../linux_osal/common/OSAL_Timers.c:344:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-varible]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_stop_timerEx’:
../linux_osal/common/OSAL_Timers.c:412:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-varible]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL_Timers.c: In function ‘osal_timer_num_active’:
../linux_osal/common/OSAL_Timers.c:456:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-varible]
halIntState_t intState;
^~~~~~~~
Compiling ../linux_osal/common/OSAL.c
../linux_osal/common/OSAL.c: In function ‘osal_msg_receive’:
../linux_osal/common/OSAL.c:515:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_find’:
../linux_osal/common/OSAL.c:592:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_enqueue’:
../linux_osal/common/OSAL.c:630:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_dequeue’:
../linux_osal/common/OSAL.c:670:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_push’:
../linux_osal/common/OSAL.c:705:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_extract’:
../linux_osal/common/OSAL.c:734:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_msg_enqueue_max’:
../linux_osal/common/OSAL.c:774:17: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_set_event’:
../linux_osal/common/OSAL.c:827:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_clear_event’:
../linux_osal/common/OSAL.c:860:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
../linux_osal/common/OSAL.c: In function ‘osal_run_system’:
../linux_osal/common/OSAL.c:1040:19: warning: variable ‘intState’ set but not used [-Wunused-but-set-variable]
halIntState_t intState;
^~~~~~~~
Compiling ../../../../Components/services/saddr/saddr.c
Compiling ../source/OnBoard.c
Compiling ../hal/hal_timer.c
Compiling ../source/pb_utils.c
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’ but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c
Linking ZLSZNP_x86
********************************************************
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
make[1]: Entering directory '/home/ajit/source/Projects/zstack/linux/nwkmgr'
Compiling ../srvepconfig/serverep.c ...
Compiling nwkmgrsrv.c ...
Compiling nwkmgrdatabase.c ...
Compiling ../srvwrapper/trace.c ...
Compiling ../sdb/SimpleDB.c ...
Compiling ../sdb/SimpleDBTxt.c ...
Compiling nwkmgrservices.c ...
Compiling nwkmgrp2p.c ...
Compiling nwkmgr.pb-c.c ...
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/main.c ...
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’ but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Building target out/NWKMGR_SRVR_x86 ...
********************************************************
make[1]: Leaving directory '/home/ajit/source/Projects/zstack/linux/nwkmgr'
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
make[1]: Entering directory '/home/ajit/source/Projects/zstack/linux/hagateway'
Compiling ../srvepconfig/serverep.c ...
Compiling gatewaysrvr.c ...
gatewaysrvr.c: In function ‘processGwGetDeviceAttributeListReq’:
gatewaysrvr.c:2686:56: warning: passing argument 5 of ‘gwServices_ConvertPbClusterList’ from incompatible pointr type [-Wincompatible-pointer-types]
&attrListRsp.n_clusterlist );
^
In file included from gatewaysrvr.c:53:0:
gatewayservices.h:140:26: note: expected ‘uint32 * {aka unsigned int *}’ but argument is of type ‘size_t * {akalong unsigned int *}’
extern GwClusterListT ** gwServices_ConvertPbClusterList( int attrCount, zclAttrRec_t *pAttrRecord,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling ../srvwrapper/trace.c ...
Compiling gatewayservices.c ...
Compiling ../serverpb/gatewayp2p.c ...
Compiling gateway.pb-c.c ...
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/main.c ...
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ../../../../Components/stack/gp/gp_common.c ...
Compiling ../../../../Components/stack/gp/gp_proxyTbl.c ...
Compiling ../../../../Components/stack/zcl/zcl_green_power.c ...
Compiling ../../../../Components/stack/zcl/zcl_general.c ...
Compiling ../../../../Components/stack/zcl/zcl_poll_control.c ...
Compiling ../../../../Components/stack/zcl/zcl_lighting.c ...
Compiling ../../../../Components/stack/zcl/zcl_closures.c ...
Compiling ../../../../Components/stack/zcl/zcl_hvac.c ...
Compiling ../../../../Components/stack/zcl/zcl_ss.c ...
Compiling ../../../../Components/stack/zcl/zcl.c ...
Compiling aps_groups.c ...
Compiling zcl_port.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’ but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../hagateway/gateway_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr.pb-c.c ...
Building target out/GATEWAY_SRVR_x86 ...
********************************************************
make[1]: Leaving directory '/home/ajit/source/Projects/zstack/linux/hagateway'
********************************************************
Cleaning all
if test -d out; then rm -rf out; fi
/bin/rm -f project_file_list.txt
/bin/rm -f actual_specific_project_file_list.txt
/bin/rm -f actual_standard_project_file_list.txt
********************************************************
Check existance of output folder
if test ! -d out; then mkdir out; fi
********************************************************
COMPILING APP FOR x86
export ARCH=x86
make[1]: Entering directory '/home/ajit/source/Projects/zstack/linux/otaserver'
Compiling ../zstackpb/zstack.pb-c.c ...
Compiling ../../../../Components/stack/zcl/zcl_general.c ...
Compiling ../../../../Components/stack/zcl/zcl.c ...
Compiling zcl_ota.c ...
Compiling ../srvwrapper/api_client.c ...
../srvwrapper/api_client.c: In function ‘SISreadThreadFunc’:
../srvwrapper/api_client.c:1149:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg,
^
../srvwrapper/api_client.c:1153:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)pMsg );
^
../srvwrapper/api_client.c: In function ‘SIShandleThreadFunc’:
../srvwrapper/api_client.c:1283:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1300:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)searchList );
^
../srvwrapper/api_client.c:1306:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int) searchList,
^
../srvwrapper/api_client.c: In function ‘asynchMsgCback’:
../srvwrapper/api_client.c:1365:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cst]
(unsigned int)(pMsg + 1) );
^
Compiling ../srvwrapper/api_server.c ...
Compiling ../srvwrapper/main.c ...
Compiling zcl_otaserver_lnx.c ...
Compiling OtaServer.c ...
Compiling OtaServer_db.c ...
Compiling ../sdb/SimpleDB.c ...
Compiling ../sdb/SimpleDBTxt.c ...
Compiling ../srvwrapper/configparser.c ...
Compiling ota_common.c ...
Compiling otasrvr.c ...
Compiling otasrvr.pb-c.c ...
Compiling ../serverpb/server.pb-c.c ...
Compiling ../srvwrapper/trace.c ...
Compiling ../serverpb/gatewayp2p.c ...
Compiling zcl_port.c ...
Compiling ../source/pb_utils.c ...
../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ../source/pb_utils.h:46:0,
from ../source/pb_utils.c:48:
../source/pb_utils.c: In function ‘print_pb_msg’:
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has tpe ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../../../../Projects/zstack/linux/srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’ but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../../../Projects/zstack/linux/srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
^~~
../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
~^
%ld
Compiling ../zstackserverznp/zstack_pb_ctrl.c ...
Compiling ../otaserver/otasrvr_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ...
Compiling ../serverpb/server_pb_ctrl.c ...
Compiling ../nwkmgr/nwkmgr.pb-c.c ...
Building target out/OTA_SRVR_x86 ...
********************************************************
make[1]: Leaving directory '/home/ajit/source/Projects/zstack/linux/otaserver'
Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o ntwork_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o ommissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engie.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out/*
/bin/rm -f main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structres.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_egine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scne_engine.o macros.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./ut/*
/bin/rm -rf ./out
rm -f project_file_list.txt
VPATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver:./../../source:./.././srvwrapper
********************************************************
Check existance of output folder
if test ! -d ./out; then mkdir ./out; fi
Compiling main.c into main.o
Compiling ./../framework/polling.c into polling.o
Compiling ./../framework/timer_utils.c into timer_utils.o
Compiling ./../framework/socket_interface.c into socket_interface.o
In file included from ./../framework/socket_interface.c:51:0:
./../framework/socket_interface.c: In function ‘si_register_idle_callback’:
./../framework/socket_interface.c:159:94: warning: cast from pointer to integer of different size [-Wpointer-toint-cast]
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (in)IDLE_CB_ARG);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while ()
^~~~~~~~~~~
./../framework/socket_interface.c:159:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (in)IDLE_CB_ARG);
^~~~~~~~~~~~
./../framework/socket_interface.c:159:108: warning: cast from pointer to integer of different size [-Wpointer-t-int-cast]
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (in)IDLE_CB_ARG);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while ()
^~~~~~~~~~~
./../framework/socket_interface.c:159:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Created new idle_cb entry (#%d) for func (%08x), arg (%08X)", idle_cb_count, (int)IDLE_CB, (in)IDLE_CB_ARG);
^~~~~~~~~~~~
./../framework/socket_interface.c:163:98: warning: cast from pointer to integer of different size [-Wpointer-toint-cast]
UI_PRINT_LOG("ERROR: Failed to create new idle_cb entry (#%d) for func (%08x)", idle_cb_count, (int)IDLE_CB)
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while ()
^~~~~~~~~~~
./../framework/socket_interface.c:163:3: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("ERROR: Failed to create new idle_cb entry (#%d) for func (%08x)", idle_cb_count, (int)IDLE_CB)
^~~~~~~~~~~~
./../framework/socket_interface.c: In function ‘si_unregister_idle_callback’:
./../framework/socket_interface.c:174:53: warning: cast from pointer to integer of different size [-Wpointer-toint-cast]
UI_PRINT_LOG("Unregistering state machine (%08x)", (int)IDLE_CB);
^
./../framework/user_interface.h:86:89: note: in definition of macro ‘UI_PRINT_LOG_EX’
#define UI_PRINT_LOG_EX(trace_group, fmt, ...) do {_ui_print_log(trace_group, (fmt), ##__VA_ARGS__);} while ()
^~~~~~~~~~~
./../framework/socket_interface.c:174:2: note: in expansion of macro ‘UI_PRINT_LOG’
UI_PRINT_LOG("Unregistering state machine (%08x)", (int)IDLE_CB);
^~~~~~~~~~~~
Compiling ./../framework/tcp_client.c into tcp_client.o
Compiling ./../framework/user_interface.c into user_interface.o
./../framework/user_interface.c: In function ‘ui_redraw_actions’:
./../framework/user_interface.c:2386:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’ but argument 3 has type ‘long int’ [-Wformat=]
printf("%s[%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s:%03d] ", (i == current_action ? LIGHT_YELLOW : DARK_YELLOW) strchr(ACTION_NAMES[i],'&') - ACTION_NAMES[i], ACTION_NAMES[i], strchr(ACTION_NAMES[i],'&')[1], strchr(ACTION_AMES[i],'&') + 2, action_value[i]);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../framework/user_interface.c:2389:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’ but argument 3 has type ‘long int’ [-Wformat=]
printf("%s[%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s] ", (i == current_action ? LIGHT_YELLOW : DARK_YELLOW), strhr(ACTION_NAMES[i],'&') - ACTION_NAMES[i], ACTION_NAMES[i], strchr(ACTION_NAMES[i],'&')[1], strchr(ACTION_NAMESi],'&') + 2);
~~^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../framework/user_interface.c:2396:18: warning: field precision specifier ‘.*’ expects argument of type ‘int’ but argument 3 has type ‘long int’ [-Wformat=]
printf("%s%.*s"UNDERSCORE"%c"NO_UNDERSCORE"%s",
~~^~
./../framework/user_interface.c:2398:7:
strchr(ACTION_SUBNAMES[i][j],'&') - ACTION_SUBNAMES[i][j],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling ./../framework/data_structures.c into data_structures.o
Compiling ./../engines/network_info_engine.c into network_info_engine.o
Compiling ./../engines/device_list_engine.c into device_list_engine.o
Compiling ./../engines/sensor_engine.c into sensor_engine.o
In file included from ../framework/user_interface.h:51:0,
from ./../engines/sensor_engine.c:50:
./../engines/sensor_engine.c: In function ‘snsr_process_zone_status_change_ind’:
./../engines/sensor_engine.c:355:26: warning: format ‘%LX’ expects argument of type ‘long long unsigned int’, bt argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(log_string, "addr = %08LX,", msg->srcaddress->ieeeaddr);
^ ~~~~~~~~~~~~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
Compiling ./../engines/state_reflector.c into state_reflector.o
Compiling ./../engines/attribute_engine.c into attribute_engine.o
./../engines/attribute_engine.c: In function ‘attr_write_response_indication_handler’:
./../engines/attribute_engine.c:269:77: warning: cast to pointer from integer of different size [-Wint-to-pointr-cast]
tu_set_timer(&identify_timer, 1000, true, attr_identify_timer_handler, (void *)msg->srcaddress->endpointi);
^
./../engines/attribute_engine.c: In function ‘attr_identify_timer_handler’:
./../engines/attribute_engine.c:944:30: warning: cast from pointer to integer of different size [-Wpointer-to-it-cast]
uint8_t endpoint = (uint8_t)(uint32_t)arg;
^
Compiling ./../engines/actions_engine.c into actions_engine.o
Compiling ./../engines/commissioning_engine.c into commissioning_engine.o
Compiling ./../engines/system_engine.c into system_engine.o
Compiling ./../engines/ota_engine.c into ota_engine.o
./../engines/ota_engine.c: In function ‘upgrade_apply_image_cnf’:
./../engines/ota_engine.c:322:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cas]
int index = (int )cbarg;
^
./../engines/ota_engine.c: In function ‘upgrade_process_regis_cnf’:
./../engines/ota_engine.c:361:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cas]
int index = (int )cbarg;
^
./../engines/ota_engine.c: In function ‘register_single_file’:
./../engines/ota_engine.c:481:85: warning: cast to pointer from integer of different size [-Wint-to-pointer-cas]
if (si_send_packet(pkt, (confirmation_processing_cb_t)&upgrade_process_regis_cnf, (void *)i) != 0)
^
Compiling ./../../nwkmgr/nwkmgr.pb-c.c into nwkmgr.pb-c.o
Compiling ./../../hagateway/gateway.pb-c.c into gateway.pb-c.o
Compiling ./../../otaserver/otasrvr.pb-c.c into otasrvr.pb-c.o
Compiling ./../engines/group_scene_engine.c into group_scene_engine.o
Compiling ./../framework/macros.c into macros.o
Compiling ./../../source/pb_utils.c into pb_utils.o
./../../source/pb_utils.c: In function ‘print_unpacked_pb_msg’:
./../../source/pb_utils.c:207:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cas]
sub_message = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
./../../source/pb_utils.c:227:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cas]
binary_data_ptr = (uint8_t *)LITTLE_ENDIAN_STREAM_TO_UINT32(pBuf);
^
In file included from ./../../source/pb_utils.h:46:0,
from ./../../source/pb_utils.c:48:
./../../source/pb_utils.c: In function ‘print_pb_msg’:
./../../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 as type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
./../../source/pb_utils.c:394:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 as type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X:%02X", len & 0xFF, (len >> 8) & 0xFF, _subsystemId, commandId);
^ ~~~~~~~~~~~~~~
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
./../../source/pb_utils.c:398:27: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 as type ‘size_t {aka long unsigned int}’ [-Wformat=]
STRING_ADD(hex_line, "%02X:%02X:%02X", len, _subsystemId, commandId);
^
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
../../srvwrapper/trace.h:77:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘sze_t {aka long unsigned int}’ [-Wformat=]
#define RED "\x1B[31m"
^
../../srvwrapper/trace.h:159:95: note: in definition of macro ‘STRING_ADD’
#define STRING_ADD(str, format, ...) snprintf((str) + strlen(str), sizeof(str) - strlen(str), format, ##__VA_AGS__)
^~~~~~
./../../source/pb_utils.c:430:38: note: in expansion of macro ‘RED’
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
^~~
./../../source/pb_utils.c:430:97: note: format string is defined here
STRING_ADD(description_string, RED " failed unpacking: subsystemId=%d, commandId=%d, len=%d", subsystemI, commandId, len);
~^
%ld
Compiling ./../../nwkmgr/nwkmgr_pb_ctrl.c into nwkmgr_pb_ctrl.o
Compiling ./../../hagateway/gateway_pb_ctrl.c into gateway_pb_ctrl.o
Compiling ./../../otaserver/otasrvr_pb_ctrl.c into otasrvr_pb_ctrl.o
Compiling ./../../srvwrapper/trace.c into trace.o
In file included from ./../../srvwrapper/trace.c:52:0:
./../../srvwrapper/trace.c: In function ‘trace_init_thread’:
./../../srvwrapper/trace.h:198:44: warning: right-hand operand of comma expression has no effect [-Wunused-valu]
#define PTHREAD_SETSPECIFIC(A,B) ((A) = (B), 0)
~~~~~~~~~~^~~~
./../../srvwrapper/trace.c:187:3: note: in expansion of macro ‘PTHREAD_SETSPECIFIC’
PTHREAD_SETSPECIFIC(thread_name_key, NULL);
^~~~~~~~~~~~~~~~~~~
Compiling ./../../srvwrapper/configparser.c into configparser.o
Building main.bin...
mv main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_ino_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioing_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macrs.o pb_utils.o nwkmgr_pb_ctrl.o gateway_pb_ctrl.o otasrvr_pb_ctrl.o trace.o configparser.o ./out
rm -rf *.o sbl_tool.bin
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c
In file included from ../Source/zbSocCmd.c:60:0:
../Source/zbSocCmd.c: In function ‘config_read_pair’:
../Source/zbSocCmd.c:606:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
debug_printf("config_read_pair: section=%s, context=%u\n", section, (unsigned int)context);
^
../Source/zbSocCmd.h:100:67: note: in definition of macro ‘debug_printf’
#define debug_printf(...) do {if (uartDebugPrintsEnabled) {printf(__VA_ARGS__);}} while (0)
^~~~~~~~~~~
../Source/zbSocCmd.c:611:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘sizet {aka long unsigned int}’ [-Wformat=]
debug_printf("config_read_pair: seeking to: %d\n", *context);
^ ~~
../Source/zbSocCmd.h:100:67: note: in definition of macro ‘debug_printf’
#define debug_printf(...) do {if (uartDebugPrintsEnabled) {printf(__VA_ARGS__);}} while (0)
^~~~~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransortUart.c
../Source/zbSocTransportUart.c: In function ‘zbSocTransportWrite’:
../Source/zbSocTransportUart.c:72:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has tpe ‘ssize_t {aka long int}’ [-Wformat=]
printf("write=%d\n",write((fd),(rpcBuff),(rpcLen))); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/zbSocTransportUart.c:173:2: note: in expansion of macro ‘socWrite’
socWrite(serialPortFd, buf, len);
^~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o sbl_tool.bin
rm -rf *.o gw_soc_fw_version_query.bin
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c
gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransortUart.c
../Source/zbSocTransportUart.c: In function ‘zbSocTransportWrite’:
../Source/zbSocTransportUart.c:72:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has tpe ‘ssize_t {aka long int}’ [-Wformat=]
printf("write=%d\n",write((fd),(rpcBuff),(rpcLen))); \
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/zbSocTransportUart.c:178:2: note: in expansion of macro ‘socWrite’
socWrite(serialPortFd, buf, len);
^~~~~~~~
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o gw_soc_fw_version_qury.bin
cp: cannot stat '/home/ajit/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_hold': No such fle or directory
cp: cannot stat '/home/ajit/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_release': No suc file or directory
Package verification results:
ERROR: 2 error(s) occured during make
ERROR: 89 warning(s) occured during make
sort: cannot read: /home/ajit/source/Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_x86txt: No such file or directory
diff /home/ajit/source/out/content.txt /home/ajit/source/out/expected_content.txt
1,30d0
< .
< ./content.txt
< ./Precompiled
< ./Precompiled/app
< ./Precompiled/app/main.bin
< ./Precompiled/misc
< ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
< ./Precompiled/misc/ota_sample_images
< ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
< ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
< ./Precompiled/protobuf
< ./Precompiled/protobuf/libprotobuf-c.so.1.0.0
< ./Precompiled/servers
< ./Precompiled/servers/config.ini
< ./Precompiled/servers/gateway_config.ini
< ./Precompiled/servers/gateway_config.tlg
< ./Precompiled/servers/GATEWAY_SRVR_x86
< ./Precompiled/servers/NPI_Gateway.cfg
< ./Precompiled/servers/NPI_lnx_x86_server
< ./Precompiled/servers/nwkmgr_config.ini
< ./Precompiled/servers/NWKMGR_SRVR_x86
< ./Precompiled/servers/OTA_SRVR_x86
< ./Precompiled/servers/sample_app_ota.cfg
< ./Precompiled/servers/start_application
< ./Precompiled/servers/track_servers
< ./Precompiled/servers/zigbeeHAgw
< ./Precompiled/servers/ZLSZNP_x86
< ./Precompiled/tools
< ./Precompiled/tools/gw_soc_fw_version_query.bin
< ./Precompiled/tools/sbl_tool.bin
ERROR: Content verification failed
ERROR: RUNTIME package for x86 creation failed. See details above. Output folder/tar name prefixed with "ERROR_"
SUCCESS: build_all finished.
Entered Precompiled directory.
tar: z-stack_linux_gateway_arm_binaries_.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
app/
app/main.bin
misc/
misc/ota_sample_images/
misc/ota_sample_images/5678-1234-0000AAAA.zigbee
misc/ota_sample_images/5678-1234-0000BBBB.zigbee
misc/CC2531-GW-ZNP_39203.bin
protobuf/
protobuf/libprotobuf-c.so.1.0.0
servers/
servers/config.ini
servers/start_application
servers/NWKMGR_SRVR_x86
servers/gateway_config.tlg
servers/OTA_SRVR_x86
servers/ZLSZNP_x86
servers/sample_app_ota.cfg
servers/NPI_lnx_x86_server
servers/gateway_config.ini
servers/GATEWAY_SRVR_x86
servers/track_servers
servers/NPI_Gateway.cfg
servers/zigbeeHAgw
servers/nwkmgr_config.ini
tools/
tools/sbl_tool.bin
tools/gw_soc_fw_version_query.bin
SUCCESS: Extracted binaries
Entered servers/ directory
Make apps exe, copy protobuf files
SUCCESS: Made servers and applications executable
SUCCESS: Made /tools/ folder executable
Copy Protobuf Files to /usr/lib directory
cp: cannot stat '../protobuf/libprotobuf-c.so.1': No such file or directory
SUCCESS: Copied Protobuf Files
********** SETUP SUCCESSFUL! **********
--------- Getting Started Tips -----------
Navigate to Node Scripts ==> cd Projects/node
Start Linux Zigbee Gateway and Node.js Zigbee Local Gateway ==> sudo ./start_local.sh
Start Linux Zigbee Gateway and Node.js IBM Gateway ==> sudo ./start_ibm.sh
Start Linux Zigbee Gateway Only ==> sudo ./start_gateway.sh
Kill All Gateways ==> sudo ./end.sh
---------------------------------------------
ajit@ajit-VirtualBox:~/source/Projects/node$ sudo ./start_local.sh
Starting the Linux Zigbee Gateway
Platform type selected automatically as x86.
To override this selection, please stop this script, and then run it again,
specifying the desired platform type at the command line:
./zigbeeHAgw [help | bbb | x86 ]
running ./zigbeeHAgw on an x86
done processing arguments, board type x86, target x86
NPI is 'NPI_lnx_x86_server'
Zstack linux server is 'ZLSZNP_x86'
gateway server is 'GATEWAY_SRVR_x86'
network manager is 'NWKMGR_SRVR_x86'
OTA server is 'OTA_SRVR_x86'
Starting the ZigBee gateway subsystem
making sure there are no lingering servers...
there are 0 NPI servers
there are 0 ZLS servers
there are 0 GATEWAY servers
there are 0 NWKMGR servers
there are 0 OTA servers
(total 0)
done
===================================================
starting NPI, cmd ' ./NPI_lnx_x86_server NPI_Gateway.cfg ' on Tue Apr 2 09:58:23 IST 2019
[09:58:23.233,503] [NPISRVR/MAIN] UNMSKBL:
[09:58:23.233,638] [NPISRVR/MAIN] UNMSKBL: ************************************************
[09:58:23.233,650] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d *
[09:58:23.233,658] [NPISRVR/MAIN] UNMSKBL: ************************************************
[09:58:23.233,666] [NPISRVR/MAIN] UNMSKBL:
Startup phase 1 completed successfully, server started (NPI_PID=15048) on Tue Apr 2 09:58:23 IST 2019
===================================================
starting ZLSZNP, cmd ' ' on Tue Apr 2 09:58:23 IST 2019
[09:58:23.294,929] [Z_STACK/MAIN] UNMSKBL:
[09:58:23.295,854] [Z_STACK/MAIN] UNMSKBL: ************************************************
[09:58:23.296,411] [Z_STACK/MAIN] UNMSKBL: * ZStack Server for ZNP v1.0.2d *
[09:58:23.297,159] [Z_STACK/MAIN] UNMSKBL: ************************************************
[09:58:23.297,746] [Z_STACK/MAIN] UNMSKBL:
[09:58:25.299,285] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:25.299,362] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:27.301,430] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:27.301,507] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:29.301,722] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:29.301,800] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:31.302,419] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:31.302,497] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
Wait for Node.js Zigbee IBM Gateway to Start...
ajit@ajit-VirtualBox:~/source/Projects/node$ nwkmgr: getGwInfoReq
sendMessage: no responseHndl
sendMessage: no responseHndl
webserver: Server running on http://192.168.0.101:5000
Error: connect ECONNREFUSED 127.0.0.1:2540
Error: connect ECONNREFUSED 127.0.0.1:2541
[09:58:33.303,733] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:33.303,802] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:35.303,993] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:35.304,046] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:37.304,644] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:37.304,720] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
nwkmgr clientReconnectTimer: attempting to reconnect
hagateway clientReconnectTimer: attempting to reconnect
Error: connect ECONNREFUSED 127.0.0.1:2540
Error: connect ECONNREFUSED 127.0.0.1:2541
[09:58:39.306,309] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:39.306,379] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:41.306,998] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:41.307,057] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
Startup phase 2 completed successfully, server started (ZLSZNP_PID=15056) on Tue Apr 2 09:58:41 IST 2019
===================================================
starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_x86 127.0.0.1:2536 ' on Tue Apr 2 09:58:41 IST 2019
[09:58:41.328,484] [NWK_MGR/MAIN] UNMSKBL:
[09:58:41.330,101] [NWK_MGR/MAIN] UNMSKBL: ************************************************
[09:58:41.331,242] [NWK_MGR/MAIN] UNMSKBL: * Network Manager Server v1.0.2d *
[09:58:41.332,425] [NWK_MGR/MAIN] UNMSKBL: ************************************************
[09:58:41.333,320] [NWK_MGR/MAIN] UNMSKBL:
nwkmgr clientReconnectTimer: attempting to reconnect
Error: connect ECONNREFUSED 127.0.0.1:2540
hagateway clientReconnectTimer: attempting to reconnect
Error: connect ECONNREFUSED 127.0.0.1:2541
[09:58:43.310,358] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:43.310,441] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:43.334,933] [NWK_MGR/MAIN] ERROR : SRSP Cond Wait timed out!
[09:58:43.335,010] [NWK_MGR/MAIN] ERROR : apicSendSynchData() failed getting response
[09:58:43.337,824] [NWK_MGR/MAIN] ERROR : Reading Local Network Information Failed
[09:58:43.337,863] [NWK_MGR/MAIN] UNMSKBL: Initialization failed. Quitting now.
Startup phase 3 failed
waiting for Zstack linux to exit
waiting for NPI to exit
making sure there are no lingering servers...
there are 0 NPI servers
there are 0 ZLS servers
there are 0 GATEWAY servers
there are 0 NWKMGR servers
there are 0 OTA servers
(total 0)
done
***************************************************************
Please let me know where i am getting wrong while setup.