# Device and Pipeline for USB and Ethernet

**URL:** <https://3dclub.orbbec3d.com/t/device-and-pipeline-for-usb-and-ethernet/4308>\
**Category:** Basic\
**Created:** [November 5, 2024, 8:57pm UTC](https://3dclub.orbbec3d.com/t/device-and-pipeline-for-usb-and-ethernet/4308 "2024-11-05T20:57:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dko](https://3dclub.orbbec3d.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@dko](https://3dclub.orbbec3d.com/u/dko)\
**Post date:** [November 5, 2024, 8:57pm UTC](https://3dclub.orbbec3d.com/t/device-and-pipeline-for-usb-and-ethernet/4308/1 "2024-11-05T20:57:19Z")

</div>

Hello,

I’m developing for the Femto Mega camera using Orbbec SDK 1.10.8, and I’m running into an issue. I am enumerating USB + ethernet connected devices through enableNetDeviceEnumeration(), and I want to switch between the two modes using the SDK. I use a unique pair of ob::Device and ob::Pipeline objects for both USB and Ethernet modes. In other words, USB and Ethernet modes do not share the device or pipeline objects.

I run into an issue where Pipeline::waitForFrames() returns an empty frameset if I switch between the two modes. Should I share the pipeline between the two devices? And in general, what is the recommended standard for instantiating device and pipeline objects?

---

<div class="post-metadata">

**Author:** ![Nathan](https://3dclub.orbbec3d.com/letter_avatar_proxy/v4/letter/n/c5a1d2/32.png) [@Nathan](https://3dclub.orbbec3d.com/u/Nathan)\
**Post date:** [November 13, 2024, 9:13pm UTC](https://3dclub.orbbec3d.com/t/device-and-pipeline-for-usb-and-ethernet/4308/2 "2024-11-13T21:13:02Z")

</div>

You can set EnumerateNetDevice as true in the config file and running the HotPlugin sample from SDK to switch USB and Ethernet mode alternatively.
