btleplug icon indicating copy to clipboard operation
btleplug copied to clipboard

“Software caused connection abort”

Open laxian opened this issue 11 months ago • 5 comments

Describe the bug My code run on mobile And macos. But when I compile it on Ubuntu, it doesn't work. I Get this error after each successful connection. Why?

laxian avatar Dec 10 '24 13:12 laxian

My code works fine on all mobile platforms and macos, and scans fine when I try to run it on Ubuntu, but this error occurs every time I connect. I'm running in docker. Is that relevant?

laxian avatar Dec 11 '24 02:12 laxian

企业微信截图_84de6eef-d3c1-49d0-9332-584c592d3344

laxian avatar Dec 11 '24 11:12 laxian

Possibly. Hardware access in docker can be very weird. Are you seeing connections on the device side?

qdot avatar Dec 21 '24 22:12 qdot

Possibly. Hardware access in docker can be very weird. Are you seeing connections on the device side?

Yes, there was a connection for a moment. I tested a non-docker environment on Ubuntu and had the same error.

laxian avatar Feb 19 '25 03:02 laxian

I have got exactly the same issue and the application is not running inside docker, so the two are unrelated.

Weirdly however, one in 50 (or so) connection attempts works.

pgschinghum avatar Mar 04 '25 13:03 pgschinghum