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

Send custom string BEFORE waiting input from U-Boot #109

Open
st47k3r opened this issue Feb 2, 2024 · 1 comment
Open

Send custom string BEFORE waiting input from U-Boot #109

st47k3r opened this issue Feb 2, 2024 · 1 comment
Assignees

Comments

@st47k3r
Copy link

st47k3r commented Feb 2, 2024

Describe new feature
Some of devices use silent boot on RS232. If you first sent, as example "Hi, Device!" in RS232, then you get in U-Boot ccommand line with "=>". But if you just only waiting for "=>" it's not showing without you interaction..

Describe the solution you'd like
Need commad line argument for string to send to device

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@jynik
Copy link
Collaborator

jynik commented May 12, 2024

Hi @st47k3r , I'm so sorry how incredibly delayed this response is. I'm no longer with NCC Group, so I'm no longer getting notifications or actively monitoring the project.

If I'm understanding your request, we ran into something similar on some MediaTek-based portable Wi-Fi Routers. Take a look at this example; I think it may be exactly what you need:

https://github.com/nccgroup/depthcharge/blob/main/python/examples/mt7628_console_menu.py

Basically, it shows how you can create a Console object to handle the pre-boot stuff, before creating a Depthcharge context object or just letting another script take over. In your case, you wouldn't wait in a read loop, but rather, spam your "stop string" and then see if it triggered a prompt.

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

No branches or pull requests

2 participants