BNC to USB: will this work?

Thread Starter

Siddharth Srivastava

Joined Mar 11, 2017
5
Hi all, I decided to keep this under "general" for now, since this is more of
a curiosity question:
I am trying to read in a signal (time series) from a device which outputs the signal (continuously) through
an analog or a digital output BNC type connections. My goal is to take this signal to a
laptop, and I have used a BNC to USB adapter to perform this connection.
I want to know how I can write a driver or an interface for this kind of adapter? I have seen some python
code (pyusb) that does this using device id etc to query and read the USB. However, for this kind of
BNC to USB connection, I am not very clear on how to go about searching for these parameters to
pass to the interface, If I decide to go this route.
In case I want to write a driver, I guess I will need this information too.
So, with apologies for making this sound like a programming question (let me assure you, it is ultimately for
an electronics application) can someone with experience in this share a few tips?
Thanks,
Sid.
 

MrChips

Joined Oct 2, 2009
34,807
It is not clear what you are trying to do.

On the BNC cable you have an analog signal, or even some form of digital information.
You want to get this to a PC via a USB port.

A USB port is not like a COM port or LPT port. Information is encapsulated and sent to a USB driver.
Then your application has to unpack the digital information. This is not something for the uninitiated.

A simple route one can take is to use a USB-to-UART bridge such as CP2102 which will make the USB port appear as a COM port.
Now you are free to send NRZ serial data and read that via a COM port.
 
Top