Where to get help?

Hi,

I am new the world of beaglebone however have played with many other SBC’s

This place looks kinda dead, is it the right place for basic support for the beaglebone blue?

I bought a bunch of these for my kids as they appear to be an all in one solution to get started in robotics.

However, we can’t seem to get some of the basic examples working.

Bought some C270 Cameras as recommended because kids apparently need video, tried the demo from the following link but it does not work. Tried on a few boards with stock and latest images. Cameras work fine on a RPi or Odroid.

https://gist.github.com/jadonk/51a4d83c8180e259bcb5661002712166

Gave up on that after googling and messing around for a few hours.

Next things kids want is sound, so try and connect to a Bluetooth speaker following the instructions in the following link, pairs ok but refuses to connect. Seems like it might be a permission issue, however more hours spent on google did not get it working

So what are we missing? These instructions come from the main beaglebone blue page. https://beagleboard.org/blue

If they do not work with the recommended hardware, why isn’t there any discussion regarding this on the web google can find?

We did manage to get ardupilot working with some help from Mirko, but it appears that because of the use of I2C for the IMU and Barometer and the high interrupt? rate this system struggles to run anything else when Ardupilot is running so the dream of having the flight controller and companion computer like I have with my Navio2 is not yet a reality with the Beaglebone Blue, well at least not yet.

Anyway, we have quite a bit invested with all these Beaglebones and recommend accessories and are keento get things working as advertised, so where do I go for help?

Cheers,

Brian

Hi,

I am new the world of beaglebone however have played with many other SBC's

This place looks kinda dead, is it the right place for basic support for the
beaglebone blue?

I bought a bunch of these for my kids as they appear to be an all in one
solution to get started in robotics.

However, we can't seem to get some of the basic examples working.

Bought some C270 Cameras as recommended because kids apparently need video,
tried the demo from the following link but it does not work. Tried on a few
boards with stock and latest images. Cameras work fine on a RPi or Odroid.

https://gist.github.com/jadonk/51a4d83c8180e259bcb5661002712166

Gave up on that after googling and messing around for a few hours.

First question, how are you powering the board?

DC plug or USB connector?

Next things kids want is sound, so try and connect to a Bluetooth speaker
following the instructions in the following link, pairs ok but refuses to
connect. Seems like it might be a permission issue, however more hours spent
on google did not get it working

So what are we missing? These instructions come from the main beaglebone
blue page. https://beagleboard.org/blue

If they do not work with the recommended hardware, why isn't there any
discussion regarding this on the web google can find?

We did manage to get ardupilot working with some help from Mirko, but it
appears that because of the use of I2C for the IMU and Barometer and the
high interrupt? rate this system struggles to run anything else when
Ardupilot is running so the dream of having the flight controller and
companion computer like I have with my Navio2 is not yet a reality with the
Beaglebone Blue, well at least not yet.

Anyway, we have quite a bit invested with all these Beaglebones and
recommend accessories and are keento get things working as advertised, so
where do I go for help?

Regards,

Hi Robert,

We have powered off DC Plug - 12V 2A, 2S LiPo 4000mAh and Powered USB Hub 40W.

Results are the same, camera shows up with lsusb but mjpg_streamer does not work.

Cheers,

Brian

v4l2-ctl --info

&

lsusb

values

Regards,

lsusb
Bus 001 Device 007: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

v4l2-ctl --info
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : UVC Camera (046d:0825)
Bus info : usb-musb-hdrc.1.auto-1
Driver version: 4.4.54
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
root@beaglebone:~#

Nothing different, i'd expect you to find the software running on port
8090 thru your web browser.

is mjpg-streamer.service running?

sudo systemctl status mjpg-streamer.service

Regards,

root@beaglebone:~# sudo systemctl status mjpg-streamer.service
● mjpg-streamer.service - Webcam Video Streaming
Loaded: loaded (/etc/systemd/system/mjpg-streamer.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2017-05-09 06:37:28 AEST; 7min ago
Process: 2973 ExecStart=/usr/bin/mjpg_streamer -i /usr/lib/mjpg-streamer/input_uvc.so -o /usr/lib/mjpg-streamer/output_http.so -p 8090 -w /usr/share/mjpg-streamer/www (code=exited, status=1/FAILURE)
Main PID: 2973 (code=exited, status=1/FAILURE)

beaglebone mjpg_streamer[2973]: MJPG-streamer [2973]: username:password…: disabled
beaglebone mjpg_streamer[2973]: MJPG-streamer [2973]: commands…: enabled
beaglebone mjpg_streamer[2973]: MJPG-streamer [2973]: starting input plugin /usr/lib/mjpg-streamer/input_uvc.so
beaglebone mjpg_streamer[2973]: MJPG-streamer [2973]: starting output plugin: /usr/lib/mjpg-streamer/output_http.so (ID: 00)
beaglebone mjpg_streamer[2973]: Ignoring empty buffer …
beaglebone mjpg_streamer[2973]: Unable to dequeue buffer: No such device
beaglebone mjpg_streamer[2973]: i: Error grabbing frames
beaglebone systemd[1]: mjpg-streamer.service: Main process exited, code=exited, status=1/FAILURE
beaglebone systemd[1]: mjpg-streamer.service: Unit entered failed state.
beaglebone systemd[1]: mjpg-streamer.service: Failed with result ‘exit-code’.

Yuck, my C270 is at home, so i'll grab it tonight and either test
tonight or tomorrow..

Regards,

Thanks Robert

Any thoughts on the bluetooth problem?

it might be a pulesaudio permission problem..

Install:

mpg123 pulseaudio pulseaudio-module-bluetooth

and here is what SeeedStudio did extra for the Green Wireless
bluetooth out of the box:

https://github.com/RobertCNelson/omap-image-builder/blob/master/target/chroot/seeed-jessie.sh#L181-L223

Regards,

Hi Robert,

Thanks for the pointers, the install was ok but I made some configuration changes based on this and I can now connect and play audio through bluetooth.

I will do a clean install tonight and capture the exact changes made to get it working here for future reference.

Thanks again.

Brian

Make that my C920, it works fine:

May 10 19:00:12 beaglebone kernel: usb 1-1: new high-speed USB device
number 3 using musb-hdrc
May 10 19:00:14 beaglebone kernel: usb 1-1: New USB device found,
idVendor=046d, idProduct=082d
May 10 19:00:14 beaglebone kernel: usb 1-1: New USB device strings:
Mfr=0, Product=2, SerialNumber=1
May 10 19:00:14 beaglebone kernel: usb 1-1: Product: HD Pro Webcam C920
May 10 19:00:14 beaglebone kernel: usb 1-1: SerialNumber: A79808EF
May 10 19:00:14 beaglebone kernel: uvcvideo: Found UVC 1.00 device HD
Pro Webcam C920 (046d:082d)
May 10 19:00:14 beaglebone kernel: input: HD Pro Webcam C920 as
/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/input/input1
May 10 19:00:14 beaglebone kernel: usbcore: registered new interface
driver uvcvideo
May 10 19:00:14 beaglebone kernel: USB Video Class driver (1.1.1)
May 10 19:00:15 beaglebone kernel: usbcore: registered new interface
driver snd-usb-audio
May 10 19:00:15 beaglebone systemd[1]: Reached target Sound Card.
May 10 19:00:15 beaglebone systemd[1]: Started Webcam Video Streaming.
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
starting application
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG Streamer Version.: 2.0
May 10 19:00:15 beaglebone mjpg_streamer[2332]: i: Using V4L2
device.: /dev/video0
May 10 19:00:15 beaglebone mjpg_streamer[2332]: i: Desired
Resolution: 640 x 480
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
MJPG Streamer Version.: 2.0
May 10 19:00:15 beaglebone mjpg_streamer[2332]: i: Frames Per Second.: -1
May 10 19:00:15 beaglebone mjpg_streamer[2332]: i: Format............: JPEG
May 10 19:00:15 beaglebone mjpg_streamer[2332]: i: TV-Norm...........: DEFAULT
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
Using V4L2 device.: /dev/video0
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_ADD -
Error at Pan (relative): Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_ADD -
Error at Tilt (relative): Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_ADD -
Error at Pan Reset: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_ADD -
Error at Tilt Reset: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_ADD -
Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_ADD -
Error at Focus (absolute): Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Pan (relative): Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Tilt (relative): Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Pan Reset: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Tilt Reset: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Focus (absolute): Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at LED1 Mode: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at LED1 Frequency: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Disable video processing: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: UVCIOC_CTRL_MAP -
Error at Raw bits per pixel: Inappropriate ioctl for device (25)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
Desired Resolution: 640 x 480
May 10 19:00:15 beaglebone systemd-udevd[2303]: Process
'/usr/sbin/alsactl -E HOME=/var/run/alsa restore 1' failed with exit
code 99.
May 10 19:00:15 beaglebone mjpg_streamer[2332]: o:
www-folder-path......: /usr/share/mjpg-streamer/www/
May 10 19:00:15 beaglebone mjpg_streamer[2332]: o: HTTP TCP port........: 8090
May 10 19:00:15 beaglebone mjpg_streamer[2332]: o: HTTP Listen
Address..: (null)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: o:
username:password....: disabled
May 10 19:00:15 beaglebone mjpg_streamer[2332]: o:
commands.............: enabled
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
Frames Per Second.: -1
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
Format............: JPEG
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
TV-Norm...........: DEFAULT
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
www-folder-path......: /usr/share/mjpg-streamer/www/
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
HTTP TCP port........: 8090
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
HTTP Listen Address..: (null)
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
username:password....: disabled
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
commands.............: enabled
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
starting input plugin /usr/lib/mjpg-streamer/input_uvc.so
May 10 19:00:15 beaglebone mjpg_streamer[2332]: MJPG-streamer [2332]:
starting output plugin: /usr/lib/mjpg-streamer/output_http.so (ID: 00)

debian@beaglebone:/opt/scripts/tools$ sudo ./version.sh
git:/opt/scripts/:[8557455e9fe4fba4e6da108c991344806595783a]
eeprom:[A335BNLTBLA0��������*]
dogtag:[BeagleBoard.org Debian Image 2017-05-07]
partition_table:[NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT]
partition_table:[mmcblk1boot0 179:8 0 4M 1 disk ]
partition_table:[mmcblk1boot1 179:16 0 4M 1 disk ]
partition_table:[mmcblk1 179:0 0 3.6G 0 disk ]
partition_table:[└─mmcblk1p1 179:1 0 3.6G 0 part /]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.05-rc3-00002-g5c2d88]
kernel:[4.4.62-ti-r99]
nodejs:[v4.8.3]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]

Regards,

Hi Robert,

I now have the camera working as well, sort of. It seems my error was trying to set it up while ardupilot was running, the system is very laggy and doesn’t seem to behave well when ardupilot is running. When I killed ardupilot I could get the camera working and when re-starting ardupilot it stayed working but was very slow @ 640x480. Similarly, I can play basic wav files over bluetooth but it will not play mp3 while ardupilot is running.

My goal was to have a camera on a rover using the beglebone blue without needing any additional hardware, I have this now but it is too laggy to be of any use.

As mentioned previously I believe this is a known issue but is anybody working on fixing it and where is the right place to discuss this?

Cheers,

Brain