-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
148 lines (116 loc) · 3.09 KB
/
README
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
#
# Perseus SDR
#
# GNU autoconf/automake package
#
# Andrea Montefusco IW0HDV (andrew at montefusco dot com)
#
#
# Install compiler and tools (Debian and derived distributions, e.g. Ubuntu)
#
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc g++ make manpages-dev autoconf automake libtool subversion
#
# Install the prerequisite library
#
sudo apt-get install libusb-1.0-0-dev
#
# Fedora Core 11
#
# Get root status with the method you prefer, for example
su - root
# next install the prerequisite packages:
yum update
yum install gcc gcc-c++ man-pages autoconf automake libtool subversion
yum install libusb1 libusb1-devel
#
# Mandriva 2010
#
# Get root status with the method you prefer, for example
su - root
# next install the prerequisite packages:
urpmi gcc gcc-c++ man-pages autoconf automake subversion libtool make
urpmi -a libusb1
#
# download, compile and install the Perseus library
#
cd
svn checkout http://libperseus-sdr.googlecode.com/svn/trunk/ libperseus-sdr
cd libperseus-sdr
sh bootstrap.sh
./configure && make
sudo make install
sudo ldconfig
# back to home directory
cd
#
# test the library
# note: the outputs shown below is in case the Perseus hardware is not linked
#
perseustest_dyn
# perseus: perseus_init()
# perseus: Found device with VID/PID 0000:0000 on BUS1 ADDR1
# perseus: Found device with VID/PID 0000:0000 on BUS2 ADDR1
# perseus: Found device with VID/PID 0000:0000 on BUS3 ADDR1
# perseus: Found device with VID/PID 0000:0000 on BUS4 ADDR1
# perseus: Found device with VID/PID 0000:0000 on BUS5 ADDR1
# perseus: poll libusb thread started...
# perseus: setting thread priority to 99...
# perseus: done
# 0 Perseus receivers found
# No Perseus receivers detected
# perseus: perseus_exit()
# ...
# ...
#
# setup udev system
# (for reference only ! now the make install procedure takes care to do that)
#
sudo groupadd perseususb
sudo usermod -a -G perseususb `whoami`
sudo udevadm control --reload-rules
#
# Now log off and on again in order to finally become member of 'perseususb'.
# A reboot is not needed.
#
#
# now, link your Perseus receiver to USB interface and plug the power supply
# you have to hear a click, led on receiver's front panel lights
#
# looking at filtered lsusb output you should see the following:
# (Bus and Device figures can vary)
lsusb | grep Cypress
Bus 001 Device 007: ID 04b4:325c Cypress Semiconductor Corp.
#
# now try again the test program, you should see a lot of output (not shown here)
# and, overall, hear the relays clicking
#
cd
perseustest_dyn
# ...
#
# take care to one of the last messages, it should read as follows:
#
# perseus: Elapsed time: 10.003243 s - kSamples read: 2499 - Rate: 249.9 kS/s
#
# that above ends the build procedure.
#
#
# what if my distro doesn't support a binary package for libusb 1.0 ?
#
# go your home dir
cd ~
# download the package
wget http://downloads.sourceforge.net/libusb/libusb-1.0.6.tar.bz2
# unzip it
bunzip2 libusb-1.0.6.tar.bz2
# create the directory tree
tar -xvf libusb-1.0.6.tar
# go into it
cd libusb-1.0.6
# configure, compile and install
./configure
make
sudo make install
sudo ldconfig