Hello Madhumati,
communicating over Bluetooth is like communicating across the well-known Modbus RTU for example. Both are serial protocols. Modbus uses cable usually, while Bluetooth goes over wireless.
For both your need
- a BT antenna for Bluetooth and for Modbus an RS232/RS485 port .
- a bluetooth chip for bluetooth and a bus driver for Modbus
- a protocol stack for Bluettooth and a protocol stack for Modbus
- an application that makes use of the protocol stack to call different service like read/write/reset or whatever
- a UUID specification of the server Bluetooth device to get knowledge about the attribute profile (named GATT: https://learn.adafruit.com/introduction-...nergy/gatt) it supports and for Modbus the meaning of the different registers you can read/write
With the container you have deployed right now you have also the Bluetooth stack included. The Bluetooth stack is named "Bluez" by the way. So the container includes a compiled version of "Bluez" along with some basic Linux tools that can be used to make some basic tests like "bluetoothctl","hciconfig" and "hcitool". Since all tools can be used just manually they are not good to automated applications. Here is an example how to use "bluetoothctl":
https://docs.ubuntu.com/core/en/stacks/b...t-services
So you recognized yourself that you need to write your own application and as it is usual with Linux you (your customer) can decide to write applications with different programming languages like Python, C#, C++, Java, Javascript whatever on top of "Bluez" to communicate with a Bluetooth server device. So the main question is: is your customer a programmer? Or is he just a user who wants to make use of a ready Bluetooth client application?
Last year I bougth this small device here:
http://www.blehome.com/sensorbug-lp.html . It is not bigger than a coin, but can measure multiple things. I was interested in reading the current temperature from it over netPI. I was at exaclty the same point like you and didn't know how to read out values from it since all the tools that come with "Bluez" did not help me writing an own application. And I have to admit that I never had the intension to make a deep dive into any of the programming languages to compile such an application myself.
This is why I have decided to search for a solution using Node-RED and I was successful. I got a proper communication running between my netPI and my sensorbug bluetooth device and I was able to read out the temperature value from it. Based on this experience I included the Bluez stack and and a Bluetooth Node in netPI standard Node-RED container:
https://hub.docker.com/r/hilschernetpi/netpi-nodered
So my recommendation is to use Node-RED for Bluetooth communication instead of the raw Bluetooth container that you are using so far.
Thx
Armin