Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: regisma on May 12, 2010, 11:55:09 pm

Title: Just received USBIRTOY need a bit of help please
Post by: regisma on May 12, 2010, 11:55:09 pm
Hi,

I have a Windows 7 Home Premium 32 bits.

How can I install the driver ?

How can I achieve this goal : I will like to be able to learn my remotes and then use a scheduler which can send commands to the TV, The DVR to start the recording of a TV show then Stop the recording based again on a schedule.

I know how to program in Visual basic if there are some librairies that can be used ...

Many thanks

Reg
Title: Re: Just received USBIRTOY need a bit of help please
Post by: ian on May 13, 2010, 11:34:30 am
Hi regisma,

I'm not sure how to use CDC on Windows 7. If it prompts you for a driver, try pointing it to the .inf file included in the project archive.
Title: Re: Just received USBIRTOY need a bit of help please
Post by: regisma on May 13, 2010, 05:43:56 pm
Hi,

I have used the mchpcdc.inf driver in Windows 7 Home Premium Edition.

This driver come from the USBIRToy.1.02 file, it is dated 2007-11-15 and it is version 5.1.2600.0.

I have tried the USBIRToy with the following settings : COM12, Bit Per Seconds 115200, Data Bit 8, Parity none, Stop Bit 1, Flow Control none.

I have used the Hercules-3-2-3.exe program to test the USBIRToy and the test with the "t" key report V101 most of the time with very few FAI2.

The IR Led seem to have been installed correctly.

With the Hercules program, when I use a remote, shold I should see any things from the USBIRToy such as a string of hex values, which correcpond to the signal received ?

Because I do not see any things.

Do I need to short few pins together to activate the Learn mode ?

Many thanks

Reg
Title: Re: Just received USBIRTOY need a bit of help please
Post by: rsdio on May 13, 2010, 09:35:34 pm
[quote author="regisma"]The IR Led seem to have been installed correctly.[/quote]Does the metal tab line up with the white label, or is it opposite?
Quote
Do I need to short few pins together to activate the Learn mode ?
I don't think there is a learn mode. The USB IR Toy acts more like a logic analyzer with an IR front end. Learning happens in the software that you run on your host computer. The USB IR Toy just takes commands and reports inputs.
Title: Re: Just received USBIRTOY need a bit of help please
Post by: regisma on May 13, 2010, 09:54:41 pm
Hi,

The tab of the led metal tab is placed on the opposite from the one on the board, so I assume that the fix has been done on this one.

Do I need to put few pins together on the USBIRToy in order to see some hex strings which I figure will represent the data received by the USBIRToy with Hercules software by example ?

Do I need to do a firmware upgrade on the USBIRToy ?

Can the firmware update be done from the USB port, if so how, please ?

many thanks

Reg
Title: Re: Just received USBIRTOY need a bit of help please
Post by: rsdio on May 13, 2010, 10:56:58 pm
No, you don't need to short any pins together. What you need to do instead is send a command to the USB IR Toy to put it in IRIO mode or SUMP mode. The Java SUMP client should do this, I think. IRIO mode is unique, so I don't think there are any front end tools which will automatically place the toy in that mode - you have to do it manually.

The default is IR decoder mode, but that only supports RC-5. If your remote is not sending RC-5 protocol, then you'll get nothing out of the toy. At least that is my experience. I mostly have Sony remotes, so I need to use IRIO mode.
Title: Re: Just received USBIRTOY need a bit of help please
Post by: regisma on May 14, 2010, 08:34:55 pm
Hi,

Ok thanks I begin to understand more and more ...

So I open a terminal like Hercules on the COM port where is the USBIRToy, then I open the port and use the "T" to trigger the self-test routine, "X" to trigger the IRIO mode, "R" to trigger the IRMan mode, "$" to trigger the bootloader mode so we can update the frimware through the USB port.

For the remaining one does I just use those commands like "Reset" to reset the USBIRToy, "SUMP" which send and capture the SUMP mode, "SUMP ID" display 1ALS.

Can someone can suggest me a place where I can check where are the protocols for the Infrared Remotes, like the one I was checking is from a Free To Air Satellite Receiver named Nfusion HD.

So if my remote is RC5 compatible, I should be able to grab a string of hexadecimal values in my terminal, and I should see the wave produce in SUMP for the key I have pushed on the remote, then I can use the terminal Hercules to send back the string which represent my remote button back to my Free to Air Satellite receiver ...

Thanks

Reg
Title: Re: Just received USBIRTOY need a bit of help please
Post by: rick on June 20, 2010, 04:07:30 pm
Hi,

I  received my USB IR Toy from Seeed Studio few days ago.  I give it a try today and follow regisma's experiment in "My findings in USBIRTOY".  I encounter the following problem:

- I can capture signals from my TV remote and display it in the Hercules terminal.  When I try to resend the signal, other than seeing the signal code display on the Hercules output frame (in red), I don't see any IR light output from the IR led.  I use my iPhone camera to see if any light coming out from the led, but I don't see any.  I can do that with all the remotes that I have at home.

- I have no problem going through the self-test and the display a captured signal in the SUMP logic analyzer.

Any idea what's wrong?

Thanks
Title: Re: Just received USBIRTOY need a bit of help please
Post by: ian on June 20, 2010, 04:17:16 pm
Hi Rick - I'm sorry, I don't have any really firm suggestion. Make sure that you do the step that puts it in 8bit transmit mode though.
Title: Re: Just received USBIRTOY need a bit of help please
Post by: rick on June 20, 2010, 04:31:29 pm
Hi Ian,

Thanks.  The settings in the Hercules are:

COM9, 115200 Baud, Data size 8, Parity None, Handshake OFF and Mode Free.

I suppose even if the settings are wrong, I would at least see IR light through a webcam or my iPhone cam.  Without seeing anything, I wonder it is hardware problem, such as a faulty IR led?
Title: Re: Just received USBIRTOY need a bit of help please
Post by: rick on June 20, 2010, 04:49:47 pm
Hi Ian,

I think I got it at least responding :-)  Apparently, I need to unplug the USB IR Toy, then plug it back, issue command "X", then "0x03", then whatever other hex codes.  I can see light from the led through my iPhone cam.  So, the next step for me is to see whether it can re-emit the signal captured from my TV remote.

I guest the reason it wasn't working was I did a few tries of mixing 0x00, X, and 0x03.

Thanks,
Title: Re: Just received USBIRTOY need a bit of help please
Post by: ian on June 20, 2010, 05:02:54 pm
Hi Rick - glad you made some progress. 0x03 is the command to enter the 8bit transmit mode, that makes it accept data in the same format as the output. Without the 0x03 command, the data will have to be reformatted into the 7bit transmit packet. If you send 8bit data into 7bit mode not every packet will be correctly interpreted as a data packet, and some sequences will change the settings randomly.

( ! ) 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.01052077224session_write_close ( )...(null):0
20.01082208800ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01082209576Database_MySQL->query( ).../DatabaseHandler.php:119
40.05352348288Database_MySQL->error( ).../Db-mysql.class.php:273