Conversation
|
Hey @benpicco, |
|
Sure. I just wanted a quick way to gauge the connection to several devices as a move along, so I wrote a little pyterm init script that allows me to save the output for logging: When I do I get The last command is missing because the RX buffer was full. all commands are executed |
|
I have a question on the usage, do you need the interactive shell after or do you just send automated commands ? |
|
I just send automated commands - I actually send |
MrKevinWeiss
left a comment
There was a problem hiding this comment.
As it is just a wrapper for sleep, it doesn't matter about code size, and people don't have to use it, I think it is fine to add it. I will wait for others to give opinions though before moving forward.
|
I am asking about the usage, because we are maybe moving away from having I know it is not a However I think that for the moment it could be done in the same way as our tests are. |
|
What I like about pyterm is that it simply writes to stdout. So when I kill pyterm, the output stays in the terminal. I can also just pipe it to a file or run grep on it. |
The init_cmd feature is quite handy for automated pyterm runs but there is no delay between the commands that are executed. This adds a /sleep function that can be added between init_cmd commands to prevent them from overflowing the RX buffer on the target.
|
btw.: this is still useful. E.g. I want to try some modulations but don't want to change the code of the example application or the driver defaults: Now if I want to to more complex things, the |
|
I can jump back on this. My concern here is that this is pyterm specific. I also think that the automated tests now try to select I don't mind having extra features on tools so I think the concept is still OK. |
|
Tested and it works |
|
used the DetailsI can also exit the shell during the sleep. |
|
This one seems ready and has been tested. @MrKevinWeiss what's your opinion ? |
The init_cmd feature is quite handy for automated pyterm runs but there
is no delay between the commands, so they are all written to the target at once.
This adds a /sleep function that can be added between init_cmd commands
to prevent them from overflowing the RX buffer on the target.