Allow an infrared device to send a signal to control the monitor of a PC

吃可爱长大的小学妹 提交于 2019-11-30 04:15:14

问题


I have a monitor which can be used also as television (it has a DVI-D connector AND a cable connector.) And for a while I have an infrared device on my computer which I use to synchronize my PDA and mobile phone.

I want the infrared/irDA device of my PC to send a signal to my monitor to switch between TV and PC mode. (Or to control the monitor in some other way, like turning it on and off during logon/logoff.) To do this I need to:

  1. Use the PC device to record the commands from my monitor remote.
  2. Repeat that signal from my PC to my monitor to send the command.

With nearly 30 years of programming experience, the code is no problem. But since my only knowledge of infrared devices is extremely limited, I need some useful hints and tips about this.

A Google search will provide plenty of links that are useful. But I could use help to find the most useful ones.


回答1:


This looks like the most promising link:

http://msdn.microsoft.com/en-us/library/system.net.sockets.irdaclient.aspx

I think the IrDAClient class can do everything you need to do.




回答2:


In short IrDA is not the same as 'Consumer IR' see e.g. http://www.alanjmcf.me.uk/comms/infrared/IrDA%20faq.html#_Toc128227634 "Consumer-IR versus IrDA" and http://www.alanjmcf.me.uk/comms/infrared/IrDA%20uses%20%28brief%29.html#_Toc71546556 "Non-IrDA infrared"

That's the negative, for some more positive info see for instance How to programmatically use the mobile phone's IrDA to remote control a media player?



来源:https://stackoverflow.com/questions/1383364/allow-an-infrared-device-to-send-a-signal-to-control-the-monitor-of-a-pc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!