kvantetore / igrill Goto Github PK
View Code? Open in Web Editor NEWHacking the iGrill mini
License: MIT License
Hacking the iGrill mini
License: MIT License
Hi !
I've got an iGrill Mini and I have tried with all keys found in the latest apk but I always end up with "Invalid device challenge" (I've set correct MAC address too of course) :
Authenticating...
encrypted device challenge: 954410c3d04a945fb4e986b4e18bb7cb
decrypted device challenge: 1a8659a80d5d5a89ca3fc549efad0544
Invalid device challenge
Traceback (most recent call last):
File "monitor_igrill_v2.py", line 18, in
periph = IGrillV2Peripheral(ADDRESS)
File "/home/pi/igrill-master/igrill.py", line 130, in init
IDevicePeripheral.init(self, address)
File "/home/pi/igrill-master/igrill.py", line 46, in init
raise RuntimeError("Unable to authenticate with device")
RuntimeError: Unable to authenticate with device
Is there sopmething obvious that I am unable to see missing here for me to be able to connect ?
Cheers & TIA !
/Mathias
$ pip install -r requirements.txt
Collecting bluepy==0.9.11 (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement bluepy==0.9.11 (from -r requirements.txt (line 1)) (from versions: 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.4)
No matching distribution found for bluepy==0.9.11 (from -r requirements.txt (line 1))
Has any of the newer releases been tested?
Maybe someone can give me a hand here. I've got an igrill2 I'm trying to use with this library using an raspberry pi. Following the instructions above, I did decompile the idevices's app apk file I found in the web and did find the .plist files under the assets/device/igrill_bundle directory. Although I can sorta follow along were you found the UUID's for firmware, etc. I still can't figure out how you determined the encryption key. Please point me in the right direction.
Note: using the Pi, I am able to see the igrill to and obtain its MAC address. I did plug that into the library.
Hey nice work. Not too familiar with Python, what protocols are you using to talk to the Igrill? I'd like to re implement some of your work in my lanauge of choice.
Where did you get the encryption key here:
Line 144 in 713f4cb
Is that something that comes out of bonding with bluetoothctl or something you managed to find elsewhere? I've got an iGrill2 I'm trying to toy around with but reading your code the step of finding that key is non-obvious.
Followed instructions and all I get is
Authenticating...
encrypted device challenge: 8c2fc96624607xxxx8ce006a7c8c63c5
decrypted device challenge: 39865666d259xxxx1ff7c0273c7ea68e
Invalid device challenge
Hi
I'm attempting to get igrill setup to monitor my iGrill Mini.
I've setup a virtualenv with all the required libraries, I've also edited main.py
with my device's address, but I get this error when running:
# python main.py
Creating Scanner
Connecting to InfluxDB server
Scanning...
Authenticating...
Traceback (most recent call last):
File "main.py", line 36, in <module>
scanner.scan(30)
File "/home/pi/igrill/virtualenv/src/bluepy/bluepy/btle.py", line 632, in scan
self.process(timeout)
File "/home/pi/igrill/virtualenv/src/bluepy/bluepy/btle.py", line 621, in process
self.delegate.handleDiscovery(dev, (dev.updateCount <= 1), isNewData)
File "/home/pi/igrill/scan.py", line 10, in handleDiscovery
handler.handleDiscovery(scanEntry, isNewDev, isNewData)
File "/home/pi/igrill/igrill.py", line 43, in handleDiscovery
dev = IGrillMiniPeripheral(scanEntry.addr)
File "/home/pi/igrill/igrill.py", line 147, in __init__
IDevicePeripheral.__init__(self, address)
File "/home/pi/igrill/igrill.py", line 92, in __init__
if not self.authenticate():
File "/home/pi/igrill/igrill.py", line 114, in authenticate
self.characteristic(UUIDS.APP_CHALLENGE).write(challenge, True)
File "/home/pi/igrill/virtualenv/src/bluepy/bluepy/btle.py", line 148, in write
self.peripheral.writeCharacteristic(self.valHandle, val, withResponse)
File "/home/pi/igrill/virtualenv/src/bluepy/bluepy/btle.py", line 459, in writeCharacteristic
return self._getResp('wr')
File "/home/pi/igrill/virtualenv/src/bluepy/bluepy/btle.py", line 334, in _getResp
resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
File "/home/pi/igrill/virtualenv/src/bluepy/bluepy/btle.py", line 296, in _waitResp
raise BTLEException(BTLEException.COMM_ERROR, "Error from Bluetooth stack (%s)" % errcode)
bluepy.btle.BTLEException: Error from Bluetooth stack (comerr)
Any idea what I'm doing wrong?
Thanks
Hi,
I've been very noisy on this project-issue page in the last few hours...
So far I'm now able to connect my Raspberry Pi to my iGrill V2 (with some startup-problems).
My last problem is now that it seems, that the values are read wrong (I'm always getting a temperature of 202 or 190 something) - which is even in imperal-system crap... ;-)
Can you provide me some hints, how you identified the data-fields for your iGrill mini?
Thanks
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.