Gateway TLG8411V1 User Manual V1.0.0
23
July 2020
Figure 4-1 is LoRaScript console; the
Core Status
panel indicates plugin process id in
Proc
,
process status (running or stopped) in
Stat
, and memory usage in
Vmem
. The number of
packets received in the plugin shown in
Packet Info
panel.
Plugin File
is the current plugin
which loads by plugin manager.
Plugin Editor
is an online scripting editor; there are two functions must provide to ensure
plugin manager load script properly; the
onInit()
would be called in plugin initialization and
the
onLoRaRx(data)
is used when every received an incoming packet. The first parameter
data is a JSON object that complies with rxpk component in the specification [3].
Plugin Log
panel is used to display plugin log (via method
debug_print()
). To send packets in the
plugin, invoking
send_pkt(data)
, the data also must conform with txpk component in the
specification [3]. Table 4-1 describes the plugin callbacks and methods for the user, Table 4-2
and Table 4-3 illustrate ANNWS.01.2.1.W.SYS rxpk and txpk components respectively.
Table 4-1 LoRaScript Callbacks and Methods
Name
Type
Usage
onInit()
Callback
Plugin initialization method, plugin can setup its
initial procedure in this callback.
onLoRaRx(dat)
Callback
It would be invoked on received an incoming
packet.
The data is a JSON object which complies with
[3].
send_pkt(data)
Method
It used for send outgoing packet, the data must be
a JSON object and complies with [3].
debug_print(mes-
sage)
Method
For display message in
Plugin Log
panel.
Table 4-2 rxpk JSON Components in ANNWS.01.2.1.W.SYS
Field
Type
Comment
time
(string, not required)
TC time of receipt of the LoRa frame. The precision is
one microsecond. The format is ISO 8601 'compact'
format. The object is present only when the receiving
gateway has a source of accurate time.
tmst
(unsigned integer,
required)
The value of the gateway internal time counter at the
instant the LoRa frame was received, with microsec-
ond granularity. The value will rollover approximately
every 72 minutes. The timestamp values generated by
different gateways are unrelated.
Содержание TLG8411V1
Страница 1: ...Gateway TLG8411V1 User Manual V1 0 0 July 2020 ...
Страница 36: ...Gateway TLG8411V1 User Manual V1 0 0 35 July 2020 Figure 4 2 Execution of Parsing LoRaWAN Packet in LoRaScript ...
Страница 52: ...Gateway TLG8411V1 User Manual V1 0 0 51 July 2020 8 Revisions 8 1 V1 0 0 First Release Version ...