beagleboneblack

Set GPIO remotely

元气小坏坏 提交于 2019-12-12 04:29:30
问题 I haven't tried this yet but I don't think I can use NFS to set /sys/class/gpio/gpio48/value remotely on a beaglebone. I think I read you could do this a different way but I would really like to write to a file on remote server and have it set /sys/class/gpio/gpio48/value locally on beaglebone. I don't know how to link these two files up. I am using java to program but I don't think that should make a big difference. Using BeagleBone Black GPIOs 回答1: Not sure if NFS will work this way to but

Rvm on beagleboneblack disable posix

若如初见. 提交于 2019-12-12 02:53:31
问题 I'm trying to run rvm on Angstrom linux on BBB. When i try to launch rvm, i obtain: RVM can not be run with set -o posix , please turn it off and try again. Someone know about this? 回答1: This is a check to prevent running RVM from pure Sh shells, for proper functioning RVM requires Arrays (along other features) which are only available in Bash and Zsh . 回答2: Answer shared by @mapapis was useful to understand the reason (thanks) but I think precise steps to change the default login shell

Beagleboard Black doesn't boot from MicroSD

别等时光非礼了梦想. 提交于 2019-12-12 01:58:25
问题 So I can flash the eMMC from the BBB. However I downloaded from wget https://rcn-ee.com/rootfs/2016-06-09/flasher/BBB-eMMC-flasher-ubuntu-16.04-console-armhf-2016-06-09-2gb.img.xz the Ubuntu image and extracted and placed it on the SD card through Win32DiskImager. I put the SD card in the sd slot and tried to boot by pressing the S2 button while I connect the board to the usb for power to my laptop. I wait for LEDs to turn on and nothing happens. It works without the SD card, but not with it.

How to unit test serial ports in Java on Android

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:57:51
问题 I'm aware that Android does not provide out-of-the-box access to the serial ports unless the device is rooted or a custom Android version is flashed, say on a BeagleBone Black board -- which is exactly my case. Using the Android SerialPort API project I am able to access and test the serial ports of my device through the sample GUI app (slightly modified). However, I'd like to also add JUnit tests for the Serial API because I will be expanding it into a library module for client programmers

Simultaneous write to multiple files

笑着哭i 提交于 2019-12-12 01:38:09
问题 I'm working on a project involving using a Beaglebone to read from multiple sensors and then pass that data into a text file.I'm monitoring six different muscles, so I have the files correspond to each. Right now, there are 6 sensors feeding into the Beaglebone Black's ADC pins and my code instructs the Beaglebone to create 1 separate file for each pin. Whenever I run the below code, I only get the one file (the first function runs). Previously I had not included the "while True:" statements

Beaglebone: gcc include path error while trying to build using 'make'

泄露秘密 提交于 2019-12-11 22:02:37
问题 I am trying to build cmu pocketsphinx on my beaglebone black for speech recognition. I have downloaded the source code for sphinxbase and ran ./configure. Now, when I run 'make' I get the following errors: Making all in src make[1]: Entering directory `/home/root/Pocketsphinx/sphinxbase-0.8/src' Making all in libsphinxbase make[2]: Entering directory `/home/root/Pocketsphinx/sphinxbase-0.8/src/libsphinxbase' Making all in util make[3]: Entering directory `/home/root/Pocketsphinx/sphinxbase-0

BeagleBone Black + PowerCape + LCD4 cape = slow boot

☆樱花仙子☆ 提交于 2019-12-11 21:04:24
问题 I am working on a project of embedded product with a BeagleBone Black (BBB). I also need a touch screen to display information and for inputs. As I also need the 5v power to add a webcam on the usb, I couldn't use the built-in battery capabilities of the BBB which has no voltage booster. I found a cape that does what I want: PowerCape by AndiceLabs. For the screen, I am using mainly the LCD4 by circuitco but also the 4DCAPE-43T by 4D systems, which I think are exactly identical, and so the

“unexpected IRQ trap at vector XX” on Beaglebone Black (Linux BBBW 4.14.71-ti-r80)

喜夏-厌秋 提交于 2019-12-11 19:16:46
问题 I have a problem with interrupt processing on the beaglebone black. I have written my own combination of a kernel module and a user-space driver to have access to gpios (see also https://github.com/Terstegge/gpio-bbb). With older kernels, everything was working fine. Using the most recent debian image (kernel 4.14.71-ti-r80), I get errors in the kernel log: [ 461.028013] gpio_bbb: Device /dev/gpio_bbb registered [ 507.507335] gpio_bbb: Requesting GPIO #30 [ 507.507370] Mode: f [ 507.507383]

Error using python Adafruit_BBIO GPIO and ADC and BeagleBone Black in ubuntu 14.04

↘锁芯ラ 提交于 2019-12-11 12:24:15
问题 I'm trying to use python and import Adafruit_BBIO.GPIO and import Adafruit_BBIO.ADC to read from some pins while I write to others. But I keep getting this error: Traceback (most recent call last): File "wajeeh.py", line 4, in ADC.setup() RuntimeError: Unable to setup ADC system. Possible causes are: - A cape with a conflicting pin mapping is loaded - A device tree object is loaded that uses the same name for a fragment: helper here is my code: import Adafruit_BBIO.GPIO as GPIO #import GPIO

Debian /etc/init.d/ script not running?

跟風遠走 提交于 2019-12-11 11:46:18
问题 I'm using a BeagleBone Black that runs Debian (the latest version that the BeagleBone website provides a link for, I believe) and I recently installed Java on it. Every time I boot the board I must set the PATH for Java again as shown below. root@beaglebone:/etc/init.d# java -version -bash: java: command not found root@beaglebone:/etc/init.d# export PATH=$PATH:/bin/jdk1.7.0_60/bin root@beaglebone:/etc/init.d# export JAVA_HOME=/bin/jdk1.7.0_60 root@beaglebone:/etc/init.d# java -version java