JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Unknown protocol
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - General Forum
View previous topic :: View next topic  
Author Message
Tobinh



Joined: 18 Aug 2004
Posts: 23
Location: Longview, TX

                    
PostPosted: Mon Aug 23, 2004 7:43 pm    Post subject: Reply with quote

It works! Tested all the numerals.

I need to get the rest. If you think I can do it then just tell me how you encoded it. (I'm not famaliar with your protocol notation) I am confortable with hex and binary, device code, function code, and I understand the 2 bits per symbol encoding, but I'm unfamaliar with how you got to the hex that both of you are using, Including how you decoded the 2 bit encoding

I assume

0011= 00
001A= 01
0023= 10
002B= 11

and that there are 3 bytes encoded (In some cases I saw extra bits, or maybe my eyes were just shifting...)

However if you can do the rest before you figure out how to explain, then go ahead Smile

Thanks!


Tobin.
Back to top
View user's profile Send private message
jon_armstrong
Expert


Joined: 03 Aug 2003
Posts: 1238
Location: R.I.P. 3/25/2005

                    
PostPosted: Tue Aug 24, 2004 4:26 pm    Post subject: Reply with quote

Here is my best guess of what the protocol really is:

{38K,226}<2,-2|2,-3|2,-4|2,-5>(4,-2,D:8,M:2,F:6,2:2,C:2,~F:4:0,2,-356)

if M=1 it repeats otherwise not
where C=M:1:1+M:1:0+F:1:5+F:1:4
and for M
0=Make, 1=repeat, and 2=break

What that means is:
{38K,226} 38KHz IR carrier frequency, Time Base = 226 uS
<2,-2|2,-3|2,-4|2,-5> The burst pairs for binary 00, 01, 10, and 11 in units of time base or in time in uS:

452,-452 (positive is on negative is off)=00
452,-678=01
452,-904=10
452,-1130=11

(4,-2,D:8,M:2,F:6,2:2,C:2,~F:4:0,2,-356) is the transmitted signal, where
4,-2 is the lead in pulse in units of time base
D:8,M:2,F:6,2:2,C:2,~F:4:0 is the data structure
D:8 device in 8-bits
M:2 the make, break, or repeat depending on the value of M in 2-bits.
F:6 function code aka OBC in 6-bits
2:2 the constant 2 expressed in 2-bits
C:2 a check sum in 2-bits
~F:4:0 the complement of the bottom four bits of F
2,-356 the lead out expressed in units of TimeBase

C=M:1:1+M:1:0+F:1:5+F:1:4 means the sum of these bits M:1:1 means 1 bit from M and the second 1 after the colon means the lsb offset where 0 is the bottom bit, etc.

So all of that is academically interesting, but I am no assembly language expert. There is a very good tool, Protocol builder (PB), but it doesn't handle something like four burst pairs each representing two bits. PB can only can deal with a One or a Zero. Since every burst pair has at least 452 uS on and 452 uS off, we'll call that a 1 and define the Zero to be NO on time and 226 uS off.

0 = 0,-226
1 = 452,-452

Now we translate the real coding into something PB can deal with.

00 -> 1
01 -> 10
10 -> 100
11 -> 1000

You make those substitutions and add a final 1 at the end of all the bits and pad with enough 0's to get 36 bits and translate into four bytes of hex. The first is the same for all commands so it will be fixed the other three vary.

I translated all commands and did the substitutions with a spreadsheet. I can post that so you can see what I did at work where IIRC you have Excel.
_________________
-Jon
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tobinh



Joined: 18 Aug 2004
Posts: 23
Location: Longview, TX

                    
PostPosted: Tue Aug 24, 2004 4:59 pm    Post subject: Reply with quote

ok, I'll give it a try tonight.

So if I understand it correctly the raw hex code is just concatonated values you listed (1,10,100,1000) If I just change the raw values I should be set. (As you already setup PB with the correct time base, and the on and off values)

Tobin.
Back to top
View user's profile Send private message
jon_armstrong
Expert


Joined: 03 Aug 2003
Posts: 1238
Location: R.I.P. 3/25/2005

                    
PostPosted: Tue Aug 24, 2004 5:11 pm    Post subject: Reply with quote

Yes, that is correct. Here are the values to go into the device upgrade:

Fixed Data=8F

Make Commands

6C 8A 40 Numeral 0
B8 99 00 Numeral 1
5C 99 00 Numeral 2
2E 99 00 Numeral 3
9C 59 00 Numeral 4
4E 59 00 Numeral 5
27 59 00 Numeral 6
8E 39 00 Numeral 7
47 39 00 Numeral 8
23 B9 00 Numeral 9
F1 19 00 Pwr
79 19 00 Video
3D 19 00 Options
1F 19 00 Mute
17 99 00 Vol+
13 D9 00 Vol-
11 F9 00 CH+
D8 8A 40 Info
36 8A 40 Enter
1B 8A 40 CH-
AC 4A 40 Menu
56 4A 40 Guide
2B 4A 40 Select
96 2A 40 Up
15 CA 40 Left
4B 2A 40 Right
12 EA 40 Down
22 DA 40 Stack
45 9A 40 Back
11 7A 40 Prev
66 45 20 Play
CC 45 20 REW
33 45 20 FWD
19 C5 20 REC
A6 25 20 Stop
53 25 20 Pause

Break Commands

6A 44 90 Numeral 0
B4 4A 40 Numeral 1
5A 4A 40 Numeral 2
2D 4A 40 Numeral 3
9A 2A 40 Numeral 4
4D 2A 40 Numeral 5
26 AA 40 Numeral 6
8D 1A 40 Numeral 7
46 9A 40 Numeral 8
23 5A 40 Numeral 9
E8 8A 40 Pwr
74 8A 40 Video
3A 8A 40 Options
1D 8A 40 Mute
16 CA 40 Vol+
13 6A 40 Vol-
11 BA 40 CH+
D4 44 90 Info
35 44 90 Enter
1A C4 90 CH-
AA 24 90 Menu
55 24 90 Guide
2A A4 90 Select
95 14 90 Up
15 64 90 Left
4A 94 90 Right
12 B4 90 Down
22 AC 90 Stack
45 4C 90 Back
11 5C 90 Prev
65 22 48 Play
CA 22 48 REW
32 A2 48 FWD
19 62 48 REC
A5 12 48 Stop
52 92 48 Pause
_________________
-Jon
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tobinh



Joined: 18 Aug 2004
Posts: 23
Location: Longview, TX

                    
PostPosted: Wed Aug 25, 2004 11:35 pm    Post subject: Reply with quote

Haven't tried the last commands yet, but I'll assume that they'll work. I've been a bit busy, and haven't done much.

Thanks for the help.

I don't know if all this info needs to be posted for the benefit of everyone else, but I trust that you will (or have already) add(ed) this to the wealth of info on the yahoo site. If my ccf files might help someone, feel free clean up (if necessary) and post my ccf files if you have extra time to kill. (Remote central ??)

Tobin.
Back to top
View user's profile Send private message
Tobinh



Joined: 18 Aug 2004
Posts: 23
Location: Longview, TX

                    
PostPosted: Fri Aug 27, 2004 12:47 pm    Post subject: Reply with quote

btw, for anyone who cares the "1 ??" above is actually a CH-
Back to top
View user's profile Send private message
jon_armstrong
Expert


Joined: 03 Aug 2003
Posts: 1238
Location: R.I.P. 3/25/2005

                    
PostPosted: Sat Aug 28, 2004 2:28 pm    Post subject: Reply with quote

I made the change to 1?? and posted in the device/protocol upgrades under device|PVR.
_________________
-Jon
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - General Forum All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control