edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkatraman L (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EDGENT-71) Add bluetooth support
Date Thu, 12 Jan 2017 01:59:16 GMT

    [ https://issues.apache.org/jira/browse/EDGENT-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15819878#comment-15819878
] 

Venkatraman L commented on EDGENT-71:
-------------------------------------

Yes.  They all use Bluez Bluetooth stack for Linux and hcitool.
Node-red for Sensor Tag is also implemented in a similar way: https://github.com/node-red/node-red-nodes/tree/master/hardware/sensorTag

I've seen the way Python lib for SensorTag is implemented.  
First a layer of BLE is implemented that exposes api's to interact with GATT using hcitool
https://github.com/IanHarvey/bluepy/blob/master/bluepy/btle.py

Then, classes for sensor specific implementations (SensorTag in this case is implemented:
https://github.com/IanHarvey/bluepy/blob/master/bluepy/sensortag.py)

Thanks,
Venkat

> Add bluetooth support
> ---------------------
>
>                 Key: EDGENT-71
>                 URL: https://issues.apache.org/jira/browse/EDGENT-71
>             Project: Edgent
>          Issue Type: Improvement
>            Reporter: Victor Dogaru
>
> Moved from https://github.com/quarks-edge/quarks/issues/85 .
> [dlaboss]
> I did a bit of investigation of the use of Bluecove (http://www.bluecove.org/) as suggested
in that original issue:
> - BlueCove implements JSR-82 "javax.bluetooth" but development seems to have stopped
in 2008
> - "doesn't implement BLE" [1]
> - challenges making it work on a Raspberry Pi [4],  making it work on a Pi [5]
> - some of it is GPL (unacceptible) but some (the part of interest?) is AL-2.0
> Intel TinyB [2] - what platforms? "everything worked" [1]
> Android BLE API [3]
> Looks like Java ME SDK 3.0 include Bluetooth from in the "Wireless Toolkit" [6]
>    (present in "SE embedded" or "ME embedded" ?)
> For some applications there was a suggestion to just the standard linux Bluetooth stack
"BlueZ" utils
> e.g., "sudo hcitool lescan" and process the command output.
> I've also seen an approach using python to access the bluez stack APIs to perform a "device
scan" and emit the
> desired info to stdout.
> Edgent's Command connector (CommandStreams) provides a convenient way to integrate with
external commands should use of external commands be an acceptable solution.
> [1] http://stackoverflow.com/questions/28855288/java-j2se-bluetooth-low-energy-ble
> [2] intel TinyB https://software.intel.com/en-us/java-for-bluetooth-le-apps
> [3] android BLE API https://developer.android.com/guide/topics/connectivity/bluetooth-le.html
> [4] Pi/Bluecove nightmare https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=120317
> [5] 2015 Pi/Bluecove success?   http://lukealderton.com/blog/posts/2015/january/raspberry-pi-bluetooth-using-bluecove-on-raspbian.aspx
> [6] http://www.oracle.com/technetwork/java/download-135801.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message