Changes for page BACnet
Last modified by Kilight Cao on 2025/06/03 14:23
From version 19.1
edited by Kilight Cao
on 2023/04/01 16:24
on 2023/04/01 16:24
Change comment:
There is no comment for this version
To version 35.1
edited by Kilight Cao
on 2025/06/03 14:23
on 2025/06/03 14:23
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 10 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -18,177 +18,135 @@ 18 18 === 1.1.2 List supported products and requirements === 19 19 20 20 21 -Gateway model: LPS8v2,LG01v2,MS20 21 +Gateway model: LPS8v2,LG01v2,MS20,MS48-LR 22 22 23 23 24 -= =1.2Downloadand InstalltheBACnet ==24 += 2. Bridge LoRaWAN network to BACnet network = 25 25 26 26 27 -(% class="box infomessage" %) 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 31 -))) 27 +By following the steps below in the configuration example, Users can convert the uplink data of the lorawan sensor to BACnet data 32 32 33 - [[image:image-20230401114036-1.png]]29 +LPS8v2 includes a local ChirpStack Server. This example shows how to configure SN50V3_LB to use with BACnet. This example assumes users already have: 34 34 31 +* SN50V3_LB register on LPS8v2 Built-In ChirpStack server already 32 +* The user is able to see the data on the built-in ChirpStack server device page. 35 35 36 - ==1.3Configure BACnet==34 +Below are the steps to configure lps8v2 BACnet. 37 37 38 -After BACnet is installed, run commands to modify BACnet configurations 39 39 40 - **Note:device_portand bacnet_ip_portare notset to the same**37 +== 2.1 Register gateway == 41 41 42 -(% class="box infomessage" %) 43 -((( 44 -nano /etc/config/bacnet 45 -))) 46 46 47 - **Examples:**40 +For information on how to register a gateway connection to chirpstack, please refer to the link: 48 48 49 -(% class="box infomessage" %) 50 -((( 51 -config settings 'general' 52 - option bacnet_ip '10.130.2.80' #The IP address of the BACnetIP network, here basically the same IP as the bbmd address below 53 - 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 54 - option bbmd_address '10.130.2.80' #bbmd is the BACnet registration server. Only one bbmd server is required in the same ip network 55 - option bbmd_port '47808' #In general, 47808 is used as the default port 56 - 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 -))) 42 +**[[https:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.A0SemtechUDPforChirpStackv4>>https://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.A0SemtechUDPforChirpStackv4]]** 58 58 59 -(% class="box infomessage" %) 60 -((( 61 -config settings 'bacdev_1' 62 - option device_name 'LHT65N-1' #The identification name of the bacnet device 63 - option device_id '10001' #The unique identification code in the same network segment of BACnet,Scope is(1 - 4194302) 64 - option device_port '47912' #The IP port occupied by Bacnet when it starts, Scope is (1024 - 65535) 65 -))) 66 66 67 -(% class="box infomessage" %) 68 -((( 69 -config settings 'bacdev_2' 70 - option device_name 'LHT65N-2' 71 - option device_id '10002' 72 - option device_port '47913' 73 -))) 45 +== 2.2 Register Node == 74 74 75 - ==1.4RunBACnet==47 +For information on how to register a Node connection to chirpstack, please refer to the link: 76 76 77 - Afterthe configurationiscomplete, runhellowingcommandstartBACnet, The following aretwo waystoun BACnet:49 +**[[https:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H2.A0Nodeusageintroduction>>https://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H2.A0Nodeusageintroduction]]** 78 78 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 80 81 -(% class="box infomessage" %) 82 -((( 83 -bacserver -c -s 84 -))) 52 +== 2.3 Configure BACnet == 85 85 86 - (2) Without /etc/config/bacnet, andtorunthe registrationserveronthecurrentmachine, startit with the followingcommand:54 +After completing the steps of registering the gateway and nodes as mentioned above, start configuring BACnet 87 87 88 -(% class="box infomessage" %) 89 -((( 90 -bacserver -s -a 10.130.2.80 -p 47808 91 -))) 56 +Video on the configuration of BACnet: **[[Configure BACnet>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/AFiUxd9aLHMBUDN-7294vpM/LoRaWAN%20Gateway/MS48-LR/Video?rlkey=ojjcsw927eaow01dgooldq3nu&subfolder_nav_tracking=1&dl=0]]** 92 92 93 -This command simulates two devices, with device IDs 47910 and 47911 94 94 95 - Enterbacserver-htooutput help59 +=== Step 1. Enable BACnet === 96 96 97 -(% class="box infomessage" %) 98 -((( 99 -bacserver -h 100 -))) 61 +First, Uesrs need to click "**BACnet~-~->BACnet Server**" in the page 101 101 102 - [[image:image-20230401114458-2.png]]63 +1.(% style="color:blue" %)**Enable BACnet**(%%):enable/ disable the BACnet mode 103 103 104 - == 1.5Readdevicesandmodify devices ==65 +2.(% style="color:blue" %)**Mode**(%%):Configure the UDP mode 105 105 106 - Enteraccli-hto outputhelp67 +3.(% style="color:blue" %)**UDP Port**(%%):UDP/IP port number for BACnet/IP communications. 107 107 108 -(% class="box infomessage" %) 109 -((( 110 -baccli -h 111 -))) 69 +4.(% style="color:blue" %)**Device ID**(%%):This is the unique BACnet device identifier. The user has to be careful to avoid conflicts, by choosing an identifier, that is not currently used on the network. 112 112 113 - [[image:image-20230401114641-3.png]]71 +5.(% style="color:blue" %)**Device Name**(%%):Determined by the manufacturer, indicating the device model. 114 114 73 +6.(% style="color:blue" %)**Enable BBMD**(%%):BBMD is a "BACnet/IP Broadcast Management Device" and is used to distribute BACnet broadcast messages throughout a BACnet/IP network consisting of interconnected TCP/IP sub-networks. A BBMD forwards BACnet/IP broadcast messages sent by devices connected to its subnet to peer BBMDs. Upon arrival at a destination BBMD, the message is then re-broadcast on that subnet. BACnet/IP broadcast messages are also sent to registered BACnet/IP Foreign Devices. 115 115 116 -** Examples:**75 +7.(% style="color:blue" %)**BBMD IP Address**(%%):IPv4 address of BBMD or external device registrar. 117 117 118 -( 1)ListtheentBacnet devices:77 +8.(% style="color:blue" %)**BBMD IP Port**(%%):UDP/IP port number for external device registration 119 119 120 -(% class="box infomessage" %) 121 -((( 122 -baccli -l -a 123 -))) 79 +9.(% style="color:blue" %)**BBMD Subnet Mask**(%%):UDP/IP Subnet Mask number for external device registration 124 124 125 - [[image:image-20230401114653-4.png]]81 +10.(% style="color:blue" %)**BBMD TimeToLive**(%%):Number of seconds used in Foreign Device Registration. 126 126 83 +11.(% style="color:blue" %)**Save&Apply**(%%):Click after the configuration is completed 127 127 128 - (2)Listdeviceinformation basedondevice ID:85 +12.(% style="color:blue" %)**Refresh**(%%):Refresh the configuration 129 129 130 -(% class="box infomessage" %) 131 -((( 132 -baccli -l -i id 133 -))) 87 +[[image:image-20250603115501-1.png]] 134 134 135 -[[image:image-20230401114706-5.png]] 136 136 137 - (3)List thedevicedetailsbydeviceID:90 +After starting BACnet, use Yabe BACnet tool to check 138 138 139 -(% class="box infomessage" %) 140 -((( 141 -baccli -l -v -i id 142 -))) 92 +Click the "[[image:image-20250603134823-3.png]]" to configure the connection to BACnet. Note that the Port needs to match the previous step, and the local endpoint is the address of the local host 143 143 144 - (4) Modify thespecifiedattributevalue based onthedeviceID:94 +[[image:image-20250603134617-2.png||height="795" width="1262"]] 145 145 146 -(% class="box infomessage" %) 147 -((( 148 -baccli -i id -p prop -w value 149 -))) 96 +[[image:image-20250603134854-4.png||height="796" width="1262"]] 150 150 151 -[[image:image-20230401114720-6.png]] 152 152 99 +=== Step 2. Configure BACnet Object === 153 153 154 -(5)Check the results using the BACnet tool 155 155 156 -The user can checkthedataofthedevice by using the**[[yabeool>>https://sourceforge.net/projects/yetanotherbacnetexplorer/]]**102 +The user returns to the "**BACnet~-~->BACnet Object**" interface to generate object data 157 157 158 - [[image:image-20230401114729-7.png||height="521"width="1077"]]104 +(% style="color:blue" %)**Object Name**(%%):Show the name of the BACnet object already created. 159 159 106 +(% style="color:blue" %)**Object Type**(%%):Show the type of the BACnet object already created. 160 160 161 -= =1.6 Example:How totransferdatatoBACnetvia LoRaWANin LPS8v2 ==108 +(% style="color:blue" %)**Object Value**(%%):Show the Object value of the BACnet object already created. 162 162 163 - LPS8v2includes alocalTTN Serverand Node-Red.Thisexample showshowto configure LHT65Nto usewiththe BACnet.Thisexampleassumes users alreadyhave:110 +(% style="color:blue" %)**Object Units**(%%):Show the units of the BACnet object already created. 164 164 165 -* LHT65N register on LPS8v2 Built-In TTN server already 166 -* The user is able to see the data on the built-in TTN server device page. 167 -* The LPS8v2 already has BACnet installed 112 +(% style="color:blue" %)**Object Description**(%%):Set the description of the BACnet object. 168 168 169 - Beloware thestepsoplot thesensordataonLPS8v2BACnet.114 +(% style="color:blue" %)**Last Seen**(%%):Show the latest update time of the current value of the BACnet object already created. 170 170 116 +[[image:image-20250603141757-10.png||height="283" width="1321"]] 171 171 172 -=== 1.6.1 Link BACnet to Local TTN === 173 173 174 - UserscandownloadtheNode-Reddecoderfromthislinkand importit intotheNode-Redplatform: **[[attach:LHT65N_TTN_to_BACnet.json||target="_blank"]]**119 +When the chirpstack built into the gateway can view the decoded data, click "**Create Objects**" in the "**BACnet~-~->BACnet Object**" page to check the sensor data and add it to the BACnet Object. 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]]**121 +[[image:image-20250603140126-6.png||height="656" width="1247"]] 177 177 178 178 179 - Afterimporting theInput Flow is complete,the userneedstoedittheMQTT in the node124 +For example, configure the BACnet sensor data as follows 180 180 181 - Userscan edittheMQTT node redcoloryreferringtothefollowing link:126 +1.(% style="color:blue" %)**Create Objects**(%%):Create Object 182 182 183 - [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20TTN/#H6.3A0Example:UseLocalServerTTNandNode-RedinLPS8v2>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20TTN/#H6.3A0Example:UseLocalServerTTNandNode-RedinLPS8v2]]128 +2.(% style="color:blue" %)**LoRa Device**(%%):Select the sensor device DevEUI that needs to be added 184 184 185 - [[image:image-20230401144951-10.png||height="814"width="1223"]]130 +3.(% style="color:blue" %)**Decode key**(%%):Select the required sensor decoding data 186 186 187 - === 1.6.2Checkresult.===132 +4.(% style="color:blue" %)**Object Name**(%%):Configure object Name 188 188 189 - [[image:image-20230401142357-8.png||height="677"width="1232"]]134 +5.(% style="color:blue" %)**Object Type**(%%):Select Object Type 190 190 136 +6.(% style="color:blue" %)**Object Units**(%%):Select the Object unit 191 191 192 - TheBACnettooldisplaysthetemperature, humidity andbattery voltage of theLHT65N138 +7.(% style="color:blue" %)**Object Descripyion**(%%):Set the description of the BACnet object. 193 193 194 -[[image:image-20230401144525-9.png||height="487" width="1237"]] 140 +8.(% style="color:blue" %)**Create** 141 + 142 +[[image:image-20250603140746-8.png||height="577" width="1342"]] 143 + 144 +=== step 3. Check Result === 145 + 146 +After completing all the above configurations, check the BACnet data 147 + 148 +[[image:image-20250603141358-9.png||height="846" width="1342"]] 149 + 150 + 151 + 152 +
- image-20250603115501-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +67.0 KB - Content
- image-20250603134617-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +70.4 KB - Content
- image-20250603134823-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +656 bytes - Content
- image-20250603134854-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +77.7 KB - Content
- image-20250603135033-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +85.2 KB - Content
- image-20250603140126-6.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +110.7 KB - Content
- image-20250603140340-7.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +104.6 KB - Content
- image-20250603140746-8.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +119.5 KB - Content
- image-20250603141358-9.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +69.2 KB - Content
- image-20250603141757-10.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Kilight - Size
-
... ... @@ -1,0 +1,1 @@ 1 +49.7 KB - Content