Skip to content

Add S4 support #22

@andlommy

Description

@andlommy

Версия модуля: 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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions