I would to write a parser or a library for Purebasic. Golfy: Do you think I could easely use Velleman.Velbus.dll with these functions? The easiest thing to do would maybe be to write you own library in Purebasic that communicates via the serial port?[/quote] Thanks for explanations but what to do if I’ve USB module (like on demobox)? The last possibility is the server access via VelbusLink (localhost, port 3788) but by default (after a windows start/restart) Velbuslink isn’t connected and not in server mode I really want to program my installation (complex informations like holidays, night hours, seasons, etc should be treated by a PC) but.NET is a big limitation for me (maybe I’ve to go back to school for programmation lesson?

Purebasic Serial Port Example

[quote=“VEL448”]Well I have good news, it’s exactly the same for the VMB1USB. The driver supplied with the module creates a virtual serial port, which is identical to a normal serial port in terms of I/O.

Purebasic serial port example R cemment, je me suis mis au Purebasic, gr ce Ombre. Ainsi, jai pu OpenConsole() ConsoleTitle ( PureBasic - Console Example )Popularity Tags industrial, device server, serial ports, ethernet File Transfer,gsm gprs Modem Usb,net Class Library,replace Mscomm,9-bit.

Gillock romanticheskie pjesi noti. So you can just go ahead and open that port in any programming language. In device manager you can see which extra port has been created when you plug in the VMB1USB (‘COM5’ for example).[/quote] You’re right!!! And after some ( a lot of) tries: 0F F8 01 04 00 02 00 00 F2 04 0F FB 01 02 F6 40 BD 04 0F FB 01 02 F6 02 FB 04 0F FB 02 08 FB 02 00 02 80 00 00 00 6D 04 00 0F F8 02 04 00 02 00 00 F1 04 0F 0F F8 01 04 00 00 02 00 F2 04 0F 0F F8 01 04 00 01 00 00 F3 04 0F FB 01 02 F5 01 FD 04 0F FB 01 02 F5 01 FD 04 0F FB 02 08 FB 01 00 00 00 00 00 00 F0 04 0F FB 01 02 F6 40 BD 04 0F F8 02 04 00 00 01 00 F2 04 00 0F F8 01 04 00 00 00 01 F3 04 0F 0F F8 01 04 00 00 01 00 F3 04 0F My current code is very bad (cause debug and lot of check) but I think it become possible to create a Velbus parser 8) THANKS!!!

WriteSerialPortString WriteSerialPortString() Syntax Result = WriteSerialPortString(#SerialPort, String$ [, Format]) Description Writes a string to the specified serial port. Parameters #SerialPort The serial port to use. String$ The string to write. Format (optional) The string format to use.

It can be one of the following value: #PB_Ascii: the string will be written in ascii format (default, even in mode). #PB_UTF8: the string will be written in UTF8 format. #PB_Unicode: the string will be written in unicode (UTF16) format.

Return value The number of bytes written to the serial port, or zero if the operation has failed. Remarks To check how much data is available in the output buffer, use. See Also, Supported OS All.