# VMB6IN protocol qq

**URL:** <https://forum.velbus.eu/t/vmb6in-protocol-qq/5019>\
**Category:** For developers\
**Created:** [July 20, 2011, 2:09pm UTC](https://forum.velbus.eu/t/vmb6in-protocol-qq/5019 "2011-07-20T14:09:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TKW](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@TKW](https://forum.velbus.eu/u/TKW)\
**Post date:** [July 20, 2011, 2:09pm UTC](https://forum.velbus.eu/t/vmb6in-protocol-qq/5019/1 "2011-07-20T14:09:13Z")

</div>

Hello,

Just writing a little bit of glue to listen to some VMB6IN buttons and have a couple of questions about the protocol. I’ve read the [protocol](http://www.velleman.eu/downloads/0/velbus/manuals/protocol/protocol_vmb6in.pdf) doc and I also understand the general packet format.

When I hold a switch closed, I get the following pair of raw packets:  
0F F8 14 04 00 10 00 00 D1 04  
0F F8 14 04 00 00 00 10 D1 04

which makes sense, as the switch 0x10 (10000 Binary, 5 on the device) closes and then a fraction of a second later is recorded as “long press”

When this switch is later released, I get the following packets almost simultaneously (same timestamp):  
0F F8 14 04 00 00 10 00 D1 04  
0F F8 14 04 00 00 00 00 D1 04

The first packet in this pair makes sense, but what’s the point of the second message?

Another question - will the switch byte in an 0x00 messages always just be for one switch or could it be, for instance, 0x18 to indicate switches 5 and 4 have changed at the same time as they are in the 0xED message where the overall switch status is given?

Many thanks,

---

<div class="post-metadata">

**Author:** ![VEL448](https://forum.velbus.eu/user_avatar/forum.velbus.eu/vel448/32/4186_2.png) [@VEL448](https://forum.velbus.eu/u/VEL448)\
**Post date:** [July 25, 2011, 6:51am UTC](https://forum.velbus.eu/t/vmb6in-protocol-qq/5019/2 "2011-07-25T06:51:15Z")

</div>

> [@](#):
>
> 0F F8 14 04 00 00 00 00 D1 04

You can safely discard this packet and listen for the pressed, long pressed and released packets to know the status

> [@](#):
>
> Another question - will the switch byte in an 0x00 messages always just be for one switch or could it be, for instance, 0x18 to indicate switches 5 and 4 have changed at the same time as they are in the 0xED message where the overall switch status is given?

You will receive separate messages for each event, bits will not be combined
