mikeryan / pybt Goto Github PK
View Code? Open in Web Editor NEWHackable Bluetooth stack in Python
License: MIT License
Hackable Bluetooth stack in Python
License: MIT License
Hi,
Another question that I have about the GATT DB is whether or not the handle values can be assigned manually. For device cloning purposes, this could be advantageous. bleno does not support this, but I suspect that PyBT would.
Thanks, and have a great day.
JennJ
Hi,
It seems that the connection handle is never modified :
def raw_att(self, data):
self.s.send(HCI_Hdr()/HCI_ACL_Hdr(handle=64)/L2CAP_Hdr(cid=4)/data)
Is it normal ? I have to change this piece of code to make it works.
Hi All,
When I'm Installing getting below errors. I'm forking the code from master branch and I Installed scapy as suggested.
Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup
ImportError: No module named setuptools
So,please provide solution to this problem.
Thanks...
Hi,
I don't think this is a problem with PyBT. I think it is a problem in my use of PyBT.
I am attempting to create a peripheral with a rudimentary GATT DB. You can see the code here: https://github.com/jennj/BLE-Scripts/tree/master/scripts-peripheral . The example advertises; I can see the advertised data in the nRF Connect app with no problems. When I attempt to connect, though, the connection fails with an error 0x85. According to Nordic this means a problem with the GATT server configuration. The server data matches that what I receive when I perform a gattlib read-by-handle (you can see the output of read-by-handle at the bottom of the file referenced above. This likely means that I am missing something. What am I missing? I would be grateful for a hint.
Ubuntu 16.04
bluez 5.37
scapy -> the one you linked in the PyBT page
PyBT -> the latest version
Latest versions of pycrypto and gevent are installed (what is standardly available with Ubuntu).
Thank you, and kind regards,
JennJ
Hi,
I have installed scapy 2.3.3 and was able to run gattclient.py. However, when I typed connect BD_ADDR random in the interactive console, I got the error:
Cannot convert argumetn to integer
The error occurred in scapy/fileds.py when calling s+struct.pack(self.fmt, self.i2m(pkt, val)) function.
Any idea on this?
Thanks : )
Hi,
I have installed PyBT. However, I could not figure out what is the usage of gattclient.py? Any help would be appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.