Changes

Jump to: navigation, search

Raspberry Pi

2,151 bytes added, 00:19, 1 November 2015
C-Media USB sound device
=Maintenance=
==Backup your System Image==
===backup with rpi-clone===
*uses dd and rsync:
https://github.com/billw2/rpi-clone
 
 
===backup with tar.gz===
http://sysmatt.blogspot.com/2014/08/backup-restore-customize-and-clone-your.html
 
https://github.com/billw2/rpi-clone
===backup with dd===
=Configuration=
==create local wifi hotspot==
*http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/
*https://forums.adafruit.com/viewtopic.php?f=19&t=47716
 
==create .local domain name for raspberry pi==
*http://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/
=Software=
==pocketsphinx / usb mic==
https://wolfpaulus.com/journal/embedded/raspberrypi2-sr/
==google speech scripts==
<s>*install pyaudio:
*update wolfson audio drivers - https://blog.georgmill.de/2015/02/18/update-for-wolfson-audio-card-on-raspberry-pi/
*Command line recording - http://www.element14.com/community/community/raspberry-pi/raspberrypi_projects/blog/2014/04/06/wolfson-audio-project
==Jack from OSX to Raspberry Pi==
On Raspberry Pi:
*wolfson script to select audio output:
<syntaxhighlight lang="bash">Playback_to_Lineout.sh</syntaxhighlight> or the direct amixer commands
<syntaxhighlight lang="bash">
amixer -Dhw:0 cset name='HPOUT2 Digital Switch' on
amixer -Dhw:0 cset name='HPOUT2L Input 1' AIF1RX1
amixer -Dhw:0 cset name='HPOUT2L Input 1 Volume' 32
amixer -Dhw:0 cset name='HPOUT2R Input 1' AIF1RX2
amixer -Dhw:0 cset name='HPOUT2R Input 1 Volume' 32
</syntaxhighlight>
*run dbus:
<syntaxhighlight lang="bash">
eval dbus-launch --auto-syntax </syntaxhighlight>
*copy results and export them:
<syntaxhighlight lang="bash">
export DBUS_SESSION_BUS_ADDRESS= ...
export DBUS_SESSION_BUS_PID= ...
</syntaxhighlight>
*start jackd:
<syntaxhighlight lang="bash">jackd -R -T -p 32 -d alsa -n 3 -p 2048 -r 44100 -i2 -o2 &</syntaxhighlight>
*start netone pointed to slave IP:
<syntaxhighlight lang="bash">jack_netsource -H 192.168.0.104 &</syntaxhighlight>
 
On OS X:
*configure jack for necessary outputs (only done once) (2 in 2 out)
*qjackctl with netone backend
 
On Pi:
*route jack signals:
<syntaxhighlight lang="bash">
jack_connect netjack:capture_1 system:playback_1
jack_connect netjack:capture_2 system:playback_2
</syntaxhighlight>
 
*jack routing - https://gist.github.com/nyarla/36724e8931fa6bc244a0
*https://github.com/jackaudio/jackaudio.github.com/wiki/WalkThrough_User_NetJack2
=Hardware Peripherals=
*setting up with alsamixer, etc - http://asliceofraspberrypi.blogspot.com/2013/02/adding-audio-input-device.html
*setup C-media usb sound device - http://www.cpmspectre.pwp.blueyonder.co.uk/raspberry_pi/MoinMoinExport/DaffodilUSBSoundAdapter.html
==U9 MiniMic==
<syntaxhighlight lang="bash">arecord -f dat | aplay -f dat &</syntaxhighlight>
==C920==
**<code>lpstat -p -d</code>
*lp help http://www.cups.org/documentation.php/options.html
==Wireless Adapters==
*Adafruit adapter: https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software
*LB-Link with mt7601: https://www.raspberrypi.org/forums/viewtopic.php?t=49864
**for kernel 3.18.7-v7: https://dl.dropboxusercontent.com/u/80256631/mt7601-3.18.7-v7-755.tar.gz
=GPIO=

Navigation menu