Skip to content

Conversation

@Adminiuga
Copy link
Collaborator

This PR allows zigpy-xbee to configure a XBee device which was reset to default settings, regardless of configured baudrate.
If there's no reply to the very 1st AT command API frame, then it would try to escape into "AT Command mode" by sending +++ and configuring API mode via AT commands. If there's no response to "escape sequence", then it would probe different baudrates until it gets a response or fails.

This PR works best with https://github.com/Adminiuga/zigpy-xbee/tree/fix-xbee-resets

@coveralls
Copy link

coveralls commented Nov 7, 2018

Pull Request Test Coverage Report for Build 52

  • 81 of 83 (97.59%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.0%) to 97.136%

Changes Missing Coverage Covered Lines Changed/Added Lines %
zigpy_xbee/uart.py 17 19 89.47%
Totals Coverage Status
Change from base Build 49: 1.0%
Covered Lines: 407
Relevant Lines: 419

💛 - Coveralls

@rcloran
Copy link
Contributor

rcloran commented Nov 19, 2018

Looks like some of the tests need to be fixed to work on top of #15 ?

@Adminiuga
Copy link
Collaborator Author

will do.

Configure XBee API mode if there's no response to API frames.
Probe different UART speeds if escaping to AT command mode fails.
Add support for AT command mode AT commands.
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.

3 participants