Comments (3)
Hi,
So, the bluepy project was originally conceived to connect a TI SensorTag to a Raspberry Pi. If you're completely new to BLE it might be worth playing with a SensorTag first just to get a feel for it, they're roughly the same cost as things like the Tile but much more interesting. You don't need a Pi particularly, it should work on Linux on PCs as well.
For setting up bluepy, there are brief instructions in the README.md file, and fuller instructions at http://www.elinux.org/RPi_Bluetooth_LE . This should let you establish a basic connection to your device.
At the minute, the only code examples for using the bluepy API are the __main__
code in btle.py itself, and sensortag.py. If you'd like more on the programming concepts involved, I wrote some stuff at http://en.wikipedia.org/wiki/Bluetooth_low_energy#Software_model which might help. I've nearly finished some Sphinx documentation on bluepy, which I'll hopefully be publishing soon.
Hope that helps, have fun,
Ian
from bluepy.
Please include samples on sending data to a device and then getting a response, I can not seem to find any example where you send data to a device...
from bluepy.
Hi Ian:
Thanks for the useful feedback...does your setup/installation also install the latest edition (or late enough) of gatttool...I'm under the impression (perhaps wrong), that this will only be created using the --enable-client parameter
I managed to connect to my BLE device (at least generate a handle), after finding I needed to use -random parameter with lecc (I came across this tip in some posting). However, I can't find any information on what this random parameter sets/controls...where are all of the optional parameters described?
It's hard to use them if you don't know what is available!
best regards,
Norm
From: Ian Harvey [mailto:[email protected]]
Sent: Tuesday, December 02, 2014 3:45 AM
To: IanHarvey/bluepy
Cc: gitcandies
Subject: Re: [bluepy] Any more application details? (#21)
Hi,
So, the bluepy project was originally conceived to connect a TI SensorTag to a Raspberry Pi. If you're completely new to BLE it might be worth playing with a SensorTag first just to get a feel for it, they're roughly the same cost as things like the Tile but much more interesting. You don't need a Pi particularly, it should work on Linux on PCs as well.
For setting up bluepy, there are brief instructions in the README.md file, and fuller instructions at http://www.elinux.org/RPi_Bluetooth_LE . This should let you establish a basic connection to your device.
At the minute, the only code examples for using the bluepy API are the main code in btle.py itself, and sensortag.py. If you'd like more on the programming concepts involved, I wrote some stuff at http://en.wikipedia.org/wiki/Bluetooth_low_energy#Software_model which might help. I've nearly finished some Sphinx documentation on bluepy, which I'll hopefully be publishing soon.
Hope that helps, have fun,
Ian
—
Reply to this email directly or view it on GitHub #21 (comment) . https://github.com/notifications/beacon/AJgn9Ez_HR9ZL-9BGxIX5haqERzbmOE7ks5nTXOOgaJpZM4DBQjK.gif
from bluepy.
Related Issues (20)
- [Errno 13] Permission denied on bluepy-helper even though permissions are correctly set HOT 1
- bluepy.btle.BTLEManagementError: Failed to execute management command 'scan' HOT 1
- How to get PDU Type?
- Passive scan returns weird connectable
- bluepy-helper crashes HOT 1
- Sampling frequency HOT 6
- thon3
- BluePy not compatible with Python 3.10 or newer
- Multiple Instances of a single Service
- Reading Accelerometer Data from SensorTag CC2650
- Try to use timeout HOT 4
- getting temperature data
- unable to make it work on Python 3.7.3
- Failed to connect to peripheral <my mac address>, addr type: random HOT 4
- Select a host Bluetooth device (the one that starts the connection) HOT 7
- ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='UTF-8'>
- Infinite timeout
- HCI Selection Failure HOT 1
- Help! Loaded everything but doesn't see the camera.
- Unable to set connection parameters and advertasing parameters Thingy:52
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluepy.