The problem with video cameras.

1,290 views
Skip to first unread message

Александр Зендриков

unread,
Jun 4, 2017, 4:24:34 PM6/4/17
to OpenPnP
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.

Jason von Nieda

unread,
Jun 4, 2017, 5:06:35 PM6/4/17
to OpenPnP

On Sun, Jun 4, 2017 at 3:24 PM Александр Зендриков <zendr...@gmail.com> wrote:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/3feebfd0-d073-4fae-9df2-887e7df7675a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Александр Зендриков

unread,
Jun 4, 2017, 5:26:38 PM6/4/17
to OpenPnP
Thank you. I will try to understand. But what is written is not given until the results. (

воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:

Jason von Nieda

unread,
Jun 4, 2017, 5:29:07 PM6/4/17
to OpenPnP
I'll try to simplify:

1. You must connect each camera to a different USB port. You can't use a hub.
2. Set device number for each camera in OpenPnP to a different value. Usually just number of camera. For a computer with two cameras it should be 0 and 1.
3. Make sure you always plug the cameras into the same port. Mark them with ink. This will ensure they always attach in the same order.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

SMdude

unread,
Jun 4, 2017, 5:41:31 PM6/4/17
to OpenPnP
And when you do get it to work, always connect the same camera to the same usb and plug them in in the same order, allowing a few seconds for each to recognise.
camera ports.JPG

Александр Зендриков

unread,
Jun 5, 2017, 11:57:44 AM6/5/17
to OpenPnP
I have the same HUB on both cameras. Inserted into different ports on the laptop.


воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.
123123.jpg

Cri S

unread,
Jun 5, 2017, 12:09:42 PM6/5/17
to OpenPnP
How is the identifier on Webcam type webcam for the two, same or different ?

Александр Зендриков

unread,
Jun 5, 2017, 12:54:03 PM6/5/17
to OpenPnP
as I can not get both cameras to work. On one hangs a picture, and another starts to work (((


воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.

Jason von Nieda

unread,
Jun 5, 2017, 1:00:41 PM6/5/17
to OpenPnP
This happens when the ports being used go back to the same root controller. Does your laptop have any other ports you can try? Another thing to check is open Device Manager and expand the USB Controllers section. See how many are listed t here.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Александр Зендриков

unread,
Jun 5, 2017, 1:08:48 PM6/5/17
to OpenPnP
When connecting both cameras. If you turn them on alternately in OpenPnp for example on the top camera, then everything works. If they simultaneously include one on the top friend on the bottom, then one camera freezes.


воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.

Александр Зендриков

unread,
Jun 5, 2017, 1:11:43 PM6/5/17
to OpenPnP


воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.
1.jpg
2.jpg
3.jpg

Александр Зендриков

unread,
Jun 5, 2017, 3:42:13 PM6/5/17
to OpenPnP
Installed the program for the web camera. IP Camera Viewer 4. In this program, both cameras are working right away, maybe I'm not right setting up the OpenPnP? Cameras look at each other


воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.
cam1+cam2.jpg

Jason von Nieda

unread,
Jun 5, 2017, 4:07:54 PM6/5/17
to OpenPnP
Yes, this is common. The whole problem is explained in https://github.com/openpnp/openpnp/wiki/USB-Camera-Troubleshooting-FAQ. It is a combination of software and hardware limitation. Currently, the only easy way to get two cameras working in OpenPnP at the same time is to have them on different host controllers. To make sure, you have to look in Device Manager and see how many USB Controllers you have. If it's only one for both of your ports then it will not work on that computer.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Александр Зендриков

unread,
Jun 5, 2017, 4:14:44 PM6/5/17
to OpenPnP
Yes, most likely I have one USB controller. I do not work with Chinese-made cameras, as in the photo. Put two other web cameras Logitech and they immediately earned.


воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.
WIN_20170605_23_13_53_Pro.jpg

Александр Зендриков

unread,
Jun 5, 2017, 4:32:53 PM6/5/17
to OpenPnP
Thanks to all. The problem was in the cells. I'll go tomorrow for a camera Logitech c270 



воскресенье, 4 июня 2017 г., 23:24:34 UTC+3 пользователь Александр Зендриков написал:
Good afternoon (evening, night). Help me to understand. I use two identical cameras, for the lower and upper view. I have a big problem, the cameras are hard at work. You have to connect to different USB ports, in the settings, then one camera 1, then another camera 1. Each time in different ways, sometimes they do not want to work together.

Mike Menci

unread,
May 29, 2018, 2:51:20 PM5/29/18
to OpenPnP
Hello,

I added 2nd Logitech C270  to bottom vision and now I am having problems with one of the 3 cameras connected to 4 USB ports that I have on my notebook computer. 
One of the 3 cameras does not work with the port 0,1, or 2 in Open PnP - One camera freezes - picture is there but it is not taking video (frozen picture). If I disconnect my top camera than the two Logitech C270 work but reconnecting the 3rd camera is impossible to have it working. 
enclosed a picture of my <Ports on computer and zip of Logitech files

Can anyone help with this?
thanks
Mike
2018-05-29 -Sistem.png
LWSLogFiles.zip

Mike Menci

unread,
May 29, 2018, 2:56:53 PM5/29/18
to OpenPnP
here updated USB ; 
2018-05-29 -Sistem.png

Mike Menci

unread,
May 29, 2018, 3:04:51 PM5/29/18
to OpenPnP
Using IP Camera Viewer (4 USB cameras can be used) I get an error of Port: 
2018-05-29 21_00_01-IP Camera Viewer.png
2018-05-29 21_00_54new Camera Settings.png

Marek T.

unread,
May 29, 2018, 3:27:02 PM5/29/18
to OpenPnP
You have3 cameras but how many usb host controllers for them? You can try different probes but finally you'll probably find that one host per one camera is the only working solution.
Try also to change the camera driver to opposite one than you use on the moment.

n.a.m...@gmail.com

unread,
May 29, 2018, 5:47:24 PM5/29/18
to ope...@googlegroups.com, Mike Menci
Hi Mike,

It looks like the 3 cameras are overloading the USB data transfer capabilities.
On a desktop computer, you can get around this by installing an additional PCIe USB card.
I'm not sure what expansion possibilities your laptop has.

Regards,
Niels.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Marek T.

unread,
May 29, 2018, 6:13:28 PM5/29/18
to OpenPnP
Still fascinating is that the usb bandwidth is never overloaded even without extra added controllers if we connect 2-3 cameras "directly" to Windows or Linux but without Java "between"... On all my W7 computers I have it works without problems until there is no Java...

Jason von Nieda

unread,
May 29, 2018, 6:51:00 PM5/29/18
to ope...@googlegroups.com
Hi Marek,

This issue has nothing to do with Java. The camera library is written in C and C++ and uses the same direct APIs that other programs use. The issue is purely one of USB bandwidth, and USB bandwidth is determined by the format, and the resolution, that you select.

Many webcam programs will automatically select the lowest bandwidth settings to ensure that you can access multiple cameras, or will intelligently downgrade as you bring other cameras online. OpenPnP doesn't - it's up to the user to ensure they select settings that work for their setup.

I'd like to put this issue to rest, so if you'll tell me the following information I will see what I can do to tell you what settings you can use to make this work, or if it truly doesn't work, I'll track the bug down. The information needed is:

1. Make and model of each camera being used.
2. Make and model of the computer. If it's custom, please give me the motherboard model.
3. Operating system version.
4. Cable configuration: i.e. camera 1 plugged into port 1, camera 2 plugged in to port 2, or perhaps camera 1 plugged into hub, hub plugged into port 1, etc.
5. The software you use that works correctly.
6. If available, any information from that software that shows what formats and features are being used with the cameras.

Thanks,
Jason

On Tue, May 29, 2018 at 5:13 PM Marek T. <marek.tw...@gmail.com> wrote:
Still fascinating is that the usb bandwidth is never overloaded even without extra added controllers if we connect 2-3 cameras "directly" to Windows or Linux but without Java "between"... On all my W7 computers I have it works without problems until there is no Java...

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Marek T.

unread,
May 30, 2018, 8:09:33 AM5/30/18
to OpenPnP
Hi Jason,

My Openpnp is working acceptable on the moment. Two cameras, the top is set to near 1Mpx and and the bottom near 3Mpx. Both ~10fps. All this consumes ~80% of the CPU (A8). Separate controllers for each camera as no chance to it could work connected to the one host. OpenpnpCapture driver which eats for me some 10% of the CPU more than OpenCv, but I play with OpenPnpCapture as it is more convenient of course.

But now the second situation where these two cameras are connected to the one host, running on two copies of some video capture soft, without any Java. Same resolution and fps as above, mjpeg. It works on one usb controller and CPU usage like 10-15% not 80%.

The only soft difference is no Java/Openpnp and CPU usage is 50% lower.

Marek T.

unread,
May 30, 2018, 8:18:29 AM5/30/18
to OpenPnP
Both my cameras are ELP. This set to 1M is like your one probably, this second is some 5Mpx model but set limited to ~3Mpx. Soft for video without Java - Amcap or similiar.

Mike Menci

unread,
May 30, 2018, 8:22:39 AM5/30/18
to OpenPnP
Hello, 
Here are 4 diagnostics enclosed of USB ports with different cameras used on diferent port. 
1st Camera ELP 720 down looking 
2 & 3rd camera Logitech C270  

all 3 cameras are working with AMCap software but not with open PnP software... 

mike
All3CameraWorking Diagn_64.txt
2ndCamDiag64.txt
3rdCamDiag64.txt
CamDiag64.txt

Mike Menci

unread,
May 30, 2018, 8:26:02 AM5/30/18
to OpenPnP
Here the Screenshot: 
2018-05-30 14_23_43-AMCap (Demo Version).png

n.a.m...@gmail.com

unread,
May 30, 2018, 9:23:45 AM5/30/18
to ope...@googlegroups.com, Mike Menci
Hi Mike,

By "all 3 cameras are working with AMCap software but not with open PnP software... " are you streaming all three camera's at once using AMCap?

/Niels.

Marek T.

unread,
May 30, 2018, 9:36:23 AM5/30/18
to OpenPnP
Exactly! Just do as I said how I do - run 3 copies of AMcap and stream all 3 video signals to the screens, then check the computers loads.

But Niels (hi :-)), just streaming 2 cameras I get it working without problem at full cameras possibilities (full res, full fps) and get CPU load 50% lower than when with Java/Openpnp.

br
Marek

Mike Menci

unread,
May 30, 2018, 10:08:30 AM5/30/18
to OpenPnP
Hello 
Actually I can see 3 cameras but I can run only the 2 Logitech - 3rd one ELV down-looking I can not open in AMcap - but computer recognize it.
see picture here: 
3 camera-AMCap (Demo Version).png

Cri S

unread,
May 30, 2018, 10:12:36 AM5/30/18
to ope...@googlegroups.com

Have you changed inside amcap to mpeg? On all cameras?

To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Cri S

unread,
May 30, 2018, 10:13:29 AM5/30/18
to ope...@googlegroups.com

How is the status of openpnp?

Marek T.

unread,
May 30, 2018, 10:18:17 AM5/30/18
to OpenPnP
When ELP is the only one connected then works normaly with your Amcap?

Mike Menci

unread,
May 30, 2018, 10:20:43 AM5/30/18
to OpenPnP
With IP Camera viewer which can stream 4 cameras I can see only 2 Logitech as well see enclosed 
So It seams its my Toshiba Satelite A660 notebook computer USB 2.0 Port lacking ??
2018-05-30 OpenPnP – Google GroupsIP Camera Viewer.png

Mike Menci

unread,
May 30, 2018, 10:27:53 AM5/30/18
to OpenPnP
if I change to MPEG-2 I loose the picture 
MPEG-2 AMCap (Demo Version).png

Mike Menci

unread,
May 30, 2018, 10:31:53 AM5/30/18
to OpenPnP
Yes Marek the Two cameras with Open PnP no probles- when I added 3rd one for up-looking problems started with getting 3rd running
Mike

Mike Menci

unread,
May 30, 2018, 10:37:43 AM5/30/18
to OpenPnP
here the computer ports: 
Toshiba Satelite A660 RightSide.png
All USB.jpg
USB option 3.jpg
Message has been deleted

Cri S

unread,
May 30, 2018, 10:45:00 AM5/30/18
to ope...@googlegroups.com

Have you installed the thoshiba drivers and disabled win10 driver override?

Marek T.

unread,
May 30, 2018, 10:50:12 AM5/30/18
to OpenPnP
Mike, my proposal is to forget Openpnp and Java. For the moment.
Let us know if you are able to get all three streamings in the same time, using some three paralely working video-capture softs (AMcap, Vmcap or AMcap+skype+something, etc).
If you don't - don't search in Openpnp the reasons why.
If you do - wait for Jason's/Niels answer/investigation why you do it without Openpnp but you don't with it.

Jason von Nieda

unread,
May 30, 2018, 11:15:33 AM5/30/18
to ope...@googlegroups.com
Yes, this is really the important thing: If it works outside of OpenPnP, like with AmCap, in the configuration you want, then it should be possible to make it work in OpenPnP. But checking it outside of OpenPnP first is important since other webcam software may be easier to configure.

Jason


Mike Menci

unread,
May 30, 2018, 12:05:17 PM5/30/18
to OpenPnP
No I did not try this up to now ....

Strange is that I can see all 3 cameras (one at a time) with AMCap ..... 



mike 
2018-05-30 17_59_21-USB Device Viewer.png

Jason von Nieda

unread,
May 30, 2018, 12:06:45 PM5/30/18
to ope...@googlegroups.com
This is expected. You'd be able to do the same with OpenPnP. "One at a time" shows that USB bandwidth is maxed out. You should be able to see more than one at a time by choosing an MJPEG format and lowering the frame rate or resolution.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Marek T.

unread,
May 30, 2018, 12:18:44 PM5/30/18
to OpenPnP
But the fact that you see on the AMcap list containing all three cameras says nothing:
1) my Amcap is showing on the list some "Life! Cam video" which I have disconnected two weeks ago and not existing in the UsbTreeViewer
2) even if all them three are connected, it is still not an online streaming (in my oppinion, maybe I'm wrong) but just info what kind of the video streamers are found on USB tree.

Run three different video softs in the same time and check if you can see three separate windows with three different cameras views.

Mike Mencinger

unread,
May 30, 2018, 3:04:41 PM5/30/18
to OpenPnP
Jason 
 I can not get 3 cameras simultaniously running on:
Notebook - Toshiba Satelite A660
      - Toshiba Satelite P100 
and I tested now - It does not work on Lenovo C320 as well https://www.amazon.co.uk/Lenovo-C320-20-inch-All-Desktop/dp/B008MVHDIQ 

So any help - what to buy to get 1 more USB 2.0 that will use the 3rd camera??
Above Computer models are not so old and have 4 to 5 USB ports
Min. 5 are needed 1 - mouse , 1 PnP -Smothie, 3 for cameras = 5 USBs

Mike
IMG_1638.jpg

Jason von Nieda

unread,
May 30, 2018, 3:13:29 PM5/30/18
to ope...@googlegroups.com
Hey Mike, first question is... why do you need three cameras? Currently OpenPnP will only make use of two of them for vision operations.

Typically laptops and all in ones have limited USB hosts. A full desktop will usually have more. As far as I know the only way to add USB is via PCIe or other high speed busses.

Jason



Mike Mencinger

unread,
May 30, 2018, 3:22:44 PM5/30/18
to OpenPnP
Jason 
For Two Heads = 2 cameras would be great to have, software can be solved.... 
I would prefer laptop solution as I have limited space in my small workshop...

Mike

ma...@makr.zone

unread,
May 30, 2018, 3:36:10 PM5/30/18
to OpenPnP
Hi

Well at least it is clear why the frame rate setting does not help in reducing bandwidth:

bool PlatformStream::setFrameRate(uint32_t fps)
{
   
//FIXME: implement
   
return false;
}


Linux has it:

The maxed-out frame-rates might explain some of the difference to other viewers/tools.

Se also here.

_Mark


Cri S

unread,
May 30, 2018, 4:29:43 PM5/30/18
to ope...@googlegroups.com
you can try to update bios (4 update steps)
and reinstall toshiba usb driver .
> <https://github.com/openpnp/openpnp/issues/687#issuecomment-381394138>.
>
> _Mark
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenPnP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openpnp+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openpnp/44f55664-fc09-47ba-b4ec-9bbc8330fe70%40googlegroups.com.

Mike Menci

unread,
May 31, 2018, 10:53:36 AM5/31/18
to OpenPnP
Hello all, 

I solved my 3 camera issue with my NOTEBOOK computer...
I downgraded my Bios but this did not help...

For anybody who will have similar problem here is the solution 
Do not use USB 2.0 HUB! 
Get or Buy USB 3.0 hub ( I use AUKEY 4 port USB 3.0 Hub) 
- connect 2 Logitech and USB of Open PnP to this hub 
- all the rest to remaining USBs on computer....

This works for me now! (screenshot enclosed)!

Thank you guys for forum support!

Cheers!!
Mike


On Wednesday, 30 May 2018 22:29:43 UTC+2, Cri S wrote:
you can try to update bios (4 update steps)
and reinstall toshiba usb driver .

ports USB3.0.jpg
2018-05-31 OpenPnP - 3 cameras OK.png

Jason von Nieda

unread,
May 31, 2018, 12:24:01 PM5/31/18
to ope...@googlegroups.com
Very interesting! I was under the impression that that would not make a difference since USB 3 hubs pass USB 2 channels through directly, without translation. Glad to know it works!

Jason


Marek T.

unread,
May 31, 2018, 1:06:55 PM5/31/18
to OpenPnP
From my experiences typical usb 2.0 controller works more effective than controller USB 3.0 automatically working in 2.0 mode. So don't think it's universal solution to use 3.0 instead of 2.0 controller for 2.0 devices.

Bernd Walter

unread,
May 31, 2018, 1:34:49 PM5/31/18
to OpenPnP


On Thursday, May 31, 2018 at 7:06:55 PM UTC+2, Marek T. wrote:
From my experiences typical usb 2.0 controller works more effective than controller USB 3.0 automatically working in 2.0 mode. So don't think it's universal solution to use 3.0 instead of 2.0 controller for 2.0 devices.

There is no such thing as a super speed hub working in sub super speed mode, as a super speed hub is a combination super speed
and high speed hub, which works independent from each other.
USB 3.0 is just a new version of the specification, but generally people mean super speed (SS), which had been added in the 3.0 specification.
USB 2.0 is an older version, which supports low speed (LS), full speed (FS) and High speed (HS).

LS and FS used a differential wire pair and doing LS just used more bus time.
HS uses the same wire pair, but also added transaction translators (of which there a different classes), which
means a high speed USB controller could always talk high speed to an high speed USB hub and the hub translated to the lower speed grades.
With super speed they added an rx and an tx wire pair and this is a completely different bus.
Say you have an USB 3.0 host port connector, then there is a high speed port (which can be downgraded to HS and LS) on the old bidirectional
wire pair, and a super speed port on the new rx and tx pairs.
Both high speed and super speed ports are completely isolated, but driven by the same USB host controller and wired on the same connector.
If you add a super speed USB hub (or generally called a 3.0 Hub) then you add a high speed _and_ a super speed hub at the same time.
The functionality might be shared in a single chip, but technically you have 2 completely independent USB hubs.
For a high speed device, the super speed hub, inside the same case as the high speed hub, just doesn't exits.
For a super speed device this means it can connect to the super speed hub instead of the high speed hub, which has speed benefits and frees
bandwidth from the high speed path.

The real difference clearly is something else.
Maybe power budged on a self powered vs bus powered hub.
And since so many USB hubs and devices lie about their power source, this has nothing to do with a device actually be self powered or not.
A camera driver might want to switch the camera in a different configuration, which requires more power.
Notebook USB ports are often also better protected against overload.
PC ports usually have a high rated fuse and that's it, while notebook ports often have current limiting.
So even if the USB bus is logically OK, a notebook port might shut down a port because of real power overload, while a PC won't even care.

Cri S

unread,
May 31, 2018, 1:47:59 PM5/31/18
to ope...@googlegroups.com

Practically this mean the two USB high speed cameras share one bus and the full speed smoothie get it own bus.

Bernd Walter

unread,
May 31, 2018, 2:39:52 PM5/31/18
to OpenPnP


On Thursday, May 31, 2018 at 7:47:59 PM UTC+2, Cri S wrote:

Practically this mean the two USB high speed cameras share one bus and the full speed smoothie get it own bus.


Maybe yes, but likely no - neither of them is super speed.
If the smoothie is full speed, then, if connected behind a high speed hub, will be on the high speed bus as well with a transaction translator in between.
If it is connected directly to the host it may be attached to a dedicated low speed/full speed controller, but this is not very common these days to
have such controllers.
I don't want to go into the rabbit hole of explaining all those traditional LS+FS vs HS corner cases.
The real difference between the old LS+FS vs HS is that a HS hub translates LS+FS to the device, while a SS hub only supports SS devices and HS devices
are supported with a separate HS hub in the same housing.

          usbus0
            uhub2
              uhub3 pnpinfo vendor=0x05e3 product=0x0610 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=1 port=3 devaddr=2 interface=0 ugen=ugen0.2
                uhub6 pnpinfo vendor=0x05e3 product=0x0610 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=2 port=2 devaddr=3 interface=0 ugen=ugen0.3
                  umass2 pnpinfo vendor=0x1e68 product=0x001b devclass=0x00 devsubclass=0x00 sernum="200902131F88" release=0x0000 mode=host intclass=0x08 intsub at bus=0 hubaddr=3 port=4 devaddr=4 interface=0 ugen=ugen0.4
                uhub7 pnpinfo vendor=0x05e3 product=0x0610 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=2 port=3 devaddr=5 interface=0 ugen=ugen0.5
                uhub8 pnpinfo vendor=0x05e3 product=0x0610 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=2 port=4 devaddr=6 interface=0 ugen=ugen0.6
              uhub9 pnpinfo vendor=0x05e3 product=0x0612 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=1 port=7 devaddr=7 interface=0 ugen=ugen0.7
                uhub10 pnpinfo vendor=0x05e3 product=0x0612 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=7 port=2 devaddr=8 interface=0 ugen=ugen0.8
                  umass3 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="3030000000000000B301" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=8 port=1 devaddr=9 interface=0 ugen=ugen0.9
                  umass4 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="90100000000000000CAC" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=8 port=2 devaddr=10 interface=0 ugen=ugen0.10
                  umass5 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="90600000000000001030" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=8 port=3 devaddr=11 interface=0 ugen=ugen0.11
                uhub11 pnpinfo vendor=0x05e3 product=0x0612 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=7 port=3 devaddr=12 interface=0 ugen=ugen0.12
                  umass6 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="3030000000000000B305" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=12 port=1 devaddr=13 interface=0 ugen=ugen0.13
                  umass7 pnpinfo vendor=0x152d product=0x0539 devclass=0x00 devsubclass=0x00 sernum="2012080703CD" release=0x0205 mode=host intclass=0x08 intsub at bus=0 hubaddr=12 port=3 devaddr=14 interface=0 ugen=ugen0.14
                  umass8 pnpinfo vendor=0x152d product=0x0539 devclass=0x00 devsubclass=0x00 sernum="20120807021C" release=0x0205 mode=host intclass=0x08 intsub at bus=0 hubaddr=12 port=4 devaddr=15 interface=0 ugen=ugen0.15
                uhub12 pnpinfo vendor=0x05e3 product=0x0612 devclass=0x09 devsubclass=0x00 sernum="" release=0x9207 mode=host intclass=0x09 intsubclass=0x00 i at bus=0 hubaddr=7 port=4 devaddr=16 interface=0 ugen=ugen0.16
                  umass9 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="3080000000000000B1A5" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=16 port=1 devaddr=17 interface=0 ugen=ugen0.17
                  umass10 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="90600000000000000ADE" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=16 port=2 devaddr=18 interface=0 ugen=ugen0.18
                  umass11 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="908000000000000009C2" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=16 port=3 devaddr=19 interface=0 ugen=ugen0.19
                  umass12 pnpinfo vendor=0x174c product=0x55aa devclass=0x00 devsubclass=0x00 sernum="90500000000000000BDD" release=0x0100 mode=host intclass=0x0 at bus=0 hubaddr=16 port=4 devaddr=20 interface=0 ugen=ugen0.20

I hope it won't get trashed too much with the google web interface...
This is a setup on a USB3.0 host port with 3 super speed hubs.
uhub2 is the root hub, basicly the host port.
uhub3 and uhub9 are connected to it, with uhub3 being the HS hub and uhub9 being SS.
same with uhub6 and 10 are actually the same 4-port hub from a user standpoint.
umass2 is the only high speed device connected and it plugs into a port served by uhub6 and uhub10, but since it is HS it used the HS wiring and connects to the HS hub.
From the host controller there is a HS data path into uhub3, which then goes down the tree.
And an additional SS data path going into the uhub9 tree.

Mike Menci

unread,
May 31, 2018, 3:06:47 PM5/31/18
to OpenPnP
Hello, 
Well my joy was short lasting (20min all was ok) while setting up Open PnP ports USB 0,1 & 2 and camera lens adjustment - problems with getting the 3rd camera on stream returns and remains.
I tested 2nd USB 3.0 hub in the mean time without success.

Jason a strange pop up Capture Source Video started when I try to test Open PnP - see screenshot enclosed,,,    is this from Open PnP ??

Mike
2018-05-31 -OpenPnP -Video Source.png

Cri S

unread,
May 31, 2018, 3:42:05 PM5/31/18
to ope...@googlegroups.com
Yes, it could be openpnp, for removing to my knowledge you must edit machine.xml
(camera/propierties array).

Can you please check if inisde amcap video formats you see other
formats as YUV(2).
> --
> You received this message because you are subscribed to the Google Groups
> "OpenPnP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openpnp+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openpnp/abb116ab-bd0a-440a-9380-d96559b35519%40googlegroups.com.

Mike Menci

unread,
May 31, 2018, 3:55:38 PM5/31/18
to OpenPnP
Hello, 
no I did not find YUV(2)  or YUV in my machine.xml.
Mike

Cri S

unread,
May 31, 2018, 4:05:44 PM5/31/18
to ope...@googlegroups.com
The protocols outside YUV was for AMCAP.

inside machine.xml you must search inside <camera>...</camera>

something like the example below and reduce it to this:
<properties class="java.util.ArrayList">
</properties>

--- example
<properties class="java.util.ArrayList">
<open-cv-capture-property-value
property="CAP_PROP_FOURCC" value="3.06105567821E11"
set-before-open="false" set-after-open="true"/>
<open-cv-capture-property-value
property="CAP_PROP_FRAME_WIDTH" value="1280.0" set-before-open="false"
set-after-open="true"/>
<open-cv-capture-property-value
property="CAP_PROP_FRAME_HEIGHT" value="720.0" set-before-open="false"
set-after-open="true"/>
<open-cv-capture-property-value property="CAP_PROP_FPS"
value="30.0" set-before-open="false" set-after-open="true"/>
</properties>


2018-05-31 21:55 GMT+02:00, Mike Menci <mike....@gmail.com>:
> Hello,
> no I did not find YUV(2) or YUV in my machine.xml.
> Mike
>
> On Thursday, 31 May 2018 21:42:05 UTC+2, Cri S wrote:
>>
>> Yes, it could be openpnp, for removing to my knowledge you must edit
>> machine.xml
>> (camera/propierties array).
>>
>> Can you please check if inisde amcap video formats you see other
>> formats as YUV(2).
>>
>> 2018-05-31 21:06 GMT+02:00, Mike Menci <mike....@gmail.com <javascript:>>:
>> > email to openpnp+u...@googlegroups.com <javascript:>.
>> > To post to this group, send email to ope...@googlegroups.com
>> <javascript:>.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/openpnp/abb116ab-bd0a-440a-9380-d96559b35519%40googlegroups.com.
>>
>>
>> > For more options, visit https://groups.google.com/d/optout.
>> >
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "OpenPnP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/openpnp/fVv7PvArwiQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> openpnp+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openpnp/547d3cec-fbe0-4ff1-b399-ada5528c0d88%40googlegroups.com.

Mike Menci

unread,
May 31, 2018, 4:16:35 PM5/31/18
to OpenPnP
Hello 
5 min ago I re-installed Open Pnp software - on top of existing latest version and now all 3 cameras work again. 
enclosed my machine.xml file 

Mike 
2018-05-31 22_07_44-OpenPnP - V6_Job_OK2.job.xml.png
machine.xml

Mike Menci

unread,
Jun 1, 2018, 3:13:29 PM6/1/18
to OpenPnP
Cri 
You mean this line (412)
<cameras>
         <camera class="org.openpnp.machine.reference.camera.OpenCvCamera" id="CAM2" name="UP-LOOKING" looking="Up" settle-time-ms="250" rotation="90.0" flip-x="true" flip-y="false" offset-x="0" offset-y="0" crop-width="0" crop-height="0" scale-width="0" scale-height="0" deinterlace="false" device-index="0" preferred-width="0" preferred-height="0" fps="24">
            <units-per-pixel units="Millimeters" x="0.04008909" y="0.04017857" z="0.0" rotation="0.0"/>
            <vision-provider class="org.openpnp.machine.reference.vision.OpenCvVisionProvider"/>
            <head-offsets units="Millimeters" x="145.92" y="3.9" z="-21.5" rotation="0.0"/>
            <safe-z value="0.0" units="Millimeters"/>
            <calibration enabled="false">
               <camera-matrix length="9">1191.5756551588188, 0.0, 312.2199372266331, 0.0, 1177.298774172404, 207.45683421183406, 0.0, 0.0, 1.0</camera-matrix>
               <distortion-coefficients length="5">-0.2776119081283027, 10.992975846717442, 0.013332450581920815, 0.008718084746102443, 143.50307725830913</distortion-coefficients>
            </calibration>
            <properties class="java.util.ArrayList"/>
         </camera>
         <camera class="org.openpnp.machine.reference.camera.OpenCvCamera" id="CAM1526648483031" name="UP-LOOKING_2" looking="Up" settle-time-ms="250" rotation="270.0" flip-x="false" flip-y="true" offset-x="0" offset-y="0" crop-width="0" crop-height="0" scale-width="0" scale-height="0" deinterlace="false" device-index="1" preferred-width="0" preferred-height="0" fps="24">
            <units-per-pixel units="Millimeters" x="0.04545455" y="0.04587156" z="0.0" rotation="0.0"/>
            <vision-provider class="org.openpnp.machine.reference.vision.OpenCvVisionProvider"/>
            <head-offsets units="Millimeters" x="178.72" y="3.2" z="-21.5" rotation="0.0"/>
            <safe-z value="0.0" units="Millimeters"/>
            <calibration enabled="false">
               <camera-matrix length="9">1175.7977007586103, 0.0, 273.7612375782868, 0.0, 1170.6132948903442, 231.89083199001468, 0.0, 0.0, 1.0</camera-matrix>
               <distortion-coefficients length="5">-0.12384144828943573, 4.187056011999132, -0.010322507075762566, 0.016659090543245412, -20.086620196939183</distortion-coefficients>
            </calibration>
            <properties class="java.util.ArrayList"/>
         </camera>
      </cameras>

On Thursday, 31 May 2018 22:05:44 UTC+2, Cri S wrote:

Mike Menci

unread,
Jun 1, 2018, 3:15:14 PM6/1/18
to OpenPnP
Maschine enclosed Cri - please editt I test. 
Thanks
machine.xml
Reply all
Reply to author
Forward
0 new messages