Page 1 of 1

Missing events

Posted: Sat Nov 07, 2015 7:33 pm
by Acaraje
Greetings,


I am using ChibiOS-RT 3.0.x on an STM32F4. This question relates to usage model of serial driver as an event source.

After receiving a complete packet from the seriallist port, a transport task dispatches to another task that will in turn route it to the proper command handler.

My usage model is such that I unregister from the event source (serial driver) until the command is processed. Upon command completion the transport task is notified by the command task that it is time to register for events again.

I have noticed that when under have load I would stop receiving CHN Input available events

I was able to work around this problem by flushing the input queue before I re-register.

I am hopeful the users in this forum or the Chibios creator can enumerate the proper sequence of operations I need to perform to implement the desired behavior for my application.

Thanks in advance.
Acaraje

Re: Missing events

Posted: Sat Nov 07, 2015 7:45 pm
by Giovanni
Hi,

You should never unregister from events, if the event is triggered while you are NOT registered then it is lost, not buffered.

Giovanni