嵌入式爱好者

嵌入式爱好者 门户 知识库 查看内容

rk3588 5G模块开机拨号成功后面断连

2024-9-27 09:25| 发布者: mafumafu| 查看: 6| 评论: 0

类目:  >  知识库     文档编号: 1529

模块:RM500x

现象:5G模块已经调通(这里指的是可以ping 通 8.8.8.8),系统起来后,usb0/wwan0是有的但过一会儿没了。

原因:5G模块在Android 12中拨号成功后会测一会儿速,测完后没问题会自动关闭并释放网络资源。若想开机自启5G模块则不能让系统释放网络资源。

解决方法:去掉以下释放网络资源的补丁。

diff --git a/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java b/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java
index 279da92b6..653ae228c 100644
--- a/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java
+++ b/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java
@@ -344,10 +344,10 @@ public class TelephonyNetworkFactory extends NetworkFactory {
             // to remove network requests from both DcTrackers.
             // Note that this part will be refactored in T, where we won't even have DcTracker at
             // all.
-            releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
-                    AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
-            releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
-                    AccessNetworkConstants.TRANSPORT_TYPE_WLAN);
+//            releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
+//                    AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
+//            releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
+//                    AccessNetworkConstants.TRANSPORT_TYPE_WLAN);
         }
     }

已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-25 22:10

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部