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

how is calculate ident in NEC1 protocol

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



Joined: 08 May 2020
Posts: 7

                    
PostPosted: Sun May 10, 2020 2:43 pm    Post subject: how is calculate ident in NEC1 protocol Reply with quote

i can find easily how is define key code but i don t understand the way of calculating id
ex: for sf8008 octagon device id is A05F or 5FA0 (reverse) in rmdu files FixedData=00 5F 00 ????
for vbox6 id is 00FA or FF05 (reverse) in rmdu files FixedData=20 FF 05 OK!!!
does the first byte (00 or 20) do something ??
_________________
sat receiver
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Sun May 10, 2020 3:02 pm    Post subject: Reply with quote

It's a better idea to try and understand the codes, then use the decimal codes in RM.

The hex codes that you've found are the raw binary signal in hex format, these hex codes are not the same as the hex codes used in RM. In RM we use decimal values, and how you get the deimal values from the binary varies by protocol. Some are MSB, which means you can read the decimal directly from the binary, but most are LSB which means you have the read the binary backwards (ie, left to right).

the following spreadsheet shows how to read your binary codes:
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=25935

a0 5f = device code 5
00 fa = device code 0 and sub-device = 250

The first byte of fixed data for the NEC protocol is a control byte which decides things like:
* Should the second byte be the complement of the first
* Do you want an NEC1 or NEC2 signal (or even NECx1 or NECx2)
* Do you want special handling of the RECORD button, etc

So, it's best to let RM decide what should go in the fixed data.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!


Last edited by The Robman on Mon May 11, 2020 8:38 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
dreambox59



Joined: 08 May 2020
Posts: 7

                    
PostPosted: Mon May 11, 2020 2:16 am    Post subject: Reply with quote

thanks mr robman

i have a look on excel calculation but something is not clear :

take octagon SF8008 exemple in rmdu file there is :
Protocol.name=NEC1
ProtocolParms=5 null null 0 0
FixedData=00 5F 00

fixed data is in hex format but how to recover real id (A05f or 5fA0) ?
with your excel board i obtain $FA o $05 but not $5f ?

what is protocolparms ? when i read my remote after download it these terms are changed !


"So, it's best to let RM decide what should go in the fixed data."

i want to create a new rmdu file for an old remote
type nec1
ID = $E17A or ยง875E or $5E87
can you give me the way to calculate the fixed data




BR
_________________
sat receiver
Back to top
View user's profile Send private message
dreambox59



Joined: 08 May 2020
Posts: 7

                    
PostPosted: Mon May 11, 2020 8:18 am    Post subject: Reply with quote

with a lot of work i understand !!!!

the excel board is required to have the good values for device and sub device

i have made a second excel board to gives fixed data values from the values above

thanks again
_________________
sat receiver
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 - Software 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