Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
project:single_boards [2016/03/20 00:08] over23 |
project:single_boards [2016/05/25 22:43] over23 [Project][Active][single_boards] : restore and backup SD card [defined for mac, but apply for linux simillary |
||
---|---|---|---|
Line 27: | Line 27: | ||
SemioTex:Desktop pavouk$ sudo dd bs=1m if=~/Desktop/Raspbian_For_BPI_M1_V4.0.img of=/dev/disk3 | SemioTex:Desktop pavouk$ sudo dd bs=1m if=~/Desktop/Raspbian_For_BPI_M1_V4.0.img of=/dev/disk3 | ||
- | </code> | ||
- | |||
* u can check progress with CTRL+T [SIGINFO] | * u can check progress with CTRL+T [SIGINFO] | ||
==== Configure Mac to be able to directly conenct to Picka over ETH through trunderbolt ==== | ==== Configure Mac to be able to directly conenct to Picka over ETH through trunderbolt ==== | ||
Line 68: | Line 66: | ||
</code> | </code> | ||
+ | ===== MacOSX Backup & restore Banana PI SD card ===== | ||
+ | * https://smittytone.wordpress.com/2013/09/06/back-up-a-raspberry-pi-sd-card-using-a-mac/ | ||
+ | |||
+ | ====== Backup ====== | ||
+ | |||
+ | <code> | ||
+ | # to list partitions | ||
+ | |||
+ | diskutil list | ||
+ | |||
+ | #/dev/disk4 (internal, physical): | ||
+ | # #: TYPE NAME SIZE IDENTIFIER | ||
+ | # 0: FDisk_partition_scheme *7.9 GB disk4 | ||
+ | # 1: Windows_FAT_32 boot 58.7 MB disk4s1 | ||
+ | # 2: Linux 7.9 GB disk4s2 | ||
+ | |||
+ | #in our case it was /dev/disk4 | ||
+ | #CTRL+T as SIGINFO could be used to check progress | ||
+ | |||
+ | sudo dd if=/dev/disk4 bs=1m | gzip > ~/1_Labka/banana_picka_25.5.2016.img.gz | ||
+ | </code> | ||
+ | |||
+ | ====== Restore ====== | ||
+ | * **remember, SD card should be unmounted** | ||
+ | <code> | ||
+ | # first check where SD card is mounted by | ||
+ | diskutil list | ||
+ | # lets it be again /dev/disk4 | ||
+ | gzip -dc ~/1_Labka/banana_picka_25.5.2016.img.gz | sudo dd of=/dev/disk4 bs=1m | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | ===== remove password to ssh ===== | ||
https://wiki.archlinux.org/index.php/Banana_Pi#Network | https://wiki.archlinux.org/index.php/Banana_Pi#Network | ||
* ssh root@IP | * ssh root@IP | ||
* password is bananapi | * password is bananapi | ||
- | ===== remove password to ssh ===== | + | |
mkdir ~/.ssh | mkdir ~/.ssh | ||
chmod 700 ~/.ssh | chmod 700 ~/.ssh | ||
Line 235: | Line 267: | ||
| | ||
amixer -Dpulse | amixer -Dpulse | ||
- | ===== GnuRadio on BannanaPI ===== | ||
- | * http://gnuradio.4.n7.nabble.com/Compiling-GNURadio-on-BananaPI-td51866.html | ||
- | |||
- | edit like this | ||
- | deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi | ||
- | patch whole system | ||
- | apt-get update | ||
- | apt-get upgrade | ||
- | apt gnuRadio | ||
- | apt-get install gnuradio | ||
- | |||
- | ==== DSD : Digital Speech Decoder ==== | ||
- | * http://www.george-smart.co.uk/wiki/Digital_Speech_Decoder | ||
- | |||
- | not tested: | ||
- | <code> | ||
- | sudo apt-get install cmake | ||
- | cd ~ | ||
- | mkdir dsd-src | ||
- | cd dsd-src | ||
- | wget -O mbelib.zip https://github.com/szechyjs/mbelib/archive/master.zip | ||
- | wget -O dsd.zip https://github.com/szechyjs/dsd/archive/master.zip | ||
- | unzip mbelib.zip | ||
- | unzip dsd.zip | ||
- | rm *.zip | ||
- | cd mbelib-master | ||
- | mkdir build | ||
- | cd build | ||
- | cmake .. | ||
- | make | ||
- | sudo make install | ||
- | sudo ldconfig /usr/local/lib | ||
- | cd ~/dsd-src/dsd-master | ||
- | mkdir build | ||
- | cd build | ||
- | cmake .. | ||
- | make | ||
- | sudo make install | ||
- | add snd-pcm-oss to /etc/modules | ||
- | amixer cset numid=3 1 | ||
- | <reboot> | ||
- | </code> | ||
- | |||
- | testme: | ||
- | <code> | ||
- | dsd -i /dev/dsp1 -n -v 1 | ||
- | </code> | ||
- | |||
- | showme what you can do: | ||
- | <code> | ||
- | over@picka ~/digital_speech/dsd/build $ dsd -a | ||
- | Digital Speech Decoder 1.7.0-dev (build:v1.6.0-86-g7ee04e5) | ||
- | mbelib version 1.3.0 | ||
- | xcb_connection_has_error() returned true | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline | ||
- | ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline | ||
- | xcb_connection_has_error() returned true | ||
- | xcb_connection_has_error() returned true | ||
- | xcb_connection_has_error() returned true | ||
- | xcb_connection_has_error() returned true | ||
- | Cannot connect to server socket err = No such file or directory | ||
- | Cannot connect to server request channel | ||
- | jack server is not running or cannot be started | ||
- | |||
- | PortAudio version number = 1899 | ||
- | PortAudio version text = 'PortAudio V19-devel (built Feb 21 2014 06:46:01)' | ||
- | Number of devices = 7 | ||
- | --------------------------------------- device #0 | ||
- | Name = sunxi-CODEC: PCM (hw:0,0) | ||
- | Host API = ALSA | ||
- | Max inputs = 2, Max outputs = 2 | ||
- | Default sample rate = 44100.00 | ||
- | --------------------------------------- device #1 | ||
- | Name = sysdefault | ||
- | Host API = ALSA | ||
- | Max inputs = 128, Max outputs = 128 | ||
- | Default sample rate = 44100.00 | ||
- | --------------------------------------- device #2 | ||
- | Name = pulse | ||
- | Host API = ALSA | ||
- | Max inputs = 32, Max outputs = 32 | ||
- | Default sample rate = 44100.00 | ||
- | --------------------------------------- device #3 | ||
- | Name = mmap0 | ||
- | Host API = ALSA | ||
- | Max inputs = 2, Max outputs = 2 | ||
- | Default sample rate = 44100.00 | ||
- | --------------------------------------- device #4 | ||
- | Name = dmix | ||
- | Host API = ALSA | ||
- | Max inputs = 0, Max outputs = 2 | ||
- | Default sample rate = 48000.00 | ||
- | --------------------------------------- device #5 | ||
- | [ Default Input, Default Output ] | ||
- | Name = default | ||
- | Host API = ALSA | ||
- | Max inputs = 32, Max outputs = 32 | ||
- | Default sample rate = 44100.00 | ||
- | --------------------------------------- device #6 | ||
- | [ Default OSS Input, Default OSS Output ] | ||
- | Name = /dev/dsp | ||
- | Host API = OSS | ||
- | Max inputs = 16, Max outputs = 16 | ||
- | Default sample rate = 44100.00 | ||
- | ---------------------------------------------- | ||
- | </code> | ||
- | |||
- | * so in case we want to use default device, lets tak its #5 | ||
- | <code> | ||
- | dsd -i pa:5 -o pa:5 | ||
- | </code> | ||
- | * manipulate soudn outputs/inputs by | ||
- | <code> | ||
- | pavucontrol | ||
- | </code> | ||
- | * pipe I/O to fucntional device | ||
- | <code> | ||
- | padsp dssocat UDP-RECV:7355 - | padsp dsd -i /dev/dsp -o /dev/dsp | ||
- | </code> | ||
- | ==== RTL-SDR ==== | ||
- | * http://kmkeen.com/rtl-demod-guide/ | ||
- | * http://www.kerrywong.com/2014/11/16/testing-an-rtl-sdr-spectrum-analyzer/ | ||
- | * http://www.rs-online.com/designspark/electronics/eng/blog/taking-the-raspberry-pi-2-for-a-test-drive-with-gnu-radio-2 | ||
- | * http://www.delta-team.cz/co-se-pise/ham/frekvence-ruznych-sluzeb.htm | ||
- | * http://forum.autoforum.cz/viewtopic.php?f=14&t=1063 <-- zajimave frekvence | ||
- | * https://www.youtube.com/watch?v=qPWD4imXXsc - RTL-SDR: GQRX and DSD decoding in GNU/Linux command line. | ||
- | * http://marcinkowski.ca/blog/2014/02/19/decoding-dmr-radio-using-rtlsdr-gqrx-and-pulseaudio --- howto pro predchozi radek | ||
- | * http://notes.secretsauce.net/notes/2014/07/25_decoding-p25-with-rtl-sdr-on-debian.html | ||
- | <code> | ||
- | aptitude install rtl-sdr rtl-sdr gr-osmosdr gqrx-sdr cmake libsndfile1-dev pavucontrol libitpp-dev | ||
- | XXXX: aptitude install python3-pip | ||
- | </code> | ||
- | |||
- | === RADIO-TEORIE === | ||
- | * Evidence stanic bezdrátového místního informačního systému (BMIS) | Český telekomunikační úřad: | ||
- | http://www.ctu.cz/vyhledavaci-databaze/evidence-stanic-bezdratoveho-mistniho-informacniho-systemu-bmis/prehled | ||
- | |||
- | * ANTENNA MAGUS - List of Antennas | Explore | Features | The leading Antenna Design Software tool. | Antenna Design. Simplified: | ||
- | http://www.antennamagus.com/antennas.php?page=antennas | ||
- | === NOTES === | ||
- | 22:16:03 < Over23> bry vecer, prosba prosbouci | ||
- | 22:16:13 < Over23> je tu nekdo kdo si hraje s dsd? | ||
- | 22:16:31 < Over23> konkretne tenhle problem: | ||
- | 22:16:34 < Over23> over@picka ~ $ socat UDP-RECV:7355 - | dsd -i /dev/stdout | ||
- | 22:16:34 < Over23> Digital Speech Decoder 1.7.0-dev (build:v1.6.0-86-g7ee04e5) | ||
- | 22:16:34 < Over23> mbelib version 1.3.0 | ||
- | 22:16:34 < Over23> Error, couldn't open /dev/audio | ||
- | 22:16:36 < Over23> 2016/03/19 23:15:52 socat[8975] E write(1, 0x7d5438, 256): Broken pipe | ||
- | 22:17:56 < Jenda`> Over23: vždy jsem dekodoval jen wav, musí být 1ch 48kHz S16_LE | ||
- | 22:18:49 < Over23> muzu videt nejaky priklad? | ||
- | 22:20:07 < Over23> respektive cesta tedy ma byt bud z gqrx > wav > dsd chalu li dobre [resp sdr_fm > file] | ||
- | 22:20:18 < Over23> respektive cesta tedy ma byt bud z gqrx > wav > dsd chalu li dobre [resp sdr_fm > file > dsd] | ||
- | 22:20:50 < Jenda`> ffmpeg -i foo.wav -ac 1 -ar 48000 -y ble.wav; dsd -i ble.wav -w out.wav | ||
- | 22:21:03 < Jenda`> foo.wav je z gqrx | ||
- | 22:21:18 < Jenda`> nahrané jako nbfm s šířkou alespoň 13 kHz |