Ebyte E78-470LN22S User Manual page 21

Asr6501 wireless module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Example
Precautions
Command
Command
character
Type
Test
command
Setting
command
Parameter
DTRX
Description
(Send and
receive data)
Return value
description
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
[ParaTag2] Indicates whether the automatic JOIN function is enabled.The
factory value is 1, ParaTag2 value range:
0 – turn off automatic JOIN
1 – The automatic JOIN. module automatically starts JOIN after entering
the transparent transmission mode.
[ParaTag3]indicates the JOIN period,Range of values:7~255, The unit is s.
Factory default: 8。
[paratag4] indicates the maximum number of join attempts. Paratag4 value
range: 1-255
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
Set before Join.
Command Format
AT+DTRX=?
AT+DTRX=[confirm],
[nbtrials],<Length>,
<Payload>
OK+SEND:TX_LEN
OK+SENT:TX_CN
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.
E78-470LN22S User Manual
response
+DTRX:[confirm],[nbtrials],<Length>,<
Pay
load>
OK
OK+SEND:TX_LEN
OK+SENT:TX_CNT
OK+RECV:TYPE,PORT,LEN,DATA
或者
ERR+SEND:ERR_NUM
ERR+SENT:TX_CNT
20

Advertisement

Table of Contents
loading

Table of Contents