Comments (12)
@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.
from macless-haystack.
Hello @SimonBard ,
have you read the instructions. The whole purpose of this project is to avoid the installation of OpenHaystack.
from macless-haystack.
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.
from macless-haystack.
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.
from macless-haystack.
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.
from macless-haystack.
First of all, I see two issues:
- the adresses should be hexadecimal (i.e. 1000 -> 0x1000), otherwise these are decimal values, which means wrong adresses
- the default baud rate is 115200 and not 921600
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
from macless-haystack.
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.
from macless-haystack.
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
from macless-haystack.
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
----------------------------------------
from macless-haystack.
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 [email protected]: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.
from macless-haystack.
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:
- Why do you execute
docker exec -it simon-headless bash
? It is nowhere in the docs. You start your container always in interactive mode withdocker start -ai <ID>
- You can start an extra shell (to the running docker container) from the host only with localhost.
ssh user@localhost -p 50922
The container has no own IP. But you normally don't need it because of the interactive mode.
from macless-haystack.
This issue is not valid anymore with the latest release.
from macless-haystack.
Related Issues (20)
- Feature-Request: Battery-Information for NRF51xx HOT 7
- Can I extend location history more 7 days ? HOT 5
- Difference between "Deployed" and "Active" in Webinterface/App HOT 2
- nrf51822 identification HOT 1
- Front-end won't display points on map even though it claims locations have been fetched HOT 3
- Self hosted webapp HOT 3
- apple id blocked ? HOT 1
- Account limit reached HOT 11
- Successfully enabled 2FA, but account is blocked | It seems your account score isn't high enough. What accounts have you successfully accessed, guys HOT 1
- Map is jumping back from zoom level (App) HOT 5
- web app host issues "nothing to see here" displayed HOT 2
- Flashing the device, but doesn't appear to work HOT 1
- Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- Expose macless-haystack to the internet HOT 8
- [doc] add interactive docker cmd HOT 3
- Invalid EC key HOT 4
- The issue with the total number of tags HOT 2
- cant get it working, how to debug? HOT 2
- old version (headless_haystac 1.1.0) intermittent error: invalid arguments - invalid point encoding (0x1) HOT 1
- Firmware builds for ESP32-C3 HOT 6
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 macless-haystack.