Android在NR情況下獲取5G的rsrp,rsrq和ssnr,pci和ci值,
TelephonyManager tm = (TelephonyManager) getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
//5G
if (info instanceof CellInfoNr) {
CellIdentityNr nr = (CellIdentityNr) ((CellInfoNr) info).getCellIdentity();
//int nrarfcn = nr.getNrarfcn();
int pci = nr.getPci();
long ci = nr.getNci();
CellSignalStrengthNr nrStrength = (CellSignalStrengthNr)((CellInfoNr) info).getCellSignalStrength();
//nrStrength.getSsSinr();
now_rsrp = "-"+nrStrength.getSsRsrp()+"";
list_pci.add(pci + "");
list_ci.add(ci + "");
//列印5G資訊
String s = ((CellInfoNr)CellInfoNr info).toString();
}
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/240487.html
標籤:其他
上一篇:藍牙配接器SRRC認證辦理標準
下一篇:IMT發射功率控制
