Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: ian on May 08, 2012, 04:17:33 pm

Title: IR Toy firmware v23 tests
Post by: ian on May 08, 2012, 04:17:33 pm
Here is a test version of firmware v23. It includes an almost complete rewrite of all code by JTR. It uses an improved USB stack version, major improvements to sampling mode, SUMP logic analyzer mode, and more. Any test would be greatly appreciated! Especially if you test it and it works :)

There is one known error:
*In sample mode using the transmit command WITHOUT handshake will lose the first packet. I believe WinLIRC, REC&PLAY, and everybody else all use the handshake now though.

Updates todo:

Wake PC (some PCs...) viewtopic.php?f=29&t=3779#p41276 (http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=3779#p41276)
Title: Re: IR Toy firmware v23 tests
Post by: davidbobo on May 22, 2012, 04:55:37 am
Thanks for the update, Ian.  My Toy was stuck in bootloader mode, based on the LED always on and appearing as a HID device (which often 'failed to start').  I've loaded your v23 code, and the Toy is back to life.  I'm able to receive codes using the WinLIRC utilities.  I've done nothing beyond that yet, heck I just got the Toy a few days ago.  Thanks again.

David
Title: Re: IR Toy firmware v23 tests
Post by: Doug on May 22, 2012, 05:23:06 am
I had to revert back to v22. I was experiencing WinLIRC freezes which seemed to only occur only when I was receiving and sending (receive only seems to work okay).  I'd have to unplug/replug the IR Toy to reset WinLIRC but the problem would occur again after a few receive/send combinations.

Doug
Title: Re: IR Toy firmware v23 tests
Post by: Owel on July 04, 2012, 11:20:29 am
keep going.
I'm looking forward to the wake PC feature :)
Title: Re: IR Toy firmware v23 tests
Post by: lukjod on August 07, 2012, 03:17:34 pm
in my case after update to v 23 on Event Ghost with plugin USB Infrared Toy orange led stoped to worked when receiving signal. With v22 all was ok
Title: Re: IR Toy firmware v23 tests
Post by: JTR on August 07, 2012, 11:02:04 pm
Forget that version. It has a number of coding errors. In fact there was one each in SUMP irS and irWidget. One each was enough to break it badly. These have been sorted out and there is new firmware that is been rather extensively tested. When that hits the shelves then do upgrade to that as it really sorts out a rather interesting timing problem that has slipped through unnoticed and there are rumors of a functional Easter egg that I cannot confirm or deny.
Title: Re: IR Toy firmware v23 tests
Post by: oshaker on October 19, 2012, 05:42:54 pm
Is it possible to have access to the source codes of v2.3, rather than HEX files?
Title: Re: IR Toy firmware v23 tests
Post by: dukey on December 20, 2012, 01:47:25 pm
What is a stable firmware version to use ?
Title: Re: IR Toy firmware v23 tests
Post by: pio on December 29, 2012, 10:07:01 pm
v11 - Last version with the previous USB stack

v20 - Introduced new open source USB stack (standby issues)

v22 - Fixed 48byte transmit bug / Fixed bug when IRS mode settings were used (eg custom PWM frequency)
Title: Re: IR Toy firmware v23 tests
Post by: dodo on January 11, 2013, 09:37:56 pm
iam getting this error when i try to flash and now i can't get back to v.22 any suggestions?
U2IO flash erasing: DONE.
U2IO id programming: DONE.
U2IO eeprom programming: DONE.
U2IO flash programming: DONE.
U2IO id programming: DONE.
U2IO eeprom programming: DONE.
U2IO flash verifying: 17%retry = 0

retry = 1

retry = 2

retry = 3

retry = 4

U2IO flash verifying: FAILED.
Verification failed.
Operation aborted.
Title: Re: IR Toy firmware v23 tests
Post by: RadiatorTwo on January 12, 2013, 12:50:28 am
Can you tell us what parameters you used to get that output?
Normally it only shows 3 lines of output.
At least when I am flashing with these parameters:
Code: [Select]
fw_update -e -w -v -m flash -vid 0x04D8 -pid 0xFD0B -ix USBIRToy.v23.hex

Result is this:
Code: [Select]
U2IO flash erasing: DONE.
U2IO flash programming: DONE.
U2IO flash verifying: DONE.

After that comes an confirmation but too fast to read.
And that´s it.

Also are you flasinhg in Windows or an linux distribution?

Is the IRToy right now in bootloader mode? (led is continuously on when connected)
Disconnect the IRToy and shorten the PGC and PGD pins with a jumper/wire and then stick it in the usb port again.
This puts it in bootloader mode.
Then try flashing again. After flashing disconnect the Toy and remove the jumper.
Title: Re: IR Toy firmware v23 tests
Post by: dodo on January 12, 2013, 08:51:28 am
I used this command fw_update -e -w -v -m all -vid 0x04D8 -pid 0xFD0B -ix USBIRToy.v23.hex on my windows 7 box.
with the PGC and PGD shorten. I also tried fw_update -e -w -v -m flash -vid 0x04D8 -pid 0xFD0B -ix USBIRToy.v23.hex
with the same result. But when i try to flash TVBGone.hex it's works without any errors. It's the same problem with v20-22
will test to flash it on my linux mint box later if you think it will help.
Title: Re: IR Toy firmware v23 tests
Post by: RadiatorTwo on January 12, 2013, 09:22:05 pm
With the parameter "-m all" you have overwritten the eeprom and the id.
I don´t know if this is a problem, but it isn´t necessary when flashing the firmware as far as i know.

I don´t think it will get better when flashing under linux.
Can´t help further with that I think.
Title: Re: IR Toy firmware v23 tests
Post by: dodo on January 12, 2013, 11:48:36 pm
I only follwed the step 2 in upgrade  page if that dosen't work thay should change it..tryed to flash it in linux with the same error..TVBGone.hex works but v20-23.hex doesn't...
Title: Re: IR Toy firmware v23 tests
Post by: ian on January 14, 2013, 10:09:28 am
Hi dodo,

My guess is maybe there is a bit of the flash that is corrupted. It could be unused (or correct) for the TV B Gone firmware, but not the others. Please contact seeed and reference this thread to get a replacement.
Title: Re: IR Toy firmware v23 tests
Post by: fwb on January 15, 2013, 06:01:08 am
[quote author="JTR"]Forget that version. It has a number of coding errors. In fact there was one each in SUMP irS and irWidget. One each was enough to break it badly. These have been sorted out and there is new firmware that is been rather extensively tested. When that hits the shelves then do upgrade to that as it really sorts out a rather interesting timing problem that has slipped through unnoticed and there are rumors of a functional Easter egg that I cannot confirm or deny.[/quote]

Can you clarify, are you saying to forget the v23 that is in the first post?  Has the new firmware hit the shelves yet, or where is it?
Title: Re: IR Toy firmware v23 tests
Post by: st2000 on January 28, 2013, 04:14:18 pm
I have been trying to compile R1611.V22 using the new MPLABX SDK and have been seeing this error:
../usb_stack.h:19: error: can't open include file "picusb.h": No such file or directory
If I move to the source for V23 will it fix this problem?

edit: added later...

I should add that I am also using the new xc8 compiler from microchip.com.

-thanks
Title: Re: IR Toy firmware v23 tests
Post by: chekellog1010 on June 26, 2013, 04:59:55 am
[quote author="ian"]Here is a test version of firmware v23. It includes an almost complete rewrite of all code by JTR. It uses an improved USB stack version, major improvements to sampling mode, SUMP logic analyzer mode, and more. Any test would be greatly appreciated! Especially if you test it and it works :)

There is one known error:
*In sample mode using the transmit command WITHOUT handshake will lose the first packet. I believe WinLIRC, REC&PLAY, and everybody else all use the handshake now though.

Updates todo:

Wake PC (some PCs...)http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=3779#p41276[/quote]

nice post very informative . :-)
Title: Re: IR Toy firmware v23 tests
Post by: chekellog1010 on June 26, 2013, 05:01:29 am
[quote author="chekellog1010"][quote author="ian"]Here is a test version of firmware v23. It includes an almost complete rewrite of all code by JTR. It uses an improved USB stack version, major improvements to sampling mode, SUMP logic analyzer mode, and more. Any test would be greatly appreciated! Especially if you test it and it works :)

There is one known error:
*In sample mode using the transmit command WITHOUT handshake will lose the first packet. I believe WinLIRC, REC&PLAY, and everybody else all use the handshake now though.

Updates todo:

Wake PC (some PCs...)http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=3779#p41276[/quote]

nice post very informative (http://http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=4024&p=53003#p53003) . :-)[/quote]
Title: Re: IR Toy firmware v23 tests
Post by: domi on July 02, 2013, 12:24:42 am
Widget mode in V22 and V23 are both erroneous.
Would a version based on the actual V23 once become the next version?
If so are theactual V23 sources available somewhere?

Is there a short description how to compile & link a firmware version?
Is the MinGW Shell appropriate?
Title: Re: IR Toy firmware v23 tests
Post by: Qwlciguk on July 02, 2013, 08:00:53 am
[quote author="domi"]Widget mode in V22 and V23 are both erroneous.
Would a version based on the actual V23 once become the next version?
If so are theactual V23 sources available somewhere?

Is there a short description how to compile & link a firmware version?
Is the MinGW Shell appropriate?[/quote]

Based on the comments from Ian:

viewtopic.php?f=29&t=2554&start=30#p48349 (http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=2554&start=30#p48349)

It would seem that the JP1 folks (designers/maintainers of the original widget) don't really appreciate anyone messing with their stuff, open source notwithstanding.  That doesn't really encourage the people here to pursue debugging the IR Widget mode.  I modified their precious IR Scope software to automatically put the IR Toy into widget mode, but it was all for naught, as you also discovered, the IR Toy FW with widget mode, does not work correctly.  Since the JP1 folks lost their one and only supplier of the original widget design, you'd think that they'd be receptive to finding an alternative source.  To be exact, they didn't actually lose their supplier, he just had some political axe to grind and jacked up the price to nearly $40 for anyone residing in a state that voted to re-elect Obama president.
Title: Re: IR Toy firmware v23 tests
Post by: Manitu on October 26, 2013, 11:52:24 am
[quote author="fwb"][quote author="JTR"]Forget that version. It has a number of coding errors. In fact there was one each in SUMP irS and irWidget. One each was enough to break it badly. These have been sorted out and there is new firmware that is been rather extensively tested. When that hits the shelves then do upgrade to that as it really sorts out a rather interesting timing problem that has slipped through unnoticed and there are rumors of a functional Easter egg that I cannot confirm or deny.[/quote]

Can you clarify, are you saying to forget the v23 that is in the first post?  Has the new firmware hit the shelves yet, or where is it?[/quote]

what is the current state of v23? is there an improved version available or still the one from first post with the 'forget that version' note?
Title: Re: IR Toy firmware v23 tests
Post by: etatus on April 22, 2014, 09:34:34 pm
Does this firmware support commands via UART TX pin? I think it would be an interesting feature.
Title: Re: IR Toy firmware v23 tests
Post by: Barf on July 07, 2014, 10:51:33 pm
My test with IrScrutinizer (viewtopic.php?f=29&t=6649 (http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=6649)) showed that the sending is buggy, in the sense on incompatible with the documentation. Sampling mode: After the start-transmit command, the toy is suppose to respond with 62, the number of bytes expected. (http://dangerousprototypes.com/docs/USB ... pling_mode (http://dangerousprototypes.com/docs/USB_IR_Toy:_Sampling_mode)). It does not.
Title: Re: IR Toy firmware v23 tests
Post by: bam on September 13, 2015, 06:24:19 pm
[quote author="ian"]Here is a test version of firmware v23.
...................
Updates todo:

Wake PC (some PCs...) viewtopic.php?f=29&t=3779#p41276 (http://dangerousprototypes.com/forum/viewtopic.php?f=29&t=3779#p41276)[/quote]
What does it mean? Has waking PC been implemented in v23?
Title: Re: IR Toy firmware v23 tests
Post by: Floppy on October 03, 2015, 11:07:03 pm
My firmware 2.4 fixes a bad timing issue in sampling mode. See my other port. It is based on v2.2 and not on v2.3
Title: Re: IR Toy firmware v23 tests
Post by: mnobelen on February 07, 2017, 01:37:51 pm
Hi all,

I am using firmware v22 and the IR Toy is suffering from interference form it's own signal.
In my setup the light from the emitter is reflected to the receivers. This causes timing issues for transmitting.

Did anyone experience the same issue?
Title: Re: IR Toy firmware v23 tests
Post by: AnalysIR on February 07, 2017, 01:58:29 pm
@mnobelen.

I have used it quite a bit and did not see such behaviour.  How did you determine that this was the problem?


I suggest you try to reflash the V22 firmware, to see if it helps.

PS: You should really open a new thread as your issue is unrelated to this thread.
Title: Re: IR Toy firmware v23 tests
Post by: Barf on June 13, 2017, 02:58:09 pm
Are the sources for v23 available somewhere? It appears that the sources on Github are for v22, correct?