Solved

Non standard baudrate with Mscomm32.ocx

Posted on 1998-11-13
4
446 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

862 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now