Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A lot of useful information about dealing with serial ports both on PCs and on the device end of the wire can be found at Jan Axelson's site for the book <a href="http://www.lvr.com/serport.htm" rel="nofollow noreferrer">Serial Port Complete</a>.</p> <p>Actual interaction with the port will be highly platform-specific. On *nix of most flavors you open a device named something like <code>/dev/ttya</code> and use <code>read()</code>, <code>write()</code>, and <code>ioctl()</code> to read, write, and configure the port.</p> <p>On Windows, you open a file named <code>COM1</code> (or <code>\\.\COM1</code> on some flavors) with the <code>CreateFile()</code> function, and then get it configured and happy with functions like <a href="http://msdn.microsoft.com/en-us/library/aa363436%28VS.85%29.aspx" rel="nofollow noreferrer"><code>SetCommState()</code></a> and the <code>DCB</code> structure. The details are similar in broad outline to the things you need to do on *nix, but organized completely differently. You can find the whole discussion of configuring and using COM ports at <a href="http://msdn.microsoft.com/en-us/library/aa363196%28VS.85%29.aspx" rel="nofollow noreferrer">MSDN</a>.</p> <p>On the embedded device, you will either be directly accessing the hardware registers of the <a href="http://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter" rel="nofollow noreferrer">UART</a> or interacting with an RTOS. Either way, there is essentially no way to make the code on the device end broadly portable.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload