Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: dfalir on February 25, 2015, 07:09:55 pm

Title: I need your help pls, with decoding my remote control
Post by: dfalir on February 25, 2015, 07:09:55 pm
Hi everyone,

I am a newcomer to this technology, I have purchased a USB Infrared Toy v2 and I am overwhelmed by all the info that is presented on the site... 

I would like to know the following

1. Can I use this product (USB Infrared Toy v2) in order to decode my existing TV remote control commands?

2. What Programs and drivers do i need in order to be able to see the commands that my (lets say) TV remote generates? I am lost there is mention of so many different programs...

3. Which program can I use in order to convert these commands to pronto HEX format?

Your help is highly appreciated...I am lost

Best Regards,
Dionisis Falireas
Title: Re: I need your help pls, with decoding my remote control
Post by: dfalir on February 26, 2015, 10:13:40 am
ANYONE PLZ???
Title: Re: I need your help pls, with decoding my remote control
Post by: Barf on February 26, 2015, 07:29:31 pm
1. Yes (almost surely).
2. IrScrutinizer (http://http://www.harctoolbox.org/IrScrutinizer.html). Runs on WIndows, Linux, Mac OS X. Make sure you use the firmware version 2.2 on the IrToy.
3. IrScrutinizer.

Feel free to post any questions you have, or problems that occur. (Except for the ones already covered in the manual :-).)
Title: Re: I need your help pls, with decoding my remote control
Post by: Manitu on February 26, 2015, 10:09:52 pm
Hi
1. Yes
2. You can download the IrToy package (http://http://dangerousprototypes.com/docs/USB_Infrared_Toy#Download) from the vendor which contains everything you need. I was using the the Perl script from that package.
3. look at this (http://http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=5902#p54761) post. I've attached a small C# script to convert the .bin output from the Perl script to the HEX codes.
Title: Re: I need your help pls, with decoding my remote control
Post by: dfalir on March 04, 2015, 08:36:49 pm
Hi,

after a week of fighting (also being away from home so unable to test) I manages to record a signal and also to transmit it back. However I need your help to tell me 2 things pls.
1. When I define the capturing hardware IRtoy to record a signal (com port 12, data rate 9600) I can not transmit the signal back for testing, unless I disconnect the port of capturing hardware and then go to sending hardware and put the same port. Is this the standard procedure to do things, or am I missing something?

2. The most serious question and here I need your help please. The whole reason for this project of mine was to be able to fully utilize my android tablet as a remote control. I have this excellent program (android google play) that is called smart remote which allows you to define your own commands as long as these are in pronto hex format.  My problem is that I am not able to figure out how to export or convert the signal to this format. What do I need to do? I have tried to go to export tab and I have chosen pronto classic as the export format. I have also go to options--> output text format and have set there Pronto hex ccf, and I have also gone to options--> exports format and have set there the Pronto Classic option. But none of the above gives me the format that the android application wants. The exmple for pronto hex format that the application expects is 0000 006b 0022 0000 0157 00ac...etc. Instead i get files with the format    œ    @¥Z@_CCF  `            CCF 
  `  @  ˜  ό            ³    HomeHOME SCROLL DOWNIrScrutinizerExportIrScrutinizerExport_codes_1   SCROLL UPIrScrutinizer CCFLearnedmacroIrScrutinizer captured signal ž  ®  d " u Ί  F              F    F    F    F  F          F  F        F  F  F      F  F  F ήt _ ¥      Ϊ P   x  Ό                    WWΤ      L        ¶        v      ƒ  4  ’                                                                                                  V                                                                                              Π  Q                                                                                      ©          b                                                                                      ½    

Please help me if you can spare a few minutes of your time to explain further...

I will appreciate your help!!!!
Title: Re: I need your help pls, with decoding my remote control
Post by: Barf on March 04, 2015, 11:25:49 pm
Quote
When I define the capturing hardware IRtoy to record a signal (com port 12, data rate 9600) I can not transmit the signal back for testing, unless I disconnect the port of capturing hardware and then go to sending hardware and put the same port. Is this the standard procedure to do things, or am I missing something?
Assuming that you mean "close" by "disconnect", yes, this is "normal". Unfortunately. This is a design flaw, but one that sits rather deeply :-. I may or may not fix it in the future. A work-around is to have one device for capturing and another for sending.

Quote
... pronto hex format. My problem is that I am not able to figure out how to export or convert the signal to this format. What do I need to do? I have tried to go to export tab and I have chosen pronto classic as the export format. I have also go to options--> output text format and have set there Pronto hex ccf, and I have also gone to options--> exports format and have set there the Pronto Classic option. But none of the above gives me the format that the android application wants.

You seem to confuse the CCF file format (http://http://www.harctoolbox.org/Glossary.html#ccfFileFormat) with the CCF "Pronto Hex" (http://http://www.harctoolbox.org/Glossary.html#CCF) signal format. To get what you want, select "Text" (or "Girr") as Export format, and make sure that the "Pronto Hex" check box is selected.

But why not tell us what the Android file format looks like, and we may be able to write that format directly from IrScrutinizer. There is a powerful mechanism for implementing new export formats using XSLT (exportformats.xml).
Title: Re: I need your help pls, with decoding my remote control
Post by: dfalir on March 05, 2015, 02:25:22 pm
Thank you all so much for your time and valuable help!

Regarding the
Quote
But why not tell us what the Android file format looks like, and we may be able to write that format directly from IrScrutinizer.
I have briefly described it in my previous post, but I am posting here again. It is a series of four digits number that goes like this.
0000 006b 0022 0000 0157 00ac 0015 0015 0015 0041 0015 0015 0015..... there must be something like 52 of those 4-digit "combinations". If you need to copy the whole number please tell me and I will do so.


Regarding your comment about
Quote
You seem to confuse the CCF file format with the CCF "Pronto Hex" signal format. To get what you want, select "Text" (or "Girr") as Export format, and make sure that the "Pronto Hex" check box is selected.
thank you, yes I figured that out. The "Output text format" in options is about the way you want the recorded signal to be displayed on the programs window. Because it changes from "+9003 -4523 +553 -1687...." to "0000 0064 0022 0002 0176...." when I choose raw mode and pronto hex format.
I chose this format, because inside the android app at the tab that you add new "buttons" (or learned functions as the programs names them), the program displays the message "Please enter a name for your learned command, and the IR code to control it in Pronto HEX format"

Subsequently, I take the pronto hex format, and having chosen "text" in options-->export formats  i get the exact same result  "0000 0064 0022 0002 0176...." which should be what I am after. (Actually I don't export to .txt file, I just copy the sequence "0000 0064 0022 0002 0176...." to my email and from the galaxy note tablet I open the email and I copy and paste this sequence in the android app window that expects the code in "Pronto Hex" format  as it says.

The whole procedure goes fine, UNTIL I decide to add this "learned button" to an existing remote, inside the app. Then the app force closes. I think that it may force close because the sequence I put, "0000 0064 0022 0002 0176...." look like Pronto hex format but they may not be. And that is where I need your help. Do I do everything right and it is the app's problem, OR does the app force closes because the sequence "0000 0064 0022 0002 0176...." is not an actual Pronto Hex Format?

My guess is that I do things correctly, but I need you to advise / correct me in case I do something wrong...

Once again, thank you for your time to read my post and ( hopefully :-) ),  reply.
Title: Re: I need your help pls, with decoding my remote control
Post by: Barf on March 05, 2015, 04:49:27 pm
You have to address questions on your Android application to its manufacturer -- you have paid for it, and it is closed source.

The only question that remains for me to answer is how to check the validity of a Pronto Hex string. For this, paste into the scrutinize signal window and press "Scrutinize", If it is not valid, you will receive an error saying so. Hopefully, it will decode to a known protocol.
Title: Re: I need your help pls, with decoding my remote control
Post by: dfalir on March 07, 2015, 08:06:47 pm
Thank you all for your help. If you ever think that you shouldn't reply to this (or any forum) i wish to say that you helped me very very much! I have taken the issue with the android app's developer and he is looking into it. Thank you, again for your time and kind support!

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01002070160session_write_close ( )...(null):0
20.01032201736ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01032202512Database_MySQL->query( ).../DatabaseHandler.php:119
40.05562341232Database_MySQL->error( ).../Db-mysql.class.php:273