-
les port coms
voila je voudrais utiliser des ports Rs232 d'une carte mere avec comme OS linux avec un soft en java pour communiquer avec une carte electronique externe.
j ai regarder un peu ce qu il y avait et j ai vu 2 solutions
une avec une api javax.comm
une avec un truc qui s apelle RXTX
quelle est la différence et quelle est la meilleure solution???
please help me (je suis un peu speed sur le coup)
config:
os vector linux
carte mere VIA mini ITX1500
1G de ram
disque dur compact flash de 2 giga
carte PCI 4 portcom
logiciel de deveuloppement eclipse
voila merci pour votre aide
++
-
Apparemment javax.comm n'est pas compatible linux : http://christophej.developpez.com/tu...java/javacomm/ (introduction)
Le choix est donc vite fait :)
-
apres avoir regarder un peu chez sun ca a l air pas mauvais non(pour javax.comm)
de chez sun
Java(tm) Communications API Read Me
Version 3.0
License
The Java(tm) communications API can be used to write platform-independent communications applications for technologies
such as voice mail, fax, and smartcards, embedded systems, and point-of-sale equipment. This download features API documentation
in HTML format, reference implementations for the Solaris and Win32 platforms, and sample software.
This version of the Java communications API contains support for RS232 serial ports and IEEE 1284 parallel ports.
Summary of 3.0 features:
1. Javax.comm is released Linux platform for RedHat and JDS.
2. Extended portmapping to provide control over which ports are exposed
in the CommPortIdentifier list, as well as over the names assigned to them.
For the Sun Ray thin client device path transparency is also provided.
Summary of features introduced in 2.0:
Enumerate ports available on the system.
Open and claim ownership of ports.
Resolve port ownership contention between multiple applications.
Perform asynchronous and synchronous I/O on ports.
Receive Beans-style events describing communication port state changes.
Please note that the Java communications API does not support unsigned applet access to ports prior to JDK 1.2. For JDK versions 1.2
and beyond access to ports is determined by the JDK security policy implemented by the system administrator.
-
Effectivement depuis la version 3.0 c'est compatible avec Linux.
Je viens de regarder un ancien projet et j'avais utilisé javax.comm, sans soucis particulier. Après je ne saurais pas t'expliquer les avantages et inconvénients par rapport à rxtx.