Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Virtual Serial Port software?

Thread Tools
 
Search this Thread
 
Old 10 July 2003, 08:24 PM
  #1  
MarkO
Scooby Regular
Thread Starter
 
MarkO's Avatar
 
Join Date: Oct 1998
Location: London
Posts: 4,891
Likes: 0
Received 0 Likes on 0 Posts
Question

Hi all...

I'm working on some software which communicates with a plasma screen via the serial COM port. However, my development machine is a laptop which doesn't actually have a serial port, and I don't have a plasma screen on-site with which to test. This is, to say the least, making the development process more complicated.

Anyway, the plasma screen issue isn't particularly important, as long as I open a connection to a COM port (which doesn't necessarily have to be connected to anything) and send data.

So, I need some software which can emulate a Serial port on my PC. So far I've found this:

http://www.virtualperipherals.com/vsp.htm

which is superb, and does exactly what I need. I can create a COM2 serial port, and send it data as if it's a real port.

However, it's only a 2-hour demo, unless you've got a serial number - which I don't have, and can't afford.

So, can anyone help me out - obviously by recommending an alternative bit of virual serial port software which is freeware (or even shareware)?
Old 10 July 2003, 09:32 PM
  #2  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

MarkO,

When you say you don't have a serial port, I'm assuming it is a newer laptop with USB only ports ?

If so, maybe try a USB - 2- Serial cable. Now, I'm not sure if they install as a "pretend" COM port or not though but might be worth a try.

There was a lot of discussion about these cables a while back. Maybe someone who has one could help out ?

There again, I'm not sure of the cost, so maybe a software only solution might be cheaper.

Cheers

Ian
Old 10 July 2003, 10:24 PM
  #3  
MarkO
Scooby Regular
Thread Starter
 
MarkO's Avatar
 
Join Date: Oct 1998
Location: London
Posts: 4,891
Likes: 0
Received 0 Likes on 0 Posts
Cool

Thanks Ian, good suggestion. But since I don't actually have a plasma screen to plug into the serial port, buying a USB->Serial cable wouldn't help much, other than providing a COM port to test with.

However, USB/Serial cables are pretty expensive, and I really want a free solution (the work I'm doing is unpaid as yet).

The virtual serial port software I mentioned above seems to do the trick though, and I can actually use it quite a bit; the virtual port works for 2 hours, after which you need to reboot the PC to re-enable it. The evaluation period is a total of 30 days. So all-in-all I should get a month of testing before it's completely disabled, which should be plenty.
Old 10 July 2003, 11:57 PM
  #4  
midget1500
Scooby Regular
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
Post

i'd love to know how these USB->serial cables work, i.e. if u write software that actually deals with the com port (serial) at a hardware level then how the heck will these cables help? i take it there is some software emulation etc, but just can't figure it out in my head!
Old 11 July 2003, 09:39 AM
  #5  
MarkO
Scooby Regular
Thread Starter
 
MarkO's Avatar
 
Join Date: Oct 1998
Location: London
Posts: 4,891
Likes: 0
Received 0 Likes on 0 Posts
Lightbulb

Midget, the software doesn't actually see the serial port itself, it merely sees an interface to that port, through the driver. The driver is a 'black box' which takes data sent to/from it (by the software) and converts this into actual signals on the hardware pins themselves. So when your software writes data to the COM port, what it's actually doing is sending data into the driver interface. What actually happens inside the driver is irrelevant to the software using the 'port'.

This is how the HAL (hardware abstraction layer) on most modern OSes works. Devices have drivers which present a common, pre-defined interface to th software which will use them, so that the actual implementation of a device is irrelevant to the software using it.

So all a device has to do is to present itself (via the driver) as a COM port, and that's what the software will see, whether it's a 'real' serial port, or something else. Similarly, there's no reason why a serial port couldn't have a driver implemented which makes that port present itself to the system as, say, a screen or disk drive. It's all about how the software interprets the interface to the driver.

The best example is the one I'm using, above - a virtual serial port. My laptop doesn't actually have a physical serial port at all, but by installing a virtual serial port driver, a new port becomes available to the system. The fact that the port is only 'one-sided' is irrelevant - I can still send/receive data on that port as if it was a normal serial port, the only difference being that the data doesn't actually go down any physical metal pins, it just gets processed by some code within the driver.

Hope that makes things clearer... (probably not ).
Old 11 July 2003, 01:25 PM
  #6  
midget1500
Scooby Regular
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
Post

mark - yeah, i get that

but, i don't get how a cable can be plugged into a usb and link to a serial device - i.e. the computer will be driving a USB port and the device on the other end a serial port.
Old 11 July 2003, 01:39 PM
  #7  
MarkO
Scooby Regular
Thread Starter
 
MarkO's Avatar
 
Join Date: Oct 1998
Location: London
Posts: 4,891
Likes: 0
Received 0 Likes on 0 Posts
Cool

Ah, well, that's simple. A little bit of circuitry in the USB/Serial cable does some signal processing to convert the pin inputs from the Serial end of the cable into a signal in the USB end. It's not just a 'straight-through' cable, hence the reason they cost upwards of thirty quid, instead of the usual fiver that would get you a null-modem cable.

The device driver for the USB Serial port then does some translation to make it appear like a Serial/COM device to the software.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Virtual Serial Port software?



All times are GMT +1. The time now is 09:13 PM.