从 Android 应用程序控制串行设备(如 USB 打印机)

发布于 2024-11-18 07:21:35 字数 298 浏览 7 评论 0原文

我有两个关于 Linux Android 的问题。

文档中写道:

“Android 调试桥 (adb) 是一种多功能命令行工具,可让您与模拟器实例或连接的 Android 设备进行通信。”

显然有一种方法可以从 ADB (Android) 向串行端口 (USB) 发送命令。

所以,我需要从 android 设备发送命令(如 AT 命令)到 USB 设备(打印机)

1)ADB 将出现在带有 android 的真实设备上?哪个版本?

2)还有其他选择吗?

提前致谢

I have two questions about Linux Android.

In the documentation it says:

"Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device."

And apparently there is a way to send a command to serial port (USB) from ADB (Android).

So, I need to send commands (like AT commands) from android device to usb device (printer)

1) The ADB will be present on a real device with android?, which version?

2) is there another alternative?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的他你的她 2024-11-25 07:21:35

显然有一种方法可以从 ADB (Android) 向串行端口 (USB) 发送命令。

据我所知,情况并非如此。

ADB 将出现在带有 Android 的真实设备上吗?

adb 是一个属于 Android SDK 一部分的程序。它在您的开发机器上运行。它不在模拟器上运行。它不在设备上运行。

还有其他选择吗?

使用 USB API开放配件开发套件

And apparently there is a way to send a command to serial port (USB) from ADB (Android).

Not that I am aware of.

The ADB will be present on a real device with android?

adb is a program that is part of the Android SDK. It runs on your development machine. It does not run on the emulator. It does not run on the device.

is there another alternative?

Use the USB APIs and the Open Accessory Development Kit, perhaps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文