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

Develop:orbtop hard attempts to set serial config #34

Closed
karlp opened this issue Sep 10, 2020 · 3 comments
Closed

Develop:orbtop hard attempts to set serial config #34

karlp opened this issue Sep 10, 2020 · 3 comments

Comments

@karlp
Copy link
Contributor

karlp commented Sep 10, 2020

ca5d22f introduces a hard explicit call to setSerialConfig on the socket fd. I don't even know what it's trying to do. orbtop doesn't need a serial port, and it sure doesn't seem relevant to the commit comment for ca5d22f?

It kinda looks like you bled some attempted functionality at running orbtop directly against a dump file, or a trace spew file, instead of via orbuculum, and broke "normal" usage? That would seem to be going against the whole principle of composing things aroudn orbuculum, and means you're going to be fixing the same sorts of things in every one of them. Are you sure that's what you're trying to do? Shouldn't orbtop just connect to the orbuculum service, and orbuculum takes care of how the data arrives?

Direction aside, this call completely fails on a normal socket, and exits.

@karlp
Copy link
Contributor Author

karlp commented Sep 10, 2020

(for instance, I see you added support for this direct file support to orbcat as well, but you didn't add any serial support there, which is exactly the sort of inconsistency you'll end up with you have this functionality copied into each of the tools)

karlp added a commit to karlp/orbuculum that referenced this issue Sep 10, 2020
This leaves the (dubious) inclusion of serial support in orbtop, but at
_least_ avoids calling it if no serial speed was specified, allowing
"normal" usage with an orbuculum server to function again.

Fixes: orbcode#34
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
karlp added a commit to karlp/orbuculum that referenced this issue Sep 10, 2020
This leaves the (dubious) inclusion of serial support in orbtop, but at
_least_ avoids calling it if no serial speed was specified, allowing
"normal" usage with an orbuculum server to function again.

Fixes: orbcode#34
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
@mubes
Copy link
Collaborator

mubes commented Sep 10, 2020

orbtop has always worked with serial devices and is a shortcut to avoid needing to run orbuculum. The setSerialConfig is needed to accomodate high speed devices (e.g. on Linux). You're right though, it's messy and inconsistent. I need to think about the best solution to this but running orbuculum from an app if it isn't already running seems like a reasonable option, but it makes command line options untidy. Suggestions welcome...

@mubes
Copy link
Collaborator

mubes commented Sep 10, 2020

Serial options removed from orbtop...using serial should be done via orbuculum.

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

No branches or pull requests

2 participants