Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beginning work on serial interface, command line parsing
-added support libraries for RXTX and Apache Commons CLI parser Log.java: -moved logging functionality out of Coordinator and into seperate class SerialConnection.java: -beginning work on serial interface. Code is borrowed and very sloppy Coordinator.java: -drivers are no longer children of Coordinator, interaction is done through Coordinator.someMethod() instead of a call to super -moved logging to seperate class -changed protected methods to public -removed redundant logMessage() -added command line parsing to get serial port name and network port number -manually loads the LedFlash driver and starts it running (it works!)
- Loading branch information
1 parent
82b4425
commit 64c15c5
Showing
38 changed files
with
1,221 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Hardware Arch: i386 | ||
Kernel: Linux 2.6.18-92.1.17.el5 | ||
Build Date: Sun Dec 7 22:50:11 PST 2008 | ||
Java Virtual Machine: | ||
java version "1.6.0_07" | ||
Java(TM) SE Runtime Environment (build 1.6.0_07-b06) | ||
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
Windows | ||
---------------------------------------------------- | ||
|
||
Choose your binary build - x64 or x86 (based on which version of | ||
the JVM you are installing to) | ||
|
||
NOTE: You MUST match your architecture. You can't install the i386 | ||
version on a 64-bit version of the JDK and vice-versa. | ||
|
||
For a JDK installation: | ||
|
||
Copy RXTXcomm.jar ---> <JAVA_HOME>\jre\lib\ext | ||
Copy rxtxSerial.dll ---> <JAVA_HOME>\jre\bin | ||
Copy rxtxParallel.dll ---> <JAVA_HOME>\jre\bin | ||
|
||
Linux | ||
---------------------------------------------------- | ||
|
||
Choose your binary build - x86_64 or i386 (based on which version of | ||
the JVM you are installing to) | ||
|
||
NOTE: You MUST match your architecture. You can't install the i386 | ||
version on a 64-bit version of the JDK and vice-versa. | ||
|
||
For a JDK installation on architecture=i386 | ||
|
||
Copy RXTXcomm.jar ---> <JAVA_HOME>/jre/lib/ext | ||
Copy librxtxSerial.so ---> <JAVA_HOME>/jre/lib/i386/ | ||
Copy librxtxParallel.so ---> <JAVA_HOME>/jre/lib/i386/ | ||
|
||
NOTE: For a JDK installation on architecture=x86_64, just change the | ||
i386 to x86_64 above. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Overview | ||
----------------------------------------------- | ||
This package contains a custom binary distribution of | ||
the RXTX serial package for Java. | ||
|
||
Courtesy of Mfizz, Inc. (http://mfizz.com/) | ||
http://mfizz.com/oss/rxtx-for-java | ||
|
||
NOTE: If you include my builds in any of your distributions, | ||
please make sure to at least provide a note of thanks to | ||
Cloudhopper in your own ReleaseNotes. For example, | ||
|
||
"RXTX binary builds provided by Mfizz Inc. (http://mfizz.com/). | ||
Please see http://mfizz.com/oss/rxtx-for-java for more info." | ||
|
||
RXTX is a great package, but they were lacking pre-built | ||
binaries for x64 versions of Windows. I also wanted a | ||
version built explicitly with Microsoft Visual Studio | ||
rather than MinGW. | ||
|
||
Please see ReleaseNotes.txt for information about this | ||
specific release. | ||
|
||
|
||
Customization | ||
----------------------------------------------- | ||
|
||
1. I've based my build on recent CVS snapshots. Please | ||
see the ReleaseNotes.txt for information about which | ||
snapshot I based this distribution on. | ||
|
||
2. Removed UTS_NAME warning from .c files to match | ||
kernel with the version you compiled against. | ||
|
||
3. Changed version in RXTXVersion.jar and in SerialImp.c | ||
to match my release so that I know its compiled via a CVS | ||
snapshot. | ||
|
||
|
||
win-x86, win-x64, ia64 | ||
----------------------------------------------- | ||
Built using Microsoft Visual C++ 2008 - not MinGW. The | ||
x86 and x64 versions are native and do not rely on | ||
any other non-standard windows libraries. Just drop | ||
in the compiled .dlls that are specific to the version | ||
of Java you run. If you installed the 64-bit version | ||
of the JDK, then install the x64 build. | ||
|
||
I've tested the x86 and x64 version with Windows 2008, | ||
2003, and Vista SP1. | ||
|
||
|
||
linux-i386 & linux-x86_64 | ||
----------------------------------------------- | ||
Built using CentOS 5.2 and gcc 4.1.2. | ||
|
||
Just drop in the compiled .dlls that are specific to | ||
the version of Java you run. If you installed the 64-bit | ||
version of the JDK, then install the x64 build. | ||
|
||
I've tested the x86 and x64 versions with x86 and x64 | ||
versions of CentOS 5.0 and 5.2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Release Notes | ||
-------------------------------------------------- | ||
|
||
Mfizz distibution of RXTX serial package for Java. | ||
|
||
http://mfizz.com/oss/rxtx-for-java | ||
|
||
2.2-20081207 | ||
|
||
* Initial distribution | ||
* linux-i386 and linux-x86_64 using CentOS 5.2 and GCC 4.1.2 | ||
* win-x86, win-x64, and win-ia64 builds using MSCV 2008 | ||
* CVS snapshot of RXTX-2.2 from 12/07/2008 | ||
* Please see BuildInfo.txt for more information about the | ||
particular build you downloaded | ||
* All windows builds crash the JVM if a COM port becomes | ||
unavailable. For example, if using a USB-to-serial port | ||
cable and you pull it out while your app is connected to the | ||
port. The linux version throws an exception in this scenario. | ||
Please note that even when compiled using mingw vs. MSVC, the | ||
build will have the same behavior. |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
# check that we're root | ||
if [ $(whoami) != "root" ] | ||
then | ||
echo "You must run this script as root. Try running 'su -'" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${JAVA_HOME}" ] | ||
then | ||
echo "Your JAVA_HOME environment variable must be set" | ||
exit 1 | ||
fi | ||
|
||
echo "Installing Cloudhopper RXTX Build to JAVA_HOME=${JAVA_HOME}" | ||
export HWVER=$(uname -i) | ||
|
||
if [ $HWVER = "x86_64" ] | ||
then | ||
# rename to what java uses | ||
export HWVER="amd64" | ||
fi | ||
|
||
echo "Trying to install for hardware type ${HWVER}" | ||
|
||
cp RXTXcomm.jar $JAVA_HOME/jre/lib/ext/ | ||
if [ "$?" -ne 0 ]; then echo "Copy failed"; exit 1; fi | ||
|
||
cp librxtxSerial.so $JAVA_HOME/jre/lib/$HWVER/ | ||
if [ "$?" -ne 0 ]; then echo "Copy failed"; exit 1; fi | ||
|
||
cp librxtxParallel.so $JAVA_HOME/jre/lib/$HWVER/ | ||
if [ "$?" -ne 0 ]; then echo "Copy failed"; exit 1; fi | ||
|
||
echo "Cloudhopper RXTX Build Installed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Hardware Arch: x86_64 | ||
Kernel: Linux 2.6.18-92.1.18.el5 | ||
Build Date: Sun Dec 7 22:48:59 PST 2008 | ||
Java Virtual Machine: | ||
java version "1.6.0_07" | ||
Java(TM) SE Runtime Environment (build 1.6.0_07-b06) | ||
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
Windows | ||
---------------------------------------------------- | ||
|
||
Choose your binary build - x64 or x86 (based on which version of | ||
the JVM you are installing to) | ||
|
||
NOTE: You MUST match your architecture. You can't install the i386 | ||
version on a 64-bit version of the JDK and vice-versa. | ||
|
||
For a JDK installation: | ||
|
||
Copy RXTXcomm.jar ---> <JAVA_HOME>\jre\lib\ext | ||
Copy rxtxSerial.dll ---> <JAVA_HOME>\jre\bin | ||
Copy rxtxParallel.dll ---> <JAVA_HOME>\jre\bin | ||
|
||
Linux | ||
---------------------------------------------------- | ||
|
||
Choose your binary build - x86_64 or i386 (based on which version of | ||
the JVM you are installing to) | ||
|
||
NOTE: You MUST match your architecture. You can't install the i386 | ||
version on a 64-bit version of the JDK and vice-versa. | ||
|
||
For a JDK installation on architecture=i386 | ||
|
||
Copy RXTXcomm.jar ---> <JAVA_HOME>/jre/lib/ext | ||
Copy librxtxSerial.so ---> <JAVA_HOME>/jre/lib/i386/ | ||
Copy librxtxParallel.so ---> <JAVA_HOME>/jre/lib/i386/ | ||
|
||
NOTE: For a JDK installation on architecture=x86_64, just change the | ||
i386 to x86_64 above. |
Binary file not shown.
Oops, something went wrong.