Goto page Previous 1, 2
Anti-Spam
Guest
Fri Sep 03, 2010 6:32 am
On Thu, 02 Sep 2010 21:30:57 +0200, Anti-Spam <Anti_at_Spam.com> wrote:
Quote:
Probably been covered a thousand times in this forum, but have been
doing other things for quite a few years now. I designed many years
ago some Serial interface boards using the MAX232CPE RS232 chip. I
have been asked by the owners of the product to change these to USB
connectivety. The FTD chips obviousley come to mind for such a task,
but need some help please. We would like to replace the RS232 port
with a USB port. What I would ideally like to do, is remove the MAX
chip altogether and replace it with a FTD chip. The problem for me is
that I did not write the Firmware for this project, so I am not in a
position to change anything as far as the Microcontroller Programming
is concerned (we do not have the source code). We use on the MAX chip
Tx, Rx and the CTS, RTS lines.
What we would like to achieve is for the end customer for the
interface board, to be able to load the FTD drivers, connect using the
USB port, and use the board like nothing had changed. Is this
possible? any pointers please?
PS I did ask FTD, but they just sent a data sheet with a few different
chips on, that I did not understand.
Mark in Spain.
Here are the software manuals the Firmware engineer wrote for the
basic product, if it helps?
http://www.markscotford.com/P00W0101.DOC
http://www.markscotford.com/P00W0202.DOC
http://www.markscotford.com/P00W0301.DOC
hamilton
Guest
Fri Sep 03, 2010 10:11 am
On 9/2/2010 11:27 PM, Anti-Spam wrote:
Quote:
On Thu, 02 Sep 2010 16:26:50 -0600, hamilton<hamilton_at_nothere.com
wrote:
On 9/2/2010 2:51 PM, Anti-Spam wrote:
On Thu, 02 Sep 2010 16:25:16 -0400, Rich Webb
bbew.ar_at_mapson.nozirev.ten> wrote:
On Thu, 02 Sep 2010 21:30:57 +0200, Anti-Spam<Anti_at_Spam.com> wrote:
Probably been covered a thousand times in this forum, but have been
doing other things for quite a few years now. I designed many years
ago some Serial interface boards using the MAX232CPE RS232 chip. I
have been asked by the owners of the product to change these to USB
connectivety. The FTD chips obviousley come to mind for such a task,
but need some help please. We would like to replace the RS232 port
with a USB port. What I would ideally like to do, is remove the MAX
chip altogether and replace it with a FTD chip. The problem for me is
that I did not write the Firmware for this project, so I am not in a
position to change anything as far as the Microcontroller Programming
is concerned (we do not have the source code). We use on the MAX chip
Tx, Rx and the CTS, RTS lines.
What we would like to achieve is for the end customer for the
interface board, to be able to load the FTD drivers, connect using the
USB port, and use the board like nothing had changed. Is this
possible?
Yes, it is. It's also possible that it won't work at all.
If the RTS/CTS lines are used "as intended," that is, for serial flow
control, then the probability that it will work correctly and
transparently is very high, approaching 1.
If, however, the RTS/CTS pair are used as a "side channel" for signaling
and if the signals are required to be synchronized with the serial data
stream or with each other, then you may have a problem.
One other possible problem is that some applications limit the number of
COM ports that they can "see." For example, the FlukeView software for
their ScopeMeters will only connect up through COM8. USB serial ports,
on the other hand, can be up in much higher-numbered ports depending on
how many different USB-serial gadgets a given machine has used in the
past.
It is possible to work around this, if necessary, by going into the
Windows Device Manager and manually assigning a "visible" COM port
number to a particular USB-serial instance. In this case, the change
from a hardware RS-232 port to a virtual USB-serial port would work
(subject to the RTS/CTS caveats above) but could require the end user to
take an extra step or two to set it up.
The guy who wrote the Firmware for this project was an older, very
serious Polish guy, so the CTS and RTS implimentation was more than
probably, text book RS232 implimentation.
The embedded side won't be a problem.
Does this board connect to a PC ??
If so, does the PC software toggle the CTS/RTS lines by writing the I/O
ports on the PC buss ??
If this is true, you will not be able to use a USB serial port.
You will need to re-write the PC software.
h
Thanks, do you have any example circuits?
I do not think you understand my statement.
You will need to re-write your PC software.
There is no schematic for PC software.
In another post you said:
"What we would like to achieve if possible, is for existing customers
to carry on using the product without change to the software they have
had written for their host PC."
The "if possible" is what I am telling you.
Its not.
Unless you know if the person who wrote the PC software did not use
direct PC I/O port calls in his code.
By the sounds of it, you do not know.
With the information given, you can not just replace a hardware serial
port on a PC with a USB serial port and expect it to work without problems.
sorry
h
Rich Webb
Guest
Fri Sep 03, 2010 10:27 am
On Fri, 03 Sep 2010 07:24:08 +0200, Anti-Spam <Anti_at_Spam.com> wrote:
Quote:
Your statement at the beginig of your post is correct, and yes it does
use the CTS/RTS lines for flow control. I really need help on which
FTD chip to use, and any examples of known working circuitry, I can
copy, err sorry I meant emulate.
Use the FT232R. Figure 7.4 on the datasheet
http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT232R.pdf
shows an example USB to microcontroller interface circuit. You would
not, of course, have to use the 12 MHz clock output as shown; the two
can happily run from different clock domains.
As somebody else up the thread has recommended, you can pick up a USB to
serial cable to try out the setup without needing to do extensive
prototyping. Rather than USB to 232 level, though, you'll want to
convert directly from USB to logic-level signals, just as the FT232R
chip would do.
http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm has cables just
for this (you're not the first one at this party). I'd recommend the
wire-end, I/O-level sensing cable TTL-232RG-VIP-WE. It gives you the
most flexibility with respect to where to connect on your target board
and it uses its Vcc pin to drive its level converters so it's good for
logic levels of 1.8 to 5.25 VDC.
If you can't find the TTL-232RG-VIP-WE model (it seems not to be at the
usual distributors, yet) either the TTL-232R-5V-WE or TTL-232R-3V3-WE
would do just fine with the indicated logic level. Note that their Vcc
pins are low-current outputs.
--
Rich Webb Norfolk, VA
Rich Webb
Guest
Fri Sep 03, 2010 11:09 am
On Fri, 03 Sep 2010 03:11:08 -0600, hamilton <hamilton_at_nothere.com>
wrote:
Quote:
On 9/2/2010 11:27 PM, Anti-Spam wrote:
On Thu, 02 Sep 2010 16:26:50 -0600, hamilton<hamilton_at_nothere.com
wrote:
On 9/2/2010 2:51 PM, Anti-Spam wrote:
On Thu, 02 Sep 2010 16:25:16 -0400, Rich Webb
bbew.ar_at_mapson.nozirev.ten> wrote:
On Thu, 02 Sep 2010 21:30:57 +0200, Anti-Spam<Anti_at_Spam.com> wrote:
Probably been covered a thousand times in this forum, but have been
doing other things for quite a few years now. I designed many years
ago some Serial interface boards using the MAX232CPE RS232 chip. I
have been asked by the owners of the product to change these to USB
connectivety. The FTD chips obviousley come to mind for such a task,
but need some help please. We would like to replace the RS232 port
with a USB port. What I would ideally like to do, is remove the MAX
chip altogether and replace it with a FTD chip. The problem for me is
that I did not write the Firmware for this project, so I am not in a
position to change anything as far as the Microcontroller Programming
is concerned (we do not have the source code). We use on the MAX chip
Tx, Rx and the CTS, RTS lines.
What we would like to achieve is for the end customer for the
interface board, to be able to load the FTD drivers, connect using the
USB port, and use the board like nothing had changed. Is this
possible?
Yes, it is. It's also possible that it won't work at all.
If the RTS/CTS lines are used "as intended," that is, for serial flow
control, then the probability that it will work correctly and
transparently is very high, approaching 1.
If, however, the RTS/CTS pair are used as a "side channel" for signaling
and if the signals are required to be synchronized with the serial data
stream or with each other, then you may have a problem.
One other possible problem is that some applications limit the number of
COM ports that they can "see." For example, the FlukeView software for
their ScopeMeters will only connect up through COM8. USB serial ports,
on the other hand, can be up in much higher-numbered ports depending on
how many different USB-serial gadgets a given machine has used in the
past.
It is possible to work around this, if necessary, by going into the
Windows Device Manager and manually assigning a "visible" COM port
number to a particular USB-serial instance. In this case, the change
from a hardware RS-232 port to a virtual USB-serial port would work
(subject to the RTS/CTS caveats above) but could require the end user to
take an extra step or two to set it up.
The guy who wrote the Firmware for this project was an older, very
serious Polish guy, so the CTS and RTS implimentation was more than
probably, text book RS232 implimentation.
The embedded side won't be a problem.
Does this board connect to a PC ??
If so, does the PC software toggle the CTS/RTS lines by writing the I/O
ports on the PC buss ??
If this is true, you will not be able to use a USB serial port.
You will need to re-write the PC software.
h
Thanks, do you have any example circuits?
I do not think you understand my statement.
You will need to re-write your PC software.
There is no schematic for PC software.
In another post you said:
"What we would like to achieve if possible, is for existing customers
to carry on using the product without change to the software they have
had written for their host PC."
The "if possible" is what I am telling you.
Its not.
Unless you know if the person who wrote the PC software did not use
direct PC I/O port calls in his code.
By the sounds of it, you do not know.
With the information given, you can not just replace a hardware serial
port on a PC with a USB serial port and expect it to work without problems.
Although it's certainly possible that the original PC-side application
programmer was a crusty old DOS developer, it's very likely that the app
controls the COM port through the Windows API. GetCommState() and
SetComState() work through the hardware abstraction layer so Windows,
the app, and the virtual COM port (via the FTDI DLL) should all work
together as intended.
--
Rich Webb Norfolk, VA
hamilton
Guest
Fri Sep 03, 2010 11:31 am
On 9/3/2010 4:09 AM, Rich Webb wrote:
Quote:
Although it's certainly possible that the original PC-side application
programmer was a crusty old DOS developer, it's very likely that the app
controls the COM port through the Windows API. GetCommState() and
SetComState() work through the hardware abstraction layer so Windows,
the app, and the virtual COM port (via the FTDI DLL) should all work
together as intended.
This is true.
h
Dave Platt
Guest
Fri Sep 03, 2010 7:42 pm
In article <ql018651lcgheff93qusv65ugm48hcvjce_at_4ax.com>,
Anti-Spam <Anti_at_Spam.com> wrote:
Quote:
In answer to an earlier question, as far as I know, existing customers
of this interface board, are using PC based equipment.
What we would like to achieve if possible, is for existing customers
to carry on using the product without change to the software they have
had written for their host PC (just load the FTD drivers).
We also want any new potential customers, not to be put off trying the
interface, just because it does not have a USB port.
It might help, significantly, to know whether the host PC software you
are referring to, is running under:
- MS-DOS
- An old version of Windows
- A more current version of Windows (e.g. XP or later), as a native
Windows application
- Under some version of Windows, within a "DOS box" (DOS emulation
window).
--
Dave Platt <dplatt_at_radagast.org> AE6EO
Friends of Jade Warrior home page:
http://www.radagast.org/jade-warrior
I do _not_ wish to receive unsolicited commercial email, and I will
boycott any company which has the gall to send me such ads!
Goto page Previous 1, 2