Closed SimonBard closed 10 months ago
Hello @SimonBard ,
have you read the instructions. The whole purpose of this project is to avoid the installation of OpenHaystack.
Ok got it.
I can reach the server with the given port number. I do not get any reports. I am using an ESP32 and have used esptool to write the data on the esp. I have carried the esp32 with and without an apple iphone SE 2000 (which uses the same apple account as the headless server).
Can I also track original apple airpods? This would faciliate debugging a bit.
Hard to tell what is gone wrong. I think there is something wrong with the firmware. Can you post a screenshot of the Espressif UI? Are you able to get a log out of your esp32? The firmware logs everytime when a key will be advertised.
Sadly, it is not possible to track original Apple devices, because you don't have the private key for decryption.
Many thanks for the feedback!
I have never worked with espressif, but did now. How can I monitor logs? I have used Arduino IDE for seeing the logs or sent them by mqtt.
First of all, I see two issues:
How can I monitor logs? I have used Arduino IDE for seeing the logs or sent them by mqtt.
You need a serial monitor tool, the Espressif framework has some built in (s. here), but you have to setup whole ESP-IDF SDK. An other option is Putty, like described here
I flashed it again with the correct adresses. I think it did it correctly though as I used esptool before. I am using putty to monitor, but only see this (pressed the reset button twice to test it)
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
I moved it around without my Iphone in my car for a while to catch some reports, but nothing happened.
I think you need a little more experience with esp32, I have flashed several without issues. What you see right there is the state of the esp32 ready to receive a firmware, it looks from my experience a custom board? Which gpio0 kept on low
@beckmx is right, this means your flashing doesn't work, but the device is ready for it. A valid output will be something like that:
headless_haystack: Returned from light sleep headless_haystack: Current cycle is 2. Reusing key. headless_haystack: Loading key with index 12 at address XXX headless_haystack: using key with start XX fXX headless_haystack: using device address: XX XX XX XX XX XX headless_haystack: Sending beacon (with key index 12) headless_haystack: advertising has started. headless_haystack: stop adv successfully headless_haystack: Going to sleep
I've tried it out in my virtual machine, with the latest binaries and a newly generated key. It works at first try with the newest ESP Flash Tool and this settings:
You see also the output. The whole flashing lasts appr. 30s. After this the output of Putty is something like this:
So this seems not a problem with the firmware, Windows or the ESP Download Tool. You can try two things. Update the tool and/or erase the whole flash before installing the firmware.
I bought a new ESP32, flashed it, and this morning it worked. Now I get this error:
Exception happened during processing of request from ('172.17.0.1', 59418)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 293, in _handle_request_noblock
self.process_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 655, in __init__
self.handle()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "./FindMy_proxy.py", line 63, in do_POST
result = json.loads(res.read())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
----------------------------------------
How do I login to the virtual mac machine?
This morning, with "docker start -ai ...", I was automatically logged in as:
user@users-iMac-Pro
Then I stopped the docker container, restarted it and tried to login:
$ docker exec -it simon-headless bash
[arch@86532bce8abe OSX-KVM]$
So it seems I was only logged in the container, but not the OS system. I tried with SSH, but failed.
On the docker host machine, I tried:
simon@simon-sff:~$ ssh user@192.168.103.34:50922
ssh: Could not resolve hostname 192.168.103.34:50922: Name or service not known
And in the container with:
$ docker exec -it simon-headless bash
[arch@86532bce8abe OSX-KVM]$ ssh user@localhost
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
user@localhost's password:
Permission denied, please try again.
I tried "alpine" as password.
Please read the documentation carefully and completely. If something doesn't work start over. I have absolutely no clue what is going wrong here, because I don't know your setup.
Some hints:
docker exec -it simon-headless bash
? It is nowhere in the docs. You start your container always in interactive mode with docker start -ai <ID>
ssh user@localhost -p 50922
The container has no own IP. But you normally don't need it because of the interactive mode. This issue is not valid anymore with the latest release.
I started the container via:
In the container, I downloaded OpenHaystack and started it. Got the error message: "You can't use this version fo the application "OpenHAystack " with this version of macOS."
I then tried:
but it would not startup, instead I had to install the system, but failed as it said "disk locked" in some step.