Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Read raw data from USB port

  1. #11
    Join Date
    Apr 2006
    Beans
    20

    Re: Read raw data from USB port

    Quote Originally Posted by Vined Adobo View Post
    It went well for me until I got to:
    $ mkdir -p jars ; cp /path_to_your_swt.jar ./jars

    I did it in two steps instead of both on the same command line. The directory was made, but when I used cp /path_to_your_swt.jar ./jars, I got the following:

    [:~/PulseOx/workspace/PulseOx] $ cp /usr/share/jni ./jars
    cp: omitting directory `/usr/share/jni'

    Now I have to admit I am not proficient at Linux systems, so I don't even really know if I got the path right (although the library liibswt-gtk-3452.so is in the directory listed. Also, I can't find where any link was created. When I typed ant, I got 100 errors. I hope you can help. I'm getting closer anyway!


    thank you,
    Dave
    Dave,

    Yeah the instructions are kind of vague on purpose... I am not actually a ubuntu user atm.

    Basically you have to simply copy (or symlink) two java Jars (they will have a .jar extension... not .so) to the workspace/PulseOx/jars/ directory.

    I do:
    $ cd workspace/PulseOx/jars/
    $ ln -s /usr/share/java/log4j.jar .
    $ ln -s /usr/share/java/swt.jar .

    But you could copy them:
    $ cd workspace/PulseOx/jars/
    $ cp /usr/share/java/log4j.jar .
    $ cp /usr/share/java/swt.jar .



    The path to the .jar files might be different on ubuntu. You can try to find them by running:
    $ locate -r log4j*jar
    $ locate -r swt*jar

    Or:
    $ find / -name 'swt*jar'
    $ find / -name 'log4j*jar'

    Let me know if you have any trouble with it after these files are in place... I think I had to set the character device in 19200 baud manually sometimes (I dont actually have the pulseOx hardware).

    I think you can set the buad rate like:
    # stty -F /dev/ttyUSB0 19200
    (replace /dev/ttyUSB0 with the device name of the pulseOx char device)

    Also the user might need read/write permissions (maybe read only??) to the usb device.

    Like:
    # chmod 777 /dev/ttyUSB0
    (replace /dev/ttyUSB0 with the device name of the pulseOx char device)

    Peace,
    -Ian Page Hands

  2. #12
    Join Date
    May 2009
    Location
    Salt Lake City
    Beans
    65
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Read raw data from USB port

    Quote Originally Posted by iphands View Post
    Vined Adobo, sambaig,

    My father has one of these devices. I hooked it up to his laptop yesterday, and found that the provided software did not work under wine.

    I hacked together my own Java + SWT over the past couple of days (it is really poorly written at this point.. will clean up and add features soon).

    I have attached a pic.

    Also the code should be attainable, buildable, and runnable by following this procedure:
    Code:
    $ git clone http://github.com/iphands/PulseOx.git
    $ cd PulseOx/workspace/PulseOx/
    $ mkdir -p jars ; cp /path_to_your_swt.jar ./jars
    $ ant
    $ java -jar pulseox.jar
    Please let me know if this does or does not work for you. I am not running ubuntu, but java is java (though SWT is platform specific).

    Oh and for the moment the /dev/ttyUSB0 path is hard coded.

    Thanks,
    -Ian Page Hands

    edit:
    See my website for up to date information http://ian.ahands.org/progs/pulseox/

    Ah, I went to your website and found

    $ git clone http://github.com/iphands/PulseOx.git
    $ cd PulseOx/workspace/PulseOx/
    $ mkdir -p jars
    $ ln -s /path_to_your_swt.jar ./jars/
    $ ln -s /path_to_your_log4j.jar ./jars/
    $ ant
    $ java -jar pulseox.jar

    So now the links do appear in the jars directory. Now when I build, I get 42 errors. At least now I know I didn't have the one link I thought I did. Do I have to install apache or something?

    dave@METROPOLIS:~/PulseOx/workspace/PulseOx$ ant
    Buildfile: build.xml

    compile:
    [javac] Compiling 9 source files to /home/dave/PulseOx/workspace/PulseOx/bin
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:11: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:26: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.FileListener
    [javac] Logger logger = Logger.getLogger(FileListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:8: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.ConsoleAppender;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:9: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.FileAppender;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:10: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Layout;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:11: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Level;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:12: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:13: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.PatternLayout;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:14: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.SimpleLayout;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:41: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Logger logger = Logger.getLogger(LoggingListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:46: cannot find symbol
    [javac] symbol : class Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level fileLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:47: cannot find symbol
    [javac] symbol : class FileAppender
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] FileAppender fileAppender = null;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:50: cannot find symbol
    [javac] symbol : class Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level consoleLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:51: cannot find symbol
    [javac] symbol : class ConsoleAppender
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] final ConsoleAppender consoleAppender = new ConsoleAppender(
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:4: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Level;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:5: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:31: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] static Logger logger = Logger.getLogger(TestGUI.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:26: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.FileListener
    [javac] Logger logger = Logger.getLogger(FileListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:41: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Logger logger = Logger.getLogger(LoggingListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:46: cannot find symbol
    [javac] symbol : variable Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level fileLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:50: cannot find symbol
    [javac] symbol : variable Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level consoleLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:51: cannot find symbol
    [javac] symbol : class ConsoleAppender
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] final ConsoleAppender consoleAppender = new ConsoleAppender(
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:52: cannot find symbol
    [javac] symbol : class SimpleLayout
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] new SimpleLayout());
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:148: cannot find symbol
    [javac] symbol: class Logger
    [javac] Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:148: cannot find symbol
    [javac] symbol: variable Logger
    [javac] Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:164: cannot find symbol
    [javac] symbol: class Layout
    [javac] Layout fileLayout = new PatternLayout("%m\n");
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:164: cannot find symbol
    [javac] symbol: class PatternLayout
    [javac] Layout fileLayout = new PatternLayout("%m\n");
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:167: cannot find symbol
    [javac] symbol: class FileAppender
    [javac] fileAppender = new FileAppender(fileLayout,
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:294: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:296: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:298: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.WARN;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:300: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.ERROR;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:302: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.FATAL;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:376: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:378: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:380: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.WARN;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:382: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.ERROR;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:384: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.FATAL;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:31: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] static Logger logger = Logger.getLogger(TestGUI.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:285: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] final Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:285: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] final Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:286: cannot find symbol
    [javac] symbol : variable Level
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] rootLogger.setLevel(Level.DEBUG);
    [javac] ^
    [javac] 42 errors

    BUILD FAILED
    /home/dave/PulseOx/workspace/PulseOx/build.xml:12: Compile failed; see the compiler error output for details.

    Total time: 1 second

    Thank you for your help.
    Dave

  3. #13
    Join Date
    Apr 2006
    Beans
    20

    Re: Read raw data from USB port

    Quote Originally Posted by Vined Adobo View Post
    Ah, I went to your website and found

    $ git clone http://github.com/iphands/PulseOx.git
    $ cd PulseOx/workspace/PulseOx/
    $ mkdir -p jars
    $ ln -s /path_to_your_swt.jar ./jars/
    $ ln -s /path_to_your_log4j.jar ./jars/
    $ ant
    $ java -jar pulseox.jar

    So now the links do appear in the jars directory. Now when I build, I get 42 errors. At least now I know I didn't have the one link I thought I did. Do I have to install apache or something?

    dave@METROPOLIS:~/PulseOx/workspace/PulseOx$ ant
    Buildfile: build.xml

    compile:
    [javac] Compiling 9 source files to /home/dave/PulseOx/workspace/PulseOx/bin
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:11: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:26: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.FileListener
    [javac] Logger logger = Logger.getLogger(FileListener.class);

    ...

    BUILD FAILED
    /home/dave/PulseOx/workspace/PulseOx/build.xml:12: Compile failed; see the compiler error output for details.

    Total time: 1 second

    Thank you for your help.
    Dave


    Yeah it looks like you got the swt.jar in the right place, but not the log4j.jar. You don't have to install "apache" the web server. But the group/entity Apache does write/maintain the log4j package, and you likely have to install that package.

    Can you show me what the libs/ dir looks like?
    $ ls -lh libs/

    You can probably find the log4j package in your distro by doing:
    # apt-cache search log4j

    or something... it has been a while since I last used apt*.

  4. #14
    Join Date
    May 2009
    Location
    Salt Lake City
    Beans
    65
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Read raw data from USB port

    Quote Originally Posted by iphands View Post
    Yeah it looks like you got the swt.jar in the right place, but not the log4j.jar. You don't have to install "apache" the web server. But the group/entity Apache does write/maintain the log4j package, and you likely have to install that package.

    Can you show me what the libs/ dir looks like?
    $ ls -lh libs/

    You can probably find the log4j package in your distro by doing:
    # apt-cache search log4j

    or something... it has been a while since I last used apt*.
    This is what I got:

    dave@METROPOLIS:~/PulseOx/workspace/PulseOx/jars$ ls -lh
    total 0
    lrwxrwxrwx 1 dave dave 13 2010-04-21 21:35 java -> /usr/lib/java
    lrwxrwxrwx 1 dave dave 18 2010-04-22 15:21 lib -> /usr/share/ant/lib

    When I run gnome-search-tool, I get
    ant-apache-log4j.jar /usr/share/ant/lib 3.0 KB link to Java archive
    ant-apache-log4j.jar /usr/share/java 3.0 KB link to Java archive
    The first link in turn points to a link to: Link target ../../java/ant-apache-log4j-1.7.1.jar
    The second link points to: Link target ant-apache-log4j-1.7.1.jar (I can't use second link because the link to /usr/lib/java already uses java as its name to link to swt, so if i make a link to /usr/share/java, I get a complaint that the link already exists, even though it points to a different place.)

    dave@METROPOLIS:~$ apt-cache search log4j
    libexcalibur-logkit-java - Lightweight and fast designed logging toolkit for Java
    liblog4j1.2-java - Logging library for java
    liblog4j1.2-java-doc - Documentation for liblog4j1.2-java
    liblog4j1.2-java-gcj - Logging library for java (native code)
    liblog4net1.2-cil - highly configurable logging API for the CLI
    liblogkit-java - Lightweight and fast designed logging toolkit for Java
    libslf4j-java - Simple Logging Facade for Java
    cl-arnesi - small Common Lisp utilities
    libjboss-common-java - The JBoss Common Project
    liblog-log4perl-perl - A Perl port of the widely popular log4j logging package.
    liblog4cpp-doc - A C++ library for flexible logging (documentation)
    liblog4cpp5 - C++ library for flexible logging (runtime)
    liblog4cpp5-dev - C++ library for flexible logging (development)
    liblog4cxx10 - A logging library for C++
    liblog4cxx10-dev - A logging library for C++ (development files)
    liblog4cxx10-doc - Documentation for log4cxx
    liblogback-java - flexible logging library for Java
    liblogback-java-doc - flexible logging library for Java - documentation
    dave@METROPOLIS:~$

    I hope this is what you needed to see.

  5. #15
    Join Date
    Apr 2006
    Beans
    20

    Re: Read raw data from USB port

    Quote Originally Posted by Vined Adobo View Post
    This is what I got:

    dave@METROPOLIS:~/PulseOx/workspace/PulseOx/jars$ ls -lh
    total 0
    lrwxrwxrwx 1 dave dave 13 2010-04-21 21:35 java -> /usr/lib/java
    lrwxrwxrwx 1 dave dave 18 2010-04-22 15:21 lib -> /usr/share/ant/lib
    Yeah, this is not right.

    Quote Originally Posted by Vined Adobo View Post
    dave@METROPOLIS:~$ apt-cache search log4j
    libexcalibur-logkit-java - Lightweight and fast designed logging toolkit for Java
    liblog4j1.2-java - Logging library for java
    liblog4j1.2-java-doc - Documentation for liblog4j1.2-java
    liblog4j1.2-java-gcj - Logging library for java (native code)
    liblog4net1.2-cil - highly configurable logging API for the CLI
    liblogkit-java - Lightweight and fast designed logging toolkit for Java
    libslf4j-java - Simple Logging Facade for Java
    cl-arnesi - small Common Lisp utilities
    libjboss-common-java - The JBoss Common Project
    liblog-log4perl-perl - A Perl port of the widely popular log4j logging package.
    liblog4cpp-doc - A C++ library for flexible logging (documentation)
    liblog4cpp5 - C++ library for flexible logging (runtime)
    liblog4cpp5-dev - C++ library for flexible logging (development)
    liblog4cxx10 - A logging library for C++
    liblog4cxx10-dev - A logging library for C++ (development files)
    liblog4cxx10-doc - Documentation for log4cxx
    liblogback-java - flexible logging library for Java
    liblogback-java-doc - flexible logging library for Java - documentation
    dave@METROPOLIS:~$

    I hope this is what you needed to see.
    You might have to install the liblog4j1.2-java package (and an swt package).

    Then run:
    # updatedb
    # locate swt.jar
    # locate log4j.jar

    find the two jars.

    On my system they are:
    /usr/lib64/java/swt.jar
    /usr/lib64/java/log4j.jar

    I don't mind looking at you output though.
    Regards,
    -Ian Page Hands

  6. #16
    Join Date
    May 2009
    Location
    Salt Lake City
    Beans
    65
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Read raw data from USB port

    Quote Originally Posted by iphands View Post
    Yeah, this is not right.



    You might have to install the liblog4j1.2-java package (and an swt package).

    Then run:
    # updatedb
    # locate swt.jar
    # locate log4j.jar

    find the two jars.

    On my system they are:
    /usr/lib64/java/swt.jar
    /usr/lib64/java/log4j.jar

    I don't mind looking at you output though.
    Regards,
    -Ian Page Hands

    I changed the links. Here is my jars directory:
    dave@METROPOLIS:~/PulseOx/workspace/PulseOx/jars$ ls -lh
    total 0
    lrwxrwxrwx 1 dave dave 36 2010-04-22 20:53 ant-apache-log4j.jar -> /usr/share/java/ant-apache-log4j.jar
    lrwxrwxrwx 1 dave dave 23 2010-04-22 20:50 swt.jar -> /usr/share/java/swt.jar
    dave@FUSION:~/PulseOx/workspace/PulseOx/jars$

    Still doesn't compile. Here is the output of the commands you asked me to type in:

    updatedb returned nothing

    dave@METROPOLIS:~$ locate swt.jar
    /etc/alternatives/swt.jar
    /home/dave/PulseOx/workspace/PulseOx/jars/swt.jar
    /usr/share/java/swt.jar
    /var/lib/dpkg/alternatives/swt.jar
    dave@METROPOLIS:~$ locate log4j.jar
    /home/dave/PulseOx/workspace/PulseOx/jars/ant-apache-log4j.jar
    /usr/share/ant/lib/ant-apache-log4j.jar
    /usr/share/java/ant-apache-log4j.jar

    I did an apt-get install for log4j.jar, but file couldn't be found.

    Alas, poor me.

    Thanks for all the help.
    Dave

  7. #17
    Join Date
    Apr 2006
    Beans
    20

    Re: Read raw data from USB port

    Quote Originally Posted by Vined Adobo View Post
    I changed the links. Here is my jars directory:
    dave@METROPOLIS:~/PulseOx/workspace/PulseOx/jars$ ls -lh
    total 0
    lrwxrwxrwx 1 dave dave 36 2010-04-22 20:53 ant-apache-log4j.jar -> /usr/share/java/ant-apache-log4j.jar
    lrwxrwxrwx 1 dave dave 23 2010-04-22 20:50 swt.jar -> /usr/share/java/swt.jar
    dave@FUSION:~/PulseOx/workspace/PulseOx/jars$
    Hey, that looks better .


    Quote Originally Posted by Vined Adobo View Post
    Still doesn't compile. Here is the output of the commands you asked me to type in:
    Hmm, I wonder why... Wanna paste the output from ant?

  8. #18
    Join Date
    May 2009
    Location
    Salt Lake City
    Beans
    65
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Read raw data from USB port

    Quote Originally Posted by iphands View Post
    Hey, that looks better .




    Hmm, I wonder why... Wanna paste the output from ant?

    Buildfile: build.xml

    compile:
    [javac] Compiling 9 source files to /home/dave/PulseOx/workspace/PulseOx/bin
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:11: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:26: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.FileListener
    [javac] Logger logger = Logger.getLogger(FileListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:8: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.ConsoleAppender;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:9: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.FileAppender;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:10: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Layout;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:11: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Level;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:12: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:13: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.PatternLayout;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:14: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.SimpleLayout;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:41: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Logger logger = Logger.getLogger(LoggingListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:46: cannot find symbol
    [javac] symbol : class Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level fileLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:47: cannot find symbol
    [javac] symbol : class FileAppender
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] FileAppender fileAppender = null;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:50: cannot find symbol
    [javac] symbol : class Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level consoleLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:51: cannot find symbol
    [javac] symbol : class ConsoleAppender
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] final ConsoleAppender consoleAppender = new ConsoleAppender(
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:4: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Level;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:5: package org.apache.log4j does not exist
    [javac] import org.apache.log4j.Logger;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:31: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] static Logger logger = Logger.getLogger(TestGUI.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/FileListener.java:26: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.FileListener
    [javac] Logger logger = Logger.getLogger(FileListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:41: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Logger logger = Logger.getLogger(LoggingListener.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:46: cannot find symbol
    [javac] symbol : variable Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level fileLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:50: cannot find symbol
    [javac] symbol : variable Level
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] Level consoleLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:51: cannot find symbol
    [javac] symbol : class ConsoleAppender
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] final ConsoleAppender consoleAppender = new ConsoleAppender(
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:52: cannot find symbol
    [javac] symbol : class SimpleLayout
    [javac] location: class org.ahands.ian.pulseox.LoggingListener
    [javac] new SimpleLayout());
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:148: cannot find symbol
    [javac] symbol: class Logger
    [javac] Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:148: cannot find symbol
    [javac] symbol: variable Logger
    [javac] Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:164: cannot find symbol
    [javac] symbol: class Layout
    [javac] Layout fileLayout = new PatternLayout("%m\n");
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:164: cannot find symbol
    [javac] symbol: class PatternLayout
    [javac] Layout fileLayout = new PatternLayout("%m\n");
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:167: cannot find symbol
    [javac] symbol: class FileAppender
    [javac] fileAppender = new FileAppender(fileLayout,
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:294: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:296: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:298: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.WARN;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:300: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.ERROR;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:302: cannot find symbol
    [javac] symbol: variable Level
    [javac] fileLevel = Level.FATAL;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:376: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.DEBUG;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:378: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.INFO;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:380: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.WARN;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:382: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.ERROR;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/LoggingListener.java:384: cannot find symbol
    [javac] symbol: variable Level
    [javac] consoleLevel = Level.FATAL;
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:31: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] static Logger logger = Logger.getLogger(TestGUI.class);
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:285: cannot find symbol
    [javac] symbol : class Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] final Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:285: cannot find symbol
    [javac] symbol : variable Logger
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] final Logger rootLogger = Logger.getRootLogger();
    [javac] ^
    [javac] /home/dave/PulseOx/workspace/PulseOx/src/org/ahands/ian/pulseox/TestGUI.java:286: cannot find symbol
    [javac] symbol : variable Level
    [javac] location: class org.ahands.ian.pulseox.TestGUI
    [javac] rootLogger.setLevel(Level.DEBUG);
    [javac] ^
    [javac] 42 errors

    BUILD FAILED
    /home/dave/PulseOx/workspace/PulseOx/build.xml:12: Compile failed; see the compiler error output for details.

    Total time: 1 second

    (carets changed places when I pasted output)

    I even tried changing the name (only) of the link to "log4j.jar" but same errors.

    Thank you so much for the time you have spent on my problem
    Dave
    Last edited by Vined Adobo; April 23rd, 2010 at 05:58 PM.

  9. #19
    Join Date
    May 2009
    Location
    Salt Lake City
    Beans
    65
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Read raw data from USB port

    I installed gtkterm and configured port for /dev/ttyUSBO 19200 N81. I don't get any data from oximeter in monitor mode, but when I upload data from oximeter to laptop, I do see data coming across (this is the data I want to see so I can make a sleep study graph in a spreadsheet) but it is all garbled. I tried setting my speed, parity, data bits, stop bits, DTR and CTS to all possible settings (at least I think I tried all permutations) but couldn't find any setting that would give me clear data.

    Can anyone help me from this new direction I'm trying?

    Thank you.
    Dave

  10. #20
    Join Date
    Mar 2006
    Beans
    8

    Re: Read raw data from USB port

    Hi Dave (And All...)

    I just got my own CMS50F pulse oximeter (the one with the wrist display) so I will likely join in trying to make it work decently on Linux... the Windows software is kind of rough. However, it will probably have to wait until I've been on CPAP a little while because at the moment I don't really have the energy...

    Has anybody else done any additional work on this recently?

    Sarah

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •