Skip to main content

Show Posts

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

Messages - lank23

1
USB Infrared Toy / Re: Trying to make the IR Toy 2 work on Linux
I have not tried making ver 2 work in Linux, due ver 1 is still working fine.

I would have to say that you need to double and triple check all your config for LIRC.

The output from my machine when I press "Ok" button using GtkTerm monitoring /dev/ttyUSB0 is gibberish. and it is configured just as the how-to states running Mythbuntu 10.04

I think that I am getting the same stuff, this is why I feel you have a LIRC config issue.

I am now thinking to build me a version 2 unit....:)
3
USB Infrared Toy / Re: IR Toy and lirc on Linux
anbello;

That fault means that no input or bad input was received.  Which trying to use /dev/ttyACM0 will not work due I have tried it also, but this is what will make it work :)

I have Ian's first version working http://hackaday.com/2008/10/30/how-to-usb-remote-control-receiver/ with Mythbuntu 10.04 right now and these are the steps that I did to get it working so other distro's would be similar.

1: Stop the current driver
Code: [Select]
sudo modprobe -r cdc_acm

2: Stop the default driver from loading on plug in / boot up.
Code: [Select]
gksu gedit /etc/modprobe.d/blacklist.conf
and add this line to the bottom of the file.
Code: [Select]
blacklist cdc_acm
Save and close the file.

3:Find out the name of you unit by running
Code: [Select]
lsusb

This is my output
Code: [Select]
lank23@MythServer:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 04d8:000a Microchip Technology, Inc.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So from that I see that "04d8:000a Microchip Technology, Inc." is my device I need.

4: Next edit the "/etc/modules" using the number we got from step 3.
Code: [Select]
gksu gedit /etc/modules
at the bottom of the file add this line
Code: [Select]
usbserial vendor=0x04d8 product=0x000a

NOTE:
Match your numbers as needed so that the "usbserial"driver will load for your device.

save and close file.


5: Next edit  lirc configuration files to use this new device

Code: [Select]
 gksu gedit /etc/lirc/hardware.conf

Edit the file to match below

Code: [Select]
REMOTE=”Custom”
REMOTE_MODULES=”"
REMOTE_DRIVER=”irman”
REMOTE_DEVICE=”"
REMOTE_LIRCD_CONF=”/etc/lirc/lircd.conf”
REMOTE_LIRCD_ARGS=”–device=/dev/ttyUSB0″

START_LIRCD=”true”

LOAD_MODULES=”true”

6:  Unplug the device, wait a little bit "2 seconds" then plug it back in.

7: Stop LIRC so we can edit configuration files for the remote.
Code: [Select]
sudo service lirc stop


8: Record your remote.conf file Open a terminal and run
Code: [Select]
irrecord -H irman -d /dev/ttyUSB0 RemoteXXX.conf
change the "RemoteXXX" to something you like.
finish all the buttons you want.

9: Copy that file to the /etc/lirc/lircd.conf location
Code: [Select]
sudo cp RemoteXXX.conf /etc/lirc/lircd.conf

10: Now start LIRC
Code: [Select]
sudo service lirc start

11: Open terminal and run
Code: [Select]
irw
and see it you get output..., if so you have got it working.  Next is to map the buttons to you programs.

Good Luck
lank23

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