OSVR-Core
Namespaces | Functions
USBSerialDevInfo_Linux.h File Reference

Implementation. More...

#include "USBSerialDevInfo.h"
#include <boost/filesystem.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/algorithm/string.hpp>
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <fcntl.h>
#include <linux/serial.h>
#include <sys/ioctl.h>
#include <unistd.h>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Functions

std::vector< USBSerialDevice > osvr::usbserial::getSerialDeviceList (boost::optional< uint16_t > vendorID=boost::optional< uint16_t >(), boost::optional< uint16_t > productID=boost::optional< uint16_t >())
 

Detailed Description

Implementation.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ getSerialDeviceList()

std::vector< USBSerialDevice > osvr::usbserial::getSerialDeviceList ( boost::optional< uint16_t >  vendorID = boost::optional<uint16_t>(),
boost::optional< uint16_t >  productID = boost::optional<uint16_t>() 
)

DeviceID is the COM port name

PNPDeviceID is the hardware instance ID that has the VID:PID embedded in it.

We had something to search for, and we didn't find it, go on.

Couldn't parse the VID/PID - may not be a USB serial port.

On Windows (NT-based), the "full path" to a serial port with a COM port name is \. (where x is a number)

DeviceID is the COM port name

PNPDeviceID is the hardware instance ID that has the VID:PID embedded in it.

We had something to search for, and we didn't find it, go on.

Couldn't parse the VID/PID - may not be a USB serial port.

On Windows (NT-based), the "full path" to a serial port with a COM port name is \. (where x is a number)