-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
4STion 4S relatedTion 4S relatedenhancementNew feature or requestNew feature or requestwork in progress
Description
Версия модуля: 1.20
Модель бризера: Tion S4
Версия прошивки (если известна): 02D0
Описание проблемы
Опишите возникшую проблему простыми словами
When performing device.pair() (device in blue flashing mode), Authentication Failed response comes back from the breezer
Порядок действий, которые приводят к проявлению проблемы
from tion_btle import S3 as Breezer
mac: str=str("XX:XX:XX:XX:XX:XX")
device = Breezer(mac)
device.pair()
Логи
buntu@ubuntu:/tmp$ sudo python3
Python 3.8.6 (default, Jan 27 2021, 15:42:20)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tion_btle import S3 as Breezer
>>> mac: str=str("XX:XX:XX:XX:XX:XX")
>>> device=Breezer(mac)
>>> device.pair()
DEBUG:tion_btle.tion:Pairing
DEBUG:tion_btle.tion:Connecting
DEBUG:tion_btle.tion:Notifications was not requested
DEBUG:tion_btle.tion:Connected. BT pairing ...
DEBUG:tion_btle.tion:Got response while sending pair command: {'rsp': ['mgmt'], 'code': ['mgmterr'], 'estat': [5], 'emsg': ['Authentication Failed']}
CRITICAL:tion_btle.tion:Unexpected response: {'rsp': ['mgmt'], 'code': ['mgmterr'], 'estat': [5], 'emsg': ['Authentication Failed']}
CRITICAL:tion_btle.tion:Got exception while pair TionException: ('pair', {'rsp': ['mgmt'], 'code': ['mgmterr'], 'estat': [5], 'emsg': ['Authentication Failed']})
DEBUG:tion_btle.tion:disconnected
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tion_btle/tion.py", line 518, in pair
raise TionException('pair', rsp)
tion_btle.tion.TionException: ('pair', {'rsp': ['mgmt'], 'code': ['mgmterr'], 'estat': [5], 'emsg': ['Authentication Failed']})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/tion_btle/tion.py", line 525, in pair
raise TionException('pair', f"{type(e).__name__}: {str(e)}")
tion_btle.tion.TionException: ('pair', "TionException: ('pair', {'rsp': ['mgmt'], 'code': ['mgmterr'], 'estat': [5], 'emsg': ['Authentication Failed']})")
Metadata
Metadata
Assignees
Labels
4STion 4S relatedTion 4S relatedenhancementNew feature or requestNew feature or requestwork in progress