iobroker.ble-gateway 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +222 -2
- package/admin/ble-gateway.png +0 -0
- package/admin/i18n/de.json +24 -0
- package/admin/i18n/en.json +24 -0
- package/admin/i18n/es.json +24 -0
- package/admin/i18n/fr.json +24 -0
- package/admin/i18n/it.json +24 -0
- package/admin/i18n/nl.json +24 -0
- package/admin/i18n/pl.json +24 -0
- package/admin/i18n/pt.json +24 -0
- package/admin/i18n/ru.json +24 -0
- package/admin/i18n/uk.json +24 -0
- package/admin/i18n/zh-cn.json +24 -0
- package/admin/jsonConfig.json +81 -0
- package/build/lib/ble-gateway-client.d.ts +147 -0
- package/build/lib/ble-gateway-client.js +494 -0
- package/build/lib/ble-gateway-client.js.map +1 -0
- package/build/lib/gatt-proxy.d.ts +65 -0
- package/build/lib/gatt-proxy.js +389 -0
- package/build/lib/gatt-proxy.js.map +1 -0
- package/build/lib/hci-info.d.ts +6 -0
- package/build/lib/hci-info.js +180 -0
- package/build/lib/hci-info.js.map +1 -0
- package/build/lib/scanner.d.ts +69 -0
- package/build/lib/scanner.js +268 -0
- package/build/lib/scanner.js.map +1 -0
- package/build/lib/uuid.d.ts +1 -0
- package/build/lib/uuid.js +14 -0
- package/build/lib/uuid.js.map +1 -0
- package/build/main.d.ts +1 -0
- package/build/main.js +902 -0
- package/build/main.js.map +1 -0
- package/io-package.json +174 -0
- package/package.json +66 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 bluefox <dogafox@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,223 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="admin/ble-gateway.png" width="100" />
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# ioBroker.ble-gateway
|
|
4
|
+
|
|
5
|
+
A central BLE gateway for ioBroker. Exactly **one** controller can be owned per process, so this adapter owns the Bluetooth (HCI) controller, scans passively, and **shares BLE advertisement packets** with any number of other adapters over the ioBroker message bus.
|
|
6
|
+
|
|
7
|
+
Other adapters subscribe with a packet filter (MAC, service UUID, name prefix, manufacturer id), receive matching advertisements as `blePacket` messages, and unsubscribe on stop. **No controller is opened until the first adapter subscribes.**
|
|
8
|
+
|
|
9
|
+
## How it works
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
some-adapter.0 ──subscribe{macs:[…]}──▶ ┌───────────────┐
|
|
13
|
+
other-adapter.0 ─subscribe{uuid:[…]}──▶ │ ble-gateway.0 │──noble──▶ HCI controller
|
|
14
|
+
│ owns the BLE │ (passive scan)
|
|
15
|
+
some-adapter.0 ◀──── 'blePacket' ────── │ controller │
|
|
16
|
+
other-adapter.0 ◀──── 'blePacket' ────── └───────────────┘
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- First subscription → controller is opened and continuous scanning starts.
|
|
20
|
+
- Last subscription gone → scanning stops (controller goes idle).
|
|
21
|
+
- If a subscriber dies without unsubscribing, the gateway notices via its
|
|
22
|
+
`system.adapter.<id>.alive` state and drops its subscriptions automatically.
|
|
23
|
+
- If the controller drops off (USB dongles sometimes re-enumerate after a
|
|
24
|
+
firmware hang, often under a new `hciX`) and is not back within 15 s, or the
|
|
25
|
+
scan stops delivering advertisements even after a restart of the scan, the
|
|
26
|
+
gateway restarts itself and opens the controller by its MAC again. Clients
|
|
27
|
+
re-subscribe automatically.
|
|
28
|
+
|
|
29
|
+
- Adapters that need to **talk** to a device (connect, read, write, notify) use
|
|
30
|
+
the [GATT proxy](#gatt-proxy): the gateway holds the connection on their
|
|
31
|
+
behalf. Connects run one at a time. The scan pauses once per GATT session
|
|
32
|
+
(several connects in a row share one pause) and resumes 1.5 s after the last
|
|
33
|
+
connection closed — or after 15 s at the latest, so long-lived connections do
|
|
34
|
+
not starve the advertisement subscribers. Toggling the scan around every
|
|
35
|
+
single connect made cheap USB controllers (Realtek RTL8761B) crash.
|
|
36
|
+
|
|
37
|
+
## Configuration
|
|
38
|
+
|
|
39
|
+
On the **Main settings** tab choose the **Bluetooth adapter** by MAC address
|
|
40
|
+
(BD_ADDR — stable across reboots, unlike the `hciX` numbering). The
|
|
41
|
+
**Diagnostics** tab offers a one-shot scan to verify the controller and a status
|
|
42
|
+
button showing active subscriptions.
|
|
43
|
+
|
|
44
|
+
## Message protocol (for adapter authors)
|
|
45
|
+
|
|
46
|
+
Send these from your adapter with `this.sendTo('ble-gateway.0', command, payload, cb)`.
|
|
47
|
+
|
|
48
|
+
### `subscribe`
|
|
49
|
+
```js
|
|
50
|
+
sendTo('ble-gateway.0', 'subscribe', {
|
|
51
|
+
subscriptionId: 'sensors', // unique per subscriber; re-using replaces
|
|
52
|
+
filter: {
|
|
53
|
+
macs: ['aa:bb:cc:dd:ee:ff'], // lowercased MACs (most common)
|
|
54
|
+
serviceUuids: ['fff0'], // any of these, advertised or as service data (short or long form)
|
|
55
|
+
namePrefixes: ['Govee'], // localName startsWith (case-insensitive)
|
|
56
|
+
manufacturerId: 0x004c // company id (first 2 bytes of mfg data, LE)
|
|
57
|
+
},
|
|
58
|
+
minIntervalMs: 0 // optional throttle per address; 0 = all
|
|
59
|
+
}, res => console.log(res)); // { ok: true, controller: {…} }
|
|
60
|
+
```
|
|
61
|
+
All filter criteria are AND-combined; within a list the match is OR. An empty
|
|
62
|
+
filter matches **every** device (a warning is logged).
|
|
63
|
+
|
|
64
|
+
### `unsubscribe`
|
|
65
|
+
```js
|
|
66
|
+
sendTo('ble-gateway.0', 'unsubscribe', { subscriptionId: 'sensors' }); // one
|
|
67
|
+
sendTo('ble-gateway.0', 'unsubscribe', {}); // all of mine
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### `getStatus`
|
|
71
|
+
```js
|
|
72
|
+
sendTo('ble-gateway.0', 'getStatus', null, res => console.log(res));
|
|
73
|
+
// { controller: {hciId, powerState, scanning}, subscribers, subscriptions: [...] }
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Receiving packets — `blePacket` (gateway → your adapter)
|
|
77
|
+
Implement a `message` handler in your adapter. Binary fields arrive as **HEX strings**:
|
|
78
|
+
```js
|
|
79
|
+
{
|
|
80
|
+
subscriptionId: 'sensors',
|
|
81
|
+
address: 'aa:bb:cc:dd:ee:ff',
|
|
82
|
+
addressType: 'public',
|
|
83
|
+
rssi: -67,
|
|
84
|
+
ts: 1717000000000,
|
|
85
|
+
connectable: true,
|
|
86
|
+
localName: 'Govee_1234',
|
|
87
|
+
txPowerLevel: -59,
|
|
88
|
+
serviceUuids: ['fff0'],
|
|
89
|
+
manufacturerData: '4c000215...', // HEX
|
|
90
|
+
serviceData: [{ uuid: 'fff0', data: '...' }] // data = HEX
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## GATT proxy
|
|
95
|
+
|
|
96
|
+
Every connection belongs to the instance that opened it; only that instance can
|
|
97
|
+
use it, and the gateway closes all its connections when it stops (its `alive`
|
|
98
|
+
state turns false) or sends `unsubscribe {}`. Binary values are **HEX strings**,
|
|
99
|
+
UUIDs may be short (`fff1`) or long. Every command answers `{ ok: true, … }` or
|
|
100
|
+
`{ error: '…' }`.
|
|
101
|
+
|
|
102
|
+
| Command | Payload | Answer |
|
|
103
|
+
|-------------------|------------------------------------------------------------------|-----------------------------------------------------|
|
|
104
|
+
| `gattConnect` | `{ address, discoverTimeoutMs?, connectTimeoutMs? }` | `{ ok, connectionId, address, characteristics[] }` |
|
|
105
|
+
| `gattSubscribe` | `{ connectionId, characteristic, service? }` | `{ ok }` |
|
|
106
|
+
| `gattUnsubscribe` | `{ connectionId, characteristic, service? }` | `{ ok }` |
|
|
107
|
+
| `gattWrite` | `{ connectionId, characteristic, service?, data, withoutResponse? }` | `{ ok }` |
|
|
108
|
+
| `gattRead` | `{ connectionId, characteristic, service? }` | `{ ok, data }` |
|
|
109
|
+
| `gattDisconnect` | `{ connectionId }` | `{ ok }` |
|
|
110
|
+
|
|
111
|
+
- `gattConnect` waits until the device advertises (`discoverTimeoutMs`, default
|
|
112
|
+
15 s), then connects (`connectTimeoutMs`, default 15 s) and discovers all
|
|
113
|
+
services. `characteristics` lists `{ serviceUuid, uuid, properties }`.
|
|
114
|
+
Allow about 45 s for the answer.
|
|
115
|
+
- `service` is only needed when a characteristic UUID exists in several services.
|
|
116
|
+
|
|
117
|
+
Pushed by the gateway to the owner (no answer expected):
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
// notification of a subscribed characteristic
|
|
121
|
+
'gattNotify' { connectionId, service, characteristic, data /* HEX */ }
|
|
122
|
+
// the link dropped without gattDisconnect (device out of range, ...)
|
|
123
|
+
'gattDisconnected' { connectionId, address, reason }
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Client helper
|
|
127
|
+
|
|
128
|
+
`src/lib/ble-gateway-client.ts` is a small, dependency-free helper you can **copy
|
|
129
|
+
into your own adapter**. It handles subscribe/unsubscribe, converts HEX back to
|
|
130
|
+
`Buffer`, and automatically re-subscribes if the gateway restarts (it watches
|
|
131
|
+
`system.adapter.ble-gateway.0.alive`, so `stateChange` must be forwarded to
|
|
132
|
+
`handleStateChange()`). If the gateway is not running yet, subscriptions are sent
|
|
133
|
+
as soon as it starts; open GATT connections are reported via `onDisconnect` when
|
|
134
|
+
it stops. An optional third constructor argument `onConnectionChange(connected)`
|
|
135
|
+
tells you when the gateway confirmed a subscription or went away.
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
import { BleGatewayClient } from './lib/ble-gateway-client';
|
|
139
|
+
|
|
140
|
+
class MyAdapter extends Adapter {
|
|
141
|
+
private ble = new BleGatewayClient(this);
|
|
142
|
+
|
|
143
|
+
constructor(options) {
|
|
144
|
+
super({ ...options,
|
|
145
|
+
message: obj => { if (!this.ble.handleMessage(obj)) { /* your commands */ } },
|
|
146
|
+
stateChange: (id, state) => this.ble.handleStateChange(id, state),
|
|
147
|
+
unload: cb => this.ble.destroy().finally(cb),
|
|
148
|
+
ready: () => this.onReady(),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
async onReady() {
|
|
153
|
+
await this.ble.subscribe('sensors', { macs: ['aa:bb:cc:dd:ee:ff'] }, packet => {
|
|
154
|
+
this.log.info(`${packet.address} rssi=${packet.rssi} ${packet.manufacturerData?.toString('hex')}`);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
GATT through the helper:
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const conn = await this.ble.gattConnect('aa:bb:cc:dd:ee:ff');
|
|
164
|
+
try {
|
|
165
|
+
await conn.subscribe('fff1', data => this.log.info(`notify ${data.toString('hex')}`));
|
|
166
|
+
await conn.write('fff2', Buffer.from('0102', 'hex'));
|
|
167
|
+
const value = await conn.read('2a19');
|
|
168
|
+
} finally {
|
|
169
|
+
await conn.disconnect();
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## States
|
|
174
|
+
|
|
175
|
+
| State | Type | Description |
|
|
176
|
+
|----------------------|---------|------------------------------------------|
|
|
177
|
+
| `info.connection` | boolean | Controller open and scanning |
|
|
178
|
+
| `info.subscribers` | number | Number of subscribed adapters |
|
|
179
|
+
| `info.subscriptions` | string | JSON list of active subscriptions |
|
|
180
|
+
| `info.connections` | number | Open GATT connections |
|
|
181
|
+
|
|
182
|
+
## Requirements
|
|
183
|
+
|
|
184
|
+
- Linux with BlueZ (`apt install bluez libbluetooth-dev`) or macOS.
|
|
185
|
+
- Node.js ≥ 20.
|
|
186
|
+
- The adapter must be allowed to access the HCI socket (typically run as root or with `setcap`).
|
|
187
|
+
|
|
188
|
+
## Changelog
|
|
189
|
+
<!--
|
|
190
|
+
Placeholder for the next version (at the beginning of the line):
|
|
191
|
+
### **WORK IN PROGRESS**
|
|
192
|
+
-->
|
|
193
|
+
### 0.1.0 (2026-11-23)
|
|
194
|
+
* (@GermanBluefox) Initial version — passive advertisement gateway with message-based subscribe/unsubscribe.
|
|
195
|
+
* (@GermanBluefox) GATT proxy: other adapters can connect, read, write and receive notifications through the gateway.
|
|
196
|
+
* (@GermanBluefox) Fixed: the configured controller MAC was sometimes not found (HCI sockets were closed twice), and concurrent subscribers could start the scan twice.
|
|
197
|
+
* (@GermanBluefox) The gateway recovers by itself when the controller drops off or the scan stops delivering advertisements.
|
|
198
|
+
* (@GermanBluefox) Packets carry the `connectable` flag, and the `serviceUuids` filter also matches service data UUIDs (needed by the ble adapter).
|
|
199
|
+
* (GermanBluefox) Replaced the telegram project context in the Copilot instructions and fixed the duplicate-issue check of the Copilot template workflow (#51)
|
|
200
|
+
|
|
201
|
+
## License
|
|
202
|
+
|
|
203
|
+
MIT License
|
|
204
|
+
|
|
205
|
+
Copyright (c) 2026 bluefox <dogafox@gmail.com>
|
|
206
|
+
|
|
207
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
208
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
209
|
+
in the Software without restriction, including without limitation the rights
|
|
210
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
211
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
212
|
+
furnished to do so, subject to the following conditions:
|
|
213
|
+
|
|
214
|
+
The above copyright notice and this permission notice shall be included in all
|
|
215
|
+
copies or substantial portions of the Software.
|
|
216
|
+
|
|
217
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
218
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
219
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
220
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
221
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
222
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
223
|
+
SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Allgemeine Einstellungen",
|
|
3
|
+
"Batteries": "Batterien",
|
|
4
|
+
"Bluetooth adapter": "Bluetooth-Adapter",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "HCI-Adapter wählen. Adapter nach Änderung neu starten.",
|
|
6
|
+
"Polling interval (ms)": "Abfrage-Intervall (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Zeit zwischen vollen Abfragezyklen in Millisekunden.",
|
|
8
|
+
"Gap between batteries (ms)": "Pause zwischen Batterien (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pause zwischen aufeinanderfolgenden Batterien innerhalb eines Zyklus.",
|
|
10
|
+
"Scan duration (ms)": "Scan-Dauer (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Wie lange der BLE-Scan laufen soll.",
|
|
12
|
+
"Name prefixes": "Namens-Präfixe",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Komma-getrennte Liste von Namens-Präfixen (Groß-/Kleinschreibung egal). Leer lassen, um alle Geräte im Scan anzuzeigen.",
|
|
14
|
+
"Scan for BLE devices": "Nach BLE-Geräten suchen",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Startet einen BLE-Scan über den konfigurierten HCI-Adapter und listet Geräte in der Umgebung auf. Übernehmen Sie eine MAC in die Tabelle unten.",
|
|
16
|
+
"Discovered devices": "Gefundene Geräte",
|
|
17
|
+
"Configured batteries": "Konfigurierte Batterien",
|
|
18
|
+
"Enabled": "Aktiv",
|
|
19
|
+
"Include in totals": "In Gesamtwerten berücksichtigen",
|
|
20
|
+
"Name": "Name",
|
|
21
|
+
"MAC address": "MAC-Adresse",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Main settings",
|
|
3
|
+
"Batteries": "Batteries",
|
|
4
|
+
"Bluetooth adapter": "Bluetooth adapter",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Pick the HCI adapter. Restart adapter after change.",
|
|
6
|
+
"Polling interval (ms)": "Polling interval (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Interval between full poll cycles, in milliseconds.",
|
|
8
|
+
"Gap between batteries (ms)": "Gap between batteries (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pause between consecutive battery reads in one cycle.",
|
|
10
|
+
"Scan duration (ms)": "Scan duration (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "How long the BLE scan should run.",
|
|
12
|
+
"Name prefixes": "Name prefixes",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.",
|
|
14
|
+
"Scan for BLE devices": "Scan for BLE devices",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.",
|
|
16
|
+
"Discovered devices": "Discovered devices",
|
|
17
|
+
"Configured batteries": "Configured batteries",
|
|
18
|
+
"Enabled": "Enabled",
|
|
19
|
+
"Include in totals": "Include in totals",
|
|
20
|
+
"Name": "Name",
|
|
21
|
+
"MAC address": "MAC address",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Configuración principal",
|
|
3
|
+
"Batteries": "Baterías",
|
|
4
|
+
"Bluetooth adapter": "Adaptador Bluetooth",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Selecciona el adaptador HCI. Reinicia el adaptador tras cambiar.",
|
|
6
|
+
"Polling interval (ms)": "Intervalo de sondeo (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Intervalo entre ciclos completos de sondeo, en milisegundos.",
|
|
8
|
+
"Gap between batteries (ms)": "Pausa entre baterías (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pausa entre lecturas consecutivas de baterías en un ciclo.",
|
|
10
|
+
"Scan duration (ms)": "Duración del escaneo (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Cuánto tiempo debe durar el escaneo BLE.",
|
|
12
|
+
"Name prefixes": "Prefijos de nombre",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Lista de prefijos de nombre separados por comas (insensible a mayúsculas). Déjalo vacío para mostrar todos los dispositivos en el escaneo.",
|
|
14
|
+
"Scan for BLE devices": "Buscar dispositivos BLE",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Ejecuta un escaneo BLE mediante el adaptador HCI configurado y lista los dispositivos cercanos. Copia una MAC en la tabla inferior.",
|
|
16
|
+
"Discovered devices": "Dispositivos detectados",
|
|
17
|
+
"Configured batteries": "Baterías configuradas",
|
|
18
|
+
"Enabled": "Activo",
|
|
19
|
+
"Include in totals": "Incluir en totales",
|
|
20
|
+
"Name": "Nombre",
|
|
21
|
+
"MAC address": "Dirección MAC",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Paramètres principaux",
|
|
3
|
+
"Batteries": "Batteries",
|
|
4
|
+
"Bluetooth adapter": "Adaptateur Bluetooth",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Choisissez l'adaptateur HCI. Redémarrez l'adaptateur après modification.",
|
|
6
|
+
"Polling interval (ms)": "Intervalle d'interrogation (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Intervalle entre les cycles complets d'interrogation, en millisecondes.",
|
|
8
|
+
"Gap between batteries (ms)": "Pause entre les batteries (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pause entre les lectures consécutives de batteries dans un cycle.",
|
|
10
|
+
"Scan duration (ms)": "Durée du scan (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Durée du scan BLE.",
|
|
12
|
+
"Name prefixes": "Préfixes de nom",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Liste de préfixes de nom séparés par des virgules (insensible à la casse). Laissez vide pour afficher tous les appareils du scan.",
|
|
14
|
+
"Scan for BLE devices": "Rechercher les appareils BLE",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Lance un scan BLE via l'adaptateur HCI configuré et liste les appareils proches. Copiez une MAC dans le tableau ci-dessous.",
|
|
16
|
+
"Discovered devices": "Appareils détectés",
|
|
17
|
+
"Configured batteries": "Batteries configurées",
|
|
18
|
+
"Enabled": "Activé",
|
|
19
|
+
"Include in totals": "Inclure dans les totaux",
|
|
20
|
+
"Name": "Nom",
|
|
21
|
+
"MAC address": "Adresse MAC",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Impostazioni principali",
|
|
3
|
+
"Batteries": "Batterie",
|
|
4
|
+
"Bluetooth adapter": "Adattatore Bluetooth",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Seleziona l'adattatore HCI. Riavvia l'adattatore dopo la modifica.",
|
|
6
|
+
"Polling interval (ms)": "Intervallo di polling (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Intervallo tra cicli di polling completi, in millisecondi.",
|
|
8
|
+
"Gap between batteries (ms)": "Pausa tra batterie (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pausa tra letture consecutive di batterie in un ciclo.",
|
|
10
|
+
"Scan duration (ms)": "Durata scansione (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Durata della scansione BLE.",
|
|
12
|
+
"Name prefixes": "Prefissi del nome",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Elenco di prefissi del nome separati da virgola (case-insensitive). Lascia vuoto per mostrare tutti i dispositivi nella scansione.",
|
|
14
|
+
"Scan for BLE devices": "Cerca dispositivi BLE",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Esegue una scansione BLE tramite l'adattatore HCI configurato ed elenca i dispositivi vicini. Copia un MAC nella tabella sottostante.",
|
|
16
|
+
"Discovered devices": "Dispositivi rilevati",
|
|
17
|
+
"Configured batteries": "Batterie configurate",
|
|
18
|
+
"Enabled": "Attivo",
|
|
19
|
+
"Include in totals": "Includi nei totali",
|
|
20
|
+
"Name": "Nome",
|
|
21
|
+
"MAC address": "Indirizzo MAC",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Hoofdinstellingen",
|
|
3
|
+
"Batteries": "Accu's",
|
|
4
|
+
"Bluetooth adapter": "Bluetooth-adapter",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Kies de HCI-adapter. Adapter na wijziging herstarten.",
|
|
6
|
+
"Polling interval (ms)": "Polling-interval (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Tijd tussen volledige pollcycli, in milliseconden.",
|
|
8
|
+
"Gap between batteries (ms)": "Pauze tussen accu's (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pauze tussen opeenvolgende accu-uitlezingen in één cyclus.",
|
|
10
|
+
"Scan duration (ms)": "Scanduur (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Hoe lang de BLE-scan moet duren.",
|
|
12
|
+
"Name prefixes": "Naam-voorvoegsels",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Door komma's gescheiden lijst van voorvoegsels (hoofdletterongevoelig). Laat leeg om alle apparaten in de scan te tonen.",
|
|
14
|
+
"Scan for BLE devices": "BLE-apparaten zoeken",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Voert een BLE-scan uit via de ingestelde HCI-adapter en toont apparaten in de buurt. Kopieer een MAC naar de onderstaande tabel.",
|
|
16
|
+
"Discovered devices": "Gevonden apparaten",
|
|
17
|
+
"Configured batteries": "Geconfigureerde accu's",
|
|
18
|
+
"Enabled": "Actief",
|
|
19
|
+
"Include in totals": "Meetellen in totalen",
|
|
20
|
+
"Name": "Naam",
|
|
21
|
+
"MAC address": "MAC-adres",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Ustawienia główne",
|
|
3
|
+
"Batteries": "Akumulatory",
|
|
4
|
+
"Bluetooth adapter": "Adapter Bluetooth",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Wybierz adapter HCI. Po zmianie zrestartuj adapter.",
|
|
6
|
+
"Polling interval (ms)": "Interwał odpytywania (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Odstęp między pełnymi cyklami odpytywania, w milisekundach.",
|
|
8
|
+
"Gap between batteries (ms)": "Przerwa między akumulatorami (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pauza między kolejnymi odczytami akumulatorów w jednym cyklu.",
|
|
10
|
+
"Scan duration (ms)": "Czas skanowania (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Jak długo powinno trwać skanowanie BLE.",
|
|
12
|
+
"Name prefixes": "Prefiksy nazw",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Lista prefiksów nazw oddzielona przecinkami (bez rozróżniania wielkości liter). Pozostaw puste, aby pokazać wszystkie urządzenia w skanowaniu.",
|
|
14
|
+
"Scan for BLE devices": "Skanuj urządzenia BLE",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Uruchamia skanowanie BLE przez skonfigurowany adapter HCI i pokazuje pobliskie urządzenia. Skopiuj MAC do tabeli poniżej.",
|
|
16
|
+
"Discovered devices": "Wykryte urządzenia",
|
|
17
|
+
"Configured batteries": "Skonfigurowane akumulatory",
|
|
18
|
+
"Enabled": "Aktywny",
|
|
19
|
+
"Include in totals": "Uwzględnij w sumach",
|
|
20
|
+
"Name": "Nazwa",
|
|
21
|
+
"MAC address": "Adres MAC",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Configurações principais",
|
|
3
|
+
"Batteries": "Baterias",
|
|
4
|
+
"Bluetooth adapter": "Adaptador Bluetooth",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Selecione o adaptador HCI. Reinicie o adaptador após alterar.",
|
|
6
|
+
"Polling interval (ms)": "Intervalo de polling (ms)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Intervalo entre ciclos completos de polling, em milissegundos.",
|
|
8
|
+
"Gap between batteries (ms)": "Pausa entre baterias (ms)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Pausa entre leituras consecutivas de baterias em um ciclo.",
|
|
10
|
+
"Scan duration (ms)": "Duração da varredura (ms)",
|
|
11
|
+
"How long the BLE scan should run.": "Quanto tempo a varredura BLE deve durar.",
|
|
12
|
+
"Name prefixes": "Prefixos de nome",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Lista de prefixos de nome separados por vírgula (sem distinção de maiúsculas). Deixe vazio para mostrar todos os dispositivos na varredura.",
|
|
14
|
+
"Scan for BLE devices": "Procurar dispositivos BLE",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Executa uma varredura BLE através do adaptador HCI configurado e lista os dispositivos próximos. Copie um MAC para a tabela abaixo.",
|
|
16
|
+
"Discovered devices": "Dispositivos encontrados",
|
|
17
|
+
"Configured batteries": "Baterias configuradas",
|
|
18
|
+
"Enabled": "Ativo",
|
|
19
|
+
"Include in totals": "Incluir nos totais",
|
|
20
|
+
"Name": "Nome",
|
|
21
|
+
"MAC address": "Endereço MAC",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Основные настройки",
|
|
3
|
+
"Batteries": "Батареи",
|
|
4
|
+
"Bluetooth adapter": "Bluetooth-адаптер",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Выберите HCI-адаптер. После изменения перезапустите адаптер.",
|
|
6
|
+
"Polling interval (ms)": "Интервал опроса (мс)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Интервал между полными циклами опроса, в миллисекундах.",
|
|
8
|
+
"Gap between batteries (ms)": "Пауза между батареями (мс)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Пауза между чтениями соседних батарей в одном цикле.",
|
|
10
|
+
"Scan duration (ms)": "Длительность сканирования (мс)",
|
|
11
|
+
"How long the BLE scan should run.": "Сколько времени должен идти BLE-скан.",
|
|
12
|
+
"Name prefixes": "Префиксы имени",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Список префиксов имени через запятую (регистр не важен). Пусто — показывать все устройства в скане.",
|
|
14
|
+
"Scan for BLE devices": "Сканировать BLE-устройства",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Запускает BLE-сканирование через настроенный HCI-адаптер и показывает устройства поблизости. Скопируйте MAC в таблицу ниже.",
|
|
16
|
+
"Discovered devices": "Найденные устройства",
|
|
17
|
+
"Configured batteries": "Настроенные батареи",
|
|
18
|
+
"Enabled": "Активно",
|
|
19
|
+
"Include in totals": "Учитывать в сумме",
|
|
20
|
+
"Name": "Имя",
|
|
21
|
+
"MAC address": "MAC-адрес",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "Основні налаштування",
|
|
3
|
+
"Batteries": "Батареї",
|
|
4
|
+
"Bluetooth adapter": "Bluetooth-адаптер",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "Виберіть HCI-адаптер. Після зміни перезапустіть адаптер.",
|
|
6
|
+
"Polling interval (ms)": "Інтервал опитування (мс)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "Інтервал між повними циклами опитування, у мілісекундах.",
|
|
8
|
+
"Gap between batteries (ms)": "Пауза між батареями (мс)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "Пауза між послідовними зчитуваннями батарей в одному циклі.",
|
|
10
|
+
"Scan duration (ms)": "Тривалість сканування (мс)",
|
|
11
|
+
"How long the BLE scan should run.": "Скільки має тривати BLE-сканування.",
|
|
12
|
+
"Name prefixes": "Префікси імені",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "Список префіксів імені через кому (регістр не важливий). Залиште порожнім, щоб показати всі пристрої в скануванні.",
|
|
14
|
+
"Scan for BLE devices": "Сканувати BLE-пристрої",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "Запускає BLE-сканування через налаштований HCI-адаптер і перераховує пристрої поруч. Скопіюйте MAC до таблиці нижче.",
|
|
16
|
+
"Discovered devices": "Знайдені пристрої",
|
|
17
|
+
"Configured batteries": "Налаштовані батареї",
|
|
18
|
+
"Enabled": "Активно",
|
|
19
|
+
"Include in totals": "Враховувати у підсумках",
|
|
20
|
+
"Name": "Ім'я",
|
|
21
|
+
"MAC address": "MAC-адреса",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Main settings": "主要设置",
|
|
3
|
+
"Batteries": "电池",
|
|
4
|
+
"Bluetooth adapter": "蓝牙适配器",
|
|
5
|
+
"Pick the HCI adapter. Restart adapter after change.": "选择 HCI 适配器。修改后请重启适配器。",
|
|
6
|
+
"Polling interval (ms)": "轮询间隔 (毫秒)",
|
|
7
|
+
"Interval between full poll cycles, in milliseconds.": "完整轮询周期之间的间隔,单位毫秒。",
|
|
8
|
+
"Gap between batteries (ms)": "电池之间的间隔 (毫秒)",
|
|
9
|
+
"Pause between consecutive battery reads in one cycle.": "同一轮询周期内两块电池读取之间的暂停。",
|
|
10
|
+
"Scan duration (ms)": "扫描时长 (毫秒)",
|
|
11
|
+
"How long the BLE scan should run.": "BLE 扫描运行时长。",
|
|
12
|
+
"Name prefixes": "名称前缀",
|
|
13
|
+
"Comma-separated list of advertising-name prefixes (case-insensitive). Leave empty to show all devices in the scan.": "广告名称前缀列表,使用逗号分隔(不区分大小写)。留空以在扫描中显示所有设备。",
|
|
14
|
+
"Scan for BLE devices": "扫描 BLE 设备",
|
|
15
|
+
"Runs a BLE scan via the configured HCI adapter and lists nearby devices. Copy a MAC into the table below.": "通过配置的 HCI 适配器进行 BLE 扫描并列出附近的设备。将 MAC 复制到下方表格。",
|
|
16
|
+
"Discovered devices": "发现的设备",
|
|
17
|
+
"Configured batteries": "已配置的电池",
|
|
18
|
+
"Enabled": "启用",
|
|
19
|
+
"Include in totals": "纳入合计",
|
|
20
|
+
"Name": "名称",
|
|
21
|
+
"MAC address": "MAC 地址",
|
|
22
|
+
"MAC": "MAC",
|
|
23
|
+
"RSSI": "RSSI"
|
|
24
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"i18n": true,
|
|
3
|
+
"type": "tabs",
|
|
4
|
+
"items": {
|
|
5
|
+
"_main": {
|
|
6
|
+
"type": "panel",
|
|
7
|
+
"label": "Main settings",
|
|
8
|
+
"items": {
|
|
9
|
+
"hciDevice": {
|
|
10
|
+
"type": "selectSendTo",
|
|
11
|
+
"command": "listHciAdapters",
|
|
12
|
+
"manual": true,
|
|
13
|
+
"xs": 12,
|
|
14
|
+
"sm": 6,
|
|
15
|
+
"md": 4,
|
|
16
|
+
"lg": 4,
|
|
17
|
+
"xl": 4,
|
|
18
|
+
"default": "",
|
|
19
|
+
"label": "Bluetooth adapter",
|
|
20
|
+
"help": "Selects the Bluetooth controller by MAC address (BD_ADDR). MAC is stable across reboots, hciX numbering is not."
|
|
21
|
+
},
|
|
22
|
+
"scanDurationMs": {
|
|
23
|
+
"newLine": true,
|
|
24
|
+
"type": "number",
|
|
25
|
+
"min": 1000,
|
|
26
|
+
"max": 60000,
|
|
27
|
+
"step": 500,
|
|
28
|
+
"xs": 12,
|
|
29
|
+
"sm": 6,
|
|
30
|
+
"md": 3,
|
|
31
|
+
"lg": 3,
|
|
32
|
+
"xl": 3,
|
|
33
|
+
"default": 8000,
|
|
34
|
+
"label": "Diagnostic scan duration (ms)",
|
|
35
|
+
"help": "How long the diagnostic scan (button below) should run."
|
|
36
|
+
},
|
|
37
|
+
"_info": {
|
|
38
|
+
"newLine": true,
|
|
39
|
+
"type": "staticText",
|
|
40
|
+
"xs": 12,
|
|
41
|
+
"sm": 12,
|
|
42
|
+
"md": 12,
|
|
43
|
+
"lg": 12,
|
|
44
|
+
"xl": 12,
|
|
45
|
+
"text": "This gateway owns the Bluetooth controller and shares BLE advertisement packets with other adapters. No controller is opened until at least one adapter subscribes."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"_diagnostics": {
|
|
50
|
+
"type": "panel",
|
|
51
|
+
"label": "Diagnostics",
|
|
52
|
+
"items": {
|
|
53
|
+
"_scan": {
|
|
54
|
+
"type": "sendTo",
|
|
55
|
+
"command": "scan",
|
|
56
|
+
"jsonData": "{ \"duration\": ${data.scanDurationMs}, \"hciDevice\": \"${data.hciDevice}\" }",
|
|
57
|
+
"variant": "contained",
|
|
58
|
+
"xs": 12,
|
|
59
|
+
"sm": 12,
|
|
60
|
+
"md": 4,
|
|
61
|
+
"lg": 4,
|
|
62
|
+
"xl": 4,
|
|
63
|
+
"label": "Scan for BLE devices",
|
|
64
|
+
"help": "Runs a one-shot BLE scan via the configured controller and lists nearby devices. Does not change subscriptions."
|
|
65
|
+
},
|
|
66
|
+
"_status": {
|
|
67
|
+
"type": "sendTo",
|
|
68
|
+
"command": "getStatus",
|
|
69
|
+
"variant": "outlined",
|
|
70
|
+
"xs": 12,
|
|
71
|
+
"sm": 12,
|
|
72
|
+
"md": 4,
|
|
73
|
+
"lg": 4,
|
|
74
|
+
"xl": 4,
|
|
75
|
+
"label": "Show status",
|
|
76
|
+
"help": "Shows the current controller state and active subscriptions."
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|