EasyManua.ls Logo

Kimaldi BioMax2 - Bio-OCX Protocol Via UDP; KSP Protocol Via UDP; KSP Protocol Via TCP (TCP-Client)

Kimaldi BioMax2
91 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BioMax2 / KBio2-Online
Installation and Programming Manual
www.kimaldi.com Page 24 of 91
6.2.3. Bio-OCX protocol via UDP
Finally, the Bio-OCX protocol is also available via a UDP Socket:
• Commands from the Host to the BioMax2 / KBio2-Online electronics are
transmitted via the port chosen from the Host (Local Port of the Host). From a
BioMax2 / KBio2-Online electronics viewpoint, this is the Remote Host Port that
can be configured (see section 8.2, Parameter$07) and that is 0 by default
(automatic assignment).
• The frames are received at the BioMax2 / KBio2-Online electronics via port 5500
(Remote Port from the Host).
The frame format will be binary and will not have the <STX>, <ETX> delimiters.
The CFG_EventCH parameter should take the $07 value for the BioMax2 / KBio2-
Online Electronics to spontaneously transmit Online frames through this channel.
6.2.4. KSP protocol via UDP
Finally, BioMax2 / KBio2-Online electronics allows for work with the new Kimaldi
Stackable Protocol (KSP). KSP operates via another UDP Socket:
• Commands from the Host to the BioMax2 / KBio2-Online electronics are always
transmitted via Host port 6001 and using Broadcast IP frames. This means that a
special frame format will be used that will allow us to specify the node at KSP
level.
• The frames are received at the BioMax2 / KBio2-Online electronics via port 6000
(Remote Port from the Host).
• One significant advantage in relation to the Bio-OCX protocol is that the Host may
receive all Online Event frames generated from any KSP mode via just one
Socket on port 6001. These frames also carry the address of the node to have
generated them.
There is an ActiveX control to interact with the BioMax2 / KBio2-Online electronics via
KSP. Please see the corresponding manual for further details.
The CFG_EventCH parameter should take the $08 value for the BioMax2 / KBio2-
Online Electronics to spontaneously transmit Online frames through this channel.
6.2.5. KSP protocol via TCP (TCP-client)
On Subsection 6.2.2. we saw the TCP socket working in Server Mode. That means,
requests coming from any host can be accepted. The opposite option is to enable a server
application on the Host side (that is achieved throug KSP-OCX or the equivalent .NET
library) and to configure BioMax2 or KBio2-Online as clients. In order to do so, let us:
• Define the IP-RemoteHost (the same that is used for UDP sockets).
• Define the Host’s port to which BioMax2 / KBio2-Online will connect (TCP Port-
RemoteHost). Typically, that is port number 6601.
• Communication to BioMax2 o KBio2-Online is done through port number 6600.

Table of Contents