Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2014-07-17 Thread rar76
Thank you for the information - I noticed others used the mmap instead of sysfs and I wondered how much overhead was in the read/write/open functions. Can I ask what logic analyzer you're using? I've been itching to get an oscilloscope, but even the cheapest is a few hundred. Regards, Rene

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2014-07-17 Thread briselec via BeagleBoard
On Friday, July 18, 2014 3:56:41 AM UTC+10, rar76 wrote: Thank you for the information - I noticed others used the mmap instead of sysfs and I wondered how much overhead was in the read/write/open functions. Can I ask what logic analyzer you're using? I've been itching to get an

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2014-07-07 Thread qay707
Sudhir, do you know what the problem was with the Pin? I have the same problem that poll is not blocking. Therefor to know why would be great. Web, -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2013-10-30 Thread Jack Mitchell
How are you counting your pulses? If you are firing interrupts faster than you can service them then you will be missing interrupts. There are only 2 ways to get faster interrupts on the beaglebone than what your are doing now and that is by either writing a kernel driver, to avoid the latency in

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2013-10-29 Thread sudhir v
Hi Jack, I apologize if my previous reply came across as rude. Let me be more humble and do proper homework before posting from now on :-) I didn't have the time to work on this till now. You were right in pointing out usage of POLLPRI instead of POLLIN. I had tried both earlier and it did

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2013-10-21 Thread sudhir v
Hi Jack, Thanks for the help!. I looked at your library and it appears that you are using poll(2) as well which is similar to the example I am trying to use in the original post. There are two things I want to mention 1. Latency : I came across somewhere that poll() by itself introduces

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2013-10-21 Thread Jack Mitchell
Hi Sudhir, If you are not well versed in Linux and C then the speed of your own code will be no faster than using my library with debugging disabled I imagine. Without looking seriously at your code there are two things I want to say. 1) You should be using POLLPRI - look at my library for

Re: [beagleboard] poll() on a pin returns constantly even though there is no input

2013-10-18 Thread Jack Mitchell
Sudhir, If you don't object to using a library there is libsoc[1] which is made for this exact purpose. https://github.com/jackmitch/libsoc Cheers, Jack. On 18/10/2013 17:31, sudhir v wrote: Hi, I want to monitor a pin on BBB for interrupt. I chose pin 117 (pin 25 on P9 - GPIO3_21 =