Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: mythman on April 28, 2016, 04:46:04 pm

Title: Ugg. Help. Problems with IRtoy + RPi 3
Post by: mythman on April 28, 2016, 04:46:04 pm
Hey guys,

So I eventually got IRtoy working will with my laptop after I compiled lirc 0.9.3 and used that to read the control. So I thought I was take a DVD control and just map it and see how it came out. Well on my laptop worked as I expected so I thought great I will copy the resulting config to a RPI 3 I have running OSMC. I also compiled lirc 0.9.3 on the Pi just to make sure everything was in sync. However the file did not work, hmm.. odd but should not be an issue to recreate one on the pi. Alas something is breaking that.

It goes though all the motions:
Quote
irrecord  -H irtoy  -d /dev/ttyACM0
Warning: Running as root.

irrecord -  application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(https://sf.net/p/lirc-remotes/wiki (https://sf.net/p/lirc-remotes/wiki)

If there already is a remote control of the same brand available at
http://sf.net/p/lirc-remotes (http://sf.net/p/lirc-remotes) you might want to try using such a
remote as a template. The config files already contains all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available. Templates can be downloaded using irdb-get(1). You use a
template file by providing the path of the file as a command line
parameter.

Please take the time to finish the file as described in
https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ (https://sourceforge.net/p/lirc-remotes/wiki/Checklist/) an send it
to  <lirc@bartelmus.de> so it can be made available to others.
Press RETURN to continue.

Checking for ambient light  creating too much disturbances.
Please don't press any buttons, just wait a few seconds...

No significant noise (received 0 bytes)

Enter name of remote (only ascii, no spaces) :tst1
Using tst1.lircd.conf as output filename

Now start pressing buttons on your remote control.

It is very important that you press many different buttons and hold them
down for approximately one second. Each button should generate at least one
dot but in no case more than ten dots of output.
Don't stop pressing buttons until two lines of dots (2x80) have been
generated.

Press RETURN now to start recording.
................................................................................
Got gap (1000000 us)}

Please keep on pressing buttons like described above.
...............Signal too long
Creating config file in raw mode.
Signals are pulse encoded.
Signal length is 0
Unknown encoding



But that is bogus because the conf file I made on my laptop with the same IRtoy is

Quote
begin remote

  name  UNKNOWN_DVD
  bits          21
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header      2582  925
  one          385  475
  zero          385  475
  gap          106184
  toggle_bit_mask 0x10000
  rc6_mask    0x10000


What is going on here? Is it something to do with the Pi's USB bus or something? Is there any way to debug if the IRtoy is misbehaving. I tried using it in irman mode and it just fails to see anything even thought the led flashes.

Quote
irrecord -H irman -d /dev/ttyACM0
Warning: Running as root.

irrecord -  application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(https://sf.net/p/lirc-remotes/wiki (https://sf.net/p/lirc-remotes/wiki)

If there already is a remote control of the same brand available at
http://sf.net/p/lirc-remotes (http://sf.net/p/lirc-remotes) you might want to try using such a
remote as a template. The config files already contains all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available. Templates can be downloaded using irdb-get(1). You use a
template file by providing the path of the file as a command line
parameter.

Please take the time to finish the file as described in
https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ (https://sourceforge.net/p/lirc-remotes/wiki/Checklist/) an send it
to  <lirc@bartelmus.de> so it can be made available to others.
Press RETURN to continue.

Checking for ambient light  creating too much disturbances.
Please don't press any buttons, just wait a few seconds...

No significant noise (received 0 bytes)

Enter name of remote (only ascii, no spaces) :UNKNOWN-DVD1
Using UNKNOWN-DVD1.lircd.conf as output filename

Hold down an arbitrary key
Timeout (10 sec), giving  up.




Any suggestions?


Thanks.

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