Serial console

From SolidRun CuBox Wiki
Revision as of 01:29, 26 March 2012 by Lundman (Talk | contribs)

Jump to: navigation, search

Contents

Preparation

Connect CuBox to your computer via a USB to micro-USB connector. CuBox has a built-in USB to serial port RS-232 controller based on Prolific PL2303. The default configuration is 115200 bps, 8bits, no-stop bit and both hardware and software flow-control disabled. The port is self powered, meaning you don't need to have CuBox powered but the Prolofic controller gets it's power from the computer and it will be recognized accordingly.

Linux

In Linux, once the cable is connected, there should be a new /dev/ttyUSB* device added. You can check which one by running

 dmesg

and you should get something like -

 usb 1-1.1: new full speed USB device using ehci_hcd and address 15
 usb 1-1.1: configuration #1 chosen from 1 choice
 pl2303 1-1.1:1.0: pl2303 converter detected
 usb 1-1.1: pl2303 converter now attached to ttyUSB0

Notice the ttyUSB0 at the last line, this means now that your CuBox now is connected via /dev/ttyUSB0 Now lets open a console, you can choose minicom, putty or others (Linux has a handful of those). If you don't have them installed, you can do so by running (under Debian/Ubuntu or other apt based distro) -

 sudo apt-get install putty
 putty -serial -sercfg 115200,8,n,1 /dev/ttyUSB0

or

 sudo apt-get install minicom
 minicom -s
 (choose 'Serial port setup')
 (Click A, and fill in serial device - for example /dev/ttyUSB0)
 (Click E, and choose 115200 8N1 by click E,Q, then enter)
 (Click F to disable Hardware Flow Control)
 (If needed, click G to disable Software Flow Control)
 (Press enter)
 (Now press on 'Save setup as dfl'. Next time you run minicom without the '-s' flag, the saved parameters will be used)
 (Press exit, which exits the configuration and enters the console

Windows

Setting up communication with CuBox and Windows

 Download USB driver from: [1]
 Download Putty application: [2]

Setup Putty to be able to communicate with your CuBox:

 Select serial as connection type.
 Serial line: COMXX (where XX is the number of the serial port that windows assign to the new port)
 Speed : 115200

Save the session with some funny name (CuBox should work). Open the session using the Open button. Done!

Mac

The Cubox has a PL2303 (Prolific Technology) Drivers can be obtained here [3] You can avoid a reboot if you load the kext yourself:

# cd /System/Library/Extensions
# kextload ProlificUsbSerial.kext
# dmesg

Use your terminal program of choice. OSX ships with screen, or install minicom.

screen /dev/tty.usbserial 115200
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox