Receiver VM122 IR protocol?

I have to control a IR Receiver VM122 using a IR transmitter and a PIC but I need protocol specifications.

Where can I find the IR protocol specifications for the VM122 receiver?

Thanks in advance

 Guillermo

Hereby a link to the protocol description:

http://www.velleman.be/images/tmp/Velleman_IR_transmitter_protocol.xls

:o

I have studied the specifications but I don’t understand it.

I have worked with other IR protocol specifications and usually have a header, data and tail sections with timing specifications for each; and finally the codes for each command. I can see the command codes for the keys but I don’t understand how is the header or the tail …

Also in the xls document there are labels “D1…D4, Tref/Tog/Ad1/Ad2/Ad3, F E D C B A” and so on, What is the meaning of this?

Any help and perhaps a example would be greatly appreciated.

Thanks in advance

 Guillemo

Brief explanation (sorry, the rest is up to you :slight_smile: )

(x= don’t care, can be either 1 or 0)

Address: 4 addresses: 1x101, 1x011, 1x010 and 1x000

Button: 1 to 15: 100010 to 001011

To send address 1, button 1: 1x001100010

transmitter emits fixed 700µs trains of 37.8Khz pulses (period= 26.4µs, 8.8µs high, 17.6µs low). The pause between the trains
determines 1 or 0. 0 = 5.06ms pause, 1 = 7.59ms pause
between each code sequence there is 55ms pause

Thanks !!!

This is exactly the info that I need

 Guillermo

Pls. check my previous post, made a small update.

Thanks for your help but I don’t understand your example:

To send address 1, button 1: 1x001100010

I suppose that the address is 1x001 and the key code 100010

But there are no address with code “1x001”

Address: 4 addresses: 1x101, 1x011, 1x010 and 1x000

Is this a mistake? Perhaps the 4 correct addresses are: 1x001,1x101,1x011,1x010,1x000 (from the excel doc)

Best regards

Guillermo

It appears that there are 5 addresses. However, not all of them are implemented in the receiver. You will have to experiment to check which bit combination corresponds to which each address setting.

Ok, I will test it this weekend, I haven’t access to the receiver here.

Thanks

Guillermo

Hello

Sorry for the confusion but, at end, the receptor is a K8056 Relay box with the RX433 module !!!

Now I need to emulate the K8058 RF remote control (I confused with VM121 because looks very similar).

I found that I have to use the TX433 module, and the question is: What is the protocol of K8056?

Follow a description of the project if you have curiosity, is quite interesting.

The K8056 is controlling a astronomical dome and I have to sync the dome orientation with the telescope, to do this I need to control the dome using a RF transmitter, it’s not possible to use RS232 connection because the physical position of the box (it’s attached to the rotating part of the dome) and because the handheld remote (K8058) are also necessary (the K8056 can be operates using RF or RS232 mode, not both).

Best regards and thanks in advance

Guillermo

Hereby the protocol. Please understand that we are unable to assist with custom projects.

How to address the K8056 card through RS232 commands.

Note:
A Test program is can be downloaded from our web site. The source code (VB) is also available. (English only)

  1. Instructions for software design :

As the instructions consist of a string of ASCII characters, it is easy to design software which transmits the instructions via the serial port of the PC.
Port settings are: 2400/8/N/1

For wired operation, the instruction sequence needs to be sent at least twice.
For wireless operation, we recommend to send the instruction string at least 5 times in a row to ensure proper reception under all conditions. For improved reliability, add a pause of a least 300ms between two different instructions.
! Please note that environmental conditions can interfere with the signal. Therefore, the unit is not suited for use as or as part of any kind of equipment which might cause harm to people or property if a malfunction should occur.

  1. Instruction sequence :

To execute a command, the right sequence needs to be sent to the K8056.
Basically, a command sequence looks like this :

CHR$(13)
card address (1…255)
instruction
address (1…255) or relay# (‘1’…‘9’ ASCII)
checksum (complement of the sum of the 4 previous bytes + 1)

  1. Instructions :

‘E’ : Emergency stop all cards, regardless of address.
(Carefull, relays turned on by open collector inputs will not
be turned off by this command).

‘D’ : Display address. All cards show their current address in a binary fashion.
(LD1 : MSB , LD8 : LSB)

‘S’ : Set a relay. ‘S’-instruction should be followed by relay # ‘1’ to ‘8’.
(‘9’ sets all relays at once).

‘C’ : Clear a relay. ‘C’-instruction should be followed by a relay # ‘1’ to ‘8’.
(‘9’ clears all relays at once.)

‘T’ : Toggle a relay. ‘T’-instruction should be followed by a relay # ‘1’ to ‘8’.

‘A’ : Change the current address of a card. ‘A’-instruction should be followed by the new address (1…255)

‘F’ : Force all cards to address 1 (default)

‘B’ : Send a byte. Allows to control the status of all relays in one instruction, by sending a byte containing the
relay status for each relay. (MSB : relay1, LSB : relay8)

Thanks for the protocol, I have no problem to implement it with a wired RS232 connection but I have a question about the protocol over wireless.

The RS232 have negative logic, the line is active by default and a drop of the line indicates the start bit; but in wireless the line is inactive all the time except on transmission.

My question what is the implementation of the RS232 protocol in K8056 Relay box (for example a 1 logic start bit follow by 8 bits negative logic and… stop bit)

Thanks in advance

 Guillermo

The protocol for wireless operation of the K8056 is exactly the same as for wired operation.

There seems to be conflicting information regarding the Velleman IR protocol.

I would like to know the hex codes that are needed to be sent for the following commands:

Vol Up
Vol Down
Mute

This is to a MK163/MK164 remote volume unit.

I understand the IR protocol low-level settings in the spreadsheet posted earlier in the thread (i.e. the basic pulse coding) but the address/button settings specified do not correspond with the information in the K8049 manual.

The K8049 manual implies that to control the MK163/MK164:

Vol Up = Mode/Address 4, Button 3. This would be sent as ‘1x100000010’.
Vol Down = Mode/Address 4, Button 5. This would be sent as ‘1x100010000’.
Mute = Mode/Address 4, Button 1. This would be sent as ‘1x100100010’.

I am assuming here that Address 4 = 1x100, i.e. it is given by the 3 least significant bits. Address 4 is not shown as an option in the spreadsheet. Are the Address numbers/Mode numbers the same? Or is the Address one less than the Mode number?

In the spreadsheet the Vol Up, Vol Down, and Mute keys are shown as ‘001010’, ‘001000’, and ‘001011’ respectively. These would correspond to keys 14, 13, and 15 respectively. There is no address specified.

Would it be possible for someone from Velleman to clear up the confusion here?