bleak-dash icon indicating copy to clipboard operation
bleak-dash copied to clipboard

Device name is not enough to identify, e.g., Dash

Open 2BitSalute opened this issue 1 year ago • 0 comments

We must have renamed ours years ago. It's showing up as "Kitty". I changed discover_and_connect to talk to "Kitty".

Probably there needs to be a way to select which device to connect to, if it's got a different name or if there are multiple.

I haven't figured out how to better identify Dash, Dot, or Cue. If you didn't care which robot it is, you could just use the service UUID af237777-879d-6186-1f49-deca0e85d9c1 as the identifier. If you google that, Dash and Dot come up in results.

Side note: the manufacturer ID, if I'm reading this correctly, corresponds to Walt Disney!

INFO:root:Discovery attempt 1 of 3
INFO:root:Number of discovered devices: 18
INFO:root:Found Dash at: EC2ED95D-37A8-5304-798B-7B6572C7B135
INFO:root:Device name: Kitty
INFO:root:Device local name: Kitty
INFO:root:Service UUIDs:
INFO:root:af237777-879d-6186-1f49-deca0e85d9c1
INFO:root:Manufacturer data '387' - 'b'\x01\x02\x03\x00\x07w\n\x00\x00\x00\x00\x00\x00\x00#\x00\x00\x00\x00\x00\x00\x00\x00\x00''
INFO:root:Platform data; (<CBPeripheral: 0x600003894340, identifier = EC2ED95D-37A8-5304-798B-7B6572C7B135, name = Kitty, mtu = 0, state = disconnected>, {
    kCBAdvDataIsConnectable = 1;
    kCBAdvDataLocalName = Kitty;
    kCBAdvDataManufacturerData = {length = 26, bytes = 0x83010102 03000777 0a000000 00000000 ... 00000000 00000000 };
    kCBAdvDataRxPrimaryPHY = 1;
    kCBAdvDataRxSecondaryPHY = 0;
    kCBAdvDataServiceUUIDs =     (
        "AF237777-879D-6186-1F49-DECA0E85D9C1"
    );
    kCBAdvDataTimestamp = "749170270.716451";
}, -62)
Connected to EC2ED95D-37A8-5304-798B-7B6572C7B135

2BitSalute avatar Sep 27 '24 23:09 2BitSalute