E78-864LN22S
19
[paratag4] indicates the maximum number of join attempts. Paratag4 value
range: 1-255
Example
AT+CJOIN=1,1,10,8
(
Set the join parameter: enable automatic join, the join
cycle is 10s, and the maximum number of attempts is 8
)
OK
+CJOIN:OK
Precautions
Set before Join.
Command
character
Command
Type
Command Format
response
DTRX
(
Send and
receive data
)
Test
command
AT+DTRX=?
+DTRX:[confirm],[nbtrials],<Length>,<
Payload>
OK
Setting
command
AT+DTRX=[confirm],
[nbtrials],<Length>,
<Payload>
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
Confirm and nbtrials refer to the corresponding AT command, which is valid
only for this transmission, optional.
Length
:
indicates the number of strings; the maximum value is described in
the access specification; the byte lengths allowed to be transmitted at
different rates are different (see LoRaWan protocol for details), and 0
indicates that empty packets are sent.
Payloadhexadecimal (2 characters for 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 fails to receive the response message, if it does
not reach the maximum number, it will retry again. If the downlink message
is not received after the maximum number of times is reached, it is a failure
and output.
ERR+SENT message. During this period, if 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:
The downlink response will not be requested after the data is sent, and the
OK+SEND, OK+SENT message will be returned at the end of each
transmission. If the downlink data is received, the OK+RECV message is
sent.
2
、
Data sending status prompt
Return
value
description