Re: VB6 Control of RTS & DTR without opening comms port
- From: "Peter" <peter_l@xxxxxxxxxxxxx>
- Date: Tue, 5 Dec 2006 15:43:39 +0100
Hi
I don't know whether this can be done by software but you could modify the RS232 cable to keep DTR and RTS permanently active.
Find a signal on ATMEL side that is active all the time and connect it RTS and DTR and cut RTS and DTR from the PC side.
Regards
Peter
<anbeyon@xxxxxxxxxxxxxx> schrieb im Newsbeitrag news:1165322899.205366.177010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi
I am hoping someone might be able to help me.
I am writing some PC based software in Visual Basic 6.0 for an embedded
system that has multiple ATMEL micro-controllers in it. (one master and
some slaves) The Atmel micro's have a serial boot loader with in them
that allow them to be programmed via the serial port. To program a
selected slave processor I have to send some commands to the master to
set up which slave I am to program and then program the slave.
The problem I am having is as follows. The commands I send are being
sent using the VB6 MSCOMM active X control but I have to use the ATMEL
in system programing DLL's to do the device programming. That means
during the set up and program sequence I have to close the serial port
I am using and re-open it using the ATMEL DLL. This changes the state
of the DTR and RTS lines which because of the way hardware is
configured causes the main processor to reset and the programming
fails.
Does anyone know of a way I can preserve the state of the handshakes
between closing my mscomm.ocx and ATMEL DLL opening ports.
Thanks
Anbeyon
.
- References:
- VB6 Control of RTS & DTR without opening comms port
- From: anbeyon
- VB6 Control of RTS & DTR without opening comms port
- Prev by Date: Re: How to read UTF-8 chars using VBA
- Next by Date: Re: How to read UTF-8 chars using VBA
- Previous by thread: VB6 Control of RTS & DTR without opening comms port
- Next by thread: Re: VB6 Control of RTS & DTR without opening comms port
- Index(es):
Relevant Pages
|