USB to RS232 converter

Everything else that doesn't fall into one of the other PB categories.
marc_256
Addict
Addict
Posts: 859
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

USB to RS232 converter

Post by marc_256 »

Hello,

for my two small robots i need RS232 connections.
But with my laptop x64 win8.1, I do not have any RS232 connectors anymore.
So i like to by the aten usb to serial converter (UC-232C).

Q1) is there someone who used this with PB 5.40Final?
Q2) Is it possible to use these like a RS232 control in PB ?

thanks,
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
ElementE
Enthusiast
Enthusiast
Posts: 139
Joined: Sun Feb 22, 2015 2:33 am

Re: USB to RS232 converter

Post by ElementE »

FTDI chips provide an interface between USB and RS232
Search on "usb to rs232 ftdi" at Amazon.com to see some example products.

The FTDI drivers are easy to install.
http://www.ftdichip.com/Support/Documen ... Guides.htm

How to Install FTDI Drivers
https://learn.sparkfun.com/tutorials/ho ... rivers/all
Think Unicode!
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: USB to RS232 converter

Post by Num3 »

You can buy a USB / RS232 converter pen on any electronic shop or in some hardware shops
User_Russian
Addict
Addict
Posts: 1603
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: USB to RS232 converter

Post by User_Russian »

marc_256 wrote: Is it possible to use these like a RS232 control in PB ?
http://www.purebasic.com/documentation/ ... index.html
TassyJim
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: USB to RS232 converter

Post by TassyJim »

I use and like the aten converters.
I also use most chipsets and have not had any problems with PB with any make.
Once installed, they all work the same, just like a standard serial port although not all converters have the handshake lines available.

Both FTDI and Prolific have had problems with counterfeit chips.
In both cases, you may end up with a converter that doesn't work with some drivers. Take care if purchasing from low cost online sources.
Even some reputable suppliers have found themselves with the counterfeit chips.

With USB converters, unplugging them while your program has the port open can cause problems.

Jim
marc_256
Addict
Addict
Posts: 859
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: USB to RS232 converter

Post by marc_256 »

Thanks to all,

After trying prolific, and targus converters, who failed both on win8

I just bought an aten usb to serial 232 converter.
And I installed on win 8.1 without any problems.

So, go to test this one with PB.

thanks,
marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
infratec
Always Here
Always Here
Posts: 7704
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: USB to RS232 converter

Post by infratec »

Hi Marc,

I have to work a lot with such adaptors :cry:

The best working ones use a FTDI chip.
They have also the best working driver.
All (unusal) baudrates are working. (Tested: 7812.5, 10400, 64000)
But maybe you have to set the Delay value to 1ms instead of 16ms which is the default.

For that you have to use the DeviceManager and go to the extended setting section of the driver.

An other posibillity is to use the 'native' way via the FTDI dll.
Advantages:
A customer has not to setup the com ports.
The port is not changing when you plug it into an other USB port.

Bernd
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: USB to RS232 converter

Post by DarkDragon »

Also if you want to bitbang data, USB to RS232 might not be the best choice, since USB often is too slow for this (it is often due to one USB package per bitchange). Better buy RS232 extension cards (PCI) then.
bye,
Daniel
marc_256
Addict
Addict
Posts: 859
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: USB to RS232 converter

Post by marc_256 »

hi infratec,
I do not know the aten works with a FTDI chip, but this converter works very well.

hi DarkDragon,
you are right, but i have a laptop now and is working under win8 - x64,
so I can't use a PCI extention card.

I just bought a usb to centronics converter ...
for using with my old dot matrix printers ... ??
Hope it will work.

marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Post Reply