From krtkl wiki
Revision as of 16:49, 2 December 2018 by TheUltimateSource (talk | contribs) (fix typo)
Jump to navigation Jump to search

Connecting to the Console

Checking USB Device

From within a Linux (or OS X) terminal, dmesg can be used to show the connection information of the USB device that is populated when the a connection to the snickerdoodle is made. dmesg | tail is used in the following example (tail is used to truncate the system messages to only the most recent) to show the snickerdoodle connection and population as /dev/ttyACM0.

$ dmesg | tail
[102918.828571] usb 3-3.1: new full-speed USB device number 6 using xhci_hcd
[102918.928776] usb 3-3.1: New USB device found, idVendor=0483, idProduct=5740
[102918.928779] usb 3-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[102918.928781] usb 3-3.1: Product: snickerdoodle
[102918.928782] usb 3-3.1: Manufacturer: krtkl inc.
[102918.928783] usb 3-3.1: SerialNumber: 00000000001A
[102919.139160] cdc_acm 3-3.1:1.0: This device cannot do calls on its own. It is not a modem.
[102919.139183] cdc_acm 3-3.1:1.0: ttyACM0: USB ACM device
[102919.160636] usbcore: registered new interface driver cdc_acm
[102919.160638] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

Connecting Using screen

$ screen /dev/ttyACM0 115200

Connecting Using minicom

$ minicom /dev/ttyACM0

From within the minicom environment, Ctrl+A, Z can be used to bring up the help and configuration menu which will allow the user to configure the

|                      Minicom Command Summary                      |
|                                                                   |
|              Commands can be called by CTRL-A <key>               |
|                                                                   |
|               Main Functions                  Other Functions     |
|                                                                   |
| Dialing directory..D  run script (Go)....G | Clear Screen.......C |
| Send files.........S  Receive files......R | cOnfigure Minicom..O |
| comm Parameters....P  Add linefeed.......A | Suspend minicom....J |
| Capture on/off.....L  Hangup.............H | eXit and reset.....X |
| send break.........F  initialize Modem...M | Quit with no reset.Q |
| Terminal settings..T  run Kermit.........K | Cursor key mode....I |
| lineWrap on/off....W  local Echo on/off..E | Help screen........Z |
| Paste file.........Y  Timestamp toggle...N | scroll Back........B |
| Add Carriage Ret...U                                              |
|                                                                   |
|             Select function or press Enter for none.              |

The port configuration can be specified by navigating to the configuration menu with 'O' and selecting "Serial port setup" from the configuration menu.

| A -    Serial Device      : /dev/ttyACM0                              |                          
| B - Lockfile Location     : /var/lock                                 |                          
| C -   Callin Program      :                                           |                          
| D -  Callout Program      :                                           |                          
| E -    Bps/Par/Bits       : 115200 8N1                                |                          
| F - Hardware Flow Control : No                                        |                          
| G - Software Flow Control : No                                        |                          
|                                                                       |                          
|    Change which setting?                                              |                          

Connecting Using Putty

Putty is a convenient and simple to use Windows serial client that is capable of providing a console interface with snickerdoodle.

File:Putty config.png

Configuring Console Settings

Once connected to the snickerdoodle console, the settings (console dimensions, speed, etc.) can be configured using stty. To set the console to use the entirety of the terminal window, set the rows and columns to match the terminal window containing the active console.


$ stty cols <Ncolumns> rows <Nrows>

This will set the snickerdoodle console to wrap lines at the edge of the host terminal window and use the entire height of the terminal window to write the rows of terminal output.


$ apt-get install xterm

$ resize

Configure Console on Boot

Add to .bashrc file (adjust terminal as needed)

if [ $(tty) == '/dev/ttyS0' ]; then