Comments (10)
I was using Raspberry Pi 3 and 4. Upgrading to the latest version of Raspbian (Raspberry Pi OS) solved the problem for me.
from node-ble.
@mohse-n have your solved the problem, i catch the same case.
from node-ble.
i am use ubuntu18.04. when i connect to device,it never give a correct response, but a “Software caused connection abort”
from node-ble.
Same here, "Software caused connection abort" when trying to connect to the device. I run on Ubuntu 18.04 as well.
from node-ble.
I got the same problem. I am using node-ble inside a homebridge plugin. My Raspberry Pi Zero W is running the latest Raspberry Pi OS and node.
Any ideas how to fix it?
from node-ble.
In order to debug the issue, I suggest you the following lines:
$ bluetoothctl
> connect DC:A6:32:3F:7B:7A
> menu gatt
> list-attributes
Does bluetoothctl list the expected services?
from node-ble.
Thank you for your quick respond. I think that was a mistake of mine. I will check it at the weekend and get back in touch here.
from node-ble.
I checked my implementation. I am getting the following error after a few seconds if the peripheral is not reachable:
DBusError: Software caused connection abort
Is it possible to search/wait for the peripheral till it is available?
I want to integrated node-ble inside my homebridge plugin and it should search for peripherals in an endless loop if it is not reachable.
If my peripheral is reachable everything runs fine.
from node-ble.
Hello! I get the same error. It connects to the device and can display my phone's name, but when I try device.connect() it throws that error after a bit. I'm running it from a RPi 4 using Raspbian.
Also, I can connect to my device using bluetoothctl, but nothing is listed when I use the list-attributes command.
Has anyone found a solution?
from node-ble.
In order to debug the issue, I suggest you the following lines:
$ bluetoothctl > connect DC:A6:32:3F:7B:7A > menu gatt > list-attributes
Does bluetoothctl list the expected services?
I get the same problem. I'm running in a Docker Image on a RPi4.
I can ssh into the docker image and when I try #13 (comment) I get the following :
[bluetooth]#
[CHG] Device 7B:41:00:00:04:98 ManufacturerData Value: 0x00
[bluetooth]#
[CHG] Device 7B:41:00:00:04:98 ManufacturerData Value: 0x00
[bluetooth]# connect 7B:41:00:00:04:98
Attempting to connect to 7B:41:00:00:04:98
[bluetooth]#
Failed to connect: org.bluez.Error.Failed
[bluetooth]#
In my code, I can get the device, and getAddress and getName work as expected, but when I attempt to connect, I get :
*** BLE devices: [ '7B:41:00:00:04:98', 'DC:0D:30:01:14:C3' ]
got device 7B:41:00:00:04:98 ThermoBeacon false
(node:32) UnhandledPromiseRejectionWarning: DBusError: Software caused connection abort
at methodReturnHandlers.(anonymous function) (/srv/node_modules/dbus-next/lib/bus.js:343:27)
at handleMessage (/srv/node_modules/dbus-next/lib/bus.js:101:11)
at EventEmitter.MessageBus.conn.on (/srv/node_modules/dbus-next/lib/bus.js:151:9)
at EventEmitter.emit (events.js:198:13)
at /srv/node_modules/dbus-next/lib/connection.js:116:14
at Socket. (/srv/node_modules/dbus-next/lib/message.js:63:9)
at Socket.emit (events.js:198:13)
[Logs] [4/10/2021, 1:23:47 PM] [smart-hub] at emitReadable (_stream_readable.js:555:12)
[Logs] [4/10/2021, 1:23:47 PM] [smart-hub] at process._tickCallback (internal/process/next_tick.js:63:19)
from node-ble.
Related Issues (20)
- Filter by services HOT 2
- "noble: unknown peripheral c44f3371766b, 183b, 2aa1 read!" Characteristics HOT 1
- HELP - const gattServer = await device.gatt()- don't work :/ HOT 8
- Characteristiic throwing error org.bluez.Error.InProgress HOT 1
- Cannot intercept dev_disconnected() event HOT 1
- Interpret buffer of characteristic - encoding HOT 1
- Device.removeAllListeners('disconnect') does not work
- Compatibility issue with Node.JS v16 and v17
- Windows and Mac support? HOT 7
- Deprecations? HOT 1
- Device (properties) event listener leak
- Device dbus "match" leak HOT 2
- Error: interface not found in proxy object: org.bluez.GattService1 HOT 5
- Confusing docs on pair vs connect
- Operation failed with ATT error: 0x82
- Closer implementation of webBluetooth API
- Compatibility not specified HOT 3
- Add dotenv as requirement HOT 1
- Scanning multiple times causes "MaxListenersExceededWarning: Possible EventEmitter memory leak detected." HOT 1
- Clarification of `node-ble.config` permissions/policy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ble.