<
From version < 19.1 >
edited by Kilight Cao
on 2023/04/01 16:24
To version < 19.3
edited by Xiaoling
on 2023/04/23 16:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Kilight
1 +XWiki.Xiaoling
Content
... ... @@ -26,8 +26,8 @@
26 26  
27 27  (% class="box infomessage" %)
28 28  (((
29 -wget [[http:~~/~~/dragino.vicp.io:6080/bacnet/dragino-bacnet-apps-hp0c-2023-03-01.deb>>url:http://dragino.vicp.io:6080/bacnet/dragino-bacnet-apps-hp0c-2023-03-01.deb]]
30 -dpkg -i dragino-bacnet-apps-hp0c-2023-03-01.deb
29 +**wget [[http:~~/~~/dragino.vicp.io:6080/bacnet/dragino-bacnet-apps-hp0c-2023-03-01.deb>>url:http://dragino.vicp.io:6080/bacnet/dragino-bacnet-apps-hp0c-2023-03-01.deb]]
30 +dpkg -i dragino-bacnet-apps-hp0c-2023-03-01.deb**
31 31  )))
32 32  
33 33  [[image:image-20230401114036-1.png]]
... ... @@ -35,13 +35,14 @@
35 35  
36 36  == 1.3 Configure BACnet ==
37 37  
38 +
38 38  After BACnet is installed, run commands to modify BACnet configurations
39 39  
40 -**Note: device_port and bacnet_ip_port are not set to the same**
41 +(% style="color:red" %)**Note: device_port and bacnet_ip_port are not set to the same**
41 41  
42 42  (% class="box infomessage" %)
43 43  (((
44 -nano /etc/config/bacnet
45 +**nano /etc/config/bacnet**
45 45  )))
46 46  
47 47  **Examples:**
... ... @@ -72,8 +72,10 @@
72 72   option device_port '47913'  
73 73  )))
74 74  
76 +
75 75  == 1.4 Run BACnet ==
76 76  
79 +
77 77  After the configuration is complete, run the following command to start BACnet, The following are two ways to run BACnet:
78 78  
79 79  (1) With /etc/config/bacnet configuration, and to run the registration server on the current machine, start it with the following command (configure the /etc/config/bacnet file correctly):
... ... @@ -80,14 +80,15 @@
80 80  
81 81  (% class="box infomessage" %)
82 82  (((
83 -bacserver -c -s
86 +**bacserver -c -s**
84 84  )))
85 85  
89 +
86 86  (2) Without /etc/config/bacnet, and to run the registration server on the current machine, start it with the following command:
87 87  
88 88  (% class="box infomessage" %)
89 89  (((
90 -bacserver -s -a 10.130.2.80 -p 47808
94 +**bacserver -s -a 10.130.2.80 -p 47808 **
91 91  )))
92 92  
93 93  This command simulates two devices, with device IDs 47910 and 47911
... ... @@ -96,18 +96,20 @@
96 96  
97 97  (% class="box infomessage" %)
98 98  (((
99 -bacserver -h
103 +**bacserver -h **
100 100  )))
101 101  
102 102  [[image:image-20230401114458-2.png]]
103 103  
108 +
104 104  == 1.5 Read devices and modify devices ==
105 105  
111 +
106 106  Enter baccli -h to output help
107 107  
108 108  (% class="box infomessage" %)
109 109  (((
110 -baccli -h
116 +**baccli -h **
111 111  )))
112 112  
113 113  [[image:image-20230401114641-3.png]]
... ... @@ -115,43 +115,45 @@
115 115  
116 116  **Examples:**
117 117  
118 -(1) List the current Bacnet devices:
124 +**(1) List the current Bacnet devices:**
119 119  
120 120  (% class="box infomessage" %)
121 121  (((
122 -baccli -l -a
128 +**baccli -l -a**
123 123  )))
124 124  
125 125  [[image:image-20230401114653-4.png]]
126 126  
127 127  
128 -(2) List device information based on device ID:
134 +**(2) List device information based on device ID:**
129 129  
130 130  (% class="box infomessage" %)
131 131  (((
132 -baccli -l -i id
138 +**baccli -l -i id**
133 133  )))
134 134  
135 135  [[image:image-20230401114706-5.png]]
136 136  
137 -(3) List the device details by device ID:
138 138  
144 +**(3) List the device details by device ID:**
145 +
139 139  (% class="box infomessage" %)
140 140  (((
141 -baccli -l -v -i id
148 +**baccli -l -v -i id**
142 142  )))
143 143  
144 -(4) Modify the specified attribute value based on the device ID:
145 145  
152 +**(4) Modify the specified attribute value based on the device ID:**
153 +
146 146  (% class="box infomessage" %)
147 147  (((
148 -baccli -i id -p prop -w value
156 +**baccli -i id -p prop -w value**
149 149  )))
150 150  
151 151  [[image:image-20230401114720-6.png]]
152 152  
153 153  
154 -(5)Check the results using the BACnet tool
162 +**(5) Check the results using the BACnet tool**
155 155  
156 156  The user can check the data of the device by using the **[[yabe BACnet tool>>https://sourceforge.net/projects/yetanotherbacnetexplorer/]]**
157 157  
... ... @@ -160,10 +160,13 @@
160 160  
161 161  == 1.6 Example: How to transfer data to BACnet via LoRaWAN in LPS8v2 ==
162 162  
171 +
163 163  LPS8v2 includes a local TTN Server and Node-Red. This example shows how to configure LHT65N to use with the BACnet. This example assumes users already have:
164 164  
165 165  * LHT65N register on LPS8v2 Built-In TTN server already
175 +
166 166  * The user is able to see the data on the built-in TTN server device page.
177 +
167 167  * The LPS8v2 already has BACnet installed
168 168  
169 169  Below are the steps to plot the sensor data on LPS8v2 BACnet.
... ... @@ -171,9 +171,10 @@
171 171  
172 172  === 1.6.1 Link BACnet to Local TTN ===
173 173  
185 +
174 174  Users can download the Node-Red decoder from this link and import it into the Node-Red platform: **[[attach:LHT65N_TTN_to_BACnet.json||target="_blank"]]**
175 175  
176 -For more information on importing Input Flow, check out this link:**[[Import Input Flow for Dragino Sensors>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H3.A0ImportInputFlowforDraginoSensors]]**
188 +For more information on importing Input Flow, check out this link: **[[Import Input Flow for Dragino Sensors>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H3.A0ImportInputFlowforDraginoSensors]]**
177 177  
178 178  
179 179  After importing the Input Flow is complete, the user needs to edit the MQTT in the node
... ... @@ -184,8 +184,10 @@
184 184  
185 185  [[image:image-20230401144951-10.png||height="814" width="1223"]]
186 186  
187 -=== 1.6.2 Check result. ===
188 188  
200 +=== 1.6.2 Check result ===
201 +
202 +
189 189  [[image:image-20230401142357-8.png||height="677" width="1232"]]
190 190  
191 191  
... ... @@ -192,3 +192,5 @@
192 192  The BACnet tool displays the temperature, humidity and battery voltage of the LHT65N
193 193  
194 194  [[image:image-20230401144525-9.png||height="487" width="1237"]]
209 +
210 +
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0