YO Modbus
User guide
v2.1
page 18/33
POLL AND QUERY PARAMETERS
NAME
DESCRIPTION
POSSIBLE
VALUES
DEFAULT
VALUE
READ/
WRITE
name
Name of query, up to 10
characters
“0-9, A-Z, a-z,_
. ,” e.g.
aB.cD-01
—
R/W
slaveaddr
Number of slave addresses to
communicate with
0–255
1
R/W
funccode
Supported Modbus function
codes
1, 2, 3, 4
3
R/W
startreg
Start register to read data
from
2B (HEX), e.g.
1000
—
R/W
regnbr
Number of words (2 bytes) to
read from registers, begins
from ’startreg’
1–8
1
R/W
cnt
LoRa packet collection index
number. Each packet can
contain 5 queries.
1–30
—
R/W
out
Name of the query to be
transmitted in a LoRa packet.
“0–9 A–Z a–z
. ,”e.g.
aB.cD-01
—
R/W
Parameters description
-
nwktype:
network type, for setting the device operation to public or private.
-
acttype:
activation type for setting the device in ABP or OTAA mode.
-
deveui, … , appskey:
predefined addresses and keys, these parameters are generated using
multiple IDs specific to the particular MCU and are unique for each device. They can be
changed if needed.
-
interval:
the interval between broadcast packets, used to connect to every BLE receiver
around the device.
-
subband:
the communication frequency sub-band.
-
measinterval:
measurement interval [s] between sending LoRa packets.
-
teminationresistor
: whether a resistor is applied to the end line to prevent signal reflections
for correct signal transmission. Value “
TRUE
” means that the resistor is installed.