Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Urgent : How to Covert Serial Port Data to USB data

Status
Not open for further replies.

abishek007

Junior Member level 3
Joined
May 20, 2008
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,500
Hi All,

I am stuck with my project..:(. I have a tester equipment which can communicate with the board using RS232 . But the board can connect to the the PC using USB connection or RS232.

Problem:-

Need to change the RS232 connections every time i need to reset the board. ( connect it to PC reset the board.. after it connect it to tester and continue test)

I need to automate this part in my project...

Solution 1:- Build a UART switch and toggle between 2 RS232 connections.

Solution2 :- Connect the tester to my PC and change the RS232 commands to USB and pass it to the board.

I am more interested in solution 2 but have no Idea how to work it out..:(

I would really appreciate for your reply on this ASAP,

Thanks,
-Abishek
 

Solution 1 will be simple and easy.

Use a relay
 

Relay ??? Can you be more specific about it please :)
 

A simple double pole switch will do the job.
 

Re: Urgent : How to Convert Serial Port Data to USB data

i want help with the first solution.
i wish to program a microcontroller using serial port programmer. also, i want to use same serial port for data logging from same microcontroller. i want some kind of switch so that i can use my pc serial port for one purpose at a time, as programming is done less frequently as data logging, both being mutually exclusive in time.
help me about what ic etc to use?
 

Do you know, that USB-to-serial adapters are available at the PC shop around the corner?
 

i know that usb-serial devices are available, but being an amateur(?) electronics student, i want to know whether it is suitable to make port-switching circuit or something which involves buffers or 'relays' as mentioned by nandhu015 before. there is no fun in buying readymade devices.
 

i know that usb-serial devices are available, but being an amateur(?) electronics student, i want to know whether it is suitable to make port-switching circuit or something which involves buffers or 'relays' as mentioned by nandhu015 before. there is no fun in buying readymade devices.

It can be done in both ways. Using a relay is simple and easy, no need for any circuit. If you wish you can use simple multiplexer chip. I use 74hc157 for multiplexing
 

hey 'nandhu015', i've managed to multiplex my programmer and data logger both on same port without any external hardware. for that i have to study my programmer circuit, which involved TX pin(PC side), while RX pin was free. so i used that RX pin for data logging. so no need to use relays or switches etc.
Anyways, thanks for your prompt reply. Love this forum.
 

hi,,
may be too late i reply to the forum..
why you didn't used USB-UART IC Protocol? this ic convert the data directly from usb data into serial RS232 and vice versa
such as IC from FTDI FT2232H etc..
 

hi,,
may be too late i reply to the forum..
why you didn't used USB-UART IC Protocol? this ic convert the data directly from usb data into serial RS232 and vice versa
such as IC from FTDI FT2232H etc..
rather use usb serial converter,which comes at almost same price as FT232. apart from that the IC comes in SMT only.so,its difficult to make the circuit at amateur level.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top