Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while getting data from multiple BLE beacons (working in advertisement mode) to Thingsboard platform using Thingsboard Gateway stack. #1403

Closed
Garv-Bhatia opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@Garv-Bhatia
Copy link

Garv-Bhatia commented May 17, 2024

I am using BLE beacons to send temperature and humidity values to thingsboard platform using thingsboard gateway stack.
I am using this beacons in advertising mode.

Note: Please update BLE connector configuration documentation for advertisement mode also.

So, It is working fine when I am using this setup just for one ble beacon. But as I am adding configuration for second beacon also, I am getting values first time working fine but after that I don't know what is happening latest telemertry values are not updating for my devices, it is not working fine. It seems to be getting stuck somewhere, as there is also a lag in the logs as I can see on the platform.

This is my ble connector configuration file for 2 ble devices:

  "name": "ble Connector",
  "passiveScanMode": true,
  "devices": [
    {
      "name": "BLE Device 1",
      "deviceType": "BLE",
      "MACAddress": "##:##:##:##:##:##",
      "pollPeriod": 10000,
      "connector_type": "ble",
      "type": "hex",
      "telemetry": [
        {
          "key": "temperature",
          "dataSourceType": "advertisement",
          "valueExpression": "[10:12]"
        },
        {
          "key": "humidity",
          "dataSourceType": "advertisement",
          "valueExpression": "[12:14]"
        }
      ],
      "attributes": [],
      "attributeUpdates": [],
      "serverSideRpc": []
    },
    {
      "name": "BLE Device 2",
      "deviceType": "BLE",
      "MACAddress": "##:##:##:##:##:##",
      "pollPeriod": 10000,
      "connector_type": "ble",
      "type": "hex",
      "telemetry": [
        {
          "key": "temperature",
          "dataSourceType": "advertisement",
          "valueExpression": "[10:12]"
        },
        {
          "key": "humidity",
          "dataSourceType": "advertisement",
          "valueExpression": "[12:14]"
        }
      ],
      "attributes": [],
      "attributeUpdates": [],
      "serverSideRpc": []
    }
  ]
}

Please check if I am using correct configuration or any change is required, It is working fine if I am using for only one device that is by removing the part of BLE Device 2 from this configuration.

Versions

  • OS: [Ubuntu 22.04]
  • Thingsboard IoT Gateway version [3.4.6]
  • Python version [3.10]

Again requesting please update connector configuration documentation for advertisement mode also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants