Android:RIL 移植 - 使用我的 GPRS+GSM 的网络设置问题(pppd+chat)

发布于 2024-12-28 00:46:14 字数 371 浏览 1 评论 0原文

Android 移植到基于 ARM 的 EVK 系统上,集成了基于 GPRS+GSM (UART) 的模块。 还能够移植 RIL 层并使用我的网络提供商 SIM 拨打电话和发送短信。

但是,当我选择(设置 -> 无线网络 -> 移动网络 -> APN 或搜索移动网络)时,我无法获取任何 APN 设置。

具体来说,我无法在自定义的 Android 设备上获取 localip、remoteip 和网络。也为 Android 编译了 pppd 和 chat,并制作了适当的脚本文件来运行 pppd 和 chat,但我仍然收到配置脚本文件错误。

如果我能获得一些关于使用我的 GPRS+GSM 模块建立网络的正确方向的提示,我将不胜感激。

提前谢谢!

Android porting on ARM based EVK system integrated with GPRS+GSM (UART) based module is up.
Able to port RIL layer as well and make calls and SMS using my network provider SIM.

However when i choose (settings->Wireless Networks->Mobile Networks-> APN or search mobile networks) i fail to get any APN settings.

To be specific, i am unable to get localip, remoteip and get my network up on my customized Android Device. Have compiled pppd and chat for Android as well and have made appropriate script files to run pppd and chat, still i get Configuration script file error.

Would appreciate if i can get some tips on approaching the right direction to get the network up using my GPRS+GSM module.

Thx in Advance!

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

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

发布评论

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

评论(2

我做我的改变 2025-01-04 00:46:14

我一直在用扩展板将 ril 移植到 pandaboard 上。我在运行时也无法获取任何 APN 设置。但我可以在构建 AOSP 之前设置 APN。 apn 信息记录在名为 apns-conf.xml 的 xml 文件中,该文件位于 android/development/data/etc。你可以在这个文件中配置apn!

例如,

<apn carrier="Android"
     mcc="310"
     mnc="995"
     apn="internet"
     user="*"
     server="*"
     password="*"
     mmsc="null"
/>

此外,您还必须确保正确安装此“apns-conf.xml”。
build/core/main.mk中,您可以检查它。

例如,

ifeq (,$(filter %:system/etc/apns-conf.xml, $(PRODUCT_COPY_FILES)))
    PRODUCT_COPY_FILES += \
    development/data/etc/apns-conf_sdk.xml:system/etc/apns-conf.xml
    ifeq ($(filter eng tests,$(TARGET_BUILD_VARIANT)),)
        $(warning implicitly installing apns-conf_sdk.xml)
    endif
endif

最后,您可以通过 adb shell 调试系统

logcat

logcat -b radio

I've been porting ril on pandaboard with an expansion board. I also failed to get any APN settings during the runtime. But I can set the APN before building the AOSP. The apn information is recorded in a xml file called apns-conf.xml located at android/development/data/etc. You can config the apn in this file!

For example,

<apn carrier="Android"
     mcc="310"
     mnc="995"
     apn="internet"
     user="*"
     server="*"
     password="*"
     mmsc="null"
/>

Besides, you have to ensure that this "apns-conf.xml" is correctly install.
In build/core/main.mk, you can check it.

For example,

ifeq (,$(filter %:system/etc/apns-conf.xml, $(PRODUCT_COPY_FILES)))
    PRODUCT_COPY_FILES += \
    development/data/etc/apns-conf_sdk.xml:system/etc/apns-conf.xml
    ifeq ($(filter eng tests,$(TARGET_BUILD_VARIANT)),)
        $(warning implicitly installing apns-conf_sdk.xml)
    endif
endif

Finally, you can debug your system by adb shell

logcat

and

logcat -b radio
素衣风尘叹 2025-01-04 00:46:14

我所做的与你所做的相反。我不关心短信和语音,我只需要数据连接。启动后,立即从 ADB 运行“logcat -b radio -v time”。这是无线电日志。您应该会看到设置数据连接的任何尝试和结果。在日志中,您应该看到“trySetupData”。这是通过 GSM 链路建立 IP 链路的过程的开始。如果您仔细阅读日志,您将看到所有进度/状态和错误。这应该会给您一些下一步该做什么的提示。这就是我的工作方式。

I've done the opposite of what you have done. I did not care about the SMS and voice, I just needed the data connection. Right after you boot, run "logcat -b radio -v time" from ADB. This is the radio log. You should see any attempt and result on setting up a data connection. In the log, you should see a "trySetupData". This is the beginning of the process of establishing an IP link over the GSM link. If you read the logs carefully, you will see all the progress/status and errors. That should give you some hints on what to do next. That is how I made mine work.

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