Page 1 of 1

Texas Instrument SensorTag (BLE 4.0)

Posted: Friday 30 January 2015 9:13
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 4551 times
[/img]

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Sunday 08 February 2015 23:29
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

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Thursday 12 February 2015 8:58
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

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Monday 16 February 2015 20:51
by whiteduck
Thanks a lot Roby - I will check out the WiKi

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Sunday 06 September 2015 12:57
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 ?

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Thursday 07 January 2016 17:33
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

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Saturday 09 January 2016 17:36
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 ?

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Wednesday 23 March 2016 7:45
by huczas
Hi, I have new version TI SensorTag 2, is there option to modify code to make it work also?

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Tuesday 29 March 2016 13:04
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

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Thursday 05 May 2016 2:36
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.

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Friday 06 May 2016 0:17
by Derik
Is there a option like geofence with this tag?

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Wednesday 11 May 2016 17:05
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.

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Thursday 15 September 2016 12:07
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.

Re: Texas Instrument SensorTag (BLE 4.0)

Posted: Saturday 19 November 2016 22:01
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.