BA-BLE: Difference between revisions

From Escort Knowledge Base
Line 483: Line 483:


==== '''<big>Data output of all linked sensors via lls protocol</big>''' ====
==== '''<big>Data output of all linked sensors via lls protocol</big>''' ====
В данном режиме в одну строчку будут передаваться по одной паре параметров(подписанные 0-9) с каждого подключенного датчика, передаваемый параметр выбирается в настройках подключения датчика.
In this mode, one pair of parameters (signed 0-9) from each connected sensor will be transmitted in one line, the transmitted parameter is selected in the sensor connection settings.


[[Файл:Выдача данных всех привязанных датчиков по протоколу lls.png|937x937пкс]]
[[Файл:Выдача данных всех привязанных датчиков по протоколу lls.png|937x937пкс]]


Формат ASCII, цифровые значения HEX
ASCII format, HEX numeric values


==== '''<big>Output of all parameters of the connected sensors</big>''' ====
==== '''<big>Output of all parameters of the connected sensors</big>''' ====
В данном режиме в одну строчку будут передаваться все параметры (подписанные 0-9) с каждого подключенного датчика.
In this mode, all parameters (signed 0-9) from each connected sensor will be transmitted in one line.


[[Файл:Выдача всех параметров привязанных датчиков.png|951x951пкс]]
[[Файл:Выдача всех параметров привязанных датчиков.png|951x951пкс]]


Формат ASCII, цифровые значения DEC
ASCII format, DEC numeric values


UT*  
UT*  
Line 569: Line 569:
[[Файл:Обновление прошивки BA-BLE.gif]]
[[Файл:Обновление прошивки BA-BLE.gif]]


Для обновления прошивки на BA-BLE:
To update the firmware on the BA-BLE:


* Скачайте актуальную версию прошивки как файл в память телефона Актуальную прошивку вы можете найти в [https://www.fmeter.ru/download/?product=adapterbable#adapterbable разделе загрузки.]
* Скачайте актуальную версию прошивки как файл в память телефона Актуальную прошивку вы можете найти в [https://www.fmeter.ru/download/?product=adapterbable#adapterbable разделе загрузки.]
* Подключитесь к датчику
* Connect to the sensor
* Перейдите в "'''Доп. возможности'''"
* Go to “ Additional features”


[[Файл:Переход в доп. возможности BA-BLE.png|844x844пкс]]
[[Файл:Переход в доп. возможности BA-BLE.png|844x844пкс]]


* Перейдите в режим обновления
* Go to firmware update mode


[[Файл:Переход в режим обновления BA-BLE.png|630x630пкс]]
[[Файл:Переход в режим обновления BA-BLE.png|630x630пкс]]

Revision as of 18:01, 8 November 2024

мини|303x303пкс|Текущий дизайн BA-BLE ADAPTER BA-BLE 5.0 LR (в дальнейшем – адаптер BA-BLE, база, изделие) предназначен для получения и обработки данных с подключенных к нему беспроводных измерительных устройств (до 10 штук), и беспроводных меток (до 30 штук), вывода информации в мобильное приложение по беспроводному каналу Bluetooth, работы с навигационным терминалом (трекером) по протоколу LLS и MODBUS при помощи интерфейсов RS-232 и RS-485.

Описание MODBUS.

Более подробные технические характеристики представлены в тех.паспорте устройства.

Адаптер BA-BLE применяется в мониторинге различных объектов, на которых установлены беспроводные измерительные и/или индикационные устройства и где требуется передача информации с них на контрольное устройство.

Примеры применения BA-BLE:

  • Контроль за расходом топлива на транспортном средстве совместно с беспроводным датчиком уровня топлива «TD-BLE» и «TD-150-BLE»
  • Измерение влажности, температуры с помощью датчика «TH-BLE»
  • Контроль положения в пространстве частей и механизмов специальной техники (измерение угла поворота, скорости вращения и т.д.) с помощью датчика «DU-BLE»
  • Контроль нахождения меток «ID-TAG». Системы свой-чужой, контроль прицепного оборудования и тп.

Подробнее об указанных устройствах – на нашем сайте.

Connection to BA-BLE

Настройка BA-BLE полностью производится через bluetooth с помощью мобильного приложения доступное на iOS и Android устройствах (далее “приложение”).

Start the configurator. Enable bluetooth, geolocation and also make sure that the application has access to Geolocation.

безрамки|810x810пкс безрамки|810x810пкс


Файл:Подключение к BA-BLE.gif


Нажмите кнопку Настройка датчиков. Далее, выберите BA-BLE.

безрамки|810x810пкс 806x806px

Найдите требуемый датчик введя последние 6 цифр его серийного номера. Вы можете найти серийный номер на корпусе датчика.

Или выберите требуемый датчик из списка и нажмите кнопку Подключиться.

656x656пкс

Setting password

It is strongly recommend that you set a password on the sensor in order to restrict access to its settings. When you connect for the first time, the application will ask you to set a password automatically.

You can set, change and delete a password in the Additional Features.

915x915пкс

Then, in the field that appears named "Password for changing settings", enter the password that you want be used later and click Enter.

890x890пкс

PLEASE NOTE THAT THE PASSWORD RESET PROCEDURE IS VERY TIME-INTENSIVE. WE RECOMMEND THAT YOU TAKE A RESPONSIBLE APPROACH TO SELECTING YOUR PASSWORD AND MAINTAINING ITS SAFETY.

Also note that the password cannot start with 0.

To delete a previously set password, you must enter it in the Password field, and then press the Enter and then the Delete buttons.

Attention! By default, there is no password set on the sensor! If you connected the sensor and a password was already set on it, contact technical support.

Main parameters

After connecting to the BA-BLE, you will see the main menu.

905x905пкс

  1. BA-BLE serial number
  2. Firmware version (hereinafter FW)
  3. Connected sensors and their current readings

Sensor connection

Для подключения датчиков в основном меню BA-BLE нажмите на "+" (1) и в открывшемся окне введите имя датчика или MAC адрес(2) и нажмите "Подключить"(3).

904x904px

Для удаления смахните датчик влево и нажмите удалить и после отключить.

Файл:Отключение датчика от BA-BLE.gif

TD-BLE

Для подключения TD-BLE к BA-BLE, в основном меню нажмите на "+" (1) и в открывшемся окне введите имя датчика(TD_******) или MAC адрес(2) и нажмите "Подключить"(3).

You can find the sensor name on the sensor cover (last 6 digits of the serial number) or when searching for or connecting to the sensor in the mobile app.

962x962px

After connecting the sensor, go to the settings by clicking on its name.

912x912пкс

After the switch, you will see the current sensor data, to configure the data transmission, go to RS-232 or RS-485 settings depending on which data transmission interface you are going to use.

910x910пкс

After the transition, enable the transmission of the required parameters and in the opened window select the required network address (0-255) through which this parameter will be transmitted and then click on save.

945x945пкс 948x948пкс

When selecting a network address, an unoccupied network address must be selected; occupied network addresses are displayed when selected.

455x455пкс


The main parameters TD-BLE is selected for transmission are

903x903пкс


To remove a tethered sensor, swipe the sensor to the left and click remove and then disconnect.

Файл:Отключение датчика от BA-BLE.gif

TD-150-BLE

Для подключения TD-150-BLE к BA-BLE, в основном меню нажмите на "+" (1) и в открывшемся окне введите имя датчика(TW_******) или MAC адрес(2) и нажмите "Подключить"(3).

You can find the sensor name on the sensor cover (last 6 digits of the serial number) or when searching for or connecting to the sensor in the mobile app.

920x920пкс

After connecting the sensor, go to the settings by clicking on its name.

919x919пкс

After the switch, you will see the current sensor data, to configure the data transmission, go to RS-232 or RS-485 settings depending on which data transmission interface you are going to use.

917x917пкс

After the transition, enable the transmission of the required parameters and in the opened window select the required network address (0-255) through which this parameter will be transmitted and then click on save.

947x947пкс 948x948пкс

When selecting a network address, an unoccupied network address must be selected; occupied network addresses are displayed when selected.

455x455пкс


The main parameters TD-150-BLE is selected for transmission are

890x890пкс

To remove a tethered sensor, swipe the sensor to the left and click remove and then disconnect.

Файл:Отключение датчика от BA-BLE.gif

DU-BLE

Для подключения DU-BLE к BA-BLE, в основном меню нажмите на "+" (1) и в открывшемся окне введите имя датчика(DU_******) или MAC адрес(2) и нажмите "Подключить"(3).

You can find the sensor name on the sensor cover (last 6 digits of the serial number) or when searching for or connecting to the sensor in the mobile app.

895x895пкс

After connecting the sensor, go to the settings by clicking on its name.

924x924пкс

After the switch, you will see the current sensor data, to configure the data transmission, go to RS-232 or RS-485 settings depending on which data transmission interface you are going to use.

929x929пкс

After the transition, enable the transmission of the required parameters and in the opened window select the required network address (0-255) through which this parameter will be transmitted and then click on save.

708x708пкс 882x882пкс

When selecting a network address, an unoccupied network address must be selected; occupied network addresses are displayed when selected.

486x486пкс


The main parameters DU-BLE is selected for transmission are

898x898пкс

To remove a tethered sensor, swipe the sensor to the left and click remove and then disconnect.

Файл:Отключение датчика от BA-BLE.gif

TH-BLE

Для подключения TH-BLE к BA-BLE, в основном меню нажмите на "+" (1) и в открывшемся окне введите имя датчика(TH_******) или MAC адрес(2) и нажмите "Подключить"(3).

You can find the sensor name on the sensor cover (last 6 digits of the serial number) or when searching for or connecting to the sensor in the mobile app.

898x898пкс

After connecting the sensor, go to the settings by clicking on its name.

893x893пкс

After the switch, you will see the current sensor data, to configure the data transmission, go to RS-232 or RS-485 settings depending on which data transmission interface you are going to use.

940x940пкс

After the transition, enable the transmission of the required parameters and in the opened window select the required network address (0-255) through which this parameter will be transmitted and then click on save.

884x884пкс 883x883пкс

When selecting a network address, an unoccupied network address must be selected; occupied network addresses are displayed when selected.

570x570пкс



The main parameters TH-BLE is selected for transmission are

901x901пкс

To remove a tethered sensor, swipe the sensor to the left and click remove and then disconnect.

Файл:Отключение датчика от BA-BLE.gif

Configuring ID TAG Transmission

BA-BLE has the functionality of accepting and transmitting ID-TAG tags and applying a variety of filters to customize such systems as friend or foe, trailer equipment control, etc.

Настройка метки ID-TAG описана в данной инструкции.

The basic principle of operation, the tag transmits a data packet with its ID (PING) every specified period, BA-BLE reads all the transmission data and calculates the signal strength, after all seen transmissions fall into the memory of BA-BLE to pass the filters, if the tag transmissions pass all the specified filters it falls on the issuing queue on RS-485 where the tag ID will be transmitted according to the period of zeroing the queue.

Translated with DeepL.com (free version)

Configuring RS-485 transmission

To configure RS-485 tag issuance, go to the “Reader” tab (1) and click on “RS-485” (2).

In the opened window you can configure “LLS address”(3) to which ID tags will be issued and “Reset period”(4) of issuing, it can be set 30-600 seconds. Reset period is the period for which the tag passed filtering will be transmitted via RS-485, that is, if the reset period is 120 seconds, the tag once passed filtering will be transmitted for two minutes via RS-485.

682x682пкс

Customizing filters

To configure the tag reception filters, go to the “Reader” menu (1) and press “Filtering” (2)

980x980пкс

Filter by tag ID

To add a filter by Major and Minor tag ID, click “Add to the list” (1) and enter the Major and/or Minor tag IDs (2).

942x942пкс

Up to 30 of these filters can be added. 927x927пкс With this filter you can filter by group (Major ID) or individually bind up to 30 tags.

We recommend that you set a common group (Major ID) for all tags working with this database and add this group to the filter.

RSSI filter

This filter is needed to sort the labels by signal strength (proximity).

To add, turn on the filter(1) and set the signal strength(2) to dBm with a minus.

934x934пкс

To set the correct RSSI filter, place the base and tag in the operating position, disable the filters and go to the main menu of the reader and view the average RSSI(1) value of the desired tag over many measurements.

968x968пкс

Also for correct operation of this filter it is desirable to use a filter timer and on the mark it is desirable to set a frequent transmission, for example, every second.

Filter Timer

This filter is necessary to sort tags by time of being in the reception radius, the number of appearances (pings) of the tag filtered by ID and signal strength (RSSI) for a set period of time.

To add it, enable the filter(1) and set the number of ping(2) and time window(3).

925x925пкс

It is recommended to set the number of occurrences slightly less than half of the number of sends to the tag, that is, if the tag sends every second and the filter for 50 seconds the number of occurrences should be set to 24.

Also the period of RS-485 zeroing should be slightly longer than the timer time window.

Filter Active Tags

This filter is required to sort by the number of accepted tags.

To add, enable the filter(1) and set the number of active tags(2).

930x930пкс

RSSI filter max

This filter is needed to sort the tags with the best reception.

To add, enable the filter(1) and set the number of active tags with the best signal(2).

943x943пкс

Example of work

Example: tags with ID Major:1 Minor:100 and Major:1 Minor:200 transmit data every second, first tag with ID 100 approached BA-BLE reader for 30 seconds and after 15 seconds tag with ID 200, the reader has filters: on Major:1, RSSI -70 dBm (filtering by signal strength/approximation) and Timer for 15 appearances (pings) in 30 seconds, RS-485 settings: Address 1, zeroing period 60 seconds. After 15 appearances of the tag with ID 100 with RSSI -70 dBm and better it passed filtering and began to transmit its ID on RS-485 (each request LLS returns with a level of 100 and temperature 1) after another 15 seconds, the tag with ID 200 also passes filtering and gets into the queue for issuance, and begins simultaneous transmission of two tags (one request LLS response with a level of 100 and temperature 1 and the second request LLS response with a level of 200 and temperature 1) so continues until each individual ID will not be transmitted during the zeroing period (60 seconds).

This example is in Navtelecom telemetry:

Файл:Пример передачи ID-TAG через BA-BLE.gif

Connecting to a GPS terminal

795x795px

Examples of data output

RS-485

Параметры порта RS-485

Baud rate: 19200 kbps

Data size: 8

Stop-bits: 1

Parity: None

LLS

Пример получения данных в телеметрии Навтлеком

Файл:Пример данных BA-BLE в телеметрии навтелеком.png

  1. Уровень и температура TD-BLE
  2. Напряжение батареи (3.7В) и RSSI -50dBm TD-BLE
  3. Уровень и температура TD-150-BLE
  4. Угол наклона и сработка DU-BLE
  5. Напряжение батареи (3.5В) и RSSI -38dBm DU-BLE
  6. Температура (26.8 °C) и влажность (18%) TH-BLE
  7. Освещенность (132 Lux) и сработка датчика холла (сработки нет) TH-BLE
  8. Напряжение батареи (3.5В) и RSSI -59dBm TH-BLE
  9. Сработка дискретных входов (1 не активен, 2 активен) TH-BLE

Примера лога общения между трекером и BA-BLE по протоколу LLS

321x321пкс

31 01 06 6C - запрос от трекера на выдачу данных по 1 адресу

  • 31 - команда запроса
  • 01 - сетевой адрес
  • 06 - тип запроса (уровень и температура)
  • 6C - CRC-8/MAXIM

3E 01 06 15 01 00 00 00 EB - ответ по адресу 1

  • 3E - Обозначение ответа
  • 01 - сетевой адрес
  • 06 - тип запроса (уровень и температура)
  • 15 - температура HEX (21°C)
  • 01 00 - уровень HEX в обратном порядке 00 01 (уровень 1)
  • 00 00 - CNT (при использовании BLE базы всегда пустой)
  • EB - CRC-8/MAXIM

31 02 06 39 - запрос от трекера на выдачу данных по 2 адресу

  • 31 - команда запроса
  • 02 - сетевой адрес
  • 06 - тип запроса (уровень и температура)
  • 39 - CRC-8/MAXIM

3E 02 06 CE 25 00 00 00 FC - ответ по адресу 2

  • 3E - Обозначение ответа
  • 02 - сетевой адрес
  • 06 - тип запроса (уровень и температура)
  • CE - температура HEX (-50°C) отрицательные значения идут в обратном порядке от максимума 255, то есть 206 это 206-256 -50°C
  • 25 00 - уровень HEX в обратном порядке 00 25 (уровень 37)
  • 00 00 - CNT (при использовании BLE базы всегда пустой)
  • FC - CRC-8/MAXIM

MODBUS

Описание протокола MODBUS

Примера лога общения между трекером и BA-BLE по протоколу MODBUS

Файл:Пример лога MODBUS.png

01 03 00 00 00 04 44 09 - запрос от трекера на выдачу данных по 1 адресу

  • 01 - сетевой адрес
  • 03 - Команда чтения
  • 00 - Младший байт рег. чтения (значение игнорируется)
  • 00 - Старший байт рег. чтения (значение игнорируется)
  • 00 - Младший байт количества
  • 04 - Старший байт количества
  • 44 - Младший байт CRC-16/MODBUS
  • 09 - Старший байт CRC-16/MODBUS

01 03 08 15 00 01 00 00 00 00 00 55 35 - ответ по адресу 1

  • 01 - сетевой адрес
  • 03 - Подтверждение команды, всегда 03
  • 08 - Количество выгружаемых байт (всегда 8)
  • 15 - Температура HEX (21°C)
  • 00 - Старший байт уровня HEX
  • 01 - Младший байт уровня HEX
  • 00 00 00 00 00 - Всегда 0
  • 55 - Младший байт CRC-16/MODBUS
  • 35 - Старший байт CRC-16/MODBUS

02 03 00 00 00 04 45 EB - запрос от трекера на выдачу данных по 2 адресу

  • 02 - сетевой адрес
  • 03 - Команда чтения
  • 00 - Младший байт рег. чтения (значение игнорируется)
  • 00 - Старший байт рег. чтения (значение игнорируется)
  • 00 - Младший байт количества
  • 04 - Старший байт количества
  • 45 - Младший байт CRC-16/MODBUS
  • EB - Старший байт CRC-16/MODBUS

02 03 08 E0 00 25 00 00 00 00 00 93 EE - ответ по адресу 1

  • 02 - сетевой адрес
  • 03 - Подтверждение команды, всегда 03
  • 08 - Количество выгружаемых байт (всегда 8)
  • E0 - Температура HEX (-32°C) отрицательные значения идут в обратном порядке от максимума 255, то есть 224 это 224-256 -32°C
  • 00 - Старший байт уровня HEX
  • 25 - Младший байт уровня HEX (уровень 37)
  • 00 00 00 00 00 - Всегда 0
  • 93 - Младший байт CRC-16/MODBUS
  • EE - Старший байт CRC-16/MODBUS

RS-232

RS-232 port parameters

Baud rate: 19200 kbps

Data size: 8

Stop-bits: 1

Parity: None

Passive

To receive RS-232 data in LLS and MODBUS format as query responses, you must:

  • Go to RS-232 BA-BLE settings

931x931пкс

  • Set “periodic data output is disabled”

582x582пкс 582x582пкс

Формат запроса и ответа как при опросе RS-485, адреса согласно настройкам выдачи RS-485

Active output modes

To enable active output in advance, select the required parameters in the RS-232 output settings in the BA-BLE sensor connection menu.

  • Go to RS-232 BA-BLE settings

931x931пкс

  • Set the desired output mode and save

581x581пкс582x582пкс

Output of total level and average temperature from TD sensors

This format is necessary when connecting several units installed in different tanks (double tank equipment).

Файл:Выдача суммарного значения уровня и средней температуры с датчиков топлива.png

ASCII format, HEX numeric values

F - unused

T - temperature, 15 is 21°C

N - Total level of connected fuel level sensors, 1491 is 5265

Output of averaged level and temperature values from TD sensors

This format is required when connecting multiple units installed in the same tank

282x282пкс

ASCII format, HEX numeric values

F - unused

T - temperature, 14 is 20°C

N - Total level of connected fuel level sensors, 0A48 is 2632

Data output of each TD sensor separately

In this mode, data from all connected fuel level sensors are output separately for each period

Файл:Выдача данных отдельно каждого датчика TD.png

ASCII format, HEX numeric values

F - CNT, 5E26 is 24102, 6015 is 24597

T - temperature, 11 is 17°C, 17 is 23°C

N - Level, 0FFF is 4095, 0492 is 1170

Data output of all linked sensors via lls protocol

In this mode, one pair of parameters (signed 0-9) from each connected sensor will be transmitted in one line, the transmitted parameter is selected in the sensor connection settings.

937x937пкс

ASCII format, HEX numeric values

Output of all parameters of the connected sensors

In this mode, all parameters (signed 0-9) from each connected sensor will be transmitted in one line.

951x951пкс

ASCII format, DEC numeric values

UT*

  • Для TD-BLE - температура
  • Для TW-BLE - температура
  • Для DU-BLE - не используется
  • Для TH-BLE - температура

LM*

  • Для TD-BLE - не используется
  • Для TW-BLE - не используется
  • Для DU-BLE - не используется
  • Для TH-BLE - Освещенность Lux

UH*

  • Для TD-BLE - не используется
  • Для TW-BLE - не используется
  • Для DU-BLE - не используется
  • Для TH-BLE - влажность%

HS*

  • Для TD-BLE - не используется
  • Для TW-BLE - не используется
  • Для DU-BLE - не используется
  • Для TH-BLE - активность датчика холла

UL*

  • Для TD-BLE - уровень
  • Для TW-BLE - уровень
  • Для DU-BLE - градус наклона
  • Для TH-BLE - влажность% без точки десятой доли

UN*

  • Для TD-BLE - не используется
  • Для TW-BLE - не используется
  • Для DU-BLE - градус наклона
  • Для TH-BLE - не используется

UM*

  • Для TD-BLE - не используется
  • Для TW-BLE - не используется
  • Для DU-BLE - не используется
  • Для TH-BLE - сработка дискретных входов

UP*

  • Для TD-BLE - не используется
  • Для TW-BLE - не используется
  • Для DU-BLE - не используется
  • Для TH-BLE - не используется

VB*

  • Для TD-BLE - напряжение батарейки
  • Для TW-BLE - не используется
  • Для DU-BLE - напряжение батарейки
  • Для TH-BLE - напряжение батарейки

RS*

  • Для TD-BLE - сила сигнала (RSSI)
  • Для TW-BLE - сила сигнала (RSSI)
  • Для DU-BLE - сила сигнала (RSSI)
  • Для TH-BLE - сила сигнала (RSSI)

Firmware update (FW)

Файл:Обновление прошивки BA-BLE.gif

To update the firmware on the BA-BLE:

  • Скачайте актуальную версию прошивки как файл в память телефона Актуальную прошивку вы можете найти в разделе загрузки.
  • Connect to the sensor
  • Go to “ Additional features”

844x844пкс

  • Go to firmware update mode

630x630пкс

  • Выберите файл прошивки(1) из памяти телефона (Файлом прошивки является сам .zip архив, разархивировать не нужно) и начните процесс прошивки (2). Эти действия необходимо произвести в течении 30 секунд после перехода в режим обновления!

876x876px

  • Процесс прошивки должен начаться. В процессе прошивки нельзя закрывать или сворачивать приложение!

Файл:Процесс_прошивки_TD-BLE.png

  • По окончанию прошивки выйдет окно об удачном обновлении

Файл:Обновление_TD-BLE_завершено_.png

Актуальные прошивки вы можете найти в разделе загрузки.

Файлом прошивки является сам .zip архив, разархивировать не нужно.

Useful links