BioMax2 / KBio2-Online
Installation and Programming Manual
Page
23 of 91
6.2. IP Communications
To access the IP communication services, the network parameters must be configured
correctly. Configuration can be carried out using the Bio-OCX protocol, via RS-232. In
this case, we shall deal with the parameters described in
. Alternatively, the
Kimaldi Localisation Service detailed below can be used. Once the equipment is
configured, there will be one TCP/IP Socket and two different protocols via UDP
Sockets.
6.2.1. Kimaldi Localisation Service
It is possible to detect the
BioMax2 / KBio2-Online
electronics connected to your local
area network using the Kimaldi Localisation Service:
• IP configuration: once the unit is located from its MAC Address, it is possible to
configure its IP parameters and restart the unit.
• The localisation request from the Host to the
BioMax2 / KBio2-Online
electronics
is made via port 2000.
• The frame reception in the Host from the
BioMax2 / KBio2-Online
electronics is
made using port 2001.
There is a DLL that allows this Service to be integrated into any software application.
For further information on the low-level protocol, please see the
6.2.2. Bio-OCX protocol via TCP (TCP Server)
The Bio-OCX protocol is also available via a TCP Socket, which makes it fully
compatible with the KiWi2 convertor module:
•
BioMax2 / KBio2-Online
electronics is in server mode. Therefore, frames from any
Host can be accepted (please see
SLK-Safety
) The connection
socket will be started by the Host.
BioMax2 / KBio2-Online
electronics will only
generate TCP events while this socket is enabled.
• Commands from the Host to the
BioMax2 / KBio2-Online
electronics are
transmitted through an arbitrary Host port (
Local Port
of the Host).
• The frames are received at the
BioMax2 / KBio2-Online
electronics via port 1001
(
Remote Port
from the Host).
The serial frames will consist of ASCII-Hex values according to the frame format
generated by the Bio-OCX controller (see
).
The
CFG_EventCH
parameter is not applicable in this case, as TCP events cannot be
generated spontaneously (i.e. events will not be generated until the Host has started the
socket).
In contrast, it is possible to have an open TCP against a different computer to the one
declared as the Remote Host. Great care must be taken in this case, as there could be two
Hosts acting simultaneously on the
BioMax2 / KBio2-Online
electronics.