DTR and serial communcations using java commapi
Archiver
Posts: 46,084
I am sending data to the bs2sx Stamp using routines from the java
commapi and found that because DTR is being used by java, it causes
the Stamp to be reset since DTR is tied to ATN. Has anyone seen this
before? I got around it by removing pin 4 (DTR) from the serial
cable, but there must be a software solution better than removing the
pin! I appreciate any suggestions, Dave
commapi and found that because DTR is being used by java, it causes
the Stamp to be reset since DTR is tied to ATN. Has anyone seen this
before? I got around it by removing pin 4 (DTR) from the serial
cable, but there must be a software solution better than removing the
pin! I appreciate any suggestions, Dave
Comments
serial port is reserved specifically for debug
purposes -- if you try to use it for a 'vanilla'
serial port (like you can port 16 in the BS2)
there is a LOT of debug info that also comes
flying out the port. Not using DTR may be the
least of your troubles.
I believe Parallax uses a second serial port,
with a MAX232 on it, out of the Javelin to do
'vanilla' serial port communication. Of course,
on the javelin they use interrupt-driven I/O,
and buffer up the results.
--- In basicstamps@yahoogroups.com, "david_topham" <dtopham@o...>
wrote:
> I am sending data to the bs2sx Stamp using routines from the java
> commapi and found that because DTR is being used by java, it causes
> the Stamp to be reset since DTR is tied to ATN. Has anyone seen
this
> before? I got around it by removing pin 4 (DTR) from the serial
> cable, but there must be a software solution better than removing
the
> pin! I appreciate any suggestions, Dave
that do in fact allow the programmer to control the state of the DTR
line.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: david_topham [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=6Sju5ytSTUaoHA4P03WIzDj3p2ekW_jeXQ7DbqTXjwZjlRlKiLy-EtkFV7aLXVl7sI-nG6mHDZbH]dtopham@o...[/url
Sent: Friday, July 16, 2004 6:56 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] DTR and serial communcations using java commapi
I am sending data to the bs2sx Stamp using routines from the java
commapi and found that because DTR is being used by java, it causes
the Stamp to be reset since DTR is tied to ATN. Has anyone seen this
before? I got around it by removing pin 4 (DTR) from the serial
cable, but there must be a software solution better than removing the
pin! I appreciate any suggestions, Dave