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

Keymap-Master -- What is device code / unit code?

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Beginners
View previous topic :: View next topic  
Author Message
sofakng



Joined: 21 Aug 2004
Posts: 62

                    
PostPosted: Sat Aug 21, 2004 11:44 am    Post subject: Keymap-Master -- What is device code / unit code? Reply with quote

I'm brand new to JP1 programming but I've figured out most of keymap-master and ir.exe, but I don't understand what "Device Code" and "Unit Code" (sometimes it says "Sub Device" and "Main Device"). It's displayed directly below the "Protocol Name" on the first page of the spreadsheet.

What values am I supposed to put in here? Where do I get the values from?

Thanks for any help.
Back to top
View user's profile Send private message
Mark Pierson
Expert


Joined: 03 Aug 2003
Posts: 3017
Location: Connecticut, USA

                    
PostPosted: Sat Aug 21, 2004 12:06 pm    Post subject: Re: Keymap-Master -- What is device code / unit code? Reply with quote

sofakng wrote:
I don't understand what "Device Code" and "Unit Code" (sometimes it says "Sub Device" and "Main Device").

Those items vary from one protocol to another. Typically, they're a specific piece of information, much like an "address" or "index". For example, if you have a TV and a VCR from the same manufacturer, they probably use the same protocol. To keep the TV signals from operating the VCR and vice versa, both units would have a distinct Device Code.

Quote:
What values am I supposed to put in here? Where do I get the values from?

The values most often are obtained from a decoded learned signal. Whatever values are used MUST match the equipment being controlled for the IR signals to work.
_________________
Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sofakng



Joined: 21 Aug 2004
Posts: 62

                    
PostPosted: Sat Aug 21, 2004 4:15 pm    Post subject: Reply with quote

Hmmm, I'm still a little confused on how I'm supposed to use them...

Let's say I'm going to create a device upgrade for the ReplayTV (hacked/advanced version). When I select the ReplayTV (hacked/advanced) for the protocol, the device code (and unit code) are blank.

Am I supposed to put a number in there?

Where do I get that number from...?
Back to top
View user's profile Send private message
Mark Pierson
Expert


Joined: 03 Aug 2003
Posts: 3017
Location: Connecticut, USA

                    
PostPosted: Sat Aug 21, 2004 4:47 pm    Post subject: Reply with quote

sofakng wrote:
Let's say I'm going to create a device upgrade for the ReplayTV (hacked/advanced version). When I select the ReplayTV (hacked/advanced) for the protocol, the device code (and unit code) are blank.

Am I supposed to put a number in there?

When you pick up the phone to call someone, you need to know their telephone number, right? The parameters required by the protocol are similar in concept. They identify the device being communicated with. Without the proper parameters, the signal will likely be ignored by the device.

As I said earlier, locatiing those parameters is done through decoding learned signals in IR, as well as various other sources put together by others (CCF files and raw knowledge for starters).

My question to you is why re-invent the wheel? There's already several Replay upgrades in the PVR folder in the files area. You can start with one of those and then customize it to your liking.

FYI, for the ReplayTV, the default Device Code is 1 and the Unit Code is 0.
_________________
Mark


Last edited by Mark Pierson on Tue Aug 24, 2004 7:53 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
classicsat



Joined: 20 Feb 2004
Posts: 279

                    
PostPosted: Tue Aug 24, 2004 7:35 am    Post subject: Reply with quote

I can say this, since I am close to the NEC2 protocol (Not saying it is for Replay, just giving an example).

(Speaking of how an NEC2 chip would be wired in an OEM remote)
The NEC2 code sends 32 bits in 4 bytes, the address, which is set by diodes on the row lines (or direct if only one is used), the sub address is a complement (IOW logical opposite) of the address, unless the row lines have pull up resistors, which those lines would not be complemented. The last two bytes are the OBC code, and the OBC code complimented.

So in short, the Devoce Code is hard set for the whole remote, used to hopefully distinguish itself from other remotes that use the same protocol.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Beginners All times are GMT - 5 Hours
Page 1 of 1

 
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