Coder Social home page Coder Social logo

Comments (12)

dchristl avatar dchristl commented on August 24, 2024 1

@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:

Bildschirmfoto vom 2023-04-30 07-24-10

You see also the output. The whole flashing lasts appr. 30s. After this the output of Putty is something like this:

Bildschirmfoto vom 2023-04-30 07-42-13

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.

dchristl avatar dchristl commented on August 24, 2024

Hello @SimonBard ,

have you read the instructions. The whole purpose of this project is to avoid the installation of OpenHaystack.

from macless-haystack.

backupandforkacc avatar backupandforkacc commented on August 24, 2024

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.

dchristl avatar dchristl commented on August 24, 2024

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.

backupandforkacc avatar backupandforkacc commented on August 24, 2024

grafik

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.

dchristl avatar dchristl commented on August 24, 2024

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.

backupandforkacc avatar backupandforkacc commented on August 24, 2024

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.

beckmx avatar beckmx commented on August 24, 2024

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.

backupandforkacc avatar backupandforkacc commented on August 24, 2024

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.

backupandforkacc avatar backupandforkacc commented on August 24, 2024

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.

dchristl avatar dchristl commented on August 24, 2024

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 with docker 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.

dchristl avatar dchristl commented on August 24, 2024

This issue is not valid anymore with the latest release.

from macless-haystack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.