4IceG / luci-app-3ginfo-lite

Graphic visualization of the mPCI-E / M.2 and USB 3G / LTE / LTE-A / 5G modem connection status. (LuCI JS) | OpenWrt >= 21.02
90 stars 35 forks source link

add support to SimCom SIM7906 lte module #61

Closed aivavia closed 4 months ago

aivavia commented 4 months ago

Hello there, mr Rafal. I beg you add full support of sim7906 lte module (VID:1e0e) PID can be 9000,9001 (QMI) or 9003 (MBIM) , because the signal meters contains only CSQ. here are the response of AT commands, that shows full statistic of LTE signal quality:

AT+CPSI?
+CPSI: LTE,Online,250-02,0x0EF8,22060,58,EUTRAN-BAND3,1725,3,3,-108,-889,-614,19

OK
AT+CMGRMI=4
+CMGRMI: Main_Info,4,1,1,0,2,52709,0,2,11

+CMGRMI: Serving_Cell,1725,250,02,3832,2,22060,3,3,3,19,58,-107,-890,-625,0

+CMGRMI: CA_Scell,0,0,0,0,0,0,0,0,0,0,0,0

+CMGRMI: LTE_Intra,1,1725,58,1

+CMGRMI: LTE_Intra_Cell1,58,-107,-890,-625,0

+CMGRMI: LTE_Inter,0,Freq1,0,0,0,0,0,Freq2,0,0,0,0,0

+CMGRMI: GSM_Info,0,Freq_Group1,0,0,0,0,0,Freq_Group2,0,0,0,0,0

+CMGRMI: WCDMA_Info,0,Freq1,0,0,0,0,0,Freq2,0,0,0,0,0

+CMGRMI: CDMA1x_Info,0,Freq1,0,0,0,Freq2,0,0,0

+CMGRMI: CDMAprpd_Info,0,Freq1,0,0,0,Freq2,0,0,0

+CMGRMI: CDrx_Cfg,1,2,80,8,40,21,1,20,1

+CMGRMI: Cqi_Cfg,1,1,4,0,1,1,14,58,0,0,1,161,0,0,0,0

+CMGRMI: Ant_Cfg,4,0x000000000000003F,0,0

+CMGRMI: Idle_Drx_Cfg,640,2,135

OK
4IceG commented 4 months ago

Hi @aivavia

Check if this version luci-app-3ginfo-lite_1.0.65-20240302_all.zip of the package shows more data.

aivavia commented 4 months ago

Sorry to say, but nope. Nothing of needed info is displayed. Only CSQ. No RSRP, RSSI, SINR meters at all :( Снимок экрана 2024-03-03 094824

4IceG commented 4 months ago

OK, I added all modem variants to the package. Now we need to see why the script is not reading the data correctly.

@aivavia Show result of the command sh -x /usr/share/3ginfo-lite/3ginfo.sh

aivavia commented 4 months ago

Here you are, please. two different cellular operators here.

3ginfo_bee.txt

3ginfo.txt

4IceG commented 4 months ago

Ok thanks,

@aivavia Check if this version luci-app-3ginfo-lite_1.0.65-20240304_all.zip of package shows more data.

aivavia commented 4 months ago

oh no, smth is totally broken now error appears at random position, but mostly here: Error: Bad control character in string literal in JSON at position 873 (line 48 column 10) Error: Bad control character in string literal in JSON at position 875 (line 48 column 11) Error: Bad control character in string literal in JSON at position 874 (line 48 column 11) here is the screenshot Снимок экрана 2024-03-05 094709

4IceG commented 4 months ago

Ok, we are looking again.

@aivavia Show result of the command sh -x /usr/share/3ginfo-lite/3ginfo.sh

aivavia commented 4 months ago

3ginfo_new.txt here you are

4IceG commented 4 months ago

I hope it will be OK now.

luci-app-3ginfo-lite_1.0.65-20240305_all.zip

aivavia commented 4 months ago

You are the BEST! all meters are working now flawessly! Снимок экрана 2024-03-06 085935