-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to use feed from serial port (ttyS0) #11
Comments
Hey @yanniedog! Okay, this will probably take us a few iterations, but I think we can get this solved. Your command looks right, the issue here is the docker image has not been updated. I'm checking why, and it looks like this is because the automatic build failed - so there's no fresher one for you. Let me see if I can get this fixed, it may take about 20-30 minutes. Stand by! |
@yanniedog okay, please try updating the docker image, and running again. You can update the image with this command:
|
@mik3y thanks very much. Please see below: `pi@SmoothIsland:~ $ sudo docker pull mik3y/airdash pi@SmoothIsland:~ $ sudo docker run --rm -i -t -p 8888:8000 -e DATA_SOURCES=ais-serial:///dev/ttyS0 mik3y/airdash docker: Error response from daemon: driver failed programming external connectivity on endpoint confident_shamir (5adc13f4ab768d588946c5aef3df50b89abf186ec36d722e20f86f82e413ab9f): Bind for 0.0.0.0:8888 failed: port is already allocated. As an alternative (with the baud specified): |
Hm! That error suggests you might already have it (or something) running on port 8888. Try a |
Thanks mik3y, that fixed it.
|
Whoops! Sorry I missed your comment here. Could you try enabling debug logs? I am not sure if it will add what we need.. but it could. Should be something like adding the following to the
|
Hey @yanniedog - I thought of another issue that could be affecting this. Do you run some other software that reads from the AIS device at port |
The issue I'm really, really struggling with is the basic Docker / Docker-compose commands. I don't know how to do the fundamental basics of Docker, and don't have any idea what I'm doing when it comes to docker/docker-compose. It's preventing me from participating |
Understood! Sorry about that - I remember there is indeed a bit of a learning curve. And probably doubly so when you aren't sure whether the software itself is buggy (as could definitely be the case here).. Would you be up for letting me ssh in and look things over? I can probably troubleshoot things quickly that way. No worries if not - I understand not wanting to trust a random internet stranger with computer access :-) |
Hi Mikey,
I get this error when trying to use the ttyS0 serial port for AIS data:
pi@SmoothIsland:~ $ sudo docker run --rm -i -t -p 8888:8000 -e DATA_SOURCES=ais-serial://dev/ttyS0?baud=38400 mik3y/airdash yarn run v1.22.5 $ WEBPACK_TARGET=prod node server/server.js info: Server starting ... info: config: {"listenPort":8000} info: Starting server ... Error: Failed to add data source ais-serial://dev/ttyS0?baud=38400: Error: Unsupported protocol "ais-serial:"
The text was updated successfully, but these errors were encountered: