element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Code Exchange
  • Technologies
  • More
Code Exchange
Forum Implementing Bluetooth technology - in C/C++ code.
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Code Exchange to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 15 replies
  • Subscribers 45 subscribers
  • Views 2595 views
  • Users 0 members are here
  • bluetooth
  • library
  • bluez
Related

Implementing Bluetooth technology - in C/C++ code.

anneranch
anneranch 10 months ago

I am looking for discussion on how to implement Bluetooth technology in C/C++ code.

My main concern is toi do this reliably and repeatedly.

I am basically using very old HCI approach, implementing  "bluez" "library" .

The code works, despite lack of documentation of "bluez library".

My "in words" question is

How  does "local  Bluetooth adapter " implements / enables  "scan" for remote Bluetooth device ,

how is "paring" and  "connect"  used dur9ing this process.]

The answer must be in "bluez"  library , however I am unable to "step thru " its code - too convoluted  and

not documented.

( I will post the link to C code when it became beneficial for detailed discussion )

 My secondary concern is

how to analyze and then  implement

"replacing USB serial cable  " witht Bluetooth technology / connecti0on?

Let's see how the forum sill respond and then I could give details for the secondary issue.

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz 10 months ago +4
    The pairing, connect etc are all done by GAP messages. In the diagram below, you can see that those messages are ultimately converted down to a payload that is wrapped with a header and checksum, and then…
  • anneranch
    anneranch 10 months ago in reply to anneranch

    There is more affix. Looks as "updated" from the previous doc.

    Now for stupid question.

    It has file for "Linux kernel 2.6".

    My Ubuntu kernel is "6".

    Is it same as 2.6??

    nov25-1@nov251-desktop:~$ uname -srm
    Linux 6.8.0-45-generic x86_64
    nov25-1@nov251-desktop:~$

    Download for 2.6 kernels
    ChangeLog: affix, affix-kernel.

    NB. Install affix-kernel package first and then affix package.
    NB.2. Affix 3.X.Y are for 2.6 kernels only ! (Support for 2.4 kernels here)

    Latest testing version (for developers) Package File to download Latest patch
    affix for 2.6 kernels affix-3.2.0.tar.gz
    Size: 468K, MD5 affix_320_sec.patch
    Size: 1.9K, MD5
    affix-kernel for 2.6 kernels affix-kernel-3.2.0.tar.gz
    Size: 260K, MD5 patch_hci_3_2_0
    Size: 901 , MD5

    Latest stable version (for end users) Package File to download Latest patch
    affix for 2.6 kernel affix-3.2.0.tar.gz
    Size: 468K, MD5 affix_320_sec.patch
    Size: 1.9K, MD5
    affix-kernel for 2.6 kernel affix-kernel-3.2.0.tar.gz
    Size: 260K, MD5 patch_hci_3_2_0
    Size: 901 , MD5

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza 10 months ago in reply to anneranch

    Linux kernel version history - Wikipedia

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • anneranch
    anneranch 10 months ago in reply to javagoza

    My Ubuntu kernel is "6".

    Is it same as 2.6??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza 10 months ago in reply to anneranch

    No, version 2.6 is quite old; it's over 20 years old.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • anneranch
    anneranch 10 months ago in reply to javagoza

    Thank you. Then Affix for "version 2.6" is also old? Besides - I do not want to install it anyway _ I am still searching for source code for "hci_inquiry".

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube