Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Enable screen echo to USB_UART #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

IGBC
Copy link

@IGBC IGBC commented May 22, 2019

I don't always have a VGA monitor to hand.

Enabling UART loopback of the screen allows for development on the go.

# Connect to the monotron in an understandable way
picocom -b 115200 --imap lfcrlf /dev/ttyACM0 -q
# The banner will still be screwed up but the REPL is readable

Example

@thejpster
Copy link
Owner

Nice! I wonder though if we can make this optional? The uart fifo is only 16 bytes and some of the fancier demos (like the flames) can't afford to wait for a 115,200 uart. Some possibilities:

  • A CONFIG.SYS file on the SD card
  • Using the battery backed RAM on the RTC
  • Using EEPROM on the Tiva-C

Once that's in place, I'd probably also add keyboard language selection using the same mechanism.

@thejpster
Copy link
Owner

Now I'm also wondering if I should scrap the weird escape codes I invented and make the framebuffer handle standard ANSI / VT100 codes. Then your serial terminal would look correct, and simple UNIX programs would be easier to port...

@IGBC
Copy link
Author

IGBC commented May 25, 2019

I would agree with scraping any proprietory escape seqences, this is something I can investigate myself.

The logical place for config would be the SD card RN, however I would insist that the UART echo default to on.

@thejpster
Copy link
Owner

thejpster commented May 25, 2019

escape sequences

Cool. I'll look for the PR on vga-framebuffer and/or console-traits. Would be nice to make a crate that Phil Opperman could use on his OS blog.

SD card

Sounds good. A UI command would be useful. I can look at this.

I would insist that the UART echo default to on

In the absence of an SD card? That's fine - I'll always have an SD card fitted for demos.

@IGBC
Copy link
Author

IGBC commented May 27, 2019

Cool. I'll look for the PR on vga-framebuffer and/or console-traits. Would be nice to make a crate that Phil Opperman could use on his OS blog.

Not sure who own's the console-traits crate, but that's where the code needs to go, sadly that currently doesn't support multichar escape sequences. I can probably patch it, but for that I need to know where it's repo is. docs.rs does not list a repo for console-traits.

EDIT: @thejpster of course it's one of yours, I am starting to think you're some kind of embedded Jedi. PR in console-traits coming when I figure it out.

@thejpster
Copy link
Owner

thejpster commented May 29, 2019 via email

@thejpster
Copy link
Owner

I've started full ANSI support in thejpster/console-traits#1. Updates / fixes / more tests welcome!

@thejpster
Copy link
Owner

Also, if you want to rebase this, I'll merge it as-is, then think about adding the opt-out.

@thejpster
Copy link
Owner

Any further thoughts on this one?

@IGBC
Copy link
Author

IGBC commented Aug 27, 2019

Haven't had time or energy to work on this in the last few months.

Sorry, more to come when I fixed my monotron XD

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

Successfully merging this pull request may close these issues.

2 participants