Missing events

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Acaraje
Posts: 1
Joined: Sat Nov 07, 2015 7:10 pm

Missing events

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Missing events

Post 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
Post Reply