-
Notifications
You must be signed in to change notification settings - Fork 58
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
vcontrold error output #39
Comments
Preliminary note : I'm quite new working with the Vito protocols. I may have overseen the obvious. ;-) I read through the code, and especially the IO.C
Food for thought. I'll take some time to experiment. |
@philverh You are right. It is strange why At least in non P300 protocol the vitronic sends 0x05 periodic. This or other bytes might be in the input buffer, so it must be cleared before as we want only the answer to our request ... But maybe the discussion about the implementation of io.c (and others) might be started in another issue as I like to know what command line option is best if we want to suppress the error output in the normal output. BTW: The errors are still written to syslog. So one can still see that there was something wrong. |
I was thinking about my suggestion. Meanwhile I think it is better to modify vclient instead of changing the daemon. The issue is only on
So vclient without |
Currently I have a lot of communication problems with my vito. But this is another story.
I use
vclient --host localhost --port 3002 -f vito-commands.txt -t vito-update.tmpl.py -x /dev/shm/vito-update.py
to create a Python script with the data read from vito. If there is a communication error the corresponding value in vito-update.tmpl.py is replaced by e.g.The problem is the line break which breaks execution of the Python script.
Because there are lots of data read out of vito it would be nice if the script runs despite the error. So it would be good if vcontrold does not output the error in that case (and leaves the value empty). I quickly tested this by setting
errClass
always to 99 incommon.c::logIT()
. But this should be done by a command line switch. Should I use an new switch like-q
or should we use e.g.-v
which is currently not really used (no error output tofd
per default, only triggered by switch)?Or is there another solution which I haven't seen?
The text was updated successfully, but these errors were encountered: