Changes for page Got a raw LoRa packet from LoRaWAN gateway
Last modified by Kilight Cao on 2023/09/14 09:29
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -11,13 +11,9 @@ 11 11 12 12 = 2. Introduction = 13 13 14 -((( 15 15 By default, the LoRaWAN gateway cannot receive LoRa Packet, If the user needs to receive the raw LoRa Packet, the user can modify the file. 16 -))) 17 17 18 -((( 19 -Here are two ways to modify the received raw LoRa package. 20 -))) 16 +Here are two ways to modify the received raw LoRa package, 21 21 22 22 == 2.1 Method 1: == 23 23 ... ... @@ -25,8 +25,6 @@ 25 25 26 26 (% class="box" %) 27 27 ((( 28 -((( 29 -((( 30 30 gen_cus_cfg() { 31 31 json_init 32 32 json_add_object SX130x_conf ... ... @@ -38,15 +38,11 @@ 38 38 json_add_int "antenna_gain" "0" 39 39 json_add_string "antenna_gain_desc" "antenna gain, in dBi" 40 40 ))) 41 -))) 42 -))) 43 43 44 44 root@dragino-1d178c:~~# vim /etc/lora/global_conf.json 45 45 46 46 (% class="box" %) 47 47 ((( 48 -((( 49 -((( 50 50 { 51 51 "SX130x_conf": { 52 52 "spidev_path": "/dev/spidev0.0", ... ... @@ -58,48 +58,30 @@ 58 58 "antenna_gain_desc": "antenna gain, in dBi", 59 59 "radio_0": { 60 60 ))) 61 -))) 62 -))) 63 63 64 64 and run **root@dragino-1d178c:~~# fwd** 65 65 66 66 == 2.2 Method 2: == 67 67 68 -((( 69 69 Modify /etc/lora/cfg-$chip/"frequency"-global_conf.json 70 -))) 71 71 72 -((( 73 73 view chip name : cat /tmp/iot/chip 74 -))) 75 75 76 -((( 77 77 Restart the device after the modification 78 -))) 79 79 80 -((( 81 81 [[image:https://wiki.dragino.com/images/thumb/0/09/Lora.png/800px-Lora.png||height="69" width="767"]] 82 -))) 83 83 84 84 modify /etc/lora/cfg-$chip/"frequency"-global_conf.json 85 85 86 86 (% style="color:red" %)Note : User need to do that connect gateway command line via ssh. 87 87 88 -((( 89 -((( 90 90 [[image:https://wiki.dragino.com/images/thumb/8/81/Lora_packet_1.png/800px-Lora_packet_1.png||height="324" width="769"]] 91 -))) 92 -))) 93 93 94 94 Checking LoRaWAN Gateway Log 95 95 96 96 Command line input (% style="color:#037691" %) **logread -f** 97 97 98 -((( 99 -((( 100 100 [[image:https://wiki.dragino.com/images/thumb/6/61/Lg01_lora_packet.png/800px-Lg01_lora_packet.png||height="394" width="771"]] 101 -))) 102 -))) 103 103 104 104 Checking LoRa Gateway Log 105 105