summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-01-26 16:32:18 +0100
committermakefu <github@syntax-fehler.de>2015-01-26 16:32:18 +0100
commita2e6924aeadbf8393500e4216e0aa1f6f8093e9f (patch)
treef0a61e5c174de0802099f404981a4a0cbfb524ca
parent30f110b93bb50ae10e3b1d746710ffeab12265ae (diff)
bump
-rw-r--r--content/img/before_after_softkeyboard.jpgbin0 -> 628242 bytes
-rw-r--r--content/img/completed.jpgbin0 -> 1062085 bytes
-rw-r--r--content/img/videograbber_on_raspi.jpgbin1049117 -> 924438 bytes
-rw-r--r--content/img/vlc_ntsc.pngbin0 -> 27413 bytes
-rw-r--r--content/posts/software-kvm-switch.rst94
5 files changed, 79 insertions, 15 deletions
diff --git a/content/img/before_after_softkeyboard.jpg b/content/img/before_after_softkeyboard.jpg
new file mode 100644
index 0000000..e494f9c
--- /dev/null
+++ b/content/img/before_after_softkeyboard.jpg
Binary files differ
diff --git a/content/img/completed.jpg b/content/img/completed.jpg
new file mode 100644
index 0000000..2121f30
--- /dev/null
+++ b/content/img/completed.jpg
Binary files differ
diff --git a/content/img/videograbber_on_raspi.jpg b/content/img/videograbber_on_raspi.jpg
index 90ad1ae..fd5d7f8 100644
--- a/content/img/videograbber_on_raspi.jpg
+++ b/content/img/videograbber_on_raspi.jpg
Binary files differ
diff --git a/content/img/vlc_ntsc.png b/content/img/vlc_ntsc.png
new file mode 100644
index 0000000..ed594ab
--- /dev/null
+++ b/content/img/vlc_ntsc.png
Binary files differ
diff --git a/content/posts/software-kvm-switch.rst b/content/posts/software-kvm-switch.rst
index b4943f6..ef4a4a1 100644
--- a/content/posts/software-kvm-switch.rst
+++ b/content/posts/software-kvm-switch.rst
@@ -17,28 +17,35 @@ control a virtual USB keyboard of a headless server or embedded system.
.. image:: /img/videograbber_on_raspi.jpg
:width: 60%
:alt: video and soft keyboard attached to raspi
- :align: middle
+ :align: center
I am using a 32u4 turned into a software keyboard and a Composite Video grabber to
capture the output of the system to supervise.
-*A fair Warning:* Be aware that the video image is very crappy and the software keyboard code is
-a WIP.
+*A fair Warning:* Be aware that the video image is very crappy and the software
+keyboard code is a WIP.
Parts list
----------
All you need are the following things:
For the soft keyboard input:
-1. a 32u4 microcontroller like the `arduino pro micro`_
-2. a cheap `USB-TTL adapter`_
+
+1. a 32u4 microcontroller like the `arduino pro micro`_ (`amazon US <http://www.amazon.com/dp/B00Q9YBEX8/?tag=krebsco-20>`__)
+2. a cheap `USB-TTL adapter`_ (`amazon US <http://www.amazon.com/dp/B00F6PO9WY/?tag=krebsco-20>`__)(`aliexpress <http://s.click.aliexpress.com/klk/AIaqvjqVz>`__)
For capturing video:
+
1. a video grabber with the STK1160 chipset (for linux support)
-I asked the sellers on aliexpress and found `this videograbber`_ which uses
-the chipset needed.
-2. a HDMI-to-AV_ (recommended) and optionally a VGA-to-HDMI_ box to capture
-output other than the one from a Raspberry Pi which has native composite output.
+ I asked the sellers on aliexpress and found `this videograbber`_ which uses
+ the chipset needed. EDIT: it seems they are sold at amazon a `similar grabber`_
+ (`amazon US <http://www.amazon.com/dp/B002H3BSCM/?tag=krebsco-20>`__) with the right chipset.
+ It is twice the price but it is in your inbox in 2 days.
+2. a HDMI-to-AV_ (`amazon US <http://www.amazon.com/dp/B0092KN0AG/?tag=krebsco-20>`__)
+ (`aliexpress <http://s.click.aliexpress.com/klk/fmMVfAeQJ>`__) and
+ optionally a VGA-to-HDMI_ (`amazon US <http://www.amazon.com/dp/B00K3OP77Y/?tag=krebsco-20>`__)
+ (`aliexpress <http://s.click.aliexpress.com/klk/qjEYZ3bEA>`__) box to capture
+ output other than the one from a Raspberry Pi which has native composite output.
Setup
@@ -49,7 +56,16 @@ Setup
Attach the USB-TTL adapter to the 32u4 by connecting both GND , Pin 9 to the
USB-TTL TX and pin 10 to USB-TTL RX.
-Now flash the passthrough firmware for the 32u4:
+You can either plug it together with jumper wires or do a real cabeling from
+the beginning:
+
+.. image:: /img/before_after_softkeyboard.jpg
+ :alt: before/after cleanup of usb-ttl to 32u4
+ :width: 90%
+ :align: center
+
+
+Now it is time flash the passthrough firmware for the 32u4:
.. code-block:: bash
@@ -66,9 +82,57 @@ Get the passthrough software running on your computer:
pip install hg+http://bitbucket.org/pygame/pygame
python here.py
+**Video Grabbing**
+
+The video capturing is very straight forward, attach the videograbber to the
+fitting hole on the HDMI-to-Composite to capture HDMI video. Put the switch to
+NTSC for best performance.
+
+Optionally attach the vga-to-hdmi box to the hdmi-to-composite box to capture
+VGA video.
+
+On your computer, open VLC and configure it to start the NTSC video stream:
-.. _arduino pro micro:
-.. _USB-TTL adapter:
-.. _this videograbber:
-.. _HDMI-to-AV:
-.. _VGA-to-HDMI:
+.. image:: /img/vlc_ntsc.png
+ :alt: NTSC config of vlc
+ :align: center
+
+
+**By the Powers Combined...**
+
+To make some real use of it, first start the **here.py** and then **vlc**. The
+black window will stay in foreground and you can write into while you can see
+the video of the device. And there you have it, your own low-budged software KVM
+you can actually carry around.
+
+Conclusion
+----------
+This is the first prototype:
+
+.. image:: /img/completed.jpg
+ :width: 60%
+ :alt: everything put together on a table
+ :align: center
+
+When you put everything on a table it sure is a huge mess, the next step for me
+is to put it in a nice package and be happy with it. In the end there is only
+one usb-cable going to the controlling computer and one USB and Monitor cable
+going to the computer to be controlled.
+
+If you are looking for something more *polished* you can have a look at
+the `Atrix Lapdock`_ (`amazon US <http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=atrix+lapdock&tag=kebsco-21>`__). I got mine really cheap in clearance sale (60€) maybe
+you are lucky too.
+
+You will need a `microHDMI-to-HDMI Adapter`_ and USB-female-to-USB-Male_ cable.
+Once the adapters have arrived i will try to mod it into a Hardware KVM you can
+carry around.
+
+.. _arduino pro micro: http://www.amazon.de/dp/B00JMOEED4/?tag=krebsco-21
+.. _USB-TTL adapter: http://www.amazon.de/dp/B008RF73CS/?tag=krebsco-21
+.. _this videograbber: http://www.aliexpress.com/item/Free-Shipping-USB-2-0-video-card-capture-grabber-Adapter-of-chipset-STK1160-for-TV-VHS/1336539757.html
+.. _similar grabber: http://www.amazon.de/dp/B002RX49AU/?tag=krebsco-21
+.. _HDMI-to-AV: http://www.amazon.de/dp/B00O8RBZM8/?tag=krebsco-21
+.. _VGA-to-HDMI: http://www.amazon.de/dp/B00LC48NJS/?tag=krebsco-21
+.. _Atrix Lapdock: http://www.amazon.de/Motorola-A-860LAPDOCK-DE3A-Atrix-Netbook-Dock/dp/B004ZB8SYU
+.. _microHDMI-to-HDMI Adapter:
+.. _USB-female-to-USB-Male: