Page 2 of 3

Posted: Sat Sep 29, 2012 10:10 am
by mdavej
Thanks. That's close. Some work perfectly.

Up, Left, Up-Left, Right-Click are perfect.

Up-Right, Down-Right, Down-Left and Left-Click don't do anything at all.

Right goes up a little, so I'm afraid there may actually be 16 possible directions instead of 8.

I probably gave you some bad captures. It's very difficult getting just one signal at a time on the pad on the remote. I'll try again and update my file.

Posted: Sat Sep 29, 2012 2:44 pm
by vickyg2003
mdavej wrote:Thanks. That's close. Some work perfectly.

Up, Left, Up-Left, Right-Click are perfect.

Up-Right, Down-Right, Down-Left and Left-Click don't do anything at all.

Right goes up a little, so I'm afraid there may actually be 16 possible directions instead of 8.

I probably gave you some bad captures. It's very difficult getting just one signal at a time on the pad on the remote. I'll try again and update my file.


I doubt it was the captures. I was having all sorts of problems with the protocol and ended up hand decoding them from the pictures. It wasn't until I wasn't until I was ready to give up, that I realized that the IRP had too many bits. (Not the sharpest knife in the drawer here.) I only checked the pictures against up and left. I'll compare the rest of the upgrade against your pictures, and see if I goofed on the decode. That is probably what happened. I can decode pulse width, but the phase encoded is just more than I can usually handle.

Posted: Sat Sep 29, 2012 6:05 pm
by vickyg2003
Up-Right, Down-Right, Down-Left and Left-Click don't do anything at all.

These were all decode problems. As well as Down.

Right is your problem.

Here is the latest, with all the codes verified to the files that you had
https://www.hifi-remote.com/forums/dload ... e_id=11382

You should know that working with left-right, is just as much an issue for me, as working with phase encoded. I'm one of THOSE people. You give me right left instructions, and its pretty sure I'll be lost. So this was especially difficult to get everything matched up.

Posted: Sat Sep 29, 2012 7:17 pm
by mdavej
Thank you so much. Beautiful job on your part, not so good job on my part. All work now, but a couple are a bit skewed as I feared. So I'll capture the offending signals again and post back tomorrow.

Posted: Sat Sep 29, 2012 10:23 pm
by The Robman
Vicky, do you use any of the IR.exe or RMIR features for decoding bi-phase signals?

Here's what I did to verify your decodes. First, I manually edited all the leadout times in the first ICT file that Dave posted (making them all about 500k), then I opened the ICT file in IRScope and exported in UEI format. Then I used my IRScope Decoder spreadsheet to convert it into and IR file and opened it using IR. Then I set the rounding time to 500 and Bi-Phase to EVEN. Then I grabbed the times from the Time Summary, which looked like this...

# Device Button Key Notes Freq Raw Timing Data
1 CBL TV Up 37914 Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; +500 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; -500 +500; +500 -49000;
2 CBL Setup Down 37914 Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; +500 -500; +500 -500; -500 +500; -500 +500; -500 +500; -500 +500; -500 +500; +500 -49000;
3 CBL Power Right 37914 Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; -500 +500; -500 +500; +500 -500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; -500 +500; -48500
4 CBL VOL+ Left 38095 Once: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; +500 -500; -500 +500; -500 +500; -500 +500; +500 -500; +500 -500; +500 -500; -500 +500; -131000
5 CBL VOL- Up-Right 37914 Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; -500 +500; -500 +500; -500 +500; -500 +500; +500 -49000;
6 CBL CH+ Down-Left 37735 Once: +0 -1500; +0 -1500; +500 -48500;
Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; -500 +500; -500 +500; +500 -500; -500 +500; -500 +500; -500 +500; +500 -500; +500 -500; -500 +500; -48500
7 CBL CH- Down-Right 38095 Once: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; -500 +500; -131000
8 CBL Mute Up-Left 37914 Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; +500 -500; +500 -500; +500 -500; -500 +500; -500 +500; -500 +500; -500 +500; -500 +500; +500 -500; +500 -500; -500 +500; -48500
9 CBL CBL Left Click 37914 Repeat: +2000 -500; +500 -500; +500 -500; -500 +500; +500 -500; -500 +500; -500 +500; +500 -500; +500 -500; +500 -500; +500 -500; +500 -500; +500 -500; +500 -500; -500 +500; -500 +500; +500 -49000;

From here you can replace all the +500 -500; pairs with "1" and all the -500 +500; pairs with "0", then replace the remaining +500 items in front of the leadout times with "1" also, which gives you this:

1101011111101001 - Up
1101011111000001 - Down
1101011001101110 - Right
1101011110001110 - Left
1101011011100001 - Up-Right
1101011001000110 - Down-Left
1101011010101110 - Down-Right
1101011100000110 - Up-Left
1101001111111001 - Left Click

I looked at your PB file, I think it would have been simpler to not use a decide code/fixed byte and just split the 16-bits into two 8-bit variable bytes.

Posted: Sun Sep 30, 2012 4:45 am
by vickyg2003
Thanks Rob, I've downloaded the spreadsheet, and hopefully will have it in the next time I need it. I had rounded the numbers by hand in notepad, but when I was replaing the pairs, I got off one, and had stray 500s here and there. So I just looked at the pictures because I was so frustrated. But when you are decoding from a picture, and you make one mistake, the whole rest of the biphase is complemented!

I really don't like decoding. I'd much rather leave that part alone.
I looked at your PB file, I think it would have been simpler to not use a decide code/fixed byte and just split the 16-bits into two 8-bit variable bytes.
Yes, it would have been, but originally I thought this was 17 bits.....

Posted: Sun Sep 30, 2012 10:02 am
by The Robman
vickyg2003 wrote:Thanks Rob, I've downloaded the spreadsheet, and hopefully will have it in the next time I need it. I had rounded the numbers by hand in notepad, but when I was replaing the pairs, I got off one, and had stray 500s here and there. So I just looked at the pictures because I was so frustrated. But when you are decoding from a picture, and you make one mistake, the whole rest of the bi-phase is complemented!
Exactly, that's why I had the bi-phase stuff added to IR all those years ago, and now it's in RMIR too.

If I still had to do it by hand, I would NEVER decode a bi-phase signal.

Posted: Sun Sep 30, 2012 10:33 am
by mdavej
Up, Down, Left, Up-Left, R click and L click are good. I got Right and the other 3 diagonals wrong and have updated the file with the new ones.

There actually seem to be a total of 16 direction commands, but they are too hard for me to isolate and would be impractical on a regular remote anyway.

Posted: Sun Sep 30, 2012 5:54 pm
by vickyg2003
I was all excited to use Rob's spreadsheet and then the codes wouldn't export!!!! :P So I still had to decode them from the pictures.

I corrected Right, Left-down, Right-up, Right-down. Hope that was all!

Posted: Sun Sep 30, 2012 7:43 pm
by The Robman
vickyg2003 wrote:I was all excited to use Rob's spreadsheet and then the codes wouldn't export!!!! :P So I still had to decode them from the pictures.

I corrected Right, Left-down, Right-up, Right-down. Hope that was all!
What do you mean that they wouldn't export? I just did it and the resulting files are here:
https://www.hifi-remote.com/forums/dload ... e_id=11394

The step by step that I followed is outlined here:
https://www.hifi-remote.com/forums/viewtopic.php?t=14280

Posted: Sun Sep 30, 2012 8:12 pm
by mdavej
vickyg2003 wrote:I corrected Right, Left-down, Right-up, Right-down. Hope that was all!
Perfect. That is all. Thanks again.

Posted: Mon Oct 01, 2012 12:24 pm
by vickyg2003
The Robman wrote:
vickyg2003 wrote:I was all excited to use Rob's spreadsheet and then the codes wouldn't export!!!! :P So I still had to decode them from the pictures.

I corrected Right, Left-down, Right-up, Right-down. Hope that was all!
What do you mean that they wouldn't export? I just did it and the resulting files are here:
https://www.hifi-remote.com/forums/dload ... e_id=11394

The step by step that I followed is outlined here:
https://www.hifi-remote.com/forums/viewtopic.php?t=14280
Hmm, I had broken them up into individual ICT files so I could get each signal to start at the start of a window so I could compare them to my output visually. Maybe I still needed to adjust the leadout time to make them seperate, because I couldn't export any of them. I kept getting an error message. When I looked at Export UEI file I got this
Up : Protocol=<unknown> (UEI Learned)
Cannot export. Total length is 200 bytes, maximum permitted is 128

Posted: Mon Oct 01, 2012 12:49 pm
by The Robman
I just noticed that I posted a bad link for the new file, so I have updated it in the previous posts. Here is the good link:
https://www.hifi-remote.com/forums/dload ... e_id=11394

Anyway, I think you must have made an error when editing the ICT file, because I just tried it the way you were trying it and it still worked. First, I opened the Mouse diagonals - Right.ict using Notepad, then deleted all the contents stating with the 2nd note=. I then opened the new ICT file using IRScope and exported to UEI, which gave the following results:

Right : Protocol=<unknown> (UEI Learned)
00 00 23 00 D3 06 03 ED 00 F9 00 FB 00 F7 00 FC 01 EE 01 F4 01 EF 01 F2 00 F7 01 F6 5F EF 8D 01 23 41 12 31 11 50
Protocol=DirecTV Device=0 OBC=0 (UEI Learned)
00 00 0D 00 00 01 00 00 00 00 0A 00 00 00 00 00
Protocol=F12 Device=0.0 OBC=0 (UEI Learned)
00 00 0E 00 00 01 00 00 00 00 0C 00 00 00 00 00 00

Posted: Mon May 06, 2013 8:28 am
by mdavej
Anybody know how to convert the subject mouse commands to pronto hex? I was thinking IR Master could do it, but I don't know how to add the IRP to it.

TIA

Posted: Mon May 06, 2013 11:44 pm
by 3FG
Well, the IRP is clear. Add the following to IrpProtocols.ini

Code: Select all

[protocol] 
name=OrtekMouse
irp={37.9k,500}<1,-1|-1,1>(4,-1,D:5,F:7,C:4,-48m)+{C=3+#D+#F}[D:0..31,F:0..127] 
What is less clear to me is the OBCs for a given function. The last uploaded ICT file for the mouse functions gives Device 20:
Up 64 C 6
Down 96 C 7
Right 76 C 8
Left 112 C 8
Down-Left 108 C 9
Up-Left 120 C 9
Left Click 1 C 6
Right Click 2 C 6
but the RMDU file gives Right = 80, and Down-Left = 104.