Version 7.4 by Xiaoling on 2022/09/26 11:34

Show last authors
1 = 1.  Overview: =
2
3
4 This instruction is for how to use Peer to Peer firmware in LA66.
5
6
7 = 2.  Firmware Location: =
8
9
10 Click[[ here>>https://www.dropbox.com/sh/dq03kkfdrqnhy66/AACpHIcKYMa4o1IySKtVoeENa?dl=0]] to download the firmware and update it to LA66 according to the instruction for different boards.
11
12
13 = 3.  How to use? =
14
15
16
17 == 3.1  AT command: ==
18
19
20 (% style="color:blue" %)**1). Lora parameter configuration:**
21
22
23 AT+FRE:  Get or Set TX and RX frequency
24
25 AT+BW:  Get or Set TX and RX BandWidth
26
27 AT+SF:  Get or Set TX and RX Spreading Factor
28
29 AT+POWER:  Get or Set Tx Power Range
30
31 AT+CRC:  Get or Set TX and RX CRC Type
32
33 AT+HEADER:  Get or Set TX and RX Header Type
34
35 AT+CR:  Get or Set TX and RX Header Type
36
37 AT+IQ:  Get or Set TX and RX InvertIQ
38
39 AT+PREAMBLE:  Get or Set TX and RX Preamble Length
40
41 AT+SYNCWORD:  Get or Set sync word
42
43
44
45 (% style="color:blue" %)**2). General configuration:**
46
47
48 ATZ:  Trig a reset of the MCU
49
50 AT+FDR:  Reset Parameters to Factory Default
51
52 AT+CFG:  Print all configurations
53
54 AT+FCU:  Get or Set the Frame Counter Uplink
55
56 AT+FCD:  Get or Set the Frame Counter Downlink
57
58 AT+GROUPMOD:  Get or Set TX and RX group
59
60 AT+RXMOD:  Get or Set Rx Timeout and Reply mode
61
62 AT+SEND:  Send text data or hex along with the application port and confirm status
63
64 AT+RECV:  Print last receive message, RSSI and SNR
65
66
67
68 == 3.2  Serial port information ==
69
70
71 (% style="color:blue" %)**1). Information initialized at reset:**
72
73 [[image:image-20220926112125-1.png]]
74
75
76 (% style="color:blue" %)**2). In retransmission, the Uplinkcounter does not accumulate. The following figure shows that the third count packet is retransmitted twice when the ACK packet is not received.**
77
78
79 [[image:image-20220926112125-2.png]]
80
81
82 (% style="color:blue" %)**3). In the figure below, the receiver sends an ACK to the sender after receiving the packet, and the sender stops retransmission after receiving the ACK.**
83
84
85 (% style="color:red" %)**Receiver: (configured as AT+RXMOD=65535,2)**
86
87 [[image:image-20220926112125-3.png]]
88
89
90
91 (% style="color:red" %)**Sender:**
92
93 [[image:image-20220926112125-4.png]]
94
95
96
97 == 3.3  Data Format: ==
98
99
100 1 byte of TXGROUPMOD +n payload + 4 bytes of checksum
101
102
103 Payload(S12, SF11, SF10 maximum length is 59, SF9 maximum length is 123, SF8, SF7 maximum length is 230):
104
105 (% border="1" style="background-color:#ffffcc; color:green; width:316px" %)
106 |=(% style="width: 105px;" %)**Size (bytes)**|=(% style="width: 109px;" %)**1**|=(% style="width: 99px;" %)**payloadsize**
107 |(% style="width:105px" %)**Value**|(% style="width:109px" %)TXGroupmod|(% style="width:99px" %)Send data
108
109
110
111 = 4.  AT Command Set: =
112
113
114 == 4.1  Set TX and RX Bandwidth ==
115
116
117 (% style="color:blue" %)**Set TX and RX BandWidth (0 ~~ 9):**
118
119
120 **0:  125 kHz
121 1:  250 kHz
122 2:  500 kHz
123 3:  62.5 kHz
124 4:  41.67 kHz
125 5:  31.25 kHz
126 6:  20.83 kHz
127 7:  15.63 kHz
128 8:  10.42 kHz
129 9:  7.81 kHz**
130
131
132 (% style="color:red" %)**Default Value: AT+BW=0,0**  (%%) ~/~/  BandWidth: 125kHz ,125kHz
133
134 (% style="color:red" %)**Range: (0 ~~ 9)**
135
136
137