Project

General

Profile

DTXr doc » History » Version 78

David Fredriksson, 12/09/2025 05:09 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 78 David Fredriksson
DTXr is configured through the *Menu → Setup* page.  
81
All configuration settings are grouped into logical sections. Each section below provides a functional overview of what the user can configure.  
82
Values are stored in *settings.json* and applied system-wide after pressing *Save*.
83 1 Torbjorn Carlqvist Admin
84 78 David Fredriksson
*Important:*  
85
When a *remote device* is selected from the HUB interface, *a manual page refresh is required* to update configuration data.  
86
Local device information updates in real time.
87 1 Torbjorn Carlqvist Admin
88 78 David Fredriksson
---
89 1 Torbjorn Carlqvist Admin
90 78 David Fredriksson
h4. System
91 1 Torbjorn Carlqvist Admin
92 78 David Fredriksson
Contains all fundamental system-level access and identity configuration.
93 1 Torbjorn Carlqvist Admin
94 78 David Fredriksson
* Administrator Account  
95
  - Configure the password of the fixed “admin” user.  
96
* Operator Account  
97
  - Optional user with limited access for HMIs or machine operation.  
98
  - Username, password and start page can be assigned.  
99
* Developer Account  
100
  - Optional higher-level user with configurable module permissions  
101
    (code, objects, API, blocks, diagram, setup).  
102
* Logging  
103
  - Set the system-wide log level (Debug, Info, Warning, Error).  
104
* Hardware Platform  
105
  - Select hardware profile (PC/server, Mira/Mesh, LION, etc.).  
106
  - This controls the enable/disable state of platform-specific modules.
107
108 1 Torbjorn Carlqvist Admin
---
109 77 David Fredriksson
110 78 David Fredriksson
h4. BACnet
111 1 Torbjorn Carlqvist Admin
112 78 David Fredriksson
Defines all BACnet/IP protocol parameters for the device.
113 1 Torbjorn Carlqvist Admin
114 78 David Fredriksson
* Device Identity  
115
  - Device ID, Device Name.  
116
* Security  
117
  - BACnet password (used for Device Communication Control).  
118
* Protocol Settings  
119
  - Segmentation, Max APDU, Vendor ID and other low-level options.  
120
* Network Mode  
121
  - Basic IP communication behaviour (broadcast, BBMD usage when applicable).
122 1 Torbjorn Carlqvist Admin
123 78 David Fredriksson
This section is essential when integrating DTXr into a BACnet building automation network.
124 1 Torbjorn Carlqvist Admin
125
---
126 77 David Fredriksson
127 78 David Fredriksson
h4. Wireless Mesh
128 1 Torbjorn Carlqvist Admin
129 78 David Fredriksson
Provides access to the mesh radio configuration on supported hardware.
130 1 Torbjorn Carlqvist Admin
131 78 David Fredriksson
* Enable/Disable Mesh  
132
* Mesh Credentials  
133
  - Security keys, network key and authentication key.  
134
* Node Role  
135
  - Coordinator / Router / End Device.  
136
* Provisioning QR Code  
137
  - Device can generate a QR code containing mesh network credentials.
138 77 David Fredriksson
139 78 David Fredriksson
Note: Mesh options are disabled on platform types that do not support radio.
140 77 David Fredriksson
141
---
142
143 78 David Fredriksson
h4. Bluetooth
144 77 David Fredriksson
145 78 David Fredriksson
Configuration for onboard Bluetooth LE services (if supported by the platform).
146 77 David Fredriksson
147 78 David Fredriksson
* Bluetooth Console  
148
  - Enables BLE-based console output.  
149
* Beacon Mode  
150
  - Enables BLE advertisement and optional custom beacon name.  
151
* Address Visibility and Power Settings  
152
  - Controls how the device broadcasts itself to the environment.
153 77 David Fredriksson
154 78 David Fredriksson
These options are automatically enabled or disabled depending on the selected platform type.
155 77 David Fredriksson
156
---
157
158 78 David Fredriksson
h4. LION Interface
159 77 David Fredriksson
160 78 David Fredriksson
Shown only on LION-enabled platforms.
161 77 David Fredriksson
162 78 David Fredriksson
* Enable/Disable LION module support.  
163
* Hardware Extensions  
164
  - Configures behaviour of LION-specific IO hardware.  
165
* Channel Behavior  
166
  - Digital/analog features depending on LION product family.
167 77 David Fredriksson
168
---
169
170 78 David Fredriksson
h4. Davitor Advantage
171 77 David Fredriksson
172 78 David Fredriksson
Configuration for optional DAVITOR cloud lifecycle management.
173 77 David Fredriksson
174 78 David Fredriksson
* DRK (Davitor Reference Key)  
175
  - Used for remote maintenance and PLM link.  
176
* PLM Connectivity  
177
  - Service URL and communication settings when using cloud management.
178 77 David Fredriksson
179
---
180
181 78 David Fredriksson
h4. External Database Access
182 77 David Fredriksson
183 78 David Fredriksson
Lets the DTXr device communicate with an external SQL/NoSQL database.
184 77 David Fredriksson
185 78 David Fredriksson
* Connection  
186
  - Host, port and protocol information.  
187
* Credentials  
188
  - Username/password for authenticated connections.  
189
* Sync/Logging Options  
190
  - Defines how data is written externally (trend logs, events, custom data).
191 77 David Fredriksson
192
---
193
194 78 David Fredriksson
h4. File Integration
195 77 David Fredriksson
196 78 David Fredriksson
Tools for importing/exporting system content.
197 77 David Fredriksson
198 78 David Fredriksson
* Backup / Restore  
199
  - Download the current configuration or upload a saved configuration.  
200
* Project File Upload  
201
  - Add or replace project assets (HMIs, scripts, diagrams).  
202
* Logs  
203
  - Download generated logs for troubleshooting.
204 77 David Fredriksson
205
---
206
207 78 David Fredriksson
h4. HTTP Server
208 77 David Fredriksson
209 78 David Fredriksson
Controls how the embedded DTXr HTTP(S) service behaves.
210 77 David Fredriksson
211 78 David Fredriksson
* Port Configuration  
212
  - Default HTTP port is 9090.  
213
* HTTPS / TLS  
214
  - Optional encrypted access.  
215
* Session Timeout  
216
  - Auto-logout delay for inactive users.  
217
* Allowed Hosts  
218
  - Restrict network clients that can access the interface.
219 77 David Fredriksson
220
---
221
222 78 David Fredriksson
h4. Email
223 77 David Fredriksson
224 78 David Fredriksson
Allows the device to send or receive email for automation events.
225 77 David Fredriksson
226 78 David Fredriksson
* SMTP Server  
227
  - Address, port, TLS/STARTTLS.  
228
* Authentication  
229
  - Optional username/password.  
230
* Attachments Folder  
231
  - Path where incoming email attachments are stored.
232 77 David Fredriksson
233 78 David Fredriksson
---
234 77 David Fredriksson
235 78 David Fredriksson
h4. Location Services
236
237
The device can determine its location automatically.
238
239
* Automatic Geolocation  
240
  - Queries an external geolocation service to populate latitude/longitude.  
241
* Manual Input  
242
  - User can override location if browser access is restricted.
243
244 77 David Fredriksson
---
245
246 78 David Fredriksson
h4. IoT HUB (BETA)
247 77 David Fredriksson
248 78 David Fredriksson
Early-stage experimental cloud integration.
249 77 David Fredriksson
250 78 David Fredriksson
* Backend URL  
251
  - IoT gateway endpoint.  
252
* Device Token  
253
  - Authentication token for cloud usage.  
254
* Upload Options  
255
  - Define what data the device forwards (events, logs, telemetry).
256 77 David Fredriksson
257 78 David Fredriksson
---
258
259
h4. Save & Refresh
260
261
* Save  
262
  - Commits all modified settings to settings.json.  
263
* Refresh  
264
  - Reloads settings from device memory.  
265
  - Required after switching to a remote device.
266
267 76 David Fredriksson
268
---
269 1 Torbjorn Carlqvist Admin
270 76 David Fredriksson
271
* BACnet
272 1 Torbjorn Carlqvist Admin
** _TBD..._
273 76 David Fredriksson
274
* Davitor Advantage
275 1 Torbjorn Carlqvist Admin
** _TBD..._
276 76 David Fredriksson
277
* Wireless Mesh
278 1 Torbjorn Carlqvist Admin
** _TBD..._
279 76 David Fredriksson
280
* Bluetooth
281 1 Torbjorn Carlqvist Admin
** _TBD..._
282 76 David Fredriksson
283
* External Database Access
284 1 Torbjorn Carlqvist Admin
** _TBD..._
285
286 76 David Fredriksson
* File Integration
287 1 Torbjorn Carlqvist Admin
** _TBD..._
288 76 David Fredriksson
289 1 Torbjorn Carlqvist Admin
* HTTP
290 76 David Fredriksson
** _TBD..._
291
292
* LION Interface
293 1 Torbjorn Carlqvist Admin
** _TBD..._
294 76 David Fredriksson
295 1 Torbjorn Carlqvist Admin
* IoT HUB (BETA)
296 76 David Fredriksson
** _TBD..._
297 1 Torbjorn Carlqvist Admin
298 76 David Fredriksson
h3. User's Guide
299
300
h2. DTXr Web Interface – End User Documentation
301
302
*Important:*  
303
When selecting a *remote BACnet device*, the object list and notifications *do not update automatically*.  
304
You must press *@Objects → Refresh@* to reload the data.
305
306 1 Torbjorn Carlqvist Admin
For the *local device that hosts the web page*, all updates (property changes, events, alarms) are received *in real time*.
307 76 David Fredriksson
308 1 Torbjorn Carlqvist Admin
---
309 76 David Fredriksson
310 1 Torbjorn Carlqvist Admin
h3. 1. Overview
311 76 David Fredriksson
The DTXr web interface allows users to:
312
* View BACnet objects and their properties
313 1 Torbjorn Carlqvist Admin
* Modify writable properties (e.g., Present Value)
314 76 David Fredriksson
* Edit weekly schedules
315 1 Torbjorn Carlqvist Admin
* Switch between local and remote devices
316 76 David Fredriksson
* Monitor alarms, events, and notifications
317
* Use real-time updates through WebSocket (local device only)
318
319
---
320 1 Torbjorn Carlqvist Admin
321 76 David Fredriksson
h3. 2. Navigation Bar
322
323 1 Torbjorn Carlqvist Admin
h4. 2.1 Objects Menu
324 76 David Fredriksson
* *Refresh* reloads all object data and events.
325
326
_Note: Refresh is required when a remote device is selected._
327
328 1 Torbjorn Carlqvist Admin
h4. 2.2 Devices Menu
329 76 David Fredriksson
* Displays local device and all discovered BACnet devices.
330
* Devices are grouped by network.
331
* Selecting a device loads its object list.
332
333
h4. 2.3 Priority Menu
334 75 David Fredriksson
Controls the *BACnet write priority* used when writing Present Value.
335 76 David Fredriksson
336
Examples:
337
* Priority 1 – Manual Life Safety
338
* Priority 8 – Default
339 75 David Fredriksson
* Priority 16 – Lowest
340 76 David Fredriksson
341 75 David Fredriksson
h4. 2.4 Notifications Menu
342 76 David Fredriksson
Shows:
343 75 David Fredriksson
* Alarms
344 76 David Fredriksson
* Events
345 75 David Fredriksson
* Return-to-normal
346
347 76 David Fredriksson
The menu uses badge counters:
348
* Yellow = events  
349
* Red = alarms  
350
* Green = normal transitions  
351
352 75 David Fredriksson
---
353 76 David Fredriksson
354
h3. 3. Objects View
355
356
The main view lists all BACnet objects.
357
358
Features:
359 75 David Fredriksson
* Collapsible categories (accordions)
360 76 David Fredriksson
* Lazy loading of properties when expanded
361
* Editable Present Value fields where supported
362
* Real-time updates on the *local* device
363
* Manual refresh required for *remote* devices
364
365
h4. 3.1 Expanding an Object
366 1 Torbjorn Carlqvist Admin
Expanding an object loads:
367 76 David Fredriksson
* Properties
368 42 David Fredriksson
* Values
369 76 David Fredriksson
* Writable fields
370 13 Torbjorn Carlqvist Admin
* Schedule editor button (if applicable)
371 76 David Fredriksson
372
h4. 3.2 Writing Property Values
373 11 Torbjorn Carlqvist Admin
Steps:
374 76 David Fredriksson
# Edit a value in the input field.
375
# Press the Write/Save button.
376
# DTXr sends a BACnet WriteProperty with the selected priority.
377
# A popup shows success or error.
378
379 14 Torbjorn Carlqvist Admin
---
380 76 David Fredriksson
381
h3. 4. Device Discovery
382 14 Torbjorn Carlqvist Admin
383 11 Torbjorn Carlqvist Admin
h4. 4.1 Discovering Devices
384 76 David Fredriksson
Opening the *Devices* dropdown sends a Who-Is request and populates the list.
385 14 Torbjorn Carlqvist Admin
386 76 David Fredriksson
h4. 4.2 Selecting a Device
387
When switching devices:
388
* Properties reload
389
* Notification list reloads
390 11 Torbjorn Carlqvist Admin
* The selected device name appears in the navbar
391 76 David Fredriksson
392 11 Torbjorn Carlqvist Admin
h4. 4.3 Refreshing Content
393 76 David Fredriksson
*Mandatory* when using remote devices.
394 14 Torbjorn Carlqvist Admin
395 76 David Fredriksson
Use:
396
@Objects → Refresh@
397
398
This reloads:
399 11 Torbjorn Carlqvist Admin
* Object list
400 76 David Fredriksson
* Property values
401
* Notifications
402
403 1 Torbjorn Carlqvist Admin
---
404 76 David Fredriksson
405
h3. 5. Notifications and Events
406
407
Notifications include:
408
* Alarm
409 19 Torbjorn Carlqvist Admin
* Event
410 76 David Fredriksson
* Normal
411 19 Torbjorn Carlqvist Admin
412 76 David Fredriksson
Real-time updates:
413 1 Torbjorn Carlqvist Admin
* Enabled for local device
414 76 David Fredriksson
* Disabled for remote devices — manual refresh required
415
416 1 Torbjorn Carlqvist Admin
h4. 5.1 Acknowledgment
417 76 David Fredriksson
If a notification supports acknowledgment:
418
* Press _Acknowledge_
419 1 Torbjorn Carlqvist Admin
* DTXr sends BACnet AcknowledgeAlarm
420 76 David Fredriksson
* Notification updates when completed
421
422
---
423
424 1 Torbjorn Carlqvist Admin
h3. 6. Weekly Schedule Editor
425 76 David Fredriksson
426
h4. 6.1 Opening the Editor
427 1 Torbjorn Carlqvist Admin
Click the schedule property to open the weekly calendar modal.
428 76 David Fredriksson
429
h4. 6.2 Creating Events
430
Select a time in the calendar to create a new event.
431
432 1 Torbjorn Carlqvist Admin
h4. 6.3 Editing Events
433 76 David Fredriksson
Click an event to modify:
434 1 Torbjorn Carlqvist Admin
* Binary schedule → Active / Inactive
435 76 David Fredriksson
* Analog schedule → numeric value
436 1 Torbjorn Carlqvist Admin
437 76 David Fredriksson
h4. 6.4 Saving the Schedule
438
Click *@Save changes@* to store the weekly schedule.
439
440
The data is:
441
* Compiled into BACnet dailySchedule structures
442 1 Torbjorn Carlqvist Admin
* Sorted chronologically
443 76 David Fredriksson
* Sent to the device as JSON
444 1 Torbjorn Carlqvist Admin
445 76 David Fredriksson
---
446 1 Torbjorn Carlqvist Admin
447 76 David Fredriksson
h3. 7. Popups and Feedback
448
449
Popups indicate:
450 1 Torbjorn Carlqvist Admin
* Success
451 76 David Fredriksson
* Errors
452 1 Torbjorn Carlqvist Admin
* Info
453 76 David Fredriksson
* Warnings
454
455
---
456 1 Torbjorn Carlqvist Admin
457 76 David Fredriksson
h3. 8. Troubleshooting
458
459
h4. 8.1 Objects Not Updating
460
* Remote device selected → press Refresh  
461 1 Torbjorn Carlqvist Admin
* Network or device may be unreachable
462 76 David Fredriksson
463 1 Torbjorn Carlqvist Admin
h4. 8.2 Write Errors
464
Possible reasons:
465
* Incorrect priority  
466
* Object out of service  
467
* Invalid value  
468
469
h4. 8.3 Schedule Issues
470
* No events created  
471
* Missing object ID  
472
* Remote device requires manual refresh  
473
474
---
475
476
h3. Developer's Guide
477
478
[[IDE|IDE walk through]]
479
[[Javascript|The DTXr Javascript guide]]
480
[[Blockly|Blockly tutorials]]