Change comment:
Uploaded new attachment "image-20230401114458-2.png", version {1}
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,1 +1,91 @@ 1 -BACnet 1 +== 2.7 How to install BACnet == 2 + 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 +dpkg -i dragino-bacnet-apps-hp0c-2023-03-01.deb 5 + 6 +[[image:image-20230327152105-1.png||height="163" width="933"]] 7 + 8 +=== 2.7.1 Configure BACnet === 9 + 10 +After BACnet is installed, run commands to modify BACnet configurations 11 + 12 +**Note: device_port and bacnet_ip_port are not set to the same** 13 + 14 +nano /etc/config/bacnet 15 + 16 +**Examples:** 17 + 18 +config settings 'general' 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 + 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 + 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 + option bbmd_port '47808' #In general, 47808 is used as the default port 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 24 + 25 +config settings 'bacdev_1' 26 + option device_name 'LHT65N-1' #The identification name of the bacnet device 27 + option device_id '10001' #The unique identification code in the same network segment of BACnet,Scope is(1 - 4194302) 28 + option device_port '47912' #The IP port occupied by Bacnet when it starts, Scope is (1024 - 65535) 29 + 30 +config settings 'bacdev_2' 31 + option device_name 'LHT65N-2' 32 + option device_id '10002' 33 + option device_port '47913' 34 + 35 +=== 2.7.2 Run BACnet === 36 + 37 +After the configuration is complete, run the following command to start BACnet, The following are two ways to run BACnet: 38 + 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 + 41 +bacserver -c -s 42 + 43 +(2) Without /etc/config/bacnet, and to run the registration server on the current machine, start it with the following command: 44 + 45 +bacserver -s -a 10.130.2.80 -p 47808 46 + 47 +This command simulates two devices, with device IDs 47910 and 47911 48 + 49 +Enter bacserver -h to output help 50 + 51 +bacserver -h 52 + 53 +[[image:image-20230327154700-3.png]] 54 + 55 +=== 2.7.3 Read devices and modify devices === 56 + 57 +Enter baccli -h to output help 58 + 59 +baccli -h 60 + 61 +[[image:image-20230327165836-1.png]] 62 + 63 +**Examples:** 64 + 65 +(1) List the current Bacnet devices: 66 + 67 +baccli -l -a 68 + 69 +[[image:image-20230327174537-3.png]] 70 + 71 +(2) List device information based on device ID: 72 + 73 +baccli -l -i id 74 + 75 +[[image:image-20230327174556-4.png]] 76 + 77 +(3) List the device details by device ID: 78 + 79 +baccli -l -v -i id 80 + 81 +(4) Modify the specified attribute value based on the device ID: 82 + 83 +baccli -i id -p prop -w value 84 + 85 +[[image:image-20230327174853-5.png]] 86 + 87 +The user can check the data of the device by using the **[[yabe BACnet tool>>https://sourceforge.net/projects/yetanotherbacnetexplorer/]]** 88 + 89 +[[image:image-20230327171824-2.png]] 90 + 91 +
- image-20230401114036-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +78.3 KB - Content
- image-20230401114458-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +19.2 KB - Content