Git Product home page Git Product logo

Comments (4)

sandeepmistry avatar sandeepmistry commented on August 14, 2024

@navadiatarun you'll just need a simple PR like #40

from node-bluetooth-hci-socket.

NTcoder avatar NTcoder commented on August 14, 2024

@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.

sandeepmistry avatar sandeepmistry commented on August 14, 2024

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.

NTcoder avatar NTcoder commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.