user@debian:~/src/bluetooth/bluer-cmd/le_advertise$ cargo run -- --advertisement-type "broadcast" -u 123e4567-e89b-12d3-a456-426614174000 --interval 600,900 -v Finished dev [unoptimized + debuginfo] target(s) in 0.06s Running `/home/user/src/bluetooth/bluer-cmd/target/debug/le_advertise --advertisement-type broadcast -u 123e4567-e89b-12d3-a456-426614174000 --interval 600,900 -v` parts = ["600", "900"], s = "600,900"parts = ["600", "900"], s = "600,900"Checking Bluetooth adapter hci0: with an address C0:07:E8:5A:62:64 Using Bluetooth adapter hci0 Address: C0:07:E8:5A:62:64 Advertising on Bluetooth adapter hci0 Address: C0:07:E8:5A:62:64 Address type: public Friendly name: debian System name: debian Modalias: Some(Modalias { source: "usb", vendor: 7531, product: 582, device: 1354 }) Powered: true Advertisement { advertisement_type: Broadcast, service_uuids: {123e4567-e89b-12d3-a456-426614174000}, manufacturer_data: {}, solicit_uuids: {}, service_data: {}, advertising_data: {}, discoverable: Some(false), discoverable_timeout: None, system_includes: {}, local_name: None, appearance: None, duration: None, timeout: None, secondary_channel: None, min_interval: Some(600ms), max_interval: Some(900ms), tx_power: None, _non_exhaustive: () } Press enter to quit Enter key pressed, shutting down... Enter is pressed or cancelled... Removing advertisement Shutdown complete. ======================BTMON HCI============================== = Note: Bluetooth subsystem version 2.22 0.087180 = New Index: C0:07:E8:5A:62:64 (Primary,UART,hci0) [hci0] 0.087181 = Open Index: C0:07:E8:5A:62:64 [hci0] 0.087181 = Index Info: C0:07:E8:5A:62:64 (Teledyne Lecroy, Inc.) [hci0] 0.087182 @ MGMT Open: bluetoothctl version 1.18 {0x0002} 0.087182 @ MGMT Open: bluetoothd (privileged) version 1.18 {0x0001} 0.087183 @ MGMT Command: Add Advertising (0x003e) plen 32 {0x0001} [hci0] 142.844949 Instance: 1 Flags: 0x00000000 Duration: 0 Timeout: 0 Advertising data length: 21 128-bit Service UUIDs (complete): 1 entry Vendor specific Flags: 0x04 BR/EDR Not Supported Scan response length: 0 < HCI Command: LE Set Extended Advertising Parame.. (0x08|0x0036) plen 25 #1 [hci0] 142.845160 Handle: 0x01 Properties: 0x0010 Use legacy advertising PDUs: ADV_NONCONN_IND Min advertising interval: 1280.000 msec (0x0800) Max advertising interval: 1280.000 msec (0x0800) Channel map: 37, 38, 39 (0x07) Own address type: Random (0x01) Peer address type: Public (0x00) Peer address: 00:00:00:00:00:00 (OUI 00-00-00) Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00) TX power: Host has no preference (0x7f) Primary PHY: LE 1M (0x01) Secondary max skip: 0x00 Secondary PHY: LE 1M (0x01) SID: 0x00 Scan request notifications: Disabled (0x00) > HCI Event: Command Complete (0x0e) plen 5 #2 [hci0] 142.847221 LE Set Extended Advertising Parameters (0x08|0x0036) ncmd 1 Status: Success (0x00) TX power (selected): 9 dbm (0x09) < HCI Command: LE Set Advertising Set Random Address (0x08|0x0035) plen 7 #3 [hci0] 142.847257 Advertising handle: 0x01 Advertising random address: 25:39:6C:BC:68:20 (Non-Resolvable) > HCI Event: Command Complete (0x0e) plen 4 #4 [hci0] 142.849668 LE Set Advertising Set Random Address (0x08|0x0035) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 6 #5 [hci0] 142.849727 Extended advertising: Enabled (0x01) Number of sets: 1 (0x01) Entry 0 Handle: 0x01 Duration: 0 ms (0x00) Max ext adv events: 0 > HCI Event: Command Complete (0x0e) plen 4 #6 [hci0] 142.852381 LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1 Status: Success (0x00) @ MGMT Event: Command Complete (0x0001) plen 4 {0x0001} [hci0] 142.852428 Add Advertising (0x003e) plen 1 Status: Success (0x00) Instance: 1 < HCI Command: LE Set Extended Advertising Data (0x08|0x0037) plen 25 #7 [hci0] 142.852458 Handle: 0x01 Operation: Complete extended advertising data (0x03) Fragment preference: Minimize fragmentation (0x01) Data length: 0x15 128-bit Service UUIDs (complete): 1 entry Vendor specific Flags: 0x04 BR/EDR Not Supported > HCI Event: Command Complete (0x0e) plen 4 #8 [hci0] 142.854245 LE Set Extended Advertising Data (0x08|0x0037) ncmd 1 Status: Success (0x00) @ MGMT Command: Remove Advertising (0x003f) plen 1 {0x0001} [hci0] 155.765138 Instance: 1 < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 6 #9 [hci0] 155.765168 Extended advertising: Disabled (0x00) Number of sets: 1 (0x01) Entry 0 Handle: 0x01 Duration: 0 ms (0x00) Max ext adv events: 0 > HCI Event: Command Complete (0x0e) plen 4 #10 [hci0] 156.991584 LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1 Status: Success (0x00) < HCI Command: LE Remove Advertising Set (0x08|0x003c) plen 1 #11 [hci0] 156.991603 Handle: 1 > HCI Event: Command Complete (0x0e) plen 4 #12 [hci0] 156.993961 LE Remove Advertising Set (0x08|0x003c) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 2 #13 [hci0] 156.993997 Extended advertising: Disabled (0x00) Number of sets: Disable all sets (0x00) > HCI Event: Command Complete (0x0e) plen 4 #14 [hci0] 156.995898 LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1 Status: Success (0x00) @ MGMT Event: Command Complete (0x0001) plen 4 {0x0001} [hci0] 156.995917 Remove Advertising (0x003f) plen 1 Status: Success (0x00) Instance: 1 ======================DBUS============================== ============================================================ user@debian:~$ sudo dbus-monitor --system "sender='org.bluez'" signal time=1714311281.353245 sender=org.freedesktop.DBus -> destination=:1.115 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.115" signal time=1714311281.353274 sender=org.freedesktop.DBus -> destination=:1.115 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.115" method return time=1714311418.817488 sender=:1.106 -> destination=:1.116 serial=128 reply_serial=6 array [ dict entry( object path "/org/bluez" array [ dict entry( string "org.freedesktop.DBus.Introspectable" array [ ] ) dict entry( string "org.bluez.AgentManager1" array [ ] ) dict entry( string "org.bluez.ProfileManager1" array [ ] ) ] ) dict entry( object path "/org/bluez/hci0" array [ dict entry( string "org.freedesktop.DBus.Introspectable" array [ ] ) dict entry( string "org.bluez.Adapter1" array [ dict entry( string "Address" variant string "C0:07:E8:5A:62:64" ) dict entry( string "AddressType" variant string "public" ) dict entry( string "Name" variant string "debian" ) dict entry( string "Alias" variant string "debian" ) dict entry( string "Class" variant uint32 0 ) dict entry( string "Powered" variant boolean true ) dict entry( string "PowerState" variant string "on" ) dict entry( string "Discoverable" variant boolean false ) dict entry( string "DiscoverableTimeout" variant uint32 180 ) dict entry( string "Pairable" variant boolean true ) dict entry( string "PairableTimeout" variant uint32 0 ) dict entry( string "Discovering" variant boolean false ) dict entry( string "UUIDs" variant array [ string "0000110e-0000-1000-8000-00805f9b34fb" string "00001200-0000-1000-8000-00805f9b34fb" string "00001112-0000-1000-8000-00805f9b34fb" string "00001108-0000-1000-8000-00805f9b34fb" string "0000110c-0000-1000-8000-00805f9b34fb" string "00001800-0000-1000-8000-00805f9b34fb" string "0000184f-0000-1000-8000-00805f9b34fb" string "00001801-0000-1000-8000-00805f9b34fb" string "00001844-0000-1000-8000-00805f9b34fb" string "0000180a-0000-1000-8000-00805f9b34fb" string "00001845-0000-1000-8000-00805f9b34fb" string "0000184d-0000-1000-8000-00805f9b34fb" string "00001843-0000-1000-8000-00805f9b34fb" ] ) dict entry( string "Modalias" variant string "usb:v1D6Bp0246d054A" ) dict entry( string "Roles" variant array [ string "central" string "peripheral" ] ) dict entry( string "Manufacturer" variant uint16 1434 ) dict entry( string "Version" variant byte 12 ) ] ) dict entry( string "org.freedesktop.DBus.Properties" array [ ] ) dict entry( string "org.bluez.BatteryProviderManager1" array [ ] ) dict entry( string "org.bluez.GattManager1" array [ ] ) dict entry( string "org.bluez.AdvertisementMonitorManager1" array [ dict entry( string "SupportedMonitorTypes" variant array [ string "or_patterns" ] ) dict entry( string "SupportedFeatures" variant array [ ] ) ] ) dict entry( string "org.bluez.Media1" array [ dict entry( string "SupportedUUIDs" variant array [ ] ) ] ) dict entry( string "org.bluez.NetworkServer1" array [ ] ) dict entry( string "org.bluez.LEAdvertisingManager1" array [ dict entry( string "ActiveInstances" variant byte 0 ) dict entry( string "SupportedInstances" variant byte 6 ) dict entry( string "SupportedIncludes" variant array [ string "tx-power" string "appearance" string "local-name" ] ) dict entry( string "SupportedSecondaryChannels" variant array [ string "1M" string "2M" string "Coded" ] ) dict entry( string "SupportedFeatures" variant array [ string "CanSetTxPower" string "HardwareOffload" ] ) dict entry( string "SupportedCapabilities" variant array [ dict entry( string "MaxAdvLen" variant byte 31 ) dict entry( string "MaxScnRspLen" variant byte 31 ) ] ) ] ) ] ) ] method return time=1714311418.819749 sender=:1.106 -> destination=:1.116 serial=129 reply_serial=7 variant string "C0:07:E8:5A:62:64" method return time=1714311418.820568 sender=:1.106 -> destination=:1.116 serial=130 reply_serial=8 method return time=1714311418.821526 sender=:1.106 -> destination=:1.116 serial=131 reply_serial=9 variant string "C0:07:E8:5A:62:64" method return time=1714311418.822884 sender=:1.106 -> destination=:1.116 serial=132 reply_serial=10 variant string "public" method return time=1714311418.824792 sender=:1.106 -> destination=:1.116 serial=133 reply_serial=11 variant string "debian" method return time=1714311418.826722 sender=:1.106 -> destination=:1.116 serial=134 reply_serial=12 variant string "debian" method return time=1714311418.829586 sender=:1.106 -> destination=:1.116 serial=135 reply_serial=13 variant string "usb:v1D6Bp0246d054A" method return time=1714311418.832888 sender=:1.106 -> destination=:1.116 serial=136 reply_serial=14 variant boolean true method call time=1714311418.840218 sender=:1.106 -> destination=org.freedesktop.DBus serial=137 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0=':1.116'" method call time=1714311418.840244 sender=:1.106 -> destination=org.freedesktop.DBus serial=138 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner string ":1.116" method call time=1714311418.840252 sender=:1.106 -> destination=org.freedesktop.DBus serial=139 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender=':1.116',path='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesAdded'" method call time=1714311418.840722 sender=:1.106 -> destination=org.freedesktop.DBus serial=140 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender=':1.116',path='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesRemoved'" method call time=1714311418.841140 sender=:1.106 -> destination=org.freedesktop.DBus serial=141 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender=':1.116',path_namespace='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12'" method call time=1714311418.841433 sender=:1.106 -> destination=org.freedesktop.DBus serial=142 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender=':1.116',path='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='org.bluez.LEAdvertisement1'" method call time=1714311418.842087 sender=:1.106 -> destination=org.freedesktop.DBus serial=143 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName string ":1.116" uint32 0 method call time=1714311418.842484 sender=:1.106 -> destination=:1.116 serial=144 path=/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12; interface=org.freedesktop.DBus.ObjectManager; member=GetManagedObjects method call time=1714311418.843584 sender=:1.106 -> destination=:1.116 serial=145 path=/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12; interface=org.freedesktop.DBus.Properties; member=GetAll string "org.bluez.LEAdvertisement1" signal time=1714311418.854776 sender=:1.106 -> destination=(null destination) serial=146 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged string "org.bluez.LEAdvertisingManager1" array [ dict entry( string "SupportedInstances" variant byte 5 ) dict entry( string "ActiveInstances" variant byte 1 ) ] array [ ] method return time=1714311418.855699 sender=:1.106 -> destination=:1.116 serial=147 reply_serial=15 signal time=1714311431.767426 sender=:1.106 -> destination=(null destination) serial=148 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged string "org.bluez.LEAdvertisingManager1" array [ dict entry( string "SupportedInstances" variant byte 6 ) dict entry( string "ActiveInstances" variant byte 0 ) ] array [ ] method return time=1714311431.767486 sender=:1.106 -> destination=:1.116 serial=149 reply_serial=18 method call time=1714311431.767493 sender=:1.106 -> destination=org.freedesktop.DBus serial=150 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender=':1.116',path_namespace='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12'" method call time=1714311431.767501 sender=:1.106 -> destination=org.freedesktop.DBus serial=151 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender=':1.116',path='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='org.bluez.LEAdvertisement1'" method call time=1714311431.768492 sender=:1.106 -> destination=org.freedesktop.DBus serial=152 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0=':1.116'" method call time=1714311431.769620 sender=:1.106 -> destination=org.freedesktop.DBus serial=153 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender=':1.116',path='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesAdded'" method call time=1714311431.769947 sender=:1.106 -> destination=org.freedesktop.DBus serial=154 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender=':1.116',path='/org/bluez/bluer/advertising/b0191643d3f3434eae417bfce7019e12',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesRemoved'"