Git Product home page Git Product logo

Comments (2)

sandeepmistry avatar sandeepmistry commented on August 14, 2024

Hi @hulkco,

The Arduino 101 is not a compatible USB Bluetooth HCI device.

Please see the read me for devices that have been tested by others: https://github.com/sandeepmistry/node-bluetooth-hci-socket#compatible-bluetooth-40-usb-adapters

Closing for now, please re-open with more info. if there is a something I am misunderstanding.

from node-bluetooth-hci-socket.

khushbooY avatar khushbooY commented on August 14, 2024

Hi,
I guess your this line of code contains default endpoint addressess but there are some UsbDeviceInterface's Device endoints that have different address.

this._usbDevice.open();
this._usbDeviceInterface = this._usbDevice.interfaces[0];
this._aclDataOutEndpoint = this._usbDeviceInterface.endpoint(0x02);//like 0x01
this._hciEventEndpoint = this._usbDeviceInterface.endpoint(0x81);//like 0x83
this._aclDataInEndpoint = this._usbDeviceInterface.endpoint(0x82);//like 0x81
this._usbDeviceInterface.claim();

Firstly this showed error

Error from process TypeError: Cannot read property 'on' of undefined
at BluetoothHciSocket.start (D:\exe_Inprocess\bisoft_exe_64\node_modules_x64\node_modules\bluetooth-hci-socket\lib\usb.js:99:29)
at Hci.init (D:\exe_Inprocess\bisoft_exe_64\node_modules_x64\node_modules\noble\lib\hci-socket\hci.js:102:18)
at NobleBindings.init (D:\exe_Inprocess\bisoft_exe_64\node_modules_x64\node_modules\noble\lib\hci-socket\bindings.js:82:13)
at Noble. (D:\exe_Inprocess\bisoft_exe_64\node_modules_x64\node_modules\noble\lib\noble.js:57:24)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
then i changed it to the UsbDeviceInterface's Device endoints then only scanning of devices is not happening?

Could you please help???

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.