Solved

Non standard baudrate with Mscomm32.ocx

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 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

21 Experts available now in Live!

Get 1:1 Help Now