Announcement

Collapse
No announcement yet.

CS Roasting Log Software - For Mac OSX?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CS Roasting Log Software - For Mac OSX?

    Hey all, didnt want to clog up the official logging thread (since this is a minority issue);

    Seeing that the software is Java based (the Datalogger aspect of it anyway) and the RXTX component also contains a OSX port, shouldnt it make it semi-straightforward to port this program to OSX? I havent really done much research into this yet (exam tomorrow), but Ill have a deeper look into this in the following few days.

    I dont really have that much of a programming background, so if any Mac/UNIX inclined techno-wizards know if this is feasible/not-feasible, thatd be great too

    Also, would this count as modification of the software as defined in the software conditions of use?

    Aaron

  • #2
    Re: CS Roasting Log Software - For Mac OSX?

    The interface itself starts up and looks fine if you take the java command
    from RoastMonitor.bat putting quotes around the "cp" argument and using
    a colon as delimiter.

    Dont have time now to look at the comms aspects (which of course is
    what makes it work). However the RXTX library seems to have OSX /
    Darwin components so there is a good chance I think.

    Comment


    • #3
      Re: CS Roasting Log Software - For Mac OSX?


      Not too sure you will ever see this one on a Mac if for no other reason than the development is being done on an wintel platform.

      Could you run it in a virtual windows session?
      eg:
      http://www.apple.com/macosx/features/bootcamp.html

      Comment


      • #4
        Re: CS Roasting Log Software - For Mac OSX?

        Thanks Andy

        THats enough to get started, I will look at this over the weekend

        Gary

        Comment


        • #5
          Datalogging software available for macosx

          Great news. The free unix/linux QtDMM datalogging software has been ported to macosx. Yay. Universal binaries available here:

          http://www.mtoussaint.de/qtdmm.html#dmg

          You will need a way to connect to your datalogger - probably with a macosx supported USB-to-rs232 dongle.
          It works with the QM1538 as well as many other dataloggers. It was compiled on macosx 10.4.9 and I just tested it and it works with 10.5.1 Leopard also.

          A suitable datalogging digital multimeter:
          http://beanbay.coffeesnobs.com.au/ViewProduct.aspx?ID=162

          For more details on using dataloggers with coffee roasting, search through the "Home Roasting - Tips, Tricks etc" section of Coffee Snobs.

          "What is this all about?" I expect someone will ask. This will be useful for people who want to record the temperature of roasting coffee beans over time as they roast. This can be useful so you can monitor the roast so that you can try and get the roasting profile you desire and so you can compare to roasts you have done in the past or to show others your roasting profiles. I dont think there has been much in the way of suitable software to do this with macosx in the past. Most software to do this has been for windows or unix so if you have wanted to do this with a mac, now you can.

          Hang on - I just noticed that CoffeeSnobs Roast Monitor post http://coffeesnobs.com.au/YaBB.pl?num=1195544620/0 has been updated to say it might work with non-windows operating systems. Has anyone got this working with macosx yet? I tried a while ago with the macosx rxtx binaries but didnt have much luck and the original license for Roast Monitor did not seem to allow for modifying the software. I have not tried it with the current version of the CoffeeSnobs Roast Monitor v1.12

          Cheers,
          Fabcat

          Comment


          • #6
            Re: CS Roasting Log Software - For Mac OSX?

            Here are some tips for getting RoastMonitor 1.12 to work on macosx. This is working on macosx 10.5.1 and may work on other versions.

            This is assuming you have a suitable serial port for your mac, such as a macosx compatible USB to rs232 converter dongle that is installed correctly. You need to find out the device name that macosx knows your serial port as. In my case, the serial port is called both /dev/tty.serial1 and /dev/cu.serial1. Either one of these names is fine. Yours might be different.

            Download RoastMonitor.zip from http://coffeesnobs.com.au/RoastMonitor/RoastMonitor.zip and rxtx-2.1-7-bins-r2.zip from http://www.rxtx.org/

            extract both and copy librxtxSerial.jnilib from the Mac_OS_X directory within rxtx-2.1-7-bins-r2.zip into the RoastMonitor directory

            Using the terminal, create a /var/lock directory that is owned by the user you wish to run RoastMonitor as(in my case the user is fabcat) and the group uucp:

            sudo mkdir /var/lock
            sudo chown fabcat:uucp /var/lock
            sudo chmod ug+rw /var/lock

            ls -al /var/lock/
            total 0
            drwxrwxr-x   3 fabcat   _uucp  102  2 Feb 21:59 .
            drwxr-xr-x  26 root     wheel  884  2 Feb 21:47 ..


            To start RoastMonitor, in the terminal, change directories to the RoastMonitor directory then use the following command to start RoastMonitor:

            java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger

            Note that this command is slightly different to the one in the RoastMonitor.bat file as macosx uses a different delimiter to dos(thanks hazbean).

            The first time you run this, RoastMonitor will start and quit instantly, and in the process, it will make a Preferences.txt file. This is good. Now you need to edit the Preferences.txt file and change the comPort=COM1 setting to the name of your serial device. In my case it is /dev/tty.serial1 as shown here:

            # COM port.
            comPort=/dev/tty.serial1

            After you have corrected this, run the java command above again to start RoastMonitor and hopefully it will start and you should see the gui. Connect up your datalogger and put it in rs232 mode and see if it is working.

            If it does work, you are finished here and can get on with the coffee roasting. Stop reading here and continue on to Andys instructions on http://coffeesnobs.com.au/YaBB.pl?num=1195544620/0


            ...

            Comment


            • #7
              Re: CS Roasting Log Software - For Mac OSX?

              ...

              If it does not work, here are some errors you might run into and some hints on how to possibly fix it:

              When first starting RoastMonitor you might get the following:

              [core:stuff/roastmonitor/RoastMonitor-1.12mac] % java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger
              Experimental:  JNI_OnLoad called.
              Stable Library
              =========================================
              Native lib Version = RXTX-2.1-7
              Java lib Version   = RXTX-2.1-7
              gnu.io.NoSuchPortException
              at gnu.io.CommPortIdentifier.getPortIdentifier(CommPo rtIdentifier.java:218)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)
              gnu.io.NoSuchPortException
              at gnu.io.CommPortIdentifier.getPortIdentifier(CommPo rtIdentifier.java:218)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)
              [core:stuff/roastmonitor/RoastMonitor-1.12mac] anthony%


              This is because it is trying to use COM1, and it is not called that in macosx. Change COM1 in the Preferences.txt to /dev/tty.serial1 or /dev/cu.serial1 or whatever your serial port is called. eg:

              # COM port.
              comPort=/dev/tty.serial1


              [core:stuff/roastmonitor/RoastMonitor-1.12mac] % ls -la /dev/cu.serial1
              crw-rw-rw-  1 root  wheel    9,   1 26 Jan 23:19 /dev/cu.serial1
              [core:stuff/roastmonitor/RoastMonitor-1.12mac] % ls -la /dev/tty.serial1
              crw-rw-rw-  1 root  wheel    9,   0 26 Jan 23:19 /dev/tty.serial1


              Then you might get this error:

              [core:stuff/roastmonitor/RoastMonitor-1.12mac]% java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger
              Experimental:  JNI_OnLoad called.
              Stable Library
              =========================================
              Native lib Version = RXTX-2.1-7
              Java lib Version   = RXTX-2.1-7
              gnu.io.PortInUseException: Unknown Application
              at gnu.io.CommPortIdentifier.open(CommPortIdentifier. java:354)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)
              gnu.io.PortInUseException: Unknown Application
              at gnu.io.CommPortIdentifier.open(CommPortIdentifier. java:354)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)


              Something to do with lock files on macosx. One way to fix this is to create a /var/lock directory that is owned by the user you wish to run RoastMonitor as(in my case the user is fabcat) and the group uucp. In the terminal do this:

              sudo mkdir /var/lock
              sudo chown fabcat:uucp /var/lock
              sudo chmod ug+rw /var/lock

              ls -al /var/lock/
              total 0
              drwxrwxr-x   3 fabcat   _uucp  102  2 Feb 21:59 .
              drwxr-xr-x  26 root     wheel  884  2 Feb 21:47 ..

              Or you could follow the instructions for fixing this provided in the INSTALL file within rxtx-2.1-7-src-r2.zip


              if you get the following error, you may need to work on the permissions on /var/lock to make sure they are suitable:

              [core:stuff/roastmonitor/RoastMonitor-1.12mac] % java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger
              Experimental:  JNI_OnLoad called.
              Stable Library
              =========================================
              Native lib Version = RXTX-2.1-7
              Java lib Version   = RXTX-2.1-7
              check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
              please see: How can I use Lock Files with rxtx? in INSTALL
              gnu.io.PortInUseException: Unknown Application
              at gnu.io.CommPortIdentifier.open(CommPortIdentifier. java:354)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)
              gnu.io.PortInUseException: Unknown Application
              at gnu.io.CommPortIdentifier.open(CommPortIdentifier. java:354)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.MeterReader.<init&g t;(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)



              When the QM1538 digital multi meters battery is low, as shown on the meters display, and I am just getting low battery warnings in RoastMonitor and no temperature showing with the following errors repeating continuously in the terminal and in RoastMonitor:

              java.lang.Exception: MR: Meter has low battery.
              at au.com.coffeesnobs.profiler.MeterReader.a(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.j(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)
              java.lang.Exception: MR: Meter has low battery.
              at au.com.coffeesnobs.profiler.MeterReader.a(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.j(Unknown Source)
              at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)

              To fix this, change the batteries. Or if you are stuck needing to roast and cant get batteries in time, try using QtDMM for mac http://www.mtoussaint.de/qtdmm.html#dmg until you can replace the batteries. With QtDMM I get the temperature showing. The low battery errors do not show.


              ...

              Comment


              • #8
                Re: CS Roasting Log Software - For Mac OSX?

                ...


                For the following error, as well as checking that the meter is on and that the RS232 indicator is showing as on, also make sure you plugged the cable into the RS232 port on the DMM and not the 10A port - doh!

                java.lang.Exception: MR: Cant read meter. Check meter power and port settings.
                at au.com.coffeesnobs.profiler.MeterReader.a(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.c(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.r(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.j(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)
                java.lang.Exception: MR: Cant read meter. Check meter power and port settings.
                at au.com.coffeesnobs.profiler.MeterReader.a(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.c(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.r(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.j(Unknown Source)
                at au.com.coffeesnobs.profiler.DataLogger.main(Unknow n Source)



                when it loads properly, you should get something like this:

                [core:stuff/roastmonitor/RoastMonitor-1.12mac] % java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger
                Experimental: JNI_OnLoad called.
                Stable Library
                =========================================
                Native lib Version = RXTX-2.1-7
                Java lib Version = RXTX-2.1-7

                or this:

                [core:stuff/roastmonitor/RoastMonitor-1.12mac] % java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger
                Experimental: JNI_OnLoad called.
                Stable Library
                =========================================
                Native lib Version = RXTX-2.1-7
                Java lib Version = RXTX-2.1-7
                RXTX Warning: Removing stale lock file. /var/lock/LK.004.009.000

                and the gui will load. If you get that "Removing stale lock file" warning it is not a problem.




                To make it a bit easier to start RoastMonitor, you might want to make a script to start it. You could make a text file within the RoastMonitor directory with the following in it:
                java -cp DataLogger.jar:RXTXcomm.jar au.com.coffeesnobs.profiler.DataLogger

                Maybe call the file RoastMonitor.sh
                Make the file executable:
                chmod u+x RoastMonitor.sh

                Then to start RoastMonitor, in terminal, change directories to the RoastMonitor directory and type the following:
                ./RoastMonitor.sh



                Good luck,
                Fabcat

                Comment


                • #9
                  Re: Datalogging software available for macosx

                  More great news. CoffeeSnobs Roast Monitor 1.12 does in fact work with macosx. Yay. I have posted instructions and tips on how to get it working here:

                  http://coffeesnobs.com.au/YaBB.pl?num=1195625092/0#4

                  Now mac users have two good datalogging software choices.

                  Cheers,
                  Fabcat

                  Comment


                  • #10
                    Re: CS Roasting Log Software - For Mac OSX?

                    Great Install and Troubleshooting Tutorial fabcat 8-),

                    Bound to be of significant assistance to all the owners of recent Apple hardware. Excellent stuff mate.... [smiley=thumbsup.gif]

                    Mal.

                    Comment

                    Working...
                    X