
If the device is set as server, it just waits for remote connections on specific local port.
By default port is set 59615 (a free port). When connection request arrives, MBET-3 checks
its internal list of IP addresses for allowed operators and decides to accept or reject the
connection. If there is no communication with the remote client for predefined period of time
(default 300s), MBET-3 closes the connection. If one of IP addresses is set 0.0.0.0 - then
MBET-3 accepts connections from anywhere and does not check the incomin request IP
address.
Initial parameters pro rammin is essential and includes settin the LAN/WAN-network
parameters (IP-address, ateway IP-address, network mask, IP-address of the control
server, etc, includin settin new MAC-address if MAC-conflict occurs) and remote readin
network parameters (baud rate and parity of serial connection, remote readin network
number). These parameters must be set first, and after successful connection all the
parameters can be set remotely by the server.
Direct pro rammin of the parameters can be done with simple terminal pro ram (like
GiCom) or by special software. When usin terminal pro ram, the parameters are set as
follows: each line starts with the keyword “SET”, then space, then parameter code, “=” si n,
value of the parameter. Like this:
SET IPV4=192.168.1.20 sets local MBET-3 IP-address to 192.168.1.20
After parameter value there should not be any additional characters (like CR, LF, etc.),
the strin should be send to the MBET-3 directly. MBET-3 responds to every command with
either success or error.
The direct pro rammable parameters are these:
# Des. Description Defa lt val e Val e range Note
1 IPV4 MBET-2’s IP-address 255.255.255.255 0.0.0.0-
255.255.255.255
A “must” parameter, can be
pro rammed by control operator
2 GATE Gateway’s IP-address 255.255.255.255 0.0.0.0-
255.255.255.255
A “must” parameter
3 MASK Network Mask 255.255.255.255
0.0.0.0-
255.255.255.255
A “must” parameter
4 NETN Remote readin
network number
255.255.255.255 0.0.0.0-
255.255.255.255
A “must” parameter
5 MACA Sets new MBET-2’s
MAC-address
02.08.DC.xx.xx.xx
(xx – depends on
MBET-2 serial
number)
00:00:00:00:00:00-
FF:FF:FF:FF:FF:FF
Should be set only if there is MAC-
conflict in the network as each MBET-2
MAC is unique
6 IPMA First control operator
(manufacturer) IP-
address
Manufacturer
desi nated IP-
address
0.0.0.0-
255.255.255.255
Can be repro rammed
7 IPCO Second control
operator IP-address
255.255.255.255 0.0.0.0-
255.255.255.255
A “must” parameter
8 IPOx Data operator x IP-
address (x=1-4)
255.255.255.255 0.0.0.0-
255.255.255.255
A “must” for at least one operator
9 COM2 Serial port parameters
(baud rate, parity)
2,0
(2400bps, even)
0-6,0-2 (300bps-
38.4kbps,
even/odd/none)
10 DATE Current date
(dd,mm,yy)
01/01/10 01/01/00-31/12/99
11 TIME Current time (hh,mm) 00,00 00,00-23,59
12 PITO Time between two
consecutive connection
attempts
01 01-48 Two di its must be set (01 instead of 1)
13 NETO Remote rea in
network messa e
timeout, in 0.1s
20 (2.0s) 03-25 (0.3-2.5s) Two di its must be set (07 instead of 7)
14 INTO Server inactivity
timeout, in x10s
30 (300s) 01-60 (10-300s) Two di its must be set (02 instead of 2)
15 RETN Server connection
retries
03 01-16 Two di its must be set (05 instead of 5)
16 RETI Time between two
consecutive retries, in
0.1s
0.5s 01-50 (0.1-5s) Two di its must be set (03 instead of 3)
17 DUED Set due-date
(dd,hh,mm)
inactive 01,00,00-31,23,59
18 SERV Set Client or Server
mode
1 (server) 0/1 0 = Client, 1 = Server
19 DHCP Sets ON or OFF DHCP 0 (Off) 0/1 0 = DHCP Off, 1 = DHCP ON
The command and parameters are upper or lower case, with no preceding or trailing characters like
space, CR, LF, etc.
The steps of initial programming are the following:
- Power-up MBET-3 and connect it to the PC/laptop’s serial port
- Set all basic network parameters (if DHCP is OFF)
- IP-address /IPV4
- Gateway address. /GATE
- Network mask. /MASK
- If there is MAC-conflict, set new MAC-address. /MACA
- Remote readin network number. This settin is essential as this is the only
way the server can identify the network to read. /NETN
- COM port settin s for remote readin network (baud rate and parity) – only if
different from defaults. /COM2
- Network messa e timeout – if there is no response from the network after
MBET-3 has issued command, MBET-3 responds to the server with timeout
error. /NETO
- Set IP-addresses of control and data operators. At least one control operator
IP-address must be set in order to ain remote control of the network. All
operator IP-addresses can be set remotely by control operator. /IPMA, IPCO,
IPO1-IPO4. If yo want access from anywhere - set 0.0.0.0 (defa lt for
Control Operator and Data OP1)
- other parameters
- Current date and time set. These are lost at power interruption. /DATE, TIME
- Time between two connections, in hours (1-48, default 1h). / PITO
- Due date set. At due-date MBET-3 connects only to the data operators. Set
day, hour, minute. /DUED
- Set max. number or connection retries and the time between two retries.
/RETN, RETI
- Server inactivity timeout. MBET-3 drops connection after expiration of this
timeout without server activity. /INTO
The parameters can be repro rammed remotely by control operator. Allowed
mediums for all the four data operators can be pro rammed only remotely by control
operator. All mediums are allowed for all data operators by default.
Current settin s can be checked locally by issuin command “GET”, space,
parameter code. Parameter codes are: MAIN, SERV, CONN, MEDx (x=1-4).
- GET MAIN – returns current firmware version, current date & time, MBET-3’s ID-
number, network number, workin time after power-up or power interruption in
days
- GET SERV – returns current firmware version, all operators IP-addresses,
predefined server connection time and the time remainin to the next connection
attempt