[GH-ISSUE #108] EP06-E wrong sinr value #85

Open
opened 2026-03-04 11:58:31 +03:00 by kerem · 13 comments
Owner

Originally created by @1alessandro1 on GitHub (Dec 8, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/108

image

Hello, as you can see from the picture the SINR value is reported badly, on the right side you have the AT command to check SINR and on the left side the javascript reports a negative value way below the limits. The firmware on the EP06 I'm using is EP06ELAR04A22M4G

This is the example of the string that reports the channel info:

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,4CAA71F,28,1500,3,3,3,77B8,-84,-9,-56,21,35

where:

222 = MNC
88 = MCC
4CAA71F = eNB (hex)
28 = Cell ID
1500 = EARFCN

-84 = RSRP
-9 = RSRQ
-56 = RSSI
21 = SINR

Originally created by @1alessandro1 on GitHub (Dec 8, 2024). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/108 ![image](https://github.com/user-attachments/assets/be1098fc-5a11-4d4c-a44d-1035f6c7e8f1) Hello, as you can see from the picture the SINR value is reported badly, on the right side you have the AT command to check SINR and on the left side the javascript reports a negative value way below the limits. The firmware on the EP06 I'm using is EP06ELAR04A22M4G This is the example of the string that reports the channel info: `+QENG: "servingcell","NOCONN","LTE","FDD",222,88,4CAA71F,28,1500,3,3,3,77B8,-84,-9,-56,21,35` where: 222 = MNC 88 = MCC 4CAA71F = eNB (hex) 28 = Cell ID 1500 = EARFCN -84 = RSRP -9 = RSRQ -56 = RSSI 21 = SINR
Author
Owner

@1alessandro1 commented on GitHub (Dec 8, 2024):

Seems like this awk call is the issue. Looking at the script used for EP06E 2c7c0306

image

Removing it gives correct results:

image

<!-- gh-comment-id:2526317819 --> @1alessandro1 commented on GitHub (Dec 8, 2024): Seems like this awk call is the issue. Looking at the script used for EP06E 2c7c0306 ![image](https://github.com/user-attachments/assets/9faf0cc4-abb8-4102-bc83-2eb13f78ddc7) Removing it gives correct results: ![image](https://github.com/user-attachments/assets/702fdb3e-2d7b-4a99-a1ad-53618fa09fed)
Author
Owner

@1alessandro1 commented on GitHub (Dec 8, 2024):

The other problem is present when asking the modem "QCAINFO". The second band, the one who is aggregated, is always reported with SINR = 0

image

The script will parse that result, multiply by 0.2 and subtract 20, displaying a negative SINR (wrong value). We should take PCC SINR for reference.

<!-- gh-comment-id:2526351243 --> @1alessandro1 commented on GitHub (Dec 8, 2024): The other problem is present when asking the modem "QCAINFO". The second band, the one who is aggregated, is always reported with SINR = 0 ![image](https://github.com/user-attachments/assets/b3ec5fc9-427c-4706-99c6-0affc850293d) The script will parse that result, multiply by 0.2 and subtract 20, displaying a negative SINR (wrong value). We should take PCC SINR for reference.
Author
Owner

@4IceG commented on GitHub (Dec 8, 2024):

Hi,
@1alessandro1 I don't believe in what modem shows (in at commands) because the indications may differ significantly depending on the modem's fw.

I understand that you checked documentation and asked about this value on Quectel forum?

<!-- gh-comment-id:2526356867 --> @4IceG commented on GitHub (Dec 8, 2024): Hi, @1alessandro1 I don't believe in what modem shows (in at commands) because the indications may differ significantly depending on the modem's fw. I understand that you checked documentation and asked about this value on Quectel forum?
Author
Owner

@1alessandro1 commented on GitHub (Dec 8, 2024):

I've checked the documentation:
Quectel_EP06&EG06&EM06_AT_Commands_Manual_V1.0.pdf

page 86:

AT+QENG="servingcell"
Response
In LTE mode:
+QENG: "servingcell",<state>,"LTE",<is_tdd>,<mcc>,<m
nc>,<cellid>,<pcid>,<earfcn>,<freq_band_ind>,<ul_band
width>,<dl_bandwidth>,<tac>,<rsrp>,<rsrq>,<rssi>,<sin
r>,<srxlev>

The penultimate value is SINR for the output of AT+QENG="servingcell".

The same does not apply to AT+QCAINFO, where this time the last value is SINR

+QCAINFO
Response:

PCC”,<freq>,<bandwidth>,<band>,<pcell_state>,<pcid>,
<rsrp>,<rsrq>,<rssi>,<sinr>
“SCC”,<freq>,<bandwidth>,<band>,<scell_state>,<pcid>,
<rsrp>,<rsrq>,<rssi>,<sinr>

Additionally, I know what SINR values to expect for each band. I've connected this EP06 to my personal external antenna, and I know that on B3 (1800MHz) I expect around 15-17 dB for SINR. I've connected also another modem to check this, and there's nothing wrong with the setup (a -17SNR would suggest that something is broken, while it really isn't)

<!-- gh-comment-id:2526395573 --> @1alessandro1 commented on GitHub (Dec 8, 2024): I've checked the documentation: [Quectel_EP06&EG06&EM06_AT_Commands_Manual_V1.0.pdf](https://github.com/user-attachments/files/18054082/Quectel_EP06.EG06.EM06_AT_Commands_Manual_V1.0.pdf) page 86: ``` AT+QENG="servingcell" Response In LTE mode: +QENG: "servingcell",<state>,"LTE",<is_tdd>,<mcc>,<m nc>,<cellid>,<pcid>,<earfcn>,<freq_band_ind>,<ul_band width>,<dl_bandwidth>,<tac>,<rsrp>,<rsrq>,<rssi>,<sin r>,<srxlev> ``` The penultimate value is SINR for the output of `AT+QENG="servingcell"`. The same does not apply to `AT+QCAINFO`, where this time the last value is SINR ``` +QCAINFO Response: PCC”,<freq>,<bandwidth>,<band>,<pcell_state>,<pcid>, <rsrp>,<rsrq>,<rssi>,<sinr> “SCC”,<freq>,<bandwidth>,<band>,<scell_state>,<pcid>, <rsrp>,<rsrq>,<rssi>,<sinr> ``` Additionally, I know what SINR values to expect for each band. I've connected this EP06 to my personal external antenna, and I know that on B3 (1800MHz) I expect around 15-17 dB for SINR. I've connected also another modem to check this, and there's nothing wrong with the setup (a -17SNR would suggest that something is broken, while it really isn't)
Author
Owner

@4IceG commented on GitHub (Dec 8, 2024):

page 88:

obraz

<!-- gh-comment-id:2526403709 --> @4IceG commented on GitHub (Dec 8, 2024): page 88: ![obraz](https://github.com/user-attachments/assets/ca35d6d8-0ace-49a1-83b9-0e2c0a1446a8)
Author
Owner

@1alessandro1 commented on GitHub (Dec 9, 2024):

I might have found the issue. The conversion formula is

sinr = (1/5)*(value from AT)*10 - 20

This is what is reported in the documentation:

image

Page 107:
Quectel_RM5x0N_RM521F_Series_AT_Commands_2024_02_07.pdf

I've compared the values from the DIAG port with the values reported from the AT serial port

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,AB6A40C,324,3350,7,5,5,7E11,-105,-9,-75,13,13,140,-

This is what airscreen shows:
image

The formula would be: Real SINR = 13*0.2 * 10 - 20 = 6 dB

<!-- gh-comment-id:2526521603 --> @1alessandro1 commented on GitHub (Dec 9, 2024): I might have found the issue. The conversion formula is sinr = (1/5)*(value from AT)*10 - 20 This is what is reported in the documentation: ![image](https://github.com/user-attachments/assets/a64adbb9-5239-4b31-891c-3d8c7c37b1f5) Page 107: [Quectel_RM5x0N_RM521F_Series_AT_Commands_2024_02_07.pdf](https://github.com/user-attachments/files/18054519/Quectel_RM5x0N_RM521F_Series_AT_Commands_2024_02_07.pdf) I've compared the values from the DIAG port with the values reported from the AT serial port ``` +QENG: "servingcell","NOCONN","LTE","FDD",222,88,AB6A40C,324,3350,7,5,5,7E11,-105,-9,-75,13,13,140,- ``` This is what airscreen shows: ![image](https://github.com/user-attachments/assets/c0b9c59c-46db-4109-987f-a48551571bd3) The formula would be: Real SINR = 13*0.2 * 10 - 20 = 6 dB
Author
Owner

@1alessandro1 commented on GitHub (Dec 10, 2024):

Hello, any update on this?

<!-- gh-comment-id:2533052381 --> @1alessandro1 commented on GitHub (Dec 10, 2024): Hello, any update on this?
Author
Owner

@4IceG commented on GitHub (Dec 11, 2024):

I'm already lost, I don't know for which modem you are looking for an error. Because you show documentation for completely different modems.

<!-- gh-comment-id:2537138563 --> @4IceG commented on GitHub (Dec 11, 2024): I'm already lost, I don't know for which modem you are looking for an error. Because you show documentation for completely different modems.
Author
Owner

@1alessandro1 commented on GitHub (Dec 23, 2024):

Hello, the quectel documentation for the EP06-E reports that the second to least value from AT+QENG="servingcell".

I cross checked what values are reported from the RM521F-GL modem in LTE mode: here it's the fourth to least value.

image

My hypotesis is that the values reported follow the same pattern, and can be decoded with the same formula, written only in RM521F-GL manual afaik. For additional redundacy, these values are also compared in the same location with the data parsed from the DIAG port, using AirScreen software.

Let's choose a preferred band: B38. This band will be the one that we have to find SINR.
This is what the EP06E firmware (EP06ELAR04A22M4G) is reporting:

image

The same exact setup was repeated by swapping only the modem. Here is what the RM521F-GL is saying:

Screenshot 2024-12-23 195838

And looking at the code, your script is configured correctly for 2c7c0801:

Screenshot 2024-12-23 201842

Let's check what Qualcomm DIAG port is reporting (does not use AT commands):
The value we are expecting is 23×0.2×10 - 20 = 26 dB

Screenshot 2024-12-23 195938

Indeed your script is okay for rm521f, on the same bts, same cell, same frequency:

Screenshot 2024-12-23 201730

Conclusion: the ep06e is reporting 23 (that should be interpreted as 23x0.2x10 - 20 = 26dB ) not 23x0.2 - 20 = -15.4dB

This tests were made with a fixed passive LHGR pointed to tower

<!-- gh-comment-id:2560205152 --> @1alessandro1 commented on GitHub (Dec 23, 2024): Hello, the quectel documentation for the EP06-E reports that the second to least value from AT+QENG="servingcell". I cross checked what values are reported from the RM521F-GL modem in LTE mode: here it's the fourth to least value. ![image](https://github.com/user-attachments/assets/a7591dcc-46ad-4c90-9ddf-60627e3f3adc) My hypotesis is that the values reported follow the same pattern, and can be decoded with the same formula, written only in RM521F-GL manual afaik. For additional redundacy, these values are also compared in the same location with the data parsed from the DIAG port, using AirScreen software. Let's choose a preferred band: B38. This band will be the one that we have to find SINR. This is what the EP06E firmware (EP06ELAR04A22M4G) is reporting: ![image](https://github.com/user-attachments/assets/344d424d-fabc-4d7f-bf4d-0036cc312be7) The same exact setup was repeated by swapping only the modem. Here is what the RM521F-GL is saying: ![Screenshot 2024-12-23 195838](https://github.com/user-attachments/assets/432b1d5e-a8c7-4512-a801-3779a4f3cd31) And looking at the code, your script is configured correctly for 2c7c0801: ![Screenshot 2024-12-23 201842](https://github.com/user-attachments/assets/238f3826-8a33-4b67-8857-688d1210753c) Let's check what Qualcomm DIAG port is reporting (does not use AT commands): The value we are expecting is 23×0.2×10 - 20 = 26 dB ![Screenshot 2024-12-23 195938](https://github.com/user-attachments/assets/ac90685e-eb7b-493f-9cc2-fa16cca6e2b4) Indeed your script is okay for rm521f, on the same bts, same cell, same frequency: ![Screenshot 2024-12-23 201730](https://github.com/user-attachments/assets/8a8c9d58-c484-4b27-b058-98664618f8ec) Conclusion: the ep06e is reporting 23 (that should be interpreted as 23x0.2x10 - 20 = 26dB ) not 23x0.2 - 20 = -15.4dB This tests were made with a fixed passive LHGR pointed to tower
Author
Owner

@1alessandro1 commented on GitHub (Dec 29, 2024):

@4IceG any update on this? Did I clarify why the EP06 A22 firmware uses the same syntax as the newer 5G modems when replying to AT+QENG="servingcell" ?

<!-- gh-comment-id:2564782102 --> @1alessandro1 commented on GitHub (Dec 29, 2024): @4IceG any update on this? Did I clarify why the EP06 A22 firmware uses the same syntax as the newer 5G modems when replying to AT+QENG="servingcell" ?
Author
Owner

@1alessandro1 commented on GitHub (Jan 5, 2025):

I will attach the fixed 2c7c0306 file for EP06ELAR04A22M4G for anybody who has the 2023 firmware on this old modem from 2018 (maybe back then, they used 0-250 range, now even in front of the tower there is no way to get that far (to 250) even when I know DIAG port logging reports that value. Hope it helps somebody if it won't get merged in master.
2c7c0306.zip

<!-- gh-comment-id:2571461391 --> @1alessandro1 commented on GitHub (Jan 5, 2025): I will attach the fixed 2c7c0306 file for EP06ELAR04A22M4G for anybody who has the 2023 firmware on this old modem from 2018 (maybe back then, they used 0-250 range, now even in front of the tower there is no way to get that far (to 250) even when I know DIAG port logging reports that value. Hope it helps somebody if it won't get merged in master. [2c7c0306.zip](https://github.com/user-attachments/files/18308846/2c7c0306.zip)
Author
Owner

@1alessandro1 commented on GitHub (Feb 27, 2025):

@4IceG what happened? Are there still doubts after all the additional information I provided you about the SINR values that I expect to see (and I double checked with DIAG logs) and what is actually reported by your script?

<!-- gh-comment-id:2687302500 --> @1alessandro1 commented on GitHub (Feb 27, 2025): @4IceG what happened? Are there still doubts after all the additional information I provided you about the SINR values that I expect to see (and I double checked with DIAG logs) and what is actually reported by your script?
Author
Owner

@giorez commented on GitHub (Apr 24, 2025):

thanks @1alessandro1 I solved the problem of the missing SINR valaue from my EP06-E
@4IceG any chanche to submit this fix into the repo, so the manual replacemente is non needed? thanks

<!-- gh-comment-id:2827143656 --> @giorez commented on GitHub (Apr 24, 2025): thanks @1alessandro1 I solved the problem of the missing SINR valaue from my EP06-E @4IceG any chanche to submit this fix into the repo, so the manual replacemente is non needed? thanks
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-3ginfo-lite#85
No description provided.