RS232 Projector Control using Visual Basic
I have installed Hitachi projectors in several of our classrooms recently. The models we purchased do not have on board network ports, so I installed a Lantronix device server at each projector (the Lantronix device server converts the RS232 connection to an IP address connection).
I have been using Hitachi's projector control software on the classroom pcs for the teacher to control the projector (no lost remotes). While the software does work, there are several aspects of the application that are not ideal for us, so I've started looking at the possibility of writing a simple Visual Basic program to control the projectors, rather than using Hitachi's application.
I have downloaded Visual Basic Express 2008 and have done some research on Google looking for tips on connecting to an RS232 port through a Lantronix device server (which uses an IP address), but have had little success in finding useful information. It looks like the RS232 codes are hexadecimal values and that I would need to use Winsock in Visual Basic to send the hexadecimal string to the Lantronix IP address. I have not come up with any ways to make this work yet, however.
Does anyone have any tips? I am new to Visual Basic (I usually do website programming), so I would appreciate any possible help on this project.
My future goal, once I get this application working, is to then expand it to have a central console showing the status of all projectors. Once I get the first application working, the console should be fairly simple to create.
Re: hitachi controls over the LAN
a few quick pointers,
Originally Posted by claridentech
- WINSOCK is kind of outdated, i found this out when trying to get a VB6 project upto spec (VB 2008) and was curtly in formed multiple times by the MSDN people that winsock is out dated, supposedly it is possible to use it but nowadays its better to use the System.Net.Sockets class (which if you ask me is quite alike to that of winsock)
- Depending opon the card you bought it might be required to encrypt the data in a certain way before sending it, so that might be tricky
- VB is pretty good for this kind of thing, with the functionlity of it and what not, you made the right choice
- The MSDN guys are much more likely to have a really good answer to your problems, they're pretty into it
oh and one question, TCP or UDP? this one you will have to answer before continuing