先说下我现在手上的设备:CC2531 USB dongle,CC2530的PWM彩灯,
我想现在通过usb dongle 做协调器,通过电脑控制彩灯.我的dongle和pwm彩灯都是一家淘宝厂家的,之前厂家给的实验用例是cc2530的开发板做协调器,我把厂家给的开发用例用IAR烧入彩灯和usb dongle后,实现了入网但是不能用电脑控制彩灯(dongle选了coodinator,彩灯选择了endpoint),
我不知道问题出在哪里,我需要修改什么设置么?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你问厂家不是更容易知道问题所在吗?
TI之前有类似的操作说明供参考吧
http://processors.wiki.ti.com/index.php/ZStack-Lighting_Kit_CC2531EMK
The CC2531EMK USB dongle was included in older ZLL kits before the ZLLRC was available.
The CC2531EKM USB dongle Remote is not a supported HW platform in the ZStack-Lighting-1.0.x release and now that the ZLLRC is available is longer supplied as part of the kit. This wiki page has been created for customers that already have the old kit.
The FW source for the CC2531EMK USB Dongle remote is available in the kit FW patch here.
The CC2531EMK ZLL Remote exposes the following functionality through the button S1 and S2:
Button | Press | Function |
---|---|---|
S1 | Press | Touchlink |
S1 | Release | Touchlink abort |
S2 | Short press (<1s) | Toggles between sending on command and off command |
S2 | Medium press (>2s) | Select next device (selecting the group as the last device) |
S1 + S2 | Long press (>10s) | Reset to Factory New |
CC2531EMK ZLL Remote user feedback is given through the LEDs, with the following meaning:
LED | State | Function |
---|---|---|
RED LED | Flash on start up | Remote is Factory New |
GREEN LED | Flash on start up | Remote is not Factory New |
RED LED | On | Button pressed |
RED LED | Off | Button released |
GREEN LED | Flash after start up | TouchLink succeeded |
RED AND GREEN LED | Flash after start up | Resetting to Factory New |
The Zlight is a Color Light and the CC2531EMK is a Color Scene Remote, but up until now you have only turned the Lights on and off. To do more you need to use the "Host Interface" of the ZStack-Lighting-1.0.x Remote. The full source for Linux and Window command line application is available here: https://git.ti.com/zllhostinterfaceexample/zllhostinterfaceexample/archive-tarball/master
To use the ZStack-Lighting-1.0.x Remote Host Interface with the CC2531EMK ZLL Remote:
C:\Users\a0741319\Documents\temp\zllCmdLine.exe -- Mar 24 2013 17:02:45 touchlink touchlink command executed processRpcSysApp: Command Received Successfully tlIndicationCb: Network Addr : 0x0002 End Point : 0x0b Profile ID : 0xc05e Device ID : 0x0200 Version : 0x02 Status : 0x57
Make a note of the Network Addr and End Point.
setstate -n0x0002 -e0x0b -m2 -v1
Your should see the following in the console and the Zlight should turn on.
setstate -n0x0002 -e0x0b -m2 -v1 setstate command executed with params: Network Addr :0x0002 End Point :0x0b Addr Mode :0x02 Value :0x01 processRpcSysApp: Command Received Successfully
setsat -v0xfe setsat command executed with params: Network Addr :0x0002 End Point :0x0b Addr Mode :0x02 Value :0xfe Transition Time :0x0001 processRpcSysApp: Command Received Successfully
sethue -v0 sethue command executed with params: Network Addr :0x0002 End Point :0x0b Addr Mode :0x02 Value :0x00 Transition Time :0x0001 processRpcSysApp: Command Received Successfully
sethue -v0xAA -t30 sethue command executed with params: Network Addr :0x0002 End Point :0x0b Addr Mode :0x02 Value :0xaa Transition Time :0x001e processRpcSysApp: Command Received Successfully
The Host interface is part of the standard ZStack-Lighting-1.0.x release and is described in more detail here.
The ZStack-Lighting-1.0.1 Release is available for down load from http://www.ti.com/tool/z-stack. To update this release to generate the FW pre-programmed in to the Zlight in the kit a patch is required. The patch is available here: File:Z-Stack-Lighting-add-on-lighting-kit.zip. Instruction for applying the patch are incuded in the patch installer, this must be installed in to the ZStack-Lighting-1.0.1 folder. You will notice that this patch creates a "USB - EndDevice" configuration in the Remote project, this is for the CC2531EMK USB Dongle that was included in an earlier release of the kit. More information on this HW platform can be found here. Currently there is no source code released for the ZLLRC HW platform, this will be included in the ZStack-Lighting-1.0.2 release.
To update the Zlight or REmote FW: