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

Testing bluepy #22

Closed
PrzemoF opened this issue Dec 24, 2014 · 1 comment
Closed

Testing bluepy #22

PrzemoF opened this issue Dec 24, 2014 · 1 comment

Comments

@PrzemoF
Copy link
Contributor

PrzemoF commented Dec 24, 2014

I'm quite sure it's not an issue with bluepy, but I need confirmation. That's a discovery session with a heart rate sensor:
pi@occberry ~/bluepy/bluepy $ sudo hciconfig hci0 up
pi@occberry ~/bluez/bluez-5.26 $ sudo hcitool lescan
LE Scan ...
90:59:AF:16:93:12 (unknown)
90:59:AF:16:93:12 JipulseHrRateBT4.0
[..]
pi@occberry ~/bluepy/bluepy $ sudo python btle.py 90:59:AF:16:93:12
Connecting to: 90:59:AF:16:93:12
Service <uuid=Generic Attribute handleStart=12 handleEnd=15> :
Characteristic <2a05>
-> Error from Bluetooth stack (comerr)
Service <uuid=Generic Access handleStart=1 handleEnd=11> :
Characteristic
-> ''
Characteristic <2a01>
-> '\x00\x00'
Characteristic <2a02>
-> '\x00'
Characteristic <2a03>
-> '\x00\x00\x00\x00\x00\x00'
Characteristic <2a04>
-> 'P\x00\xa0\x00\x00\x00\xe8\x03'
Service <uuid=ffe0 handleStart=52 handleEnd=65535> :
Characteristic
-> Error from Bluetooth stack (comerr)
Service <uuid=fff0 handleStart=35 handleEnd=51> :
Characteristic
-> '\x01'
Characteristic
-> '\x02'
Characteristic
-> Error from Bluetooth stack (comerr)
Characteristic
-> Error from Bluetooth stack (comerr)
Characteristic
-> Error from Bluetooth stack (comerr)
Service <uuid=Device Information handleStart=16 handleEnd=34> :
Characteristic <2a23>
-> '\x12\x93\x16\x00\x00\xafY\x90'
Characteristic
-> 'Model Number\x00'
Characteristic
-> 'Serial Number\x00'
Characteristic
-> 'Firmware Revision\x00'
Characteristic
-> 'Hardware Revision\x00'
Characteristic
-> 'Software Revision\x00'
Characteristic
-> 'Manufacturer Name\x00'
Characteristic <2a2a>
-> '\xfe\x00experimental'
Characteristic <2a50>
-> '\x01\r\x00\x00\x00\x10\x01'

Does it look OK conparing to other BLE devices?
That sensor doesn't work properly with android, so I guess that the vendor at least partially ignored BLE specification. P.S. Running the bluepy-helper doesn't make any difference.

@IanHarvey
Copy link
Owner

Hi Przemo,

The 'comerr' errors are what I'd expect if you're calling read() on characteristics which don't allow reading. It looks like this got fixed in pull request #32 (specifically, commit 721dc48), so I'll close this issue.

Cheers
Ian

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

2 participants