views:

58

answers:

3

If you were tasked with operating a commercial DVD player from a computer program, how would you do it?

My company sells a product that does exactly that. We have a couple of different approaches, and they both have major issues:


Get an IR Transmitter, Pretend To Be a Remote Control

Pros: Works with pretty much every commercial DVD player in existence.

Cons: The IR transmitter is another moving part that can (and too frequently does) go wrong. Only allows one-way communication; you can talk to the DVD player, but it can't talk back; you can only tell if it's on or off by seeing if it's putting out a video signal.


Get a DVD Player With an RS-232 Serial Port

Pros: Everything that's "con" with the IR transmitter approach simply goes away. The direct connection is more reliable and allows the code to understand just what the machine is doing.

Cons: Niche market; very few machines actually have an RS-232 port. So, when a manufacturer discontinues a model you've been using, you're left scrambling to find a replacement.


And I suppose for the sake of completeness, I should mention....


Just Use the DVD Drive In the PC

Cons: Boss doesn't like it.


What other approaches are available? I've seen DVD players with USB ports, but the last time I researched the subject, it seemed that was just for playing media stored on an iPhone or the like and not actually a potential control mechanism.

I'm really hoping somebody will say something like "Silly boy, don't you know about the ridiculously common FOO port that allows a home theater system to control the DVD directly? Just get a USB -> FOO converter and you're all set!" But I'm grateful for any options I haven't already considered.

+2  A: 

The DVD drive is the way to go.

But if he does not like that, I'd go ahead and get a PIC microcontroller, one with USB built in (forget which part number this is). I'd write code to control this, having the IO lines go out on lead wires that attach to the inside of the front panel buttons. You'd need less than a dozen.

If a model is obseleted, it only changes where the lead wires attach. A hole can be punched out of the back of the commercial DVD player, and one of those little rubber gaskets can seal the USB cable to it. It looks like a regular player with a USB A cable coming out of the back.

The cable itself would be rather cool, I'd buy a few if someone sold them. My "USB betamax VCR" would be hilarious.

Bonus points if you integrate it with Front Row, complete with another icon/menu entry.

John O
Manually jury-rigging a USB connection into all the players, though awesome, may be too ambitious for us. But it is indeed an option I hadn't considered, so I think you for that. And for the awesome.
BlairHippo
Well, the only solution you'll find off the shelf is a standard DVD player for a PC. There are any number of video player software packages out there, it could be polished up quite nicely. He can even have the remote control on there if he wants it.I don't understand the objection to it, really (nor you, it would seem). Unless there's something special about the application that makes this not work, I think you have a case of Stupid Boss Syndrome.
John O
Bear in mind that I don't need a solution that's 100% off the shelf. The current RS-232 model we've been using required me to get documentation from the manufacturer on the command codes and do a lot of manual bit-twiddling. As long as there's a way from me to get information into and out of the DVD player, I can work with it.
BlairHippo
+1  A: 

Many Blue-Ray players can be controlled via the HDMI port. The protocol is probably proprietary and different for each vendor...

calmh
I suspect doing anything with the HDMI port requires one to sign an onerous contract and a large check.
Hugh Brackett
@Hugh: Quite possibly. But all it takes is one manufacturer willing to part with the documentation for issuing commands via the HDMI port (the company with the RS-232-enabled unit we've been using was quite forthcoming) and I'm good to go.
BlairHippo
A: 

It depends... are you being tasked with controlling (almost) any dvd player, or do you get to decide the model? If you're trying to control whatever AV setup a customer may have, then you're basically required to go the IR transmitter route. And there will still be things you won't be able to handle (like a PS3) without additional hardware.

Most AV devices don't put out any input about their current state short of power draw and video/audio output, and the ones that do usually use proprietary rf (sony is big on this in the near future) or localized standards (like scart in europe). A handful will send/recognize command signals over coax, but that went out of style in the 90s.

patros
We get to decide the model. We appreciate anything that helps us hedge against getting hosed should the manufacturer discontinue the model we've designed to, but finding a model that does what we want it to do is the primary goal.
BlairHippo