Skip to content

update BLE remote control switch; not tested#937

Open
dhalbert wants to merge 5 commits into
adafruit:mainfrom
dhalbert:cpy5beta0-ble-remote-control-switch
Open

update BLE remote control switch; not tested#937
dhalbert wants to merge 5 commits into
adafruit:mainfrom
dhalbert:cpy5beta0-ble-remote-control-switch

Conversation

@dhalbert

Copy link
Copy Markdown
Contributor

@dhalbert dhalbert requested a review from TheKitty November 21, 2019 20:19
@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
Copy Markdown
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

rdagger commented Nov 25, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

rdagger commented Nov 25, 2019

Copy link
Copy Markdown
Contributor

@dhalbert Google Nexus 6

@dhalbert

Copy link
Copy Markdown
Contributor Author

Charging up a Samsung Android tablet to check.

@dhalbert

Copy link
Copy Markdown
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

rdagger commented Nov 26, 2019

Copy link
Copy Markdown
Contributor

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

@rdagger

rdagger commented Nov 26, 2019

Copy link
Copy Markdown
Contributor

@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

ladyada commented Feb 2, 2020

Copy link
Copy Markdown
Member

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

@dhalbert

dhalbert commented Feb 2, 2020

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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.

4 participants