[kaffe] Serial Comms
cfowler
cfowler at outpostsentinel.com
Tue Sep 10 06:16:44 PDT 2002
Nope. I use Kaffe on the embedded device simply for communications to a
Java client. My core code is port C and no C++. I'm mainly geared for
speed on my units. My concern is that it is possible to flood the port
faster then the JVM could keep up. I have a program that I wrote that
is a "serial to ethernet" like what you described. I would stick to
native as best as I can on your application. email me off the list for
specific help in that arean if you tend to take that route.
On Tue, 2002-09-10 at 07:38, Ian Brown wrote:
> Thanks Chris
>
> The units are currently running a C++ application that I want to port to Java (mainly so that I only have one code-base to support as I also have some systems that run on Windows pc's). As the database I am currently using either MS SQL or Interbase depending on the size of the installation. The database update is no problem and works beautifully using TCP/IP Sockets (via a server application). There is no database running on the embedded PC and the load is relatively small since it is working almost as a protocol converter, converting serial comms to TCP/IP sockets. There is no GUI or anything that consumes major resources.
>
> My problem is specifically around the serial comms and more specifically getting Mark and Space parity working. The machines that I connect to require Mark parity to 'wake them up' and then Space parity for all further comms. On the Windows platform I am using JDK 1.4 and a third party Java serial component called SerialIo that works fine. On the Linux platform, due to the size constraints, I am unable to use JDK 1.4 and so I am looking at alternate VM's.
>
> Have you used Kaffe for Serial comms ?
>
> Ian
>
> -----Original Message-----
> From: cfowler [mailto:cfowler at outpostsentinel.com]
> Sent: 10 September 2002 01:02
> To: Ian Brown
> Subject: Re: [kaffe] Serial Comms
>
>
> Ian,
>
> On more thought, I would not use java for this unless you have no other
> choice. Kaffe + JNI should work but it may be too slow for the load
> expected on the device. What database are you using? I would go with
> pure C for this project. It should be real easy. Especially if you are
> using MySQL. If you need some help with this, I can provide some. Let
> me know.
>
> Chris
>
> On Tue, 2002-09-10 at 06:14, Ian Brown wrote:
> > Hi
> >
> > I am busy evaluating using Kaffe for an application ( kind of embedded) that runs on Linux on a 486 (PC104) with 32mb Ram and a 32mb Compact Flash for disk storage. I need to update a database with data from the machine that this little device is installed in.
> >
> > The database update is no problem as I use TCP/IP sockets from the little Linux boxes and I have a single server that actually performs the updates to the database. (I have more than 100 of these devices !).
> >
> > In order to communicate with the machines I need to use serial comms and specifically Mark and Space parity. Can this be done with Kaffe ?? Any advice would be most appreciated.
> >
> >
> > Regards
> >
> > Ian Brown
> >
> > _______________________________________________
> > kaffe mailing list
> > kaffe at kaffe.org
> > http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> >
> >
>
>
>
>
More information about the kaffe
mailing list