Nov 15, 2018 Use USB-Serial adapters via Windows Subsystem for Linux 15 November, 2018. Windows 10 Build 16176 (April 2017) brought support for. USB ↔ serial adapters to Windows Subsystem for Linux; non-NTFS, USB and Flash drives became mountable in WSL; Here’s how to use USB-serial adapters in WSL: Plug USB ↔ serial adapter into the PC. I found that the Ubuntu package for this driver would not build on my (vanilla) Ubuntu install either. This article finally helped me find a working driver. For me, the working driver was the rtl8812AU8821AUlinux driver by scrivy. Once working, this card seemed blazing fast (relative to other Linux WiFi adapters that I tested) for me on.
I was tasked with writing some code for a PTZ-head using the Pelco-D protocol, which uses RS485 (2-wire).The code is intended to run on a Raspi, so I first figured out how to get that going. Once I was satisfied that I could exchange data between the Pi and the PTZ, I sat down at my laptop to write some actual code and hooked the PTZ up to it via the Ex-1333V usb to serial adapter which we aquired for this purpose. It can do RS232, 422 and 485. It apeared to work well enough with just the standard Ubuntu drivers, at least both its ports were properly recognised.
But I was unable to send data to the head. The transfer indicator on the adaptor lit up, but the head didn't move. For diagnosis, I connected my laptop to the Pi instead. Again the indicator lit up, but the pi didn't receive anything. So I tried the other way around, sending from the Pi and receiving on the laptop. That worked without issue.I started to fiddle around with configuration, and eventually realised that the pi was getting a signal when the adapter was set to RS232. The data was garbled, of course, but at least something was getting through.
So I started thinking about that driver CD provided with the adapter. Might be the driver converts the data before sending it through the USB, instead of converting it on the adapter? This would of course not be handled by the standard drivers. That's the assumption I'm working under currently in any case.
So I got the linux drivers on the cd, which turned out to be a tar containing a c-file, a header file and a makefile. I'm not very familiar with low-level linux stuff, so I was a bit confused. Sure, I could build it, but then what?Turning to the adapters poor excuse for a manual, the only thing I could find was the nice suggestion to 'please follow the instructions for installing USB port drivers on your particular linux distribution'. So I went looking for that, and found... nothing.
Which brings me here. I'll freely admit that this is the first time I'm working with serial, so there might be other things I'm not understanding here, and you should free to point them out. But for the moment I think those drivers are my best bet, so could somebody explain to me how to install them?
ADDENDUM:
I wrote above that I assumed I could build the C project easily enough, but I didn't actually try. Saw no point in it without knowing what to do afterwards. I assumed wrong it turns out, as building produces an error. Here's the make output:
I've googled for the error, but couldn't quite pin down what to do. Apparently there should be a symlink to some system headers in this place, but isn't, but I can't figure out what header the link should point to exactly.If I interpret the makefile right (really not familiar with makefile, never went beyond 'make this-project-i-downloaded', which usually worked), it's just attempting to build an object (.o) file:
There's also a rather long rules file, but I doubt it will help a lot if I post the whole thing. It seems to be taken and modified from a book, as per its header:
So maybe somebody already knows how it looks.
Browse other questions tagged driversusbserial-port or ask your own question.
How do I connect to the Serial port with the Digitus Serial to USB Adapter?
closed as unclear what you're asking by Pilot6, Eric Carvalho, David Foerster, waltinator, kosSep 17 '15 at 7:11
Ubuntu Linux Usb Serial Adapter Driver
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1 Answer
Connect your Serial cable to the adapter.
Connect the adapter to your USB port.
Enter
dmesg | tail
into the terminal.There should be a line like:
[49172.288653] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0
Open Putty with
gksudo putty
in the terminal.Select
Serial
and enter/dev/ttyUSB0
(or similar what you got two steps before)