I'm having trouble with a new exec that I'm attempting to write. The protocol is NEC based, but it has two data portions, so I'm attempting to format the first portion then send the signal, then format the second portion and send the signal. The first portion of the signal is being generated correctly, but the second portion is not. I've even tried adding another $0146 call right after the first hoping that I would see the first portion of the signal twice, but that doesn't work either.
Now, the regular $005A exec has an option where the data portion is sent twice, and the $007E Pioneer DVD exec sends different data portions, so I can't see what the problem is.
If anyone would like to look at the learned signals, my PB file or my KM file, here are the links...
PB file:
https://www.hifi-remote.com/forums/dload ... le_id=3360
Learns:
https://www.hifi-remote.com/forums/dload ... le_id=3361
KM file:
https://www.hifi-remote.com/forums/dload ... le_id=3362
The signal is NEC based. There are two data portions, then there's an NEC1 style repeating pattern (ie, the header and trailer with no data bits). The device codes are constant between the two data portions, but the command code data is different.
The OBC byte is split between the 3rd byte of the first part and the 3rd byte of the second part. For the first part, the left nibble is zeroed out. For the second part, the nibbles are swapped then the left nibble is zeroed out.
For OBCs below 128, the 3rd byte of the first part is OR'd with binary 00100000 and the 4th byte is the complement.
For OBCs of 128 and up, the 4th byte is the same as the 3rd byte.
Here are samples of the binary
OBCs 13 thru 17
00000001 00010111 00100000 11011111 - 00000001 00010111 00001011 11110100
00000001 00010111 00100000 11011111 - 00000001 00010111 00000111 11111000
00000001 00010111 00100000 11011111 - 00000001 00010111 00001111 11110000
00000001 00010111 00101000 11010111 - 00000001 00010111 00000000 11111111
00000001 00010111 00101000 11010111 - 00000001 00010111 00001000 11110111
OBCs 208 thru 212
00000001 00010111 00001011 11110100 - 00000001 00010111 00000000 00000000
00000001 00010111 00001011 11110100 - 00000001 00010111 00001000 00001000
00000001 00010111 00001011 11110100 - 00000001 00010111 00000100 00000100
00000001 00010111 00001011 11110100 - 00000001 00010111 00001100 00001100
00000001 00010111 00001011 11110100 - 00000001 00010111 00000010 00000010
Need help with new protocol (NEC variant)
Moderator: Moderators
-
The Robman
- Site Owner
- Posts: 22062
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
Need help with new protocol (NEC variant)
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
-
The Robman
- Site Owner
- Posts: 22062
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
Never mind, I figured it out. It was the move to W7 that was stopping the 2nd part from working.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!