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
MVCOM: The RS232 Library
MVCOM: The RS232 Library
Marc from PARIS - MVCOM Library
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
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.- Which is the maximum serial speed possible?
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).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?
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?
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
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
You can find full info at
http://www.beyondlogic.org/serial/serial.htm
and
http://www.beyondlogic.org/serial/serial1.htm
and examples of RS232 intefacing at
http://www.beyondlogic.org/serial/serial2.htm
and
http://www.beyondlogic.org/serial/serial3.htm
http://www.beyondlogic.org/serial/serial.htm
and
http://www.beyondlogic.org/serial/serial1.htm
and examples of RS232 intefacing at
http://www.beyondlogic.org/serial/serial2.htm
and
http://www.beyondlogic.org/serial/serial3.htm