foo_ir2 is a simple plugin to handle infrared/serial port remote controlling of foobar2000.

It was made for receivers which send received IR sequences to the serial port in given length chunks. For example, my receiver uses 4 byte chunks.
I love to listen to music in my bed, but I can’t get to sleep while the music is on, so I have to turn it off when needed. :) That’s the reason I need a remote controller to work with my music player.
I tried WinLIRC with the foobar plugin, but I couldn’t get my IR receiver to work with it. Anyway, WinLIRC is a real nightmare to use.
Check out my other foobar2000 plugin, foo_timedisplay!
Download
Current version: v0.1.2
Don’t forget to read installation notes below!
Version history:
- 0.1.2 – command delay now doesn’t affect volume change
- 0.1.1 – command delay now doesn’t affect seeking
- 0.1.0 – initial release
Installation and setup
Extract foo_ir2.dll into foobar2000’s components subdirectory, then restart foobar.
If foobar says that the plugin dll can’t be loaded, initialization error blablabla, then you have to install Microsoft Visual C++ 2008 Redistributable Package (x64 version is here).
First, you have to set your IR receiver’s communication settings. You can find the settings panel in the preferences dialog’s (CTRL+P) Tools submenu. If you’re in doubt, leave everything on the default setting (you can click on the Reset Page button to restore everything to it’s default setting).
Code length determines the length of the byte sequence received from the serial port which is associated with an actual command.
Tip: If you set (for example) Play and Pause commands to two different remote controller buttons, but the plugin always does the same action regardless of which button is pressed, you can try to set a bigger code length (or you have to use another remote controller – I’m using our old VCR’s controller, this gives me the best distance, and all of the buttons work)
Startup delay determines the delay in milliseconds to wait after the COM port has been opened (and DTR/RTS lines have been set). This is necessary if your receiver needs an init string – that would be sent out immediately after the port has been opened, and your IR receiver may not have finished powering up and initializing.
Init string is the character sequence that will be sent out after opening the COM port. My receiver needs the characters “IR” to be sent out to start to working.
Command delay is the time in milliseconds to ignore further commands after a command has been received. If this is too low, you may accidentally trigger a command repeatedly.
DTR/RTS lines are sometimes used for powering IR receivers. For example, my receiver gets it’s power from the DTR line, so it has to be pulled up after opening the COM port.
After you’ve finished with the settings, click on the button Enabled. This will open the COM port and the plugin starts receiving.
Teaching the commands
Click on one of the “Learn commands” buttons, then press a button on your remote controller. If the plugin received the command successfully, the command button goes unpressed automatically.
Don’t forget to click on Save all button to save the settings and learned commands!
You can get detailed info about the plugin’s actions in foobar’s console (View menu -> Console). Check this also when you have problems using the plugin.
Listening now
My favorite artists
Categories
- announcement (12)
- app (4)
- diy (18)
- dreamport mix (11)
- electronics (10)
- gerecse (3)
- guitar (3)
- hamradio (41)
- housemix (3)
- images (55)
- music (2)
- music purchase (8)
- music recommendation (5)
- my music (2)
- project (16)
- recording (12)
- sota (3)
- tata (6)
- timelapse (4)
- tutorial (3)
- video (66)

Hello,
Great utility:)
It would be great if the plugin could turn off/hibernate the computer as well, so you can goto sleep :)
Perhaps turned off by a custon configurable button sequence to prevent accidental turn off?
Perhaps even a switch off after an hour mode, by which time you could fall asleep..
A plug-in for a URL/IR controller would be great (since it’s the only one I have). Perhaps if you know of someone who’s written one????
Thanks…
NJ356
A plug-in for my USB/IR controller would be great. If you know of one that’s been written (right now, only the volume can be controlled, none of the player functionality), I’d appreciate a line being dropped. This would be especially helpful since Winamp 554 is absolutely worthless; quality’s been falling off all during the V5x, but 5.54 is useless.
If this is a duplicate of my previous comment, oops, but the site went all wobbly and my comment never appeared.
Thanx,
NJ356
I will not be able to use volume control in Windows Vista.
i have an integrated IR (Acer L5100 – Integrated Technology Express CIR). how to use your plugin with this IR controller?
if it’s driver provides a serial port in the system, you can try using it with foo_ir2.
Isn’t that reinvention of the wheel? I’m using a chain: Girder 3 (latest free version) -> fb2k (foo_runcmd). What’s the difference?