Texas Instrument SensorTag (BLE 4.0)
Moderator: leecollings
-
- Posts: 6
- Joined: Sunday 19 October 2014 7:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Texas Instrument SensorTag (BLE 4.0)
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] [/img]
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] [/img]
-
- 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)
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
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
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
-
- Posts: 6
- Joined: Sunday 19 October 2014 7:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
Sure Ian (Whiteduck) !
Currently I have written a small guide in wiki
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
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
-
- 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)
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
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
-
- Posts: 2
- Joined: Sunday 06 September 2015 12:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
Hello Roby,
I can't get the lua script to work, here's an extract of domoticz logs :
that's odd since it is initialised on the previous line...
Am I doing something wrong ?
I can't get the lua script to work, here's an extract of domoticz logs :
I have a really basic understanding of LUA, but doesn't it means that the variableh0 is empty ?Error: EventSystem: /home/pi/domoticz/scripts/lua/script_time_sensortag.lua:59: attempt to concatenate global 'h0' (a nil value)
that's odd since it is initialised on the previous line...
Am I doing something wrong ?
-
- Posts: 6
- Joined: Sunday 19 October 2014 7:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
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
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
-
- Posts: 2
- Joined: Sunday 06 September 2015 12:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
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 ?
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 ?
-
- Posts: 1
- Joined: Wednesday 23 March 2016 7:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
Hi, I have new version TI SensorTag 2, is there option to modify code to make it work also?
-
- Posts: 1
- Joined: Tuesday 29 March 2016 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
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
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
-
- 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)
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.
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)
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)
-
- 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)
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
-
- 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)
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.
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)
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)
- 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)
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.
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.
-
- Posts: 16
- Joined: Thursday 27 October 2016 22:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Texas Instrument SensorTag (BLE 4.0)
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.
Who is online
Users browsing this forum: No registered users and 0 guests