Part Number: CC2531
Other Parts Discussed in Thread: Z-STACK,
Tool/software: Linux
I have issues with Z-Stack Linux Gateway (Beagle Bone Black, CC2531 USB dongle, http://www.ti.com/tool/CC2531EM-IOT-HOME-GATEWAY-RD):
- IKEA Color light - http://www.ikea.com/us/en/catalog/products/70353343/
- not possible to change HUE and SAT
- ON, OFF, LEVEL works
-unable to bind IKEA switch to IKEA Color light http://www.ikea.com/us/en/catalog/products/70353343/
-Philips HUE dimmer ( http://www2.meethue.com/en-us/p/hue-dimmer-switch/046677458140 )
-dimmer buttons does not work when it is binded with Philips HUE bulb (http://www2.meethue.com/en-us/p/hue-white-single-bulb-e26/046677455293 )
-ON, OFF button works
In order to solve these issues I wanted to use Z-STACK-3.0.1 but I am not able to compile it with Z-Stack Linux Gateway:
I have tried:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
$ cp -r Z-Stack\ 3.0.1/* Z-Stack_Linux_Gateway-1.0.1-src/Source/ $ cd Z-Stack_Linux_Gateway-1.0.1-src/Source/ $ ./build_all SVN Version = Unversioned directory Main project\'s base directory: GATEWAY=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source (leave blank to use the detault) NPI Project's base directory NPI_SOURCE=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/ Protobuf library directory: PROTOLIB=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/protobuf-c-arm/lib Protobuf include directory: PROTOINC=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source Project output subdirectory: PKGS_OUTPUT_DIR=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/out (leave blank to use the detault) Building RUNTIME package for BEAGLEBONE_BLACK 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 SERVER FOR ARM BEAGLE BONE make[1]: Entering directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/tools/LinuxHost' 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 ipclib/server/hal_spi.c ... Building target out/NPI_lnx_armBeagleBone_server ... ******************************************************** make[1]: Leaving directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/tools/LinuxHost' ******************************************************** Cleaning all if test -d out; then rm -rf out; fi ******************************************************** Check existance of output folder if test ! -d out; then mkdir out; fi ******************************************************** COMPILING APP FOR ARM make[1]: Entering directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp' Compiling osal_zstack_server_znp.c ... Compiling ../source/zmain.c ... Compiling znp_af.c ... In file included from ../../../../Components/stack/nwk/APSMEDE.h:52:0, from ../../../../Components/stack/af/AF.h:53, from znp_af.c:53: ../../../../Components/stack/nwk/nwk_globals.h:381:2: warning: #warning Warning! MAX_NWK_SEC_MATERIAL_TABLE_ENTRIES exceeds the available NvIDs for this tables [-Wcpp] #warning Warning! MAX_NWK_SEC_MATERIAL_TABLE_ENTRIES exceeds the available NvIDs for this tables ^ Compiling znp_misc.c ... In file included from ../../../../Components/stack/nwk/APSMEDE.h:52:0, from ../../../../Components/stack/af/AF.h:53, from znp_misc.c:47: ../../../../Components/stack/nwk/nwk_globals.h:381:2: warning: #warning Warning! MAX_NWK_SEC_MATERIAL_TABLE_ENTRIES exceeds the available NvIDs for this tables [-Wcpp] #warning Warning! MAX_NWK_SEC_MATERIAL_TABLE_ENTRIES exceeds the available NvIDs for this tables ^ In file included from ../../../../Components/stack/zdo/ZDProfile.h:54:0, from ../../../../Components/stack/zdo/ZDApp.h:57, from ../../../../Components/stack/zdo/ZDObject.h:52, from znp_misc.c:48: ../../../../Components/stack/zdo/ZDConfig.h:54:17: fatal error: bdb.h: No such file or directory #include "bdb.h" ^ compilation terminated. Makefile:196: recipe for target 'out/znp_misc.o' failed make[1]: *** [out/znp_misc.o] Error 1 make[1]: Leaving directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp' Makefile:119: recipe for target 'arch-all-arm' failed make: *** [arch-all-arm] Error 2 ******************************************************** Cleaning all if test -d out; then rm -rf out; fi ******************************************************** Check existance of output folder if test ! -d out; then mkdir out; fi ******************************************************** COMPILING APP FOR ARM make[1]: Entering directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr' Compiling ../srvepconfig/serverep.c ... Compiling ../srvepconfig/serverdefep.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 ... Compiling ../srvwrapper/main.c ... Compiling ../srvwrapper/api_server.c ... Compiling ../srvwrapper/configparser.c ... Compiling ../../../../Components/stack/zcl/zcl_general.c ... ../../../../Components/stack/zcl/zcl_general.c:52:17: fatal error: bdb.h: No such file or directory #include "bdb.h" ^ compilation terminated. Makefile:233: recipe for target 'out/zcl_general.o' failed make[1]: *** [out/zcl_general.o] Error 1 make[1]: Leaving directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr' Makefile:120: recipe for target 'arch-all-arm' failed make: *** [arch-all-arm] Error 2 ******************************************************** Cleaning all if test -d out; then rm -rf out; fi ******************************************************** Check existance of output folder if test ! -d out; then mkdir out; fi ******************************************************** COMPILING APP FOR ARM make[1]: Entering directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway' Compiling ../srvepconfig/serverep.c ... Compiling ../srvepconfig/serverdefep.c ... Compiling gatewaysrvr.c ... gatewaysrvr.c: In function ‘sendGwSetAttributeReportingReq’: gatewaysrvr.c:6210:12: warning: implicit declaration of function ‘zclAnalogDataType’ [-Wimplicit-function-declaration] if ( zclAnalogDataType( pSetAttrReportReq->attributereportlist[i]->attributetype ) ) ^ gatewaysrvr.c:6267:14: warning: implicit declaration of function ‘zcl_SendConfigReportCmd’ [-Wimplicit-function-declaration] status = zcl_SendConfigReportCmd( GW_EP, &dstAddr, pSetAttrReportReq->clusterid, pCfgReportCmd, ^ gatewaysrvr.c: In function ‘sendGwSendZclFrameReq’: gatewaysrvr.c:6455:21: warning: implicit declaration of function ‘zclGetClusterOption’ [-Wimplicit-function-declaration] originalOptions = zclGetClusterOption(pSendZclFrameReq->endpointidsource, pSendZclFrameReq->clusterid); ^ gatewaysrvr.c:6457:7: warning: implicit declaration of function ‘zclUpdateClusterOption’ [-Wimplicit-function-declaration] if (zclUpdateClusterOption( pSendZclFrameReq->endpointidsource, pSendZclFrameReq->clusterid, (AF_EN_SECURITY | AF_ACK_REQUEST), requestedOptions) != ZSuccess) ^ gatewaysrvr.c: In function ‘sendDevAceGetZoneInformationRsp’: gatewaysrvr.c:7031:62: warning: passing argument 3 of ‘zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd’ makes pointer from integer without a cast [-Wint-conversion] pAceGetZoneInfoRsp->zoneid, ^ In file included from gatewaysrvr.c:64:0: ../../../../Components/stack/zcl/zcl_ss.h:725:18: note: expected ‘zclACEGetZoneInfoRsp_t * {aka struct <anonymous> *}’ but argument is of type ‘uint32_t {aka unsigned int}’ extern ZStatus_t zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd( uint8 srcEP, afAddrType_t *dstAddr, ^ gatewaysrvr.c:7033:62: warning: passing argument 5 of ‘zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd’ makes integer from pointer without a cast [-Wint-conversion] aIeeeAddr, ^ In file included from gatewaysrvr.c:64:0: ../../../../Components/stack/zcl/zcl_ss.h:725:18: note: expected ‘uint8 {aka unsigned char}’ but argument is of type ‘uint8 * {aka unsigned char *}’ extern ZStatus_t zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd( uint8 srcEP, afAddrType_t *dstAddr, ^ gatewaysrvr.c:7030:12: error: too many arguments to function ‘zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd’ return zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd( GW_EP, &dstAddr, ^ In file included from gatewaysrvr.c:64:0: ../../../../Components/stack/zcl/zcl_ss.h:725:18: note: declared here extern ZStatus_t zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd( uint8 srcEP, afAddrType_t *dstAddr, ^ Makefile:232: recipe for target 'out/gatewaysrvr.o' failed make[1]: *** [out/gatewaysrvr.o] Error 1 make[1]: Leaving directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway' Makefile:136: recipe for target 'arch-all-arm' failed make: *** [arch-all-arm] Error 2 ******************************************************** Cleaning all if test -d out; then rm -rf out; fi ******************************************************** Check existance of output folder if test ! -d out; then mkdir out; fi ******************************************************** COMPILING APP FOR ARM export ARCH=arm make[1]: Entering directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver' Compiling ../zstackpb/zstack.pb-c.c ... Compiling ../../../../Components/stack/zcl/zcl_general.c ... ../../../../Components/stack/zcl/zcl_general.c:52:17: fatal error: bdb.h: No such file or directory #include "bdb.h" ^ compilation terminated. Makefile:181: recipe for target 'out/zcl_general.o' failed make[1]: *** [out/zcl_general.o] Error 1 make[1]: Leaving directory '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver' Makefile:117: recipe for target 'arch-all-arm' failed make: *** [arch-all-arm] Error 2 Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o ./out/* /bin/rm -f main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o ./out/* rm -f project_file_list.txt VPATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver ******************************************************** Check existance of output folder if test ! -d ./out; then mkdir ./out; fi Compiling main.c into main.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver main.c -o main.o Compiling ./../framework/polling.c into polling.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/polling.c -o polling.o Compiling ./../framework/timer_utils.c into timer_utils.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/timer_utils.c -o timer_utils.o Compiling ./../framework/socket_interface.c into socket_interface.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/socket_interface.c -o socket_interface.o Compiling ./../framework/tcp_client.c into tcp_client.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/tcp_client.c -o tcp_client.o Compiling ./../framework/user_interface.c into user_interface.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/user_interface.c -o user_interface.o Compiling ./../framework/data_structures.c into data_structures.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/data_structures.c -o data_structures.o Compiling ./../engines/network_info_engine.c into network_info_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/network_info_engine.c -o network_info_engine.o Compiling ./../engines/device_list_engine.c into device_list_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/device_list_engine.c -o device_list_engine.o Compiling ./../engines/sensor_engine.c into sensor_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/sensor_engine.c -o sensor_engine.o Compiling ./../engines/state_reflector.c into state_reflector.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/state_reflector.c -o state_reflector.o Compiling ./../engines/attribute_engine.c into attribute_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/attribute_engine.c -o attribute_engine.o Compiling ./../engines/actions_engine.c into actions_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/actions_engine.c -o actions_engine.o Compiling ./../engines/commissioning_engine.c into commissioning_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/commissioning_engine.c -o commissioning_engine.o Compiling ./../engines/system_engine.c into system_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/system_engine.c -o system_engine.o Compiling ./../engines/ota_engine.c into ota_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/ota_engine.c -o ota_engine.o Compiling ./../../nwkmgr/nwkmgr.pb-c.c into nwkmgr.pb-c.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../../nwkmgr/nwkmgr.pb-c.c -o nwkmgr.pb-c.o Compiling ./../../hagateway/gateway.pb-c.c into gateway.pb-c.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../../hagateway/gateway.pb-c.c -o gateway.pb-c.o Compiling ./../../otaserver/otasrvr.pb-c.c into otasrvr.pb-c.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../../otaserver/otasrvr.pb-c.c -o otasrvr.pb-c.o Compiling ./../engines/group_scene_engine.c into group_scene_engine.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../engines/group_scene_engine.c -o group_scene_engine.o Compiling ./../framework/macros.c into macros.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. -I../engines -I../framework -I/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source -I../../nwkmgr -I../../hagateway -I../../otaserver ./../framework/macros.c -o macros.o Building main.bin... arm-linux-gnueabihf-gcc -rdynamic -o main.bin main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o -L/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/protobuf-c-arm/lib -lprotobuf-c mv main.o polling.o timer_utils.o socket_interface.o tcp_client.o user_interface.o data_structures.o network_info_engine.o device_list_engine.o sensor_engine.o state_reflector.o attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-c.o gateway.pb-c.o otasrvr.pb-c.o group_scene_engine.o macros.o ./out rm -rf *.o sbl_tool.bin arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransportUart.c arm-linux-gnueabihf-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 arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocCmd.o ../Source/zbSocCmd.c arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" -D_GNU_SOURCE -DxHAL_UART_SPI -c -o zbSocTransportUart.o ../Source/zbSocTransportUart.c arm-linux-gnueabihf-gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o gw_soc_fw_version_query.bin Cleaning up ../source/bbb_usbreset.o ./out/* /bin/rm -f bbb_usbreset.bin ../source/bbb_usbreset.o ./out/* VPATH is . ******************************************************** Check existance of output folder if test ! -d ./out; then mkdir ./out; fi Compiling ../source/bbb_usbreset.c into ../source/bbb_usbreset.o arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -I. ../source/bbb_usbreset.c -o ../source/bbb_usbreset.o Building bbb_usbreset.bin... arm-linux-gnueabihf-gcc -o bbb_usbreset.bin ../source/bbb_usbreset.o mv ../source/bbb_usbreset.o ./out cp: cannot stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp/out/ZLSZNP_arm': No such file or directory cp: cannot stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_arm': No such file or directory cp: cannot stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_arm': No such file or directory cp: cannot stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver/out/OTA_SRVR_arm': No such file or directory BUILDING zigbeeHAgw script================================================ Package verification results: ERROR: 12 error(s) occured during make ERROR: 10 warning(s) occured during make diff /home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/out/content.txt /home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_arm.txt 15a16 > ./Precompiled_arm/servers/GATEWAY_SRVR_arm 17a19,20 > ./Precompiled_arm/servers/NWKMGR_SRVR_arm > ./Precompiled_arm/servers/OTA_SRVR_arm 21a25 > ./Precompiled_arm/servers/ZLSZNP_arm ERROR: Content verification failed mv: target 'directory.tar' is not a directory ERROR: RUNTIME package for arm creation failed. See details above. Output folder/tar name prefixed with "ERROR_." $ |
Z-STACK-3.0.1 should be compatible with Z-Stack Linux Gateway as described in http://www.ti.com/tool/Z-STACK
- Compatible with TI's Z-Stack Linux Gateway, a reference implementation of an Ethernet-to-Zigbee gateway using a Linux-based platform as host processor, that makes it easy to integrate applications on top of an IP-based interface which abstracts Zigbee protocol functionality to the users.
How does this compatibility works?
I have fixed 2 issues in Z-Stack Linux Gateway 1.0.1:
Patch for Segmentation fault on latest Debian Jessie and Sarge:
--- a/Z-Stack_Linux_Gateway/Source/Projects/tools/LinuxHost/ipclib/server/npi_lnx_ipc.c
+++ b/Z-Stack_Linux_Gateway/Source/Projects/tools/LinuxHost/ipclib/server/npi_lnx_ipc.c
@@ -938,6 +938,10 @@ int main(int argc, char ** argv)
for (ifa = ifAddrStruct; ifa != NULL; ifa = ifa->ifa_next)
{
+ if (ifa->ifa_addr == NULL)
+ {
+ continue;
+ }
if (ifa ->ifa_addr->sa_family==AF_INET)
{ // check it is IP4
// is a valid IP4 Address
--- a/Z-Stack_Linux_Gateway/Source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_ipc.c
+++ b/Z-Stack_Linux_Gateway/Source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_ipc.c
@@ -938,6 +938,10 @@ int main(int argc, char ** argv)
for (ifa = ifAddrStruct; ifa != NULL; ifa = ifa->ifa_next)
{
+ if (ifa->ifa_addr == NULL)
+ {
+ continue;
+ }
if (ifa ->ifa_addr->sa_family==AF_INET)
{ // check it is IP4
// is a valid IP4 Address
--- a/Z-Stack_Linux_Gateway/Source/Projects/zstack/linux/srvwrapper/api_server.c
+++ b/Z-Stack_Linux_Gateway/Source/Projects/zstack/linux/srvwrapper/api_server.c
@@ -858,6 +858,10 @@ static void startupInfo( void )
for ( ifa = ifAddrStruct; ifa != NULL; ifa = ifa->ifa_next )
{
+ if (ifa->ifa_addr == NULL)
+ {
+ continue;
+ }
if ( ifa->ifa_addr->sa_family == AF_INET )
{ // check it is IP4
char addressBuffer[INET_ADDRSTRLEN];
Patch for network manager crash with IKEA devices:
--- a/Z-Stack_Linux_Gateway/Source/Projects/zstack/linux/nwkmgr/nwkmgrdatabase.c
+++ b/Z-Stack_Linux_Gateway/Source/Projects/zstack/linux/nwkmgr/nwkmgrdatabase.c
@@ -365,7 +365,7 @@ static int nwkMgrDb_FillDevice( char *rec, sNwkMgrDb_DeviceInfo_t *pDeviceInfo )
// allocate memory for input clusters. If it doesn't work, then we can't process this endpoint
pEndpoint->inputClusters = malloc( pEndpoint->inputClusterCount * sizeof(uint16) );
- pEndpoint->outputClusters = malloc( pEndpoint->inputClusterCount * sizeof(uint16) );
+ pEndpoint->outputClusters = malloc( pEndpoint->outputClusterCount * sizeof(uint16) );
if(!pEndpoint->inputClusters || !pEndpoint->outputClusters)
{
break;