Project

General

Profile

GettingStarted » History » Version 2

laforge, 02/19/2016 10:50 PM

1 1 laforge
= Firmware build =
2
3
 * check out at91lib.git and osmo-sdr.git into the same ancestor directory
4
 * change to osmo-sdr/firmware/sdr-test-project
5
 * 'make flash'
6
 * use rum-ba to flash it:
7
  * rumba /dev/ttyACM0 flashmcu osmo-sdr-test-osmo-sdr-at91sam3u4-flash.bin
8
9
= Firmware usage guide =
10
11
== Serial console ==
12
13
On the serial console, you can enter three types of commands:
14
 * actions denoted by ! at the line end
15
 * getting a value, denoted by a ? at the line end
16
 * setting a value in key=value notation
17
18
A list of commands can be obtained by entering ? on an empty line
19
20
Enter always re-sets the parser, so you can abort any unfinished command with enter
21
22
=== Examples ===
23
24
{{{
25
tuner.init!
26
tuner.freq=88300000
27
tuner.gain=2,2,2,2,2,2
28
ssc.start!
29
}}}
30
=== Reference ===
31
{{{
32
?
33
Supported commands:
34
tuner.init Initialize the tuner
35
tuner.freq Tune to the specified frequency
36
tuner.gain Tune to the specified gain
37
si570.freq Change the SI570 clock frequency
38
si570.dump Dump SI570 registers
39
fpga.dump Dump FPGA registers
40
ssc.start Start the SSC Receiver
41
ssc.stats Statistics about the SSC
42
}}}
43
44
45
== Taking a capture ==
46
47
 1. flash the firmware
48
 1. connect the device to usb, it should enumerate as usb audio device
49
 1. connect to the UART
50
 1. issue the following commands once
51 2 laforge
   1. {{{tuner.init!}}}
52
   1. {{{tuner.freq=88300000}}}
53
 1. start your audio recording app, e.g. {{{arecord -c 2 -f S16_LE -D hw:1,0 foo.wav}}}
54 1 laforge
 1. quickly enter ssc.start!
55
56
The bottom green led under the antenna socket should be dark green, not completely off.
57
58
 
Add picture from clipboard (Maximum size: 48.8 MB)