Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Version of chipolo ? #8

Open
orlyapps opened this issue May 6, 2021 · 3 comments
Open

New Version of chipolo ? #8

orlyapps opened this issue May 6, 2021 · 3 comments

Comments

@orlyapps
Copy link

orlyapps commented May 6, 2021

I bought some new chipolos and try your library but i can't get it to work. Maybe they changed there API ?

Discover.:
{"id":"d8010005dd54","address":"d8:01:00:05:dd:54","addressType":"random","connectable":true,"advertisement":{"serviceData":[{"uuid":"fe33","data":{"type":"Buffer","data":[1,1,1,0,216,1,0,5,221,84]}}],"serviceUuids":["fe65","fe33"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"rssi":-49,"state":"disconnected"}

I change the SERVICE_UUID to fe33 !? And try discoverServicesAndCharacteristics.:
{"uuid":"2a00","name":"Device Name","type":"org.bluetooth.characteristic.gap.device_name","properties":["read"]},{"uuid":"2a01","name":"Appearance","type":"org.bluetooth.characteristic.gap.appearance","properties":["read"]},{"uuid":"2a02","name":"Peripheral Privacy Flag","type":"org.bluetooth.characteristic.gap.peripheral_privacy_flag","properties":["read","write"]},{"uuid":"2a04","name":"Peripheral Preferred Connection Parameters","type":"org.bluetooth.characteristic.gap.peripheral_preferred_connection_parameters","properties":["read"]},{"uuid":"2a05","name":"Service Changed","type":"org.bluetooth.characteristic.gatt.service_changed","properties":["indicate"]},{"uuid":"fff0","name":null,"type":null,"properties":["read","write","notify"]},{"uuid":"ffe0","name":null,"type":null,"properties":["read","write"]},{"uuid":"ffe1","name":null,"type":null,"properties":["read","write","notify"]},{"uuid":"ff00","name":null,"type":null,"properties":["read","write"]},{"uuid":"ff10","name":null,"type":null,"properties":["write","notify"]},{"uuid":"ff20","name":null,"type":null,"properties":["write","notify"]}

The UUIDs fff0 - fff8 no longer exists !? so i try the new one ff00 but without success.

Maybe you have an idea how to solve the problem ?

@htool
Copy link

htool commented Nov 27, 2021

Similar problem here. I was wondering if it's my setup or if something changed in the Chipolo's.

I also changed SERVICE_UUID to fe33 to get any response.

pi@lab:~/src/beacon $ MAC=d9:00:00:01:d8:06; for uuid in sudo gatttool -b $MAC -t random --characteristics|awk '{print $15}'; do echo -n "uuid: $uuid: "; sudo gatttool --sec-level=high -t random --char-read --uuid $uuid -b $MAC; done
uuid: 00002a00-0000-1000-8000-00805f9b34fb: handle: 0x0003 value: 43 68 69 70 6f 6c 6f
uuid: 00002a01-0000-1000-8000-00805f9b34fb: handle: 0x0005 value: 00 00
uuid: 00002a05-0000-1000-8000-00805f9b34fb: handle: 0x0008 value: 01 00 ff ff
uuid: 0000fff0-0000-1000-8000-00805f9b34fb: handle: 0x000c value: 04
uuid: 0000ffe0-0000-1000-8000-00805f9b34fb: handle: 0x000f value: b1 22 c1 fd
uuid: 0000ffe1-0000-1000-8000-00805f9b34fb: handle: 0x0011 value: 04

@htool
Copy link

htool commented Nov 27, 2021

pi@lab:/src/beacon $ sudo gatttool -t random -b d9:00:00:01:f9:14 --primary
attr handle = 0x0001, end grp handle = 0x0005 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle = 0x0006, end grp handle = 0x0009 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle = 0x000a, end grp handle = 0x0012 uuid: 0000fe65-0000-1000-8000-00805f9b34fb
pi@lab:
/src/beacon $ sudo gatttool -t random -b d9:00:00:01:f9:14 --characteristics
handle = 0x0002, char properties = 0x02, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0007, char properties = 0x22, char value handle = 0x0008, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x000b, char properties = 0x1a, char value handle = 0x000c, uuid = 0000fff0-0000-1000-8000-00805f9b34fb
handle = 0x000e, char properties = 0x0a, char value handle = 0x000f, uuid = 0000ffe0-0000-1000-8000-00805f9b34fb
handle = 0x0010, char properties = 0x1a, char value handle = 0x0011, uuid = 0000ffe1-0000-1000-8000-00805f9b34fb

@shrx
Copy link

shrx commented Dec 26, 2023

Similar problem here. I was wondering if it's my setup or if something changed in the Chipolo's.

I also changed SERVICE_UUID to fe33 to get any response.

pi@lab:~/src/beacon $ MAC=d9:00:00:01:d8:06; for uuid in sudo gatttool -b $MAC -t random --characteristics|awk '{print $15}'; do echo -n "uuid: $uuid: "; sudo gatttool --sec-level=high -t random --char-read --uuid $uuid -b $MAC; done uuid: 00002a00-0000-1000-8000-00805f9b34fb: handle: 0x0003 value: 43 68 69 70 6f 6c 6f uuid: 00002a01-0000-1000-8000-00805f9b34fb: handle: 0x0005 value: 00 00 uuid: 00002a05-0000-1000-8000-00805f9b34fb: handle: 0x0008 value: 01 00 ff ff uuid: 0000fff0-0000-1000-8000-00805f9b34fb: handle: 0x000c value: 04 uuid: 0000ffe0-0000-1000-8000-00805f9b34fb: handle: 0x000f value: b1 22 c1 fd uuid: 0000ffe1-0000-1000-8000-00805f9b34fb: handle: 0x0011 value: 04

I get a similar response:
uuid: 00002a00-0000-1000-8000-00805f9b34fb: handle: 0x0003 value: 43 68 69 70 6f 6c 6f # this is "Chipolo" in hex
uuid: 00002a01-0000-1000-8000-00805f9b34fb: handle: 0x0005 value: 00 00
uuid: 00002a05-0000-1000-8000-00805f9b34fb: handle: 0x0008 value: 01 00 ff ff
uuid: 0000fff0-0000-1000-8000-00805f9b34fb: handle: 0x000c value: 04
uuid: 0000ffe0-0000-1000-8000-00805f9b34fb: handle: 0x000f value: b8 b9 92 31 # this is different from your response. an authentication key?
uuid: 0000ffe1-0000-1000-8000-00805f9b34fb: handle: 0x0011 value: 04

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

No branches or pull requests

3 participants