<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=Serial_console</id>
	<title>Serial console - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=Serial_console"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Serial_console&amp;action=history"/>
	<updated>2026-05-13T13:28:14Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in BECOM Systems Support</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=Serial_console&amp;diff=558&amp;oldid=prev</id>
		<title>Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Serial_console&amp;diff=558&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:12Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 31. Oktober 2023, 10:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de-AT&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=Serial_console&amp;diff=557&amp;oldid=prev</id>
		<title>en&gt;Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Serial_console&amp;diff=557&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:55Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;We use the Kermit program to gain access to the serial console of a device.&lt;br /&gt;
&lt;br /&gt;
= Linux =&lt;br /&gt;
&lt;br /&gt;
With common Linux distributions, you don&amp;#039;t have to install any additional device drivers. The kernel includes drivers for CP210x UART-to-USB converters used in our products.&lt;br /&gt;
&lt;br /&gt;
== kermit ==&lt;br /&gt;
&lt;br /&gt;
=== Install kermit ===&lt;br /&gt;
&lt;br /&gt;
Search for a package named &amp;quot;ckermit&amp;quot; in your Linux distribution and install it.&lt;br /&gt;
&lt;br /&gt;
Kermit&amp;#039;s webpage: [https://www.columbia.edu/kermit/]&lt;br /&gt;
&lt;br /&gt;
=== Connect the board ===&lt;br /&gt;
&lt;br /&gt;
If you connect board and PC via a suitable USB cable, you should see similar lines in the output of your kernel log:&lt;br /&gt;
&lt;br /&gt;
 harald@WS-HP4600-35:~$ dmesg&lt;br /&gt;
 [103187.008040] usb 7-1: new full speed USB device using uhci_hcd and address 8&lt;br /&gt;
 [103187.172349] usb 7-1: configuration #1 chosen from 1 choice&lt;br /&gt;
 [103187.177620] cp2101 7-1:1.0: cp2101 converter detected&lt;br /&gt;
 [103187.288040] usb 7-1: reset full speed USB device using uhci_hcd and address 8&lt;br /&gt;
 [103187.440427] usb 7-1: cp2101 converter now attached to &amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;ttyUSB0&amp;lt;/span&amp;gt;&lt;br /&gt;
 harald@WS-HP4600-35:~$ &lt;br /&gt;
&lt;br /&gt;
Now you may use the device file /dev/ttyUSB0 to connect to the serial console of your board.&lt;br /&gt;
&lt;br /&gt;
=== Start kermit ===&lt;br /&gt;
&lt;br /&gt;
Start kermit and set its configuration.&lt;br /&gt;
&lt;br /&gt;
 $ kermit&lt;br /&gt;
 C-Kermit 8.0.211, 10 Apr 2004, for Linux&lt;br /&gt;
  Copyright (C) 1985, 2004,&lt;br /&gt;
   Trustees of Columbia University in the City of New York.&lt;br /&gt;
 Type ? or HELP for help.&lt;br /&gt;
 (...) C-Kermit&amp;gt;set line /dev/ttyUSB0&lt;br /&gt;
 (...) C-Kermit&amp;gt;set speed 115200&lt;br /&gt;
 /dev/ttyUSB0, 115200 bps&lt;br /&gt;
 (...) C-Kermit&amp;gt;set carrier-watch off&lt;br /&gt;
 (...) C-Kermit&amp;gt;set flow-control none&lt;br /&gt;
 (...) C-Kermit&amp;gt;set prefixing all&lt;br /&gt;
 (...) C-Kermit&amp;gt;set parity none&lt;br /&gt;
 (...) C-Kermit&amp;gt;set stop-bits 1&lt;br /&gt;
 (...) C-Kermit&amp;gt;set modem none&lt;br /&gt;
 (...) C-Kermit&amp;gt;set file type bin&lt;br /&gt;
 (...) C-Kermit&amp;gt;set file name lit&lt;br /&gt;
 (...) C-Kermit&amp;gt;connect&lt;br /&gt;
 Connecting to /dev/ttyUSB0, speed 115200&lt;br /&gt;
  Escape character: Ctrl-\ (ASCII 28, FS): enabled&lt;br /&gt;
 Type the escape character followed by C to get back,&lt;br /&gt;
 or followed by ? to see other options.&lt;br /&gt;
 ----------------------------------------------------&lt;br /&gt;
 &lt;br /&gt;
=== A little helper script ===&lt;br /&gt;
&lt;br /&gt;
The script checks the kernel log for the LAST serial device connected and opens kermit on it. A configuration file for each possible device is required.&lt;br /&gt;
&lt;br /&gt;
*serialterminal.sh (script)&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 SERTERM=`dmesg|grep &amp;quot;converter now attached to ttyUSB&amp;quot;|tail -n 1|sed -e &amp;#039;s/.*ttyUSB/kermit/&amp;#039;`&lt;br /&gt;
 kermit ~/stuff/${SERTERM}USB&lt;br /&gt;
&lt;br /&gt;
*kermit0USB (conf file)&lt;br /&gt;
 set line /dev/ttyUSB0&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 set prefixing all&lt;br /&gt;
 set parity none&lt;br /&gt;
 set stop-bits 1&lt;br /&gt;
 set modem none&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 connect&lt;br /&gt;
&lt;br /&gt;
*kermit1USB (conf file)&lt;br /&gt;
 set line /dev/ttyUSB1&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 set prefixing all&lt;br /&gt;
 set parity none&lt;br /&gt;
 set stop-bits 1&lt;br /&gt;
 set modem none&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 connect&lt;br /&gt;
&lt;br /&gt;
*...&lt;br /&gt;
&lt;br /&gt;
=== Working with the kermit prompt (e.g. serial transfers) ===&lt;br /&gt;
&lt;br /&gt;
We show working with the kermit prompt with an example: Updating Redboot over serial terminal.&lt;br /&gt;
&lt;br /&gt;
*After kermit is connected hit the following keys&lt;br /&gt;
&lt;br /&gt;
 Ctrl + &amp;#039;\&amp;#039;, afterwards &amp;#039;c&amp;#039;&lt;br /&gt;
&lt;br /&gt;
to get back to Kermit&amp;#039;s prompt. To set the serial transfer protocol e.g. to XMODEM, type now&lt;br /&gt;
&lt;br /&gt;
 set protocol xmodem&lt;br /&gt;
&lt;br /&gt;
For sending a file, type e.g.&lt;br /&gt;
&lt;br /&gt;
 send /tftpboot/redboot.bin&lt;br /&gt;
&lt;br /&gt;
After the transfer is complete, you can re-connect to the board by typing&lt;br /&gt;
 c&lt;br /&gt;
or&lt;br /&gt;
 connect&lt;br /&gt;
&lt;br /&gt;
== minicom ==&lt;br /&gt;
&lt;br /&gt;
=== Install minicom ===&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;$: apt-get install minicom&lt;br /&gt;
&lt;br /&gt;
=== Connect the board ===&lt;br /&gt;
&lt;br /&gt;
If you connect board and PC via a suitable USB cable, you should see similar lines in the output of your kernel log:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;$ dmesg&lt;br /&gt;
 [103187.008040] usb 7-1: new full speed USB device using uhci_hcd and address 8&lt;br /&gt;
 [103187.172349] usb 7-1: configuration #1 chosen from 1 choice&lt;br /&gt;
 [103187.177620] cp2101 7-1:1.0: cp2101 converter detected&lt;br /&gt;
 [103187.288040] usb 7-1: reset full speed USB device using uhci_hcd and address 8&lt;br /&gt;
 [103187.440427] usb 7-1: cp2101 converter now attached to &amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;ttyUSB0&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you may use the device file /dev/ttyUSB0 to connect to the serial console of your board.&lt;br /&gt;
&lt;br /&gt;
=== Start minicom ===&lt;br /&gt;
&lt;br /&gt;
Start minicom and set its configuration.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;$ minicom&lt;br /&gt;
&lt;br /&gt;
# configure minicom with pressing CTRL+A and then Z&lt;br /&gt;
# press O for cOnfigure Minicom&lt;br /&gt;
# select Serial port setup&lt;br /&gt;
# change the Serial Device to /dev/ttyUSB0&lt;br /&gt;
# set Hardware Flow Control to No&lt;br /&gt;
# press enter for leave the menue&lt;br /&gt;
# select Save setup as dfl&lt;br /&gt;
&lt;br /&gt;
Now minicom is read to receive data.&lt;br /&gt;
&lt;br /&gt;
= Windows =&lt;br /&gt;
&lt;br /&gt;
==Install device driver==&lt;br /&gt;
Our products use a CP210x UART-to-USB converter from Silicon Labs. You have to install a device driver first. You can download it here: https://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx&lt;br /&gt;
&lt;br /&gt;
==Install terminal program==&lt;br /&gt;
For Windows, there are several tools available you might choose from:&lt;br /&gt;
* TeraTerm: Can be downloaded from https://en.sourceforge.jp/projects/ttssh2/releases/&lt;br /&gt;
* PuTTY: Can be downloaded [https://www.chiark.greenend.org.uk/~sgtatham/putty/download.html here].&lt;br /&gt;
* HTerm: Can be downloaded from [https://www.der-hammer.info/terminal/ Der-Hammer]. This tool provides a deeper insight and allows for easy debugging in case you have problems with your terminal. Possibilities include viewing received data in hex or binary format.&lt;br /&gt;
* Hyperterminal: Use this in case you do not want to install another tool. This comes shipped with most Windows XP installations (Run -&amp;gt; hypertrm.exe) but was dumped in Windows7&lt;br /&gt;
&lt;br /&gt;
== General Setup ==&lt;br /&gt;
*Use a baud rate of 115200.&lt;br /&gt;
*Use 8 data bits, 1 stop bit (8N1).&lt;br /&gt;
*Don&amp;#039;t use any flow control.&lt;br /&gt;
&lt;br /&gt;
== PuTTY ==&lt;br /&gt;
=== Initial Setup ===&lt;br /&gt;
* Download either the package or the single putty.exe file and run it.&lt;br /&gt;
* Click &amp;quot;Serial&amp;quot; and enter the correct COM port (you may find that out using Start -&amp;gt; Run -&amp;gt; compmgmt.msc)&lt;br /&gt;
* In &amp;quot;Speed&amp;quot;, enter 115200&lt;br /&gt;
* In &amp;quot;Window&amp;quot;, change the number of &amp;quot;Lines of scrollback&amp;quot; to 9999 (this will allow you to scroll back further)&lt;br /&gt;
* In &amp;quot;Serial (last option in category)&amp;quot; check that data bits is set to 8, Stop bits is set to 1 and parity is set to None. Set flow control to XON/XOFF or None.&lt;br /&gt;
* Go back to Session, enter a name into the &amp;quot;Saved Sessions&amp;quot; field, then click Save&lt;br /&gt;
=== Further Sessions ===&lt;br /&gt;
* If you followed the instructions above, simply double click on the Save Session and all your settings will be restored.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:i.MX]]&lt;br /&gt;
[[Category:Blackfin_Support]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>