Android,将传感器数据记录到文件中
我想记录传感器数据(加速度计、陀螺仪、磁力计、GPS 等)并记录时间历史记录,可以访问该时间历史记录以供将来绘图和分析(以及一些实时计算)。我是一名 MATLAB 程序员,所以想到了 .csv 文件,但我也看过一些关于 MySql 的内容,我不太熟悉。
我的问题是,哪种数据记录方法最合适?我并不局限于上面提到的两个,它们只是我到目前为止所看到的。有什么建议/示例代码吗?
PS,我也运行过 MicroLog4Android (http://code.google.com/p/microlog4android/ ),但我没有遇到过任何例子,而且作为 Android 新手,我无法判断它是否用于记录更高速度的数据(10-20 Hz),或者它是否只是一个程序错误日志。它有一些很酷的功能(短信发送、网络存储等),如果这确实是一个合适的工具,那么它会很有吸引力。
I would like to log sensor data (Accelerometer, Gyro, Magnetometer, GPS, etc.) and record a time history which can be accessed for future plotting and analysis (as well as some real time calculations). I am a MATLAB programmer, so .csv files came to mind, but I've also seen a little about MySql, which I'm not too familiar with.
My question is, which datalogging method is most appropriate? I'm not limited to the two mentioned above, they're simply what I've seen so far. Any suggestions/ example codes?
PS, I've also run across MicroLog4Android (http://code.google.com/p/microlog4android/) but there are not any examples which I have come across, and being new to Android, I cannot tell if its meant for logging higher speed data (10-20 Hz) or if it's simply a program errorlog. It has some cool features (SMS sending, network storage, etc.) which make it attractive if this is indeed an appropriate tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论