USB to Raspberry Pi Console Connection for Java Embedded Development

Here's a great way to connect a USB cable to the RPi Console making a two-way connection for console input/output for your Java Embedded Development.

Just follow the hint that Wolf Paulus gives in his blog post (photo is from Wolf Paulus also)

See: Serial Connections to RPi

For Java Embedded development, the easiest way I found (which I told Gary C. about recently) is to use an FTDI Breakout Board with a USB port.

Here are the steps:

1. Buy these parts:
OSEPP FTDI Breakout Board $15.99
http://www.frys.com/product/6997547?site=sr:SEARCH:MAIN_RSLT_PG

Set of Jumper Wires $12.99
http://www.frys.com/product/7367744?site=sr:SEARCH:MAIN_RSLT_PG

SIIG 2 Amp/2 Port USB Adaptor
http://www.frys.com/product/7182042?site=sr:SEARCH:MAIN_RSLT_PG

Micro USB cable
http://www.frys.com/product/6151789?site=sr:SEARCH:MAIN_RSLT_PG


2. Make sure the jumper on the FTDI Breakout is configured for 3.3 volts.

3. Use the jumper wires to make 2 connections from the FTDI Breakout 
Board to the RPi:

From FTDI 3.3V TXD to (GPIO Pin 8)
From FTDI 3.3V RXD to (GPIO Pin 10)

See this Web reference:
http://wolfpaulus.com/journal/embedded/raspberry_serial

4.Connect one end of a USB cable into the FTDI and the other 
end into the Windows/Mac/Linux PC. 

5. Then use PuTTy or minicom on a Windows/Mac/Linux PC with a 
new connection to the right serial port (Ex. /dev/ttyUSB0 on a 
Linux PC or COM5/COM6/COM?? on Windows PC) using these serial 
connection settings 115200 bps 8-N-1.

6. Hit return a couple times to get the console prompt.  
Make sure the RPi is properly powered with it's AC adapter 
(not connected to a computer for power since only the AC 
adapter that comes with the RPi has enough current to drive 
it for this use).

VoilĂ ! You have a USB connection to the RPi console to do your Java Embedded programming. Nifty, huh?

Comments:

Hi sir! I've a question about my finishing project in school: "I've to control any USB device with Java (with NetBeans). That is, when a webcam or a USB fan is connected to the USB port, my Java program must detect and control them. Actually, control means ON/OFF." Which packages, classes and libraries should I use? I'm new at Java, but this is my last chance to finish the school. Please help me, I'm begging to you. I hope you will help me...

Posted by guest on January 31, 2013 at 03:43 AM PST #

Hi, the best I can do is send you some hints that you might use to finish your school project, but I don't think there is much direct help I can give you since this is your school project to complete and to be graded on.

One hint is that you should pick the easiest option. To me it looks like the easiest choice is to turn on and off the USB fan. Then, you should use the Java RXTX package with your app that you write to control that USB fan.

See:
http://rxtx.qbang.org/

Hope that helps! Good luck on your project! Hope you get an "A".

Hinkmond

Posted by Hinkmond Wong on January 31, 2013 at 12:50 PM PST #

Great idea!

Posted by Martin on February 01, 2013 at 04:33 PM PST #

Post a Comment:
Comments are closed for this entry.
About

Hinkmond Wong's blog on making Machine to Machine (M2M) and the Incredible Internet of Things (IoT) smarter with Java Embedded Technologies

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
3
4
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today