Testing out the PPD42 Air Quality Sensor, with an MSP430 Launchpad and graphing the data with GNUplot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
7.6 KiB

5 years ago
  1. This is README.SCO Last Modified Thu Oct 18 13:58:28 MDT 2001
  2. UnixWare and OpenUNIX related Documentation
  3. This document is the release notes From Caldera before the merge see notes.
  4. Java Communications API Implementation for Caldera UNIX Operating Systems
  5. Version 2.0 Beta-3
  6. October 2, 2001
  7. -------------------------------------------------------------------------------
  8. notes:
  9. This was Version 2.0 Beta-3 notes. The work is being merged into the rxtx CVS.
  10. Some minor changes will happen and will be noted here.
  11. Thanks to Jonathan Schilling <jls@caldera.com> and Caldera for the SCO port!
  12. 1) RXTX does not ship with Sun's comm.jar. It can be obtained from Sun.
  13. 2) The Lockfile could use some work. It possible to fix it at compile time
  14. but a run time solution would allow. The current behavior is to use FHS
  15. locks. This should be the same behavior as rxtx-1.4-8 as used in the
  16. original SCO port.
  17. 3) in configure.in you will want to comment out 2 lines and run autoconf in
  18. the top rxtx directory before building. The lines are:
  19. # Comment these two lines out when compiling on SCO
  20. AC_DISABLE_STATIC
  21. AM_PROG_LIBTOOL
  22. # end of SCO fixes
  23. -------------------------------------------------------------------------------
  24. These are the Release Notes for the beta release of an implementation of
  25. the Java Communications API (also known as javax.comm) for Caldera UNIX
  26. operating systems.
  27. The Java Communications API is described at
  28. http://java.sun.com/products/javacomm/index.html.
  29. This implementation is available for the following Caldera UNIX operating
  30. systems:
  31. Open UNIX 8.00
  32. UnixWare 7.1.1
  33. OpenServer 5.0.6 with rs506a supplement
  34. A prerequisite is that Java 2 Standard Edition v. 1.3.0 for Caldera UNIX
  35. Operating Systems must already have been installed (including any
  36. packages or ptfs required by J2SE 1.3.0). This requirement may be met
  37. by either the J2SE SDK (package java2sdk3) or the J2SE Runtime Environment
  38. (package java2jre3).
  39. While J2SE 1.3.0 for OpenServer does not require the rs506a release
  40. supplement be installed, this javax.comm implementation does.
  41. This implementation is a port of the open source RXTX implementation of
  42. the Java Communications API. Information about RXTX may be found at
  43. http://www.rxtx.org. This port has been done off of RXTX version 1.4-8.
  44. RXTX includes part of the Sun Java Communications API implementation
  45. for Solaris/x86, version 2.0. This part (the comm.jar file) is included
  46. in this distribution; you do not need to download it from the Sun web page.
  47. To install this beta implementation, place the javaxcomm.ds file somewhere.
  48. Go there, become root, and then do:
  49. # pkgadd -d 'pwd`/javaxcomm.ds
  50. This will install package javaxcomm, which places the following files into
  51. the J2SE 1.3.0 directory structure:
  52. /usr/java2/jre/lib/ext/comm.jar
  53. /usr/java2/jre/lib/ext/jcl.jar
  54. /usr/java2/jre/lib/x86at/libSerial.so
  55. /usr/java2/jre/lib/x86at/libParallel.so
  56. /usr/java2/jre/lib/javax.comm.properties
  57. /usr/java2/javax.comm-ReleaseNotes.txt [this file]
  58. Alternatively, if you are installing the Java Communications API in
  59. conjunction with the J2SE Runtime Environment rather than the J2SE SDK,
  60. then use the jrexcomm.ds file instead:
  61. # pkgadd -d 'pwd`/jrexcomm.ds
  62. which will install the following files as part of package jrexcomm:
  63. /usr/jre2/lib/ext/comm.jar
  64. /usr/jre2/lib/ext/jcl.jar
  65. /usr/jre2/lib/x86at/libSerial.so
  66. /usr/jre2/lib/x86at/libParallel.so
  67. /usr/jre2/lib/javax.comm.properties
  68. /usr/jre2/javax.comm-ReleaseNotes.txt [this file]
  69. You can install both the javaxcomm and jrexcomm packages if you desire,
  70. as long as you have both java2sdk3 and java2jre3 installed.
  71. The installed binaries of either Java Communications API package are used
  72. for all three Caldera UNIX platforms. (On OpenServer, the native code
  73. libraries are executed via the OSRcompat binary compatibility module,
  74. just as the native code layers of J2SE 1.3.0 are.)
  75. To use this implementation of Java Communications API, just compile and
  76. run Java as you normally would. Because the above files are installed
  77. into the standard J2SE 1.3.0 extension space, there is no need to set
  78. CLASSPATH or LD_LIBRARY_PATH to access the Java Communications API.
  79. A simple test of the serial I/O part of this implementation can be
  80. done as follows. Set up a null modem RS-232 cable between two machines.
  81. Become root. Run the open source "minicom" tool
  82. (see http://www.pp.clinet.fi/~walker/minicom.html) on each machine
  83. and verify that the connection is working, by typing characters back
  84. and forth between the two machines. Caldera can make available
  85. minicom-ou8-uw7 and minicom-osr5, ported versions of minicom for
  86. the Caldera UNIX platforms. (Note that you need to first do
  87. "minicom -s" to tell it about the names and speeds of your serial ports.
  88. When you then run "minicom", use the ctrl-A E and ctrl-A A commands to
  89. turn on local echo and linefeed add.)
  90. Once working serial communication has been verified, shut down minicom
  91. on the machine that Java Communications API is installed on. Untar the
  92. Sun SerialDemo demo program, which is SerialDemo.tar and can be made
  93. available by Caldera. Change into the SerialDemo directory, and run
  94. # /usr/java2/bin/java SerialDemo
  95. or
  96. # /usr/jre2/bin/java SerialDemo
  97. This should bring up a GUI. Change the serial device port name and speed
  98. in the GUI if necessary, then click "Open Port". (Contact Caldera if the
  99. port name you are interested in does not appear in the GUI.) Type into the
  100. top pane and text should appear in the minicom window on the other machine.
  101. Type into the minicom window on the other machine and text should appear
  102. in the middle pane of the SerialDemo GUI. Click "Close Port" to finish.
  103. This implementation uses the normal UNIX "lock file" protocol to protect
  104. serial ports from concurrent access. This means that javax.comm will
  105. not be able to access the port if it is already locked by another
  106. serial application (whether javax.comm, non-Java, or a system command),
  107. and vice versa. In the case where javax.comm is locked out, you may get
  108. a message containing the phrase "Port currently owned by unknown Solaris
  109. Application"; for "Solaris" read the Caldera UNIX operating system you
  110. are on.
  111. Additional sample programs using the Java Communications API are available
  112. as part of the Sun Solaris/x86 implementation and can be downloaded from
  113. http://java.sun.com/products/javacomm/index.html. (Do not use the
  114. SimpleRead and SimpleWrite programs without modification, since they fail
  115. to properly close the serial port at program completion.)
  116. Known problems:
  117. The lock files in Open UNIX 8 and UnixWare 7 will protect against
  118. concurrent port access by multiple javax.comm applications, but will not
  119. protect against concurrent access by other applications or system commands
  120. that use the SVR4 serial lock file protocol (/var/spool/locks/LK.m.m.m).
  121. This will be corrected in the final release. On OpenServer, the lock files
  122. protect against all concurrent access, assuming other applications are
  123. using the standard protocol there (/usr/spool/uucp/LCK..tty?A).
  124. The parallel I/O part of this implementation has not been tested at all
  125. on any Caldera UNIX platforms.
  126. RXTX is available under the GNU Library General Public License (LGPL).
  127. Because this is still just an beta level implementation, the ported
  128. source code for RXTX is not included with this distribution. Once this
  129. implementation is final, source code will be included. If you would
  130. like the source code for this beta implementation, please contact
  131. Caldera and it will be sent to you.