Difference between revisions of "ADS1115 + RFduino"

From TAMI
Jump to navigationJump to search
Line 38: Line 38:
 
** http://joost.damad.be/2013/08/experiments-with-bluetooth-low-energy.html
 
** http://joost.damad.be/2013/08/experiments-with-bluetooth-low-energy.html
 
** http://stackoverflow.com/questions/17835469/using-bluetooth-low-energy-in-linux-command-line
 
** http://stackoverflow.com/questions/17835469/using-bluetooth-low-energy-in-linux-command-line
 +
 +
[E5:36:78:90:4D:E4][LE]> char-desc
 +
handle: 0x0001, uuid: 2800
 +
handle: 0x0002, uuid: 2803
 +
handle: 0x0003, uuid: 2a00
 +
handle: 0x0004, uuid: 2803
 +
handle: 0x0005, uuid: 2a01
 +
handle: 0x0006, uuid: 2803
 +
handle: 0x0007, uuid: 2a04
 +
handle: 0x0008, uuid: 2800
 +
handle: 0x0009, uuid: 2803
 +
handle: 0x000a, uuid: 2a05
 +
handle: 0x000b, uuid: 2902
 +
handle: 0x000c, uuid: 2800
 +
handle: 0x000d, uuid: 2803
 +
handle: 0x000e, uuid: 2221
 +
handle: 0x000f, uuid: 2902
 +
handle: 0x0010, uuid: 2803
 +
handle: 0x0011, uuid: 2222
 +
handle: 0x0012, uuid: 2803
 +
handle: 0x0013, uuid: 2223
 +
Discover descriptors finished: No attribute found within the given range
 +
[E5:36:78:90:4D:E4][LE]> sec-level
 +
sec-level: low
 +
[E5:36:78:90:4D:E4][LE]> mtu
 +
Usage: mtu <value>
 +
[E5:36:78:90:4D:E4][LE]> characteristics
 +
handle: 0x0002, char properties: 0x0a, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
 +
handle: 0x0004, char properties: 0x02, char value handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
 +
handle: 0x0006, char properties: 0x02, char value handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
 +
handle: 0x0009, char properties: 0x20, char value handle: 0x000a, uuid: 00002a05-0000-1000-8000-00805f9b34fb
 +
handle: 0x000d, char properties: 0x12, char value handle: 0x000e, uuid: 00002221-0000-1000-8000-00805f9b34fb
 +
handle: 0x0010, char properties: 0x0c, char value handle: 0x0011, uuid: 00002222-0000-1000-8000-00805f9b34fb
 +
handle: 0x0012, char properties: 0x0c, char value handle: 0x0013, uuid: 00002223-0000-1000-8000-00805f9b34fb
 +
[E5:36:78:90:4D:E4][LE]> char-write-req 1 1
 +
Error: Invalid value
 +
[E5:36:78:90:4D:E4][LE]> char-write-req 2 1
 +
Error: Invalid value
 +
[E5:36:78:90:4D:E4][LE]> char-write-req 3 1

Revision as of 18:37, 26 January 2014

We are using the ADS1115 with an RFDuino (github)

Using Adafruit_ADS1X15 and trying to fix it's quirks here.

TODO (just a snapshot)

  • do and document setup of RFDuino on fedora
  • why does reading single ended results depend on order for RFduino and not for Uno?
  • try with Uno
  • use the RDY bit (writing special values to threshold hi and lo)
  • use two with different addresses on the same I2C bus
  • read the Wire library (I2C) and figure out difference between two RFduino and Uno implementations

Python serial for windows

BLE on linux

GATT ; Just saying

yum install d-feet (bluez uses dbus)

Some more links

google "bluetooth GATT"

RFduino and Linux

[E5:36:78:90:4D:E4][LE]> char-desc
handle: 0x0001, uuid: 2800
handle: 0x0002, uuid: 2803
handle: 0x0003, uuid: 2a00
handle: 0x0004, uuid: 2803
handle: 0x0005, uuid: 2a01
handle: 0x0006, uuid: 2803
handle: 0x0007, uuid: 2a04
handle: 0x0008, uuid: 2800
handle: 0x0009, uuid: 2803
handle: 0x000a, uuid: 2a05
handle: 0x000b, uuid: 2902
handle: 0x000c, uuid: 2800
handle: 0x000d, uuid: 2803
handle: 0x000e, uuid: 2221
handle: 0x000f, uuid: 2902
handle: 0x0010, uuid: 2803
handle: 0x0011, uuid: 2222
handle: 0x0012, uuid: 2803
handle: 0x0013, uuid: 2223
Discover descriptors finished: No attribute found within the given range
[E5:36:78:90:4D:E4][LE]> sec-level
sec-level: low
[E5:36:78:90:4D:E4][LE]> mtu
Usage: mtu <value>
[E5:36:78:90:4D:E4][LE]> characteristics
handle: 0x0002, char properties: 0x0a, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, char properties: 0x02, char value handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, char properties: 0x02, char value handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0009, char properties: 0x20, char value handle: 0x000a, uuid: 00002a05-0000-1000-8000-00805f9b34fb
handle: 0x000d, char properties: 0x12, char value handle: 0x000e, uuid: 00002221-0000-1000-8000-00805f9b34fb
handle: 0x0010, char properties: 0x0c, char value handle: 0x0011, uuid: 00002222-0000-1000-8000-00805f9b34fb
handle: 0x0012, char properties: 0x0c, char value handle: 0x0013, uuid: 00002223-0000-1000-8000-00805f9b34fb
[E5:36:78:90:4D:E4][LE]> char-write-req 1 1
Error: Invalid value
[E5:36:78:90:4D:E4][LE]> char-write-req 2 1
Error: Invalid value
[E5:36:78:90:4D:E4][LE]> char-write-req 3 1