rs232

Blitz3D Forums/Blitz3D Programming/rs232

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can open the com port as a file and you can specify the baudrate it opens too also as part of the filename.
I can`t remember exactly what the file name is but i think it was WriteFile("comnumber:baudratehere,8,N,1") or something similar . I have used this method in the past and it works fine for output at whatever baud rate you like upto the port maximum,,,, BUT do not try to read from a serial port in the same manner , it crashes blitz quicksharp.

The other alternative is to use a DLL which is a far neater way and allows you to read and write to the com ,, plus other goodies like setting the buffers and hanshaking ect :-) Thats the way I do it