-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
ebusctl errors without error message #853
Comments
does it work with netcat?? i.e. when using |
It works when manually calling netcat. I.e. I get the following result: $ echo "hex 08b5110101" | nc localhost 8888
0934330080ffff0000ff
^C
$ ebusctl hex 08b5110101
0934330080ffff0000ff Or did you intend that I'd integrate it in cron job too? In any case, netcat does not return (or at least not before 15 minutes). I have to kill it using ctrl+C. So it doesn't look like a good idea to use it in a cron job since the cron jobs would never end. Perhaps that this is in fact related to the root cause? |
yes, I meant by using nc in the cronjob. you need to give an extra param to nc to not wait forever |
Edit: also netcat seems to return an empty result occasionally. I used the following command.
|
in this case please check the ebus logging for anything unusual when the result is empty. maybe need to increase the log level |
Description
Calling
ebusctl hex b5110101
works when calling it manually but only works sometimes (about once in three times) when calling it from a cron job.I'm using an ebuzzz adapter.
Actual behavior
When it does not work:
std::cout
.Expected behavior
Expected behavior:
I debugged the source code and the problem is resolved most of the time using
So it seems that somehow the data is not received correctly, or too late.
ebusd version
current source from git
ebusd arguments
-d /dev/ttyUSB0 --enablehex --scanconfig=full --latency=20000
I'm getting the same behaviour without the
latency
option.Operating system
Debian 11 (Bullseye) / Ubuntu 20-21 / Raspbian 11 / Raspberry Pi OS 11 (including lite)
CPU architecture
arm64
Dockerized
None
Hardware interface
other
Related integration
No response
Logs
The text was updated successfully, but these errors were encountered: