Last modified by Kilight Cao on 2023/09/14 09:29

From version 2.1
edited by Xiaoling
on 2022/05/14 14:19
Change comment: There is no comment for this version
To version 1.3
edited by Xiaoling
on 2022/05/14 14:15
Change comment: There is no comment for this version

Summary

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,7 +25,6 @@
25 25  
26 26  (% class="box" %)
27 27  (((
28 -(((
29 29   gen_cus_cfg() {
30 30   json_init
31 31   json_add_object SX130x_conf
... ... @@ -37,13 +37,11 @@
37 37   json_add_int "antenna_gain" "0"
38 38   json_add_string "antenna_gain_desc" "antenna gain, in dBi"
39 39  )))
40 -)))
41 41  
42 42  root@dragino-1d178c:~~# vim /etc/lora/global_conf.json
43 43  
44 44  (% class="box" %)
45 45  (((
46 -(((
47 47   {
48 48   "SX130x_conf": {
49 49   "spidev_path": "/dev/spidev0.0",
... ... @@ -55,23 +55,16 @@
55 55   "antenna_gain_desc": "antenna gain, in dBi",
56 56   "radio_0": {
57 57  )))
58 -)))
59 59  
60 60  and run **root@dragino-1d178c:~~# fwd**
61 61  
62 62  == 2.2 Method 2: ==
63 63  
64 -(((
65 65  Modify /etc/lora/cfg-$chip/"frequency"-global_conf.json
66 -)))
67 67  
68 -(((
69 69  view chip name : cat /tmp/iot/chip
70 -)))
71 71  
72 -(((
73 73  Restart the device after the modification
74 -)))
75 75  
76 76  [[image:https://wiki.dragino.com/images/thumb/0/09/Lora.png/800px-Lora.png||height="69" width="767"]]
77 77  
... ... @@ -79,17 +79,13 @@
79 79  
80 80  (% style="color:red" %)Note : User need to do that connect gateway command line via ssh.
81 81  
82 -(((
83 83  [[image:https://wiki.dragino.com/images/thumb/8/81/Lora_packet_1.png/800px-Lora_packet_1.png||height="324" width="769"]]
84 -)))
85 85  
86 86  Checking LoRaWAN Gateway Log
87 87  
88 88  Command line input (% style="color:#037691" %) **logread -f**
89 89  
90 -(((
91 91  [[image:https://wiki.dragino.com/images/thumb/6/61/Lg01_lora_packet.png/800px-Lg01_lora_packet.png||height="394" width="771"]]
92 -)))
93 93  
94 94  Checking LoRa Gateway Log
95 95