RE: Modifying serial behavior

"NZG" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
I made a custom class that extends SerialOutputStream and tried to cast
the output stream returned from getOutputStream, but that doesn't seem to
work either.
outputStream = (Com2_485Stream)serialPort.getOutputStream();
compiles fine, but when I run the program on the board it gives me
java.lang.ClassCastException and seems to lock the OS.

What's going on? Is there any way to extend serial behavior?

NZG.

-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:[email protected]]On Behalf Of
NZG
Sent: Thursday, March 25, 2004 10:06 AM
To: Tini (E-mail)
Subject: [TINI]Modifying serial behavior


We have a custom Carrier board with a 485 interface on COM2, To make this
easy to use I am trying to extend the TINISerialPort and SerialOutputStream
classes to auto flip the RTS line on outputstream.write's. I am having
problems however because all the SerialPort variable are declared private
and can only be accessed from inside their package.

As I understand it the package is build into Slush, is this correct?
So to extend the serial port behavior do I need to rebuild Slush?
Where can I find documentation on doing this?

thx,
NZG.


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.