Arduino的被识别为键盘由Android

Arduino的被识别为键盘由Android

本文介绍了Arduino的被识别为键盘由Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写的Arduino复制它临危串行到串行输出输入的任何数据的简单的固件。事情是这样的:
INT serialData = 0;

I wrote a simple firmware for arduino to replicate whatever incoming data it recieves on serial to the serial output. Something like this:int serialData = 0;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  if (Serial.available() > 0)
  {
    serialData = Serial.read();
    Serial.println(serialData);
  }
}

现在我想将它连接到我的Nexus 7使用microUSB-> OTG线+ USB - > microUSB数据线在Android 4.3上运行。我安装了串行监控应用(),并预计到超过它写串行数据。

Now I wanted it connect to my Nexus 7 running on Android 4.3 using a microUSB->OTG cable + USB->microUSB cable. I installed a serial monitor app (https://play.google.com/store/apps/details?id=jp.ksksue.app.terminal&hl=en) and was expecting to write serial data over it.

有一次,我连这我最终得到一个键盘通知的平板电脑。 Android的认识到这一点连接键盘。因为它已经检测到外部键盘这折叠Android键盘。但是,我得到一个粘贴选项输入框。这似乎工作。

Once I connected this to the tablet I ended up getting a keyboard notification. Android recognizes this connection as keyboard. This collapses the android keyboard as it has detected an external keyboard. however I get an option to paste on the input box. Which seems to work.

是否有可能


  • 禁用安装在机器人键盘。或

  • 制作的Arduino被认可为比键盘以外的东西。

推荐答案

一个解决此问题的是安装另一个键盘的应用程序,比如去键盘或Swype的。这在arduinp连接到Android设备,在那里你可以关闭外部硬件和切换回屏幕键盘上导致了通知。不是持久的,但工程!

A workaround to this problem was to install another keyboard app like Go keyboard or swype. This leads to a notification upon connecting arduinp to the android device, from where you can turn off the external hardware and switch back on screen keyboard. Not persistent but works!

这篇关于Arduino的被识别为键盘由Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 17:48