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

UARTDriver: add option to create uart connection to file #14234

Closed

Conversation

peterbarker
Copy link
Contributor

No description provided.

@peterbarker
Copy link
Contributor Author

Can be useful for testing serial parsers with real data.

@tridge
Copy link
Contributor

tridge commented Apr 30, 2020

the problem is the pacing of the data, it would be better to have a small py script that reads a file at a given rate and sends to a tcp port

@peterbarker
Copy link
Contributor Author

@tridge true enough. What I'd like is to finish up my write-pcap-file and feed that into such a script.

The protocol I was working with here was a time-independent capture which provided useful exercise for the parser.

It's nothing that can't be done with socat and a tcp port - it's just more hassle.

It also occurs to me that file could probably be a pipe, 'though....

Kill this or keep it?

@tridge
Copy link
Contributor

tridge commented Apr 30, 2020

I needs a NMEA capture as input tonight, and did this:
https://github.com/tridge/junkcode/blob/master/python/file_to_tcp.py
it assumes a line based protocol. It allowed me to find the issue for this report v quickly:
https://discuss.ardupilot.org/t/how-to-pass-it-on/53832/16

@peterbarker
Copy link
Contributor Author

No appetite for this in master.

@peterbarker peterbarker closed this May 5, 2020
@peterbarker peterbarker deleted the pr/uart-connection-to-file branch May 5, 2020 02:50
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

Successfully merging this pull request may close these issues.

None yet

3 participants