主题中讨论的其他器件:CC2531、
工具/软件:Linux
我在 Z-Stack Linux 网关 (Beagle Bone Black、CC2531 USB 软件狗、 http://www.ti.com/tool/CC2531EM-IOT-HOME-GATEWAY-RD):)方面遇到问题
- IKEA 彩色灯- http://www.ikea.com/us/en/catalog/products/70353343/
-无法更改色调和 SAT
-打开、关闭、液位工作
-无法将 IKEA 开关绑定到 IKEA 彩色灯 http://www.ikea.com/us/en/catalog/products/70353343/
飞利浦色调调光器( http://www2.meethue.com/en-us/p/hue-dimmer-switch/046677458140 )
为了解决这些问题、我希望使用 Z-STACK-3.0.1、但无法使用 Z-Stack Linux Gateway 编译:
我曾尝试过:
$ 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 =未版本目录
Main project\'s base directory:gateway=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source
/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source
/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source (留空以使用默认目录) NPI Project=output_subdirectory:/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/protobuf-c-arm/lib
pgs_output_DIR=/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/out (留空以使用 detault)
为 Beaglebon_black 平台构建运行时软件包
(********)
清洁所有
IF 测试-d 输出;然后是 rm -rf 输出;fi
rm -f project_file_list.txt
********
如果
测试,请检查输出文件夹是否存在! -D 输出;然后是 mkdir 输出;fi
(文件
编译服务器 for ARM Beagle Bone
make[1]:输入目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/tools/LinuxHost
编译 ipclib/server/npi_lnx_ipc.c ...
正在编译 ipclib/server/npi_lnx_UART.c ...
正在编译 ipclib/server/npi_lnx_spi.c ...
正在编译 ipclib/server/npi_lnx_i2c.c ...
正在编译 ipclib/server/hal_gpio.c ...
正在编译 ipclib/server/hal_i2c.c ...
正在编译 ipclib/server/hal_spi.c ...
正在构建目标 out/npi_lnx_armBeaglebone_server ...
(二
make[1]:离开目录“/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/tools/LinuxHost
清洁所有
IF 测试-d OUT;然后是 rm -RF OUT;Fi
********
如果
测试,请检查输出文件夹是否存在! -D 输出;然后是 mkdir 输出;fi
(文件
为 ARM
make[1]编译应用:输入目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp
编译 osal_Zstack_server_Znp.c ...
正在编译./source/zmain.c
正在编译 ZNP_af.c ...
在./../../../Components/stack/nwk/APSMEDE.h:52:0、
./../../../Components/stack/af/AF.h:53、
ZNP_af.c:53中包括的文件中:
./../../../Components/stack/nwk/nwk_globals.h:381:2:警告:#warning Warning! MAX_NWK_SEC_materie_table_entries 超过此表的可用 NVIDS [-Wcpp]
#warning Warning! MAX_NWK_SEC_materY_Table_entries 超过此表的可用 NVIDS
^
编译 ZNP_MISC.c ...
在./../../../Components/stack/nwk/APSMEDE.h:52:0、
./../../../Components/stack/af/AF.h:53、
ZNP_MISC.c:47的文件中:
./../../../Components/stack/nwk/nwk_globals.h:381:2:警告:#warning Warning! MAX_NWK_SEC_materie_table_entries 超过此表的可用 NVIDS [-Wcpp]
#warning Warning! Max_NWK_SEC_materY_TABLE 条目超出了此表的可用 NVIDS
^
^包含在./../../../Components/stack/zdo/ZDProfile.h:54:0、./../../../Components/stack/zdo/ZDApp.h:57、./../../../Components/stack/zdo/ZDObject.h:52、ZNP_MISC.c:48:./../../../Components/stack/zdo/ZDConfig.h:54:17:致命错误:BDB.h:没有此类文件或目录#include "bdb"
已终止编译。h。
Makefile:196:目标'out/ZNP_MISC.o'的配方失败
make[1]:***[out/ZNP_MISC.o]错误1
make[1]:离开目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp
Makefile:119:目标'arch-all-arm'的配方失败
make:***[arch-all-arm]错误2
****
清洁所有
IF 测试-d OUT;然后是 rm -RF OUT;Fi
********
如果
测试,请检查输出文件夹是否存在! -D 输出;然后是 mkdir 输出;fi
(文件
编译 ARM
make[1]的应用程序:输入目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr
编译./srvepconfig/serverep.c……
正在编译./srvepconfig/serverdefep.c
正在编译 nwkmgrsrv.c ...
正在编译 nwkmgrdatabase.c ...
正在编译./srvwrapper/trace.c
正在编译./sdb/SimpleDB.c
正在编译./sdb/SimpleDBTxt.c
正在编译 nwkmgrservices.c ...
正在编译 nwkmgrp2p.c ...
正在编译 nwkmgr.pb-c.c ...
正在编译./zstackpb/zstack.pb-c.c
正在编译./serverpb/server.pb-c.c
正在编译./srvwrapper/api_client.c
正在编译./srvwrapper/main.c
正在编译./srvwrapper/api_server.c
正在编译./srvwrapper/configparser.c
正在编译./../../../Components/stack/zcl/zcl_general.c
./../../../Components/stack/zcl/zcl_general.c:52:17:致命错误:BDB.h:没有此类文件或目录
#include "bdb.h"
^
编译终止。
Makefile:233:目标'out/zcl_general.o'的配方失败
make[1]:***[out/zcl_general.o]错误1
make[1]:离开目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr
Makefile:120:目标'arch-all-arm'的配方失败
make:***[arch-all-arm]错误2
*****
清洁所有
IF 测试-d OUT;然后是 rm -RF OUT;Fi
********
如果
测试,请检查输出文件夹是否存在! -D 输出;然后是 mkdir 输出;fi
(文件
编译 ARM
make[1]的应用程序:输入目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway
编译./srvepconfig/serverep.c……
正在编译./srvepconfig/serverdefep.c
正在编译 gatewaysrvr.c ...
gatewaysrvr.c:在‘s
^ endSetAnalogReportingReq’:gatewaysrvr.c:6210:12:警告:函数‘
‘
^
‘szclAnalogDataType’[-WGW 函数-function-declaration]中,如果(zclsrvf DataType (&pSetAttrReportReq -> attributeDataType)隐式声明:zclf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf Cf)
函数‘zclGetClusterOption’[-Wimplicit-function-declaration]
originalOptions = zclGetClusterOption(pSendZclFrelestReq->endpointsource,pSendZclFrameReq->clusterid;
^
gatewaysrvr.c:6457:7:warning:implicit declaration of function‘
^
‘szclzclzclameReq->f clendrameq->clenderq.cla clameq->clusterq->cl要求(clendsprendersprendsprendsprendsprendsprendsprendsprersprendsprends+clame!sprendsprersprendsprersprendsprersprersprendsprendsprendsprendsprendsprendspruationspruationspruationspruationspruationspruations+clame
‘zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd’的参数3使指针从整数开始而不进行转换[-Wint-conversion ]
pAceGetZoneInfoRsp->zoneid,
^
‘在 gatewaysrvr.c:64:0:./../../../Components/stack/zcl/zcl_ss.h:725:18:注意:zoneInfoRsp *预计的文件中
‘’,但参数的类型为‘uint32_t {aka unsigned int}’extern ZStatus_t zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd (uint8 srcEP、afAddrType_t * dstAddr、^
^ gatewaysrvr.c:7033:62:警告:zeway_InformationResponseCmd:
不包括在/../../../Components/stack/zcl/zcl_ss.h 中,而是从 zeway_d_d_dr 转换为0。 应‘uint8 {aka unsigned char}’,但参数为‘uint8 *{aka unsigned char *}’
extern ZStatus_t zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd (uint8 srcEP、afAddr_t *dstAddr、
^
‘
^ gatewayr.c),zoneInformationResponseCmResponse (uint8 srcep_zmEP、af_dr &dace_d_d_dacr:zmr
,tinesr:zew_z20_d_d_d_zeway_dacr:gew_zew_zew_zeway_d_zew_d_zewalesr
/../../../Components/stack/zcl/zcl_ss.h: 在此处声明
extern ZStatus_t zclSS_Send_IAS_ACE_GetZoneInformationResponseCmd (uint8 srcEP、afAddrType_t * dstAddr、
^
Makefile:232:目标'out/gatewaysrvr.o'的配方失败 make'out/gatewayefile.1's'g1'g1'garch
目录失败/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway
:***[out/gatewayfile'make':1':g'make':garch':g1':g':g':g'g1':g'g'g'make'g':gatewarch out':g'g1'g'
清洁所有
IF 测试-d OUT;然后是 rm -RF OUT;Fi
********
如果
测试,请检查输出文件夹是否存在! -D 输出;然后是 mkdir 输出;fi
(文件
编译用于 ARM
的应用程序导出 arch=arm
make[1]:输入目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver
编译./zstackpb/zstack.pb-c.c……
正在编译./../../../Components/stack/zcl/zcl_general.c
./../../../Components/stack/zcl/zcl_general.c:52:17:致命错误:BDB.h:没有此类文件或目录
#include "bdb.h"
^
编译终止。
Makefile:181:目标'out/zcl_general.o'的配方失败
make[1]:***[out/zcl_general.o]错误1
make[1]:离开目录'/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver
Makefile:117:目标'arch-all-arm'的配方失败
make: estructures [arch-all-arm] error 2
Cleaning up main.o polling.o timer_utils.o socket_interface.o tcp_client.o data_structions.o network_info_engine.o device_list_engine.o sensor_engine.o status_engine.o ta_engine.o pb_engine.o c_task_engine.o pb_engine.o out_engine.o cot_engine.o ras.o status_engine.o pine.tine.o ras.o r_engine.o cot_engine.o pb.o r_engine.tine.tine.o r_engine.tine.o r_engine.o cot_engine.tine.o pb.o r_engine.tine.o ras.o ras.o ras.o ras.o ras.o emor_engine.tor_engine.o ras.o ras.o emine.tine.o
/bin/rm r main.bin GROUSE_Scene_engine.o macros.o ./out/*
rm -f project_file_list.txt
vpATH is .:./../framework:./../engines:./../../nwkmgr:./../../hagateway:./../../otaserver
如果
测试,请检查输出文件夹是否存在! d ./out;然后是 mkdir ./out;fi
将 main.c 编译为 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
将/../framework/polling.c 编译到 Polling。o
arm-linux-gnueabihf-gcc -c -Wall -g -nud=99 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
将/../framework/timer_utils.c 编译到 timer_utils.o
arm-linux-gnueabihf-gcc -c -Wall -gstd -99 -g.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
编译/../framework/socket_interface.c 到 socket_interface.o
arm-linux-gstd eabihf-gcc -c -gnuc=99 -g.h -gb 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
将/../framework/tcp_client.c 编译到 tcp_client.o
arm-linux-gnueabihf-gcc -c -gstd -gb -99 -gb -gb .c -gstd 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
编译/../framework/user_interface.c 到 user_interface.o
arm-linux-gnueabihf-gcc -c -gstd -99 -gb -gb .h 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
将/../framework/data_structures.c 编译到 data_structure.o
arm-linux-gnueabihf-gcc -c -gstd -gb -99 -gb -gb .gb .gb .c -gb .gb .c -gb .gb .c -gb .gb .c -gd 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_structure.o
将/../engines/network_info_engine.c 编译到 network_info_engine.o
arm-linux-gstd eabihf-gcc -gc -gnuc=99 -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
编译/../engines/device_list_engine.c 到 device_list_engine.o
arm-linux-gnueabihf-gcc -gstd -99 -gstd .c -gb .c -gd .c -gd .c -gb .c -gb .c -gb .c -gd 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
编译./../engines/sensor_engine.c 到 sensor_engine.o
arm-linux-gnueabihf-gcc -gc -gnuc=99 -g.c -g.h 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
将/../engines/state_reflector.c 编译到 state_dirlector.o
arm-linux-gnueabihf-gcc -c -gstd -99 -gb -gb .c -gb .c -gb .gb .gb .gb .c -gb .c -gstd 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 status_rebers.o
将/../engines/attribute_engine.c 编译到 attribute_engine.o
arm-linux-gnueabihf-gcc -c -gstd -99 -gb -gb .c -gstd 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
编译/../engines/actions_engine.c 到 Actions_engine.o
ARM-Linux-gnueabihf-gcc -c -gstd -99 -gb .h -gb .c -gb .gb .c -gstd .gb .gb .c -gb .gb .c -gb .g 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
将/../engines/commissioning_engine.c 编译到 std_engine.o
arm-linux-gnueabihf-gcc -c -gnug.c -99 -g.h 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
将/../engines/system_engine.c 编译到 system_engine.o
arm-linux-gnueabihf-gcc -c -gstd -99 -gb .h -gb .c -gb .c -gstd .gb .c -gb .gb .gb .c -gb . 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
编译./../engines/ota_engine.c 到 ota_engine.o
arm-linux-gnueabihf-gcc -c -gstd -99 -gb -gb .gb .c -gb .gb .c -gstd 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
将/../../nwkmgr/nwkmgr.pb-c.c 编译到 nwkmgr.pb-ccO
arm-linux-gnueabihf-gcc -gnuc=-99 -gnuc -gc -gc -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
将/../../hagateway/gateway.pb-c.c 编译到 gateway.PB-C.O
arm-linux-gnueabihf-gc -gstd -99 -gc -gc -gd .h -I../Engines -I../framework/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
将/../../otaserver/otasrvr.pb-c.c 编译到 otasrvr.pB-C.O
arm-linux-gnueabihf-gc -gnudc -99 -gc -gnudc -gc -g.h -I../engines -I../framework/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
将./../engines/group_scene_engine.c 编译到 group_Scene_engine.o
arm-linux-gnueabihf-gc -gstd -99 -gc -gc -g.h 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_scee_engine.o
将/../framework/macros.c 编译成 std.o
arm-linux-gnueabihf-gcc -c -g=Wall -g.99 ip./engines -I../framework -i/home/zbouska/Z-Stack_linux_Gateway-1.0.1-src/source -I./../nwkmgr /../framework/macros.c -I./../hagateway -I./../otaserver -1.0-o macros.o
building main.bin...arm-linux-gnueabihf-gvr
-rdynamic -o main.bin main.obr.o vertion_ome.gc.om_engine.o c.omine.o rabout_pru.obtinstructurs-out.o rgors.o rc.nobrc.om_engine.o rc.ome.o rgework_engine.tine.tine.o rgrtor_engine.o rc.om_engine.o rc.tine.tine.tine.tine.tine.gor_engine_engine.o rgrtor_engine.o rgor_engine.tine.o rgor.obrgore_tine.tine.o rgor_mr out_engine.tine.tine.tin
attribute_engine.o actions_engine.o commissioning_engine.o system_engine.o ota_engine.o nwkmgr.pb-C.O otasrvr.pb-C.O group_sceste_engine.o macros.o ./out
dvrm *。o nwkmgr-linux-gabihf-nex-sabihf-node-se-sension-g.gc-nex-d_sensor.gov-d_sab-gab-gov-gov-gunic.gov-gov-gov-d_sab-gov-gov-gov-r.c sbl_tool.bin
-gov-gov-gov-gov-r.gov-r.gov-r.gov-r.gov-r.gov-d_sab-gov-d_sens-gov-gov-r-gov-gov-gov-r-gov-r-gov-gov-r-gov-gr-gov-r-gr.
/usr/lib /Source/zbSocTransportUart.c /Source/zbSocCmd.c /Source/main.c sbl_tool.bin
rm -rf *。o gw_soc_fw_version_query.bin
/Source/zbSocTransportUart.c
/source/bbb_usbreset.o
/source/bbb_usbreset.o 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-gsihf-Wall -dvrssnu_source -ds-zf_spi_zh-exc_dec.c -d_sock-out./usr/lib /bin/rm -g.cn/snar.cn/sec.cn/sec.cn/snecnode./Source/zbSocCmd.c gw_soc_fw_version_query.bin bbb_usbreset.bin -d_sock-d.cn/secnode.com -d_sabi_zh-d.cn/secnode.com -d_spi.cn-d_zh-d_spi.cn.cn.cn.cn/secnode.cn_cn/secnode.tid.cn_cn/sec.cn/sec.cn/sec.cn.cn.cn.cn.cn/sec.cn.cn.cn.cn.cn/sec.cn.cn.cn/sec.cn.cn.cn.cn.cn.cn.cn.
VPATH 为。
(二
如果
测试,请检查输出文件夹是否存在! d ./out;然后是 mkdir ./out;fi
将./source/bbb_usbreset.c 编译到./source/bbb_usbreset.o
arm-linux-gnueabihf-gcc -c -Wall -g -std=gnu99 -i. ./source/bbb_usbreset.c -o ./source/bbb_usbreset.o
正在构建 bbb_usbreset.bin...
arm-linux-gnueabihf-gcc -o bbb_usbreset.bin ./source/bbb_usbreset.o
mv ./source/bbb_usbreset.o ./out
cp:无法 stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/zstackserverznp/out/ZLSZNP_arm:无此类文件或目录
cp:无法 stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_arm:无此类文件或目录
cp:无法 stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_arm:无此类文件或
目录 cp:无法 stat '/home/zbouska/Z-Stack_Linux_Gateway-1.0.1-src/Source/Projects/zstack/linux/otaserver/out/OTA_SRVR_arm:无法 stat 'cp':无法 stat 没有这样的文件或目录
构建 zigbeeHAgw 脚本================================================================================================
软件
包验证结果:错误:在 make 错误期间发生12个错误:在 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>./prebuildate_arnr_arm_z25 >.rebuildate_ar_arm_time_time_redirectory_arm_rebuildings/sr.ar_arm_arm_arm_time.x_time_time_time_rebuildings/sr_arm_arm_time.a failed:nr_time_time_time_time_time_ 请参阅上面的详细信息。 输出文件夹/tar 名称前缀为"error_"。
$
Z-STACK-3.0.1 应与 http://www.ti.com/tool/Z-STACK 中所述的 Z-Stack Linux 网关兼容
- 与 TI 的 Z-Stack Linux 网关兼容、这是一种以太网至 Zigbee 网关的参考实施、将基于 Linux 的平台用作主机处理器、因此可以轻松地在基于 IP 的接口上集成应用、该接口将 Zigbee 协议功能抽象给用户。
我修复 了 Z-Stack Linux Gateway 1.0.1中的2个问题:
最新 Debian Jessie 和 Sarge 上的分段故障补丁:
--- A/Z-Stack_Linux_Gateway/Source/projects/tools/LinuxHost/ipchirb/server/npi_lnx_ipc.c ++ b/Z-Stack_Linux_Gateway/Source/projects/tools/linux/ipchar b/server/npiri_lnx_ipc.c @@@@-938、0=nif a + if a + inu_inuf = inu_inuF + inuf a + inuf a + inuf a + inuf a + inuf = inuf a + inuf if + inuf a + inuf uf if + inuf if + inuf uf 1 inuf a + inuf if uf = inuf 1 @@@@;+}if (IFA ->IFA_addr->sa_family=AF_iNet){//检查它是否为 IP4 //是有效的 IP4地址-- a/Z-Stack_Linux_Gateway/Source/Projects/ZStack/RemoTI-linux-master/tools/LinuxHost/ipt = 38,inc/linux_linux/linux/linux-master/i + i + i = 38,inu/linux/linux/linux-linux/linux-linux/remoti+ i + i + i + i + i + i + i + i + i + i + i + i + r inu.inu/linux/linux/linux/linux/linux-linux/i + i + i + r inu.inu.inu/linux/i + i + i + i + i + i + u.inu.inu.inu.inu/linux/linux/linux/linux/linux-linux/linux/i IFA = IFA->IFA_NEXT) { +IF (IFA->IFA_addr = NULL) +{ + @@@@;+}如果(IFA ->IFA_addr->sa_family=AF_iNet){//检查它是否为 IP4 //是有效的 IP4地址-- A/Z-Stack_Linux_Gateway/Source/Projects/ZStack/Linux/srvInfo 包装程序/API_server.c ++ b/Z-Stack_linux_void 858,f r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r &r for (IFA = ifAddrStruct; IFA != NULL;IFA = IFA->IFA_next) { + if (IFA->IFA_addr == NULL) + { + 继续; +} if (IFA->IFA_addr->sa_family =AF_iNet) {//检查它是否为 IP4 字符地址 Buffer[iNet_ADDRSTRLEN];
IKEA 设备网络管理器崩溃补丁:
a---a-Z-Stack_Linux_Gateway/Source/Projects/Zstack/linux/nwkmgr/nwkmgrdatabase.c ++ b/Z-Stack_Linux_Gateway/Source/Zstack/linux/nwkmgr/nwkmgrdatabase.c @@-365、7+365、7 @@ static Device_mgrb * nwkmgrature_dt * //为输入群集分配内存。 如果它不起作用、则无法处理此端点 pEndpoint ->inputClusters = malloc (pEndpoint ->inputClusterCount * sizeof (uint16)); - pEndpoint ->outputClusters = malloc (pEndpoint ->inputClusterCount * sizeof (uint16)); + pEndpoint ->outputClusters = malloc (pEndpoint ->outputCount * sizeof (uint16)); if (!pEndpoint ->inputClusters ||!pEndpoint ->outputClusters) { 中断;