如何为不具备 3g 功能的 Android 平板电脑连接 3g USB 调制解调器
我有 coby kyros android tab MID 7024(android 2.2) 并且想要将我的 USB 调制解调器连接到它 (huawei E220) 这可以与应用程序一起使用吗?我可以轻松地将我的选项卡与计算机在 USB 调试模式下连接并在其上运行 Java 应用程序。
或者我需要在Linux内核中执行此操作?
我用谷歌搜索了这个但找不到解决方案。
谢谢, -拉西斯。
I am having coby kyros android tab MID 7024(android 2.2) and want to connect my USB modem to it (huawei E220) is this possible to do with app? I can easily connect my tab with computer in the USB debugging mode and run Java Apps on it.
Or else do I need to do it in the Linux kernel?
I did Google this but couldn't find a solution.
Thanks,
-Lasith.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,我正在自定义平台上的姜饼中集成 USB 调制解调器 (UMTS)。如果您已将 USB 配置为识别 USB 端口上的新设备,但它无法识别,是的,这涉及将其集成到内核中。这意味着您的平板电脑制造商没有包含您的调制解调器驱动程序。您可能不需要重新编译内核,因为在大多数情况下,它可以作为内核模块“file.ko”添加,然后在“init.rc”文件中添加“insmode /modules/file.ko”命令。每个调制解调器的确切解决方案并不相同,但一般来说,它涉及调制解调器制造商提供的“串行到 USB”驱动程序(有时内核已经具有该驱动程序)。它还经常涉及“usbnet.c”驱动程序来创建 usbnet.ko。通常,还需要特定于您的调制解调器的其他驱动程序。所有这些都允许调制解调器被看到并与之交谈,但不能做任何“有用”的事情,例如建立互联网连接。为此,您需要一个连接管理器来建立并维护连接。
为了完成这个任务,你不会找到任何关于如何将其集成到 android 的信息。我四处张望。关于在 Android 中集成驱动程序的信息很少,因为它只是一个在手机和平板电脑公司工作的小社区。我这样做的方法是从 Linux 内核的角度来看如何为接近你的内核版本做到这一点。请记住,您找到的大多数信息都会向您展示如何在 linux-pc 环境中在同一台机器上运行。您必须将交叉编译环境的指令“转换为 ARM”。转到 http://source.android.com/source/index.html 然后你将找到安装编译 android 及其内核的工具的说明。您需要它来编译驱动程序。对于内核驱动程序,它的工作方式与linux 相同。对于连接管理器,您已经拥有的连接管理器可能可以工作,如果不是,Linux 连接管理器也不一定能工作,但您至少会看到源代码以了解它的作用。要建立连接,很可能只需要几个“AT 命令”即可设置运营商 APN 和其他参数并启动连接。这就是我下周要做的工作。
我希望我有一个简单的答案,但它并不那么容易。希望这个答案能帮助您入门。
I'm actually integrating a USB modem (UMTS) in gingerbread on a custom platform. If you have configured your USB to recognize new devices on the USB port and it does not recognizes it, yes, it involves integrating it to the kernel. That means your tablet manufacturer did not include your modem drivers. You probably don't need to recompile your kernel since in most cases it could be added as a Kernel module "file.ko" and then you add the "insmode /modules/file.ko" command in the "init.rc" file. The exact solution is not the same for every modem but in general, it involves a "serial to usb" driver provided by the modem manufacturer (sometimes the kernel already has the drivers for that). It also often involves the "usbnet.c" driver to create the usbnet.ko. Often, other drivers specific to you modem are also required. All of that allow the modem to be seen and talk to but not to do anything "useful" like establishing an internet connection. To do that, you need a connection manager to establish the connection and maintain it.
To get that done, you will not find anything on how to integrate that to android. I looked everywhere. There is very few information on integrating drivers in Android since it's just a small community working in cell and tablet companies. The way I did it is to look how to do it from a linux kernel perspective for a kernel version close to yours. Remember that most information you will find will show you how to do it on a linux-pc environment to run on the same machine. You will have to "convert the instructions" for a cross compile environment to ARM. Go to http://source.android.com/source/index.html and you will find the instructions to install the tools to compile android and its kernel. You need that to compile the drivers. For the kernel drivers, it will work the same as linux. For the connection manager, the one you already have might work, if not the linux one do not always work but you will at least see the source code to see what it does. To establish a connection, it most likely requires just a few "AT commands" to set the carrier APN and other parameters and start the connection. That's what I will work on in the next week.
I wish I had a simple answer but it's not that easy. Hopefully this answer will help you get started.