如何连接一个3G USB调制解调器为其没有3G功能一个Android平板电脑 [英] How to connect a 3g usb modem for a android tablet which is not having 3g capability

查看:463
本文介绍了如何连接一个3G USB调制解调器为其没有3G功能一个Android平板电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有COBY居鲁士的Andr​​oid MID标签7024(Android 2.2的),并希望我的USB调制解调器连接到它(华为E220),这是可以做到与应用?我可以轻松地与电脑连接我的选项卡中的USB调试模式,并在其上​​运行的Java应用程序。

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.

要不然我需要做的是在Linux内核?

Or else do I need to do it in the Linux kernel?

我做了谷歌这一点,但无法找到一个解决方案。

I did Google this but couldn't find a solution.

谢谢,
-Lasith。

Thanks, -Lasith.

推荐答案

实际上,我的自定义平台集成在姜饼一个USB调制解调器(UMTS)。如果你已经配置了USB转USB端口识别新的设备,它不承认它的存在,它涉及将其集成到内核中。这意味着您的平板电脑制造商不包括调制解调器驱动程序。你可能不需要重新编译内核,因为在大多数情况下,它可能会被添加为内核模块file.ko,然后您在init.rc文件中添加insmode /modules/file.ko命令。精确解不是每个调制解调器相同的,但在一般情况下,它涉及由调制解调器制造商(有时内核已经具有用于该驱动器)提供了串行USB驱动器。它也经常涉及到usbnet.c驱动程序来创建usbnet.ko。通常情况下,还需要具体到你的调制解调器其他司机。所有这一切都使调制解调器待观察和交谈,但不得做任何事情有用就像建立一个互联网连接。要做到这一点,你需要一个连接管理器建立连接和维护。

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.

要弄完,你不会找到如何集成了到Android东西。我看着无处不在。有关于Android的整合驱动程序,因为它只是一个小社会的细胞和平板电脑公司工作的很少信息。我做它的方式是看如何从接近你的内核版本的Linux内核的角度去做。记住,你会发现将告诉你如何做到这一点的一个Linux PC环境在同一台机器上运行大部分的信息。你将不得不转换说明交叉编译环境的胳膊。转到 http://source.android.com/source/index.html 你会发现安装工具来编译Android和它的内核中的说明。你需要编译的驱动程序。对于内核驱动程序,它会工作一样的Linux操作系统。对于连接管理器,你已经有一个可能的工作,如果没有Linux的一种呢并不总是工作,但你至少会看到源代码code,看看它做什么。要建立连接,它最有可能只需要几个AT指令设置APN运营商和其他参数,并开始连接。这就是我将在下周努力。结果
我希望我有一个简单的答案,但它不是那么容易。希望这个答案将帮助您开始。

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.

这篇关于如何连接一个3G USB调制解调器为其没有3G功能一个Android平板电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆