Texas Instrument SensorTag (BLE 4.0)

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

Post Reply
robybob
Posts: 6
Joined: Sunday 19 October 2014 7:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Texas Instrument SensorTag (BLE 4.0)

Post by robybob »

Hi all,

I have integarted SensorTag of TI with a simple LUA script. You may find the description in wiki.

Actually, only some of all sensors have been integrated, but I would collect your suggestions about the more complex sensors as :
- gyroscope
- accellerometer
- compass

I am avaialable to discuss it ..
BR
Robybob

[img]
sensortag.jpg
sensortag.jpg (6.34 KiB) Viewed 4351 times
[/img]
whiteduck
Posts: 44
Joined: Tuesday 25 March 2014 23:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Berkshire, UK
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by whiteduck »

Very cool - I was considering one of these devices - can you please share more details of what you have done and which sensors are working?

Thanks
Ian
Domoticz on Ubuntu 16.04 LTS VM
RFXCom USB transceiver
Aeon Labs V2 USB (Zwave)
Various HomeEasy, Oregon devices and sensors. Now using Z-Wave Fibaro FGMS-001, TKB TZ88Es
TP-Link IP310 Cameras
robybob
Posts: 6
Joined: Sunday 19 October 2014 7:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by robybob »

Sure Ian (Whiteduck) !
Currently I have written a small guide in wiki

Code: Select all

http://www.domoticz.com/wiki/Lua_-_TI_SensorTag

but I would be pleased to discuss with you and improve the integration.
Currently I have used LUA and BLUEZ to integrate in domoticz, by interoperate with OS commands. SensorTag has 6 groups of sensors:
- target temperature IR
- humidity
- pressure (barometer)
- gyroscope
- accelerometer
- magnetometer (compass)

only the first 3 group of sensors have been taken into considerartion right now for my interest. All of the three groups of sensor considered, integrate a ambience temperature sensor. So in summary you have: 3 indipendend ambience temperature sensors, 1 target IR tesmperature sensos, 1 humidity sensor and 1 barometer sensor. And I have been using all of them even if 3 temperature sensors are surely redundant.
Currently I have been using a couple of them (but I am working to integrate up to 5, contemporary working) and I can share my pros and contrs.
Pros: small, cheap and flexible, bluetooth BLE 4.0 (they can be used as beacon also), many integrated usefull sensors, good letterature (calculation algos are shared and well known), possibility to change FW and HW layout for further integration, coin battery,....
Contrs: battery life (my implementation don't preserve the battery - after a couple of months, battery shall be changed), sporadic disconnection (cause unknown), very small radio coverage area (10m or less if you have wall in between), sometimes data are reported as nil (specially on the IR temperature sensor), FW shall be upgraded to 1.5 (not documented and no source code available).

I am avaialble to discuss further ..
BR
Roby
whiteduck
Posts: 44
Joined: Tuesday 25 March 2014 23:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Berkshire, UK
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by whiteduck »

Thanks a lot Roby - I will check out the WiKi
Domoticz on Ubuntu 16.04 LTS VM
RFXCom USB transceiver
Aeon Labs V2 USB (Zwave)
Various HomeEasy, Oregon devices and sensors. Now using Z-Wave Fibaro FGMS-001, TKB TZ88Es
TP-Link IP310 Cameras
WLCD
Posts: 2
Joined: Sunday 06 September 2015 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by WLCD »

Hello Roby,

I can't get the lua script to work, here's an extract of domoticz logs :
Error: EventSystem: /home/pi/domoticz/scripts/lua/script_time_sensortag.lua:59: attempt to concatenate global 'h0' (a nil value)
I have a really basic understanding of LUA, but doesn't it means that the variableh0 is empty ?

that's odd since it is initialised on the previous line...

Am I doing something wrong ?
robybob
Posts: 6
Joined: Sunday 19 October 2014 7:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by robybob »

Hello WLCD,

sorry for having replied so late, but I had some engagements that prevented me to visit the domoticz site. Your error normally occurs when virtual devices are not correctly addresed by name or by ID. For a better investigation your should post your code (what you have really implemented and virtual device names and Idx) then I should be able to give help in making this device working.
Please pay attention that TI have released a brand new version of the sensor and unfortunately calulation algos have completely changed.

BR
Robybob
WLCD
Posts: 2
Joined: Sunday 06 September 2015 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by WLCD »

Hello Robybob,

No worries, I just postponed my testing, as a matter of fact I used the exact same code as provided here, I only edited the MAC address to match my sensor tag. However my sensors are indeed the latest version, so does that mean that I need to modify the script for it to work ?
huczas
Posts: 1
Joined: Wednesday 23 March 2016 7:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by huczas »

Hi, I have new version TI SensorTag 2, is there option to modify code to make it work also?
bonisoli
Posts: 1
Joined: Tuesday 29 March 2016 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by bonisoli »

Hi all,

I'm trying to use Domoticz with the CC2541 sensor solution but I did not understand what should I do with the code. Should I create a LUA script if you could provide me with a sample script with the code listed in WIKI pages.

Can you help me?

Thanks in advance.

Fabio
korniza
Posts: 157
Joined: Thursday 27 August 2015 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6028
Location: Greece
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by korniza »

Hi guys,
I'm waiting also to get my sensortag from TI. I was wondering if had connected successful sensortag to domoticz. I'm going to monitor my refrigerator as I have people in house that may not close the door correct.
>>>> Google Home <<<<<
SBC: Odroid XU4 * Raspberry Pi2 * banana Pi v1
Peripherals: rfxtrx433E, aeon z-stick gen5, bluetooth dongles
Extended Software packages: Xeoma (video NVR), FHEM (extra home automation software)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by Derik »

Is there a option like geofence with this tag?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
korniza
Posts: 157
Joined: Thursday 27 August 2015 18:12
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6028
Location: Greece
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by korniza »

Well, guys. My order arrived and I face a problem with SensorTag. TI now has SensorTag 2 which goes to sleep if no connection is established in 2 minuted. CC2650 has so many features but the problem with sleep mode is not I was looking for.
Does anyone developed any firmware to disable sleep mode? I look to monitor my refrigerator.
>>>> Google Home <<<<<
SBC: Odroid XU4 * Raspberry Pi2 * banana Pi v1
Peripherals: rfxtrx433E, aeon z-stick gen5, bluetooth dongles
Extended Software packages: Xeoma (video NVR), FHEM (extra home automation software)
User avatar
Bartb
Posts: 17
Joined: Monday 29 August 2016 22:19
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by Bartb »

Hi,

Any further developments on this?
Is it indeed confirmed that you cannot wake-up the device using Domoticz / BLE when in sleep mode?

Would be a pitty, as the device is outstanding it the amount of sensors it has on board and the price is not bad either.

Looking forward to any feedback.
jackderuiter
Posts: 16
Joined: Thursday 27 October 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Texas Instrument SensorTag (BLE 4.0)

Post by jackderuiter »

maybe you can take a look at this. You will need to get some tooling up and running to create some custom firmware. If you have iOS you can probably update over the air, otherwise you will need a devpack that you can hookup to sensortag and both usb to get the firmware on it. Do have a sensortag, but old pi without BLE and no devpack. Maybe will try in the future. If anyone has success with this, please post your update here.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest