Chengdu Ebyte Electronic Technology Co., Ltd.
E78-915LN22S(6601) User Manual
Copyright © 2012–20 2 1 , Chengdu Ebyte Electronic Technology Co., Ltd.
22
set command
AT+DTRX=[confirm],
[nbtrials],<Length>,
<Payload>
OK+SEND:TX_LEN
OK+SENT:TX_CN
OK+SEND:TX_LEN
OK+SENT:TX_CNT
OK+RECV:TYPE,PORT,LEN,DATA
or
ERR+SEND:ERR_NUM
ERR+SENT:TX_CNT
Parameter
Description
For confirm and nbtrials, please refer to the corresponding AT command, which is only
valid for this transmission, optional.
Length: Indicates the number of strings; the maximum value is shown in the access
specification; the length of bytes allowed to be transmitted at different rates is different
(see the LoRaWan protocol for details), and 0 means sending an empty packet.
Payload: Hexadecimal (2 characters represent 1 number);
return value:
1. How to judge whether the data transmission is successful?
Confirm type data:
Each time a frame of data is sent, there should be a corresponding response message.
When the module times out and does not receive a response message, if the maximum
number of times is not reached, it will retry again, until the maximum number of times
is reached and no downlink message is received, it is a failure, and output
ERR+SENT message. During this period, if the completion of the transmission of the
response message is received, it is successful, and the OK+SEND, OK+SENT and
OK+RECV messages are output.
Unconfirm type data:
No downlink response is requested after data is sent, and OK+SEND and OK+SENT
messages are returned at the end of each transmission. If the downlink data is received,
the OK+RECV message will be sent again.
2. Data sending status prompt
OK+SEND:TX_LEN indicates that the data sending request is successful, TX_LEN:
1Byte, the length of the data sent
OK+SENT: TX_CNT means that the data is sent successfully, TX_CNT: 1Byte, the
number of data sending.
ERR+SEND:ERR_NUM indicates that the data sending request failed, and the reason is
indicated by ERR_NUM. ERR_NUM: 1Byte,
0- Not connected to the network
1- Communication is busy, send request failed
2- The data length exceeds the current sendable length, only send the MAC command
ERR+SENT: TX_CNT indicates that the data transmission failed, and the number of
transmissions reaches the maximum number. TX_CNT: 1Byte, the number of data
transmissions.
OK+RECV:TYPE,PORT,LEN,DATA Data received successfully (response message or
active downlink data received)
TYPE: 1Byte, downlink transmission type
Bit0: 0-unconfirm, 1-confirm
Return value
description