Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - mba

1
USB Infrared Toy / Re: IRToy stops working after pc resumes from standby
net stop usbser gives me
"The requested pause, continue, or stop is not valid for this service."
And I don't think its a problem in windows.

I have experimented a bit and my current conclusion is that the problem only occurs when windows is in standby and IR Toy receives a infrared signal. If it does not receive anything during standby it works afterwards and I can succesfully send ir commands from winlirc.

Maybe my solution is to solder the receiver part off while I am only going to use the transmitter
2
USB Infrared Toy / Re: IRToy stops working after pc resumes from standby
Thanks for the quick replies.

@asdf that was also my initial idea. I tried "devcon restart" on it, the device was removed and the driver was reinitialized but after a short while the driver failed with an exclamation mark. This makes me guess that its an erroneous state on the USB stack on the device and not a bad state in windows.

@ian: the microchip usb stack was replaced for a reason? Maybe either JTR or Honken could comment on whether the stack is robust against host going into standby? And maybe they had an idea of how to solve this issue?
4
USB Infrared Toy / Re: IRToy stops working after pc resumes from standby
Hi,

I am having similar problems using the latest firmware v22 and windows xp. Same symptoms winlirc cannot initialize the device after resume from standby and I am unable to open a terminal connection with putty to the device. It need to be unplugged / plugged before working again.

Best regards
Martin
6
USB Infrared Toy / Re: Firmware v22
hi Ian,

and thanks for the update, its working perfectly, no more problems sending 48 bytes commands through winlirc

best regards
Martin
8
USB Infrared Toy / Re: Second transmit fails when package is 48 bytes
I can see that you have been quite busy since my last post, thanks a lot for looking into the issue!

I have tested the work-around adding additional codes to the end, using "2" works but sending takes a long time (seems like it waits for timeout or something) using "50" also works and has no impact on the duration. Thanks for the hint, this is useful enough for me to get on with my android client.
9
USB Infrared Toy / Re: Second transmit fails when package is 48 bytes
Hi Ian,

I am sorry to bump this thread, but I am at a standstill with my project as long as this issue remains. I haven't been able to dig any deeper into the root cause of the problem. Have you tried the configuration I posted? Do you have any other hints or ideas of what I could try to solve or identify the issue?

Best regards
Martin
10
USB Infrared Toy / Re: Second transmit fails when package is 48 bytes
Hi Ian, and thanks  for looking into this.


Sending certain recorded buttons on windows XP causes winlirc/dll to freeze. I can see that the signal is transmitted (receiver receives the volume command) but then it dies. I have to kill winlirc and reconnect irtoy. Other recorded buttons works without any problems. This problem seems only to happen on XP as I have not experienced it on my windows 7 box with exactly the same winlirc/dll files.

Heres a small excerpt from the configuration file (PowerOn works, Vol+ doesn't):
begin remote

  name  RC004SR
  flags RAW_CODES|CONST_LENGTH
  eps            30
  aeps          100

  gap          113364
    begin raw_codes
          name Vol+
              810    938    810    938    831    917
            1706    938    810    938    853    895
              810    938    853    1791    1706    917
              810    938    853    895    831

          name PowerOn
              810    938    1727    1813    1706    917
              831    938    853    895    810    4479
              810    938    853    1791    810    938
            1706    917    810    938    853    895
              831    938    853    895    831    938
              853    1791    853
      end raw_codes

end remote
11
USB Infrared Toy / Re: Second transmit fails when package is 48 bytes
I have tried all sorts of things now, some more vodoo than engineering - hope my colleages don't read this ;-)

Eventually I googled the usbser.sys as I am beginning to suspect issues on XP not present on W7 being the culprit here. I found this guy who had a problem with the USB CDC driver on XP where ReadFile would sometimes return 0 bytes only after a timeout, and a subsequent ReadFile would return the actual data. If you have the time dukey maybe you could cast a glance at what hes writing:
http://www.lvr.com/forum/index.php?topic=315.0
12
USB Infrared Toy / Re: Second transmit fails when package is 48 bytes
ok, thats sounds like firmware as you say, and it is weird that I am only seeing this on XP.

I will try some of the other firmware versions. Is the "IR Toy Package v21" from the homepage the latest version or is it a RC?

Has any of the IR toy developers any hints?
13
USB Infrared Toy / Second transmit fails when package is 48 bytes
Hi,

I am experiencing a problem when sending raw codes in winlirc on a Windows XP machine (tested on two different XP machine)(this apparently does not happen on W7).

Sending a raw code the first time works and I receive transmit complete 'C'. The second time the program 'hangs'. Seems like ir toy does not respond anymore. I have narrowed it down to raw codes with 23 entries causing winlirc to send 48 bytes to ir toy. I don't know if this has any relation to the 8 byte issue reported earlier?

I would be grateful for any hints on how to debug the issue further, or if anybody has an idea of what is going on here.

I don't know if its related to the issue reported by lupin in viewtopic.php?f=29&t=2974 as he's transmitting codes in RC5 format. Maybe its the same?

Best regards
Martin
15
USB Infrared Toy / Re: Transmit code of a recorded remote (resolved)
I have discovered it is only when the raw code contains 23 entries. This leads to a package length of 48. It seems that the first transmission is alright and I receive transmitComplete 'C'. The next time I try sending it freezes in the send function.

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