方向盘遥控车船2.4g无线接受器的安装方法

2.4G无线遥控器调试问题
在kernel里enable HID和OHCI,将设备当作HID设备来处理。在kermel里打印信息:
& [&& 57.002651] input: 2.4G& Wireless Receiver& as /devices/platform/s5p-ohci/us1
[&& 57.007848] generic-usb :AF11.0001: input: USB HID v1.11 Keyboard [0
[&& 57.024394] input: 2.4G& Wireless Receiver& as /devices/platform/s5p-ohci/us2
[&& 57.028547] generic-usb :AF11.0002: input: USB HID v1.11 Mouse [2.41
[&& 57.045517] generic-usb :AF11.0003: claimed by neither input, hiddew
[&& 57.047445] usbcore: registered new interface driver usbhid&&&&&&&&&&&&&&&&&
[&& 57.052918] usbhid: USB HID core driver&
&& 进后, input设备报错:
&&& /EventHub( 78): New keyboard: device-&id=0x10000 devname='2.4G Wireless Rece
iver ' propName='hw.keyboards.65536.devname' keylayout='/system/usr/keylayout/qw
erty.kl'
I/EventHub( 78): New device: path=/dev/input/event2 name=2.4G Wireless Receiv
er id=0x10000 (of 0x1) index=1 fd=93 classes=0x9
E/EventHub( 78): could not get driver version for /dev/input/mouse0, Not a typ
I/EventHub( 78): New keyboard: device-&id=0x10001 devname='2.4G Wireless Rece
iver ' propName='hw.keyboards.65537.devname' keylayout='/system/usr/keylayout/qw
erty.kl'
I/EventHub( 78): New device: path=/dev/input/event1 name=2.4G Wireless Receiv
er id=0x10001 (of 0x2) index=2 fd=99 classes=0x3
I/EventHub( 78): New keyboard: device-&id=0x10002 devname='s3c-keypad' propNam
e='hw.keyboards.65538.devname' keylayout='/system/usr/keylayout/s3c-keypad.kl'
I/EventHub( 78): New device: path=/dev/input/event0 name=s3c-keypad id=0x10002
(of 0x3) index=3 fd=100 classes=0x21
E/EventHub( 78): could not get driver version for /dev/input/mice, Not a typew
I/InputReader( 78): Device added: id=0x0, name=s3c-keypad, sources=
I/InputReader( 78): Device added: id=0x10001, name=2.4G Wireless Receiver , s
I/InputReader( 78): Device added: id=0x10000, name=2.4G Wireless Receiver , s
I/InputManager-Callbacks( 78): No input device calibration properties found fo
r device s3c-keypad.
I/InputManager-Callbacks( 78): No input device calibration properties found fo
r device 2.4G Wireless Receiver .
I/InputManager-Callbacks( 78): No input device calibration properties found fo
r device 2.4G Wireless Receiver .&
&&& input校准出错了,搜索到InputManager.java里
&&& @SuppressWarnings(&unused&)
&&&&&&& public InputDeviceCalibration getInputDeviceCalibration(String deviceName) {
&&&&&&&&&&& // Calibration is specified as a sequence of colon-delimited key value pairs.
&&&&&&&&&&& Properties properties = new Properties();
&&&&&&&&&&& File calibrationFile = new File(Environment.getRootDirectory(),
&&&&&&&&&&&&&&&&&&& CALIBRATION_DIR_PATH + deviceName + &.idc&);
&&&&&&&&&&& if (calibrationFile.exists()) {
&&&&&&&&&&&&&&& try {
&&&&&&&&&&&&&&&&&&& properties.load(new FileInputStream(calibrationFile));
&&&&&&&&&&&&&&& } catch (IOException ex) {
&&&&&&&&&&&&&&&&&&& Slog.w(TAG, &Error reading input device calibration properties for device &
&&&&&&&&&&&&&&&&&&&&&&&&&&& + deviceName + & from & + calibrationFile + &.&, ex);
&&&&&&&&&&&&&&& }
&&&&&&&&&&& } else {
&&&&&&&&&&&&&&& Slog.i(TAG, &No input device calibration properties found for device &
&&&&&&&&&&&&&&&&&&&&&&& + deviceName + &.&);
&&&&&&&&&&&&&&&
&&&&&&&&&&& }
&&&&&&&&&&&
&&&&&&&&&&& InputDeviceCalibration calibration = new InputDeviceCalibration();
&&&&&&&&&&& calibration.keys = properties.keySet().toArray(new String[properties.size()]);
&&&&&&&&&&& calibration.values = properties.values().toArray(new String[properties.size()]);
&&&&&&&&&&&
&&&&& CALIBRATION_DIR_PATH = &usr/idc/&&& ;getRootDirectory = &system&
&&&& 将校准文件放在/usr/idc里。
摘自 zzobin的专栏
您对本文章有什么意见或着疑问吗?请到您的关注和建议是我们前行的参考和动力&&
您的浏览器不支持嵌入式框架,或者当前配置为不显示嵌入式框架。2014年新款无线遥控器推荐
智安宝无线遥控器优势
★ 13年设计研发遥控发射接收经验
★ 全部采用进口元器件生产
★ 标准化质量控制工艺流程
★ 世界领先的进口测试设备
★ 每一个产品都经过老化检测
★ 20余位工程师、200人生产规模
★ 终身免费维修服务
★ 美的公司指定遥控供应商
★ 5000家客户、30余个行业的明智选择
★ 遥控领域唯一量身定制开发、样品寄送供应商
★ 7天交货、行业交货周期最短
★ 配套元器件免费赠送
★ 客户二次开发,智安宝全程技术支持服务
  深圳市智安宝电子有限公司是经深圳市政府批准的成立的专业从事(RF)无线收发模块、无线遥控器、无线接收器、控制器、红外探测器、门磁、烟雾探测器、燃气报警器、防盗报警器等相关产品开发、制造、销售为一体的高科技企业。广泛用于遥控电动门窗、伸缩门、车库门;遥控灯、开关、通讯及安防等领域、专业配套 车库门厂、GPS 厂、安防厂、电控锁厂、汽车厂、电动门窗、闸道、工业控制等。
  公司自成立以来,始终坚持走以科技创新求发展之路,并根据发展需要吸纳了一批专业技术人才加盟。现在已拥有包括RF技术、单片...
智安宝荣誉
联系智安宝遥控器厂家
联系人:杨先生
地 址:深圳市宝安区西乡三围东华第三工业区A1栋5楼
无线遥控器知识
无线遥控器百科
深圳市智安宝电子有限公司专注无线收发模块,以及无线防盗器、无线控制器、无线红外探测器、无线门磁、无线烟雾探测器产品研发生产销售!
电  话:3 传真:4 邮箱: 网址:
地  址:深圳市宝安区西乡三围东华第三工业区A1栋5楼
版权所有:深圳市智安宝电子有限公司&& &&
咨询热线:400-023-0263
扫一扫二维码保存联系信息最近搜索来访记录
亚太地区的网友用手机一周前在百度搜索“长沙遥控船”访问了本页河北保定的网友用手机一周前在百度搜索“儿童遥控船效益如何”访问了本页河南郑州的网友用手机一周前在百度搜索“方向遥控船这个项目怎么样”访问了本页山东的网友一个月前在百度搜索“遥控船项目怎么样”访问了本页福建厦门的网友一个月前在360搜索“方向盘遥控船怎么样?真能赚钱吗?”访问了本页
水上游乐设施VIP推荐信息
游乐设施最新信息
水上游乐设施相关分类
,还可以通过

我要回帖

更多关于 儿童方向盘遥控车 的文章

 

随机推荐