Skip to content

Conversation

@justanetworkgeek
Copy link

As I start to write libxenon programs again I found myself wanting a few features. Everything below I have tested with this build as best as I can using and RGH2 trinity console. This pr makes the following changes:

  • Increase the amount of and duration of DHCP probes globally on network initialization. This helps with slower connections from console->DHCP server.
    Testing: DHCP works still. If link is down it's not an unbearably longer wait.

  • Enable the telnet console receive buffer and expose it globally so libxenon programs can also use it easily. (this code already existed in the code base, I just uncommented it and tested it pretty much)
    Testing: PuTTY and Linux telnet clients work to read and write the telnet console. Trying to overload the receive buffer etc does not produce any issues.

  • When libxenon programs crash and c_except is executed, it now brings up hardware again (USB and network) and the telnet console. Added more input handling options. Controller should be good for users without a UART. Telnet is also good for developing libxenon programs without access to UART as well. All of the possible input options can either reprint the stack trace or reboot the console in a number of ways.
    Testing: created a small program handle-all-input in my repo to test against. Forcing that program to crash I tried each new option I added in c_except.

  • General compiler warnings cleanup. While making edits to other stuff I just wanted to silence the noise and make sure what I was doing wasn't causing any fallout. I only tackled warnings that were obvious like implicit declarations/missing headers and the like.

I built all the auxiliary libraries and also XeLL-Reloaded master with these changes and all is well. I wanted to contribute these changes on the off chance it helps other libxenon program developers. Much of this can likely be improved as I am no expert :D

Tay added 19 commits October 12, 2025 01:48
…conditions. Removing but leaving working controller handling.
…conditions. Removing but leaving working controller handling.
…d but transmit was enabled. Re-enabled receive buffer and pushing this after testing with it.
…ed chars will echo back intrinsicly. Added externs for recv_buf and recv_len so that ththey can be used in libxenon programs.
…e things are verifiably working. Adding comments.
…ned via telnet and the console rebooted that way as well with controller and uart.
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.

2 participants