
servers in the list are contacted. Then MBET-2 waits for predetermined period of time before
attempting to connect again to the first server in the list.
If the connection is accepted by the server, but then there is no communication for
predefined period of time (default 300s), MBET-2 drops the connection and goes to the next
server in the list.
If the device is set as server, it just waits for remote connections on specific local port.
When connection request arrives, MBET-2 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-2 closes the connection.
Initial parameters programming is essential and includes setting the LAN/WAN-network
parameters (IP-address, gateway IP-address, network mask, IP-address of the control
server, etc, including setting new MAC-address if MAC-conflict occurs) and remote reading
network parameters (baud rate and parity of serial connection, remote reading network
number). These parameters must be set first, and after successful connection all the
parameters can be set remotely by the server.
Direct programming of the parameters can be done with simple terminal program (like
GiCom) or by special software. When using terminal program, the parameters are set as
follows: each line starts with the keyword “SET”, then space, then parameter code, “=” sign,
value of the parameter. Like this:
SET IPV4=192.168.1.20 sets local MBET-2 IP-address to 192.168.1.20
After parameter value there should not be any additional characters (like CR, LF, etc.),
the string should be send to the MBET-2 directly. MBET-2 responds to every command with
either success or error.
The direct programmable parameters are these:
# Des. Description Default value Value 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
programmed 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 reading
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
designated IP-
address
0.0.0.0-
255.255.255.255
Can be reprogrammed
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 digits must be set (01 instead of 1)
13 NETO Remote reaging
network message
timeout, in 0.1s
20 (2.0s) 03-25 (0.3-2.5s) Two digits must be set (07 instead of 7)
14 INTO Server inactivity
timeout, in x10s
30 (300s) 01-60 (10-300s) Two digits must be set (02 instead of 2)
15 RETN Server connection
retries
03 01-16 Two digits must be set (05 instead of 5)
16 RETI Time between two
consecutive retries, in
0.5s 01-50 (0.1-5s) Two digits must be set (03 instead of 3)
0.1s
17 DUED Set due-date
(dd,hh,mm)
inactive 01,00,00-31,23,59
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-2 and connect it to the PC/laptop’s serial port with RS232 (DB9-
RJ45) data cable, which is supplied with every m-bus converter type MBRS. This
cable is NOT supplied with MBET-2.
-Set all basic network parameters
-IP-address /IPV4
-Gateway address. /GATE
-Network mask. /MASK
-If there is MAC-conflict, set new MAC-address. /MACA
-Remote reading network number. This setting is essential as this is the only
way the server can identify the network to read. /NETN
-COM port settings for remote reading network (baud rate and parity) – only if
different from defaults. /COM2
-Network message timeout – if there is no response from the network after
MBET-2 has issued command, MBET-2 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 gain remote control of the network. All
operator IP-addresses can be set remotely by control operator. /IPMA, IPCO,
IPO1-IPO4
-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-2 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-2 drops connection after expiration of this
timeout without server activity. /INTO
The parameters can be reprogrammed remotely by control operator. Allowed
mediums for all the four data operators can be programmed only remotely by control
operator. All mediums are allowed for all data operators by default.
Current settings can be checked locally by issuing 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-2’s ID-
number, network number, working 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 remaining to the next connection
attempt