Toy user would like to get it working in Linux, with pearl.

USB infrared remote control receiver/transmitter. Get one for $20, including worldwide shipping.

Toy user would like to get it working in Linux, with pearl.

Postby PeterT » Fri Nov 16, 2012 10:18 am

Hello,

I have recently bought a Toy and would like it to record and send remote signals to control the media in my room from my computer.

I found a perl script, which records the remote's ir signal called irtoy_record.pl amongst the software, but the problem is, it seems to be written for a windows environment. ie to talk to the Toy, it has

# init RS232
my $rs = rs232init();

so obviously there must be an equivalent for rs232init() in Linux, I would be grateful to know what it is.

Thank you

Peter
PeterT
Newbie
Newbie
 
Posts: 2
Joined: Fri Nov 16, 2012 7:37 am

Re: Toy user would like to get it working in Linux, with pea

Postby dps » Fri Nov 16, 2012 4:26 pm

Per the IR Toy documentation:
Setup
Code: Select all
ppm install Win32-SerialPort

To install Win32::SerialPort for ActiveState Perl.


Code: Select all
sudo apt-get install libdevice-serialport-perl

To install Device::SerialPort on Ubuntu(or any debian distribution).


Code: Select all
yum install perl-Device-SerialPort

To install Device::SerialPort on CentOS(or any RedHat distribution).


Code: Select all
pkg_add -r p5-Device-SerialPort

To install Device::SerialPort on FreeBSD.

That said, I don't have an IR Toy, so I could be off base here. :-)
dps
Jr. Member
Jr. Member
 
Posts: 55
Joined: Thu Jul 21, 2011 8:29 pm

Re: Toy user would like to get it working in Linux, with pea

Postby PeterT » Sat Nov 17, 2012 5:09 am

Well you have helped me get a little further. Whereas before I was getting.

[root@localhost Perl-scripts]# ./irtoy_record.pl
Can't initiate COM port!
Required Device::SerialPort or Win32::SerialPort module missing!

Now I'm getting

[root@localhost Perl-scripts]# ./irtoy_record.pl
Can't locate object method "read_interval" via package "Device::SerialPort" at USBIRToy.pm line 91.

Thanks for your help.

Regards

Peter
Attachments
irtoy_record.pl
(1.25 KiB) Downloaded 105 times
PeterT
Newbie
Newbie
 
Posts: 2
Joined: Fri Nov 16, 2012 7:37 am


Return to USB Infrared Toy