lwc:hardware:beagle

Differences

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

Link to this comparison view

Next revision
Previous revision
lwc:hardware:beagle [2023/02/22 19:12] – created John Harrisonlwc:hardware:beagle [2024/07/12 11:03] (current) John Harrison
Line 13: Line 13:
   * [[https://github.com/zestyping/openpixelcontrol|open pixel control]]:the real deal with simulator, examples, etc.   * [[https://github.com/zestyping/openpixelcontrol|open pixel control]]:the real deal with simulator, examples, etc.
     * this code with examples shows how to format everything for LEDScape     * this code with examples shows how to format everything for LEDScape
 +
 +==== Connecting ====
 +  * The bone is running a DHCP client so if you run a DHCP server it will get assigned an IP address
 +  * username: `debian` pw: `temppwd`
 +  * The onboard flash is 4GB which makes it too small to do any updates on current OS
 +  * current OS: Linux beaglebone 4.9.78-ti-r94 #1 SMP PREEMPT Fri Jan 26 21:26:24 UTC 2018 armv7l GNU/Linux
 +  * current OS on 32GB MicroSD: Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 UTC 2020 armv7l GNU/Linux
 +
 +==== Using Zita-njbridge ====
 +  * [[https://www.youtube.com/watch?v=ZjIbCVujQFE|video tutorial]]
 +  - get jack running and playing audio on both machines
 +  - 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:
 +    - ''jack_connect zita-n2j:out_1 system:playback_1''
 +    - ''jack_connect zita-n2j:out_2 system:playback_2''
 +  - sender:
 +    - ''sudo jackd -d alsa''
 +    - ''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''
 +    - //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. Seems fixed with ''--buff 50''?//
 +    - //fixme: why transmit 2 channels when we only need 1?//
 +
 +=== Jack ===
 +//using Griffin iMic//
 +  * starting: ''jackd -d alsa -d hw:1,0''
 +  * testing: ''mpg123-jack file_example_MP3_5MG.mp3''
 +  * 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.1677114721.txt.gz
  • Last modified: 2023/02/22 19:12
  • by John Harrison