投影仪控制 - RS232 / USB?

发布于 2024-11-25 16:27:00 字数 336 浏览 1 评论 0原文

我注意到许多投影仪都有 RS232 或 USB 端口,可用于控制投影仪的功能,即切换输入以及打开和关闭电源。有谁知道是否有 API 可以通过编程方式控制这些功能?

我正在使用 Java,但尤其是 RS232,我猜这是无关紧要的,因为协议将处于较低的级别。如果没有“标准”(我猜不会有),建议是什么?目前,我正在考虑为我想要的功能定义一个投影仪控制接口,然后允许人们编写用于从外部控制投影仪的类并将它们放在适当的位置(也许使用新的 watchservice API 通过动态反射来拾取它们) .)是否存在我没​​有看到的任何缺陷?

本质上,我正在寻找一个文档(如果存在),该文档描述了在各种不同的投影仪上执行基本功能的串行协议。

I've noticed a number of projectors have RS232 or USB ports that can be used for controlling the projector's functions, i.e. switching inputs and powering on and off. Does anyone know if there's an API around for controlling these functions programmatically?

I'm using Java but especially with RS232 I'm guessing that's irrelevant as the protocol will be on a much lower level. If there's not a "standard" around (which I'm guessing there won't be) what would be the suggestion? At the moment I'm thinking of defining a projector control interface for the functions I want, then allowing people to write classes for controlling their projector externally and drop those in place (perhaps picking them up by reflection on the fly using the new watchservice API.) Would there be any flaws in place with this that I'm not seeing?

Essentially, I'm looking for a document (if it exists) that describes the serial protocols for performing basic functions on a variety of different projectors.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听风念你 2024-12-02 16:27:00

AVForums 上非常有用的回复:

几乎所有设备都是简单的 telnet rs232 文本字符串。不是所有的ascii,但大部分都是。
您将读取计算出的奇偶校验和校验和字节。但实际上您只需要发送一个字符串,投影仪就会按照它的指示执行操作。
有些通过发送十六进制字节更容易通信,特别是如果它们使用奇数非 ascii 字符,但大多数都是简单的 ascii 后跟换行符。
事情是,如果你使用十六进制,你可以支持所有代码,包括 ascii,如果你要使用开放平台,就从这里开始。

许多型号都有不同的输入等,但大多数情况下,所有制造商的投影仪都会使用相同的 rs232 字符串来打开、关闭、输入 1-7 或 hdmi 1-2-3 等...

如果可以的话,保持简单,只需控制电源状态和输入选择,您就有机会获得 80% 的普通投影仪,而无需太多工作。

哦,还有 9600,几乎所有东西都是 8n1。

更多细节:

正如所承诺的...
这是奥图码的一些开关..
on 是以下 ascii 文本,后跟一个回车符(如果您不知道......没有“ENTER”键的代码......它由回车符和换行符的旧打字机功能表示。这些由十六进制表示CR 值为 0d,LF 值为 0a)十六进制

字母“I”是:49,“R”是:52

开启

*0IR001 或下一行的十六进制形式..

2a 30 49 52 30 30 31 0d

关闭为 *0IR002 或 2a 30 49 52 30 30 32 0d

设置为输入HDMI1 *0IR017\r

2a 30 49 52 30 31 37 0d

Panasonic AX200.. 不同,因为它具有文本含义,但仅使用十六进制字符来启动命令“02”,使用十六进制“03”来结束命令。命令中不使用“,只是为了显示其其中的 ascii 文本

开启

:02“PON”:03

02 50 4f 4e 03

关闭

:02“POF”:03

02 50 4f 46 03

HDMI1设置输入

:02“IIS:HD1”:03

02 49 49 53 3a 48 44 31 03

索尼很奇怪,根本没有真正的ascii..只有一个句号和一个问号..这只是十六进制..

开机

a9 17 2e 00 00 00 3f 9a

关闭电源

a9 17 2f 00 00 00 3f 9a

HDMI1

A9 00 01 00 00 04 05 9A

Incredibly useful reply over on AVForums:

almost all gear is simple telnet rs232 of text strings. not all ascii but most is.
you will read of calculated parity and checksum bytes.. but in reality you just need to send a string and the projector will do what its told.
Some are easier to communicate by sending hex bytes, esp if they use odd non ascii characters, but most are simple ascii followed by a linefeed..
thing is, if you use hex, you can support every code, including ascii, if you are going open platform, start there.

lots of models have different iputs etc, but most the time all of a manufacturers proectors will use the same rs232 strings for on, off, input1-7 or hdmi 1-2-3 etc...

keep it simple if you can, just controlling the power state and input selection, and you stand a chance of getting 80% of common projectors without too much work.

ohh, and 9600, 8n1 for almost everything.

More specifics:

as promised...
this is some on offs for optoma..
on is the following ascii text followed by a carriage return (incase you dont know.. there is no code for 'ENTER' key.. its represented by the old typewriter functions of a carriage return and a line feed. these are represented by hex values 0d for CR, and 0a for LF) hex

for letter 'I' is :49 and 'R' is :52

On

*0IR001 or in hex on next line..

2a 30 49 52 30 30 31 0d

Off is *0IR002 or 2a 30 49 52 30 30 32 0d

set to input HDMI1 *0IR017\r

2a 30 49 52 30 31 37 0d

Panasonic AX200.. different because it has text meaning, but with a hex only character to start a command '02' and hex '03' to end one.. the " are not used in the command, just to show its ascii text there inside them

ON

:02 "PON" :03

02 50 4f 4e 03

OFF

:02 "POF" :03

02 50 4f 46 03

HDMI1 set input

:02 "IIS:HD1" :03

02 49 49 53 3a 48 44 31 03

Sony is weird, no real ascii in there at all.. just a full stop and a question mark.. this is hex only..

Power On

a9 17 2e 00 00 00 3f 9a

Power Off

a9 17 2f 00 00 00 3f 9a

HDMI1

A9 00 01 00 00 04 05 9A

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文