upmprotocol
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
upmprotocol [2010/08/31 20:55] – created sestst | upmprotocol [2018/11/03 02:59] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== UPM Protocol ====== | ====== UPM Protocol ====== | ||
- | The RF-Protocol used by the UPM-Devices uses OOK-modulation of the 433.92MHz carrier signal. The digital signal is encoded using an Biphase Differential Manchester encoding | + | The RF-Protocol used by the UPM-Devices uses OOK-modulation of the 433.92MHz carrier signal. |
+ | The digital signal is encoded using an Biphase Differential Manchester encoding. | ||
+ | One message consists of 32 bits of data prepended by a 4 bit wake up code and is always repeated three times for redundancy. The temperature sensors sends a burst of three messages | ||
The UPM receivers are quite smart when it comes to saving energy. When you start them they will switch on the receiver and scan for sensors for a couple of minutes. Once it has located the sensors (when they transmit), it will turn off the receiver and just turn it on when it expects the next transmission from one of the sensors and as soon as it has decoded a complete message it turns off the receiver again (usually after the first of the three repeats in a burst). | The UPM receivers are quite smart when it comes to saving energy. When you start them they will switch on the receiver and scan for sensors for a couple of minutes. Once it has located the sensors (when they transmit), it will turn off the receiver and just turn it on when it expects the next transmission from one of the sensors and as soon as it has decoded a complete message it turns off the receiver again (usually after the first of the three repeats in a burst). | ||
- | The encoding of the 28 bit message as far as I have been able to decode so far is described in the extract from the decoder source below. There are quit a few hours spent figuring this out, and I had help from Fredric Moestedt with the information on the wind and rain sensors. If anyone finds out any additional information on the protocol, please send me a mail! | + | The encoding of the 32 bit message as far as I have been able to decode so far is described in the extract from the decoder source below. There are quit a few hours spent figuring this out, and I had help from Fredric Moestedt with the information on the wind and rain sensors |
/* | /* | ||
+ | * My current understanding of the UPM data message: | ||
+ | * The message consists of four bytes. | ||
+ | * x = Wake Up Code (1100) | ||
* c = House Code (0 - 15) | * c = House Code (0 - 15) | ||
* d = Device Code (1 - 4) ? | * d = Device Code (1 - 4) ? | ||
Line 14: | Line 19: | ||
* S = Secondary value - Humidity/ | * S = Secondary value - Humidity/ | ||
* b = Low battery indication | * b = Low battery indication | ||
- | * x = ? | ||
- | * y = ? | ||
* z = Sequence number 0 - 2. Messages are sent in bursts of 3. For some senders this is always 0 | * z = Sequence number 0 - 2. Messages are sent in bursts of 3. For some senders this is always 0 | ||
* C = Checksum. bit 1 is XOR of odd bits, bit 0 XOR of even bits in message | * C = Checksum. bit 1 is XOR of odd bits, bit 0 XOR of even bits in message | ||
Line 26: | Line 29: | ||
* ____Byte 0_____ | * ____Byte 0_____ | ||
* 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 3 2 1 0 | * 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 3 2 1 0 | ||
- | * x x x x c c c c d d y y b S S S s s s s s P P P p p p p p p p p z z C C | + | * x x x x c c c c d d 1 1 b S S S s s s s 0 P P P p p p p p p p p z z C C |
| | ||
* Temp (C) = RawValue / 16 - 50 | * Temp (C) = RawValue / 16 - 50 | ||
* Rain (total mm) = RawValue * 0,7 | * Rain (total mm) = RawValue * 0,7 | ||
* Wind Speed (mph)= RawValue (* 1/3,6 for km/h) | * Wind Speed (mph)= RawValue (* 1/3,6 for km/h) | ||
- | * Humidity (%) = RawValue | + | * Humidity (%) = RawValue |
- | * Wind direction (deg) = RawValue * 22,5 | + | * Wind direction (deg) = RawValue * 45 |
| | ||
*/ | */ | ||
+ | |||
upmprotocol.1283280923.txt.gz · Last modified: 2018/11/03 02:57 (external edit)