Serial vs VGA

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Garuda1
Posts: 3
Joined: Thu Nov 10, 2016 11:37 am
Location: Toulouse, France
Contact:

Serial vs VGA

Post by Garuda1 »

Hey.


So I started tinkering around, following the different articles here. Something however came to my mind: the technical limitations of the basic VGA framebuffer. The 80x25 character limit being the most annoying drawback. I could of course implement video drivers, but I think we can all agree on the fact it isn't the easiest thing to do.

I started looking at a more... standard way to make a good looking UI: using a terminal over RS-232. The wiki article on serial ports and how to interact with them was really complete. Plus, they can become really useful when it comes to debugging. However, connecting two computers over RS-232 may not seem like the easiest way to interact with one for some people.

What do you think, from a technical point of view and not a user one, would be the best way to have a quick and easy user interface? Is a serial terminal the best way to do it?
User avatar
MichaelFarthing
Member
Member
Posts: 167
Joined: Thu Mar 10, 2016 7:35 am
Location: Lancaster, England, Disunited Kingdom

Re: Serial vs VGA

Post by MichaelFarthing »

Marginally better than a teleprinter I suppose. :?

[I think that constitutes a vote against. I suspect it might be unacceptably slow]
rdos
Member
Member
Posts: 3303
Joined: Wed Oct 01, 2008 1:55 pm

Re: Serial vs VGA

Post by rdos »

Serial ports used to be really easy to interface. The speed was low, but it was easy. Today, the typical computer doesn't have a real serial port, and you need to add it by using an USB-to-serial converter. To widely support that, you need drivers for 4 different USB standards (OHCI, UHCI, EHCI and XHCI) and for hubs (because a lot of computers have internal hubs instead of real ports). Then you need to support various manufacturers of USB to serial converters (although most are FTDI-compatible).

VGA used to be really nasty with palettes and bit-planes, but nowadays you can get an LFB buffer directly from EFI (or via VBE, which is slightly more complicated). That means most computers today has an video-card that is easy to use. You will not get the best performance without custom video accelerators, but you can always make it work with an LFB buffer.

Another good way to interface is with networks. I'd say it's easier to support networks (selecting a few major manufacturers like RealTek and Intel), and writing a generic driver for their cards, than to support all kinds of strange USB standards.
simeonz
Member
Member
Posts: 360
Joined: Fri Aug 19, 2016 10:28 pm

Re: Serial vs VGA

Post by simeonz »

For what it is worth, rack mounted servers sometimes have physical serial ports. Tunneling over ethernet (Serail-over-LAN) is also possible. It is indistinguishable to physical port on the server and can be useful for automating testing, debugging of system code using kernel debugger, etc. Not everyone needs or uses this.
User avatar
Schol-R-LEA
Member
Member
Posts: 1925
Joined: Fri Oct 27, 2006 9:42 am
Location: Athens, GA, USA

Re: Serial vs VGA

Post by Schol-R-LEA »

I am confused as to what you actually mean here. Are you saying you want to use a simulated RS-232 as the hardware abstraction layer for the console? That isn't what RS-232 (or rather, TIA-232, which is the current version of the standard) is for.

I suspect what you actually mean is something like VT-100 or ANSI Graphics, rather than RS-232. RS-232 has nothing at all to do with display, any more than a telephone has anything to do with what you say into it - it is a data carrier (and an asymmetrical one at that - DCE and DTE are not the equal partners), nothing more.

What are you actually trying to achieve here?
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: Serial vs VGA

Post by osdever »

I think that you're right. This would be fast and it'll remove VGA restriction, it can be used over LAN as simeonz said, so I agree with you: serial port will be the best variant here for me.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Post Reply