Now that we are done with the platform we have to attach some sensors.
I had some experience with webcams and mjpeg-streamer so I thougth it’s is time to create the BeagleBone version.
I used the latest demo image with 3.18 kernel.
I have an Canyon Wc 23 type webcam(CN-WCAM23). When I plugged it in, the kernel modules and drivers loaded automatically without the need to install anything. You can still make sure that everything went well by typing:
Now you should see that the webcam is attached to the system and works fine as a hardware. Here is what you might see:
root@beaglebone:~/mjpegstreamer/mjpg-streamer# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 006: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 Webcam Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub lsmod
to see the kernel modules loaded well, here is what you might see:
root@beaglebone:~/mjpegstreamer/mjpg-streamer# lsmod Module Size Used by keucr 48946 0 gspca_zc3xx 35649 0 gspca_main 14527 1 gspca_zc3xx spidev 3888 0 ip_tables 7830 0 x_tables 14348 1 ip_tables g_mass_storage 24026 0 rfcomm 24259 0 ircomm_tty 14073 0 ircomm 8407 1 ircomm_tty irda 85557 2 ircomm_tty,ircomm hidp 10152 0 bluetooth 109714 4 rfcomm,hidp rfkill 14605 2 bluetooth ipv6 210466 16
the two importatnt:
gspca_zc3xx 35649 0 gspca_main 14527 1 gspca_zc3xx
And one last thing,
if there is video0, then everything is fine to go to the next step.
You have to dowload the mjpeg-streamer from here.
After you extracted the files, all you need to do is give
When it’s finished with compiling then, you have to start the mjpegstreamer.
./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www"
or see the start.sh inside the mjpg-streamer dir for more tips of using it.
Now use a web browser, beaglebone-ip:8080/ (eg.:http://192.168.0.22:8080/)
If everything is fine you can see the webcamera image.