├── CC2530DB ├── GenericApp.dep ├── GenericApp.ewd ├── GenericApp.ewp ├── GenericApp.ewt ├── GenericApp.eww └── settings │ ├── GenericApp.CHDTECH_DEV.cspy.bat │ ├── GenericApp.CHDTECH_DEV.cspy.ps1 │ ├── GenericApp.CHDTECH_DEV.driver.xcl │ ├── GenericApp.CHDTECH_DEV.general.xcl │ ├── GenericApp.DIYRuZ_Flower.cspy.bat │ ├── GenericApp.DIYRuZ_Flower.cspy.ps1 │ ├── GenericApp.DIYRuZ_Flower.driver.xcl │ ├── GenericApp.DIYRuZ_Flower.general.xcl │ ├── GenericApp.DIYRuZ_Motion.cspy.bat │ ├── GenericApp.DIYRuZ_Motion.cspy.ps1 │ ├── GenericApp.DIYRuZ_Motion.driver.xcl │ ├── GenericApp.DIYRuZ_Motion.general.xcl │ ├── GenericApp.DIYRuZ_Motion_Router.cspy.bat │ ├── GenericApp.DIYRuZ_Motion_Router.cspy.ps1 │ ├── GenericApp.DIYRuZ_Motion_Router.driver.xcl │ ├── GenericApp.DIYRuZ_Motion_Router.general.xcl │ ├── GenericApp.dbgdt │ ├── GenericApp.dnx │ ├── GenericApp.reggroups │ ├── GenericApp.wsdt │ └── GenericApp_EditorBookmarks.xml ├── README.md ├── Source ├── OSAL_App.c ├── bh1750.c ├── bh1750.h ├── bme280spi.c ├── bme280spi.h ├── hal_board_cfg.h ├── preinclude.h ├── stdint.h ├── version.c ├── version.h ├── zcl_app.c ├── zcl_app.h └── zcl_app_data.c ├── converters ├── DIYRuZ_Motion.js ├── DIYRuZ_Motion_150724.js └── DIYRuZ_Motion_HA.js ├── firmwares └── README.md ├── hardware ├── AAA │ ├── BOM_PCB_zigbee_pir_share_036_AAA_2021-07-14.csv │ ├── Gerber_PCB_zigbee_pir_share_036_AAA_2021-07-14.zip │ └── zigbee_pir_share_AAA.pdf ├── CR2 │ ├── BOM_zigbee_multipurpose_sensor_cr2450_v4.2_CR2_2021-07-14.csv │ ├── Gerber_zigbee_multipurpose_sensor_cr2450_v4.2_CR2_2021-07-14.zip │ └── zigbee_pir_share_CR2.pdf └── datasheet │ └── 1 ├── images ├── diyruz_motion.jpg ├── diyruz_motion_1.jpg ├── diyruz_motion_2.jpg ├── diyruz_motion_3.jpg ├── diyruz_motion_4.jpg ├── diyruz_motion_5.png ├── diyruz_motion_6.jpg ├── diyruz_motion_sheme.jpg ├── motion_AAA.jpg ├── motion_CR2.jpg ├── photo_2021-07-11_18-00-41.jpg └── photo_2021-07-11_18-02-03.jpg ├── jsons2csv.py ├── ver.py └── zstack-lib ├── Debug.c ├── Debug.h ├── LICENSE ├── README.md ├── battery.h ├── bettery.c ├── commissioning.c ├── commissioning.h ├── ds18b20.c ├── ds18b20.h ├── f8wConfig.cfg ├── factory_reset.c ├── factory_reset.h ├── hal_i2c.c ├── hal_i2c.h ├── hal_key.c ├── hal_key.h ├── mhz19.c ├── mhz19.h ├── senseair.c ├── senseair.h ├── stdint.h ├── tl_resetter.c ├── tl_resetter.h ├── utils.c └── utils.h /CC2530DB/GenericApp.dep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/GenericApp.dep -------------------------------------------------------------------------------- /CC2530DB/GenericApp.ewd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/GenericApp.ewd -------------------------------------------------------------------------------- /CC2530DB/GenericApp.ewp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/GenericApp.ewp -------------------------------------------------------------------------------- /CC2530DB/GenericApp.ewt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/GenericApp.ewt -------------------------------------------------------------------------------- /CC2530DB/GenericApp.eww: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/GenericApp.eww -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.CHDTECH_DEV.cspy.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.CHDTECH_DEV.cspy.bat -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.CHDTECH_DEV.cspy.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.CHDTECH_DEV.cspy.ps1 -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.CHDTECH_DEV.driver.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.CHDTECH_DEV.driver.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.CHDTECH_DEV.general.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.CHDTECH_DEV.general.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Flower.cspy.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Flower.cspy.bat -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Flower.cspy.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Flower.cspy.ps1 -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Flower.driver.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Flower.driver.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Flower.general.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Flower.general.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion.cspy.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion.cspy.bat -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion.cspy.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion.cspy.ps1 -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion.driver.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion.driver.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion.general.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion.general.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.cspy.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.cspy.bat -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.cspy.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.cspy.ps1 -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.driver.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.driver.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.general.xcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.DIYRuZ_Motion_Router.general.xcl -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.dbgdt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.dbgdt -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.dnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.dnx -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.reggroups: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.reggroups -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp.wsdt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp.wsdt -------------------------------------------------------------------------------- /CC2530DB/settings/GenericApp_EditorBookmarks.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/CC2530DB/settings/GenericApp_EditorBookmarks.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/README.md -------------------------------------------------------------------------------- /Source/OSAL_App.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/OSAL_App.c -------------------------------------------------------------------------------- /Source/bh1750.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/bh1750.c -------------------------------------------------------------------------------- /Source/bh1750.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/bh1750.h -------------------------------------------------------------------------------- /Source/bme280spi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/bme280spi.c -------------------------------------------------------------------------------- /Source/bme280spi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/bme280spi.h -------------------------------------------------------------------------------- /Source/hal_board_cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/hal_board_cfg.h -------------------------------------------------------------------------------- /Source/preinclude.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/preinclude.h -------------------------------------------------------------------------------- /Source/stdint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/stdint.h -------------------------------------------------------------------------------- /Source/version.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/version.c -------------------------------------------------------------------------------- /Source/version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/version.h -------------------------------------------------------------------------------- /Source/zcl_app.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/zcl_app.c -------------------------------------------------------------------------------- /Source/zcl_app.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/zcl_app.h -------------------------------------------------------------------------------- /Source/zcl_app_data.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/Source/zcl_app_data.c -------------------------------------------------------------------------------- /converters/DIYRuZ_Motion.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/converters/DIYRuZ_Motion.js -------------------------------------------------------------------------------- /converters/DIYRuZ_Motion_150724.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/converters/DIYRuZ_Motion_150724.js -------------------------------------------------------------------------------- /converters/DIYRuZ_Motion_HA.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/converters/DIYRuZ_Motion_HA.js -------------------------------------------------------------------------------- /firmwares/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/firmwares/README.md -------------------------------------------------------------------------------- /hardware/AAA/BOM_PCB_zigbee_pir_share_036_AAA_2021-07-14.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/hardware/AAA/BOM_PCB_zigbee_pir_share_036_AAA_2021-07-14.csv -------------------------------------------------------------------------------- /hardware/AAA/Gerber_PCB_zigbee_pir_share_036_AAA_2021-07-14.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/hardware/AAA/Gerber_PCB_zigbee_pir_share_036_AAA_2021-07-14.zip -------------------------------------------------------------------------------- /hardware/AAA/zigbee_pir_share_AAA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/hardware/AAA/zigbee_pir_share_AAA.pdf -------------------------------------------------------------------------------- /hardware/CR2/BOM_zigbee_multipurpose_sensor_cr2450_v4.2_CR2_2021-07-14.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/hardware/CR2/BOM_zigbee_multipurpose_sensor_cr2450_v4.2_CR2_2021-07-14.csv -------------------------------------------------------------------------------- /hardware/CR2/Gerber_zigbee_multipurpose_sensor_cr2450_v4.2_CR2_2021-07-14.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/hardware/CR2/Gerber_zigbee_multipurpose_sensor_cr2450_v4.2_CR2_2021-07-14.zip -------------------------------------------------------------------------------- /hardware/CR2/zigbee_pir_share_CR2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/hardware/CR2/zigbee_pir_share_CR2.pdf -------------------------------------------------------------------------------- /hardware/datasheet/1: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /images/diyruz_motion.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion.jpg -------------------------------------------------------------------------------- /images/diyruz_motion_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_1.jpg -------------------------------------------------------------------------------- /images/diyruz_motion_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_2.jpg -------------------------------------------------------------------------------- /images/diyruz_motion_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_3.jpg -------------------------------------------------------------------------------- /images/diyruz_motion_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_4.jpg -------------------------------------------------------------------------------- /images/diyruz_motion_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_5.png -------------------------------------------------------------------------------- /images/diyruz_motion_6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_6.jpg -------------------------------------------------------------------------------- /images/diyruz_motion_sheme.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/diyruz_motion_sheme.jpg -------------------------------------------------------------------------------- /images/motion_AAA.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/motion_AAA.jpg -------------------------------------------------------------------------------- /images/motion_CR2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/motion_CR2.jpg -------------------------------------------------------------------------------- /images/photo_2021-07-11_18-00-41.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/photo_2021-07-11_18-00-41.jpg -------------------------------------------------------------------------------- /images/photo_2021-07-11_18-02-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/images/photo_2021-07-11_18-02-03.jpg -------------------------------------------------------------------------------- /jsons2csv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/jsons2csv.py -------------------------------------------------------------------------------- /ver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/ver.py -------------------------------------------------------------------------------- /zstack-lib/Debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/Debug.c -------------------------------------------------------------------------------- /zstack-lib/Debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/Debug.h -------------------------------------------------------------------------------- /zstack-lib/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/LICENSE -------------------------------------------------------------------------------- /zstack-lib/README.md: -------------------------------------------------------------------------------- 1 | # Collection of reusable componets for Z-stack 3.0.2 -------------------------------------------------------------------------------- /zstack-lib/battery.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/battery.h -------------------------------------------------------------------------------- /zstack-lib/bettery.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/bettery.c -------------------------------------------------------------------------------- /zstack-lib/commissioning.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/commissioning.c -------------------------------------------------------------------------------- /zstack-lib/commissioning.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/commissioning.h -------------------------------------------------------------------------------- /zstack-lib/ds18b20.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/ds18b20.c -------------------------------------------------------------------------------- /zstack-lib/ds18b20.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/ds18b20.h -------------------------------------------------------------------------------- /zstack-lib/f8wConfig.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/f8wConfig.cfg -------------------------------------------------------------------------------- /zstack-lib/factory_reset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/factory_reset.c -------------------------------------------------------------------------------- /zstack-lib/factory_reset.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/factory_reset.h -------------------------------------------------------------------------------- /zstack-lib/hal_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/hal_i2c.c -------------------------------------------------------------------------------- /zstack-lib/hal_i2c.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/hal_i2c.h -------------------------------------------------------------------------------- /zstack-lib/hal_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/hal_key.c -------------------------------------------------------------------------------- /zstack-lib/hal_key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/hal_key.h -------------------------------------------------------------------------------- /zstack-lib/mhz19.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/mhz19.c -------------------------------------------------------------------------------- /zstack-lib/mhz19.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/mhz19.h -------------------------------------------------------------------------------- /zstack-lib/senseair.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/senseair.c -------------------------------------------------------------------------------- /zstack-lib/senseair.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/senseair.h -------------------------------------------------------------------------------- /zstack-lib/stdint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/stdint.h -------------------------------------------------------------------------------- /zstack-lib/tl_resetter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/tl_resetter.c -------------------------------------------------------------------------------- /zstack-lib/tl_resetter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/tl_resetter.h -------------------------------------------------------------------------------- /zstack-lib/utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/utils.c -------------------------------------------------------------------------------- /zstack-lib/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koptserg/motion/HEAD/zstack-lib/utils.h --------------------------------------------------------------------------------