S76G/S78G Commands Set Reference
v1.6.5
July 2, 2018
41 of 73
Product Name
Version
Doc No
Date
Page
Response:
Ok
, if <ChannelID> and <Status> string is valid.
Invalid
, if <ChannelID> and <Status> string is not valid.
Purpose: it allows to enable multiple channels, it’s similar with another command, “mac
set_ch_status”, but it’s more effective. US915 ISM band has two uplink channels groups, one
contains 64 channels that they are all running at BW 125 KHz and another group has 8 channesl
which are all running at 500 KHz.
Example:
mac set_ch_count 16 125 (To enable 0~15
th
channels for 125KHz uplink channel group)
>> Ok
3.2.65
mac get_ch_count
Response: A decimal string representing the current enabled channels counts, its range would be
from
0
to
96
.
Purpose: See “mac set_ch_count” command.
Example:
mac get_ch_count
>> 8
3.2.66
mac set_keys <DevAddr> <DevEUI> <AppEUI> <AppKey> <AppsKey>
<NwksKey>
<DevAddr>: it follows “mac set_devaddr” command input format.
<DevEUI>: it follows “mac set_deveui” command input format.
<AppEUI>: it follows “mac set_appeui” command input format.
<AppKey>: it follows “mac set_appkey” command input format.
<AppsKey>: it follows “mac set_appskey” command input format.
<NwksKey>: it follows “mac set_nwkskey” command input format.
Purpose: After this command is executed, the 6 keys would be updated and stored into EEPROM
immediately without calling “mac save”.
Response:
Ok
, if input ASCII strings are all valid.
Invalid
, if one of input strings is not valid.