Version 125.1 by Yi Wang on 2025/02/13 15:23

Show last authors
1
2
3 [[image:image-20250212172902-1.png]]
4
5
6
7
8
9 **Table of Contents:**
10
11 {{toc/}}
12
13
14
15
16
17
18 = 1. Introduction =
19
20 == 1.1 What is BH01-LB LoRaWAN Sensor Node ==
21
22
23 (% style="color:blue" %)**BH01-LB**(%%)LoRaWAN Sensor Node is a Long Range LoRa Sensor Node. It is designed for outdoor use and powered by (% style="color:blue" %)** 8500mAh Li/SOCl2 battery**(%%)  for long term use.SN50V3-LB/LS is designed to facilitate developers to quickly deploy industrial level LoRa and IoT solutions. It help users to turn the idea into a practical application and make the Internet of Things a reality. It is easy to program, create and connect your things everywhere.
24
25 (% style="color:blue" %)**BH01-LB wireless part**(%%) is based on SX1262 allows the user to send data and reach extremely long ranges at low data-rates.It provides ultra-long range spread spectrum communication and high interference immunity whilst minimising current consumption.It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, and so on.
26
27 SN50V3-LB/LS has a (% style="color:blue" %)**built-in BLE module**(%%), user can configure the sensor remotely via Mobile Phone. It also support (% style="color:blue" %)**OTA upgrade**(%%) via private LoRa protocol for easy maintaining.
28
29 SN50V3-LB/LS is the 3^^rd^^ generation of LSN50 series generic sensor node from Dragino. It is an (% style="color:blue" %)**open source project**(%%) and has a mature LoRaWAN stack and application software. User can use the pre-load software for their IoT projects or easily customize the software for different requirements.
30
31 == 1.2 ​Features ==
32
33
34 * LoRaWAN 1.0.3 Class A
35 * Ultra-low power consumption
36 * Open-Source hardware/software
37 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
38 * Support Bluetooth v5.1 and LoRaWAN remote configure
39 * Support wireless OTA update firmware
40 * Uplink on periodically
41 * Downlink to change configure
42 * 8500mAh Li/SOCl2 Battery
43
44 == 1.3 Specification ==
45
46
47 (% style="color:#037691" %)**Common DC Characteristics:**
48
49 * Supply Voltage: Built-in Battery , 2.5v ~~ 3.6v
50 * Operating Temperature: -40 ~~ 85°C
51
52 (% style="color:#037691" %)**I/O Interface:**
53
54 * Battery output (2.6v ~~ 3.6v depends on battery)
55 * +5v controllable output
56 * 3 x Interrupt or Digital IN/OUT pins
57 * 3 x one-wire interfaces
58 * 1 x UART Interface
59 * 1 x I2C Interface
60
61 (% style="color:#037691" %)**LoRa Spec:**
62
63 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
64 * Max +22 dBm constant RF output vs.
65 * RX sensitivity: down to -139 dBm.
66 * Excellent blocking immunity
67
68 (% style="color:#037691" %)**Battery:**
69
70 * Li/SOCI2 un-chargeable battery
71 * Capacity: 8500mAh
72 * Self-Discharge: <1% / Year @ 25°C
73 * Max continuously current: 130mA
74 * Max boost current: 2A, 1 second
75
76 (% style="color:#037691" %)**Power Consumption**
77
78 * Sleep Mode: 5uA @ 3.3v
79 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
80
81 == 1.4 Sleep mode and working mode ==
82
83
84 (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life.
85
86 (% style="color:blue" %)**Working Mode:** (%%)In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.
87
88
89 == 1.5 Button & LEDs ==
90
91
92 [[image:image-20250213090333-1.png]]
93
94 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
95 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**Action**
96 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
97 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
98 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
99 )))
100 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
101 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network.
102 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
103 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network.
104 )))
105 |(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means device is in Deep Sleep Mode.
106
107 == 1.6 BLE connection ==
108
109
110 BH01-LB supports BLE remote configure.
111
112
113 BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case:
114
115 * Press button to send an uplink
116 * Press button to active device.
117 * Device Power on or reset.
118
119 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
120
121
122 == 1.7 Pin Definitions ==
123
124
125 [[image:image-20230610163213-1.png||height="404" width="699"]]
126
127
128 == 1.8 Mechanical ==
129
130
131 [[image:image-20240924112806-1.png||height="548" width="894"]]
132
133
134
135 === ===
136
137
138 == 1.9 Hole Option ==
139
140
141 BH01-LB has different hole size options for different size sensor cable. The options provided are M12, M16 and M20. The definition is as below:
142
143 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220627104757-1.png?rev=1.1||alt="image-20220627104757-1.png"]]
144
145 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/1656298089706-973.png?rev=1.1||alt="1656298089706-973.png"]]
146
147
148 = 2. Configure BH01-LB to connect to LoRaWAN network =
149
150 == 2.1 How it works ==
151
152
153 BH01-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the BH01-LB.It will automatically join the network via OTAA and start scanning nearby Bluetooth devices, sending the scanned device information to the network.The default uplink interval is 20 minutes.
154
155
156 == 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
157
158
159 Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] as a LoRaWAN gateway in this example.
160
161 The LPS8v2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server.
162
163
164 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from BH01-LB.
165
166 Each BH01-LB is shipped with a sticker with the default device EUI as below:
167
168 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/S31-LB_S31B-LB/WebHome/image-20230426084152-1.png?width=502&height=233&rev=1.1||alt="图片-20230426084152-1.png" height="233" width="502"]]
169
170
171 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
172
173
174 (% style="color:blue" %)**Register the device**
175
176 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/1654935135620-998.png?rev=1.1||alt="1654935135620-998.png"]]
177
178
179 (% style="color:blue" %)**Add APP EUI and DEV EUI**
180
181 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-4.png?width=753&height=551&rev=1.1||alt="图片-20220611161308-4.png"]]
182
183
184 (% style="color:blue" %)**Add APP EUI in the application**
185
186
187 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-5.png?width=742&height=601&rev=1.1||alt="图片-20220611161308-5.png"]]
188
189
190 (% style="color:blue" %)**Add APP KEY**
191
192 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-6.png?width=744&height=485&rev=1.1||alt="图片-20220611161308-6.png"]]
193
194 (% style="color:blue" %)**Step 2:**(%%) Activate BH01-LB
195
196 Press the button for 5 seconds to activate the BH01-LB.
197
198 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
199
200 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
201
202
203 == 2.3 ​Uplink Payload ==
204
205 === 2.3.1 Device Status, FPORT~=5 ===
206
207
208 Users can use the downlink command(**0x26 01**) to ask BH01-LB to send device configure detail, include device configure status. BH01-LB will uplink a payload via FPort=5 to server.
209
210 The Payload format is as below.
211
212
213 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
214 |(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)**
215 |(% style="width:103px" %)**Size (bytes)**|(% style="width:72px" %)**1**|**2**|(% style="width:91px" %)**1**|(% style="width:86px" %)**1**|(% style="width:44px" %)**2**
216 |(% style="width:103px" %)Value|(% style="width:72px" %)Sensor Model|Firmware Version|(% style="width:91px" %)Frequency Band|(% style="width:86px" %)Sub-band|(% style="width:44px" %)BAT
217
218 Example parse in TTNv3
219
220
221 (% style="color:#037691" %)**Sensor Model**(%%): For SN50v3-LB, this value is 0x44
222
223 (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version
224
225 (% style="color:#037691" %)**Frequency Band**:
226
227 0x01: EU868
228
229 0x02: US915
230
231 0x03: IN865
232
233 0x04: AU915
234
235 0x05: KZ865
236
237 0x06: RU864
238
239 0x07: AS923
240
241 0x08: AS923-1
242
243 0x09: AS923-2
244
245 0x0a: AS923-3
246
247 0x0b: CN470
248
249 0x0c: EU433
250
251 0x0d: KR920
252
253 0x0e: MA869
254
255
256 (% style="color:#037691" %)**Sub-Band**:
257
258 AU915 and US915:value 0x00 ~~ 0x08
259
260 CN470: value 0x0B ~~ 0x0C
261
262 Other Bands: Always 0x00
263
264
265 (% style="color:#037691" %)**Battery Info**:
266
267 Check the battery voltage.
268
269 Ex1: 0x0B45 = 2885mV
270
271 Ex2: 0x0B49 = 2889mV
272
273
274 === 2.3.2 Working Modes & Sensor Data. Uplink via FPORT~=2 ===
275
276
277 BH01-LB has different working mode for the connections of different type of sensors. This section describes these modes. Use can use the AT Command:
278
279 AT+MODEL=abcdefgh to set BH01-LB to different working modes.
280
281 For example:
282
283 (% style="color:blue" %)**AT+MODEL=**(% style="color:red" %)**03**(% style="color:#de9963" %)**05**(% style="color:#debd63" %)**00**(% style="color:#b0de63" %)**19**(% style="color:#63de69" %)**0b**(% style="color:#63d0de" %)**00**(% style="color:#6395de" %)**04**(% style="color:#b663de" %)**ff4c000215011223344556**(%%) (turn on scanning Bluetooth ibeacon beacons)
284
285 Parameter (% style="color:red" %)**a = 0x03:**(%%) Set the scanning mode to Bluetooth ibeacon beacons.
286
287 Parameter (% style="color:#de9963" %)**b = 0x05:**(%%) Set the intercepted data length to 5.
288
289 Parameter (% style="color:#debd63" %)**c = 0x00:**(%%) Set the intercepted data position to the broadcast packet.
290
291 Parameter (% style="color:#b0de63" %)**d = 0x19:**(%%) Set the intercepted data starting position 25.
292
293 Parameter (% style="color:#63de69" %)**e = 0x0b:**(%%) Set the filter data length to 11.
294
295 Parameter (% style="color:#63d0de" %)**f = 0x00:**(%%) Set the filter data position to the scan reply response packet.
296
297 Parameter (% style="color:#6395de" %)**g = 0x04:**(%%) Set the filter data starting position 4.
298
299 Parameter (% style="color:#b663de" %)**h = 0xff4c000215011223344556:**(%%) Set the filter data to 0xff4c000215011223344556 (0xff is AD Type).
300
301
302 ==== 2.3.2.1 Parameter Description ====
303
304 ===== 2.3.2.1.1 Parameter a: type mode =====
305
306 Modes 4 to 16 (a = 0x04 to 0x16) are user-defined scanning device modes based on the sensor used.
307
308 ====== (% style="color:blue" %)**Mode 1 (a ~= 0x01): Bluetooth Temperature Tag (TAH02) mode**(%%) ======
309
310 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:615.667px" %)
311 |(% style="background-color:#4f81bd; color:white; width:207px" %)**Mac address (6 bytes)**|(% style="background-color:#4f81bd; color:white; width:179px" %)**0xEE 3B 14 28 32 D1**|(% style="background-color:#4f81bd; color:white; width:250px" %)/
312 |(% style="width:207px" %)Sensor type (1 byte)|(% style="width:179px" %)0x03|(% style="width:250px" %)Temperature sensor
313 |(% style="width:207px" %)Sensor data length (1 byte)|(% style="width:179px" %)0x04|(% style="width:250px" %)Data length
314 |(% style="width:207px" %)Temperature (2 bytes)|(% style="width:179px" %)0x2701|(% style="width:250px" %)Temperature:29.5℃
315 |(% style="width:207px" %)Battery (1 byte)|(% style="width:179px" %)0x64|(% style="width:250px" %)Battery:100%
316 |(% style="width:207px" %)RSSI (1 byte)|(% style="width:179px" %)0xC3|(% style="width:250px" %)1 meter output power:-61db
317
318 **AT+MODEL=0104:** Start scanning Bluetooth temperature tag (TAH02)mode.
319
320 **AT+MODEL=0100**: Turn off scanning for Bluetooth temperature tags (TAH02)mode.
321
322
323 ====== (% style="color:blue" %)**Mode 2 (a ~= 0x02): Bluetooth temperature and humidity (ES01) mode**(%%) ======
324
325 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:615.667px" %)
326 |(% style="background-color:#4f81bd; color:white; width:207px" %)**Mac address (6 bytes)**|(% style="background-color:#4f81bd; color:white; width:179px" %)**0xEE 3B 14 28 32 D1**|(% style="background-color:#4f81bd; color:white; width:250px" %)/
327 |(% style="width:207px" %)Sensor type (1 byte)|(% style="width:179px" %)0x03|(% style="width:250px" %)Temperature and humidity sensor
328 |(% style="width:207px" %)Sensor data length (1 byte)|(% style="width:179px" %)0x05|(% style="width:250px" %)Data length
329 |(% style="width:207px" %)Humidity (1 byte)|(% style="width:179px" %)0x4C|(% style="width:250px" %)THumidity:76%
330 |(% style="width:207px" %)Temperature (2 bytes)|(% style="width:179px" %)0x2701|(% style="width:250px" %)Temperature:29.5℃
331 |(% style="width:207px" %)Battery (1 byte)|(% style="width:179px" %)0x64|(% style="width:250px" %)Battery:100%
332 |(% style="width:207px" %)RSSI (1 byte)|(% style="width:179px" %)0xC3|(% style="width:250px" %)1 meter output power:-61db
333
334 **AT+MODEL=0205**: Enable Bluetooth temperature and humidity scanning (ES01)mode.
335
336 **AT+MODEL=0200**: Disable Bluetooth temperature and humidity scanning (ES01)mode.
337
338
339 ====== (% style="color:blue" %)**Mode 3 (a ~= 0x03): Bluetooth ibeacon mode**(%%) ======
340
341 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:703.667px" %)
342 |(% style="background-color:#4f81bd; color:white; width:207px" %)**Mac address (6 bytes)**|(% style="background-color:#4f81bd; color:white; width:179px" %)**0xEE 3B 14 28 32 D1**|(% style="background-color:#4f81bd; color:white; width:330px" %)/
343 |(% style="width:207px" %)Sensor type (1 byte)|(% style="width:179px" %)(((
344 0x01
345 )))|(% style="width:330px" %)ibeacon beacon
346 |(% style="width:207px" %)Sensor data length (1 byte)|(% style="width:179px" %)0x06|(% style="width:330px" %)Data length
347 |(% style="width:207px" %)Major (2byte)|(% style="width:179px" %)0x1122|(% style="width:330px" %)/
348 |(% style="width:207px" %)Minor (2byte)|(% style="width:179px" %)0x004c|(% style="width:330px" %)/
349 |(% style="width:207px" %)Measured Power(1byte)|(% style="width:179px" %)0x64|(% style="width:330px" %)Measured Bluetooth transmission power
350 |(% style="width:207px" %)RSSI (1 byte)|(% style="width:179px" %)0xC3|(% style="width:330px" %)1 meter output power:-61db
351
352 **AT+MODEL=030500190b0004ff4c000215011223344556**: Enable the Bluetooth ibeacon beacon scanning mode.
353
354 **AT+MODEL=0300**: Disable the Bluetooth ibeacon beacon scanning mode.
355
356
357 ====== (% style="color:blue" %)**Mode 4 to 16(a ~= 0x04 to 0x16: user-defined scanning device mode**(%%) ======
358
359
360
361 (% style="color:red" %)**Note: Different scanning modes can work at the same time.**
362
363 If the user needs to scan Bluetooth temperature and humidity (ES01) and Bluetooth Temperature Tag (TAH02) at the same time, then just input the following continuously:
364
365 **AT+MODEL=0104**
366
367 **AT+MODEL=0205**
368
369
370 ===== 2.3.2.1.2 Parameter b: The effective data length of the interception =====
371
372 b equals 0: indicates that the scanning of the corresponding modes 1 to 16 is canceled.
373
374 b is not equal to 0: set the b parameter according to the valid data intercepted by the sensor time.
375
376 For example,
377
378 in mode 1 (a = 0x01), the default parameter b is 4.
379
380 In mode 2 (a = 0x02), the default parameter b is 5.
381
382 (% style="color:red" %)**When it is mode 1 and 2, scanning can be performed after setting the b parameter; the subsequent parameter cdefgh does not need to be set.Mode 1 (a = 0x01): Bluetooth Temperature Tag (TAH02)**
383
384 In other modes,users need to set the following cdefgh parameters to enable this mode.
385
386
387 ===== 2.3.2.1.3 Parameter c: intercepted valid data position =====
388
389 c = 0x00: in the broadcast packet
390
391 c = 0x01: in the scan reply packet.
392
393 Note: Generally, there are two types of scan data: broadcast packets (31 bytes) and scan response packets (31 bytes).
394
395 There is at least one type of broadcast packet. You can use a mobile phone to scan and obtain the complete scan data.
396
397 [[image:image-20250213113159-2.png]]
398
399 Both the broadcast packet and the scan reply packet are composed of several unit data;
400
401 the unit data format is length+AD Type+AD Data.
402
403 Therefore, the broadcast packet and the scan reply packet are distinguished according to this rule. The following is a partial AD Type:
404
405 [[image:image-20250213113337-3.png]]
406
407 For example, the following figure is the complete scan data; related data analysis:
408
409 [[image:image-20250213114648-5.png||height="441" width="459"]]
410
411 [[image:image-20250213150244-7.png||height="117" width="465"]]
412
413 (% style="color:blue" %)**0x020106**
414
415 length = 0x02
416
417 AD Type = 0x01
418
419 data = 0x06
420
421
422 (% style="color:blue" %)**1AFF4C0002150112233445566778899AABBCCDDEEFF027177073C31107ADE8F**
423
424 Length = 0x1A
425
426 AD Type = 0xFF (this is a custom data type of the Bluetooth manufacturer)
427
428 data =0x4C0002150112233445566778899AABBCCDDEEFF027177073C3
429
430
431 (% style="color:blue" %)**1107ADE8F3D4B88494A0AAF5E20F23155A95**
432
433 length = 0x02
434
435 AD Type = 0x01 (uuid)
436
437 data = 0xADE8F3D4B88494A0AAF5E20F23155A95
438
439
440 (% style="color:blue" %)**0C084557383045434343434600**
441
442 length = 0x02
443
444 AD Type = 0x08 (Bluetooth name)
445
446 data = 0x4557383045434343434600
447
448
449 ===== 2.3.2.1.4 Parameter d: The starting position of the intercepted valid data =====
450
451 The starting position starts from 0.
452
453 The broadcast packet and the scan reply packet are two different packets, and the interception should start from 0.
454
455 The maximum is no more than 30.
456
457
458 ===== 2.3.2.1.5 Parameter e: scan and filter data length =====
459
460 The maximum value is 31.
461
462
463 ===== 2.3.2.1.6 Parameter f: Scan filtered data location =====
464
465 f = 0x00: The data location of the scan filter is in the broadcast packet
466
467 f = 0x01: The data location of the scan filter is in the scan reply packet
468
469
470 ===== 2.3.2.1.7 Parameter g: the starting position of the scanned filtered data =====
471
472 The starting position starts from 0.
473
474 The broadcast packet and the scan reply packet are two different packets, and the filtering data should start from 0.
475
476 The maximum is no more than 30.
477
478
479 ===== 2.3.2.1.8 Parameter h: scan filtered data =====
480
481 It is recommended to use data with UUID and Bluetooth name to filter out unnecessary scan data.
482
483 Generally, the more scan filter data there is, the less interference can be filtered.
484
485 The data starting from the starting position 0 to the data including UUID or Bluetooth name part can be used as filter data.
486
487 (% class="wikigeneratedid" id="H-1" %)
488 (((
489
490 )))
491
492 === 2.3.3  ​Decode payload ===
493
494
495 While using TTN V3 network, you can add the payload format to decode the payload.
496
497 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/1656378466788-734.png?rev=1.1||alt="1656378466788-734.png"]]
498
499 The payload decoder function for TTN V3 are here:
500
501 BH01-LB TTN V3 Payload Decoder:  [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]
502
503
504 ==== 2.3.3.1 Battery Info ====
505
506
507 Check the battery voltage for BH01-LB.
508
509 Ex1: 0x0B45 = 2885mV
510
511 Ex2: 0x0B49 = 2889mVxe
512
513 ==== ====
514
515
516 ==== 2.3.3.2  Battery Output - BAT pin ====
517
518
519 The BAT pin of BH01-LB is connected to the Battery directly. If users want to use BAT pin to power an external sensor. User need to make sure the external sensor is of low power consumption. Because the BAT pin is always open. If the external sensor is of high power consumption. the battery of SN50v3-LB/LS will run out very soon.
520
521
522 ==== ====
523
524 == 2.4 Payload Decoder file ==
525
526
527 In TTN, use can add a custom payload so it shows friendly reading
528
529 In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from:
530
531 [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/SN50_v3-LB>>https://github.com/dragino/dragino-end-node-decoder/tree/main/SN50_v3-LB]]
532
533
534 == 2.5 Frequency Plans ==
535
536
537 The SN50v3-LB/LS uses OTAA mode and below frequency plans by default. Each frequency band use different firmware, user update the firmware to the corresponding band for their country.
538
539 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
540
541
542 = 3. Configure BH01-LB =
543
544 == 3.1 Configure Methods ==
545
546
547 BH01-LB supports below configure method:
548
549 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
550 * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
551 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
552
553 == 3.2 General Commands ==
554
555
556 These commands are to configure:
557
558 * General system settings like: uplink interval.
559 * LoRaWAN protocol & radio related command.
560
561 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
562
563 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/]]
564
565
566 == 3.3 Commands special design for BH01-LB ==
567
568
569 These commands only valid for BH01-LB, as below:
570
571
572 === 3.3.1 Set Transmit Interval Time ===
573
574
575 Feature: Change LoRaWAN End Node Transmit Interval.
576
577 (% style="color:blue" %)**AT Command: AT+TDC**
578
579 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
580 |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response**
581 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
582 30000
583 OK
584 the interval is 30000ms = 30s
585 )))
586 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
587 OK
588 Set transmit interval to 60000ms = 60 seconds
589 )))
590
591 (% style="color:blue" %)**Downlink Command: 0x01**
592
593 Format: Command Code (0x01) followed by 3 bytes time value.
594
595 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
596
597 * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
598 * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
599
600 === 3.3.2 Get Device Status ===
601
602
603 Send a LoRaWAN downlink to ask the device to send its status.
604
605 (% style="color:blue" %)**Downlink Payload: 0x26 01**
606
607 Sensor will upload Device Status via **FPORT=5**. See payload section for detail.
608
609
610 === 3.3.4 Set Power Output Duration ===
611
612
613 Control the output duration 5V . Before each sampling, device will
614
615 ~1. first enable the power output to external sensor,
616
617 2. keep it on as per duration, read sensor value and construct uplink payload
618
619 3. final, close the power output.
620
621 (% style="color:blue" %)**AT Command: AT+5VT**
622
623 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
624 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
625 |(% style="width:154px" %)AT+5VT=?|(% style="width:196px" %)Show 5V open time.|(% style="width:157px" %)(((
626 500(default)
627 OK
628 )))
629 |(% style="width:154px" %)AT+5VT=1000|(% style="width:196px" %)(((
630 Close after a delay of 1000 milliseconds.
631 )))|(% style="width:157px" %)OK
632
633 (% style="color:blue" %)**Downlink Command: 0x07**
634
635 Format: Command Code (0x07) followed by 2 bytes.
636
637 The first and second bytes are the time to turn on.
638
639 * Example 1: Downlink Payload: 070000  **~-~-->**  AT+5VT=0
640 * Example 2: Downlink Payload: 0701F4  **~-~-->**  AT+5VT=500
641
642
643 === 3.3.7 Set Workmode ===
644
645
646 Feature: Switch working mode.
647
648 (% style="color:blue" %)**AT Command: AT+MOD**
649
650 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
651 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
652 |(% style="width:154px" %)AT+MOD=?|(% style="width:196px" %)Get the current working mode.|(% style="width:157px" %)(((
653 OK
654 )))
655 |(% style="width:154px" %)AT+MOD=4|(% style="width:196px" %)Set the working mode to 3DS18B20s.|(% style="width:157px" %)(((
656 OK
657 Attention:Take effect after ATZ
658 )))
659
660 (% style="color:blue" %)**Downlink Command: 0x0A**
661
662 Format: Command Code (0x0A) followed by 1 bytes.
663
664 * Example 1: Downlink Payload: 0A01  **~-~-->**  AT+MOD=1
665 * Example 2: Downlink Payload: 0A04  **~-~-->**  AT+MOD=4
666 *
667
668 = 4. Battery & Power Cons =
669
670
671 BH01-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
672
673 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
674
675
676 = 5. OTA Firmware update =
677
678
679 (% class="wikigeneratedid" %)
680 **User can change firmware BH01-LB to:**
681
682 * Change Frequency band/ region.
683 * Update with new features.
684 * Fix bugs.
685
686 **Firmware and changelog can be downloaded from :** **[[Firmware download link>>https://www.dropbox.com/sh/4rov7bcp6u28exp/AACt-wAySd4si5AXi8DBmvSca?dl=0]]**
687
688 **Methods to Update Firmware:**
689
690 * (Recommanded way) OTA firmware update via wireless: **[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]**
691 * Update through UART TTL interface: **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
692
693 = 6.  Developer Guide =
694
695 SN50v3 is an open source project, developer can use compile their firmware for customized applications. User can get the source code from:
696
697 * (((
698 Software Source Code: [[Releases · dragino/SN50v3 (github.com)>>url:https://github.com/dragino/SN50v3/releases]]
699 )))
700 * (((
701 Hardware Design files:  **[[Hardware Source Files>>https://github.com/dragino/Lora/tree/master/LSN50/v3.0]].**
702 )))
703 * (((
704 Compile instruction:[[Compile instruction>>https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Module/Compile%20and%20Upload%20Code%20to%20ASR6601%20Platform/]]
705 )))
706
707 **~1. If you want to change frequency, modify the Preprocessor Symbols.**
708
709 For example, change EU868 to US915
710
711 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/1656318662202-530.png?rev=1.1||alt="1656318662202-530.png"]]
712
713 **2. Compile and build**
714
715 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220627163212-17.png?rev=1.1||alt="image-20220627163212-17.png"]]
716
717 = 7. FAQ =
718
719 == ==
720
721
722
723 = 8. Order Info =
724
725
726 Part Number: (% style="color:blue" %)**BH01-LB-XX-YY**(%%)
727
728 (% style="color:red" %)**XX**(%%): The default frequency band
729
730 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
731 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
732 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
733 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
734 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
735 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
736 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
737 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
738
739 (% style="color:red" %)**YY: ** (%%)Hole Option
740
741 * (% style="color:red" %)**12**(%%): With M12 waterproof cable hole
742 * (% style="color:red" %)**16**(%%): With M16 waterproof cable hole
743 * (% style="color:red" %)**20**(%%): With M20 waterproof cable hole
744 * (% style="color:red" %)**NH**(%%): No Hole
745
746 = 9. ​Packing Info =
747
748
749 (% style="color:#037691" %)**Package Includes**:
750
751 * BH01-LB LoRaWAN Generic Node
752
753 (% style="color:#037691" %)**Dimension and weight**:
754
755 * Device Size: cm
756 * Device Weight: g
757 * Package Size / pcs : cm
758 * Weight / pcs : g
759
760 = 10. Support =
761
762
763 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
764
765 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.cc>>url:http://../../../../../../D:%5C%E5%B8%82%E5%9C%BA%E8%B5%84%E6%96%99%5C%E8%AF%B4%E6%98%8E%E4%B9%A6%5CLoRa%5CLT%E7%B3%BB%E5%88%97%5Csupport@dragino.cc]]
766
767