Re: Serial Bad Data

"Ryan Garner" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <001d01c41d1e$bba120e0$6401a8c0@computer>
Hi Brian,
I am using :

TINI slush Version 1.12
TINI OS 1.12p9


Here is the connection Java source:

portList = CommPortIdentifier.getPortIdentifiers();
    try {
      while (portList.hasMoreElements()) {
        portId = (CommPortIdentifier) portList.nextElement();
        //System.out.println(portId.getName());
        if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
          if (portId.getName().equals("serial4")) {
            serialPort = (SerialPort) portId.open("CommConnector", 20000);
            serialPort.setSerialPortParams(115200,
                                        serialPort.DATABITS_8,
                                        serialPort.STOPBITS_1,
                                        serialPort.PARITY_NONE);
            break;
          }
        }
      }
    }
    catch (Exception e) {
      e.getMessage();
    }

Any help is greatly appreciated.

Thanks,
Ryan Garner

Message: 12
Date: Tue, 06 Apr 2004 10:16:42 -0500
From: Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
To: Ryan Garner <[email protected]>
CC: [email protected], [email protected]
Subject: Re: [TINI]Serial Bad Data

Ryan Garner wrote:
> Hi,
> I was never able to resovle the problem of the missing data. The only
thing
> i could do was to read all data byte by byte from the input stream.  The
> also makes the reading much slower, so I have to stagger my serial data
> sends from the external device which happens to be an amulet in my case.
> I'm using the tStik with the TILT400 PRO by Systronix.  I tried the sample
> code myself and found a lot of missing data when coincidentally was also
> sending 20 characters at a time.

Siam and Ryan,

What TINIOS firmware version are you using?
What serial port are you using?
What parameters and functions are you using to set up the serial port?


-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
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.