Learnt code and received code

Interested in integrating USB-UIRT support into an application? Look here!

Moderator: jrhees

Learnt code and received code

Postby olivier » Tue Oct 18, 2005 5:53 pm

Hello :)
i'm scared to ask an already resolved question but i don't understand anything:
When i learn a code, iget:
0000 0068 0000 000D 005F 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 041E

When i receive a code, i get:
190002A0A0CA

Is there a way to recognize a receive code vs an allready learnt code ?

Thanks again

PS: my first logged in post :)
________
Arizona medical marijuana
Last edited by olivier on Mon Mar 14, 2011 7:20 pm, edited 1 time in total.
olivier
 
Posts: 3
Joined: Tue Oct 18, 2005 5:37 pm

Postby jrhees » Wed Oct 19, 2005 12:59 am

The simple answer is 'no'. In the API docs it talks about this. The 'event' code during normal reception is a compressed code which does not have all of the information to recreate an IR code (like carrier and timing info). This is because this information is not available via the long-range receiver.

If you need to have a mapping between 'learned' codes (used for IR transmission) and IR event codes, the suggestion is to create a learn procedure that first performs a LearnIR() and then asks the user to press the same button again so as to capture the corresponding event code.

-Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

Postby olivier » Wed Oct 19, 2005 12:56 pm

This is what i made....
Thanks for ur answer :)
________
Homemade Vaporizer
Last edited by olivier on Mon Mar 14, 2011 7:20 pm, edited 1 time in total.
olivier
 
Posts: 3
Joined: Tue Oct 18, 2005 5:37 pm

Postby AndyH » Tue May 09, 2006 2:53 pm

jrhees wrote:The simple answer is 'no'. In the API docs it talks about this. The 'event' code during normal reception is a compressed code which does not have all of the information to recreate an IR code (like carrier and timing info). This is because this information is not available via the long-range receiver.

If you need to have a mapping between 'learned' codes (used for IR transmission) and IR event codes, the suggestion is to create a learn procedure that first performs a LearnIR() and then asks the user to press the same button again so as to capture the corresponding event code.

-Jon


Is the algorithm used to compress the code available? I will be using this for 2 way communication and being able to see the data portion of the signal will be required. The carrier is not important, but some of the timing information MAY be? Does the UIRT have a mode to display the length of the bursts in time (like Milleseconds) instead of number of carrier pulses, similar to Pronto mode 0100?

-AndyH
Waiting to grok it.
AndyH
 
Posts: 2
Joined: Wed May 03, 2006 4:35 pm
Location: Indianapolis, IN

Postby dnorwood2 » Tue Jun 06, 2006 5:43 am

I would be interested in this as well. Is there enough information in a raw or pronto code to convert it to a UIR style code? Could someone theoretically reverse engineer the usb-uirt firmware to determin the algorithym?

David
dnorwood2
 


Return to Developers

Who is online

Users browsing this forum: No registered users and 9 guests

cron