Comments (9)
@slashmili please see: https://github.com/sandeepmistry/node-bluetooth-hci-socket#user-channel
For user channel the adapter must be powered down before starting the Node.js app as per the documentation.
from node-bluetooth-hci-socket.
@sandeepmistry as I mentioned in the output I already powered down the device
sudo hciconfig hci0 down
sudo node le-scan-test.js
...
from node-bluetooth-hci-socket.
@slashmili apologies for missing this.
I believe setFilter
is only applicable for bindRaw
and not bindUser
mode, as you are still getting an the events.
Could you please submit a PR to read me to document this?
from node-bluetooth-hci-socket.
Sure!
Does it mean that in noble/hci.js, there should be a checking to only call setSocketFilter
if HCI_CHANNEL_RAW
is set?
The reason I'm interested to these details is, I'm porting this library to Erlang
and planning to use it in Nerves
from node-bluetooth-hci-socket.
Does it mean that in noble/hci.js, there should be a checking to only call setSocketFilter if HCI_CHANNEL_RAW is set?
Yes, I agree. It currently ignores the error event of "File descriptor in bad state" - but it would be clearer to not call setSocketFilter
as you suggested. Do you have time to submit a PR for this as well?
from node-bluetooth-hci-socket.
Of course! I'll do this this week
from node-bluetooth-hci-socket.
@slashmili any progress on the PR?
from node-bluetooth-hci-socket.
@sandeepmistry no sorry I'm still pretty busy moving π
from node-bluetooth-hci-socket.
Just for the record I found this explanation
Using this new facility does not require any external library or special
ioctl or socket filters. Just create the socket and bind it. After that
the file descriptor is ready to speak H:4 protocol.
http://www.spinics.net/lists/linux-bluetooth/msg37345.html
from node-bluetooth-hci-socket.
Related Issues (20)
- Segfaults/assertion errors (when no BT hardware is available?) HOT 1
- Failed Install - Win 10 HOT 1
- Error: No compatible USB Bluetooth 4.0 device found! HOT 1
- Dell precision m4800 Error: No compatible USB Bluetooth 4.0 device found!
- TypeError: Cannot read property 'endpoint' of undefined HOT 1
- . HOT 1
- Maintenance status ? HOT 6
- Add new device HOT 2
- Adapter unavailable in windows bluetooth settings
- Issues with bluetooth adapter 4.2 and 5.0
- raspberry pi3 HOT 3
- Installation fails in Docker-iobroker container on Raspi4 running Raspbian Buster HOT 1
- Add new device intel wireless bluetooth USB\VID_8087&PID_0AAA HOT 1
- Unable to install on Linux Mint HOT 1
- Adapter not found HOT 1
- Error : LIBUSB_ERROR_ACCES HOT 1
- Canβt install HOT 1
- Socket.write not writing commands HOT 1
- Installation fails (Arch Linux, node-gyp 9.3.0) HOT 3
- I need a C++ for windows sample
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-bluetooth-hci-socket.