Bonsoir, aujourd’hui une antenne qui fonctionnait s’est arretée.
J’ai essayé de la relancer mais je n’y arrive pas
Ci joint les infos concernant cette antenne
## Bluetooth adapters
Default adapter: hci0
### hci0
| Name | Value |
|--------------|---------------------|
| address | 00:19:86:XX:XX:XX |
| sw_version | jeedom |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | 0 |
| manufacturer | Broadcom Corp |
| product | BCM20702A0 |
| vendor_id | 0a5c |
| product_id | 21ec |
### hci1
| Name | Value |
|--------------|-------------------|
| address | 00:00:00:XX:XX:XX |
| sw_version | Unknown |
Traceback (most recent call last):
File "/root/.local/bin/TheengsGateway", line 4, in
main()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 57, in main
run(configuration, config_path)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 591, in run
asyncio.run(diagnostics(config_path))
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/diagnose.py", line 172, in diagnostics
await _adapters()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/diagnose.py", line 155, in _adapters
_section(adapter, properties) # type: ignore[arg-type]
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/diagnose.py", line 55, in _section
print(f"| {name:{max_name}} | {value:{max_value}} |")
TypeError: unsupported format string passed to NoneType.__format__
Log TGW 2421 update
[2023-12-27 21:21:42] *************************************
[2023-12-27 21:21:42] * Launch install of dependencies *
[2023-12-27 21:21:42] *************************************
[2023-12-27 21:21:42] Reading package lists...
[2023-12-27 21:21:42] Building dependency tree...
[2023-12-27 21:21:42] Reading state information...
[2023-12-27 21:21:42] curl is already the newest version (7.74.0-1.3+deb11u11).
[2023-12-27 21:21:42] 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2 100 2 0 0 250 0 --:--:-- --:--:-- --:--:-- 285
[2023-12-27 21:21:42] Hit:1 http://deb.debian.org/debian bullseye InRelease
[2023-12-27 21:21:42] Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
[2023-12-27 21:21:42] Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
[2023-12-27 21:21:42] Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
[2023-12-27 21:21:43] Reading package lists...
[2023-12-27 21:21:43] ***************************************
[2023-12-27 21:21:43] * Install dependencies, venv & pipx *
[2023-12-27 21:21:43] ***************************************
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2 100 2 0 0 333 0 --:--:-- --:--:-- --:--:-- 333
[2023-12-27 21:21:43] Reading package lists...
[2023-12-27 21:21:43] Building dependency tree...
[2023-12-27 21:21:43] Reading state information...
[2023-12-27 21:21:44] logrotate is already the newest version (3.18.0-2+deb11u2).
[2023-12-27 21:21:44] python3-pip is already the newest version (20.3.4-4+deb11u1).
[2023-12-27 21:21:44] python3 is already the newest version (3.9.2-3).
[2023-12-27 21:21:44] python3-venv is already the newest version (3.9.2-3).
[2023-12-27 21:21:44] bluez is already the newest version (5.55-3.1+deb11u1).
[2023-12-27 21:21:44] 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[2023-12-27 21:21:44] Version debian:11
[2023-12-27 21:21:44] Install pipx via pip
[2023-12-27 21:21:44] Requirement already satisfied: pipx in /usr/local/lib/python3.9/dist-packages (1.2.1)
[2023-12-27 21:21:44] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.9/dist-packages (from pipx) (3.1.6)
[2023-12-27 21:21:44] Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.9/dist-packages (from pipx) (23.2)
[2023-12-27 21:21:44] Requirement already satisfied: userpath>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from pipx) (1.9.1)
[2023-12-27 21:21:44] Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from userpath>=1.6.0->pipx) (8.1.7)
DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: python3 -m pip install --upgrade pip
[2023-12-27 21:21:44] /root/.local/bin has been been added to PATH, but you need to open a new
[2023-12-27 21:21:44] terminal or re-login for this PATH change to take effect.
[2023-12-27 21:21:44]
[2023-12-27 21:21:44] You will need to open a new terminal or re-login for the PATH changes to take
[2023-12-27 21:21:44] effect.
[2023-12-27 21:21:45]
[2023-12-27 21:21:45] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2023-12-27 21:21:45] ****************************
[2023-12-27 21:21:45] * Install TheengsGateway *
[2023-12-27 21:21:45] ****************************
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2 100 2 0 0 333 0 --:--:-- --:--:-- --:--:-- 333
[2023-12-27 21:21:45] 'theengsgateway' already seems to be installed. Not modifying existing
[2023-12-27 21:21:45] installation in '/root/.local/pipx/venvs/theengsgateway'. Pass '--force' to
[2023-12-27 21:21:45] force installation.
[2023-12-27 21:21:45] ***************************
[2023-12-27 21:21:45] * Install ended *
[2023-12-27 21:21:45] ***************************
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2 100 2 0 0 9 0 --:--:-- --:--:-- --:--:-- 9
Je n’ai pas l’information sur ce qui s’est passé, en tout cas aucune intervention de ma part sur mon jeedom.
Pour la remise en route j’ai fait les choses suivantes :
passé de la version beta à la version stable du plugin
reinsatallation de l’antenne
relance de configurer le service et redémarrer
C’est tout.
Par contre j’ai d’autres défauts qui sont remontés dans jeedom
J’ai débranché et rebranché la cle BT sans succès
J’ai redémarré jeedom sans succés
J’ai changé la clé BT par une autre et reinstallé tout sans succés
J’ai supprimé l’antenne et réinstallé l’antenne avec succès… avec la nouvelle clé BT
C’est tout ce que je sais pour le moment…
Que donne cette commande : sudo service bluetooth status
J’ai du mal à suivre votre infra Jeedom. Car sur de plus ancien message, vous avez aussi une antenne local sur un autre Jeedom ? Vous avez plusieurs Jeedom chez vous c’est ca ?
Car j’identifie 2 antennes locales dans vos messages, avec des ID différents
Bonjour, j’ai effectivement 2 jeedom qui communiquent entre eux. J’ai une antenne locale et 3 antennes déportées, l’une sur le second jeedom, une sur un pi zero et une sur un PI3. Sur le second jeedom j’ai eu pendant un moment le plugin tgw installée et une antenne locale.
La réponse à la commande
* bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-12-28 10:59:30 CET; 2h 1min ago
Docs: man:bluetoothd(8)
Main PID: 455 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 19022)
Memory: 3.9M
CPU: 57.690s
CGroup: /system.slice/bluetooth.service
`-455 /usr/libexec/bluetooth/bluetoothd
Dec 28 10:59:30 jeedom systemd[1]: Starting Bluetooth service...
Dec 28 10:59:30 jeedom bluetoothd[455]: Bluetooth daemon 5.55
Dec 28 10:59:30 jeedom systemd[1]: Started Bluetooth service.
Dec 28 10:59:30 jeedom bluetoothd[455]: Starting SDP server
Dec 28 10:59:30 jeedom bluetoothd[455]: Bluetooth management interface 1.18 initialized
Dec 28 10:59:30 jeedom bluetoothd[455]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
Dec 28 10:59:30 jeedom bluetoothd[455]: sap-server: Operation not permitted (1)
Dec 28 11:27:16 jeedom bluetoothd[455]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
Dec 28 11:27:16 jeedom bluetoothd[455]: sap-server: Operation not permitted (1)
C’est bizarre, si je tape la commande il me dit ‹ command not found ›, mais si j’envoi la commande préconfigurée dans jeedom cela fonctionne, mais il n’y a pas -H
L’autre antenne présente aussi une anomalie, ci joint le log de l’antenne 2430
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:Disconnected with return code = 16
ERROR:BLEGateway:Disconnected with return code = 16
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:Disconnected with return code = 16
ERROR:BLEGateway:Disconnected with return code = 16
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:Disconnected with return code = 7
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
ERROR:BLEGateway:Disconnected with return code = 7
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
Elle ne scanne rien …
Sur la commande dmesg, le retour des informations
[2322782.113176] usb 1-2: new full-speed USB device number 6 using xhci_hcd
[2322782.264092] usb 1-2: New USB device found, idVendor=0a5c, idProduct=21ec, bcdDevice= 1.12
[2322782.264101] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2322782.264105] usb 1-2: Product: BCM20702A0
[2322782.264108] usb 1-2: Manufacturer: Broadcom Corp
[2322782.264110] usb 1-2: SerialNumber: 0019860009D8
[2322782.378659] Bluetooth: hci0: BCM: chip id 63
[2322782.379657] Bluetooth: hci0: BCM: features 0x07
[2322782.395777] Bluetooth: hci0: BCM20702A
[2322782.395781] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000
[2322782.396734] bluetooth hci0: firmware: failed to load brcm/BCM20702A1-0a5c-21ec.hcd (-2)
[2322782.396749] bluetooth hci0: firmware: failed to load brcm/BCM-0a5c-21ec.hcd (-2)
[2322782.396752] Bluetooth: hci0: BCM: firmware Patch file not found, tried:
[2322782.396754] Bluetooth: hci0: BCM: 'brcm/BCM20702A1-0a5c-21ec.hcd'
[2322782.396756] Bluetooth: hci0: BCM: 'brcm/BCM-0a5c-21ec.hcd'
[2367450.890162] audit: type=1400 audit(1703804401.546:59): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=689136 comm="cupsd" capability=12 capname="net_admin"
[2367451.082041] audit: type=1400 audit(1703804401.738:60): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=689137 comm="cups-browsed" capability=23 capname="sys_nice"