[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1298
  • Last Modified:

Software or program to control external device on COM1 Serial port

Hi,
Can anyone sugest a good solution to my problem?
I have a Proxima 9300 series LCD Projector that is installed and a good distance from the computer that controls it. We just upgraded the computer with a new one and of course cannot find the CD that came with the projector to install the Proxima 9300 Control software. The company told me "sorry, we don't have that available any more". All they could give me is a reference sheet for all the RS232c commands (HEX and Ascii).

Does anyone know of a serial port utility that I could use to send the various commands with?
or
Does anyone know of a good place to get some intro to VB or some other programming language that I could put together a simple utility of my own?
or
Is there another way to do this I am not thinking of?

Thanks for any and all input.
0
jmolhava
Asked:
jmolhava
4 Solutions
 
wnrossCommented:
Hyperterminal will let you direct connect, and its part of Windows (Accessories/Communications/Hyperterminal), just open a connection to COM1(2,3,4)

Its a terrible program, but its already installed.  If you can see if you can find something like teleterm or procomm,

Now programming wise, the state of serial programming on windows is atrocious.

VB has terrible serial port controls, but MSComm can be used.  

Java can use JavaComm
http://www.cafeaulait.org/books/javaio/ioexamples/17/ 
contains numerous examples

C#/VB .Net has *Nothing*, you are offered to import the MSComm ActiveX library or build a new library from scratch.  Here's an excellent article doing just that.
http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/

As an alternative, simply switching oerating systems to Linux or FreeBSd makes opening a serial port as easy as opening a file:
------------- CUT HERE -------------
#!/usr/bin/perl

open(COM1, "+>> /dev/ttyS0");

print COM1 "Hello World\n";
$reply = <COM1>;
print "Recieved $reply";

close(COM1);
------------ CUT HERE ---------------

But this does not lend towards a Graphical solution

Cheers,
-Bill
0
 
dimitryCommented:
This is very convenient (with source) terminal application that you can use for COM1 investigation...
http://hp.vector.co.jp/authors/VA002416/teraterm.html
0
 
wnrossCommented:
Thanks dimitry, I forgot about that one: It does ssh support as well, very nice replacement for Hyperterminal
0
 
anwar ul haqueCommented:
in VB MSComm Control is best and easy to do these kind of things..you can find help from msdn
0
 
lojk.Net and Infrastructure ConsultantCommented:
agree with anwar... I think id write a mini VB6 App (or VS2005 also has Serial Port control if you have access to that).

I suspect youll probably end up writing less than 100 lines of code. I created in VB6 a system to detect whether various signal lines were up or down and react accordingly, 'twas dead easy and *almost* filled a saturday afternoon!

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now