User Tools

Site Tools


tutorials:common:customization:wireless_serial_port

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:common:customization:wireless_serial_port [2013/11/09 09:23]
soloforce [Prerequisite]
tutorials:common:customization:wireless_serial_port [2013/12/23 14:50] (current)
Line 8: Line 8:
 </​WRAP></​WRAP>​ </​WRAP></​WRAP>​
 ===== Abstract ===== ===== Abstract =====
-Sometimes, the serial port cable between Cubieboard and PC is annoying, because it may mess up your desktop. In this tutorial, two similar approaches are presented to guide you to get rid of the annoying cable. Serial-bluetooth module is quite common and cheap these days, and it is really a good choise to make a wirless serial port connection to PC.+Sometimes, the serial port cable between Cubieboard and PC is annoying, because it may mess up your desktop. In this tutorial, two similar approaches are presented to guide you to get rid of the annoying cable, and create a wireless interactive console. In fact, wireless console is quite usefull especially there is no network connection between Cubieboard and PC, or there is no SSH server installed on the Cubieboard. Serial-bluetooth module is quite common and cheap these days, and it is really a good choise to make a wirless serial port connection to PC.
  
-===== Method one: ttyS0 directed to serial-bluetooth module =====+===== Method one: UART0(ttyS0directed to serial-bluetooth module =====
 ==== Prerequisite ==== ==== Prerequisite ====
 === Hardware === === Hardware ===
 +  * This method is only available for Cubieboard1 & Cubieboard2,​ While Cubieboard3(Cubietruck) does not expand out the UART-VCC pin so that unable to power the serial-bluetooth module.
   * Cubieboard side: A serial-bluetooth module, to be attached to Cubieboard'​s TTL serial port. Notice that, this module should be **3.3v powered**, because Cubieboard'​s TTL VCC is 3.3v.   * Cubieboard side: A serial-bluetooth module, to be attached to Cubieboard'​s TTL serial port. Notice that, this module should be **3.3v powered**, because Cubieboard'​s TTL VCC is 3.3v.
 {{ :​tutorials:​common:​customization:​p31108-130501.jpg?​400 |}} {{ :​tutorials:​common:​customization:​p31108-130501.jpg?​400 |}}
Line 20: Line 21:
  
 === Software === === Software ===
-  * Cubieboard side: ttyS0 should be configured as an interactive console, which means the following configurations should be done +Cubieboard side: ttyS0 should be configured as an interactive console, which means the following configurations should be done 
-    ​- ​//​**/​boot/​uEnv.txt**//​ should add extra boot arguments like **//bootargs=console=ttyS0,​115200/​/** +  ​* ​//​**/​boot/​uEnv.txt**//​ should add extra boot arguments like 
-    ​- ​//​**/​etc/​inittab**//​ should add a line like **//T0:​2345:​respawn:/​sbin/​getty -L ttyS0 115200 vt100//** +<​file>​bootargs=console=ttyS0,​115200 ​console=tty0<​/file> 
-  ​* ​PC side: Serial console clients like minicom or gtkterm(recommended)+  ​* ​//​**/​etc/​inittab**//​ should add a line like 
 +<​file>​T0:​2345:​respawn:/​sbin/​getty -L ttyS0 115200 vt100</file> 
 + 
 +PC side: Serial console clients like minicom or gtkterm(recommended)
  
 ==== Configuration & Connection ==== ==== Configuration & Connection ====
Line 37: Line 41:
   ​   ​
 ===== Method two: usb serial console to serial-bluetooth module ===== ===== Method two: usb serial console to serial-bluetooth module =====
-When installed in a case, like [[http://​docs.cubieboard.org/​_detail/​addons/​y.png?​id=addons|this]],​ Cubieboard'​s TTL interface would be blocked and can no longer be plugged in the TTL to USB cable. In this case, we could exploit the USB port to make wireless serial port possible. This method is a bit different from method one previously mentioned, especially on the Cubieboard'​s side. +When installed in a case, like [[http://​docs.cubieboard.org/​_detail/​addons/​y.png?​id=addons|this]],​ Cubieboard'​s TTL interface would be blocked and can no longer be plugged in the TTL to USB cable. In this case, we could exploit the USB port to make wireless serial port possible. This method is a bit different from method one previously mentioned, especially on the Cubieboard'​s side. What's more, this method remains the chance of choosing either TTL serial port or USB serial port for wireless console. In a word, this is a safe and flexible method.
  
 ==== Prerequisite ==== ==== Prerequisite ====
Line 56: Line 60:
  
 Like configurations mentioned in method one, the follwing alteration should be done. Like configurations mentioned in method one, the follwing alteration should be done.
-  * //​**/​boot/​uEnv.txt**//​ should add extra boot arguments like **//bootargs=console=ttyS0,​115200 console=ttyUSB0,​115200 console=tty0/​/**+  * //​**/​boot/​uEnv.txt**//​ should add extra boot arguments like 
 +<​file>​ 
 +bootargs=console=ttyS0,​115200 console=ttyUSB0,​115200 console=tty0 
 +</file>
   * //​**/​etc/​inittab**//​ should add lines like    * //​**/​etc/​inittab**//​ should add lines like 
 <​file>  ​ <​file>  ​
Line 62: Line 69:
   T1:​2345:​respawn:/​sbin/​getty -L ttyUSB0 115200 vt100   T1:​2345:​respawn:/​sbin/​getty -L ttyUSB0 115200 vt100
 </​file>​ </​file>​
 +:!: That above bootargs & two lines will make both TTL serial port(ttyS0) and USB serial port(ttyUSB0) interactive consoles.
 ==== Connection ==== ==== Connection ====
 Both Cubieboard and PC 's USB port will be used for connection. Both Cubieboard and PC 's USB port will be used for connection.
Line 105: Line 113:
   ​   ​
 ===== Conclusion ===== ===== Conclusion =====
-  * method one is simpler, but the TTL port is the only choice for connection.+  * method one is simpler, but the UART TTL port is the only choice for connection.
   * method two needs more hardware, and the boot message such as U-Boot message could never show up, because the USB serial console won't work until the kernel boots up. The advantage is USB connection is much easier and could be expanded by USB hubs.   * method two needs more hardware, and the boot message such as U-Boot message could never show up, because the USB serial console won't work until the kernel boots up. The advantage is USB connection is much easier and could be expanded by USB hubs.
  
tutorials/common/customization/wireless_serial_port.1383960238.txt.gz · Last modified: 2013/12/23 14:50 (external edit)