Difference between revisions of "RPI-CONSOLE"

From Land Boards Wiki
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[File:tindie-mediums.png|link=https://www.tindie.com/products/land_boards/raspberry-pi-console-card-rpi-console/]]
 
[[File:tindie-mediums.png|link=https://www.tindie.com/products/land_boards/raspberry-pi-console-card-rpi-console/]]
  
== Raspberry PI Console Card ==
+
[[File:RP-Console-CCA-X1-4955-Ext40-640px.jpg]]
  
 
<video type="youtube">7CgPtWzIAok</video>
 
<video type="youtube">7CgPtWzIAok</video>
  
[[File:RP-Console-CCA-X1-4955-Ext40-640px.jpg]]
+
== Raspberry PI Console Card - Features ==
 
 
== Features ==
 
  
 
* Console port lets you talk to your Raspberry Pi over USB without a keyboard/mouse/monitor or Ethernet connection.
 
* Console port lets you talk to your Raspberry Pi over USB without a keyboard/mouse/monitor or Ethernet connection.
 
** 115200 baud
 
** 115200 baud
 
** Real FTDI chip ([https://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT230X.pdf FT230XS])
 
** Real FTDI chip ([https://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT230X.pdf FT230XS])
 +
* Raspberry Pins
 +
** Pin 8 is TxD (out from Pi)
 +
** Pin 10 us RxD (in to Pi)
 
* USB Mini-B connector
 
* USB Mini-B connector
 
** Mounted on the bottom of the card (See also our Micro USB version)
 
** Mounted on the bottom of the card (See also our Micro USB version)
Line 50: Line 51:
 
== Factory Acceptance Tests ==
 
== Factory Acceptance Tests ==
  
=== Arduino Uno with Sensor Shield ===
+
Procedure to test RPI-Console card
  
Set 2 communications jumpers to COM (not the I2C position below)
+
=== GVSDuino wired to custom board ===
 +
 
 +
[[File:RPI-Console-Test-5459-cropped-640px.jpg]]
 +
 
 +
* Custom [[RASPI-PLUS-GVS-CFG]] Test card to [[GVSDuino]] card wiring
 +
** Wire V5-1 header pin S (pin 3) to GVSDuino GVS pin D3 SIG (TX)
 +
** Wire V5-2 header pin S (pin 3) to GVSDuino GVS pin D2 SIG (RX)
 +
** Wire V5-1 header pin GND (pin 1) to GVSDuino GVS pin D2 GND
 +
** Wire V5-2 header pin GND (pin 1) to GVSDuino GVS pin D3 GND
 +
** Wire V5-1 header pin +5V (pin 2) to GVSDuino GVS pin D2 +5V power
 +
** Wire V5-2 header pin +5V (pin 2) to GVSDuino GVS pin D3 +5V power
 +
* [[GVS-Switch]] to [[GVSDuino]] wiring
 +
**[[GVS-Switch]] Pin 1 (GND) to [[GVSDuino]] J3 pin 6
 +
** [[GVS-Switch]] Pin 2 (VCC) to [[GVSDuino]] J3 pin 2
 +
** [[GVS-Switch]] Pin 3 (RESET*) to [[GVSDuino]] J3 pin 7
 +
 
 +
=== Test Software ===
 +
 
 +
* Push button to reset on [[GVSDuino]] to send out canned message
 +
* Poll for receive character
 +
** When character is received, echo back character
 +
* Loop forever
 +
* [https://github.com/land-boards/lb-Arduino-Code/tree/master/LBCards/RPI-Console/RPI-LOOP2 Code on GitHub]
 +
 
 +
=== Test Procedure ===
 +
 
 +
* Test setup as above
 +
* Test setup powered down
 +
* Install UUT (RPI-Console card being tested)
 +
* Connect USB Mini cable from Test Computer to UUT
 +
* Boards should power up
 +
* Look in Device manager to make sure COM port was added
 +
* Run putty on Test Computer
 +
** Select COM port in putty
 +
** 9600, n, 8, 1
 +
** No handshake
 +
* Hit reset on [[GVS-Switch]] card on 830 point breadboard
 +
* Verify the message comes back
 +
<pre>
 +
The quick brown fox jumped over the lazy dog
 +
0123456789
 +
asdfghjkl
 +
Hit keys to test
 +
</pre>
 +
* Type and verify that the character comes back
 +
* Disconnect USB to RPI-Console
  
 
=== Custom wired RASPI-PLUS-GVS-CFG bare board ===
 
=== Custom wired RASPI-PLUS-GVS-CFG bare board ===
Line 81: Line 127:
 
** V5-1 (pin 1 = GND, pin 2 = +5V, pin 3 = TxD - Serial out from the Arduino)
 
** V5-1 (pin 1 = GND, pin 2 = +5V, pin 3 = TxD - Serial out from the Arduino)
 
** V5-2 (pin 1 = GND, pin 2 = +5V, pin 3 = RxD - Serial in to the Arduino)
 
** V5-2 (pin 1 = GND, pin 2 = +5V, pin 3 = RxD - Serial in to the Arduino)
 
[[File:RPI-Console-Tester-Using-RPP-CFG-wired.png]]
 
 
=== Wire Arduino UNO to custom board ===
 
 
[[File:RPI-CONSOLE-TestStation-Setup-640px.jpg]]
 
 
* Wire V5-1 header pin S (pin 3) to Arduino Shield communications connector pin 3 (TX)
 
* Wire V5-2 header pin S (pin 3) to Arduino Shield communications connector pin 4 (RX)
 
* Wire V5-1 header pin GND (pin 1) to Arduino GND pin
 
* Wire V5-1 header pin +5V (pin 2) to Arduino +5V power
 
 
=== Alternate - Wire GVSDuino to custom board ===
 
 
[[File:RPI-Console-Test-5459-cropped-640px.jpg]]
 
 
* Wire V5-1 header pin S (pin 3) to GVSDuino pin 3 (TX)
 
* Wire V5-2 header pin S (pin 3) to GVSDuino pin 4 (RX)
 
* Wire V5-1 header pin GND (pin 1) to Arduino GND pin
 
* Wire V5-1 header pin +5V (pin 2) to Arduino +5V power
 
 
=== Test Software ===
 
 
* Poll for receive character
 
* When character is received, echo back character
 
* Loop forever
 
* Code on GitHub
 
 
=== Test Procedure ===
 
 
* Test setup as above
 
* Test setup powered down
 
* Install UUT (RPI-Console card being tested)
 
* Disconnect USB cable to Arduino (not used for power)
 
* Install P1 jumper on UUT (power the test station from the RPI-CONSOLE)
 
* Connect USB cable from Test Computer (laptop) to UUT
 
* Boards should power up
 
* Look in Device manager to make sure COM port was added
 
* Run putty on Test Computer (laptop)
 
** Select COM port in putty
 
** 9600, n, 8, 1
 
** No handshake
 
* Hit reset on Arduino Shield or attached to GVSDuino
 
* Verify the message comes back
 
<pre>
 
The quick brown fox jumped over the lazy dog
 
0123456789
 
asdfghjkl
 
Hit keys to test
 
</pre>
 
* Type and verify that the character comes back
 
* Disconnect USB to RPI-Console
 
  
 
== Delete Extra Ports on a Windows machine ==
 
== Delete Extra Ports on a Windows machine ==
Line 141: Line 135:
  
 
From [http://www.fettesps.com/how-to-remove-com-ports-which-are-in-use/ this webpage].
 
From [http://www.fettesps.com/how-to-remove-com-ports-which-are-in-use/ this webpage].
 +
 +
[[file:CommandPrompt_AsAdmin.png]]
  
 
* Open the Command Prompt as administrator and start the Device Manager from the same command prompt.
 
* Open the Command Prompt as administrator and start the Device Manager from the same command prompt.
Line 146: Line 142:
 
# Enter “set devmgr_show_nonpresent_devices=1″ – without the quotes obviously
 
# Enter “set devmgr_show_nonpresent_devices=1″ – without the quotes obviously
 
# Enter “start devmgmt.msc”
 
# Enter “start devmgmt.msc”
 +
 +
[[file:Cmd_Stuff.PNG]]
 +
 
# In the box that opens, select “Show hidden devices” in the ‘view’ menu.
 
# In the box that opens, select “Show hidden devices” in the ‘view’ menu.
 +
 +
[[file:ShowHiddenDevs.png]]
  
 
Now if you expand the section on COM ports, all the COM ports that have ever been created will be displayed, the non present ones being in grey. You can uninstall away anything that you don’t want (right click, select uninstall).
 
Now if you expand the section on COM ports, all the COM ports that have ever been created will be displayed, the non present ones being in grey. You can uninstall away anything that you don’t want (right click, select uninstall).

Latest revision as of 16:03, 31 March 2022

Tindie-mediums.png

RP-Console-CCA-X1-4955-Ext40-640px.jpg

Raspberry PI Console Card - Features

  • Console port lets you talk to your Raspberry Pi over USB without a keyboard/mouse/monitor or Ethernet connection.
    • 115200 baud
    • Real FTDI chip (FT230XS)
  • Raspberry Pins
    • Pin 8 is TxD (out from Pi)
    • Pin 10 us RxD (in to Pi)
  • USB Mini-B connector
    • Mounted on the bottom of the card (See also our Micro USB version)
  • Jumper selectable - power the Pi from your computer's USB port
    • Newer Pi cards may take too much power
  • Transmit/receive LEDs
  • (3) Pi Connector options - extender allows daughtercards to be added on top
    • 26-pin extender connector works with Model A and Model B Pis
    • 40-pin extender connector works with Model A+, Model B+ Pis and the new Pi 2
    • 26-pin non-extender connector works with all Model Pis

Driver

  • Finding your COM port can be a hassle in Windows. Here's how we find the port in Window 8.1
    • Run Device Manager
    • Expand the Ports (COM & LPT)
    • USB Serial Port is the RPI-Console card (COM5 in this instance, your mileage may vary)

RPI-CONSOLE-DeviceManager-04.PNG

Right click on the COM line at Properties to show that the part is an FTDI part and the driver is working properly

RPI-CONSOLE-DeviceManager-01.PNG

Set the baud rate to 115,200 baud, 8 data bits, 1 stop bit

RPI-CONSOLE-DeviceManager-02.PNG

Here are the driver details

RPI-CONSOLE-DeviceManager-03.PNG

Prototype Qualification Tests Tested on a Raspberry Pi Model A+ Able to power the Raspberry Pi Model A+ Able to monitor the boot sequence of a Raspberry Pi Model A+

Factory Acceptance Tests

Procedure to test RPI-Console card

GVSDuino wired to custom board

RPI-Console-Test-5459-cropped-640px.jpg

  • Custom RASPI-PLUS-GVS-CFG Test card to GVSDuino card wiring
    • Wire V5-1 header pin S (pin 3) to GVSDuino GVS pin D3 SIG (TX)
    • Wire V5-2 header pin S (pin 3) to GVSDuino GVS pin D2 SIG (RX)
    • Wire V5-1 header pin GND (pin 1) to GVSDuino GVS pin D2 GND
    • Wire V5-2 header pin GND (pin 1) to GVSDuino GVS pin D3 GND
    • Wire V5-1 header pin +5V (pin 2) to GVSDuino GVS pin D2 +5V power
    • Wire V5-2 header pin +5V (pin 2) to GVSDuino GVS pin D3 +5V power
  • GVS-Switch to GVSDuino wiring

Test Software

  • Push button to reset on GVSDuino to send out canned message
  • Poll for receive character
    • When character is received, echo back character
  • Loop forever
  • Code on GitHub

Test Procedure

  • Test setup as above
  • Test setup powered down
  • Install UUT (RPI-Console card being tested)
  • Connect USB Mini cable from Test Computer to UUT
  • Boards should power up
  • Look in Device manager to make sure COM port was added
  • Run putty on Test Computer
    • Select COM port in putty
    • 9600, n, 8, 1
    • No handshake
  • Hit reset on GVS-Switch card on 830 point breadboard
  • Verify the message comes back
The quick brown fox jumped over the lazy dog
0123456789
asdfghjkl
Hit keys to test
  • Type and verify that the character comes back
  • Disconnect USB to RPI-Console

Custom wired RASPI-PLUS-GVS-CFG bare board

RPI-CONSOLE-TEST-BOARD-640PX.jpg

  • Card is connected to act as a Raspberry Pi emulator
    • Install 20x2 male header going up on board to board connector at top of the board
    • Install the TXS0108EWPR 3.3V<>5V Voltage Translator at U2
    • Install F1 (5V fuse)
    • Install 3.3V regulator at C2 position

VREG pkg.PNG

RPI-CONSOLE-VREG-WIRING.jpg

  • Wire the Vreg
    • VReg pin 1 goes to ground side of C2
    • VReg pin 2 goes to +3.3V side of C2
    • Jumper tab to VReg pin 2
    • Wire VReg pin 3 to V5-8 pin 2 (+5V)
  • Add 47 uF cap from IO16-2 (+5V) and IO16-1 (GND)
  • Install 330 Ohm resistor at R4
  • Install 3mm LED at W jumper (J22-1 to J22-2) position (Cathode of LED to pin 1 of J22)
  • Add wire from UART connector pin 3 to V3-1 pin (TXD on CFG card) (Serial out from Pi)
  • Add wire from UART connector pin 4 to V3-2 pin (RXD on CFG card) (Serial in to Pi)
  • Install 2x3 header at V5-1/V5-2 position
    • V5-1 (pin 1 = GND, pin 2 = +5V, pin 3 = TxD - Serial out from the Arduino)
    • V5-2 (pin 1 = GND, pin 2 = +5V, pin 3 = RxD - Serial in to the Arduino)

Delete Extra Ports on a Windows machine

  • Windows assigns new ports and keeps old ports.
  • We tested over a hundred cards and ended up with a lot of unused serial ports.
  • If you have a lot of serial ports that you no longer use, you can return them to the pool for future use.

From this webpage.

CommandPrompt AsAdmin.png

  • Open the Command Prompt as administrator and start the Device Manager from the same command prompt.
  1. Right-click “Command Prompt” in Accessories and choose “Run as Administrator”
  2. Enter “set devmgr_show_nonpresent_devices=1″ – without the quotes obviously
  3. Enter “start devmgmt.msc”

Cmd Stuff.PNG

  1. In the box that opens, select “Show hidden devices” in the ‘view’ menu.

ShowHiddenDevs.png

Now if you expand the section on COM ports, all the COM ports that have ever been created will be displayed, the non present ones being in grey. You can uninstall away anything that you don’t want (right click, select uninstall).

Specs

External links

Troubleshooting

Raspberry Pi 3 problem described below (with solution):

With the release of the Raspberry Pi 3 the original hardware UART from the Broadcom processor 
has been reassigned to the Bluetooth chipset and the UART output on the GPIO pins now uses a mini-uart port. 
The mini-uart doesn't have a separate clock divisor and uses the core clock frequency.

Assembly Sheet