-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming throughput slows after a few seconds #18
Comments
I can't verify your issue on my MetaWear Pro device. I ran the examples/accellerometer.js script for ~5 minutes and the output stream is constant. (at 50hz) Can you please start the script in debug mode and post the output directly after starting the script and after the slowdown.
|
Yes, I'm running the latest firmware on my Metawear. Here's a little clip showing you exactly the behavior I'm seeing. This happens very time I run it. Also, unless I do a soft reset of the metawear device, it stays in that "slowed down" mode from the outset if I run the script again. Also, when I get the stream data using the Metawear App, I don't notice this reduced throughput. streamable.com/9uu6 |
@felipecocco : I noticed the same thing with my macbook pro (late 2014 model running El Capitan) I am wondering if it has to do with one of Node-Metawear's dependent libraries and their interaction with OSX or a limitation of OSX itself because I tested some code on my MBP and got the same ~1000ms choppiness, and then tested the same code on my raspberry pi B+ and an Ubuntu desktop and didn't run into any choppiness issues. |
Just for the record ... I had exactly the same problem with my MBP (El Capitan 10.11.3), no issue on Yocto. Until now I gave up digging into the problem on the MBP to focus on the logging. |
Does anybody have update on this ? |
I am having the same issue on an Ubuntu desktop. |
@felipecocco : Which version FW,HW and Model number for your device ? We have updated the dependencies. Do you confirm you still encounter the same problem ? |
@alanhortz I seem to encounter a different problem now. The stream no longer halts after a while; now from the start I seem to get output that is roughly on a +130ms delay followed by 0/1ms delays at regular intervals. When I first run the command to test out the accelerometer, it does give me this warning now, though: HW Rev: 0.2 Model Number: 2 |
@felipecocco So if I do understand you correctly, the original issue is gone but you now see a potential leak alert given by the underlying EventEmitter, is that right ? Regarding the EventEmitter, this is something I personally encountered, but didn't had time to investigate it .... Any help is welcome ;) I will create a new issue, with the potential memory leak ... Alan |
@yowakita could you confirm the same problem you encountered on side is also solved ? Thanks, Alan |
I'm running your example accelerometer code on a MBP, and it streams wonderfully at first. However, after a few seconds, the stream noticeably slows down and I get maybe two updates a second, instead of the flurry of updates that I get at the beginning. If disconnect and reset, I again get the great stream throughput but always get the slowdown afterwards.
The text was updated successfully, but these errors were encountered: