Giter VIP home page Giter VIP logo

Comments (1)

zggzcgy avatar zggzcgy commented on August 15, 2024
bt-network -c <your device name or your device mac> uuid

Example:

bt-network -c Huawei 00001116-0000-1000-8000-00805f9b34fb
bt-network -c 00:11:22:33:44:55 00001116-0000-1000-8000-00805f9b34fb

devices name and uuid can be viewed in this bluetoolctl tools

$ bluetoolctl
[bluetooth]# paired-devices 
Device 00:11:22:33:44:55 Huawei
[bluetooth]# info 00:11:22:33:44:55
Device 00:11:22:33:44:55 (public)
        Name: Huawei    <--name
        Alias: Huawei
        Class: 0x005a020c
        Icon: phone
        Paired: yes
        Trusted: no
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: Unknown                   (0000046a-0000-1000-8000-00805f9b34fb)
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
        UUID: Headset AG                (00001112-0000-1000-8000-00805f9b34fb)
        UUID: PANU                      (00001115-0000-1000-8000-00805f9b34fb)<--UUID key:PANU
        UUID: NAP                       (00001116-0000-1000-8000-00805f9b34fb)<--UUID key:NAP 
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        Modalias: bluetooth:v010Fp107Ed1436
[bluetooth]#

Automatic address assignment
Make sure your server has started dhcp service
Example:

# dnsmasq -I br0 -F 192.168.1.100,192.168.1.200,255.255.255.0

Make sure your client has dhcp enabled

# dhclient -v bnep0
Internet Systems Consortium DHCP Client 4.4.2
Copyright 2004-2020 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/bnep0/11:22:33:44:55:66
Sending on   LPF/bnep0/11:22:33:44:55:66
Sending on   Socket/fallback
DHCPDISCOVER on bnep0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 192.168.1.139 from 192.168.1.1
DHCPREQUEST for 192.168.1.139 on bnep0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.139 from 192.168.1.1
bound to 192.168.1.139 -- renewal in 1652 seconds.

from bluez-tools.

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.