Showing posts with label lapdock. Show all posts
Showing posts with label lapdock. Show all posts

Thursday, 31 January 2013

WSJT on the RPI/Lapdock under Raspian revisited

While comissioning the Atrix Lapdock I needed to install WSJT. I had similar issues with the version currently at the trunk of the svn not installing properly, There were no clues on the SVN as to what the latest stable release was so I found out what version I had previously used (2589)and installed that as follows:-


 svn co svn://svn.berlios.de/wsjt/trunk -r2589

 cd ../trunk

./configure --with-portaudio-include-dir=/usr/include --with-portaudio-lib-dir=/usr/lib/arm-linux-gnueabihf

it did a whole load of things starting at "Compiling wsjt" and ended with "Installing into: /usr/local"

still in trunk:-:

make clean

make

after it finishes make sure you have permissions to execute  ../trunk/wsjt.py:-

sudo chmod 777 wsjt.py

Even though the serial port isnt used, WSJT still tries to talk to it so make sure /dev/ttyAMA0 permissions are set appropriately
to launch WSJT:-

./wsjt.py

Tuesday, 29 January 2013

WSPR on the RPI/Lapdock under Raspian Revisited


Having got the Lapdock working I decided to install the latest debian package and reinstall WSPR

2012-12-16-wheezy-raspbian so that was downloaded and installed. At installation time I took the opportunity to overclock the board at 1GHz and in the same menu allow the memory space to fill ALL the memory card (if you dont,  you only have 2GB to use, even on a 16GB card!


sudo apt-get update

sudo apt-get install build-essential subversion python2.7-dev python-numpy python-imaging-tk python-pmw libportaudio2 portaudio19-dev libsamplerate0-dev gfortran cl-fftw3 python-dev libhamlib-utils
svn co http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr -r2840

(trying to load the current revision ie omitting "-r2840" software wouldnt build)
cd wspr
./configure --with-portaudio-include-dir=/usr/include --with-portaudio-lib-dir=/usr/lib/arm-linux-gnueabihf

At this point the Makefile that configure created needs to be edited so the RPI uses the hardware floating point processor

vi Makefile (edit wouldnt work on my machine on this file)
make sure line 5 reads:-
FFLAGS = -g -O2 -fno-range-check -ffixed-line-length-none -Wall -Wno-character-truncation -Wno-conversion -Wtabs -fPIC -mfloat-abi=hard

make sure line 9 reads:-
CFLAGS = -Wall -O0 -g -Wall -O0 -g -mfloat-abi=hard



sudo make install 

to launch wspr

./wspr

Again i used the imic as the audio input/output
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: system [iMic USB audio system], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: system [iMic USB audio system], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

works fine, nice to have a compact system for wspr

Monday, 28 January 2013

Raspberry Pi Laptop!

Although the RPI is small, by the time keyboard, mouse and HDMI display has been added its quite a big setup

Searching the internet I found information http://kimondo.co.uk/raspberry-pi-modmypi-case-motorola-atrix-lapdock-raspberry-pi-laptop/  on how to use a Motorola Atrix Lapdock as a display/keyboard/display for the RPI. They were originally intended as a "docking station" for the Motorola Atrix Android phone and cost around $250. They never really caught on,  so they are available on the internet for a greatly reduced price, I paid $50 (shipped) for mine.

The unit has an external charger for the onboard battery, which can be used to power the RPI. On the back panel are a pair of FEMALE type A USB connectors, a MALE micro USB connector  and a MALE micro HDMI connector.

3 cable systems are needed for the RPI:- USB, Power and HDMI

I managed to source a female to female micro HDMI adaptor and a short MALE micro HDMI to MALE regular HDMI  connector that plugs into the RPI. HDMI socket

I also obtained a FEMALE micro USB to MALE type A USB cable which allows me to take care of the RPI USB connection

I then assembled the power cable harness. I used another FEMALE  micro  USB to USB cable and spliced into it a MALE micro USB  connector cable that plugs into the RPI power connector

All was all connected together, an SD card with the latest debian release was inserted,  the Lapdock saw the HDMI activity and the display showed the RPI boot sequence. Success!

When finished booting, I then plugged in the USB wifi adaptor that normally fits into the RPI into the USB connector on the back of the Lapdock. and rebooted. It connected fine to my Wifi so we were in business

To test the Video quality i installed XBMC on an SD card and configured it




I then  looked at tidying up the cables. Accidentally I found out that if a micro female USB connected to the lapdock was connected directly to the regular sized USB port on the RPI the RPI was powered up AND it still saw the USB wifi dongle on the Lapdock