Skip to content

LED Warning On CC2530 / CC2591 USB Devices #66

@danieledwardgeorgehitchcock

Description

A fix that I believe was introduced in commit 3855695 to (en/dis)able the onbard LED seems to be conflicting with USB CC2530 / CC2591 devices that use the CP2102 UART to USB chip. I don't believe these devices have LED's mapped to the same pins as the other CC devices.

See below debug logs:

2020-08-14 09:07:48 2020-08-14 09:07:48 WARNING (MainThread) [zigpy_cc.api] Waiter timeout: <Waiter matcher=<Matcher type=CommandType.SRSP subsystem=Subsystem.UTIL command=ledControl payload={}> future=<Future cancelled> timeout=6000 sequence=None> 2020-08-14 09:07:42 2020-08-14 09:07:42 DEBUG (MainThread) [zigpy_cc.api] --> SREQ UTIL ledControl tsn: None {'ledid': 3, 'mode': <LedMode.Off: 0>} 2020-08-14 09:06:48 2020-08-14 09:06:48 WARNING (MainThread) [zigpy_cc.api] Waiter timeout: <Waiter matcher=<Matcher type=CommandType.SRSP subsystem=Subsystem.UTIL command=ledControl payload={}> future=<Future cancelled> timeout=6000 sequence=None> 2020-08-14 09:06:48 2020-08-14 09:06:48 WARNING (MainThread) [zigpy_cc.api] Waiter timeout: <Waiter matcher=<Matcher type=CommandType.SRSP subsystem=Subsystem.UTIL command=ledControl payload={}> future=<Future cancelled> timeout=6000 sequence=None> 2020-08-14 09:06:48 2020-08-14 09:06:48 WARNING (MainThread) [zigpy_cc.api] Waiter timeout: <Waiter matcher=<Matcher type=CommandType.SRSP subsystem=Subsystem.UTIL command=ledControl payload={}> future=<Future cancelled> timeout=6000 sequence=None> 2020-08-14 09:06:42 2020-08-14 09:06:42 DEBUG (MainThread) [zigpy_cc.api] --> SREQ UTIL ledControl tsn: None {'ledid': 3, 'mode': <LedMode.On: 1>} 2020-08-14 09:06:42 2020-08-14 09:06:42 DEBUG (MainThread) [zigpy_cc.api] --> SREQ UTIL ledControl tsn: None {'ledid': 3, 'mode': <LedMode.On: 1>} 2020-08-14 09:06:42 2020-08-14 09:06:42 DEBUG (MainThread) [zigpy_cc.api] --> SREQ UTIL ledControl tsn: None {'ledid': 3, 'mode': <LedMode.On: 1>} 2020-08-14 09:01:31 2020-08-14 09:01:31 WARNING (MainThread) [zigpy_cc.api] Waiter timeout: <Waiter matcher=<Matcher type=CommandType.SRSP subsystem=Subsystem.UTIL command=ledControl payload={}> future=<Future pending cb=[_release_waiter(<Future finished result=None>)() at /usr/local/lib/python3.8/asyncio/tasks.py:429]> timeout=6000 sequence=None> 2020-08-14 09:01:24 2020-08-14 09:01:24 DEBUG (MainThread) [zigpy_cc.api] --> SREQ UTIL ledControl tsn: None {'ledid': 3, 'mode': <LedMode.Off: 0>}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions