最近在做项目时候，遇到一些关于green power的问题，看到demo Z3light中有包含green power 功能，有以下疑问：
1.我目前不是很清楚它（Z3light）充当green power 协议中的什么角色（sink?,proxy?）?
2.z3light 与 green power switch怎么配对，green power switch 如何控制Z3light？
1. If you use Z3Light, I suppose it only acts as GP proxy. If you Z3LightGPCombo, it would act as both sink and proxy.
2. Try to refer to UG392: Using Silicon Labs Green Power with EmberZNet PRO.
If you use gpd-switch example, you can read the following information in general tab of project isc file.
Green Power Device Switch Application. This sample application demonstrates a green power switch device with following capability that is pre-configured in plugin GPD App Configuration. Device = GPD On/Off Switch (Device Id = 2) Application Id = 0 , 4 Byte Device Src Address. Fixed Location = True, Commissioning = Bidirectional with Key Request and Key Protected Security Level = 3 Security Key type used = OOB Individual (Key Type 4) This sample application maps its functionality with configured buttons as described here BRD4183A Where there is one button available on the boards and is enabled as PB0 PB0 - Commissioning, Toggle PB0 Long press for 5 seconds : Decommissioning BRD4182A Where there are two buttons available on the boards and both are enabled as PB0 and PB1 PB0 - Commissioning, Decommissioning (together with PB1 pressed) PB1 - Toggle GPD State Indication when the led plugin is enabled as follows BRD4183A Where there is one LED available on the boards and is enabled as LED0 LED0 Activity and Commissioning state - ON indicates not commissioned, OFF indicates Commissioned. Blinks for a button press or serial command. The ON time is the measurement active time to complete the command. BRD4182A Where there are two buttons available on the boards and both are enabled as PB0 and PB1 LED1 Commissioning state - ON indicates GPD is not commissioned, OFF indicates GPD is commissioned. LED0 Activity - Blinks for a button press or serial command. The ON time is the measurement active time to complete the command. There are debug print available in the callback file to print the GPD state and activities on serial debug terminal using serial and ember-minimal-print plugins. Commissioning the GPD with the Z3LightCombo is as follows: 1. Enter the Z3LightCombo into commissioning state ( follow descriptions in the Z3LightCombo sample application to do so). 2. Then follow the series of button presses on the GPD Keep clicking (press and release) the PB0 (commissioning button) leaving a time of more than 1 second in between until the Commissioning state indicator switches off indicating the GPD is commissioned. Following series of commands will be sent out i. Channel request: To find the channel of the Zigbee network and use that for commissioning requests ii. Commissioning command: Commissioning request iii. Commissioning command: To collect the commissioning reply iv. Commissioning command: To indicate the successful commissioning 3. Then press the Toggle button on GPD to see the Z3LightCombo toggle on/off. 4. To decommission the the GPD and bring it to factory reset state press the PB0 (and PB1) button(s) to invoke decommissioning action. The GPD supports a set of CLI to help testing. This CLI can be turned off from this .isc file. The sample application by default becomes a non-sleepy application when CLI enabled. Some of the useful CLIs are here help : Prints the command table node info : Prints the information node comm <1/0> : 1 - Sends a single comm command based on the gpd state, 0 - sends a decommissioning command node comm 255 : This commands starts a self-triggering timer based state machine to complete all the states of commissioning. switch toggle : Sends a toggle command switch sleep : enters sleepy behaviour, the CLI will stop working in this mode. Note : 1. In this sample application the RX window is kept as 80 milliseconds to accommodate the commissioning reply delay caused by debug prints in Z3LightCombo sample application. In specification it should be 8-10 milliseconds . 2. This sample application needs user to check and configure (as needed) buttons and LEDs. 3. For accurate power measurement, switch off the LEDs, switch off debug prints, CLI and power down on-board SPI flash.
您好，YK ,我今天使用了gpd-switch demo 和Z3LightCombo demo，已经成功控制板子上的led， 但是我想通过gpd-switch demo和飞利浦的hue 进行控制Z3Light demo 的灯（ps:z3light已经和飞利浦的hue成功入网，可以在App控制z3light），该如何实现呢？期望能再次得到您的回复，非常感谢