Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6710485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:01:42+00:00 2026-05-26T08:01:42+00:00

Are there pybluez wrapper functions for lower level bt functionality? I couldn’t find anything

  • 0

Are there pybluez wrapper functions for lower level bt functionality? I couldn’t find anything in the docs. What I need to use is equivalent functionality to:

l2ping (single ping)
hcitool cc
hcitool rssi
hcitool lq
hcitool tpl
hcitool dc

Is there a way to access that from pybluez (or actually any other wrapper and/or scriptable language)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:01:43+00:00Added an answer on May 26, 2026 at 8:01 am

    The simple way to get the exact same functionality would be to just have python scripts invoke hcitool from the command line.

    But for the custom solution, you can use pybluez to send the same HCI command packets that those other commands generate. For example, hcitool rssi just causes an HCI Read RSSI command to be sent to the local BT adapter, and parses the result. With pybluez you can open an HCI socket, construct command packets, and parse results yourself. If you don’t have access to the BT spec that defines the command packet formats, you can either look at the source code for hcitool to see what they are sending, or you can use hcidump.

    To use hcidump, you can run hcidump in a terminal to sniff the local HCI command traffic while you use another terminal to do your other commands via hcitool. With hcidump you will be able to capture the raw packet transactions that you can use as reference for what you want to generate from pybluez.

    This example http://code.google.com/p/pybluez/source/browse/trunk/examples/advanced/inquiry-with-rssi.py shows how to deal with HCI sockets for manually forming command packets and parsing results. You just need to customize for the commands you want to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is an ArrayList which stores integer values. I need to find the maximum
There is any syntax to use something like this?: <?php function get_foo() { return
There are 2 servers, they need to know the status(live oe dead) each other.
Are there any nice Python libraries for Bluetooth programming? I tried PyBluez, but Eclipse
There is a conversion process that is needed when migrating Visual Studio 2005 web
There are two weird operators in C#: the true operator the false operator If
There are two popular closure styles in javascript. The first I call anonymous constructor
There is previous little on the google on this subject other than people asking
There seem to be many ways to define singletons in Python. Is there a
There are a few ways to get class-like behavior in javascript, the most common

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.