How to set up 2 separate USB host controllers in VirtualBox - virtual-machine

I am trying to make a application in C# that will use 2 Kinect sensors. I have red that when using 2 kinect devices, they have to be connected to 2 separate USB host controllers, otherwise they will not work. On my notebook I think I have only one USB host (even though I have 3 x USB 2 ports - 2 x USB, 1 x USB/eSATA). I can not get my 2 Kinects to work.
So I have installed Virtual Box, and now I am trying to virtualize 2 separate USB hosts. This way I think I will be able to pass first kinect to one virtual host and the second to another host. Is it possible? If so, can anyone help me and navigate me how to setup 2 separate hosts in Virtual Box? I have tried to add devices in PORT tab in VB setting menu, but does not work.
Thank you
EDIT: First I was trying to use 2 Kinect sensors on my Toshiba notebook with Windows, but I would like to use VirtualBox on Macbook Pro 13 Retina (from 2013) Which has 2 separate USB Buses. So can anyone please help me woh to set it up? If you have experience with other wirtual machine system which will work better, let me also know. Thank you.

Related

Can't find hyper-v virtual machine for HoloLens 2 emulator

does anybody know why I can't see the HoloLens 2 emulator as a virtual machine in the hyper-v manager? As far as I know, it is hyper-v based. I'm doing this so that I can change the default virtual switch to an external one (virtual as well) so that other client devices can connect to a server on the HoloLens 2 emulator. If I misunderstood something, tell me that as well.
The HoloLens 2 Emulator uses the Host Compute Service (https://learn.microsoft.com/en-us/virtualization/community/team-blog/2017/20170127-introducing-the-host-compute-service-hcs). Virtual Machines created in this way are not visible in Hyper-V Manager. Modifying the virtual machine to use an external network adapter is not supported. That said, a solution is coming in an emulator update to allow connectivity from other devices. Please keep an eye on https://learn.microsoft.com/en-us/windows/mixed-reality/hololens-emulator-archive for emulator updates.

Allen Bradley Connected Components RS Linx USB Connection

I am working with Allen Bradley's Connected Component Workbench to program a Micro 830 Controller. I'm having an issue when I try to connect to the controller via USB. The USB never comes up in RSLinx even though Windows Device Manager says the driver is installed and working correctly. I am running Connected Components Workbench version 10.01.00 on a Windows 10 machine plugged directly into the Controller via USB and I know that I can connect to the PLC with another machine in the office. Is there still something I'm missing?
I had the same problem. Thing to try:
1) Most of Allen Bradley's equipment only work on a USB 2.0 or below. My computer has both 2.0 and 3.0 ports. Only 2.0 ports will talk to a 830 PLC.
2) Flow this guide:
https://theautomationblog.com/setup-micro800-usb-comms/
3) Download and install the newest version of RsLinx https://compatibility.rockwellautomation.com/Pages/MultiProductFindDownloads.aspx?crumb=112&refSoft=1&toggleState=&versions=51543
4) Call you local AB sales office and ask for help. If you stop by they will help you for free. All sales office have support people that help.

Does DPDK require more than 1 NIC?

I'm totally new to DPDK and have some weird questions that I cannot figure out by myself.
Does DPDK require more than 1 NIC on my physical device? I saw some examples (l2fwd, l3fwd) that require 2 NICs, one is used for receiving packets and another one is used for transmitting packets.
Since DPDK takes control of NICs, could I still normally access the Internet if I bind my only NIC to DPDK? I mean doing some normal stuff like surfing the web with Firefox.
After binding the NICs, only DPDK applications can access those NICs, or is there any way that normal applications can access them?
I have been confused with these questions for days. Please purify my mind.
Thanks in advance :)
It depends on the application. In case of l2fwd, yes you need more than 1 NIC. Though, they don't have to be physical. You could create virtual NICs with VmWare or VirtualBox.
You won't be able to surf the web if you bind NIC to DPDK.
I think there is no other way.
For development, you could setup a virtual machine, with 2 virtual NICs for use by DPDK, and one to surf the web.

connecting 2 Kinect sensors to my notebook

I am trying to connect 2 kinect sensors to my notebook. I know that I have to have at least 2 separate USB 2.0 controllers. According to tis website: LINK I have the same settings as in the picture. So I think that connecting 2 kinect sensors should be possible for me. I have 3 regular USB2 ports and one combined with e-SATA. So I have 4 ports to connect USB devices. However, when I try to connect 2 Kinect sensors (each time into different ports), I am always getting error message on one device (in windows device manager):
This device cannot start. (Code 10)
Can anyone help me please? I do not have any other computer and dont want to buy new just because USB controllers. I thing there has to be a way to do this. Thank you
can you please get a schematic of your notebook's motherboard and double check how your 3 ports are connected to the 2 controllers you mention. Hopefully 1 out of the 3 ports will be connected to a different controller from other 2 ports.
Does your notebook allow you to connect an express card to it ? Perhaps you could get an additional port this way.
With a custom built PC and a PCI Express USB expansion card we've got 3 kinects connected at the same time for an art-installation/robotics project.
I remember though at the time getting 2 Kinects running at the same time on my old 2008 macbook with no problems. Note that this was with either the libfreenect and OpenNI drivers, since the Kinect SDK driver doesn't work on osx.
Also, since you're using the Kinect SDK, I'm guessing you are using either Kinect for Windows (v1 if you will) or Kinect for Xbox360 and not the Kinect 2 for Windows since the current Alpha release of the SDK currently only allows a single sensor.
Update
Had a quick look here:
although couldn't easily find the schematics. My guess is two USB ports are connected to the same controller and the 3rd USB port might(don't take my word for it, check the manufacturers specs) be connected to a separate usb controller, in which case connecting one kinect to one side of your laptop and the other kinect to the port on the opposite should work. Make sure you see both sensors in Device Manager(run devmgmt.msc).
Also, just to double check your sensors as well, try connecting one, running a demo/test, then disconnecting and using a second sensor on the same port.
If both sensors work individually work on the same port, test them also on the usb port on the opposite side. You just want to make sure neither the sensors nor your ports are faulty. Lastly, if your hardware looks fine (power is good, sensors and ports are good), double check your code and me sure you don't accidentally open the same sensor twice or any other mistake that might be easy to miss.
If you have a friend you can either borrow another laptop for a short time just to test that would also be good. You can also try getting an USB Express Cardâ„¢ card for your laptop. Although a long shot, you could try to disable other usb devices on your laptop, leaving as much bandwidth available to the ports as possible. You should be able to do this either from Device Manager or your potentially from BIOS settings.

Force Windows 8 to use UMTS

My situation:
I am running (evaluating) Windows 8 (RTM) on my Laptop.
I am connected to a LAN which has NO access to the internet (DEV-LAN).
I am running a virtual machine (VMware Workstation) which is connected via Bridge Mode to the DEV-LAN. This virtual machine has no access to the internet.
Before, with Windows 7 I was able to connect the host via UMTS to the internet while the virtual machine still was connected to the DEV-LAN. So I could keep working within the virtual machine while doing research (MSDN, Google, Stackoverflow) in the internet on the host.
When I now connect the Windows 8 host to the mobile broadband, nothing changes in the runtime behaviour. The whole Network communication is still running over DEV-LAN. Windows 8 tells me in the Network Sidebar that mobile broadband is connected, but it does not use it. When I remove the network plug of DEV-LAN, THEN the broadband connection will be used. But then obviously, I cannot work in my virtual machine, which depends on DEV-LAN.
Question:
Is there any switch in windows 8 that I can use to tell the system to use broadband over LAN, when available?
Thanks a lot!
Torsten
edit for the comment of pst: the following metrics are given
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 192.168.23.1 192.168.23.12 25
0.0.0.0 0.0.0.0 77.24.97.50 77.24.97.49 296
It finally works :-)
I set the metric of my LAN-Adapter to 999 and everything is as I want it to be.
Any change of the UMTS Adapter to a lower metric was unsuccessful.
Even when I set the metric to 1 or 5 or 10, netstat /rn told me a metric > 50.
So when I cannot lower the one metric, I have to raise the other one ;-)
The metric can be easily changed like follows:
System Settings
Network and Internet
Network Connections
Ethernet -> Context Menu -> Properties
Select Internet Protocol (v4) -> Properties
Advanced
Automatic Metric off and manually set to 999