<
From version < 9.1 >
edited by Kilight Cao
on 2023/04/01 11:47
To version < 10.1 >
edited by Kilight Cao
on 2023/04/01 11:47
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,20 +1,53 @@
1 -== 2.7 How to install BACnet ==
1 +**Table of Contents:**
2 2  
3 +{{toc/}}
4 +
5 +
6 += 1. BACnet =
7 +
8 +== 1.1  Introduction ==
9 +
10 +=== 1.1.1 What is BACnet ===
11 +
12 +
13 +BACnet, short for Building Automation and Control networks.
14 +
15 +The BACnet communication protocol defines a number of services for communication between devices, and services can be divided into five categories: services related to device object management including Who-Is, I-Am, Who-Has, and other services, services related to object access including reading attributes, writing attributes and other services, and services related to alarms and events include acknowledgment alarms, change of state reports, etc. In addition, there are services related to file reading and writing and virtual terminals.
16 +
17 +
18 +=== 1.1.2 List supported products and requirements ===
19 +
20 +
21 +Gateway model: LPS8v2,LG01v2,MS20
22 +
23 +
24 +== 2. Download and Install the BACnet ==
25 +
26 +
27 +(% class="box infomessage" %)
28 +(((
3 3  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]]
4 4  dpkg -i dragino-bacnet-apps-hp0c-2023-03-01.deb
31 +)))
5 5  
6 -[[image:image-20230327152105-1.png||height="163" width="933"]]
33 +[[image:image-20230401114036-1.png]]
7 7  
8 -=== 2.7.1 Configure BACnet ===
9 9  
36 +=== 3. Configure BACnet ===
37 +
10 10  After BACnet is installed, run commands to modify BACnet configurations
11 11  
12 12  **Note: device_port and bacnet_ip_port are not set to the same**
13 13  
42 +(% class="box infomessage" %)
43 +(((
14 14  nano /etc/config/bacnet
45 +)))
15 15  
16 16  **Examples:**
17 17  
49 +(% class="box infomessage" %)
50 +(((
18 18  config settings 'general'
19 19   option bacnet_ip '10.130.2.80'  #The IP address of the BACnetIP network, here basically the same IP as the bbmd address below
20 20   option bacnet_ip_port '47808'  #As with bbmd_port, the purpose of this is to register a Bacnet Server application as a bbmd registration server
... ... @@ -21,71 +21,107 @@
21 21   option bbmd_address '10.130.2.80'  #bbmd is the BACnet registration server. Only one bbmd server is required in the same ip network
22 22   option bbmd_port '47808'  #In general, 47808 is used as the default port
23 23   option bacnet_dev_count '2'  #Here is the number of BACnet devices that need to be simulated, if the number is 2, then the following settings must have 2, which are bacdev_1, bacdev_2
57 +)))
24 24  
59 +(% class="box infomessage" %)
60 +(((
25 25  config settings 'bacdev_1'
26 26   option device_name 'LHT65N-1'  #The identification name of the bacnet device
27 27   option device_id '10001'  #The unique identification code in the same network segment of BACnet,Scope is(1 - 4194302)
28 28   option device_port '47912'  #The IP port occupied by Bacnet when it starts, Scope is (1024 - 65535)
65 +)))
29 29  
67 +(% class="box infomessage" %)
68 +(((
30 30  config settings 'bacdev_2'
31 31   option device_name 'LHT65N-2'
32 32   option device_id '10002'
33 33   option device_port '47913'  
73 +)))
34 34  
35 -=== 2.7.2 Run BACnet ===
75 +=== 4. Run BACnet ===
36 36  
37 37  After the configuration is complete, run the following command to start BACnet, The following are two ways to run BACnet:
38 38  
39 39  (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):
40 40  
81 +(% class="box infomessage" %)
82 +(((
41 41  bacserver -c -s
84 +)))
42 42  
43 43  (2) Without /etc/config/bacnet, and to run the registration server on the current machine, start it with the following command:
44 44  
88 +(% class="box infomessage" %)
89 +(((
45 45  bacserver -s -a 10.130.2.80 -p 47808
91 +)))
46 46  
47 47  This command simulates two devices, with device IDs 47910 and 47911
48 48  
49 49  Enter bacserver -h to output help
50 50  
97 +(% class="box infomessage" %)
98 +(((
51 51  bacserver -h
100 +)))
52 52  
53 -[[image:image-20230327154700-3.png]]
102 +[[image:image-20230401114458-2.png]]
54 54  
55 -=== 2.7.3 Read devices and modify devices ===
104 +=== 5. Read devices and modify devices ===
56 56  
57 57  Enter baccli -h to output help
58 58  
108 +(% class="box infomessage" %)
109 +(((
59 59  baccli -h
111 +)))
60 60  
61 -[[image:image-20230327165836-1.png]]
62 62  
114 +[[image:image-20230401114641-3.png]]
115 +
63 63  **Examples:**
64 64  
65 65  (1) List the current Bacnet devices:
66 66  
120 +(% class="box infomessage" %)
121 +(((
67 67  baccli -l -a
123 +)))
68 68  
69 -[[image:image-20230327174537-3.png]]
70 70  
126 +[[image:image-20230401114653-4.png]]
127 +
71 71  (2) List device information based on device ID:
72 72  
130 +(% class="box infomessage" %)
131 +(((
73 73  baccli -l -i id
133 +)))
74 74  
75 -[[image:image-20230327174556-4.png]]
76 76  
136 +[[image:image-20230401114706-5.png]]
137 +
77 77  (3) List the device details by device ID:
78 78  
140 +(% class="box infomessage" %)
141 +(((
79 79  baccli -l -v -i id
143 +)))
80 80  
81 81  (4) Modify the specified attribute value based on the device ID:
82 82  
147 +(% class="box infomessage" %)
148 +(((
83 83  baccli -i id -p prop -w value
150 +)))
84 84  
85 -[[image:image-20230327174853-5.png]]
86 86  
153 +[[image:image-20230401114720-6.png]]
154 +
87 87  The user can check the data of the device by using the **[[yabe BACnet tool>>https://sourceforge.net/projects/yetanotherbacnetexplorer/]]**
88 88  
89 -[[image:image-20230327171824-2.png]]
157 +[[image:image-20230401114729-7.png||height="521" width="1077"]]
90 90  
159 +
91 91  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0