i would like to connect an ip cam to my Arduino Yun ethernet port. Next i would like to connect my iPhone to the wifi Access Point of the Yun and watch the live video from my iPhone.
To do this I need to configure the arduino as a router. How can I do that?
I need this configuration because i want to send URL command to the Yun using iPhone. For example if i want build a rover with video stream i use ip cam to make the video and Arduino to move the rover.
Yeah but you need to read the complete posts. At the end he uses the mjpg-stream and it works really good. I tried it and I have a 1/2 a sec of delay. And I use a USB Cam, Microsoft HD-3000
an IP Cam is a cam with an ethernet interface... so the setup using an USB webcam can't work.
My suggestion is to provide an external solution to "transform" the IP Cam in a wifi Cam, like the router I suggested before.
i can also use a USB webcam if this configuration has very little delay. How long can this configuration continue to operate ?
If i use a webcam without HD can i reduce the delay?
The ip cam that i have have also wifi configuration, but it is the same problem, arduino is not configured like a router so if i connect the cam to Arduino and my iPhone to Arduino i can't watch the video from iPhone. Maybe i could use an external mini router but if the webcam configuration has a very little delay it is the best configuration also for the dimension.
5 FPS is the lowest you can go I think. But you could try it and test it for yourself.
I know the steps are a bit tricky cause I had a hard time understanding too. So here goes
SSH into OpenWRT
This mean you need to connect to the Yun SSH interface, so open putty for windows, and SSH to the IP of the YUN. So in my case it was ssh 192.168.240.1. That's going to get you in the linux part of the Yun, or as they call it the OpenWRT.
Install either the UVC driver (if not already installed) e.g. opkg install kmod-video-uvc
where i need to install them? and how?
That's the hardest part to understand. What you need to do is get the package from here Dropbox - Yun-Packages - Simplify your life download all the ipk to your desktop. Then you can put them on a MicroSD. Take that MicroSD and put it in the Arduino.
2- Then you need to mount the MicroSD, you need to type those commands in putty while connected to the openWRT. The commands you need to type are in bold
add your micro sd card (it should appear as /dev/sda1 by default)
Create a folder or mount point /mnt/sda1 (mkdir /mnt/sda1)
mount your sd card - mount /dev/sda1 /mnt/sda1
3- Then you need to install those package. So you need to go in the /mnt/sda1 and install all the packages. And you do it like that : opkg install mjpg-streamer.ipk.
So start by the first one and go down the list. Don't worry if you install one package and you get an error message saying that you need another package before. Just install the Pre-Requisit and after re-install the one that fail. In the end all the package should install.
4- Once all that's done type mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480" -o "output_http.so -p 8080 -w /mnt/share"
AllSystemGO:
2- Then you need to mount the MicroSD, you need to type those commands in putty while connected to the openWRT. The commands you need to type are in bold
add your micro sd card (it should appear as /dev/sda1 by default)
Create a folder or mount point /mnt/sda1 (mkdir /mnt/sda1)
mount your sd card - mount /dev/sda1 /mnt/sda1
Why do you need to do that? Isn't the yun doing that automatically? It should. AFAIK, if it doesn't, doing it manually shouldn't work either.
When i need to connect to the Yun interface i need to type the command "ssh ip" on my OSX terminal and all works fine? I can know the ip connecting to my Yun and open the network settings?
Sorry for the question but I am an iOS developer and i don't know this kind of programming.
If your yun is connected to your computer, you can upload YunSerialTerminal example, open serial monitor and get the same linux prompt you'd get with ssh
are you installing the ipk packages from the SD because of your Yun is not connected to Internet?
Otherwise it's a really better solution to let opkg download them (and resolve all the dependances) for you...
I put all the file on my SD , next i connected the arduino using ssh with OSX terminal. Next i type the command "opkg install" for all the files. All works fine but fswebcam no.