Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 3e0469819754851ff85f4beb397707d3a3571a51 @davfigue committed Apr 18, 2012
Oops, something went wrong.
@@ -0,0 +1,5 @@
+This product includes software developed by Ariadna Servicios Informáticos.
+Copyright (c) 2011, David Figueroa Escalante
+All rights reserved.
+
+Please read the different LICENSE files present in the java archives of the lib directory and the LICENSE.txt file in this folder.
@@ -0,0 +1,52 @@
+Caen Proxy Service
+==================
+
+The objective of this module is to provide a TCP intermediate proxy to CAEN RFID readers that are
+not directly plug to the ALE server and also dont have network connectivity facilities.
+
+This software should be installed on the host machine where the reader is
+plugged in, allows to communicate to RFID middlewares like ALE middleware by fosstrak <http://www.fosstrak.org>
+
+For the case of fosstrack to allow the connection, I developed my own "hal-impl-caen" that is plugable into the ALE server.
+if needed write me at: "davfigue@gmail.com"
+
+
+Requirements
+============
+
+You should have installed the serial and parallel communication library for java RXTX for your platform
+The version used in this software is: 2.2pre2
+
+Look at <http://rxtx.qbang.org/wiki/index.php/Main_Page> for downloading and installing this library
+
+
+How to use
+==========
+
+Run with:
+ $ java -jar caen-proxy-service-<version>.jar
+
+The program will start a web service at the endpoint: "http://<ip>:<port>/caenrfid-proxy"
+The default configuration is to listen in all the network interfaces, then the default endpoint address is:
+
+ "http://0.0.0.0:8888/caenrfid-proxy"
+
+The wsdl is located at:
+ "http://0.0.0.0:8888/caenrfid-proxy?wsdl"
+
+The configuration can be tuned using the file in "/props/CaenProxyService_default.xml"
+The only thing that I think should be changed is the "serialPort" field, the software tries to connect to the reader first
+to the port specified here but if is not possible then automatically tries to connect to any available serial port
+(it keeps trying eternally until the program quits).
+
+
+Posible issues
+==============
+
+There is a known issue using this software in "Windows" when the path to the directory containing the jar has spaces.
+This is related to a dynamic lookup of the absolute paths to use at the initial configuration of the service.
+
+-> "Yes, this is going to be solved in future versions" <-
+
+Solution: use paths (files and folders) with names containing no spaces.
+
@@ -0,0 +1,79 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.asisoft.caen</groupId>
+ <artifactId>caen-proxy-service</artifactId>
+ <version>0.0.3</version>
+ <name>caen-proxy-service</name>
+ <description>Helper service to allow the connection of caen usb readers through TCP/IP</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>./lib</classpathPrefix>
+ <mainClass>com.asisoft.caen.host.main.Main</mainClass>
+ <packageName>com.asisoft.caen.host.main</packageName>
+ </manifest>
+ <manifestEntries>
+ <Class-Path>.</Class-Path>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/bin-with-dependencies.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.rxtx</groupId>
+ <artifactId>rxtx</artifactId>
+ <version>2.2pre2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.caen</groupId>
+ <artifactId>RFIDLibrary</artifactId>
+ <version>4.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.12</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-configuration</groupId>
+ <artifactId>commons-configuration</artifactId>
+ <version>1.4</version>
+ </dependency>
+ </dependencies>
+</project>
@@ -0,0 +1,38 @@
+<assembly>
+ <id>bin-with-dependencies</id>
+ <formats>
+ <format>zip</format>
+ <format>tar.gz</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <include>README*</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>*.jar</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/resources/props</directory>
+ <outputDirectory>/props</outputDirectory>
+ <includes>
+ <include>log4j.properties</include>
+ <include>CaenProxyService_default.xml</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/lib</outputDirectory>
+ <unpack>false</unpack>
+ <scope>runtime</scope>
+ </dependencySet>
+ </dependencySets>
+</assembly>
Oops, something went wrong.

0 comments on commit 3e04698

Please sign in to comment.