Справочник Пользователя для Iotek Systems LLC HXC900

Скачать
Страница из 59
HXC Client Module User Guide
Version 1.09
© 2017 All rights reserved. Iotek Systems, LLC
Page 31 of 59
This  command  provides  a  way  to  send  ASCII  bytes  on  a  dedicated  port  number,  with
acknowledgment configuration (Confirmed/Unconfirmed). The confirmed message takes
8 attempts to receive ACK from Network Server before it goes back to sleep.
Format: AT+SEND=<ack>,<port>:<ASCII bytes>
<ack> = 0(:Unconfirmed) or 1(:Confirmed)
<port>= 1 to 223
AT+SEND? 
>>>
Send ASCII Bytes 
>>>
OK 
// Unconfirmed message in Class A
AT+SEND=0,12:T=32.32F 
>>>
OK 
>>>
txDone 
>>>
rx1TimeOut
 
>>>
rx2TimeOut
 
// Unconfirmed message in Class C. In Class C there aren’t any rx2Timeout.
// Class C always listens on Receive Window 2
AT+SEND=0,12:T=32.32F 
>>>
OK 
>>>
txDone 
>>>
rx1TimeOut
 
 
// Confirmed message – with ACK received from NS
AT+SEND=1,12:T=32.32F 
>>>
OK 
>>>
txDone 
>>>
rxDone
 
// Confirmed message – with no ACK from NS in Class A
AT+SEND=1,12:T=32.32F 
>>>
OK 
>>>
txDone
   
// 1
st
 attempt
 
>>>
rx1TimeOut
 
>>>
rx2TimeOut
 
… … … 
>>>
txDone
   
// 8
th
 attempt
 
>>>
rx1TimeOut
 
>>>
rx2TimeOut 
Users can receive AT_BUSY_ERROR if the command is used during a LoRa transmission
(Join, Packet Send or Continuous Tx).