Click here to Skip to main content
15,919,340 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I need to send an on/off command to a projector connected to a local PC RS232. The control program must be web based running in the browser. I know that I can buy a commercial ActiveX component that would do the trick but they are quite expensive and I cannot use third party software (the company policy). Need to write it myself. Any step by step instructions would be greatly appreciated.
Posted

See the following link to manage serial com with c, then you can build a custom control in c#.net


RS 232 serial programming using fluke and PC.[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 4-Mar-11 17:16pm    
But why? (see my answer).
--SA
CezW 4-Mar-11 17:41pm    
Thanks for the tip, I will take a look at it.

-CW
What component?! No way!

If you prefer C#, just use this System.IO.Ports.SerialPort; see http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^].

—SA
 
Share this answer
 
Comments
CezW 4-Mar-11 17:36pm    
I have tried this a few days ago. I believe, this method would work if the projector was connected directly to the server. In my case the projector is connected to a local PC.
I think, I need to build some kind of bridge between browser and local rs232.

-CW
Sergey Alexandrovich Kryukov 4-Mar-11 18:05pm    
OK, build it, sure you need it! What's the difference? I/O is IO, client or server. In terms of serial I/O this part of the system should not use any notion of you client or server.

This is separate topic. If you already developed a server, you should have used remoting or WCF. Do you do it? If not, I would not understand what can your server do without some communication layer. If you need recommendation of such communication, ask follow-up question. I just don't know what advice you may need...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900