MVCOM: The RS232 Library

Share your advanced PureBasic knowledge/code with the community.
Marc
User
User
Posts: 28
Joined: Mon Jun 16, 2003 9:02 pm
Location: Paris - Villemer
Contact:

MVCOM: The RS232 Library

Post 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
Marc from PARIS - MVCOM Library
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Nice Marc.
Thanks for advertising :)
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post 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.
Klonk
Enthusiast
Enthusiast
Posts: 173
Joined: Tue Jul 13, 2004 2:17 pm

Post 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
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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).
Klonk
Enthusiast
Enthusiast
Posts: 173
Joined: Tue Jul 13, 2004 2:17 pm

Post 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?
Bye Karl
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Post Reply