Easiest way to communicate with a PM3 on linux or mac

Post questions and issues with Concept2 PM3 SDK
Post Reply
zaf
Paddler
Posts: 12
Joined: January 10th, 2012, 5:57 am

Easiest way to communicate with a PM3 on linux or mac

Post by zaf » January 10th, 2012, 6:21 am

Hi everyone,

I've just spent the last 3 hours trying to get some code to run on either ubuntu linux or or a mac but failed miserably and have given up until someone can lend a hand.

The python scripts available on these forums both fail with the underlying usb code (I've posted errors in the forum and hope to get some response).

Downloaded the official SDK for the mac and the compiled test app seems to work but I cannot find ANY information regarding where sample code is located on the mac or any documentation.

Maybe the microsoft windows options are easier to use but I don't have or use these platforms.

It really annoys me that this is so hard to do. No wonder you can't find any creative apps created by users apart from the commercial options.

Please, can anyone with expertise help me to get some sample code up and running. I don't mind the programming language but an interpreted one would be better.

This would help out many others and open the gates to some cool apps.

User avatar
Citroen
SpamTeam
Posts: 8062
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Easiest way to communicate with a PM3 on linux or mac

Post by Citroen » January 10th, 2012, 12:37 pm


zaf
Paddler
Posts: 12
Joined: January 10th, 2012, 5:57 am

Re: Easiest way to communicate with a PM3 on linux or mac

Post by zaf » January 11th, 2012, 5:37 am

Thanks for the reply.

The project you mention looks microsoft windows specific, old, no binaries, no documentation and dead external links.

Its probably easier to use the other microsoft windows options that are mentioned in these forums.

User avatar
Citroen
SpamTeam
Posts: 8062
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Easiest way to communicate with a PM3 on linux or mac

Post by Citroen » January 11th, 2012, 8:19 am

zaf wrote:Thanks for the reply.

The project you mention looks microsoft windows specific, old, no binaries, no documentation and dead external links.

Its probably easier to use the other microsoft windows options that are mentioned in these forums.

The Launchpad page says "tested on Linux".


If you're taking the backward step to Windows then take a look at Chris Brett's PMI ActiveX control, that takes all the hard work out of CSAFE programming for you. I've run PMI in MS Excel using VB and it's very easy to get data from the PM3.

zaf
Paddler
Posts: 12
Joined: January 10th, 2012, 5:57 am

Re: Easiest way to communicate with a PM3 on linux or mac

Post by zaf » January 12th, 2012, 4:38 am

Yes, you're right.

Still, have no idea how to go about compiling the code. I mean, you can't even get a download link to get all the files!

User avatar
Citroen
SpamTeam
Posts: 8062
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Easiest way to communicate with a PM3 on linux or mac

Post by Citroen » January 12th, 2012, 5:57 am

I got a copy of this stuff on to my Ubuntu system by doing the following:

1. `apt-get install bzr` so that I had a copy of the Launchpad bazaar tools.
2. `cd /tmp`
3. `bzr branch lp:do` to get the latest updates for bazaar (that's what the instructions told me to do).
4'. `bzr co http://launchpad.net/rowtrainer` and that fetched everything into /tmp/rowtrainer for me.

There's lots of *.cpp files, but no Makefile(s), no readme.txt and no install.txt so you're on your own from that point.

./main/main.cpp
./util/Logging/PMTracing.cpp
./util/xstream/fd.cpp
./util/xstream/z_digest.cpp
./util/xstream/md5.cpp
./util/xstream/xdr.cpp
./util/xstream/common.cpp
./util/xstream/dater.cpp
./util/xstream/digest.cpp
./util/xstream/base64.cpp
./util/xstream/tee.cpp
./util/xstream/debug.cpp
./util/xstream/bz.cpp
./util/xstream/z.cpp
./util/xstream/posix.cpp
./util/Config/Config.cpp
./ui/main/main_ui.cpp
./ui/debug/debug_ui.cpp
./ui/configui/config_ui.cpp
./ui/configui/user_ui.cpp
./PM/RowTrainer.cpp

./util/xstream/md5_t.h
./util/xstream/debug.h
./util/bzip2/bzlib_private.h
./include-win32/usb.h
./include/RowTrainerGlobals.h
./include/user_ui.h
./include/main_ui.h
./include/xstream/tee.h
./include/xstream/base64.h
./include/xstream/fd.h
./include/xstream/digest.h
./include/xstream/dater.h
./include/xstream/except/base64.h
./include/xstream/except/z.h
./include/xstream/except/bz.h
./include/xstream/except/posix.h
./include/xstream/z.h
./include/xstream/bz.h
./include/xstream/common.h
./include/xstream/config.h
./include/xstream/posix.h
./include/xstream/xdr.h
./include/xstream/except.h
./include/PMTracing.h
./include/debug_ui.h
./include/RowTrainer.h
./include/xstream.h
./include/Config.h
./include/bzlib.h
./include/config_ui.h

zaf
Paddler
Posts: 12
Joined: January 10th, 2012, 5:57 am

Re: Easiest way to communicate with a PM3 on linux or mac

Post by zaf » January 16th, 2012, 6:23 am

Thanks for that but I've managed to resolve the issues with pyrow and am getting data from the rowing machine.

Using Python to interface with the PM (SOLVED)
http://www.c2forum.com/viewtopic.php?f=15&t=12009

Post Reply