Page 1 of 1
MVCOM: The RS232 Library
Posted: Wed Nov 26, 2003 10:00 pm
by Marc
Same As SerialPort Library
A new version is available.
It's include two more functions allowed sending and receiving bytes buffers.
I hope that this will help you to realise your projects wiht PB.
Regards
Marc
Donwload the Zip file (Sample included) at :
http://perso.wanadoo.fr/marc.vitry/purebasic.htm
Posted: Thu Nov 27, 2003 7:18 pm
by Psychophanta
Nice Marc.
Thanks for advertising

Posted: Sat Nov 29, 2003 9:00 pm
by geoff
Excellent addition to PureBasic with clear help file.
I've used these 2 functions in a message based binary file transfer program running at 56k. Works perfectly.
Posted: Wed Oct 27, 2004 2:08 pm
by Klonk
Just one question (not so clear for me) :
- Which is the maximum serial speed possible?
- Is it possible to change the speed when the serial port is already opened or do I have to close the port before sending with different speed?
Thanks
Posted: Wed Oct 27, 2004 8:41 pm
by Psychophanta
- Which is the maximum serial speed possible?
It depends on your serial controller UART, but normally it is possible to reach more than 115200 bps. Even i've heard some people to reach much more.
Is it possible to change the speed when the serial port is already opened or do I have to close the port before sending with different speed?
I guess no, but i'm not sure. When two remote PCs are about to conneting via RS232 modems, the modems adjust its bauds in order to reach the higher bps as possible for communication, but the bps (which is not same as baud) managed by the rs232 port is constant. In fact it has not sense to talk about bauds for the serial port, because bauds are wave changes, and serial port is digital, it doesn't not manage waves, but "1" and "0", this is, bps (bits per second).
Posted: Thu Oct 28, 2004 1:12 pm
by Klonk
Sorry, maybe I have to be more precise.
I want to write a software that makes a firmware update to a product. It can be done at 9600bps and at 57600bps. But I have to switch to 57600bps to shorten the update time. The standard for this product is 9600bps.
What I'm asking whether it is possible to do:
opencom....
...
opencom...
...
closecom..
or do I have to
opencom...
...
closecom...
opencom...
...
closecom..
Thanks for the information about the speed I haven't found any information, I just saw the 9600bps (which really is not too much) example in the help. BTW: How to find out if a speed higher than 115200 (which all PCs are capable of) is possible?
Posted: Thu Oct 28, 2004 1:41 pm
by Psychophanta