View Single Post
  #30   Spotlight this post!  
Unread 01-15-2016, 12:32 PM
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 216
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: mjpg-streamer running on roboRIO

Quote:
Originally Posted by virtuald View Post
To diagnose you'll need to SSH into the roborio (user: admin, password: just hit enter).
  • Does /dev/video0 exist? If not, then your camera isn't recognized by the roboRIO and mjpg-streamer won't be running. You can use 'dmesg' to look at the kernel messages and try to divine what happened. Not all cameras will be supported -- but I'm not 100% sure what ones are supported, or how to get the list (probably some linux magic)
  • Is mjpg-streamer running or did it die? "ps -Af | grep mjpg" will show you
  • If it's running, is it listening on the right port? "netstat -ln" can show you what ports are being listened on, 5800 should be in the list.
  • If /dev/video0 exists and mjpg-streamer dies, then there's something else wrong and you'll need to run mjpg-streamer on the command line. Unfortunately, I haven't put anything in the package to do this using the settings, so it's a bit verbose...
Alright, so there is video zero

With the "ps -Af | grep mjpg", I get
Code:
1602 admin {grep} /bin/busybox.nosuid /bin/grep mjpg
There is not 5800 on the port list

Thanks for all the support!