Solved

Non standard baudrate with Mscomm32.ocx

Posted on 1998-11-13
4
452 Views
Last Modified: 2011-10-03
Is it possible to produce a nonstandard baudrate in a Vb 5 application using mscomm or any other method.

Is there someway to modify the dlab to 5 ie(23040 bps).
0
Comment
Question by:RUSH
  • 2
4 Comments
 
LVL 4

Expert Comment

by:trkcorp
ID: 1444839
In general you should just set the baud rate to maximum and let the hardware do the work.  For example if you had a 9600 bps modem and dialed a 2400 bps modem the modems would connect at 2400 and your programming doesn't care that the comm control is set at 9600.  It would just wait on the hardware.  
On the other hand, you can limt speed by setting the value lower than the max speed of the hardware. If you had a 28.8 and set it to 9600, it would connect @ 9600 even to a 56K target.
As for creating some arbitrary baud rate, forget it, the hardware will do whatever it can and you can't really do much about it beyond what has been stated.
0
 

Author Comment

by:RUSH
ID: 1444840
There must be some way to set the dlab registers under a Win95
32 bit app. Maybe a custom ocx or dll?
0
 

Accepted Solution

by:
toophar earned 100 total points
ID: 1444841
I assume you are talking about loading a custom divisor into a serial UART directly by setting the DLAB. The MSCOMM OCX would not be able to do this, as it just works with the virtual serial device provided by Windows. Operate the serial port hardware directly is only possible from within the Windows comm device driver. There are alternate versions of this available which support changing the divisor. For example, see www.wcscnet.com - this driver exposes an API with functions for setting the divisor, which you can call directly from VB.
0
 

Author Comment

by:RUSH
ID: 1444842
Thank you toophar.
I have seen the adverts for Wcsc software before but at $200
its a little expensive to buy first and try later.
I guess I was hoping for something a little cheaper(free) :)

Thanks,
 Rush
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question