U
U
user.2019-09-05 23:44:15
linux
user., 2019-09-05 23:44:15

How to read characteristics using bluetoothctl?

Good evening,
For the sake of interest, I decided to play around with at least one of my home devices that have BLE on board, but I ran into a problem, namely that I don’t understand where exactly the services found should be displayed and how can I interact with them?
An example of working with bluetoothclt:

bluetoothctl // запускаю утилиту
    scan on // сканирую эфир
    scan off // останавливаю сканирование
    devices  // отображаю найденные устройства
    Device 4A:6A:BA:8A:0A:00 TV
    connect 4A:6A:BA:8A:0A:00 //  подключаюсь
    [EDENWOOD TV]# info 4A:6A:BA:8A:0A:00  // получаю информацию о данном устройстве
Device 48:6D:BB:87:0C:42 (public)
  Name: TV
  Alias: TV
  Class: 0x0008043c
  Icon: audio-card
  Paired: yes
  Trusted: yes
  Blocked: no
  Connected: yes
  LegacyPairing: no
  UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
  UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
  UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
  UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
  UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
  UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
  UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
  UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
  UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
  Modalias: bluetooth:v000Fp0000d0000

I understand that the lines starting with UUID are the services that run on the remote device?
If so, how to understand what exactly each of them is responsible for, what characteristics it contains and how to read or overwrite them using bluetoothctl?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question