Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Advertised Services Do Not Show In Packet 5.55 #189

Open
zer0stars opened this issue Sep 25, 2023 · 0 comments
Open

Advertised Services Do Not Show In Packet 5.55 #189

zer0stars opened this issue Sep 25, 2023 · 0 comments

Comments

@zer0stars
Copy link

Hello,

I have a problem with setting services that should show up in bluetooth advertising packet. Tried to shorten the length and manually add just 1 service, but unfortunately not working for me. Added btmon logs as well.

Setting the service manually by using sudo hcitool -i hci0 cmd 0x08 0x0008 12 11 07 30 44 5a 3e 35 50 0f ab 01 48 fd 25 11 63 a7 f5 00 00 00 00 00 00 00 00 00 00 00 00 00 makes it work. However I notice that the commands executed are different. Instead of

< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32                                                                                                                                                                  #99 [hci0] 153.277241
        Length: 18
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific (f5a76311-25fd-4801-ab0f-50353e5a4430)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                                                  #100 [hci0] 153.277718
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Success (0x00)

It runs

@ MGMT Command: Add Advertising (0x003e) plen 54                                                                                                                                                                          {0x0001} [hci0] 23.780966
        Instance: 1
        Flags: 0x00000003
          Switch into Connectable mode
          Advertise as Discoverable
        Duration: 65535
        Timeout: 0
        Advertising data length: 22
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific (5c307fa4-6859-4d6c-a87b-8d2c98c9f6f0)
        Appearance: Unknown (0x0000)
        Scan response length: 21
        Name (complete): autopi-0296989ff67b
@ MGMT Event: Advertising Added (0x0023) plen 1                                                                                                                                                                           {0x0002} [hci0] 23.780996
        Instance: 1
@ MGMT Event: Command Complete (0x0001) plen 4                                                                                                                                                                            {0x0001} [hci0] 23.781021
      Add Advertising (0x003e) plen 1
        Status: Success (0x00)
        Instance: 1

DIMO-Network/edge-network@main...feature/SI-2064

logs2.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant