Skip to content

Silabs released new version of ezsp protocol#112

Merged
AndreasBomholtz merged 2 commits intomasterfrom
unknown repository
Apr 7, 2018
Merged

Silabs released new version of ezsp protocol#112
AndreasBomholtz merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Apr 7, 2018

Silicon labs have released new version of their protocol - v6.

This small change fixes the issue with it. Without this change it fails during start up with the following log:

Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 47, in uvloop.loop.Handle._run
  File "/usr/lib/python3.6/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
    self._protocol.data_received(data)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 64, in data_received
    self.frame_received(frame)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 76, in frame_received
    self.data_frame_received(data)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 97, in data_frame_received
    self._application.frame_received(self._randomize(data[1:-3]))
  File "/usr/lib/python3.6/site-packages/bellows/ezsp.py", line 173, in frame_received
    assert expected_id == frame_id
AssertionError

The failure occurs because these additional bytes are not inserted.
Tested with:

  • EFR32MG12 development kit
  • Silabs EM3588 USB adapter
  • Elelabs ZigBee Raspberry Pi shield (EM357)
  • Elelabs ZigBee USB adapter (EM3585)

Silicon labs have released new version of their protocol - v6.

This small change fixes the issue with it. Without this change it fails during start up with the following log:
```
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 47, in uvloop.loop.Handle._run
  File "/usr/lib/python3.6/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
    self._protocol.data_received(data)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 64, in data_received
    self.frame_received(frame)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 76, in frame_received
    self.data_frame_received(data)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 97, in data_frame_received
    self._application.frame_received(self._randomize(data[1:-3]))
  File "/usr/lib/python3.6/site-packages/bellows/ezsp.py", line 173, in frame_received
    assert expected_id == frame_id
AssertionError
```
The failure occurs because these additional bytes are not inserted.
Tested with:
- EFR32MG12 development kit
- Silabs EM3588 USB adapter
- Elelabs ZigBee Raspberry Pi shield (EM357)
- Elelabs ZigBee USB adapter (EM3585)
@coveralls
Copy link

Pull Request Test Coverage Report for Build 506

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 504: 0.0%
Covered Lines: 1200
Relevant Lines: 1200

💛 - Coveralls

@coveralls
Copy link

coveralls commented Apr 7, 2018

Pull Request Test Coverage Report for Build 507

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 504: 0.0%
Covered Lines: 1321
Relevant Lines: 1321

💛 - Coveralls

Copy link
Contributor

@AndreasBomholtz AndreasBomholtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it would be better to change it check for greater or equal to 5.

@AndreasBomholtz AndreasBomholtz merged commit 36986df into zigpy:master Apr 7, 2018
Yoda-x pushed a commit to Yoda-x/bellows that referenced this pull request May 5, 2018
* Silabs released new version of exsp protocol

Silicon labs have released new version of their protocol - v6.

This small change fixes the issue with it. Without this change it fails during start up with the following log:
```
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 47, in uvloop.loop.Handle._run
  File "/usr/lib/python3.6/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
    self._protocol.data_received(data)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 64, in data_received
    self.frame_received(frame)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 76, in frame_received
    self.data_frame_received(data)
  File "/usr/lib/python3.6/site-packages/bellows/uart.py", line 97, in data_frame_received
    self._application.frame_received(self._randomize(data[1:-3]))
  File "/usr/lib/python3.6/site-packages/bellows/ezsp.py", line 173, in frame_received
    assert expected_id == frame_id
AssertionError
```
The failure occurs because these additional bytes are not inserted.
Tested with:
- EFR32MG12 development kit
- Silabs EM3588 USB adapter
- Elelabs ZigBee Raspberry Pi shield (EM357)
- Elelabs ZigBee USB adapter (EM3585)

* Now checking if version is greater than or equal to 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants