These are chat archives for sandeepmistry/node-bleacon

29th
Mar 2015
Roo Williams
@roowilliams
Mar 29 2015 10:46
on -> discover: {"uuid":"e92825042c7b","advertisement":{"manufacturerData":[93,1,1,3,152,41,14,247,43,207,249,4,129,93,193,53,252,1,190,4,2,86],"serviceData":[],"serviceUuids":["180f"]},"rssi":-71,"state":"disconnected"}
any code you want me to run on the packet?
Roo Williams
@roowilliams
Mar 29 2015 11:05
they seem to not emit until they're moved
Roo Williams
@roowilliams
Mar 29 2015 11:36
util.inspect(peripheral):
{ _noble:
{ state: 'poweredOn',
_bindings:
{ _addresses: [Object],
_addresseTypes: [Object],
_pendingConnection: false,
_connectionQueue: [],
_hciBle: [Object],
_l2capBle: {},
init: [Function],
onStateChange: [Function],
startScanning: [Function],
onScanStart: [Function],
stopScanning: [Function],
onScanStop: [Function],
onDiscover: [Function],
connect: [Function],
onConnect: [Function],
disconnect: [Function],
onDisconnect: [Function],
exchangeMtu: [Function],
onMtu: [Function],
updateRssi: [Function],
onRssi: [Function],
discoverServices: [Function],
onServicesDiscovered: [Function],
discoverIncludedServices: [Function],
onIncludedServicesDiscovered: [Function],
discoverCharacteristics: [Function],
onCharacteristicsDiscovered: [Function],
read: [Function],
onRead: [Function],
write: [Function],
onWrite: [Function],
broadcast: [Function],
onBroadcast: [Function],
notify: [Function],
onNotify: [Function],
onNotification: [Function],
discoverDescriptors: [Function],
onDescriptorsDiscovered: [Function],
readValue: [Function],
onValueRead: [Function],
writeValue: [Function],
onValueWrite: [Function],
readHandle: [Function],
onHandleRead: [Function],
writeHandle: [Function],
onHandleWrite: [Function],
onHandleNotify: [Function],
_events: [Object],
_scanServiceUuids: [] },
_peripherals: { e97435f7667b: [Object], e9239723fa7b: [Circular] },
_services: { e97435f7667b: {}, e9239723fa7b: {} },
_characteristics: { e97435f7667b: {}, e9239723fa7b: {} },
_descriptors: { e97435f7667b: {}, e9239723fa7b: {} },
_events: { stateChange: [Function], discover: [Function] },
_discoveredPeripheralUUids: [ 'e97435f7667b', 'e9239723fa7b' ],
_allowDuplicates: true },
uuid: 'e9239723fa7b',
advertisement:
{ localName: undefined,
txPowerLevel: undefined,
manufacturerData: <Buffer 5d 01 01 03 98 29 0e f7 2b cf f9 04 01 5e f1 ab fe 00 bc 44 00 76>,
serviceData: [],
serviceUuids: [ '180f' ] },
Sandeep Mistry
@sandeepmistry
Mar 29 2015 13:00
@roowilliams thanks, that's interesting
it would be good to compare the manufacturer data of various beacons, and see how it maps to what the SDK reports
Roo Williams
@roowilliams
Mar 29 2015 13:37
i haven't looked too closely but i think the manufacturerData changes
so i'm guessing the movement/temp data is in there
Roo Williams
@roowilliams
Mar 29 2015 13:47
i brought two home to play with this weekend and one seems more responsive than the other too
here's the manufacturerData from one sticker as i move it around
[[14:49:21.743]] [LOG] 5d01010398290ef72bcff904016ba1ebc717d5004256
[[14:49:21.746]] [LOG] 5d01010398290ef72bcff904016ba1ebc717d5004266
[[14:49:23.396]] [LOG] 5d01010398290ef72bcff904016ba1eb1928cd014256
[[14:49:26.000]] [LOG] 5d01010398290ef72bcff904016ba1eb340382044256
[[14:49:28.615]] [LOG] 5d01010398290ef72bcff904016ba1ebc2e1a7074266
[[14:49:31.216]] [LOG] 5d01010398290ef72bcff904016da1eb05e4d2094266
[[14:49:34.137]] [LOG] 5d01010398290ef72bcff904016fa1abff06b6010066
[[14:49:34.140]] [LOG] 5d01010398290ef72bcff904016fa1abff06b6010076
[[14:49:35.663]] [LOG] 5d01010398290ef72bcff9040172a1ebe6f7bf000056
[[14:49:37.086]] [LOG] 5d01010398290ef72bcff9040172a1eb0d0abb010056
[[14:49:39.700]] [LOG] 5d01010398290ef72bcff9040172a1ebfdffb6040066
[[14:49:44.923]] [LOG] 5d01010398290ef72bcff9040176a1ebe702ba090056
[[14:49:46.232]] [LOG] 5d01010398290ef72bcff9048176c175f201bc0b0066
[[14:49:47.536]] [LOG] 5d01010398290ef72bcff9040178a1ebfd00bd0c0066
[[14:49:48.902]] [LOG] 5d01010398290ef72bcff9040179a1abfd00bd000d66
[[14:49:48.905]] [LOG] 5d01010398290ef72bcff9040179a1abfd00bd000d76
[[14:49:50.318]] [LOG] 5d01010398290ef72bcff9040179a1abff01bd010d66
[[14:49:52.927]] [LOG] 5d01010398290ef72bcff904017aa1abff01bd040d66
[[14:49:52.931]] [LOG] 5d01010398290ef72bcff904017aa1abff01bd040d76
[[14:49:58.150]] [LOG] 5d01010398290ef72bcff904017ba1abff01bd090d56
Roo Williams
@roowilliams
Mar 29 2015 13:54
they also seem to need to be really close to my laptop.. <1m
Sandeep Mistry
@sandeepmistry
Mar 29 2015 15:06
cool, so the last 9 bytes seem to change
what does the 2nd sticker report?
btw, what's your goal for the stickers?
Roo Williams
@roowilliams
Mar 29 2015 17:10
We did have something in mind that we wanted regular ibeacons for, it's just the stickers had a smaller form factor
not using any of the temp/accel functionality, just broadcasting presence of people
but i don't think they're going to be suitable, so now it's just curiosity, and creating brand experiences i guess
i work at a digital agency
Roo Williams
@roowilliams
Mar 29 2015 17:36
[[18:31:57.277]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:32:27.553]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.060]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.168]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.269]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.374]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.485]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.590]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:33:26.902]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:36:05.383]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:36:06.149]] [LOG] 5d0101263197816875876e0401000000000000000000
[[18:36:06.733]] [LOG] 5d0101263197816875876e0401000000000000000000
the second sticker
the first has an image of a trainer on it, the second has an image of a bike
probably relevant since the sdk docs talk about the names
Sandeep Mistry
@sandeepmistry
Mar 29 2015 18:55
we were hoping they would act as beacons as well, however read this afterwards: https://community.estimote.com/hc/en-us/articles/203323543-Introduction-to-Estimote-Stickers
Roo Williams
@roowilliams
Mar 29 2015 19:02
yeh...
i think there isn't a sustainable business model in just producing the actual hardware
so manufacturers are also trying to make sure people use their sdk and get involved further up the stack
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:03

so:

5d0101 03 98 29 0e f7 2b cf f9 0401 7ba1abff01bd090d56 (shoe)
5d0101 26 31 97 81 68 75 87 6e 0401 000000000000000000 (bike)

maps to:

sticker type (for example fridge, dog, computer etc.)
sticker ID (numerical value)
orientation in space
motion in X, Y, Z
temperature
broadcasting power (used to calculate proximity)
battery level
firmware version

Roo Williams
@roowilliams
Mar 29 2015 19:03
so creating custom packets and behaviours
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:03
agreed, there's already some manufacturers in China selling beacons for $1 each in volume
Roo Williams
@roowilliams
Mar 29 2015 19:03
wow!
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:04
minew was one company we briefly evaluated
Roo Williams
@roowilliams
Mar 29 2015 19:04
i've heard of them
Roo Williams
@roowilliams
Mar 29 2015 19:05
tiny too
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:05
we got a few with the plastic cover at the bottom, the quality is not bad
Roo Williams
@roowilliams
Mar 29 2015 19:10
we've not managed to sell in an ibeacon project to one of our clients yet
working on it
we're speaking to dot3 a lot, i gather being from canada you know those guys?
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:11
is that the same guy who runs? http://beekn.net
Roo Williams
@roowilliams
Mar 29 2015 19:11
yeh
doug
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:12
i read his blog posts occasionally, usually have mixed feelings
Roo Williams
@roowilliams
Mar 29 2015 19:13
i actually haven't checked the blog for a while
but i guess with any sort of cultural preditions
it's all subjective
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:21
agreed, it feels like he's getting sponsored to write a few posts as well
we ordered the Kontakt cloud beacons, but were disappointed the f/w wasn't fully fleshed out
on his post he gave the impression it was working as advertised
Roo Williams
@roowilliams
Mar 29 2015 19:22
he always recommended kontakt
i think they're using kontakt on their own projects too
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:23
their regular BLE beacons are pretty good, they even have a PDF of the GATT spec
Roo Williams
@roowilliams
Mar 29 2015 19:24
that doesn't mean much to me at this point :) hopefully after i've digested that book!
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:24
you'll be a pro in no time!
Roo Williams
@roowilliams
Mar 29 2015 19:25
fingers crossed..
i did a product design course
not computer science
there are a few fundamentals i still miss that make me get confused learning this stuff :)
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:27
you'll be fine, one of the prof's at ITP in NYU has been teaching BLE to students for their projects
they seem to be picking it up quickly
Roo Williams
@roowilliams
Mar 29 2015 19:28
amazing
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:28
even though they don't have a computer science background
Roo Williams
@roowilliams
Mar 29 2015 19:28
yeh
i do think there's going to be lots of opportunity in it
Roo Williams
@roowilliams
Mar 29 2015 19:28
all the ble peripherals people are using these days
nice!!
i'd be all over that
if i was in NY already.. and a student
hehe
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:30
haha, ya
i went their last year for a BLE "doc-a-thon" tom igoe organized
it was pretty good, it's all on github
Roo Williams
@roowilliams
Mar 29 2015 19:31
thanks sandeep! lots to do
bookmarking all these physical computing guys too
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:32
good read, short and sweet
let me know once you are settled in NY, I'll intro you to Tom
Roo Williams
@roowilliams
Mar 29 2015 19:32
cheers, that'd be great
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:33
you'll see lots of cool projects there, similar to the ones in your portfolio
Roo Williams
@roowilliams
Mar 29 2015 19:34
his site looks familiar actually, i think i used it when i was working with the arduino yun a while back
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:35
nice, he's also one of the co-founders of Arduino :)
Roo Williams
@roowilliams
Mar 29 2015 19:35
have you tried putting nodejs on android yet?
apparently it's possible
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:36
not personally, someone emailed me and said they got noble running on it ~6 months ago
Roo Williams
@roowilliams
Mar 29 2015 19:36
nice!
right, i'd better try and get some work done
speak soon sandeep, cheers for the links!
Sandeep Mistry
@sandeepmistry
Mar 29 2015 19:37
cool, np ... later