LattePandaTeam / LattePanda-Development-Support

43 stars 81 forks source link

High 1 CPU core load after connect to Arduino #4

Closed johnatannvmd closed 7 years ago

johnatannvmd commented 7 years ago

This Library implementation begins high CPU load on just open connection to Arduino. Profiler begins endless while loop for events didI2CDataReveive, digitalPinUpdated and analogPinUpdated in separate thread. This behaviour is very strange and does not suppose to block this if you do not need this events in your project.

LattePanda commented 7 years ago

Hi Evgenjy,

Glad to see your email, it's very helpful for us to improve the quality of our product and service.

Thanks for your detailed guide, we are going to fix it in the next few days. Can you give us some suggestions for the solution to this problem? it will be very helpful for us.

Thanks again and looking forward to your reply.

Best Regards, Kelvin Sun LattePanda Team www.lattepanda.comhttp://www.lattepanda.com


From: Evgeniy notifications@github.com Sent: Monday, May 1, 2017 4:58:40 PM To: LattePandaTeam/LattePanda-Development-Support Cc: Subscribed Subject: [LattePandaTeam/LattePanda-Development-Support] High 1 CPU core load after connect to Arduino (#4)

This Library implementation begins high CPU load on just open connection to Arduino. Profiler begins endless while loop for events didI2CDataReveive, digitalPinUpdated and analogPinUpdated in separate thread. This behaviour is very strange and does not suppose to block this if you do not need this events in your project.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/LattePandaTeam/LattePanda-Development-Support/issues/4, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQGbk_XHYREnoaZktqgoZwbUkAg-gq6lks5r1Z7AgaJpZM4NM7Ei.

johnatannvmd commented 7 years ago

I send you the pull request with which eliminates this problem #5. This is drop in solution and you don't need to change code that already use this Firmata library.

LattePanda commented 7 years ago

Dear Evgeniy,

Excellent!!! you must be an expert in software!

We have merged the request, and will put it to the LattePanda forum!

Would you mind if we add you to the LattePanda Github team? so that you can get our hardware and software products faster, and we can work together better.

Thanks again,

Best Regards, Kelvin Sun LattePanda Team www.lattepanda.comhttp://www.lattepanda.com


From: Evgeniy notifications@github.com Sent: Tuesday, May 2, 2017 12:21:49 PM To: LattePandaTeam/LattePanda-Development-Support Cc: LattePanda; Comment Subject: Re: [LattePandaTeam/LattePanda-Development-Support] High 1 CPU core load after connect to Arduino (#4)

I send you the pull request with which eliminates this problem #5https://github.com/LattePandaTeam/LattePanda-Development-Support/pull/5. This is drop in solution and you don't need to change code that already use this Firmata library.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/LattePandaTeam/LattePanda-Development-Support/issues/4#issuecomment-298494047, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQGbk3qMLy46atfJgz0bd2zO9qvaICxNks5r1q9dgaJpZM4NM7Ei.