[En-Nut-Discussion] modified nutpiper app

Jan Falkenhain Jan.Falkenhain at ruhr-uni-bochum.de
Thu Jan 13 12:12:46 CET 2005


Hallo,
I´m trying to realize a nutpiper app on an ethernut 2.0 board. I´d like to
replace the IR-controll by an easy keyboard for volume and channel choice.
To ignore the keyboard bouncing and to slower the reaction to the user,
keeping the button pressed, I inserted some NutSleep(?)´s.
Without using the keyboard the application runs perfectly, but pressing keys
and forcing the mainthread to NutSleep() frequently leads to buffer running
out of data. While the mainthread is sleeping the PLAYER-thread is never
running, but the the thread feeding the mp3-buffer is. Event afterwards these
threads don´t regain their equilibrium an the buffer runs out of data.

Realizing the delaed reaction on pressed keys by counting works, but the
display thread would not run. Setting the priority of the display thread to
default value, again leads to the distortion of thread-equlibrium...

Thanks for any idea of how to continue or hints to what is wrong.
Best regards,
Jan



More information about the En-Nut-Discussion mailing list