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

Support for Sensortag 2 #36

Closed
vielmetti opened this issue Mar 23, 2015 · 5 comments
Closed

Support for Sensortag 2 #36

vielmetti opened this issue Mar 23, 2015 · 5 comments

Comments

@vielmetti
Copy link

TI has a new Sensortag 2, about the same shape and size as the original Sensortag but with a couple more sensors, a new processor, and better battery life.

When I try to connect to it with sensortag.py I get this:

emv@rubus ~/bluepy/bluepy $ python ./sensortag.py --all 68:C9:0B:06:C9:08
Connecting to 68:C9:0B:06:C9:08
Traceback (most recent call last):
  File "./sensortag.py", line 255, in <module>
    tag.barometer.enable()
  File "./sensortag.py", line 128, in enable
    self.calChr = self.service.getCharacteristics(self.calUUID) [0]
IndexError: list index out of range

There's been some porting work to support the Sensortag 2 from node.js, and there's UUIDs and sample code etc pointed to from here:

sandeepmistry/node-sensortag#34

which should be a useful stop to sort through what has changed.

@vielmetti
Copy link
Author

As a followup:

node-sensortag now has a full set of Sensortag 2 support, which means I'm super-tempted to port that work to bluepy.

@vielmetti
Copy link
Author

Just an update - if I pick out some of the sensors on a Sensortag 2 they do work, e.g. humidity:

% python ./sensortag.py -H -t 60 68:C9:0B:06:C9:08
Connecting to 68:C9:0B:06:C9:08
('Humidity: ', (23.957094726562495, 66.2503662109375))
('Humidity: ', (24.01072021484375, 66.6165771484375))

@IanHarvey
Copy link
Owner

This is now done - sensortag.py has CC2650 support in it (it will auto-detect between the 2650 and the original V1 tag).

Cheers
Ian

@vielmetti
Copy link
Author

Thanks @IanHarvey !

@booherbg
Copy link

booherbg commented Mar 7, 2016

Hi everyone -- quick question. I can't find reference to the voltage sensor in the bluepy project for the new sensortag. Is that supported?

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