Changes for page Instruction for LA66 Peer to Peer firmware
Last modified by Bei Jinggeng on 2022/12/19 11:05
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -114,9 +114,6 @@ 114 114 |=(% style="width: 105px;" %)**Size (bytes)**|=(% style="width: 109px;" %)**1**|=(% style="width: 99px;" %)**payloadsize** 115 115 |(% style="width:105px" %)**Value**|(% style="width:109px" %)TXGroupmod|(% style="width:99px" %)Send data 116 116 117 - 118 - 119 - 120 120 = 4. AT Command Set = 121 121 122 122 ... ... @@ -123,21 +123,29 @@ 123 123 == 4.1 Set TX and RX Bandwidth == 124 124 125 125 126 - (% style="color:blue" %)**Set TX and RX BandWidth (0 ~~ 9):**123 +**Set TX and RX BandWidth (0 ~~ 9), (% style="color:blue" %)AT Command : AT+BW(%%)** 127 127 125 +0: 125 kHz 128 128 129 -**0: 125 kHz 130 130 1: 250 kHz 128 + 131 131 2: 500 kHz 130 + 132 132 3: 62.5 kHz 132 + 133 133 4: 41.67 kHz 134 + 134 134 5: 31.25 kHz 136 + 135 135 6: 20.83 kHz 138 + 136 136 7: 15.63 kHz 140 + 137 137 8: 10.42 kHz 138 -9: 7.81 kHz** 139 139 143 +9: 7.81 kHz 140 140 145 + 141 141 (% style="color:red" %)**Default Value: AT+BW=0,0** (%%) ~/~/ BandWidth: 125kHz ,125kHz 142 142 143 143 (% style="color:red" %)**Range: (0 ~~ 9)** ... ... @@ -147,8 +147,9 @@ 147 147 == 4.2 Set TX and RX frequency == 148 148 149 149 150 -Set TX and RX frequency (MHz): 155 +**Set TX and RX frequency (MHz), (% style="color:blue" %)AT Command : AT+FRE(%%)** 151 151 157 + 152 152 (% style="color:red" %)**Default Value: AT+FRE=868.100,868.100** (%%) ~/~/ Frequency: 868.100MHz, 868.100MHz 153 153 154 154 ... ... @@ -156,18 +156,21 @@ 156 156 == 4.3 Set TX and RX Spreading Factor == 157 157 158 158 159 -Set TX and RX Spreading Factor ( 5 ~~ 12) 165 +**Set TX and RX Spreading Factor ( 5 ~~ 12), (% style="color:blue" %)AT Command : AT+SF(%%)** 160 160 167 + 161 161 (% style="color:red" %)**Default Value: AT+SF=12,12** (%%) ~/~/ Spreading Factor : 12,12 162 162 163 163 (% style="color:red" %)**Range: (5 ~~ 12)** 164 164 165 165 173 + 166 166 == 4.4 Set Tx Power Range == 167 167 168 168 169 -Set Tx Power Range .( 0 ~~ 22 dBm)177 +**Set Tx Power Range( 0 ~~ 22 dBm), (% style="color:blue" %)AT Command : AT+POWER(%%)** 170 170 179 + 171 171 (% style="color:red" %)**Default Value: AT+POWER=20** (%%) ~/~/ Output Power: 20dBm 172 172 173 173 (% style="color:red" %)**Range: (0 ~~ 22)** ... ... @@ -177,13 +177,17 @@ 177 177 == 4.5 Set TX and RX Coding Rate == 178 178 179 179 180 -Set TX and RX Coding Rate .( 1 ~~ 4 )189 +**Set TX and RX Coding Rate ( 1 ~~ 4 ), (% style="color:blue" %)AT Command :AT+CR(%%)** 181 181 182 182 1: 4/5 192 + 183 183 2: 4/6 194 + 184 184 3: 4/7 196 + 185 185 4: 4/8 186 186 199 + 187 187 (% style="color:red" %)**Default Value: AT+CR=1,1** (%%) ~/~/ Coding Rate: 4/5, 4/5 188 188 189 189 (% style="color:red" %)**Range: (1 ~~ 4)** ... ... @@ -193,11 +193,13 @@ 193 193 == 4.6 Set TX and RX Header Type == 194 194 195 195 196 -Set TX and RX Header Type ( 0,1 ) 209 +**Set TX and RX Header Type ( 0,1 ), (% style="color:blue" %)AT Command : AT+HEADER(%%)** 197 197 198 198 0: Variable length packet (explicit header) 212 + 199 199 1: Fixed length packet (implicit header) 200 200 215 + 201 201 (% style="color:red" %)**Default Value: AT+HEADER=1,1** (%%) ~/~/ Header Type: explicit, explicit 202 202 203 203 (% style="color:red" %)**Range: (0 ~~ 1)** ... ... @@ -207,10 +207,13 @@ 207 207 == 4.7 Set TX and RX CRC Type == 208 208 209 209 210 -Set TX and RX CRC Type ( 0,1) 225 +**Set TX and RX CRC Type ( 0,1) ,(% style="color:blue" %)AT Command:AT+CRC(%%)** 226 + 211 211 0: CRC OFF 228 + 212 212 1: CRC ON 213 213 231 + 214 214 (% style="color:red" %)**Default Value: AT+CRC=0,0** (%%) ~/~/ CRC: OFF, OFF 215 215 216 216 (% style="color:red" %)**Range: (0 ~~ 1)** ... ... @@ -220,10 +220,13 @@ 220 220 == 4.8 Set TX and RX InvertIQ == 221 221 222 222 223 -Set TX and RX InvertIQ ( 0,1) 241 +**Set TX and RX InvertIQ ( 0,1) , (% style="color:blue" %)AT Command:AT+IQ(%%)** 242 + 224 224 0: Standard IQ setup 244 + 225 225 1: Inverted IQ setup 226 226 247 + 227 227 (% style="color:red" %)**Default Value: AT+IQ=0,0** (%%) ~/~/ Invert IQ: 0,0 228 228 229 229 (% style="color:red" %)**Range: (0 ~~ 1)** ... ... @@ -233,8 +233,9 @@ 233 233 == 4.9 Set TX and RX Preamble Length == 234 234 235 235 236 -Set TX and RX Preamble Length ( 0 ~~ 65535 ) 257 +**Set TX and RX Preamble Length ( 0 ~~ 65535 ) , (% style="color:blue" %)AT Command: AT+PREAMBLE(%%)** 237 237 259 + 238 238 (% style="color:red" %)**Default Value: AT+PREAMBLE=8,8** (%%) ~/~/ Preamble: 8,8 239 239 240 240 (% style="color:red" %)**Range: ( 0 ~~ 65535 )** ... ... @@ -244,8 +244,9 @@ 244 244 == 4.10 Set Syncword == 245 245 246 246 247 -Set Syncword(0:private ,1:public)269 +**Set Syncword(0: private,1: public), (% style="color:blue" %)AT Command : AT+SYNCWORD(%%)** 248 248 271 + 249 249 (% style="color:red" %)**Default Value: AT+SYNCWORD=0** (%%) ~/~/ 0x3444 for Public Network 250 250 251 251 (% style="color:red" %)**Range: ( 0 ~~ 1 )** ... ... @@ -255,13 +255,15 @@ 255 255 == 4.11 Set TX and RX group == 256 256 257 257 258 -Set TX and RX group. (0 ~~ 255) 259 -Group > 0: Device only accept same group transmision 260 -Group = 0: Accept Any group 281 +**Set TX and RX group. (0 ~~ 255),(% style="color:blue" %)AT Command:AT+GROUPMOD(%%)** 261 261 283 +Group > 0: Device only accept same group transmision 262 262 263 - (% style="color:red" %)**DefaultValue: AT+GROUPMOD=0,0**(%%)~/~/ 0x3444 for PublicNetwork285 +Group = 0: Accept Any group 264 264 287 + 288 +(% style="color:red" %)**Default Value: AT+GROUPMOD=0,0** (%%) ~/~/ Group: 0,0 289 + 265 265 (% style="color:red" %)**Range: ( 0 ~~ 255 )** 266 266 267 267 ... ... @@ -270,18 +270,26 @@ 270 270 == 4.12 Set Rx Timeout and Reply mode == 271 271 272 272 273 -Set Rx Timeout and Reply mode, Parameter 1, Parameter2 274 -Parameter 1: 275 - 0: Always no RX 276 - 1 ~~ 65534: Open RX window and last for specify seconds. 277 - 65535: RX window always open. 298 +**Set Rx Timeout and Reply mode, Parameter 1, Parameter2, (% style="color:blue" %)AT Command:AT+RXMOD(%%)** 278 278 300 +**Parameter 1: ** 279 279 280 - Parameter 2: 281 - 0: No ACK 282 - 1: Send an ACK once got a message from another device. ACK Content is same as receive message 283 - 2: Send an ACK once got a message from another device. ACK Content is 0x00 FF 302 + 0: Always no RX 284 284 304 + 1 ~~ 65534: Open RX window and last for specify seconds. 305 + 306 + 65535: RX window always open. 307 + 308 + 309 +**~ Parameter 2: ** 310 + 311 + 0: No ACK 312 + 313 + 1: Send an ACK once got a message from another device. ACK Content is same as receive message 314 + 315 + 2: Send an ACK once got a message from another device. ACK Content is 0x00 FF 316 + 317 + 285 285 (% style="color:red" %)**Default Value: AT+RXMOD=65535,2** (%%) ~/~/ RX Mode: 65535, 2 286 286 287 287 ... ... @@ -289,37 +289,52 @@ 289 289 == 4.13 Send Message == 290 290 291 291 292 -Send Message: 293 -Parameter 1: send hex or text 325 +**Send Message, (% style="color:blue" %)AT Command:AT+SEND(%%)** 326 + 327 +**Parameter 1:** send hex or text 328 + 294 294 0: Send hex 330 + 295 295 1: Send text 296 296 297 297 298 -Parameter 2: Content 299 - 300 -Parameter 3 : ACK Type 334 +**Parameter 2:** Content 335 + 336 + 337 +**Parameter 3 :** ACK Type 338 + 301 301 0: No ACK 340 + 302 302 1: Wait for ACK (Same as what we sent) 342 + 303 303 2: Wait for ACK ( 0x00 FF) 304 304 305 305 306 -Parameter 4 : Retransmission ( 0 ~~ 8 ) 346 +**Parameter 4 :** Retransmission ( 0 ~~ 8 ) 347 + 307 307 0: No re-transmission 349 + 308 308 1 ~~ 8: total sends 1~~8 transmission, interval 5 seconds 309 309 310 -**Notice: RX reply (Defined by AT+RXMOD) won't ask for TX ACK** 311 311 353 +Example: AT+SEND=1,hello world,0,3 312 312 355 +(% style="color:red" %)**Notice: RX reply (Defined by AT+RXMOD) won't ask for TX ACK** 313 313 357 + 358 + 314 314 == 4.14 Print last receive message with RSSI and SNR == 315 315 316 316 317 -Print last receive message with RSSI and SNR 362 +**Print last receive message with RSSI and SNR,(% style="color:blue" %)AT+Command:AT+RECV(%%)** 363 + 318 318 0: Print in Hex 365 + 319 319 1: Print in text 320 -The recevied message will be clear after this command. 321 321 322 322 369 + Example: AT+RECV=0 370 +\\The recevied message will be clear after this command. 323 323 324 324 325 325 ... ... @@ -327,4 +327,6 @@ 327 327 328 328 329 329 378 + 379 + 330 330