Project

General

Profile

DTXr doc » History » Version 92

David Fredriksson, 12/09/2025 06:57 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 88 David Fredriksson
h1. User's Guide
82 1 Torbjorn Carlqvist Admin
83 88 David Fredriksson
h2. DTXr Web Interface – End User Documentation
84
85 84 David Fredriksson
h2. 1. Overview
86 86 David Fredriksson
87
h4. The DTXr web interface allows users to:
88 79 David Fredriksson
* View BACnet objects and their properties
89
* Modify writable properties (e.g., Present Value)
90
* Edit weekly schedules
91
* Switch between local and remote devices
92
* Monitor alarms, events, and notifications
93
* Use real-time updates through WebSocket (local device only)
94
95 88 David Fredriksson
96
*Important:*  
97
When selecting a *remote BACnet device*, the object list and notifications *do not update automatically*.  
98
You must press *@Objects → Refresh@* to reload the data.
99
100
For the *local device that hosts the web page*, all updates (property changes, events, alarms) are received *in real time*.
101
102 79 David Fredriksson
---
103
104
h3. 2. Navigation Bar
105
106
h4. 2.1 Objects Menu
107
* *Refresh* reloads all object data and events.
108
109
_Note: Refresh is required when a remote device is selected._
110
111
h4. 2.2 Devices Menu
112
* Displays local device and all discovered BACnet devices.
113
* Devices are grouped by network.
114
* Selecting a device loads its object list.
115
116
h4. 2.3 Priority Menu
117
Controls the *BACnet write priority* used when writing Present Value.
118
119
Examples:
120
* Priority 1 – Manual Life Safety
121
* Priority 8 – Default
122
* Priority 16 – Lowest
123
124
h4. 2.4 Notifications Menu
125
Shows:
126
* Alarms
127
* Events
128
* Return-to-normal
129
130
The menu uses badge counters:
131
* Yellow = events  
132
* Red = alarms  
133
* Green = normal transitions  
134
135
---
136
137 84 David Fredriksson
h3. 3. Objects View
138 79 David Fredriksson
139
The main view lists all BACnet objects.
140
141
Features:
142
* Collapsible categories (accordions)
143
* Lazy loading of properties when expanded
144
* Editable Present Value fields where supported
145
* Real-time updates on the *local* device
146
* Manual refresh required for *remote* devices
147
148
h4. 3.1 Expanding an Object
149
Expanding an object loads:
150
* Properties
151
* Values
152
* Writable fields
153
* Schedule editor button (if applicable)
154
155
h4. 3.2 Writing Property Values
156
Steps:
157
# Edit a value in the input field.
158
# Press the Write/Save button.
159
# DTXr sends a BACnet WriteProperty with the selected priority.
160
# A popup shows success or error.
161
162
---
163
164
h3. 4. Device Discovery
165
166
h4. 4.1 Discovering Devices
167
Opening the *Devices* dropdown sends a Who-Is request and populates the list.
168
169
h4. 4.2 Selecting a Device
170
When switching devices:
171
* Properties reload
172
* Notification list reloads
173
* The selected device name appears in the navbar
174
175
h4. 4.3 Refreshing Content
176
*Mandatory* when using remote devices.
177
178
Use:
179
@Objects → Refresh@
180
181
This reloads:
182
* Object list
183
* Property values
184
* Notifications
185
186
---
187
188
h3. 5. Notifications and Events
189
190
Notifications include:
191
* Alarm
192
* Event
193
* Normal
194
195
Real-time updates:
196
* Enabled for local device
197
* Disabled for remote devices — manual refresh required
198
199
h4. 5.1 Acknowledgment
200
If a notification supports acknowledgment:
201
* Press _Acknowledge_
202
* DTXr sends BACnet AcknowledgeAlarm
203
* Notification updates when completed
204
205
---
206
207
h3. 6. Weekly Schedule Editor
208
209
h4. 6.1 Opening the Editor
210
Click the schedule property to open the weekly calendar modal.
211
212
h4. 6.2 Creating Events
213
Select a time in the calendar to create a new event.
214
215
h4. 6.3 Editing Events
216
Click an event to modify:
217
* Binary schedule → Active / Inactive
218
* Analog schedule → numeric value
219
220
h4. 6.4 Saving the Schedule
221
Click *@Save changes@* to store the weekly schedule.
222
223
The data is:
224
* Compiled into BACnet dailySchedule structures
225
* Sorted chronologically
226
* Sent to the device as JSON
227
228
---
229
230
h3. 7. Popups and Feedback
231
232
Popups indicate:
233
* Success
234
* Errors
235
* Info
236
* Warnings
237
238
---
239
240
h3. 8. Troubleshooting
241
242
h4. 8.1 Objects Not Updating
243
* Remote device selected → press Refresh  
244
* Network or device may be unreachable
245
246
h4. 8.2 Write Errors
247
Possible reasons:
248
* Incorrect priority  
249
* Object out of service  
250
* Invalid value  
251 1 Torbjorn Carlqvist Admin
252 79 David Fredriksson
h4. 8.3 Schedule Issues
253 1 Torbjorn Carlqvist Admin
* No events created  
254
* Missing object ID  
255
* Remote device requires manual refresh  
256
257
258
---
259 81 David Fredriksson
260 83 David Fredriksson
h2. Setup
261 79 David Fredriksson
262 80 David Fredriksson
DTXr is configured through the *Menu → Setup* page.  
263
All configuration settings are grouped into logical sections. Each section below provides a functional overview of what the user can configure.  
264
Values are stored in *settings.json* and applied system-wide after pressing *Save*.
265
266
*Important:*  
267
When a *remote device* is selected from the HUB interface, *a manual page refresh is required* to update configuration data.  
268
Local device information updates in real time.
269 78 David Fredriksson
h4. System
270 1 Torbjorn Carlqvist Admin
271 78 David Fredriksson
Contains all fundamental system-level access and identity configuration.
272 1 Torbjorn Carlqvist Admin
273 78 David Fredriksson
* Administrator Account  
274
  - Configure the password of the fixed “admin” user.  
275
* Operator Account  
276
  - Optional user with limited access for HMIs or machine operation.  
277
  - Username, password and start page can be assigned.  
278
* Developer Account  
279
  - Optional higher-level user with configurable module permissions  
280
    (code, objects, API, blocks, diagram, setup).  
281
* Logging  
282
  - Set the system-wide log level (Debug, Info, Warning, Error).  
283
* Hardware Platform  
284
  - Select hardware profile (PC/server, Mira/Mesh, LION, etc.).  
285
  - This controls the enable/disable state of platform-specific modules.
286
287 1 Torbjorn Carlqvist Admin
---
288 77 David Fredriksson
289 78 David Fredriksson
h4. BACnet
290 1 Torbjorn Carlqvist Admin
291 78 David Fredriksson
Defines all BACnet/IP protocol parameters for the device.
292 1 Torbjorn Carlqvist Admin
293 78 David Fredriksson
* Device Identity  
294
  - Device ID, Device Name.  
295
* Security  
296
  - BACnet password (used for Device Communication Control).  
297
* Protocol Settings  
298
  - Segmentation, Max APDU, Vendor ID and other low-level options.  
299
* Network Mode  
300
  - Basic IP communication behaviour (broadcast, BBMD usage when applicable).
301 1 Torbjorn Carlqvist Admin
302 78 David Fredriksson
This section is essential when integrating DTXr into a BACnet building automation network.
303 1 Torbjorn Carlqvist Admin
304
---
305 77 David Fredriksson
306 78 David Fredriksson
h4. Wireless Mesh
307 1 Torbjorn Carlqvist Admin
308 78 David Fredriksson
Provides access to the mesh radio configuration on supported hardware.
309 1 Torbjorn Carlqvist Admin
310 78 David Fredriksson
* Enable/Disable Mesh  
311
* Mesh Credentials  
312
  - Security keys, network key and authentication key.  
313
* Node Role  
314
  - Coordinator / Router / End Device.  
315
* Provisioning QR Code  
316
  - Device can generate a QR code containing mesh network credentials.
317 77 David Fredriksson
318 78 David Fredriksson
Note: Mesh options are disabled on platform types that do not support radio.
319 77 David Fredriksson
320
---
321
322 1 Torbjorn Carlqvist Admin
h4. Bluetooth
323 76 David Fredriksson
324 1 Torbjorn Carlqvist Admin
Configuration for onboard Bluetooth LE services (if supported by the platform).
325 76 David Fredriksson
326
* Bluetooth Console  
327 1 Torbjorn Carlqvist Admin
  - Enables BLE-based console output.  
328 76 David Fredriksson
* Beacon Mode  
329 1 Torbjorn Carlqvist Admin
  - Enables BLE advertisement and optional custom beacon name.  
330 76 David Fredriksson
* Address Visibility and Power Settings  
331
  - Controls how the device broadcasts itself to the environment.
332
333
These options are automatically enabled or disabled depending on the selected platform type.
334 1 Torbjorn Carlqvist Admin
335 76 David Fredriksson
---
336
337 1 Torbjorn Carlqvist Admin
h4. LION Interface
338 76 David Fredriksson
339
Shown only on LION-enabled platforms.
340
341
* Enable/Disable LION module support.  
342 1 Torbjorn Carlqvist Admin
* Hardware Extensions  
343 76 David Fredriksson
  - Configures behaviour of LION-specific IO hardware.  
344
* Channel Behavior  
345
  - Digital/analog features depending on LION product family.
346
347
---
348 75 David Fredriksson
349 76 David Fredriksson
h4. Davitor Advantage
350
351
Configuration for optional DAVITOR cloud lifecycle management.
352
353 75 David Fredriksson
* DRK (Davitor Reference Key)  
354 76 David Fredriksson
  - Used for remote maintenance and PLM link.  
355 75 David Fredriksson
* PLM Connectivity  
356 76 David Fredriksson
  - Service URL and communication settings when using cloud management.
357 75 David Fredriksson
358 76 David Fredriksson
---
359 75 David Fredriksson
360
h4. External Database Access
361 76 David Fredriksson
362
Lets the DTXr device communicate with an external SQL/NoSQL database.
363
364
* Connection  
365
  - Host, port and protocol information.  
366 75 David Fredriksson
* Credentials  
367 76 David Fredriksson
  - Username/password for authenticated connections.  
368
* Sync/Logging Options  
369
  - Defines how data is written externally (trend logs, events, custom data).
370
371
---
372
373 75 David Fredriksson
h4. File Integration
374 76 David Fredriksson
375
Tools for importing/exporting system content.
376
377
* Backup / Restore  
378
  - Download the current configuration or upload a saved configuration.  
379
* Project File Upload  
380 1 Torbjorn Carlqvist Admin
  - Add or replace project assets (HMIs, scripts, diagrams).  
381 76 David Fredriksson
* Logs  
382 42 David Fredriksson
  - Download generated logs for troubleshooting.
383 76 David Fredriksson
384 13 Torbjorn Carlqvist Admin
---
385 76 David Fredriksson
386
h4. HTTP Server
387 11 Torbjorn Carlqvist Admin
388 76 David Fredriksson
Controls how the embedded DTXr HTTP(S) service behaves.
389
390
* Port Configuration  
391
  - Default HTTP port is 9090.  
392
* HTTPS / TLS  
393 14 Torbjorn Carlqvist Admin
  - Optional encrypted access.  
394 76 David Fredriksson
* Session Timeout  
395
  - Auto-logout delay for inactive users.  
396 14 Torbjorn Carlqvist Admin
* Allowed Hosts  
397 11 Torbjorn Carlqvist Admin
  - Restrict network clients that can access the interface.
398 76 David Fredriksson
399 14 Torbjorn Carlqvist Admin
---
400 76 David Fredriksson
401
h4. Email
402
403
Allows the device to send or receive email for automation events.
404 11 Torbjorn Carlqvist Admin
405 76 David Fredriksson
* SMTP Server  
406 11 Torbjorn Carlqvist Admin
  - Address, port, TLS/STARTTLS.  
407 76 David Fredriksson
* Authentication  
408 14 Torbjorn Carlqvist Admin
  - Optional username/password.  
409 76 David Fredriksson
* Attachments Folder  
410
  - Path where incoming email attachments are stored.
411
412
---
413 11 Torbjorn Carlqvist Admin
414 76 David Fredriksson
h4. Location Services
415
416
The device can determine its location automatically.
417 1 Torbjorn Carlqvist Admin
418 76 David Fredriksson
* Automatic Geolocation  
419
  - Queries an external geolocation service to populate latitude/longitude.  
420
* Manual Input  
421
  - User can override location if browser access is restricted.
422
423 19 Torbjorn Carlqvist Admin
---
424 76 David Fredriksson
425 19 Torbjorn Carlqvist Admin
h4. IoT HUB (BETA)
426 76 David Fredriksson
427 1 Torbjorn Carlqvist Admin
Early-stage experimental cloud integration.
428 76 David Fredriksson
429
* Backend URL  
430 1 Torbjorn Carlqvist Admin
  - IoT gateway endpoint.  
431 76 David Fredriksson
* Device Token  
432
  - Authentication token for cloud usage.  
433 1 Torbjorn Carlqvist Admin
* Upload Options  
434 76 David Fredriksson
  - Define what data the device forwards (events, logs, telemetry).
435
436
---
437
438 1 Torbjorn Carlqvist Admin
h4. Save & Refresh
439 76 David Fredriksson
440
* Save  
441 1 Torbjorn Carlqvist Admin
  - Commits all modified settings to settings.json.  
442 76 David Fredriksson
* Refresh  
443
  - Reloads settings from device memory.  
444
  - Required after switching to a remote device.
445
446 1 Torbjorn Carlqvist Admin
447 76 David Fredriksson
---
448 1 Torbjorn Carlqvist Admin
449 83 David Fredriksson
h2. Blocks Editor (Blockly)
450 82 David Fredriksson
451
The *Blocks* page provides a visual programming environment based on Google Blockly.  
452
Users can build automation logic using drag-and-drop blocks instead of traditional code.  
453
All logic created here is converted into JavaScript and executed by the DTXr runtime.
454
455
The Blocks Editor is divided into four main areas:
456
* The *toolbox* (left side) containing categorized blocks  
457
* The *Blockly workspace* (center)  
458
* The *log and activity panels* (bottom)  
459
* Editor actions available in the top navigation bar
460
461
---
462
463
h5. Navigation Bar Features
464
465
* Blocks → *Refresh*  
466
  - Re-parses the block code displayed in the workspace.  
467
* Blocks → *Clear logs*  
468
  - Clears the log console in the footer area.  
469
* Test  
470
  - Executes the currently visible block code once, without saving.  
471
* Save  
472
  - Saves the current block workspace into the device configuration.  
473
* Activate  
474
  - Saves and also activates the block program so it runs continuously.  
475
* Notifications  
476
  - Shows system events, alarms, and normal transitions in real time.
477
478
---
479
480
h5. Blockly Workspace
481
482
The main canvas where blocks are placed and connected.
483
484
* Drag blocks from the toolbox onto the workspace.  
485
* Connect blocks to form logic chains.  
486
* Right-click a block to duplicate, delete, or collapse it.  
487
* Zoom and pan with the mouse wheel or gestures.
488
489
All changes in the workspace are local until *Save* or *Activate* is pressed.
490
491
---
492
493
h5. Toolbox Categories
494
495
The toolbox is organized into logical categories:
496
497
* JSON  
498
  - Blocks for constructing and parsing JSON objects.  
499
* Logic  
500
  - If/else, comparison, boolean operations.  
501
* Loops  
502
  - Repeat operations.  
503
* Math  
504
  - Arithmetic and numeric values.  
505
* Text  
506
  - String operations and concatenation.  
507
* Variables  
508
  - Create and manage global/local variables.  
509
510
*Events (DTX-specific)*  
511
  - Triggers for analog or binary input changes  
512
  - Astro events  
513
  - Timers  
514
  - Incoming text messages  
515
  - Diagram object push events  
516
517
*Set value / Read value (DTX BACnet extensions)*  
518
  - Write analog, binary, lighting outputs  
519
  - Read analog or binary values  
520
  - Compare input states  
521
522
*Timed tasks*  
523
  - Cron-like scheduling  
524
  - Start, cancel, pause, resume timers  
525
526
*HMI*  
527
  - Update graphical objects or maps in diagrams/HMI pages  
528
529
*Code*  
530
  - Insert raw JavaScript statements  
531
  - Create custom return statements  
532
  - Handle function call events  
533
534
*Misc*  
535
  - Print to log  
536
  - Date/time  
537
538
*Notifications*  
539
  - Send email from block logic  
540
541
These categories combine to cover automation, BACnet control, HMI interaction and notifications.
542
543
---
544
545
h5. Running and Activating Code
546
547
*Test*  
548
Executes the block logic one time, useful for debugging.
549
550
*Save*  
551
Stores the block script but does not run it automatically.
552
553
*Activate*  
554
Saves and deploys the block logic to the DTXr runtime engine.  
555
Activated logic will:
556
* Run automatically on device startup  
557
* Respond to events immediately  
558
* Allow scheduled logic to trigger without manual execution  
559
560
---
561
562
h5. Sidebars and Console
563
564
*Left Sidebar*  
565
May contain the workspace tree or additional contextual tools.
566
567
*Right Sidebar*  
568
Displays block metadata, help text or generated JavaScript depending on configuration.
569
570
*Footer Console*  
571
Two areas are available:
572
* *Log* — printed output from print blocks or runtime  
573
* *Activity* — messages about system behavior, activation, parsing, etc.
574
575
Both areas support resizing using draggable split panes.
576
577
---
578
579
h5. Working With Devices in Blocks Mode
580
581
The device selector is present but indicates:
582
583
*“Not applicable in Blocks mode”*
584
585
This is because Blockly logic always runs locally on the device that hosts DTXr.  
586
Remote devices cannot be programmed using the Blocks Editor.
587
588
---
589
590
h5. Saving Your Work
591
592
The block workspace is saved in the device’s internal configuration.  
593
A backup is included when exporting system configuration via the File Integration tools.
594
595
*Important:*  
596
If block logic interacts with remote devices (reading/writing values),  
597
use *Refresh* in Objects view to ensure the remote values have been updated recently.
598
599
---
600
601
h5. Error Handling
602
603
When errors occur:
604
* The error message appears in the log console  
605
* Pop-up notifications show parsing or execution issues  
606
* Common issues include:
607
  - Missing block connections  
608
  - Undefined variables  
609
  - Writing to unavailable BACnet objects  
610
611
---
612
613
h5. Best Practices
614
615
* Keep block structures grouped and well-organized  
616
* Name variables clearly  
617
* Use print statements during development  
618
* Test frequently before activation  
619
* Avoid long chains inside event triggers  
620
* Use timers for repeated actions, not loops
621
622
---
623
624 92 David Fredriksson
h2. Code Editor (DTXr)
625
626
The *Code* page in DTXr provides a full in-browser development environment for writing, editing, testing, and activating automation scripts and project files.  
627
It includes a file browser, object browser, integrated console, and live execution tools — enabling direct interaction with both the local and remote DTX devices.
628
629
---
630
631
h3. Overview
632
633
The Code Editor consists of three main panes:
634
635
* **Left pane – Project File Browser**  
636
  Displays all project files (automation.js, HTML pages, JSON, XML, HMI files, logs, etc.).  
637
  Files can be opened, edited, created, cloned, renamed, uploaded, downloaded, or deleted.
638
639
* **Center pane – Code Editor (ACE Editor)**  
640
  A syntax-highlighted editor supporting JavaScript, HTML, JSON, CSS, XML and plain text.  
641
  Provides autocomplete, linting, snippets, keyboard shortcuts, and code evaluation tools.
642
643
* **Right pane – BACnet Object Browser**  
644
  Shows discovered BACnet devices, their objects, properties, and generated code snippets.  
645
  Enables device management operations (re-init, restart, add objects, run Who-Is, etc.).
646
647
The bottom section contains:
648
649
* *Console Log* — Code output, WebSocket messages, errors, and prints.  
650
* *Activity Log* — Notifications, alarms, events, and system activities.
651
652
---
653
654
h3. Navigation Menu (Code Dropdown)
655
656
* *Save* — Saves the currently open file  
657
* *Activate* — Activates JavaScript files, applying changes immediately  
658
* *Evaluate* — Runs only the selected JavaScript  
659
* *Evaluate and Print* — Runs the selected code and prints the result to console  
660
* *Clear Log* — Clears the console area  
661
* *Re-initialize Local* — Reloads automation.js and restarts the script engine
662
663
Remote devices support file editing but cannot execute JavaScript code directly.
664
665
---
666
667
h3. Editing Files
668
669
The file browser on the left supports:
670
671
* Creating new files (JS, HTML, JSON, XML, CSS, HMI/Diagram templates)  
672
* Uploading files (including multi-file uploads)  
673
* Cloning, renaming, deleting  
674
* Open With:
675
  - Diagram Editor  
676
  - HMI Editor  
677
  - Markdown Viewer  
678
  - Raw text mode  
679
  - New Browser Tab  
680
681
Syntax modes include:
682
683
* JavaScript  
684
* HTML / CSS  
685
* JSON (formatted/validated)  
686
* XML / SVG  
687
* Plain text for generic files  
688
689
Unsupported formats (e.g. encoded diagram files) show a warning.
690
691
DTXr asks confirmation before leaving the page when unsaved edits exist.
692
693
---
694
695
h3. Saving and Activating JavaScript
696
697
*Save* writes the file to disk.  
698
*Activate* loads the JavaScript into the automation runtime.
699
700
For the **local device**:
701
* Save → Activate → Script updates immediately
702
703
For **remote devices**:
704
* Save works normally  
705
* Activation is not supported — manual re-init is required on the remote device  
706
* A warning is shown automatically
707
708
---
709
710
h3. Testing Code Snippets (Evaluate & Evaluate+Print)
711
712
Without modifying automation.js, users can:
713
714
* Highlight code  
715
* Press *Evaluate* — executes it silently  
716
* Press *Evaluate and Print* — executes and prints output to the console
717
718
This enables safe experimentation and debugging.
719
720
---
721
722
h3. File Browser Features (Left Pane)
723
724
Right-click menus support:
725
726
* Refresh  
727
* New file/folder creation  
728
* Project asset upload  
729
* Clone file  
730
* Save  
731
* Activate (JS only)  
732
* Delete / Rename  
733
* Open in specialized editor  
734
* Preview HTML in new browser tab  
735
736
Some folders have restricted permissions to protect system structure.
737
738
---
739
740
h3. BACnet Object Browser (Right Pane)
741
742
The object browser shows **Networks → Devices → Object Types → Objects → Properties**.
743
744
Actions include:
745
746
* Refresh  
747
* Who-Is and Who-Is Global  
748
* Add BACnet objects (AV/BV/MSV/Schedule/TrendLog/etc)  
749
* Re-init device (password protected)  
750
* Restart device (password protected)  
751
* Edit or download file-type BACnet objects  
752
753
The browser also generates JavaScript snippets dynamically based on the selected object/property.
754
755
---
756
757
h3. Console and Activity Log
758
759
*Console Log* displays:
760
- JavaScript evaluation results  
761
- Runtime logs (prints)  
762
- Errors/warnings  
763
- WebSocket events  
764
765
*Activity Log* displays:
766
- BACnet events  
767
- Alarms  
768
- Notifications  
769
- COV updates  
770
771
---
772
773
h3. WebSocket Integration
774
775
The Code Editor uses a dedicated WebSocket channel named **code**, which provides:
776
777
* Real-time feedback from evaluations  
778
* Live console output  
779
* System events  
780
* Activity updates  
781
782
This eliminates the need for manual refresh during development.
783
784
---
785
786
h3. Remote Device Interaction
787
788
Remote devices support:
789
790
* File browsing  
791
* File editing  
792
* Uploading/downloading  
793
* Reinitializing/restarting  
794
* Adding BACnet objects  
795
796
Important:  
797
**Switching between devices requires manual refresh.**  
798
Local device state updates in real-time; remote content does not.
799
800
---
801
802
h3. Keyboard Shortcuts
803
804
The Code Editor uses both DTXr-specific shortcuts and the full Ace Editor keyboard system.  
805
Ace reference: https://github.com/ajaxorg/ace/wiki/default-keyboard-shortcuts
806
807
---
808
809
h4. Core DTXr Shortcuts
810
811
| Command | Windows/Linux | macOS |
812
|--------|----------------|-------|
813
| Save file | Ctrl + S | Cmd + S |
814
| Activate JS | Ctrl + Shift + S | Cmd + Shift + S |
815
| Evaluate selection | Ctrl + Enter | Cmd + Enter |
816
| Evaluate + Print | Ctrl + Shift + Enter | Cmd + Shift + Enter |
817
| Clear log | (menu) | (menu) |
818
| Re-initialize | (menu) | (menu) |
819
820
---
821
822
h4. Ace Editor Line Operations
823
824
| Action | Windows/Linux | macOS |
825
|--------|---------------|-------|
826
| Remove line | Ctrl + D | Cmd + D |
827
| Copy line up | Alt + Shift + Up | Cmd + Option + Up |
828
| Copy line down | Alt + Shift + Down | Cmd + Option + Down |
829
| Move line up | Alt + Up | Option + Up |
830
| Move line down | Alt + Down | Option + Down |
831
| Delete to line end | Alt + Delete | Ctrl + K |
832
| Delete to line start | Alt + Backspace | Cmd + Backspace |
833
834
---
835
836
h4. Selection Enhancements
837
838
| Action | Windows/Linux | macOS |
839
|--------|---------------|-------|
840
| Select all | Ctrl + A | Cmd + A |
841
| Select to word boundaries | Ctrl + Shift + Arrow | Option + Shift + Arrow |
842
| Duplicate selection | Ctrl + Shift + D | Cmd + Shift + D |
843
| Jump to matching bracket | Ctrl + \\ | Cmd + \\ |
844
845
---
846
847
h4. Multi-Cursor Editing
848
849
| Action | Windows/Linux | macOS |
850
|--------|---------------|-------|
851
| Add cursor above | Ctrl + Alt + Up | Ctrl + Option + Up |
852
| Add cursor below | Ctrl + Alt + Down | Ctrl + Option + Down |
853
| Add next occurrence | Ctrl + Alt + Right | Ctrl + Option + Right |
854
| Remove last occurrence | Ctrl + Alt + Shift + Right | Ctrl + Option + Shift + Right |
855
856
---
857
858
h4. Navigation
859
860
| Action | Windows/Linux | macOS |
861
|--------|---------------|-------|
862
| Go to file start/end | Ctrl + Home / Ctrl + End | Cmd + Home / Cmd + End |
863
| Go to line start | Home | Home |
864
| Go to line end | End | End |
865
| Go to specific line… | Ctrl + L | Cmd + L |
866
| Page up/down | PageUp / PageDown | Option + PageUp / Option + PageDown |
867
868
---
869
870
h4. Find / Replace
871
872
| Action | Windows/Linux | macOS |
873
|--------|---------------|-------|
874
| Find | Ctrl + F | Cmd + F |
875
| Replace | Ctrl + H | Cmd + Option + F |
876
| Next match | Ctrl + K | Cmd + G |
877
| Previous match | Ctrl + Shift + K | Cmd + Shift + G |
878
879
---
880
881
h3. Summary
882
883
The DTXr Code Editor gives users a full, browser-based development environment with:
884
885
* Fast JavaScript automation scripting  
886
* Full project file management  
887
* BACnet integration tools  
888
* Highly responsive WebSocket console  
889
* Safe evaluation of code snippets  
890
* Extensive keyboard shortcuts  
891
* Remote file access and device control  
892
893
DTXr enables end-to-end automation development directly inside the controller, without external tools.
894
895
896
---
897
898 87 David Fredriksson
h2. BACnet
899 82 David Fredriksson
900 87 David Fredriksson
BACnet (Building Automation and Control Network) is an international open communication standard for building automation systems.  
901
It enables devices from different manufacturers to communicate, share data, and coordinate functions such as HVAC, lighting, alarms, access control and energy management.
902 76 David Fredriksson
903 87 David Fredriksson
BACnet is defined and maintained by the BACnet Committee (SSPC 135) under ASHRAE.
904
905
More information: https://bacnet.org
906
907 1 Torbjorn Carlqvist Admin
---
908
909 87 David Fredriksson
h3. Standards and Certification
910
911
BACnet is based on globally recognized standards:
912
913
* *ASHRAE Standard 135*  
914
  The core BACnet protocol specification, maintained by ASHRAE.
915
916
* *ISO 16484-5*  
917
  International standard for building automation and control networks.
918
919
* *ANSI/ASHRAE Addenda*  
920
  Regular updates ensure modern features and cyber-security enhancements.
921
922
Because BACnet is standardized internationally, devices are tested and validated against consistent technical rules.  
923
This ensures long-term compatibility and protects investments in automation systems.
924
925
---
926
927
h3. How BACnet Communication Works
928
929
BACnet defines:
930
* *Objects* — structured data models (AI, AO, BI, BO, Schedules, etc.)  
931
* *Properties* — attributes of each object (Present Value, Units, Status Flags…)  
932
* *Services* — methods for communicating (ReadProperty, WriteProperty, etc.)
933
934
Common communication mechanisms:
935
* **BACnet/IP** over UDP (default port 47808)  
936
* **Who-Is / I-Am** device discovery  
937
* **ReadProperty / WriteProperty** for data exchange  
938
* **COV (Change of Value) subscriptions** for event-driven updates  
939
* **Alarm and Event notifications**  
940
941
DTXr implements:
942
* Full BACnet/IP functionality  
943
* Device discovery  
944
* Automatic reading and writing of properties  
945
* Real-time event handling  
946
* COV subscriptions when available  
947
948
---
949
950 89 David Fredriksson
h3. Key Advantages of BACnet 
951 87 David Fredriksson
952
*Open and vendor-neutral*  
953
BACnet is not controlled by a single private company. Any manufacturer can implement the standard.  
954
This eliminates vendor lock-in and ensures long-term system freedom.
955
956
*Large global ecosystem*  
957
Hundreds of companies worldwide produce BACnet-certified devices:
958
* HVAC controllers  
959
* Sensors and actuators  
960
* Lighting systems  
961
* VAV and damper controllers  
962
* Energy monitoring systems  
963
* User interfaces and visualizations  
964
965
This means integrators can mix-and-match equipment from different brands without special gateways.
966
967
*Interoperability by design*  
968
Because BACnet defines standard object types and required properties, devices share:
969
* Common naming conventions  
970
* Common alarm/event handling behavior  
971
* Standard scheduling objects  
972
* Standard data types  
973
974
This makes exchanging live data straightforward and predictable.
975
976
*Efficient Event-Driven Communication with COV*  
977
Rather than constantly polling for updates, BACnet supports **Change of Value (COV)** subscriptions:
978
* A device notifies subscribers only when a value *actually changes*  
979
* No wasted network traffic  
980
* Faster updates for dynamic values  
981
* Lower CPU and bandwidth usage  
982
* Ideal for large systems or wireless deployments
983
984
COV is one of BACnet’s biggest advantages over legacy systems that rely on heavy cyclic polling.
985
986
*Rich Metadata Built Into the Protocol*  
987
BACnet objects include a wide range of metadata:
988
* Object Name  
989
* Description  
990
* Units  
991
* Engineering limits  
992
* Reliability state  
993
* Status flags  
994
* Priority array  
995
* Object type  
996
997
Metadata allows tools like DTXr to:
998
* Auto-discover device capabilities  
999
* Display real names and units  
1000
* Visualize systems without custom drivers  
1001
* Auto-generate controls and dashboards  
1002
1003
This reduces engineering time and improves clarity for end users.
1004
1005
---
1006 90 David Fredriksson
1007 89 David Fredriksson
h2. Davitor Advantage
1008 90 David Fredriksson
1009 87 David Fredriksson
h3. Interoperability and Vendor Collaboration
1010
1011
BACnet has a long-standing interoperability testing ecosystem:
1012
1013
* *BACnet Testing Laboratories (BTL)*  
1014
  Certifies devices against standardized profiles, ensuring correct communication.
1015
1016
* *BTL Listings*  
1017
  Public database of certified devices that work together reliably.
1018
1019
* *Plugfests*  
1020
  Manufacturers meet twice per year to test their devices against each other in real networks.
1021
1022
The result:
1023
* Multi-brand BACnet systems work reliably  
1024
* Integration cost is lower  
1025
* Long-term compatibility is ensured  
1026
* Devices can be replaced without redesigning the entire system  
1027
1028
BACnet is one of the strongest and most mature interoperability ecosystems in the automation industry.
1029
1030
---
1031
1032
h3. Why BACnet Works Exceptionally Well With DTXr
1033
1034
DTXr is built around BACnet’s strengths:
1035
* Automatic discovery of BACnet devices  
1036
* Real-time event and alarm handling  
1037
* Full COV support  
1038
* Multi-priority writing of Present Value  
1039
* Automatic metadata integration (names, units, descriptions)  
1040
* Native schedule editor compatible with BACnet Schedule objects  
1041
* BACnet notifications shown directly in the interface  
1042
1043
DTXr can be used as:
1044
* A BACnet central controller  
1045
* A visualization/HMI layer  
1046
* A programming environment (Code + Blocks)  
1047
* A diagnostics tool for technicians  
1048
* A multi-device integration and commissioning tool  
1049
1050
DTXr leverages the power of BACnet without requiring advanced protocol knowledge from the user.
1051 1 Torbjorn Carlqvist Admin
1052
---
1053 89 David Fredriksson
h2. DTX Overview (Development Environment)
1054 1 Torbjorn Carlqvist Admin
1055 89 David Fredriksson
!https://www.davitor.com/Home/DTX!
1056
1057
DTX (by Davitor) is a powerful development and runtime environment designed for building automation, integration, and control — especially for BACnet-based systems.  
1058
The environment is directly integrated into the device, allowing engineers to create, test, and execute automation logic locally or remotely via a web browser.  
1059
DTX is suitable for controllers, gateways, cloud connectors, and industrial IO devices. :contentReference[oaicite:0]{index=0}
1060
1061
---
1062
1063
h3. Core Concept: Development Inside the Device
1064
1065
DTX is described by Davitor as a **“Development Environment for BACnet devices”**.  
1066
Its philosophy centers around **self-contained automation**, where development tools live inside the device itself — eliminating lost code, mismatched versions, or external dependencies. This enhances system integrity and long-term maintainability. :contentReference[oaicite:1]{index=1}
1067
1068
A major benefit of this approach:
1069
* Your automation project is stored and executed natively inside the device.  
1070
* You can access the development environment anywhere on the network.  
1071
* No separate development workstation is required.  
1072
* The same environment works on almost any hardware or operating system supporting Java 11 or higher. :contentReference[oaicite:2]{index=2}
1073
1074
---
1075
1076
h3. Key Features of DTX
1077
1078
*Modular and Future-Proof Design*  
1079
DTX is built with modularity in mind:
1080
* The development environment runs on the device.  
1081
* It is platform-independent and OS-agnostic (runs wherever Java 11+ works).  
1082
* It acts as a **controller**, **cloud service**, or **gateway**, depending on need. :contentReference[oaicite:3]{index=3}
1083
1084
*One Unified Environment*  
1085
DTX includes everything needed for automation development:
1086
* Full **code editor** with JavaScript (ES6) support.  
1087
* A built-in **BACnet browser** for object discovery and inspection.  
1088
* Easy **GUI and HMI creation** tools.  
1089
* Integrated script engine, REST API bindings, email notifications, and schedule management. :contentReference[oaicite:4]{index=4}
1090
1091
*Use Any Developer, Any Skill Level*  
1092
Since DTX uses **JavaScript**, a widely accessible language, the need for specialized proprietary system knowledge is minimized. Anyone with basic JavaScript skills can build automation logic. :contentReference[oaicite:5]{index=5}
1093
1094
---
1095
1096
h3. Protocol Integration and Interoperability
1097
1098
DTX natively supports protocols used in modern automation:
1099
* **BACnet/IP** (full stack with browser and read/write tools)  
1100
* **MODBUS** (both Master and Slave over TCP/RTU)  
1101
* **REST API** (both server and client capabilities for external application integration)  
1102
* Optional LION fieldbus support on specialized hardware  
1103
* MQTT broker capability for IoT use cases  
1104
* Serial port support (ASCII and HEX with configurable delimiter) :contentReference[oaicite:6]{index=6}
1105
1106
The modular approach allows data from any source (BACnet or otherwise) to be exposed directly through DTX’s REST interface — enabling integration with cloud, database or analytics platforms while preserving metadata and object structure. :contentReference[oaicite:7]{index=7}
1107
1108
---
1109
1110
h3. Unified Automation Stack
1111
1112
DTX unifies:
1113
* Development (IDE + editor inside the device)  
1114
* HMI design (visual diagram editor)  
1115
* Script execution (JavaScript engine)  
1116
* Protocol communication (BACnet, Modbus, HTTP, MQTT, etc.)  
1117
* Notifications and email support  
1118
* Database integration (built-in user database or external Postgres SQL) :contentReference[oaicite:8]{index=8}
1119
1120
This makes DTX not only a controller but also a **full automation ecosystem** where:
1121
* Automation logic is developed, tested, and deployed locally  
1122
* Values and objects are available in real time  
1123
* Projects are stored in the device and cannot get disconnected from the runtime  
1124
1125
---
1126
1127
h3. Integration with Davitor Advantage
1128
1129
When combined with Davitor Advantage, DTX becomes a **remotely manageable node** in a scalable automation network:
1130
* Develop locally on any device  
1131
* Provision devices via Davitor cloud  
1132
* Manage and monitor projects across multiple sites and protocols  
1133
* Keep firmware, logic, and configuration synchronized across installations
1134
1135
See https://www.davitor.com for product details and documentation. :contentReference[oaicite:9]{index=9}
1136
1137
---
1138
1139 91 David Fredriksson
h2. Radio Support & Supported Protocols
1140 1 Torbjorn Carlqvist Admin
1141 91 David Fredriksson
DTX provides flexible wireless communication depending on platform and hardware.  
1142
Because DTX can run on any system capable of Java 11 or later, wireless capabilities can range from WiFi-only devices to advanced multi-protocol gateways.
1143 1 Torbjorn Carlqvist Admin
1144 91 David Fredriksson
Below are the primary wireless technologies supported by DTX, in recommended reading order.
1145
1146
---
1147
1148
h3. WiFi (BACnet over WiFi)
1149
1150
DTX includes a complete BACnet/IP stack and can run on any Java 11+ capable WiFi device.  
1151
When DTX is installed on hardware with WiFi (e.g., Raspberry Pi, industrial WiFi gateways, embedded controllers), it automatically supports:
1152
1153
* Full BACnet/IP communication over WiFi  
1154
* COV subscriptions (efficient change-based updates)  
1155
* Who-Is / I-Am device discovery  
1156
* Reading and writing BACnet properties  
1157
* BACnet schedules, events, notifications, and alarms  
1158
* Participation in BACnet networks without wired Ethernet  
1159
1160
This makes DTX a fully wireless BACnet controller when running on WiFi-enabled hardware — ideal for commissioning, mobile diagnostics, or wireless installations.
1161
1162
---
1163
1164
h3. Bluetooth Devices (non-mesh)
1165
1166
DTX supports Bluetooth Low Energy (BLE) devices for direct sensor integration.  
1167
This includes well-known BLE beacon and sensor devices such as **RUUVI smart sensors**, which DTX can automatically detect and encapsulate as BACnet objects.
1168
1169
Examples of RUUVI sensor data mapped by DTX:
1170
1171
* **Temperature** (°C)  
1172
* **Humidity** (%)  
1173
* **Air Pressure** (Pa/hPa)  
1174
* **Movement / Acceleration** (X/Y/Z axis)  
1175
* **Battery level**  
1176
* **Signal strength (RSSI)**  
1177
1178
DTX automatically:
1179
1180
* Detects nearby BLE sensors  
1181
* Parses their advertisement data (no pairing required)  
1182
* Creates corresponding BACnet objects  
1183
* Updates values in real time  
1184
* Allows automation logic and HMI dashboards to use them like any other BACnet sensor  
1185
1186
This enables **fully wireless environmental measurement** with zero wiring and minimal configuration.
1187
1188
RUUVI devices are ideal for:
1189
1190
* HVAC monitoring  
1191
* Building comfort tracking  
1192
* Server room supervision  
1193
* Warehousing & storage  
1194
* Indoor air quality dashboards  
1195
* Asset or movement detection  
1196
1197
Because the sensors broadcast continuously, DTX receives updates passively, with extremely low energy usage on the sensor side.
1198
1199
---
1200
1201
h3. Wireless Long-Range DALI-2 Device (Davitor)
1202
1203
DTX supports integration with **Davitor’s Wireless Long-Range DALI-2 Device**, enabling wireless extension of DALI-2 lighting networks.  
1204
Instead of cabling DALI buses across long distances, the system uses Davitor’s long-range radio modules to connect DALI-2 control gear wirelessly.
1205
1206
Key features:
1207
1208
* Wireless connection between DTX and DALI-2 luminaires  
1209
* Maintains full DALI-2 functionality (dimming, groups, scenes, status)  
1210
* Extends DALI-2 coverage beyond normal cable distance limits  
1211
* Simplifies installation & retrofit work  
1212
* Reduces cable infrastructure costs  
1213
* All DALI-2 channels and objects appear in DTX as BACnet objects  
1214
1215
This allows DTX to become a **wireless lighting controller**, combining BACnet automation with DALI-2 lighting systems.
1216
1217
Suitable for:
1218
1219
* Industrial halls  
1220
* Large buildings  
1221
* Office retrofits  
1222
* Outdoor lighting  
1223
* Warehouses  
1224
* Locations where DALI cabling is impractical  
1225
1226
DTX treats wireless DALI-2 exactly like wired BACnet points, enabling seamless integration with automation scripts, schedules, alarms, and GUI pages.
1227
1228
---
1229
1230
h3. Radio Mesh (MIRA & BLE5 Mesh)
1231
1232
DTX integrates with radio-based mesh networks such as **MIRA Mesh** and **BLE5 Mesh** using Davitor’s multi-protocol radio interface.  
1233
Mesh networks provide long-range, self-healing wireless communication ideal for distributed sensors and actuators.
1234
1235
DTX can:
1236
1237
* Discover mesh nodes automatically  
1238
* Map mesh node values into BACnet objects  
1239
* Control mesh actuators through BACnet writes  
1240
* Use mesh-based sensors for automation logic  
1241
* Support large installations with many devices  
1242
1243
Common mesh technologies used with DTX:
1244
1245
* **MIRA Mesh** — IPv6-based, ultra-low power, long-range self-healing mesh  
1246
* **BLE5 Mesh** — Bluetooth-based many-to-many lighting & sensor networks  
1247
1248
Benefits of mesh:
1249
1250
* Extremely scalable  
1251
* Multi-hop routing increases range  
1252
* No single point of failure  
1253
* Low power consumption for battery nodes  
1254
* Ideal for smart buildings, lighting control, indoor/outdoor sensor grids  
1255
1256
Example applications:
1257
1258
* Wireless environmental sensors  
1259
* Industrial sensor networks  
1260
* Lighting control clusters  
1261
* Distributed monitoring systems  
1262
* Mesh-connected actuators or relay nodes  
1263
1264
DTX treats mesh nodes as native BACnet devices, providing seamless integration across wired, WiFi, Bluetooth, and mesh networks.
1265
1266
---
1267
1268
h3. Summary
1269
1270
DTX supports multiple wireless communication paths:
1271
1272
* **WiFi** — full BACnet/IP capability on wireless hardware  
1273
* **Bluetooth (RUUVI and others)** — automatic BLE sensor discovery and BACnet mapping  
1274
* **Wireless Long-Range DALI-2** — wireless lighting control integration  
1275
* **Radio Mesh (MIRA & BLE5)** — scalable multi-hop wireless automation  
1276
1277
This allows DTX to operate in environments where wired infrastructure is limited, expensive, or impossible — while maintaining complete BACnet interoperability and automation capabilities.
1278
1279
1280
1281
---
1282 76 David Fredriksson
* Bluetooth
1283 1 Torbjorn Carlqvist Admin
** _TBD..._
1284 76 David Fredriksson
1285
* External Database Access
1286
** _TBD..._
1287 1 Torbjorn Carlqvist Admin
1288 76 David Fredriksson
* File Integration
1289 1 Torbjorn Carlqvist Admin
** _TBD..._
1290 76 David Fredriksson
1291 1 Torbjorn Carlqvist Admin
* HTTP
1292
** _TBD..._
1293
1294
* LION Interface
1295
** _TBD..._
1296
1297
* IoT HUB (BETA)
1298
** _TBD..._
1299
1300
1301
---
1302
1303
1304
h3. Developer's Guide
1305
1306
[[IDE|IDE walk through]]
1307
[[Javascript|The DTXr Javascript guide]]
1308
[[Blockly|Blockly tutorials]]