Comments (4)
@navadiatarun you'll just need a simple PR like #40
from node-bluetooth-hci-socket.
@sandeepmistry I added the Pid and Vid in environment variables, that throws a different error.
:C:\Users\Intel\Desktop\Workspace\node_modules\bluetooth-hci-socket\lib\usb.js:95 this._hciEventEndpoint.on('data', this.onHciEventEndpointData.bind(this)); ^ TypeError: Cannot read property 'on' of undefined at BluetoothHciSocket.start (C:\Users\Intel\Desktop\Workspace\node_modules\bluetooth-hci-socket\lib\usb.js:95:27) at Hci.init (C:\Users\Intel\Desktop\Workspace\node_modules\noble\lib\hci-socket\hci.js:100:18) at NobleBindings.init (C:\Users\Intel\Desktop\Workspace\node_modules\noble\lib\hci-socket\bindings.js:83:13) at new Noble (C:\Users\Intel\Desktop\Workspace\node_modules\noble\lib\noble.js:50:18) at Object. (C:\Users\Intel\Desktop\Workspace\node_modules\noble\index.js:4:18) at Module.compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module.load (module.js:438:3)
After changing the endpoint addresses in the below code snippet
https://github.com/sandeepmistry/node-bluetooth-hci-socket/blob/master/lib/usb.js: this._usbDevice.open(); this.usbDeviceInterface = this.usbDevice.interfaces[0]; this._aclDataOutEndpoint = this._usbDeviceInterface.endpoint(0x04); this.hciEventEndpoint = this._usbDeviceInterface.endpoint(0x82); this.aclDataInEndpoint = this._usbDeviceInterface.endpoint(0x83); this._usbDeviceInterface.claim(); };
The code is able to scan for classic Bluetooth but not for BLE, as far as I know, the Marvell AVASTAR Wireless Composite Device driver is BLE compatible and it works through the Windows Bluetooth UI.
from node-bluetooth-hci-socket.
The code is able to scan for classic Bluetooth but not for BLE, as far as I know, the Marvell AVASTAR Wireless Composite Device driver is BLE compatible and it works through the Windows Bluetooth UI.
What make you say that? What code are you running? Have you tried debug logs?
setenv DEBUG=*
node <file>.js
from node-bluetooth-hci-socket.
Tried changing the settings here
this._usbDeviceInterface = this._usbDevice.interfaces[0];
this._aclDataOutEndpoint = this._usbDeviceInterface.endpoint(0x02);
this._hciEventEndpoint = this._usbDeviceInterface.endpoint(0x81);
this._aclDataInEndpoint = this._usbDeviceInterface.endpoint(0x82);
this._usbDeviceInterface.claim();
};
This is not possible, hence closing the issue.
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.