GettingStarted » History » Version 4
laforge, 02/19/2016 10:51 PM
1 | 1 | laforge | |
---|---|---|---|
2 | 4 | laforge | h1. Firmware build |
3 | 1 | laforge | |
4 | |||
5 | 4 | laforge | * check out at91lib.git and osmo-sdr.git into the same ancestor directory |
6 | * change to osmo-sdr/firmware/sdr-test-project |
||
7 | * 'make flash' |
||
8 | * use rum-ba to flash it: |
||
9 | ** rumba /dev/ttyACM0 flashmcu osmo-sdr-test-osmo-sdr-at91sam3u4-flash.bin |
||
10 | 1 | laforge | |
11 | 4 | laforge | |
12 | h1. Firmware usage guide |
||
13 | |||
14 | |||
15 | |||
16 | h2. Serial console |
||
17 | |||
18 | |||
19 | 1 | laforge | On the serial console, you can enter three types of commands: |
20 | 4 | laforge | * actions denoted by ! at the line end |
21 | * getting a value, denoted by a ? at the line end |
||
22 | * setting a value in key=value notation |
||
23 | 1 | laforge | |
24 | A list of commands can be obtained by entering ? on an empty line |
||
25 | |||
26 | Enter always re-sets the parser, so you can abort any unfinished command with enter |
||
27 | |||
28 | |||
29 | 4 | laforge | h3. Examples |
30 | |||
31 | |||
32 | <pre> |
||
33 | 3 | laforge | > tuner.init! |
34 | > tuner.freq=88300000 |
||
35 | > tuner.gain=2,2,2,2,2,2 |
||
36 | > tuner.freq? |
||
37 | tuner.freq:88299997 |
||
38 | 4 | laforge | </pre> |
39 | |||
40 | h3. Reference |
||
41 | |||
42 | <pre> |
||
43 | 3 | laforge | ? |
44 | Supported commands: |
||
45 | tuner.init -- Initialize the tuner |
||
46 | tuner.freq -- Tune to the specified frequency |
||
47 | 1 | laforge | tuner.gain -- Tune to the specified gain |
48 | 3 | laforge | tuner.flt_bw_mix -- Filter bandwidth (Mixer) |
49 | tuner.flt_bw_chan -- Filter bandwidth (Channel) |
||
50 | 1 | laforge | tuner.flt_bw_rc -- Filter bandwidth (RC) |
51 | si570.freq -- Change the SI570 clock frequency |
||
52 | si570.dump -- Dump SI570 registers |
||
53 | 3 | laforge | fpga.dump -- Dump FPGA registers |
54 | 1 | laforge | fpga.pwm1_div -- PWM divider, Freq = 80MHz/(div+1) |
55 | fpga.pwm1_duty -- PWM duty cycle |
||
56 | fpga.pwm2_div -- PWM divider, Freq = 80MHz/(div+1) |
||
57 | 3 | laforge | fpga.pwm2_duty -- PWM duty cycle |
58 | fpga.adc_clkdiv -- FPGA Clock Divider for ADC (80 MHz/CLKDIV) |
||
59 | fpga.adc_acqlen -- Num of SCK cycles nCS to AD7357 is held high betewen conversions |
||
60 | ssc.start -- Start the SSC Receiver |
||
61 | ssc.stop -- Start the SSC Receiver |
||
62 | ssc.stats -- Statistics about the SSC |
||
63 | ssc.dump -- Dump SSC DMA registers |
||
64 | 4 | laforge | </pre> |
65 | 1 | laforge | |
66 | |||
67 | |||
68 | 4 | laforge | h2. Taking a capture |
69 | |||
70 | |||
71 | 1 | laforge | 1. flash the firmware |
72 | 1. connect the device to usb, it should enumerate as usb audio device |
||
73 | 1. connect to the UART |
||
74 | 2 | laforge | 1. issue the following commands once |
75 | 4 | laforge | <pre> |
76 | <pre> |
||
77 | <pre> |
||
78 | 1 | laforge | |
79 | You can re-tune the frequency and/or issue other commands while the transfer of samples is running. |
||
80 | |||
81 | The bottom green led under the antenna socket should be dark green, not completely off. |
||
82 | |||
83 |