Skip to contentSkip to conversation

ARM - OE Linux, Java and SerialPort

DISCUSSION Jan Pannecoeck 3 participants 4 messages Dec 19, 2008

lore
Share & tools
lore
#0 lore raw

Hello everyone,

I'm not sure if this is the right mailinglist, but I'll post my question here so maybe someone could help me. I'm currently using an OE linux distribution on my ARM board, this is all working fine and I'm using jamvm to run my java programs. Now I would like to communicate with a SerialPort. But the Java Communication API provided by Sun does not support an ARM based system. Only the Linux x86 system is supported. Since Linux is using the serial port as a "file", the reading and writing part could probably be done using a simple Reader and Writer in Java, but how can I change the baudrate and other configuration settings of the serial port?

Does anybody has any experience with this?

Kind regards, and a early happy christmas!

Jan Pannecoeck

#1 lore raw
Quoted 13 lines · Jan Pannecoeck

Hello everyone,

I'm not sure if this is the right mailinglist, but I'll post my question here so maybe someone could help me. I'm currently using an OE linux distribution on my ARM board, this is all working fine and I'm using jamvm to run my java programs. Now I would like to communicate with a SerialPort. But the Java Communication API provided by Sun does not support an ARM based system. Only the Linux x86 system is supported. Since Linux is using the serial port as a "file", the reading and writing part could probably be done using a simple Reader and Writer in Java, but how can I change the baudrate and other configuration settings of the serial port?

Quoted 6 lines

Does anybody has any experience with this?

Kind regards, and a early happy christmas!

Jan Pannecoeck

Try the rxtx package included in oe.

Bye Henning

Signature · 1 line
IBM Certified Specialist - eserver i5 iSeries Technical Solutions Designer V5R3
#2 lore raw

I had also contacted the distributor of my ARM-development kid (Taskit) they also gave me this advice, and I'm currently using the rxtx package!

Thanks!

Quoted 18 lines · Henning Heinold
Quoted 11 lines · Jan Pannecoeck

Hello everyone,

I'm not sure if this is the right mailinglist, but I'll post my question here so maybe someone could help me. I'm currently using an OE linux distribution on my ARM board, this is all working fine and I'm using jamvm to run my java programs. Now I would like to communicate with a SerialPort. But the Java Communication API provided by Sun does not support an ARM based system. Only the Linux x86 system is supported. Since Linux is using the serial port as a "file", the reading and writing part could probably be done using a simple Reader and Writer in Java, but how can I change the baudrate and other configuration settings of the serial port?

Does anybody has any experience with this?

Kind regards, and a early happy christmas!

Jan Pannecoeck

Try the rxtx package included in oe.

Bye Henning

#3 lore raw
In reply to Jan Pannecoeck
Quoted 6 lines · Jan Pannecoeck

Hello everyone,

I'm not sure if this is the right mailinglist, but I'll post my question here so maybe someone could help me. I'm currently using an OE linux distribution on my ARM board, this is all working fine and I'm using jamvm to run my java programs. Now I would like to communicate with a SerialPort. But the Java Communication API provided by Sun does not support an ARM based system. Only the Linux x86 system is supported. Since Linux is using the serial port as a "file", the reading and writing part could probably be done using a simple Reader and Writer in Java, but how can I change the baudrate and other configuration settings of the serial port?

Does anybody has any experience with this?

Quoted 8 lines

Kind regards, and a early happy christmas!

Jan Pannecoeck

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

You can read 《linux device drivers》and found out a "way" to control the SerialPort ,all operation is using a "file" interface. Good luck!