Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial Devices #56

Open
pmannino opened this issue Oct 24, 2024 · 2 comments
Open

Serial Devices #56

pmannino opened this issue Oct 24, 2024 · 2 comments

Comments

@pmannino
Copy link

I am using a Daisy HAT as my AIS receiver. How do I configure the docker-compose file to use this instead of the SDR's? I added:
devices:
- "/dev/ttyAMA0:/dev/ttyAMA0"

to the file, but this didn't work. (It throws a bunch of warnings that RTLSDR* settings are not set.) I can see ttyAMA0 in the container. When I run minicom, it prints binary stuff as expected. The web page shows no targets in a target rich environment.

@kx1t
Copy link
Member

kx1t commented Oct 28, 2024

It's currently not directly supported, but let me check if I can quickly add support. Since I don't have a dAISyHat, I may need your help testing. I'll let you know when it's ready to be tested (hopefully today)

@kx1t
Copy link
Member

kx1t commented Oct 28, 2024

Actually - I did some more research and you can add a serial port via the AISCATCHER_EXTRA_OPTIONS parameter. Try adding the following parameters to your docker-compose.yml:

    devices:
      - "/dev/ttyAMA0:/dev/ttyAMA0"

^^ this is something you already did

    environment:
      - AISCATCHER_EXTRA_OPTIONS=-e 38400 /dev/ttyAMA0

^^ this tells ais-catcher to take NMEA data from your serial port (with baudrate of 38,400 which is the standard for dAISyHat devices)

Once you've set this, pls restart the container (docker compose up -d)
You can then also try to monitor the performance of the container with the command docker logs -f shipfeeder)

Pls let me know if this works, and if so, feel free to close this Issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants