Polysense Technologies Co. Ltd. WXS8000 Manual De Usuario

Descargar
Página de 36
 
 
User Guide 
Revision 0.1 
 
 
XXX-XXXX 
Polysense WxS8000 User Guide 
Rev 2.3, Mar 26, 2018 
 
Polysense, Inc. Confidential 
Page 19 
 
 
MM – Month in hex number 
DD – Day in hex number 
HH – Hour in hex number 
MM – Minute in hex number 
SS – Second in hex number 
For example, 2017-12-14 20:39:40 should be filled as 0x11-
0B-0D-14-27-28 
4.1.4. 
Set Counter Sensor (
PlssSetExtCntr) 
LoRa server can use this message to set the counter variable of the counter sensor on WxS8000. 
Usually, the command is used to reset the counter variable 
Size (bytes) 
FRMPayload 
0x19 
An UINT32 counter value used to set WxS8000 local 
counter variable 
4.1.5.  Get Individual Attribute in PPB (PlssGetPPB) 
The PlssGetPPB message can get all the same attributes as PlssSetPPB (refer to section 4.1.1), 
except that PlssGetPPB message doesn’t have the value parameter in FRMPayload, refer to below 
for the FRMPayload format of PlssGetPPB command: 
Size (bytes) 
FRMPayload 
0x1A 
Attribute 
ValueLength 
o  Attribute: the attribute ID as defined in section 4.1.1 
o  ValueLength: the length of the attribute value in octets  
Once WxS8000 receives the PlssGetPPB message, WxS8000 should report the specified attribute 
value via PPB attribute report message as defined in section 4.2.4. 
NOTE: one PlssGetPPB message can only get one attribute at one time. 
 
4.2. 
Uplink Message 
The uplink messages initiated from WxS8000 are the sensor data report or the response to the 
downlink messages from LoRa server, they are also unconfirmed. 
 
The message type (MType) in MAC header must be 0x02 (Unconfirmed Data Up). 
 
The FPort in the MACPayload is 2 
 
For little endian or big-endian, the uplink message follows the same rule as downlink message 
EXCEPT below message, in which the 2-byte/4-byte/8-byte fields are all in big endian: 
o  0x7E – Sensor data report message with fixed data length 
 
The basic format of uplink message: