Are you powering the board through the power supply and attaching the webcam to the OTG USB port?
If the switch is not closer to the OTG the board will not recognize the device on this port. Remember that the board recognizes the device on the USB port that it is pointed by the microswitch.
Which image are you using on your board? You can run uname –a for this.
Which webcam are you using?
Could you post the error you are getting?
Let me know about the image you are using so I could try the same example.
Yes I am powering the board through the power supply and the webcam is attached to the OTG USB port, also the switch is close to the OTG.
I am using the latest image available at Intel website, Yocto 3.0, when I ran uname -a appeared Linux artia 3.10.17-poky-edison+ #2 SMP PREEMPT Mon Mar 14 15:26:16 PDT 2016 i686 GNU/Linux
I tried with two different logitech webcams. A window pop up and shown the error "Network error: connection timed out."
In the first attempt to connect the webcam I was able to detect it properly and check the UVC driver was loaded with lsmod | grep uvc, also I verified the device node was created by typing ls -l /dev/video0. However after I tried to get a frame with the webcam I got that error and putty stopped working. After that every time the switch is closer to the OTG I get this error.
Please post a screenshot of the error you are getting.
Is the problem only when you change the position of the microswitch? Are you able to use putty without problems?
I ran the example you are using while using the same image you have and I’m not receiving the same outcome.
Have you tried to start again from scratch? If you haven’t, I suggest re-flashing your board again and trying it one more time maybe there is something that went wrong while following the tutorial.