Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Non standard baudrate with Mscomm32.ocx

Posted on 1998-11-13
4
Medium Priority
?
463 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

722 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