Bonjour,
Suite a mon changement d’emcc 8g vers 16g j’ai eu quelques problemes qui ont été résolut par un recovery de la smart.
Mais maintenant mon BLEA en local ne fonctionne plus très très bien.
J’ai 3 antennes (rpi) qui elles n’ont pas de problème.
Sur mon système avec l’Emcc 8g le plugin fonctionnait très bien
Système : Smart 16g 4.3.17 avec plugin BLEA avec la dernière version.
Symptôme : Une fois mes NUT détectés, ils ne passent plus en « absent ». car sur l’antenne local ils sont toujours détecté.
Screen :
Log dépendance :
python3-serial is already the newest version (3.4-4).
python3-setuptools is already the newest version (40.8.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
rfkill is already the newest version (2.33.1-0.1).
bluetooth is already the newest version (5.50-1.2~deb10u3).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u3).
libssl-dev is already the newest version (1.1.1n-0+deb10u4).
libtiff5 is already the newest version (4.1.0+git191117-2~deb10u7).
0 upgraded, 0 newly installed, 0 to remove and 213 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 213 not upgraded.
Need to get 0 B/1191 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 81508 files and directories currently installed.)
Preparing to unpack .../python3_3.7.3-1_arm64.deb ...
running python pre-rtupdate hooks for python3.7...
Unpacking python3 (3.7.3-1) over (3.7.3-1) ...
Preparing to unpack .../bluez_5.50-1.2~deb10u3_arm64.deb ...
Unpacking bluez (5.50-1.2~deb10u3) over (5.50-1.2~deb10u3) ...
Preparing to unpack .../python3-pip_18.1-5_all.deb ...
Unpacking python3-pip (18.1-5) over (18.1-5) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up bluez (5.50-1.2~deb10u3) ...
Setting up python3-pip (18.1-5) ...
Processing triggers for dbus (1.12.16-1) ...
Processing triggers for systemd (241-7~deb10u4) ...
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (67.8.0)
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
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.20.1-2+deb10u8).
libglib2.0-dev is already the newest version (2.58.3-2+deb10u4).
0 upgraded, 0 newly installed, 0 to remove and 213 not upgraded.
Requirement already satisfied: pyudev in /usr/local/lib/python3.7/dist-packages (0.24.1)
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
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)
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
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (2.30.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.7/dist-packages (from requests) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests) (2.0.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests) (2023.5.7)
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
Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (9.5.0)
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
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (1.21.6)
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
Requirement already satisfied: bluepy in /usr/local/lib/python3.7/dist-packages (1.3.0)
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
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib
creating build/lib/bluepy
copying bluepy/scanner.py -> build/lib/bluepy
copying bluepy/get_services.py -> build/lib/bluepy
copying bluepy/__init__.py -> build/lib/bluepy
copying bluepy/sensortag.py -> build/lib/bluepy
copying bluepy/btle.py -> build/lib/bluepy
copying bluepy/blescan.py -> build/lib/bluepy
copying bluepy/scan_fuzz.py -> build/lib/bluepy
copying bluepy/thingy52.py -> build/lib/bluepy
copying bluepy/uuids.json -> build/lib/bluepy
copying bluepy/bluez-src.tgz -> build/lib/bluepy
copying bluepy/bluepy-helper.c -> build/lib/bluepy
copying bluepy/Makefile -> build/lib/bluepy
/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
running build
running build_py
copying bluepy/bluepy-helper -> build/lib/bluepy
running install_lib
copying build/lib/bluepy/scanner.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/bluepy-helper.c -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/Makefile -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/get_services.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/__init__.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/bluez-src.tgz -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/bluepy-helper -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/sensortag.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/btle.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/uuids.json -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/blescan.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/scan_fuzz.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/thingy52.py -> /usr/lib/python3.7/site-packages/bluepy
byte-compiling /usr/lib/python3.7/site-packages/bluepy/scanner.py to scanner.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/get_services.py to get_services.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/__init__.py to __init__.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/sensortag.py to sensortag.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/btle.py to btle.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/blescan.py to blescan.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/scan_fuzz.py to scan_fuzz.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/thingy52.py to thingy52.cpython-37.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing top-level names to bluepy.egg-info/top_level.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
adding license file 'LICENSE.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/lib/python3.7/site-packages/bluepy-1.1.4-py3.7.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/lib/python3.7/site-packages/bluepy-1.1.4-py3.7.egg-info
running install_scripts
Installing blescan script to /usr/bin
Installing sensortag script to /usr/bin
Installing thingy52 script to /usr/bin
/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
/usr/local/lib/python3.7/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
Requirement already satisfied: cryptography in /usr/local/lib/python3.7/dist-packages (40.0.2)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.7/dist-packages (from cryptography) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.12->cryptography) (2.21)
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
Requirement already satisfied: pycrypto in /usr/local/lib/python3.7/dist-packages (2.6.1)
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
********************************************************
* Installation terminée *
********************************************************
Il semble y avoir deux erreurs dans les dépendances, je ne sais pas si c’est important.
Exemple :
Je retire la pile
Mac : 45:4F:48:BC:5F:F4
Log debug:
[2023-05-31 15:21:11.240]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:11.240]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:21:12.248]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:12.249]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:21:13.257]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:13.258]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:21:14.269]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:14.269]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:21:15.290]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:15.290]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:21:16.297]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:16.297]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:21:17.305]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4
[2023-05-31 15:21:17.306]INFO : Not SEEEEEEEEEN------ since 87s 45:4F:48:BC:5F:F4 but not sendig because last connection or last learn was too soon
Ensuite ca bloque, et il n’y a plus de MAJ
Je remet la pile :
Sur les rpi :
Mais en local :
Ce que je pense : Lors du lancement du demon, il y a un scan et ca fonctionne puis il n’y a plus de MAJ
Les log debug du local ne montre aucun update, que du not seen :
[2023-05-31 15:28:49.332]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:01:A4
[2023-05-31 15:28:49.333]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:01:A4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:28:49.333]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:08:4C
[2023-05-31 15:28:49.334]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:08:4C but ....
[2023-05-31 15:28:56.394]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:3B:90:BB
[2023-05-31 15:28:56.394]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:3B:90:BB but not sendig because last connection or last learn was too soon
[2023-05-31 15:28:56.394]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:10:FA:B9
[2023-05-31 15:28:56.394]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:10:FA:B9 but not sendig because last connection or last learn was too soon
[2023-05-31 15:28:56.394]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:01:A4
[2023-05-31 15:28:56.395]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:01:A4 but not sendig because last connection or last learn was too soon
[2023-05-31 15:28:56.395]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:08:4C
[2023-05-31 15:28:56.396]INFO : Not SEEEEEEEEEN------ since 87s 58:2D:34:12:08:4C but not sendig because last connection or last
Je ne sais pas trop ou regarder,
Merci d’avance,