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

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

问题描述

大多数 IBM(和一些戴尔)笔记本电脑都有内置加速计,可以在突然跌落时停止任何移动部件,但我找不到标准化的 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 访问的加速度计,我应该使用哪些库来访问数据?
  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天全站免登陆