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

Can I derive JP1 codes from existing Hex Codes?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> Slingbox
View previous topic :: View next topic  
Author Message
gosu



Joined: 09 Oct 2007
Posts: 8

                    
PostPosted: Fri Oct 19, 2007 12:26 am    Post subject: Reply with quote

hate to butt into your beautiful hijack attempt, but i got some more interesting information. Very Happy

after unsuccessfully making several sling bins using custom code 0140, i decided to ask my R&D team to directly read the codes into an existing set-top-box using the debugging output. here are the raw results:

KEY VALUE : fc031004 (Button "3")
KEY VALUE : fb041004 (Button "4")
KEY VALUE : fa051004 (Button "5")
KEY VALUE : f9061004 (Button "6")

it does appear the information i got from the RCU supplier might be incorrect or reversed in some manner. as you can see from the output, the bits should be read in reverse (LSB?). the last 2 bits are the custom code. the third bit from right to left is the key code.

should the custom code be: 04 10? also, can the exact protocol name be identified with the output sample given?
thanks.
Back to top
View user's profile Send private message
jimdunn



Joined: 29 Jun 2004
Posts: 544
Location: NSW, Australia

                    
PostPosted: Fri Oct 19, 2007 6:55 am    Post subject: Reply with quote

gosu wrote:

should the custom code be: 04 10?
thanks.


I think that would be 04:16 (decimal from Hex)

It certainly looks like it from those examples, doesn't it ?

Incidentally, the last byte (right to left) seems to be a complement of the command code (FF - code)
Back to top
View user's profile Send private message Visit poster's website
johnsfine
Site Admin


Joined: 10 Aug 2003
Posts: 4766
Location: Bedford, MA

                    
PostPosted: Fri Oct 19, 2007 8:24 am    Post subject: Reply with quote

gosu wrote:
after unsuccessfully making several sling bins using custom code 0140,


What did you try as protocol, device and subdevice? Did you try NEC1, 1 and 64 as we suggested?

gosu wrote:
i decided to ask my R&D team to directly read the codes into an existing set-top-box using the debugging output. here are the raw results:

KEY VALUE : fc031004 (Button "3")
KEY VALUE : fb041004 (Button "4")
KEY VALUE : fa051004 (Button "5")
KEY VALUE : f9061004 (Button "6")


Unfortunately, we know even less about that "raw" format than about the manufacturer's documentation, regarding the key question of the relationship between the bit sequence transmitted and the bit sequence displayed.

In NEC protocol, each byte is transmitted LSB first, and the four bytes are in sequence: Device, Subdevice, Function, Check.

If it is really NEC protocol, we can clearly see that your "raw" format has the 4'th byte (FC) on the left, and the 3'rd byte (03) second from the left.

That leads me to guess that your raw format has all 32 bits in simple sequence from right to left. If that is true then the Device number is 4 and the subdevice is 16.

TEST THAT.

gosu wrote:
it does appear the information i got from the RCU supplier might be incorrect or reversed in some manner. as you can see from the output, the bits should be read in reverse (LSB?). the last 2 bits are the custom code. the third bit from right to left is the key code.


Something is seriously reversed. But we don't yet see enough to know what.

If the above guess isn't right, you could try sending some known NEC signal to your raw capture system and see what the bit sequence is. Do you have any universal remote handy that includes the standard Toshiba TV code set? That's easy to recognise even under unknown bit sequence.

gosu wrote:

should the custom code be: 04 10?


That is my current best guess: Device 4, Subdevice 16. Though I can't guess why they would document that as 0140.

gosu wrote:
can the exact protocol name be identified with the output sample given?


No, but the difference between NEC1 and NEC2 would be pretty subtle in slingbox usage. If you got that choice wrong, it would probably work anyway. If it fails due to that choice wrong, it would probably partially work in a way we would recognise as having NEC1 vs. NEC2 wrong.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gosu



Joined: 09 Oct 2007
Posts: 8

                    
PostPosted: Sun Oct 21, 2007 9:19 pm    Post subject: Reply with quote

johnsfine wrote:

What did you try as protocol, device and subdevice? Did you try NEC1, 1 and 64 as we suggested?


I tried the following combinations:
Protocol: NEC1
Device / Subdevice: 1/64

Protocol NEC2
Device / Subdevice 1/64

johnsfine wrote:

That leads me to guess that your raw format has all 32 bits in simple sequence from right to left. If that is true then the Device number is 4 and the subdevice is 16.

TEST THAT.


OK. I will do so and report back.


Last edited by gosu on Sun Oct 21, 2007 11:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Capn Trips
Expert


Joined: 03 Oct 2003
Posts: 3990

                    
PostPosted: Sun Oct 21, 2007 9:32 pm    Post subject: Reply with quote

gosu wrote:

Protocol NEC3
Confused Surprised Confused Surprised Question Question Question
_________________
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
Back to top
View user's profile Send private message
gosu



Joined: 09 Oct 2007
Posts: 8

                    
PostPosted: Sun Oct 21, 2007 11:56 pm    Post subject: Reply with quote

Capn Trips wrote:
gosu wrote:

Protocol NEC3
Confused Surprised Confused Surprised Question Question Question


fixed Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> Slingbox All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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