Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>Standard Serial ports</code> are mapped as /ttyS0,/ttyS1,... as you correctly stated. Generic <code>USB Serial Ports</code> as well as most <code>G3 modems</code> are accessible as <code>/dev/ttyUSB0</code> through <code>/dev/ttyUSB255</code></p> <p>The better way to distinguish if a serial port 'connected' with a modem is to send <code>ATIx</code> commands to the serial port. These are <a href="http://en.wikipedia.org/wiki/Hayes_command_set" rel="nofollow noreferrer">Identity</a> commands that you may use to detect the model name of the device and many other details.</p> <p>First you try to send <code>ATIx</code> command not changing the baud rate. If you do not receive any valid response (<code>ASCII</code> multi-line text followed by <code>OK&lt;CR&gt;&lt;LF&gt;</code> <code>ERROR...&lt;CR&gt;&lt;LF&gt;</code> then you may alter the baud rate and retry. It is better to first set the maximum supported by port speed and then decrease it until you find a modem or you end up with 110 baud or other reasonable limit.</p> <p>There is a way to detect if most likely there is nothing connected to the serial port. The idea behind is to detect the frame error that persists during some reasonable time (tens times to receive a byte at selected baud rate), say 2-3sec. To see how enable/disable frame errors detection look at <code>man termios</code>. Howeever, I am not absolutely sure that in the setup you described this will be possible (from within VM), so you have to try.</p> <p>Also look at this post <a href="https://stackoverflow.com/questions/5347962/how-to-connect-to-a-terminal-to-serial-usb-device-on-ubuntu-10-10">How to connect to a terminal to Serial-USB device on Ubuntu 10.10?</a></p>
    singulars
    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.
 

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