Не работает Bluetooth в Node-RED

Не работает Bluetooth в надстройке node-red-contrib-generic-ble.

Поднимал NODE-RED на виртуальной машине ubuntu 22.04.
На ubuntu в node-red заработал bluetooth только после команд:

usermod -G bluetooth -a root

sudo setcap ‘cap_net_raw,cap_net_admin+eip’ readlink -f \which nodered.service``

sudo setcap ‘cap_net_raw+ep’ readlink -f \which hcitool``

Устанавливалось по мануалу отсюда

root@wirenboard-AZJHXC47:~# hcitool lescan
LE Scan …
1E:8B:4C:42:E9:65 (unknown)
00:04:2F:06:5A:6B 0;0:04:2F:06:5A:6B;eTRV
98:52:3D:AB:AE:32 JBL Charge 4
E2:DA:B4:8A:A5:5F (unknown)
00:04:2F:44:92:98 0;0:04:2F:44:92:98;eTRV

hcitool работает, устройства видит.
Мне кажется чего то не хватает в разрешениях для node-red.
Помогите пожалуйста.

Из описания:
“As of v4.0.0, this node is optmized for Linux with BlueZ 5 D-Bus API (HCI socket is no longer used on Linux).”

Добрый день, не устанавливается

bluez

Нашел вот:

Порядок действий

Сбросил контроллер до заводских через флешку. Прошивка последняя.

Начистую накатил nodejs и npm как в инструкции Установка Node-RED на контроллер Wiren Board — Wiren Board
apt update && apt install -y nodejs git make g++ gcc build-essential

Команда
npm install bluez
выдает такой лог установки:

root@wirenboard-AZJHXC47:~# npm install bluez
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

> bluetooth-socket@0.2.0 install /mnt/data/root/node_modules/bluetooth-socket
> node-gyp configure build

make: Entering directory '/mnt/data/root/node_modules/bluetooth-socket/build'
  CXX(target) Release/obj.target/BluetoothFd/src/bluetooth-fd.o
  SOLINK_MODULE(target) Release/obj.target/BluetoothFd.node
  COPY Release/BluetoothFd.node
make: Leaving directory '/mnt/data/root/node_modules/bluetooth-socket/build'

> dbus@1.0.7 install /mnt/data/root/node_modules/dbus
> npm run build:release


> dbus@1.0.7 build:release /mnt/data/root/node_modules/dbus
> node-gyp configure build

/bin/sh: 1: pkg-config: not found
gyp: Call to 'pkg-config  --libs-only-l --libs-only-other dbus-1' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.10.35-wb111
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /mnt/data/root/node_modules/dbus
gyp ERR! node -v v12.19.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dbus@1.0.7 build:release: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dbus@1.0.7 build:release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-08-17T08_21_41_250Z-debug.log
npm WARN enoent ENOENT: no such file or directory, open '/mnt/data/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dbus@1.0.7 install: `npm run build:release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dbus@1.0.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-08-17T08_21_45_123Z-debug.log


2022-08-17T08_21_45_123Z-debug.log (185.3 КБ)

Пробовал ставить nodejs разные версии:

curl -ksL https://deb.nodesource.com/setup_12.x | sudo -E bash -
apt-get install nodejs

Поднял на ubuntu виртуальную машину, с таким же порядком действий с разными версиями nodejs все прекрасно ставиться.
Неужели bluetooth в node-red у меня не заработает?