Hi Gene,
I did some digging anf found the follewing line of code in the XTenLib -->XTenManager.cs.
___________________________________________________________________________________________
else if (readData[0] == (int)
X10CommandType.RF)
{
lastReceivedTs = DateTime.Now;
bool isSecurityCode = (readData.Length == 8 && readData[1] == (byte)X10Defs.RfSecurityPrefix &&
((readData[3] ^ readData[2]) == 0x0F) && ((readData[5] ^ readData[4]) == 0xFF));
bool isCodeValid = isSecurityCode ||
(readData.Length == 6 && readData[1] ==
(byte)X10Defs
.RfCommandPrefix && ((readData[3] & ~readData[2]) == readData[3] && (readData[5] &
~readData[4]) == readData[5]));
___________________________________________________________________________________________
And in the file Enums.cs the Remote type 0x14 is missing.
So I think that the Remote RF Commands are not implemented in the Library.
My X.10 Remota and my Motion Controler (MS13) send such 5 Byte Commands.
Thats what I found in an CM15 Spec:
___________________________________________________________________________________________
5a. RF Remote (5 bytes)
Example: 0x5D 0x14 0x37 0x02 0x60 - RF Remote (Power On/Standby Button)
Byte 3: Check code
Algorithm: Check code = (Command + Offset (0xD4) + Address) % (modulus) 0xFF
Using above example: Command (0x02) + Offset(0xD4) + Address (0x60) = 0x136 Modulus % 0xFF = 0x37
Byte 4: Command
See Appendix A - RF Remote Commands.
Byte 5: Address
1 2 3 4 5 6 7 8
h1 h2 h4 h8 u8 u4 u2 u1
h8h4h2h1 house code - bit reversed from the powerline version
u8u4u2u1 unit code - possibly. This nibble was 0000 on all of my tests with the IR34A. If the unit code follows suit with the RF powerline command, then this (0000) should be unit code 1. The RF version of the unit code is simply the nibble's base 10 value plus 1.
___________________________________________________________________________________________
Any Chance to implement those commands?
I tried it on my own, but couldn't get the Xamarin environment working.
Thanks for your help
and best regards
Christian