Giter Club home page Giter Club logo

Comments (11)

virtualabs avatar virtualabs commented on August 18, 2024

There are many reasons, but the most common are:

  1. Ensure your proxy machine (VM or other) has a bluetooth adapter attached to it and managed by the system (use hciconfig to check it out, you may paste the result here for further analysis)
  2. Your bluetooth adapter is not enabled. Check its status with hciconfig and enable it if it was previously disabled.

from btlejuice.

rob-cowsley avatar rob-cowsley commented on August 18, 2024

Still having the same issue, proxy adapter output below:

hciconfig

hci0: Type: BR/EDR Bus: USB
BD Address: 00:19:0E:18:53:01 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:978 acl:0 sco:0 events:52 errors:0
TX bytes:2477 acl:0 sco:0 commands:52 errors:0

hci1: Type: BR/EDR Bus: USB
BD Address: 00:22:43:F8:75:85 ACL MTU: 1021:8 SCO MTU: 64:1
DOWN
RX bytes:511 acl:0 sco:0 events:23 errors:0
TX bytes:339 acl:0 sco:0 commands:23 errors:0

btlejuice-proxy

[i] Using interface hci0
[info] Server listening on port 8000
[info] Client connected
[i] Stopping current proxy.
Configuring proxy ...
[status] Acquiring target 00:0b:57:0c:61:c7

from btlejuice.

rob-cowsley avatar rob-cowsley commented on August 18, 2024

Additional info on the device:

hciconfig-hci0.txt

from btlejuice.

virtualabs avatar virtualabs commented on August 18, 2024

Okay, can you describe exactly how you start both btlejuice and btlejuice-proxy and your machines setup please ? I need more info to try to solve this problem.

from btlejuice.

rob-cowsley avatar rob-cowsley commented on August 18, 2024

I have two laptops connected via a single switch. The proxy is using the on board Bluetooth and the client is using an external Bluetooth adapter.

Output from both devices is below:

client.txt
proxy.txt

Is that output enough for you?

from btlejuice.

virtualabs avatar virtualabs commented on August 18, 2024

I managed to reproduce this bug and found the root cause: noble library de-duplicates detected devices by default so they would not be detected again during target acquisition.

I fixed the problem in the master branch but haven't made a new release yet. Is it possible for you to try this fix with a fresh install from the master branch (git clone then sudo npm install -g) or should I issue a new release through npm ?

from btlejuice.

virtualabs avatar virtualabs commented on August 18, 2024

I released two more versions since then, I hope the latest (v1.1.3) will fix your problem ;). I tested it intensively with the same setup that allowed me to reproduce this behavior.

from btlejuice.

rob-cowsley avatar rob-cowsley commented on August 18, 2024

Currently re-setting up a couple of machines as there was an issue with one of them.

Should be able to test and confirm today with any luck (assuming install works on a PI)

from btlejuice.

rob-cowsley avatar rob-cowsley commented on August 18, 2024

Looks good. :) - may have another issue now with remote device disconnects, but will do some more testing before raising it.

from btlejuice.

virtualabs avatar virtualabs commented on August 18, 2024

Great, feel free to file a new issue ;)

from btlejuice.

dayasagar12 avatar dayasagar12 commented on August 18, 2024

The issue still persists. I am getting stuck at Acquiring target line

I am using 1.1.11 version and using 2 laptops with ubuntu VMs running on both. I run the proxy in one system and run btlejuice command in the another system where I can see the list of bluetooth devices, but I don't see output in localhost:8080 page once I get connected. Can you please help me in fixing this issue

from btlejuice.

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.