<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.visual-prolog.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ben+Hooijenga</id>
	<title>wiki.visual-prolog.com - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.visual-prolog.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ben+Hooijenga"/>
	<link rel="alternate" type="text/html" href="https://wiki.visual-prolog.com/index.php?title=Special:Contributions/Ben_Hooijenga"/>
	<updated>2026-06-26T17:50:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.visual-prolog.com/index.php?title=3rd:RS232&amp;diff=4697</id>
		<title>3rd:RS232</title>
		<link rel="alternate" type="text/html" href="https://wiki.visual-prolog.com/index.php?title=3rd:RS232&amp;diff=4697"/>
		<updated>2019-12-15T14:07:12Z</updated>

		<summary type="html">&lt;p&gt;Ben Hooijenga: changed link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this program you find packages for communicating via the RS232-interface of a computer. There is a native-class for the external predicates and an api-class for the glue code. These two classes are the heart of the program. &lt;br /&gt;
&lt;br /&gt;
Every port is seen as an object. So there is a serialport_class for interfacing. In that way it should be possible to use more ports at the same time. &lt;br /&gt;
&lt;br /&gt;
To make RS232-communication possible between Visual Prolog and a microcontroller was the reason for building the program. The hardware demands are very small: pin two, three and ground is all that is needed. This means also that not all external predicates are present. &lt;br /&gt;
&lt;br /&gt;
I had to use Kernel32.Lib which can be found in the Platform SDK from Microsoft. &lt;br /&gt;
Distributing this library is not possible here. You have to get to the Microsoft-site for downloading the SDK, in case you do not have it already. &lt;br /&gt;
&lt;br /&gt;
The last version of the code compiles under the commercial as well as under the personal edition of Vip75&lt;br /&gt;
&lt;br /&gt;
The first program has been developed under Windows XP sp2 but XP is no longer supported. However, the kernel32.lib I use is still the same and works under Windows 7,8 and 8.1. Very recently I tested the compiled program on a laptop with Windows 8.1 and a USB to serial converter. Furthermore on desktops with Windows 7 or Windows 8. I had no problems there so far. &lt;br /&gt;
&lt;br /&gt;
Using the packages, I wrote this test program for inspecting the RS232-communication at a very basic level. It reads out the buffer of a port at your command and you can send a byte sequence over the line. You should read the help file to discover how to do these things. &lt;br /&gt;
&lt;br /&gt;
There is no protocol; just a byte sequence. If you should decide to use the packages then you might have to develop a protocol yourself. &lt;br /&gt;
&lt;br /&gt;
Programming the RS232 port is not easy. I am afraid; you have to spit through the code to see how the predicates are used. At essential points, I made a short comment, especially in the user interface part, to make your live a little easier. I think you should start there. Then there are two examples, where you can see how events are handled. &lt;br /&gt;
&lt;br /&gt;
If you want to give the program a try before downloading a library and so on, you can download the compiled program here: https://bensprikbord.nl/RS232/RS232.html.&lt;br /&gt;
&lt;br /&gt;
If you use two computers and a &amp;#039;&amp;#039;null&amp;#039;&amp;#039; modem cable, you are in business. &lt;br /&gt;
&lt;br /&gt;
And if you have a robot, talking VIP to him is fun! &lt;br /&gt;
&lt;br /&gt;
Contributed by Ben Hooijenga&lt;br /&gt;
&lt;br /&gt;
[http://discuss.visual-prolog.com/viewtopic.php?t=7662 Download the software]&lt;/div&gt;</summary>
		<author><name>Ben Hooijenga</name></author>
	</entry>
	<entry>
		<id>https://wiki.visual-prolog.com/index.php?title=3rd:RS232&amp;diff=3972</id>
		<title>3rd:RS232</title>
		<link rel="alternate" type="text/html" href="https://wiki.visual-prolog.com/index.php?title=3rd:RS232&amp;diff=3972"/>
		<updated>2014-10-09T15:17:35Z</updated>

		<summary type="html">&lt;p&gt;Ben Hooijenga: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this program you find packages for communicating via the RS232-interface of a computer. There is a native-class for the external predicates and an api-class for the glue code. These two classes are the heart of the program. &lt;br /&gt;
&lt;br /&gt;
Every port is seen as an object. So there is a serialport_class for interfacing. In that way it should be possible to use more ports at the same time. &lt;br /&gt;
&lt;br /&gt;
To make RS232-communication possible between Visual Prolog and a microcontroller was the reason for building the program. The hardware demands are very small: pin two, three and ground is all that is needed. This means also that not all external predicates are present. &lt;br /&gt;
&lt;br /&gt;
I had to use Kernel32.Lib which can be found in the Platform SDK from Microsoft. &lt;br /&gt;
Distributing this library is not possible here. You have to get to the Microsoft-site for downloading the SDK, in case you do not have it already. &lt;br /&gt;
&lt;br /&gt;
The last version of the code compiles under the commercial as well as under the personal edition of Vip75&lt;br /&gt;
&lt;br /&gt;
The first program has been developed under Windows XP sp2 but XP is no longer supported. However, the kernel32.lib I use is still the same and works under Windows 7,8 and 8.1. Very recently I tested the compiled program on a laptop with Windows 8.1 and a USB to serial converter. Furthermore on desktops with Windows 7 or Windows 8. I had no problems there so far. &lt;br /&gt;
&lt;br /&gt;
Using the packages, I wrote this test program for inspecting the RS232-communication at a very basic level. It reads out the buffer of a port at your command and you can send a byte sequence over the line. You should read the help file to discover how to do these things. &lt;br /&gt;
&lt;br /&gt;
There is no protocol; just a byte sequence. If you should decide to use the packages then you might have to develop a protocol yourself. &lt;br /&gt;
&lt;br /&gt;
Programming the RS232 port is not easy. I am afraid; you have to spit through the code to see how the predicates are used. At essential points, I made a short comment, especially in the user interface part, to make your live a little easier. I think you should start there. Then there are two examples, where you can see how events are handled. &lt;br /&gt;
&lt;br /&gt;
If you want to give the program a try before downloading a library and so on, you can download the compiled program here: http://hooijeb.home.xs4all.nl/RS232.html.&lt;br /&gt;
&lt;br /&gt;
If you use two computers and a &amp;#039;&amp;#039;null&amp;#039;&amp;#039; modem cable, you are in business. &lt;br /&gt;
&lt;br /&gt;
And if you have a robot, talking VIP to him is fun! &lt;br /&gt;
&lt;br /&gt;
Contributed by Ben Hooijenga&lt;br /&gt;
&lt;br /&gt;
[http://discuss.visual-prolog.com/viewtopic.php?t=7662 Download the software]&lt;/div&gt;</summary>
		<author><name>Ben Hooijenga</name></author>
	</entry>
</feed>