Go Down

Topic: New oscilloscope for arduino (Mac only) (Read 4 times) previous topic - next topic

selfonlypath

Hi Alvaro - The freezing happens with both mega or duamilanove boards. I'm glad to hear it is not related to Mac or Java but only arduino sketch because i really hope success with arduino scope for many of us wether PC, Linux, Mac,...

To answer your query and after many trials yesterday & this morning: it freezes after a while without intervention on my side and as I mentionned to you privately, there is no packet loss detected by software when I lauch Mac terminal shell. To lauch again the scope, I usually press one time, sometimes two times the dual channel button with my mouse so it works again then freezes after a while but the working duration is random (can be a few seconds, sometimes one minute).

Hope it helps

Alvaro

Hi,

I had a friend testing this on a Mac, and he did not experience any freeze.

You tested again with my latest sketch, right ?

If you did, then my conclusion is that somehow your packets are reaching arduino with losses or checksum errors. We can try to narrow that down if you feel you have the time.

Other thing I can do is retry the "SAMPLE" command if it does not get a response in, let's say, one second.

Do you have any errors in "dmesg" about the ftdi driver ? I often have.

Álvaro

selfonlypath

#7
Nov 12, 2009, 08:53 pm Last Edit: Nov 12, 2009, 08:54 pm by selfonlypath Reason: 1
Quote
I had a friend testing this on a Mac, and he did not experience any freeze.

I'm using iMac G5 running with Mac OS Tiger, what is your friend Mac & OS ?

I'm using arduino version 15, what is your arduino version to compile then download ?

Quote
You tested again with my latest sketch, right ?

I believe so, tested the sketch you sent me by mail yesterday but to be sure, please send me again your last sketch.

BTW. Do you happen to have a java scope window providing time scale ?

Quote
Do you have any errors in "dmesg" about the ftdi driver ? I often have.

We did test together via skype chat yesterday, no error message at all.

Alvaro

Quote
I'm using iMac G5 running with Mac OS Tiger, what is your friend Mac & OS ?

Not sure, I'll ask him. I remember he had to switch to Java 32 bit, cause he's on a 64-bit platform.

Quote
I believe so, tested the sketch you sent me by mail yesterday but to be sure, please send me again your last sketch.

So you did not use latest :) That was before I fixed the race condition.
You can always get the latest version here: http://github.com/alvieboy/arduino-oscope

Quote
We did test together via skype chat yesterday, no error message at all.

Yes we did, but we only checked for errors coming from the application, not from the operating system itself.

Please try that last sketch (commitID d0e216e376c8cd44dbf82fa28029d106534cc7af, message "Fix a potential race acessing gflags ")

Direct link: http://github.com/alvieboy/arduino-oscope/raw/master/oscope.pde

You can see what I changed using this: http://github.com/alvieboy/arduino-oscope/commit/d0e216e376c8cd44dbf82fa28029d106534cc7af

I really hope it helps.

Álvaro

selfonlypath

Quote
Not sure, I'll ask him. I remember he had to switch to Java 32 bit, cause he's on a 64-bit platform.

I'm using Mac OS X version 10.4.11 on 1.8GHz powerPC G5 and also on a 2.0 GHz PowerPC G5. I don't understand or know how to swtich Java 32bit versus 64 bit :(

Quote
You can always get the latest version here: http://github.com/alvieboy/arduino-oscope

I'll try your new sketch (.pde and .h) but I cannot find your new arduino-oscope.jar !
What should i do to compile or build arduino-oscope.jar from your java files on my Macintosh ?

Go Up