Interrupt/Event Problem
#1
Posted 19 November 2010 - 04:29 PM
#2
Posted 19 November 2010 - 05:46 PM
Make sure that 'someButton' does not go out of scope and is then 'Disposed'.If I click the button connected to pin 10, the button event is triggered just fine. If I then send some serial data to the netduino, triggering the serialPort_DataReceived, then try again to click the button, the button event is not triggered. Why is this?
(Post a bigger example so we can take a look.)
#3
Posted 20 November 2010 - 07:57 AM
Attached Files
#4
Posted 28 November 2010 - 01:24 PM
I have attached my program. BTW, it does not make any difference with or without the thread.sleep in the main loop?
What could be causing this problem?
Thanks.
anyone resolved this issue..i am having gthe same issue! SerialDataReceivedEventHandler not always firing..
tony
#5
Posted 28 November 2010 - 01:26 PM
I'm having issues triggering interrupts after I have received serial data using the SerialDataReceivedEventHandler. For example:
someButton = new InterruptPort(Pins.GPIO_PIN_D10, false, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeLow);
someButton.OnInterrupt += new NativeEventHandler(someButton_OnInterrupt);
serialPort.DataReceived += new SerialDataReceivedEventHandler(serialPort_DataReceived);
serialPort.Open();
If I click the button connected to pin 10, the button event is triggered just fine. If I then send some serial data to the netduino, triggering the serialPort_DataReceived, then try again to click the button, the button event is not triggered. Why is this?
Did you resolve this problem?
tony
#6
Posted 28 November 2010 - 11:25 PM
#7
Posted 04 April 2011 - 09:50 AM
#8
Posted 04 April 2011 - 07:00 PM
Are there any news regarding this issue?
I have the same SerialDataReceivedEventHandler-not-triggered issue with an extra bit of info, my event gets triggered if I am debugging from the PC, if the netduino runs standalone (as in non-f5, just a local reset) then I never get the events.
I have changed the code to constantly look for serial data in the main loop and then it works, ideas? suggestions? popcorn?
Hi Rod,
Have you updated the firmware on your Netduino? The v4.1.0.6 and v4.1.1_beta firmware releases fixed 3 bugs in the SerialPort implementation. Ones that sound very similar to what you're experiencing.
Chris
#9
Posted 12 April 2011 - 09:34 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users