lwc:hardware:beagle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lwc:hardware:beagle [2023/05/16 17:17] John Harrisonlwc:hardware:beagle [2024/07/12 11:03] (current) John Harrison
Line 24: Line 24:
   * [[https://www.youtube.com/watch?v=ZjIbCVujQFE|video tutorial]]   * [[https://www.youtube.com/watch?v=ZjIbCVujQFE|video tutorial]]
   - get jack running and playing audio on both machines   - get jack running and playing audio on both machines
-  - receiver will have some command similar to ''zita-n2j 10.42.0.249 9999''+  - receiver will have some command similar to ''zita-n2j 10.42.0.249 9999 --buff 50'' 
 +    - the ''--buff 50'' seems to eliminate distortion which was coming and going. The default is ''10''
   - receiver:   - receiver:
     - ''jack_connect zita-n2j:out_1 system:playback_1''     - ''jack_connect zita-n2j:out_1 system:playback_1''
Line 30: Line 31:
   - sender:   - sender:
     - ''sudo jackd -d alsa''     - ''sudo jackd -d alsa''
-    - ''sudo zita-j2n 10.42.0.249 9999''+    - ''sudo zita-j2n 10.42.0.249 9999 --16bit'' 
 +      - ''--16bit'' might not be necessary but seems prudent to keep network traffic down
     - testing: ''sudo mpg123-jack -a zita-j2n:in_1,zita-j2n:in_2 /tmp/file_example_MP3_5MG.mp3''     - testing: ''sudo mpg123-jack -a zita-j2n:in_1,zita-j2n:in_2 /tmp/file_example_MP3_5MG.mp3''
-    - //fixme: we need to get rid of the sudos. This is just a test// +    - //fixme: we need to get rid of the sudos. This is just a test. Fixed my adding: ''usermod -a -G audio yourUserID'' as shown [[https://jackaudio.org/faq/linux_rt_config.html|here]]// 
-    - //fixme: distorting//+    - //fixme: distorting. Seems fixed with ''--buff 50''?// 
 +    - //fixme: why transmit 2 channels when we only need 1?//
  
 === Jack === === Jack ===
Line 40: Line 43:
   * testing: ''mpg123-jack file_example_MP3_5MG.mp3''   * testing: ''mpg123-jack file_example_MP3_5MG.mp3''
   * change volume to 75%: ''amixer -c 1 -- sset PCM Playback 75%''   * change volume to 75%: ''amixer -c 1 -- sset PCM Playback 75%''
 +//using Amazon special//
 +  * ''amixer -c 1 -- sset Headphone Playback 100%''
 +or
 +  * ''amixer -c 1 -- sset Speaker 100%'' (for the one that has no cables)
  
 +===== Setting static IP for ethernet =====
 +  * ubuntu with shared ethernet connection runs a dhcp server by default on 10.42.x.x and assigns the ethernet card 10.42.0.1.
 +  * so the perhaps incorrect but easy way to get internet with static IP is on the beagle:
 +    * get name of connection: ''connmanctl services'' You'll get a response that will have something like: ''ethernet_6cecebabbc6a_cable''
 +    * then assign your static IP. This will be a persistent setting. Example:
 +<code>
 +sudo connmanctl config ethernet_6cecebabbc6a_cable --ipv4 manual 10.42.0.2 255.255.255.0 10.42.0.1 --nameservers 8.8.8.8 1.1.1.1
 +</code>
 +//for the morbidly curious you can find (and maybe edit?) the settings connman is reading/writing at ''/var/lib/connman'' //
 +
 +===== Network tips =====
 +//see [[https://gist.github.com/kylemanna/6930087|Connmanctl Cheat Sheet]] for connecting Wi-Fi card//
 +
 +===== Always booting from SD card =====
 +  - Manually boot from the MicroSD (hold down the ''user/boot'' button).
 +  - run ''sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=1'' to write zeros over the first 1MB of the eMMC
 +  - run ''sync''
 +  - run ''sudo shutdown now''
 +  - disconnect and then reconnect power
 +[[https://github.com/phillipdavidstearns/brahman-ai/tree/master/guides/beaglebone#towards-booting-from-microsd-always|source]]
  • lwc/hardware/beagle.1684275460.txt.gz
  • Last modified: 2023/05/16 17:17
  • by John Harrison