On 2007-08-02, Peter Dickerson <firstname.lastname@REMOVE.tesco.net> wrote:> "Chris Hills" <chris@phaedsys.org> wrote in message > news:C9kKjAG6ybsGFAAU@phaedsys.demon.co.uk... >> In article <46b1891b$0$2701$edfadb0f@dread12.news.tele.dk>, Leo Havm�ller >> <rtxleh@nospam.nospam> writes >>><flashlib@gmail.com> wrote in message >>>news:1186021468.906882.15100@m37g2000prh.googlegroups.com... >>>> Hi All, >>>> >>>> I have an image sensor module which has an UART output format. Now, I >>>> want to get it work and transport the image data to PC for testing! >>>> What need I do to get it? The sensor works at least 460KBaud. >>>> >>>> I need the fast way to get it work, any suggestion would be great >>>> appreciated! >>> >>>Find an USB-serial converter that supports the baudrate needed. > > If by USB-serial converter one means a packaged module rather > than a chip then higher baud rates can be problematical > because 232 was never inteded for these speeds.There are RS-232 transceiver chips that are speced to 921K, if you buy an RS-232 interface that's speced to work at 460K then it should be OK.> However, if one uses chips and directly interface at 5v/3v3 > then good results are definitely possible.RS-232 works fine at 460K and 921K if you use the right transceivers.>> I wouldn't do that. Most are less than 100% reliable and >> usually only support the standard baud rates. > > My own experience is that they can work well and that they > generally support higher baudrates - signal integrity, as > describe above, being the main problem. > >> Use a PC with a serial port. > > Since the OP asked for at least 460KBaud (though I think they meant > 460kBaud) and PC serial port go to 115 there would be a problem.There are tons of PCI boards with serial ports that run at speeds up to 921K. -- Grant Edwards grante Yow! I'm a nuclear at submarine under the visi.com polar ice cap and I need a Kleenex!
How to transport UART format data to PC?
Started by ●August 1, 2007
Reply by ●August 2, 20072007-08-02
Reply by ●August 2, 20072007-08-02
Reply by ●August 2, 20072007-08-02
On Aug 3, 9:15 am, flash...@gmail.com wrote:> Thanks all! > > So I need to find a serial port that support to 460KBaud or highter!First some clarification. COM port is the name Microsoft calls the serial port at the back of an IBM PC. Apple used to call them Modem port on older Macs and most other vendors simply call them Serial Ports. All these serial ports have in common is that they use a UART chip to convert the data from the CPU to the format transmitted on the wire. So your "UART" output simply means COM port output. But be careful, since they specify "UART" output instead of "RS232" output it most probably means that your device signal level is 0-5V or 0-3.3V instead of the PC COM port's +/-12V. So connecting them directly may damage your device. Read the datasheet. Which means that you should ignore the previous advice of "use a PC with serial ports". Standard serial ports on PCs only go up to 115k. Instead I'd either get a USB to RS232 converter that supports high baud rates or a PCI serial card that supports high baud rates. For USB to serial look for ones using FTDI chipsets, preferably the newer FT232R variant. Forget the horror stories, FTDI chips are very reliable and only has problems on Mac OSX (some features not supported). I remember Dontronics selling embedded versions that directly output 0-5V or 0-3.3V instead of RS232. However, you may need to write some VB code to get the high baud rates because although these devices can achieve 1Mbps Windows COM port API can only configure up to 115kbps. But they have nice sample code on their website on how to do it (heck, it's a zipped project directory, just modify their code). I believe their newer FT232R chip can be configured to remap baud rates so you can make 460k on the wire look like 115200 on windows. For PCI serial most boards for the industrial market can go up to 1Mbps but your common PCI serial port card can only go up to 115k. Look at Moxa for some nice boards (tend to be expensive). Again, due to Windows API limitation you may need to write your own code to configure the board to go beyond 115k. Again the word of warning. Since your device vendor state UART output as opposed to RS232 output you should carefully read the datasheet to see if you need a transceiver/voltage converter before wiring it up to a COM port.
Reply by ●August 6, 20072007-08-06
On 8 3 , 9 43 , "slebet...@yahoo.com" <slebet...@gmail.com> wrote:> On Aug 3, 9:15 am, flash...@gmail.com wrote: > > > Thanks all! > > > So I need to find a serial port that support to 460KBaud or highter! > > First some clarification. COM port is the name Microsoft calls the > serial port at the back of an IBM PC. Apple used to call them Modem > port on older Macs and most other vendors simply call them Serial > Ports. All these serial ports have in common is that they use a UART > chip to convert the data from the CPU to the format transmitted on the > wire. So your "UART" output simply means COM port output. But be > careful, since they specify "UART" output instead of "RS232" output it > most probably means that your device signal level is 0-5V or 0-3.3V > instead of the PC COM port's +/-12V. So connecting them directly may > damage your device. Read the datasheet. > > Which means that you should ignore the previous advice of "use a PC > with serial ports". Standard serial ports on PCs only go up to 115k. > Instead I'd either get a USB to RS232 converter that supports high > baud rates or a PCI serial card that supports high baud rates. > > For USB to serial look for ones using FTDI chipsets, preferably the > newer FT232R variant. Forget the horror stories, FTDI chips are very > reliable and only has problems on Mac OSX (some features not > supported). I remember Dontronics selling embedded versions that > directly output 0-5V or 0-3.3V instead of RS232. However, you may need > to write some VB code to get the high baud rates because although > these devices can achieve 1Mbps Windows COM port API can only > configure up to 115kbps. But they have nice sample code on their > website on how to do it (heck, it's a zipped project directory, just > modify their code). I believe their newer FT232R chip can be > configured to remap baud rates so you can make 460k on the wire look > like 115200 on windows. > > For PCI serial most boards for the industrial market can go up to > 1Mbps but your common PCI serial port card can only go up to 115k. > Look at Moxa for some nice boards (tend to be expensive). Again, due > to Windows API limitation you may need to write your own code to > configure the board to go beyond 115k. > > Again the word of warning. Since your device vendor state UART output > as opposed to RS232 output you should carefully read the datasheet to > see if you need a transceiver/voltage converter before wiring it up to > a COM port.Thanks for your wonderful and detail explanation! It's quite import for me:)
Reply by ●August 6, 20072007-08-06
On Thu, 02 Aug 2007 14:38:03 -0000, Grant Edwards <grante@visi.com> wrote:>On 2007-08-02, Peter Dickerson <firstname.lastname@REMOVE.tesco.net> wrote: >> "Chris Hills" <chris@phaedsys.org> wrote in message >> news:C9kKjAG6ybsGFAAU@phaedsys.demon.co.uk... >>> In article <46b1891b$0$2701$edfadb0f@dread12.news.tele.dk>, Leo Havm�ller >>> <rtxleh@nospam.nospam> writes >>>><flashlib@gmail.com> wrote in message >>>>news:1186021468.906882.15100@m37g2000prh.googlegroups.com... >>>>> Hi All, >>>>> >>>>> I have an image sensor module which has an UART output format. Now, I >>>>> want to get it work and transport the image data to PC for testing! >>>>> What need I do to get it? The sensor works at least 460KBaud. >>>>> >>>>> I need the fast way to get it work, any suggestion would be great >>>>> appreciated! >>>> >>>>Find an USB-serial converter that supports the baudrate needed. >> >> If by USB-serial converter one means a packaged module rather >> than a chip then higher baud rates can be problematical >> because 232 was never inteded for these speeds. > >There are RS-232 transceiver chips that are speced to 921K, if >you buy an RS-232 interface that's speced to work at 460K then >it should be OK. > >> However, if one uses chips and directly interface at 5v/3v3 >> then good results are definitely possible. > >RS-232 works fine at 460K and 921K if you use the right >transceivers.There may be "RS-232 compatible" transceivers, but I very much doubt that you could run those speeds within the minimum voltage swing, maximum slew rate and current limit (with any practical load capacitance) of the RS-232 standard. Since the OP is talking about an image sensor, this would indicate that there is some distance between the sensor and the PC, so I would suggest using a more appropriate interface, such as RS-422/485. If the image sensor delivers asynchronous characters with TTL levels, just connect an RS-422 (or RS-485) transmitter chip to it and use any RS-422/485 PCI interface card on the PC (most of which supports the 460 kbit/s speed). Use a twisted pair between the image sensor and PCI card to cancel out most external noise. Paul
Reply by ●August 6, 20072007-08-06
On 8 6 , 5 31 , Paul Keinanen <keina...@sci.fi> wrote:> On Thu, 02 Aug 2007 14:38:03 -0000, Grant Edwards <gra...@visi.com> > wrote: > > > > >On 2007-08-02, Peter Dickerson <firstname.lastn...@REMOVE.tesco.net> wro=te:> >> "Chris Hills" <ch...@phaedsys.org> wrote in message > >>news:C9kKjAG6ybsGFAAU@phaedsys.demon.co.uk... > >>> In article <46b1891b$0$2701$edfad...@dread12.news.tele.dk>, Leo Havm==F8ller> >>> <rtx...@nospam.nospam> writes > >>>><flash...@gmail.com> wrote in message > >>>>news:1186021468.906882.15100@m37g2000prh.googlegroups.com... > >>>>> Hi All, > > >>>>> I have an image sensor module which has an UART output format. Now,=I> >>>>> want to get it work and transport the image data to PC for testing! > >>>>> What need I do to get it? The sensor works at least 460KBaud. > > >>>>> I need the fast way to get it work, any suggestion would be great > >>>>> appreciated! > > >>>>Find an USB-serial converter that supports the baudrate needed. > > >> If by USB-serial converter one means a packaged module rather > >> than a chip then higher baud rates can be problematical > >> because 232 was never inteded for these speeds. > > >There are RS-232 transceiver chips that are speced to 921K, if > >you buy an RS-232 interface that's speced to work at 460K then > >it should be OK. > > >> However, if one uses chips and directly interface at 5v/3v3 > >> then good results are definitely possible. > > >RS-232 works fine at 460K and 921K if you use the right > >transceivers. > > There may be "RS-232 compatible" transceivers, but I very much doubt > that you could run those speeds within the minimum voltage swing, > maximum slew rate and current limit (with any practical load > capacitance) of the RS-232 standard. > > Since the OP is talking about an image sensor, this would indicate > that there is some distance between the sensor and the PC, so I would > suggest using a more appropriate interface, such as RS-422/485. If the > image sensor delivers asynchronous characters with TTL levels, just > connect an RS-422 (or RS-485) transmitter chip to it and use any > RS-422/485 PCI interface card on the PC (most of which supports the > 460 kbit/s speed). Use a twisted pair between the image sensor and PCI > card to cancel out most external noise. > > PaulThanks Paul, What else should I do if I use RS-422 PCI interface to get the image?