Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,34 @@ USBtinLib
USBtinLib is a Java library for accessing USBtin. USBtin is an USB to CAN
interace (http://www.fischl.de/usbtin/).

This is just a custom fork from the main code here: https://github.com/EmbedME/USBtinLib
The author did not merge my pull request with the changes to use maven instead, so keeping my own fork then here.

Build
-----
Ant is used to build the library from Java source code. To create the JAR file,
Maven is used to build the library from Java source code. To create the JAR file,
use
```
ant jar
mvn clean install
```

USBtinLib depends on jSSC (Java Simple Serial Connector) - library for working
with serial ports from Java. The jSSC library JAR file must be included in
classpath.
with serial ports from Java. The jSSC library is added automatically by maven when building it
https://code.google.com/p/java-simple-serial-connector/


Usage
-----

Add USBtinLib.jar to the Classpath or as Library to your project. E.g. in
Netbeans: File -> Project Properties -> Libraries -> Compile -> Add JAR/Folder
Add the following dependency to your maven project:

```
<dependency>
<groupId>de.fischl.usbtin</groupId>
<artifactId>usbtin</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
```

Import the package containing the library in your Java code:
```
Expand Down
44 changes: 0 additions & 44 deletions build.xml

This file was deleted.

Binary file removed lib/jssc-2.8.0.jar
Binary file not shown.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.fischl.usbtin</groupId>
<artifactId>usbtin</artifactId>
<version>1.0-SNAPSHOT</version>
<name>USBtinLib java library for accessing USBtin</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.scream3r</groupId>
<artifactId>jssc</artifactId>
<version>2.8.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>