[GH-ISSUE #3] Model unknown after firmware upgrade... #134

Closed
opened 2026-03-13 13:06:41 +03:00 by kerem · 13 comments
Owner

Originally created by @erdoukki on GitHub (Aug 3, 2021).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/3

Before upgrade :

Modem Information
Modem type: Quectel EP06
Revision / Firmware: EP06ELAR03A08M4G
Communication Port: /dev/ttyUSB2
Protocol: QMI

After firmware upgrade with Quectel QFirehose, the model is garbage :

Modem Information
Modem type: ision: EP06ELAR04A04M4G
Revision / Firmware: EP06ELAR04A04M4G
Communication Port: /dev/ttyUSB2
Protocol: QMI

How can I help to fix this ?

Originally created by @erdoukki on GitHub (Aug 3, 2021). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/3 Before upgrade : ``` Modem Information Modem type: Quectel EP06 Revision / Firmware: EP06ELAR03A08M4G Communication Port: /dev/ttyUSB2 Protocol: QMI ``` After firmware upgrade with Quectel QFirehose, the model is garbage : ``` Modem Information Modem type: ision: EP06ELAR04A04M4G Revision / Firmware: EP06ELAR04A04M4G Communication Port: /dev/ttyUSB2 Protocol: QMI ``` How can I help to fix this ?
kerem closed this issue 2026-03-13 13:06:46 +03:00
Author
Owner

@erdoukki commented on GitHub (Aug 3, 2021):

# /usr/share/3ginfo-lite/3ginfo.sh

{
"modem":"ision: EP06ELAR04A04M4G",
"mtemp":"",
"firmware":"EP06ELAR04A04M4G",
"cport":"/dev/ttyUSB2",
"protocol":"QMI",
"csq":"-",
"signal":"0",
"operator_name":"-",
"operator_mcc":"-",
"operator_mnc":"-",
"mode":"No Service /",
"registration":"0",
"lac_dec":"0",
"lac_hex":"0",
"cid_dec":"0",
"cid_hex":"0",
"rsrp":"",
"rsrq":"",
"rssi":"-",
"sinr":"",
"addon":[]
}
<!-- gh-comment-id:891987395 --> @erdoukki commented on GitHub (Aug 3, 2021): `# /usr/share/3ginfo-lite/3ginfo.sh ` ``` { "modem":"ision: EP06ELAR04A04M4G", "mtemp":"", "firmware":"EP06ELAR04A04M4G", "cport":"/dev/ttyUSB2", "protocol":"QMI", "csq":"-", "signal":"0", "operator_name":"-", "operator_mcc":"-", "operator_mnc":"-", "mode":"No Service /", "registration":"0", "lac_dec":"0", "lac_hex":"0", "cid_dec":"0", "cid_hex":"0", "rsrp":"", "rsrq":"", "rssi":"-", "sinr":"", "addon":[] } ```
Author
Owner

@erdoukki commented on GitHub (Aug 3, 2021):

fixed by modifying the file : 2c7c0306
# cat /usr/share/3ginfo-lite/3ginfo-addon/2c7c0306 | grep MODEL
MODEL=$(echo $DEVV | awk -F 'ati|Rev' '{print $1}'| xargs)

<!-- gh-comment-id:891996323 --> @erdoukki commented on GitHub (Aug 3, 2021): fixed by modifying the file : 2c7c0306 `# cat /usr/share/3ginfo-lite/3ginfo-addon/2c7c0306 | grep MODEL` `MODEL=$(echo $DEVV | awk -F 'ati|Rev' '{print $1}'| xargs)`
Author
Owner

@erdoukki commented on GitHub (Aug 3, 2021):

/usr/share/3ginfo-lite/3ginfo.sh

{
"modem":"Quectel EP06",
"mtemp":"",
"firmware":"EP06ELAR04A04M4G",
"cport":"/dev/ttyUSB2",
"protocol":"QMI",
"csq":"-",
"signal":"0",
"operator_name":"-",
"operator_mcc":"-",
"operator_mnc":"-",
"mode":"No Service /",
"registration":"0",
"lac_dec":"0",
"lac_hex":"0",
"cid_dec":"0",
"cid_hex":"0",
"rsrp":"",
"rsrq":"",
"rssi":"-",
"sinr":"",
"addon":[]
}
<!-- gh-comment-id:891996724 --> @erdoukki commented on GitHub (Aug 3, 2021): # /usr/share/3ginfo-lite/3ginfo.sh ``` { "modem":"Quectel EP06", "mtemp":"", "firmware":"EP06ELAR04A04M4G", "cport":"/dev/ttyUSB2", "protocol":"QMI", "csq":"-", "signal":"0", "operator_name":"-", "operator_mcc":"-", "operator_mnc":"-", "mode":"No Service /", "registration":"0", "lac_dec":"0", "lac_hex":"0", "cid_dec":"0", "cid_hex":"0", "rsrp":"", "rsrq":"", "rssi":"-", "sinr":"", "addon":[] } ```
Author
Owner

@4IceG commented on GitHub (Aug 3, 2021):

They warned me against uploading the firmware from the firehouse directory, I do not know what mode the modem enters then, but you can see that it does not work normally / correctly. It is best to post on the modem manufacturer's forum how to restore the modem operation.

<!-- gh-comment-id:892015075 --> @4IceG commented on GitHub (Aug 3, 2021): They warned me against uploading the firmware from the firehouse directory, I do not know what mode the modem enters then, but you can see that it does not work normally / correctly. It is best to post on the modem manufacturer's forum how to restore the modem operation.
Author
Owner

@erdoukki commented on GitHub (Aug 3, 2021):

For me there is no problem with the card itself...
# sms_tool -d /dev/ttyUSB2 at "ati"


Quectel
EP06
Revision: EP06ELAR04A04M4G

<!-- gh-comment-id:892038926 --> @erdoukki commented on GitHub (Aug 3, 2021): For me there is no problem with the card itself... `# sms_tool -d /dev/ttyUSB2 at "ati"` ``` Quectel EP06 Revision: EP06ELAR04A04M4G ```
Author
Owner

@erdoukki commented on GitHub (Aug 3, 2021):

The upgrade process work fine and finished without errors...
But the code testing the model may look strange, print $2 is not correct for me and it works fine with print $1

<!-- gh-comment-id:892039669 --> @erdoukki commented on GitHub (Aug 3, 2021): The upgrade process work fine and finished without errors... But the code testing the model may look strange, print $2 is not correct for me and it works fine with print $1
Author
Owner

@4IceG commented on GitHub (Aug 3, 2021):

If the modem works then OK, so other commands collecting data from the modem should work. Tomorrow I will check and correct the script from EP06-E to make it work well for the ATI command.

<!-- gh-comment-id:892050844 --> @4IceG commented on GitHub (Aug 3, 2021): If the modem works then OK, so other commands collecting data from the modem should work. Tomorrow I will check and correct the script from EP06-E to make it work well for the ATI command.
Author
Owner

@4IceG commented on GitHub (Aug 5, 2021):

For me there is no problem with the card itself...
# sms_tool -d /dev/ttyUSB2 at "ati"


Quectel
EP06
Revision: EP06ELAR04A04M4G

The correct output of the "ati" command for this modem is:

ati
Quectel
EP06
Revision: EP06ELAR01A02M4G

If we add this command output to the script

# Modem
# OF = $ (sms_tool -d $ DEVICE at "ati")
OF = "ati
Quectel
EP06
Revision: EP06ELAR01A02M4G

it is all read well, nothing needs to be edited or corrected.

<!-- gh-comment-id:893569453 --> @4IceG commented on GitHub (Aug 5, 2021): > > > For me there is no problem with the card itself... > `# sms_tool -d /dev/ttyUSB2 at "ati"` > > ``` > > Quectel > EP06 > Revision: EP06ELAR04A04M4G > ``` The correct output of the "ati" command for this modem is: ``` ati Quectel EP06 Revision: EP06ELAR01A02M4G ``` If we add this command output to the script ``` # Modem # OF = $ (sms_tool -d $ DEVICE at "ati") OF = "ati Quectel EP06 Revision: EP06ELAR01A02M4G ``` it is all read well, nothing needs to be edited or corrected.
Author
Owner

@erdoukki commented on GitHub (Aug 9, 2021):

This was a correct display with old firmware, the latest shown i differently, so to get the always working we may modify the file as this way :

# Modem
OF=$(sms_tool -d $DEVICE at "ati")
DEVV=$(echo $OF | tr -s "\n"  | xargs)
FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs)
MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs)

then :

root@ULTRA-5G:~# /usr/share/3ginfo-lite/3ginfo.sh 
{
"modem":"Quectel EP06",
"mtemp":"",
"firmware":"EP06ELAR04A04M4G",
"cport":"/dev/ttyUSB2",
"protocol":"MBIM",
"csq":"14",
"signal":"45",
"operator_name":"Free",
"operator_mcc":"208",
"operator_mnc":"15",
"mode":"LTE B7 (2600 MHz)",
"registration":"0",
"lac_dec":"0",
"lac_hex":"0",
"cid_dec":"0",
"cid_hex":"0",
"rsrp":"-113",
"rsrq":"-11",
"rssi":"-82",
"sinr":"13",
"addon":[{"RSRP":"-113 dBm"},{"RSRQ":"-11 dB"},{"RSSI":"-82 dBm"},{"SINR":"13 dB"}]
}

<!-- gh-comment-id:895351735 --> @erdoukki commented on GitHub (Aug 9, 2021): This was a correct display with old firmware, the latest shown i differently, so to get the always working we may modify the file as this way : ``` # Modem OF=$(sms_tool -d $DEVICE at "ati") DEVV=$(echo $OF | tr -s "\n" | xargs) FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs) MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs) ``` then : ``` root@ULTRA-5G:~# /usr/share/3ginfo-lite/3ginfo.sh { "modem":"Quectel EP06", "mtemp":"", "firmware":"EP06ELAR04A04M4G", "cport":"/dev/ttyUSB2", "protocol":"MBIM", "csq":"14", "signal":"45", "operator_name":"Free", "operator_mcc":"208", "operator_mnc":"15", "mode":"LTE B7 (2600 MHz)", "registration":"0", "lac_dec":"0", "lac_hex":"0", "cid_dec":"0", "cid_hex":"0", "rsrp":"-113", "rsrq":"-11", "rssi":"-82", "sinr":"13", "addon":[{"RSRP":"-113 dBm"},{"RSRQ":"-11 dB"},{"RSSI":"-82 dBm"},{"SINR":"13 dB"}] } ```
Author
Owner

@4IceG commented on GitHub (Aug 9, 2021):

@erdoukki Check if this code will work.

# Modem
OF=$(sms_tool -d $DEVICE at "ati")
DEVV=$(echo $OF | tr -s "\n"  | xargs)
FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs)
MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs)
if [ -z "$MODEL" ]
then
      MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs)
fi
<!-- gh-comment-id:895379225 --> @4IceG commented on GitHub (Aug 9, 2021): @erdoukki Check if this code will work. ``` # Modem OF=$(sms_tool -d $DEVICE at "ati") DEVV=$(echo $OF | tr -s "\n" | xargs) FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs) MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs) if [ -z "$MODEL" ] then MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs) fi ```
Author
Owner

@erdoukki commented on GitHub (Aug 11, 2021):

on the "upgraded" Quectel EP06 : okay

root@ULTRA-5G:~# export DEVICE=/dev/ttyUSB2
root@ULTRA-5G:~# # Modem
root@ULTRA-5G:~# OF=$(sms_tool -d $DEVICE at "ati")
root@ULTRA-5G:~# DEVV=$(echo $OF | tr -s "\n"  | xargs)
root@ULTRA-5G:~# FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs)
root@ULTRA-5G:~# MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs
)
root@ULTRA-5G:~# if [ -z "$MODEL" ]
> then
>       MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs)
> fi
root@ULTRA-5G:~# echo $MODEL
Quectel EP06
root@ULTRA-5G:~# sms_tool -d $DEVICE at "ati"

Quectel
EP06
Revision: EP06ELAR04A04M4G

I have a second Quectel EP06, untouched (not upgraded), and will test also on it...

<!-- gh-comment-id:896759344 --> @erdoukki commented on GitHub (Aug 11, 2021): on the "upgraded" Quectel EP06 : okay ``` root@ULTRA-5G:~# export DEVICE=/dev/ttyUSB2 root@ULTRA-5G:~# # Modem root@ULTRA-5G:~# OF=$(sms_tool -d $DEVICE at "ati") root@ULTRA-5G:~# DEVV=$(echo $OF | tr -s "\n" | xargs) root@ULTRA-5G:~# FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs) root@ULTRA-5G:~# MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs ) root@ULTRA-5G:~# if [ -z "$MODEL" ] > then > MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs) > fi root@ULTRA-5G:~# echo $MODEL Quectel EP06 ``` ``` root@ULTRA-5G:~# sms_tool -d $DEVICE at "ati" Quectel EP06 Revision: EP06ELAR04A04M4G ``` I have a second Quectel EP06, untouched (not upgraded), and will test also on it...
Author
Owner

@erdoukki commented on GitHub (Aug 11, 2021):

I have a second Quectel EP06, untouched (not upgraded), and will test also on it...

root@ultra:~# export DEVICE=/dev/ttyUSB2
root@ultra:~# # Modem
root@ultra:~# OF=$(sms_tool -d $DEVICE at "ati")
root@ultra:~# DEVV=$(echo $OF | tr -s "\n"  | xargs)
root@ultra:~# FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs)
root@ultra:~# MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs)
root@ultra:~# if [ -z "$MODEL" ]
> then
>       MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs)
> fi
root@ultra:~# echo $MODEL
 EP06el
root@ultra:~# sms_tool -d $DEVICE at "ati"
ati
Quectel
EP06
Revision: EP06ELAR03A08M4G

<!-- gh-comment-id:896767443 --> @erdoukki commented on GitHub (Aug 11, 2021): > I have a second Quectel EP06, untouched (not upgraded), and will test also on it... ``` root@ultra:~# export DEVICE=/dev/ttyUSB2 root@ultra:~# # Modem root@ultra:~# OF=$(sms_tool -d $DEVICE at "ati") root@ultra:~# DEVV=$(echo $OF | tr -s "\n" | xargs) root@ultra:~# FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs) root@ultra:~# MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs) root@ultra:~# if [ -z "$MODEL" ] > then > MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs) > fi root@ultra:~# echo $MODEL EP06el ``` ``` root@ultra:~# sms_tool -d $DEVICE at "ati" ati Quectel EP06 Revision: EP06ELAR03A08M4G ```
Author
Owner

@erdoukki commented on GitHub (Aug 11, 2021):

look correct with :

sms_tool -d $DEVICE at "ati"| tr -d "\r"|xargs

give

Quectel EP06 Revision: EP06ELAR04A04M4G

and

ati Quectel EP06 Revision: EP06ELAR03A08M4G
# Modem
OF=$(sms_tool -d $DEVICE at "ati"| tr -d "\r"|xargs)
DEVV=$(echo $OF | tr -s "\n"  | xargs)
FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs)
MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs)
if [ -z "$MODEL" ]
then
      MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs)
fi

both give :

root@ultra:~# echo $MODEL
Quectel EP06
root@ULTRA-5G:~# echo $MODEL
Quectel EP06
<!-- gh-comment-id:896779246 --> @erdoukki commented on GitHub (Aug 11, 2021): look correct with : ``` sms_tool -d $DEVICE at "ati"| tr -d "\r"|xargs ``` give ``` Quectel EP06 Revision: EP06ELAR04A04M4G ``` and ``` ati Quectel EP06 Revision: EP06ELAR03A08M4G ``` ``` # Modem OF=$(sms_tool -d $DEVICE at "ati"| tr -d "\r"|xargs) DEVV=$(echo $OF | tr -s "\n" | xargs) FW=$(echo $DEVV | awk -F 'Revision:' '{print $2}'| xargs) MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $1}'| xargs) if [ -z "$MODEL" ] then MODEL=$(echo $DEVV | awk -F 'ati|Revision:' '{print $2}'| xargs) fi ``` both give : ``` root@ultra:~# echo $MODEL Quectel EP06 ``` ``` root@ULTRA-5G:~# echo $MODEL Quectel EP06 ```
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#134
No description provided.