Version 7.3 by Xiaoling on 2022/09/26 11:27

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