Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update BLE remote control switch; not tested #937

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dhalbert
Copy link
Contributor

@dhalbert dhalbert force-pushed the cpy5beta0-ble-remote-control-switch branch from 80a9f38 to a8eae25 Compare November 21, 2019 20:51
@dhalbert dhalbert changed the title update for CPy 5.0.0-beta.0; not tested update BLE remote control switch; not tested Nov 21, 2019
@dhalbert
Copy link
Contributor Author

@rdagger do you have time to review this, and still have the hardware set up? Procedure would be to:

  1. Update CircuitPython to 5.0.0-beta.0 (from https://circuitpython.org/downloads)
  2. Update needed libraries to latest (from https://circuitpython.org/libraries)

Thanks.

@rdagger
Copy link
Contributor

rdagger commented Nov 25, 2019

Did a quick test:

Client code through the following error:
File "code.py", line 63, in
AttributeError: 'BLEConnection' object has no attribute 'in_waiting'

The server code didn't throw an error but when I tried to connect with the Bluefruit Connect app, I received the following error on my phone:
"Uart protocol can not be initialized"

I'm using Adafruit CircuitPython 5.0.0-beta.0-45-gd154d1191 on 2019-11-25; Adafruit Feather nRF52840 Express with nRF52840 and the latest version of CircuitPython Bundle and Adafruit_BLE.

@dhalbert
Copy link
Contributor Author

@rdagger OK, I fixed some code in client.py. I am not getting an error on server.py: it connects fine from my iPhone 6S running the latest OS and app version. What phone are you using?

@rdagger
Copy link
Contributor

rdagger commented Nov 25, 2019

@dhalbert Google Nexus 6

@dhalbert
Copy link
Contributor Author

Charging up a Samsung Android tablet to check.

@dhalbert
Copy link
Contributor Author

I connected with Samsung Tablet, though I had a failed connection first, and then reset the Feather, and it worked second time. Not sure what that was about (maybe leftover connection from iOS).

@rdagger
Copy link
Contributor

rdagger commented Nov 26, 2019

@dhalbert I restarted my Android phone and the server code is working now using the Bluefruit phone app.

@rdagger
Copy link
Contributor

rdagger commented Nov 26, 2019

@dhalbert I spoke too soon. After a few minutes I received the following error from the server code:

Traceback (most recent call last):
File "code.py", line 47, in
File "code.py", line 45, in
File "adafruit_ble/services/nordic.py", line 108, in write
File "adafruit_ble/characteristics/stream.py", line 49, in write
_bleio.BluetoothError: Unknown soft device error: 3002

@ladyada
Copy link
Member

ladyada commented Feb 2, 2020

@dhalbert @rdagger given many updates in the BLE core in last 2 months, should this be re-tested?

@dhalbert
Copy link
Contributor Author

dhalbert commented Feb 2, 2020

it's on my list to rewrite. :)

@evaherrada evaherrada changed the base branch from master to main June 10, 2021 20:50
@TheKitty
Copy link
Collaborator

@dhalbert - is this PR pertinent given the latest work? I'm looking to close open Learn PRs. Thanks

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.

None yet

4 participants