Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Non standard baudrate with Mscomm32.ocx

Posted on 1998-11-13
4
Medium Priority
?
468 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 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
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…
Suggested Courses

877 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