Page 1 of 1
RS232 to USB converter
Posted: Sun Feb 28, 2010 11:45 am
by Rotac
Hello,
I want to built a RS232 to USB converter. in this case the PC will connected to RS232 port and the USB port will be connected to a device!
(The most of these converters works with the USB connected to the PC)
Does somebody experimence with this item?
Re: RS232 to USB converter
Posted: Mon Mar 01, 2010 10:22 am
by Benj
Hello,
You can have this up and running in about 5 minutes using Flowcode.
If you also need hardware then an ECIO, an Application board and a RS232 board will do the job for you.
Re: RS232 to USB converter
Posted: Mon Mar 01, 2010 12:40 pm
by Steve
You will need to use a device with USB "on the go". This allows an embedded device to communicate with USB peripherals. You can't do this with Flowcode (at least, not at the moment).
Re: RS232 to USB converter
Posted: Mon Mar 01, 2010 6:39 pm
by Rotac
Hello Steve and Benj
I have the e-block EB039 and the EB015. in combination with the PIC programmer (MCU) is this possible?
for try-out and USB on the Go is the software already availble?
Rob
Re: RS232 to USB converter
Posted: Tue Mar 02, 2010 10:30 am
by Benj
Hello Rob
Yes this is possible, however you will need to use a chip that has two hardware UARTs or manually create a software UART by toggling pins. If you are using Flowcode v3 then there is an example macro showing you ghow to bitbang a UART. This is available from the Flowcode main product page. Otherwise Flowcode 4 has this feature built into the RS232 component allowing you to add one hardware UART and one software.
Edit: Sorry this is incorrect unless you are making a PC to PC RS232 to USB connection.
Re: RS232 to USB converter
Posted: Tue Mar 02, 2010 11:26 am
by Benj
Hello Rob,
Sorry I think I misread your previous post. a USB device is not the same as a USB host. The USB232 board is a USB device and as such is not capable of hosting a USB connection. If you are interested inthis technology then Microchip do some devices with USB on the go but this is not supported by Flowcode. Vinculum also do a nice piece of kit to do USB hosting and is quite easy to setup. This may be perfect for your needs depending on what kind of USB devices you need to be able to support.
Re: RS232 to USB converter
Posted: Tue Mar 02, 2010 5:24 pm
by Rotac
Hello Benj,
I need Rs232 to USB, beacuse the control program runs under DOS and the device (like a PLC) has only a USB connection.
So I thougt is is possible with the flowcode and E-bloks?
I have looked on the site of "Vinculum" but it's for me not really claer of this IC solved my problem!
Kindly regards
Rob
Re: RS232 to USB converter
Posted: Tue Nov 09, 2010 4:25 am
by RobOnk
Hello, Different Rob here.
I'm trying to make use out of my RS232 board (eb015).
I discovered after I purchased it that my laptop does not have a serial port connector.
I see there is a USB converter (eb039), however I needed something quick so I bought a USB to serial converter (from Elecom).
I can see the converter listed in the device manager, however I cannot send or retrieve data from (to) my ver. 3 development board via eb015.
Is there a fundamental reason why this wouldn't work?
Thanks, Rob O
Re: RS232 to USB converter
Posted: Tue Nov 09, 2010 9:46 am
by Benj
Hello Rob,
As long as your USB to serial converter is using +/- 12V and not TTL logic then you should be fine using these two products together.
Have you done the standards set of tests like running a 1 second flasher program to confirm all your clock and configuration settings etc are correct.
Re: RS232 to USB converter
Posted: Wed Nov 10, 2010 9:53 am
by RobOnk
Thanks Ben,
I tried to run the eb015 test "Hello world" program, however I get no data transfer in either direction.
Using the hyperterminal and checking all the settings, still nothing..The hyperterminal program crashed a few times while trying to send data.???
How would I go about confirming the 12V/TTL possibility?
Thanks Ben, Rob O
Re: RS232 to USB converter
Posted: Wed Nov 10, 2010 12:41 pm
by Benj
The hyperterminal program crashed a few times while trying to send data.
This seems strange. Does your USB to serial device expect Flowcontrol to be active? You may have to provide these extra RTS and CTS signals and enable Flowcontrol in the RS232 component of Flowcode if this is the case.
TTL signal levels are 0V or 5V whereas RS232 signals levels are -12V or +12V.
Re: RS232 to USB converter
Posted: Mon Nov 29, 2010 6:07 am
by RobOnk
Hello there again.
My problem seems to be a unwillingness for the port to open.
I made all the settings and used the test file for the RS 232 board, but...
I started getting a "unable to open port" message. The device manager does indicate the usb to serial device as being connected though.
I still have no transfer of data between pc and pic board.
Still lost. Rob
Re: RS232 to USB converter
Posted: Tue Feb 01, 2011 11:10 pm
by singhdeol
http://www.eleccircuit.com/usb-to-rs232 ... ic-max235/
i came across this circuit A usb to serial converter using the max235 IC
Re: RS232 to USB converter
Posted: Wed Feb 02, 2011 12:03 pm
by Benj
Hello,
If the COM port is not opening correctly then first I would go into device manager and confirm that the Port is up and running as expected.
Right click computer -> Propeties -> Device manager -> Ports
If the COM port is available in device manager and drivers etc have been installed then unplug and replug the device and try opening the connection in hyperterminal again.
If you say reprogram your device while hyperterminal has an open connection then the connection will be lost and you will have to close the connection in hyperterminal and unplug / replug the device before the connection becomes valid and usable again.