Go to advanced search

by Morphology
Thu Jul 28, 2016 7:43 am
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

A quick update to this; Yesterday evening I stubbed out large chunks of my code so that I could package something up to send to Joan and which would run on a vanilla Raspberry Pi. Whilst doing so I discovered two things: 1) Adding a sleep(1) or similar to my main loop made no difference to performan...
by Morphology
Wed Jul 27, 2016 4:00 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

You actually say that you're on a Pi3, so hogging one CPU core shouldn't matter too much as the other 3 cores can handle the other tasks. It will make a HUGE difference if you're serious about shifting to a PiZero as that is a single core processor. Yes, point taken. For testing purposes and for na...
by Morphology
Wed Jul 27, 2016 3:44 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

Did you mean sleep()? That has a granularity of a second. Try something like time_sleep(0.01) . Yes, I tried sleep(1), sleep(5) etc., as I was simply interested in seeing whether my main loop was hogging the CPU. Or are you saying that sleep(1) would also block the CPU, but that time_sleep(0.01) wo...
by Morphology
Wed Jul 27, 2016 3:15 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

And your comment of a "while(1=1) loop" sounds like a very easy way of hogging an entire CPU core. You should be waiting on a semaphore or event so that your process sleeps when it has nothing to do. Ah, when I said it was a while(1=1) loop, it is a little more complex than that.... though not a lo...
by Morphology
Wed Jul 27, 2016 2:20 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

And your comment of a "while(1=1) loop" sounds like a very easy way of hogging an entire CPU core. You should be waiting on a semaphore or event so that your process sleeps when it has nothing to do. Ah, when I said it was a while(1=1) loop, it is a little more complex than that.... though not a lo...
by Morphology
Wed Jul 27, 2016 2:12 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

OK, I will do that this evening and change some of the I2C calls to simple GPIO writes so that it'll run on a vanilla Pi. I may not get all the changes done this evening, so it may be tomorrow evening before I get anything to you. Great to be speaking to the horses (pigs?) mouth by the way - PIGPIO ...
by Morphology
Wed Jul 27, 2016 1:45 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

Re: PIGPIO performance

Have you got some code for a complete program which I can run and which demonstrates the problem? Based on a snippet I'd guess you might be blocking the whole system by running a long running process in a callback. I will try and package something up this evening. What's the best way to send it to ...
by Morphology
Wed Jul 27, 2016 11:35 am
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3147

PIGPIO performance

Hi, Please bear with me, as my issue is a little complex to explain.... But, in essence, I am looking for guidance on the best, most efficient, most real-time way of utilising the PIGPIO library. I am currently writing a software sequencer on the Raspberry Pi to control banks of Analogue Modular syn...
by Morphology
Mon Feb 11, 2013 4:51 pm
Forum: Beginners
Topic: Debian6 19-04-2012 won't boot?
Replies: 5
Views: 638

Re: Debian6 19-04-2012 won't boot?

Thanks people.

@RaTTUS: As I said, Raspbian 2012-12-16 works fine. I was interested in finding out why a Debian distro listed on eLinux (http://elinux.org/RPi_Distributions) as being OK for Models A & B and downloaded 20,000+ times wouldn't work.

I guess I'll stick with Raspbian.
by Morphology
Fri Feb 08, 2013 11:45 am
Forum: Beginners
Topic: Debian6 19-04-2012 won't boot?
Replies: 5
Views: 638

Debian6 19-04-2012 won't boot?

Hi, excuse me if this has been covered elsewhere, but I can't find any references to it via the search. I've downloaded various images for my Model B, all of which have booted fine, including: - Raspbian 2012-12-16 - RiscOs 2012-11-01 RC6 - RPiTC 06-02-2013 All have loaded and run fine. I'm using SD...
by Morphology
Thu Apr 05, 2012 8:35 am
Forum: Other projects
Topic: PoE via the GPIO pins?
Replies: 8
Views: 3565

Re: PoE via the GPIO pins?

<r>sorry to resurrect a slightly decayed thread, but i think what you need is one of these:<br/> <br/> <URL url="http://www.silvertel.com/DataS.....Sv2-22.pdf">http://www.silvertel.com/DataS.....Sv2-22.pdf</URL><br/> <br/> It handles the Ethernet side of things, and splits out a 5v rail, which could...

Go to advanced search