Project

General

Profile

DTXr doc » History » Version 79

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