笔记本电脑的加速度计API [英] Accelerometer API for Laptops

查看:106
本文介绍了笔记本电脑的加速度计API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数IBM(和某些Dell)笔记本电脑都具有内置的加速度计,可以在突然跌落时停止任何运动部件,但是我无法找到标准化的Windows API来访问此数据。我假设每个制造商都会提供一个驱动器来与传感器连接。

Most IBM (and some Dell) laptops have built-in accelerometers to stop any moving parts during a sudden fall, but I was unable to find a standardised Windows API to access this data. I assume that each manufacturer would provide a driver to interface with the sensor.


  1. 哪些流行的笔记本电脑品牌标配了可通过API和API访问的加速度计。我应该使用哪些库来访问数据?

  2. 是否存在API *以抽象化不同制造商之间的差异?我知道Windows 7 Sensor API,但我希望支持XP和更早版本。


推荐答案

如果笔记本电脑意外掉落或受到其他物体的突然撞击(例如,当超过某个加速阈值时),大多数知名的笔记本电脑供应商都会使用加速度计来存放硬盘驱动器头。例如,我的HP有其 HP 3D DriveGuard。但是,此技术是嵌入式底层的,即使未加载操作系统,它也似乎可以工作,因此我想它可以在BIOS中使用。我想它只是公开了一种启用或禁用此技术的ACPI方法。因此,即使在具有标准化传感器API的Windows 7上,也无法像智能手机一样将其作为标准加速度计进行访问。也许将来如果市场需要的话(但我不这么认为)。

Most reputable notebook vendors have accelerometers to park the hard drive head if the notebook is accidentally dropped or is abruptly impacted by another object (i.e. when a certain acceleration threshold is exceeded). For example, my HP has its "HP 3D DriveGuard". However this technology is embedded low-level, it seems to work even if the OS is not loaded, so I suppose it is in the BIOS. I suppose that it is exposed just an ACPI way to enable or disable this technology. So, even on Windows 7 with standardized sensor APIs it is not accessible as a standard accelerometer like in a smartphone. Maybe in future if market demands it (but I don't think so).

这篇关于笔记本电脑的加速度计API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆