DTXr doc » History » Version 76
David Fredriksson, 12/09/2025 04:51 PM
| 1 | 20 | Torbjorn Carlqvist Admin | {{>toc}} |
|---|---|---|---|
| 2 | |||
| 3 | h1. DTXr documentation |
||
| 4 | 1 | Torbjorn Carlqvist Admin | |
| 5 | 5 | Torbjorn Carlqvist Admin | h3. Installation |
| 6 | 2 | Torbjorn Carlqvist Admin | |
| 7 | 6 | Torbjorn Carlqvist Admin | * System Requirements |
| 8 | 74 | David Fredriksson | DTXr can run on any machine that can run +Java 17+ and has sufficient with RAM and disk capacity. |
| 9 | 1 | Torbjorn Carlqvist Admin | |
| 10 | 21 | Torbjorn Carlqvist Admin | |Requirement|System RAM|System DISK|Example| |
| 11 | |Minimal|512Mbyte|512Mbyte|Raspberry 1, Raspberry Zero| |
||
| 12 | 31 | Torbjorn Carlqvist Admin | |Better|512Mbyte|512Mbyte|Rasberry Zero 2| |
| 13 | |Avarage|1GByte|1Gbyte|Raspberry 2-4| |
||
| 14 | 21 | Torbjorn Carlqvist Admin | |Top|2GByte|8Gbyte|Raspberry 4, Raspberry CM4, Server, PC| |
| 15 | |||
| 16 | 6 | Torbjorn Carlqvist Admin | * Network Requirements |
| 17 | DTXr can run stand alone without any active network connection. In that case the management pages is accessible via localhost interface. But for DTXr to be a fully functional BACnet/IP device it must be connected to an IP network that offers IP address via DHCP and where broadcast traffic is allowed. |
||
| 18 | 10 | Torbjorn Carlqvist Admin | |
| 19 | 1 | Torbjorn Carlqvist Admin | * Download DTXr software packages |
| 20 | 10 | Torbjorn Carlqvist Admin | Currently only customers to DAVITOR can download DTXr. Contact info@davitor.com for purchase information. |
| 21 | |||
| 22 | 15 | Torbjorn Carlqvist Admin | * Install on Linux |
| 23 | 60 | Torbjorn Carlqvist Admin | ** There is special install scripts, please follow these steps: |
| 24 | 22 | Torbjorn Carlqvist Admin | ### Download latest DTXr _base_ image and copy to a SD-card that has 16Gbyte capacity or more |
| 25 | 64 | David Fredriksson | |
| 26 | Or install a new image and install java |
||
| 27 | <pre>sudo apt install default-jdk </pre> |
||
| 28 | |||
| 29 | 22 | Torbjorn Carlqvist Admin | ### Insert the SD card, attach keyboard and screen via cable and start the device |
| 30 | 41 | David Fredriksson | ### When you get prompt login as **admin/davitor** |
| 31 | 72 | Torbjorn Carlqvist Admin | ### Download the installation script from davitor repository |
| 32 | *(note dtx.sh has an update since Jan 17th, 2024 see new parameter 'installfolder' below)* |
||
| 33 | *(note dtx.sh has an update since Nov 6th, 2025 see new parameter 'type' below)* |
||
| 34 | 59 | Torbjorn Carlqvist Admin | <pre>wget --user=**** --password=**** https://artifacts.davitor.com/repository/dtx-raw/scripts/dtx.sh</pre> |
| 35 | 56 | Torbjorn Carlqvist Admin | There is also a utillity script that can set the host name and MAC adress. Note, optional and only applicable on LION product appliances. |
| 36 | 59 | Torbjorn Carlqvist Admin | <pre>wget --user=**** --password=**** https://artifacts.davitor.com/repository/dtx-raw/scripts/system.sh</pre> |
| 37 | 56 | Torbjorn Carlqvist Admin | Make the scripts exec |
| 38 | <pre>sudo chmod 770 *.sh</pre> |
||
| 39 | 1 | Torbjorn Carlqvist Admin | ### Run installation as below where you first alter: |
| 40 | 72 | Torbjorn Carlqvist Admin | *** Required type (-t type) where type can be "scriptengine" for small platforms like RpiZ with 32-bit OS or "polyglot" for any 64-bits OS like servers or PC. |
| 41 | 1 | Torbjorn Carlqvist Admin | *** Required version (-v x.y.z) |
| 42 | 69 | Torbjorn Carlqvist Admin | *** The the install folder (-f myfolder) Note: Still relative to /usr/local so (-f myfolder) results in /usr/local/myfolder/dtx... |
| 43 | 57 | Torbjorn Carlqvist Admin | *** Partner user name (-u ****) |
| 44 | *** Partner password (-p ****) |
||
| 45 | *** Application password for the HTTP interface login on port 9090 (-app-password xxxxxxx) |
||
| 46 | 58 | Torbjorn Carlqvist Admin | *** BACnet Decvice Id (bac-device-id=nnnnn) |
| 47 | 57 | Torbjorn Carlqvist Admin | *** BACnet password which you will use to control the BACnet device DCC (bacnet-password=xxxxxx) |
| 48 | 67 | Torbjorn Carlqvist Admin | *** BACnet Device Name (bac-device-name=yyyy) |
| 49 | 1 | Torbjorn Carlqvist Admin | *** DAVITOR Reference Key (drk=xxxx) is used to mange and maintain this device from the DAVITOR PLM (Product Lifecycle Management) service. (drk=xxxx) The sequence of drk:s is in PLM instance database. |
| 50 | *** Hardware Platform Type (platform=xx) is used to control and switch on/off special features that is hardware dependent. |
||
| 51 | For LION products use: |
||
| 52 | 73 | David Fredriksson | <pre>sudo ./dtx.sh -t scriptengine|polyglot -v 3.2.2 -f myfolder -u **** -p **** -s "bac-device-id=nnnnn bac-device-name=yyyy app-password=xxxxxx bac-password=xxxxxx lion-enabled=true drk=xxxx platform=XX"</pre> |
| 53 | 71 | David Fredriksson | For other installations like PC, Servers etc. use: |
| 54 | 72 | Torbjorn Carlqvist Admin | <pre>sudo ./dtx.sh -t scriptengine|polyglot -v 3.1.23 -f myfolder -u **** -p **** -s "bac-device-id=nnnnn bac-device-name=yyyy app-password=xxxxxx bac-password=xxxxxx drk=xxxx platform=XX"</pre> |
| 55 | 1 | Torbjorn Carlqvist Admin | ### Utillity script to set MAC and host name |
| 56 | 54 | Torbjorn Carlqvist Admin | <pre>sudo ./system.sh -mac 70:B3:D5:16:E8:99 -hn DTX-L1-8R8DI</pre> |
| 57 | 62 | Torbjorn Carlqvist Admin | * Upgrade on linux |
| 58 | 69 | Torbjorn Carlqvist Admin | If you already have DTX installed and should upgrade to a new version *(Don't forget to set correct installfolder with -f)* |
| 59 | 72 | Torbjorn Carlqvist Admin | <pre>sudo ./dtx.sh -t scriptengine|polyglot -v 3.1.23 -f myfolder -u **** -p ****</pre> |
| 60 | 69 | Torbjorn Carlqvist Admin | * Manage the DTX service *(Note, since 17th Jan, 2024 of dtx.sh the names of the services are appended with the instsall folder in order to install multiple instances of DTX in same machine.)* |
| 61 | 70 | Torbjorn Carlqvist Admin | Stop<pre>sudo systemctl stop dtx_{myfolder}</pre> |
| 62 | Start<pre>sudo systemctl start dtx_{myfolder}</pre> |
||
| 63 | Check status<pre>systemctl status dtx_{myfolder}</pre> |
||
| 64 | Disable service, wont start at reboot<pre>sudo systemctl disable dtx_{myfolder}</pre> |
||
| 65 | Enable service, will start automatically at reboot<pre>sudo systemctl enable dtx_{myfolder}</pre> |
||
| 66 | 15 | Torbjorn Carlqvist Admin | |
| 67 | 55 | Torbjorn Carlqvist Admin | * For other Linux distributions follow this steps |
| 68 | 15 | Torbjorn Carlqvist Admin | ### _TBD..._ |
| 69 | |||
| 70 | 1 | Torbjorn Carlqvist Admin | * Install on Windows |
| 71 | ** Follow these steps: |
||
| 72 | 32 | David Fredriksson | ### _TBD..._ |
| 73 | 38 | Torbjorn Carlqvist Admin | |
| 74 | 32 | David Fredriksson | h3. LION Fieldbus |
| 75 | 38 | Torbjorn Carlqvist Admin | |
| 76 | 15 | Torbjorn Carlqvist Admin | * See LION [[LION:Wiki]] for howto in installataion, channel assigmnets and testing. |
| 77 | 1 | Torbjorn Carlqvist Admin | |
| 78 | 76 | David Fredriksson | h3. Setup |
| 79 | 1 | Torbjorn Carlqvist Admin | |
| 80 | 76 | David Fredriksson | DTXr is setup via Menu -> Setup page. |
| 81 | 1 | Torbjorn Carlqvist Admin | |
| 82 | 76 | David Fredriksson | * System |
| 83 | ** Administrator password - Password for the default (and not changeable) account **"admin"**. Default is **"davitor"**. |
||
| 84 | _When you log in you will start att /home/admin |
||
| 85 | There is another user "pi" as well with a secret password._ |
||
| 86 | ** Operator username - Username for the typical user of any HMI developed on this device. Typically a machine operator. [Optional] |
||
| 87 | ** Operator password - Password for the operator user. [Optional] |
||
| 88 | ** Operator start page - Set any web page in the project folder that will automatically shown on an operator login. [Optional] |
||
| 89 | ** Log Level - The system severity level for the system_app.log in /Logs tree directory. |
||
| 90 | ** Platform - This is where DTX gets its information on which hardware options to consider. |
||
| 91 | 1 | Torbjorn Carlqvist Admin | |
| 92 | 76 | David Fredriksson | * BACnet |
| 93 | ** _TBD..._ |
||
| 94 | 1 | Torbjorn Carlqvist Admin | |
| 95 | 76 | David Fredriksson | * Davitor Advantage |
| 96 | ** _TBD..._ |
||
| 97 | 1 | Torbjorn Carlqvist Admin | |
| 98 | 76 | David Fredriksson | * Wireless Mesh |
| 99 | ** _TBD..._ |
||
| 100 | 1 | Torbjorn Carlqvist Admin | |
| 101 | 76 | David Fredriksson | * Bluetooth |
| 102 | ** _TBD..._ |
||
| 103 | 1 | Torbjorn Carlqvist Admin | |
| 104 | 76 | David Fredriksson | * External Database Access |
| 105 | ** _TBD..._ |
||
| 106 | 1 | Torbjorn Carlqvist Admin | |
| 107 | 76 | David Fredriksson | * File Integration |
| 108 | ** _TBD..._ |
||
| 109 | 1 | Torbjorn Carlqvist Admin | |
| 110 | 76 | David Fredriksson | * HTTP |
| 111 | ** _TBD..._ |
||
| 112 | 1 | Torbjorn Carlqvist Admin | |
| 113 | 76 | David Fredriksson | * LION Interface |
| 114 | ** _TBD..._ |
||
| 115 | 1 | Torbjorn Carlqvist Admin | |
| 116 | 76 | David Fredriksson | * IoT HUB (BETA) |
| 117 | ** _TBD..._ |
||
| 118 | 1 | Torbjorn Carlqvist Admin | |
| 119 | |||
| 120 | 76 | David Fredriksson | h3. User's Guide |
| 121 | 1 | Torbjorn Carlqvist Admin | |
| 122 | 76 | David Fredriksson | h2. DTXr Web Interface – End User Documentation |
| 123 | 1 | Torbjorn Carlqvist Admin | |
| 124 | 76 | David Fredriksson | *Important:* |
| 125 | When selecting a *remote BACnet device*, the object list and notifications *do not update automatically*. |
||
| 126 | You must press *@Objects → Refresh@* to reload the data. |
||
| 127 | 1 | Torbjorn Carlqvist Admin | |
| 128 | 76 | David Fredriksson | For the *local device that hosts the web page*, all updates (property changes, events, alarms) are received *in real time*. |
| 129 | 1 | Torbjorn Carlqvist Admin | |
| 130 | 76 | David Fredriksson | --- |
| 131 | 1 | Torbjorn Carlqvist Admin | |
| 132 | 76 | David Fredriksson | h3. 1. Overview |
| 133 | The DTXr web interface allows users to: |
||
| 134 | * View BACnet objects and their properties |
||
| 135 | * Modify writable properties (e.g., Present Value) |
||
| 136 | * Edit weekly schedules |
||
| 137 | * Switch between local and remote devices |
||
| 138 | * Monitor alarms, events, and notifications |
||
| 139 | * Use real-time updates through WebSocket (local device only) |
||
| 140 | 1 | Torbjorn Carlqvist Admin | |
| 141 | 76 | David Fredriksson | --- |
| 142 | 1 | Torbjorn Carlqvist Admin | |
| 143 | 76 | David Fredriksson | h3. 2. Navigation Bar |
| 144 | 1 | Torbjorn Carlqvist Admin | |
| 145 | 76 | David Fredriksson | h4. 2.1 Objects Menu |
| 146 | * *Refresh* reloads all object data and events. |
||
| 147 | 1 | Torbjorn Carlqvist Admin | |
| 148 | 76 | David Fredriksson | _Note: Refresh is required when a remote device is selected._ |
| 149 | 1 | Torbjorn Carlqvist Admin | |
| 150 | 76 | David Fredriksson | h4. 2.2 Devices Menu |
| 151 | * Displays local device and all discovered BACnet devices. |
||
| 152 | * Devices are grouped by network. |
||
| 153 | * Selecting a device loads its object list. |
||
| 154 | 1 | Torbjorn Carlqvist Admin | |
| 155 | 76 | David Fredriksson | h4. 2.3 Priority Menu |
| 156 | Controls the *BACnet write priority* used when writing Present Value. |
||
| 157 | 1 | Torbjorn Carlqvist Admin | |
| 158 | 76 | David Fredriksson | Examples: |
| 159 | * Priority 1 – Manual Life Safety |
||
| 160 | * Priority 8 – Default |
||
| 161 | * Priority 16 – Lowest |
||
| 162 | 1 | Torbjorn Carlqvist Admin | |
| 163 | 76 | David Fredriksson | h4. 2.4 Notifications Menu |
| 164 | Shows: |
||
| 165 | * Alarms |
||
| 166 | * Events |
||
| 167 | * Return-to-normal |
||
| 168 | 75 | David Fredriksson | |
| 169 | 76 | David Fredriksson | The menu uses badge counters: |
| 170 | * Yellow = events |
||
| 171 | * Red = alarms |
||
| 172 | * Green = normal transitions |
||
| 173 | 75 | David Fredriksson | |
| 174 | 76 | David Fredriksson | --- |
| 175 | 75 | David Fredriksson | |
| 176 | 76 | David Fredriksson | h3. 3. Objects View |
| 177 | 75 | David Fredriksson | |
| 178 | 76 | David Fredriksson | The main view lists all BACnet objects. |
| 179 | 75 | David Fredriksson | |
| 180 | Features: |
||
| 181 | 76 | David Fredriksson | * Collapsible categories (accordions) |
| 182 | * Lazy loading of properties when expanded |
||
| 183 | * Editable Present Value fields where supported |
||
| 184 | * Real-time updates on the *local* device |
||
| 185 | * Manual refresh required for *remote* devices |
||
| 186 | 75 | David Fredriksson | |
| 187 | 76 | David Fredriksson | h4. 3.1 Expanding an Object |
| 188 | Expanding an object loads: |
||
| 189 | * Properties |
||
| 190 | * Values |
||
| 191 | * Writable fields |
||
| 192 | * Schedule editor button (if applicable) |
||
| 193 | 75 | David Fredriksson | |
| 194 | 76 | David Fredriksson | h4. 3.2 Writing Property Values |
| 195 | Steps: |
||
| 196 | # Edit a value in the input field. |
||
| 197 | # Press the Write/Save button. |
||
| 198 | # DTXr sends a BACnet WriteProperty with the selected priority. |
||
| 199 | # A popup shows success or error. |
||
| 200 | 1 | Torbjorn Carlqvist Admin | |
| 201 | 76 | David Fredriksson | --- |
| 202 | 42 | David Fredriksson | |
| 203 | 76 | David Fredriksson | h3. 4. Device Discovery |
| 204 | 13 | Torbjorn Carlqvist Admin | |
| 205 | 76 | David Fredriksson | h4. 4.1 Discovering Devices |
| 206 | Opening the *Devices* dropdown sends a Who-Is request and populates the list. |
||
| 207 | 11 | Torbjorn Carlqvist Admin | |
| 208 | 76 | David Fredriksson | h4. 4.2 Selecting a Device |
| 209 | When switching devices: |
||
| 210 | * Properties reload |
||
| 211 | * Notification list reloads |
||
| 212 | * The selected device name appears in the navbar |
||
| 213 | 14 | Torbjorn Carlqvist Admin | |
| 214 | 76 | David Fredriksson | h4. 4.3 Refreshing Content |
| 215 | *Mandatory* when using remote devices. |
||
| 216 | 14 | Torbjorn Carlqvist Admin | |
| 217 | 11 | Torbjorn Carlqvist Admin | Use: |
| 218 | 76 | David Fredriksson | @Objects → Refresh@ |
| 219 | 14 | Torbjorn Carlqvist Admin | |
| 220 | 76 | David Fredriksson | This reloads: |
| 221 | * Object list |
||
| 222 | * Property values |
||
| 223 | * Notifications |
||
| 224 | 11 | Torbjorn Carlqvist Admin | |
| 225 | 76 | David Fredriksson | --- |
| 226 | 11 | Torbjorn Carlqvist Admin | |
| 227 | 76 | David Fredriksson | h3. 5. Notifications and Events |
| 228 | 14 | Torbjorn Carlqvist Admin | |
| 229 | 76 | David Fredriksson | Notifications include: |
| 230 | * Alarm |
||
| 231 | * Event |
||
| 232 | * Normal |
||
| 233 | 11 | Torbjorn Carlqvist Admin | |
| 234 | 76 | David Fredriksson | Real-time updates: |
| 235 | * Enabled for local device |
||
| 236 | * Disabled for remote devices — manual refresh required |
||
| 237 | 1 | Torbjorn Carlqvist Admin | |
| 238 | 76 | David Fredriksson | h4. 5.1 Acknowledgment |
| 239 | If a notification supports acknowledgment: |
||
| 240 | * Press _Acknowledge_ |
||
| 241 | * DTXr sends BACnet AcknowledgeAlarm |
||
| 242 | * Notification updates when completed |
||
| 243 | 19 | Torbjorn Carlqvist Admin | |
| 244 | 76 | David Fredriksson | --- |
| 245 | 19 | Torbjorn Carlqvist Admin | |
| 246 | 76 | David Fredriksson | h3. 6. Weekly Schedule Editor |
| 247 | 1 | Torbjorn Carlqvist Admin | |
| 248 | 76 | David Fredriksson | h4. 6.1 Opening the Editor |
| 249 | Click the schedule property to open the weekly calendar modal. |
||
| 250 | 1 | Torbjorn Carlqvist Admin | |
| 251 | 76 | David Fredriksson | h4. 6.2 Creating Events |
| 252 | Select a time in the calendar to create a new event. |
||
| 253 | 1 | Torbjorn Carlqvist Admin | |
| 254 | 76 | David Fredriksson | h4. 6.3 Editing Events |
| 255 | Click an event to modify: |
||
| 256 | * Binary schedule → Active / Inactive |
||
| 257 | * Analog schedule → numeric value |
||
| 258 | 1 | Torbjorn Carlqvist Admin | |
| 259 | 76 | David Fredriksson | h4. 6.4 Saving the Schedule |
| 260 | Click *@Save changes@* to store the weekly schedule. |
||
| 261 | 1 | Torbjorn Carlqvist Admin | |
| 262 | 76 | David Fredriksson | The data is: |
| 263 | * Compiled into BACnet dailySchedule structures |
||
| 264 | * Sorted chronologically |
||
| 265 | * Sent to the device as JSON |
||
| 266 | 1 | Torbjorn Carlqvist Admin | |
| 267 | 76 | David Fredriksson | --- |
| 268 | 1 | Torbjorn Carlqvist Admin | |
| 269 | 76 | David Fredriksson | h3. 7. Popups and Feedback |
| 270 | 1 | Torbjorn Carlqvist Admin | |
| 271 | 76 | David Fredriksson | Popups indicate: |
| 272 | * Success |
||
| 273 | * Errors |
||
| 274 | * Info |
||
| 275 | * Warnings |
||
| 276 | 1 | Torbjorn Carlqvist Admin | |
| 277 | 76 | David Fredriksson | --- |
| 278 | 1 | Torbjorn Carlqvist Admin | |
| 279 | 76 | David Fredriksson | h3. 8. Troubleshooting |
| 280 | 1 | Torbjorn Carlqvist Admin | |
| 281 | 76 | David Fredriksson | h4. 8.1 Objects Not Updating |
| 282 | * Remote device selected → press Refresh |
||
| 283 | * Network or device may be unreachable |
||
| 284 | 1 | Torbjorn Carlqvist Admin | |
| 285 | 76 | David Fredriksson | h4. 8.2 Write Errors |
| 286 | 1 | Torbjorn Carlqvist Admin | Possible reasons: |
| 287 | 76 | David Fredriksson | * Incorrect priority |
| 288 | * Object out of service |
||
| 289 | * Invalid value |
||
| 290 | 1 | Torbjorn Carlqvist Admin | |
| 291 | 76 | David Fredriksson | h4. 8.3 Schedule Issues |
| 292 | * No events created |
||
| 293 | * Missing object ID |
||
| 294 | * Remote device requires manual refresh |
||
| 295 | 1 | Torbjorn Carlqvist Admin | |
| 296 | 76 | David Fredriksson | --- |
| 297 | 1 | Torbjorn Carlqvist Admin | |
| 298 | h3. Developer's Guide |
||
| 299 | |||
| 300 | [[IDE|IDE walk through]] |
||
| 301 | [[Javascript|The DTXr Javascript guide]] |
||
| 302 | [[Blockly|Blockly tutorials]] |