My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
0. Perseus server
=================

An attempt to write a I/Q server for Microtelecom Perseus HF Receiver.


The code was derived from John Melton G0ORX/N6LYT code for HPSDR Ozymandias card.
The code uses the REL-0.5 release of libperseus-sdr (written by Nico Palermo IN3NWV), see below for
prerequisite installation.
The glue code has been written by Andrea Montefusco, IW0HDV andrew att montefusco dott com.

A server program in the ghpsdr3 suite of programs is the program
that forms the interface to the hardware. One instance of this program
must be running to communicate with the USRP hardware.

Currently the perseus-server program is a command line program and it has several options.

./perseus_server -h
Allowed options:
-h [ --help ] print usage message
-d [ --debug ] arg (=0) debug level
-r [ --receivers ] arg (=1) # of receivers
-s [ --samplerate ] arg (=96000) samplerate (48000 | 95000 | 96000 | 125000 |
192000 | 250000 )
-t [ --dither ] arg (=0) dither on|off
-p [ --preamp ] arg (=0) preamplifier on|off
-z [ --randomizer ] arg (=0) randomizer on|off




1. PREREQUISITE
===============

To build the server, several prerequisites have to be fullfilled.


Install the libperseus-sdr found on http://code.google.com/p/libperseus-sdr/source/checkout.
Please use the release 0.5 or greater:

cd
svn co http://libperseus-sdr.googlecode.com/svn/tags/REL-0.5 perseus-r0.5
cd perseus-r0.5
./configure
make
sudo make install

Read the perseus-r0.5/README for preliminary tests.


Next install the remaining prerequisite:

sudo apt-get install libportaudio2 portaudio19-dev libsamplerate0 libsamplerate0-dev
sudo apt-get install git-core
sudo apt-get install libqt4-dev
sudo apt-get install libfftw3-3
sudo apt-get install libboost-dev
sudo apt-get install libboost-all-dev

If using more recent distributions (with Qt 4.7 in binary packages):

sudo apt-get install qtmobility-dev

2. BUILD
========


2.1 Extract and build this package
----------------------------------

Untar this package into your home directory:

cd ~
tar -zxvf ~/Download/perseus-hpsdr.tgz
cd perseus-hpsdr
make

To compile on Linux (test done on Ubuntu Linux 10.04):

make


2.2 Preliminary test
--------------------

To run the server you have to submit

$ sudo ./perseus_server
DEBUG: 0
SAMPLERATE: 95000
RECEIVER: 1
DITHER: 0
PREAMP: 0
RANDOMIZER: 0
1 Perseus receiver found
Listening for TCP connections on port 11000

The server looks for an attached (and turned on) Perseus receiver BUT doesn't activate it.



2.3 gpsdr3 package from John Melton
-----------------------------------


To install the package do the following steps:

cd
svn co svn://svn.openhpsdr.org/svn/repos_sdr_hpsdr/trunk/N6LYT/ghpsdr3 ghpsdr3-new
cd ~/ghpsdr3-new/trunk/src/

cd DttSP/
make
cd ../dspserver
patch < ~/perseus-hpsdr/dspserver.patches
make

cd ../QtRadio
# Ubuntu 10.04 LTS
patch < ~/perseus-hpsdr/QtRadio.patches
#
# Warning: on Ubuntu 10.10 and in general on distributions using Qt 4.7,
# apply instead the following patch file
#
patch < ~/perseus-hpsdr/QtRadio.U10.10.patches

qmake-qt4 QtRadio.pro
make


3. RUN
======


We have to run three components: server, dsp processing and graphical user interface.
At the moment you need to run them in three separate terminal windows, strictly in the order shown below:

~/perseus-hpsdr/perseus_server

~/ghpsdr3-new/trunk/bin/dspserver

Allows for few seconds delay in order server complete the hardware setup.
At this point you should already ear

cd ~/ghpsdr3-new/trunk/src/QtRadio ; export QT_RADIO_NO_LOCAL_AUDIO=1 ; ./QtRadio

When the GUI shows up, connect it to the DSP server (Menu Receiver, submenu Connect).


4. Troubleshooting
==================

4.1 perseus-server complains about the libperseus-sdr shared library missing.

Run

sudo ldconfig


4.2 All the process are up and running but no audio is played

Stop all process and rerun only perseus-server with the debug option activated:

sudo ~/perseus/perseus_server -d3

Next, start in another terminal window the DSP:

~/ghpsdr3/trunk/bin/dspserver

into the perseus-server windows you should see the list of audio devices as seen by portaudio library.
Just before of the big list the server signals what device is using:

default input=12 output=12 devices=14


Change log

f97853610ca0 by Andrea Montefusco <and...@montefusco.com> on Nov 1, 2011   Diff
README changed in order to document the
new sample rates.
Go to: 
Project members, sign in to write a code review

Older revisions

ccba702af760 by Andrea M...@montefusco.com) on Feb 13, 2011   Diff
Changes for Ubuntu 10.10
8ea2521eb3c2 by Andrea Montefusco <and...@montefusco.com> on Feb 13, 2011   Diff
First changeset released: Perseus
server.
All revisions of this file

File info

Size: 4463 bytes, 175 lines
Powered by Google Project Hosting