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

[BLE] can not run the code twice because of this ble error #765

Open
HasanFarag opened this issue Sep 19, 2020 · 1 comment
Open

[BLE] can not run the code twice because of this ble error #765

HasanFarag opened this issue Sep 19, 2020 · 1 comment
Assignees
Labels
done on dev the feature or bug is solved on dev branch and wait for merge to release branch

Comments

@HasanFarag
Copy link

HasanFarag commented Sep 19, 2020

when I run sudo ./minidrone D0:3A:7F:0D:E6:21 on ubuntu 20.04 i got that error if i want to run the code again after landing

2020/09/19 17:36:29 Initializing connections...
2020/09/19 17:36:29 Initializing connection BLEClient-32A33693B9E2A9F9 ...
2020/09/19 17:36:29 Initializing devices...
2020/09/19 17:36:29 Initializing device Minidrone-5CF68D44CFC83AD2 ...
2020/09/19 17:36:29 Robot minidrone initialized.
2020/09/19 17:36:29 Starting Robot minidrone ...
2020/09/19 17:36:29 Starting connections...
2020/09/19 17:36:29 Starting connection BLEClient-32A33693B9E2A9F9...
2020/09/19 17:36:39 1 error occurred:
	* can't connect to device default: can't get device: can't init hci: no devices available: (hci0: can't down device: device or resource busy)

or

  • can't discover profile: can't discover services: ATT request failed: input channel closed: io: read/write on closed pipe
@gen2thomas
Copy link
Collaborator

gen2thomas commented Feb 10, 2024

Hi @HasanFarag , since 2020 the used library has changed a bit. Additionally some things has changed recently in adaptor and driver on dev branch. If this is still of interest, please can you repeat your test with the current implementation on dev branch and provide your running example.

Furthermore I can see missing usage of error return values in gobot examples. I will fix this.

@gen2thomas gen2thomas self-assigned this Feb 10, 2024
@gen2thomas gen2thomas changed the title can not run the code twice because of this ble error [BLE] can not run the code twice because of this ble error Feb 10, 2024
@gen2thomas gen2thomas added in work the implementation or bug fix is in work by developers done on dev the feature or bug is solved on dev branch and wait for merge to release branch and removed in work the implementation or bug fix is in work by developers labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done on dev the feature or bug is solved on dev branch and wait for merge to release branch
Projects
None yet
Development

No branches or pull requests

2 participants