Project

General

Profile

DTXr doc » History » Version 81

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