S76G/S78G Commands Set Reference
v1.6.5
July 2, 2018
22 of 73
Product Name
Version
Doc No
Date
Page
(Got Downlink Data 0x12, 0x34, 0xab and 0xcd from Port 4)
If the device class is set to class C, a downlink data would be received at any time. The downlink data
of class C is outputted by S76G/S78G in rx <Portnum> <Data> format.
Example:
>> mac rx 4 1234abcd
3.2.2
mac join <Mode>
<Mode>: a string representing join mode of LoRaWAN
TM
, it can be
otaa
(over-the-air activation) or
abp
(activation by personalization).
Response: there is two responses after entering this command. The first response, used to indicate
that whether command is valid or parameters is set appropriately, will be received after entering
command. The second response will be received after join procedure.
First response:
Ok
, if <Mode> string is valid.
Invalid
, if <Mode> string is not valid.
keys_not_init
, keys are not configured.
no_free_ch
, no channels are available.
busy
, internal state is busy.
Second response:
accepted
, successfully join LoRaWAN
TM
.
unsuccess
, join procedure is unsuccessful.
Purpose: Start join procedure of LoRaWAN
TM
.
Example:
mac join abp
>> Ok
>> accepted
Note: With ABP join, there is no over-the-air communication during the join process (see alternative
method OTAA). The devaddr and keys are just being set up in the mac layer of the end node ready for
use. For this reason the 'accepted" response doesn't actually prove that the end-node is
communicating with a network, it just means the parameters have been set up in the mac layer
correctly.