Skip to content

Commit

Permalink
Added a few more packets, described RGBW set
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Feb 21, 2014
1 parent f19a6e3 commit 0c2f9d3
Showing 1 changed file with 51 additions and 5 deletions.
56 changes: 51 additions & 5 deletions Protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ packet
## List of packet types

### Network management
* 0x01 - Set site - app to bulb
* [0x02 - Get PAN gateway](#0x02) - app to bulb
* [0x03 - PAN gateway](#0x03) - bulb to app

Expand Down Expand Up @@ -112,12 +113,11 @@ packet
* [0x67 - Set waveform](#0x67) - app to bulb
* [0x68 - Set dim (absolute)](#0x68) - app to bulb
* [0x69 - Set dim (relative)](#0x69) - app to bulb
* [0x6a - Set light color (RGBW)](#0x6a) - app to bulb
* [0x6b - Light status](#0x6b) - bulb to app

### Time
* [0x04 - Get time](#0x04) - app to bulb
* [0x05 - Set time](#0x05) - app to bulb
* [0x06 - Time state](#0x06) - bulb to app
* [0x6e - Get temperature](#0x6e) - app to bulb
* [0x6f - Temperature state](#0x6f) - bulb to app
* 0x70 - Set calibration coefficients - app to bulb

### Diagnostic
* [0x07 - Get reset switch](#0x07) - app to bulb
Expand All @@ -138,6 +138,13 @@ packet
* [0x26 - Reboot](#0x26) - app to bulb
* [0x27 - Set Factory Test Mode](#0x27) - app to bulb
* [0x28 - Disable Factory Test Mode](#0x28) - app to bulb
* 0x29 - Factory Test Mode State - bulb to app
* 0x6c - Get rail voltage - app to bulb
* 0x6d - Rail voltage state - bulb to app
* 0x191 - Get ambient light - app to bulb
* 0x192 - Ambient light state - bulb to app
* 0x193 - Get dimmer voltage - app to bulb
* 0x194 - Dimmer voltage state - bulb to app

## Description of packet types

Expand Down Expand Up @@ -788,6 +795,21 @@ payload {
}
```

### <a name="0x6a"></a>0x6a - Set light color (RGBW)

Sent to a bulb to set its color, via RGBW values (as opposed to [HSBK](#0x66)).

#### Payload (8 bytes)

```c
payload {
uint16 blue;
uint16 green;
uint16 red;
uint16 white;
}
```

### <a name="0x6b"></a>0x6b - Light status

Sent by a bulb after a request for light state. If this packet is received
Expand All @@ -808,6 +830,30 @@ payload {
}
```

### <a name="0x6e"></a>0x6e - Get light temperature

Sent to a bulb to request its current light temperature.

#### Payload (0 bytes)

```c
payload {
// None
}
```

### <a name="0x6f"></a>0x6f - Light temperature

Received from a bulb after a request for its light temperature.

#### Payload (2 bytes)

```c
payload {
uint16 temperature;
}
```

### <a name="0x12d"></a>0x12d - Get wifi state

Sent to a bulb to retrieve state on one of its wireless interfaces.
Expand Down

0 comments on commit 0c2f9d3

Please sign in to comment.