If it's of any help, I wrapped up RXTX (2.2pre2) in a clojar with native binary 
support. You can get running with it by starting off with a project.clj that 
looks something like:

(defproject foo.bar "0.0.1"
  :description "Project Description Here"
  :dependencies [[org.clojure/clojure "1.2.0"]
                 [org.clojure/clojure-contrib "1.2.0"]]
  :dev-dependencies [[native-deps "1.0.4"]]
  :native-dependencies [[org.clojars.samaaron/rxtx "2.2.0"]])

Then you just need to do:

* lein deps
* lein native-deps

Finally, here's an example of it in use:

http://github.com/improcess/clj-monome-serial/blob/master/src/monome_serial/port_handler.clj

Good luck,
Sam

---
http://sam.aaron.name



On 21 Sep 2010, at 5.02 am, Kyle Cordes wrote:

> On Mon, Sep 20, 2010 at 10:17 PM, Ivan Willig <iwil...@gmail.com> wrote:
>> I list, i am trying to connect to a USB GSM Modem with clojure. Basically, i
>> want to open a serial connection to my modem and be able to pass commands to
>> it. ( I think I am new to this whole modem thing).  I know I can do this in
>> Java, but wanted to check if someone had a working solutions in Clojure.
> 
> 
> Typically a USB modem will be exposed to your software as a serial
> comm port. I don't have a suggestion for a Clojure wrapper; but it's
> already generally easy to use Java APIs from Clojure of course. Here
> is JavaComm:
> 
> http://www.oracle.com/technetwork/java/index-jsp-141752.html
> 
> (I noticed that the Java APIs are under Oracle Technet URLs nowadays,
> and it felt a bit odd...)
> 
> I do have this tip, though: the last time I used Java for serial comm
> a couple of years ago, the JavaComm package was already rather old and
> not well updated. Depending on the OS you are running on, you might
> find that RXTX works better - it did for me. http://www.rxtx.org/
> 
> 
> -- 
> Kyle Cordes
> http://kylecordes.com
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to