[GH-ISSUE #17] USSD issue #10

Open
opened 2026-03-04 12:10:53 +03:00 by kerem · 8 comments
Owner

Originally created by @kartman521 on GitHub (Apr 15, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-sms-tool-js/issues/17

Hello! There is a problem with sending USSD commands via luci-app-sms-tool-js. When I send a USSD command from the terminal (sms_tool -d /dev/ttyUSB1 ussd "*100#") I receive a response from the operator. When I try to send any command through LUCI, nothing simply happens. If you enable the checkbox in the "Sending USSD code in plain text" settings, an error is sent and returned; if the checkbox is unchecked, nothing happens at all. In the settings, the port is set to the same as when sending from the console (ttyUSB1)

Tested in Firefox 124 and Chrome 123.

Originally created by @kartman521 on GitHub (Apr 15, 2024). Original GitHub issue: https://github.com/4IceG/luci-app-sms-tool-js/issues/17 Hello! There is a problem with sending USSD commands via luci-app-sms-tool-js. When I send a USSD command from the terminal (sms_tool -d /dev/ttyUSB1 ussd "*100#") I receive a response from the operator. When I try to send any command through LUCI, nothing simply happens. If you enable the checkbox in the "Sending USSD code in plain text" settings, an error is sent and returned; if the checkbox is unchecked, nothing happens at all. In the settings, the port is set to the same as when sending from the console (ttyUSB1) Tested in Firefox 124 and Chrome 123.
Author
Owner

@kartman521 commented on GitHub (Apr 15, 2024):

Also, after many attempts to send a USSD command, SMS messages in LUCI stopped being displayed completely. At the same time, everything is accessible through the terminal
Screenshot 2024-04-16 at 1 57 34 AM

Screenshot 2024-04-16 at 2 01 00 AM
<!-- gh-comment-id:2057885358 --> @kartman521 commented on GitHub (Apr 15, 2024): Also, after many attempts to send a USSD command, SMS messages in LUCI stopped being displayed completely. At the same time, everything is accessible through the terminal <img width="1115" alt="Screenshot 2024-04-16 at 1 57 34 AM" src="https://github.com/4IceG/luci-app-sms-tool-js/assets/103675197/bec8d6cd-df3e-469c-af8c-99b47bcbcca5"> <img width="648" alt="Screenshot 2024-04-16 at 2 01 00 AM" src="https://github.com/4IceG/luci-app-sms-tool-js/assets/103675197/2279a79f-7e57-4a04-9160-99088540d709">
Author
Owner

@4IceG commented on GitHub (Apr 16, 2024):

Hello! There is a problem with sending USSD commands via luci-app-sms-tool-js. When I send a USSD command from the terminal (sms_tool -d /dev/ttyUSB1 ussd "*100#") I receive a response from the operator. When I try to send any command through LUCI, nothing simply happens. If you enable the checkbox in the "Sending USSD code in plain text" settings, an error is sent and returned; if the checkbox is unchecked, nothing happens at all. In the settings, the port is set to the same as when sending from the console (ttyUSB1)

Tested in Firefox 124 and Chrome 123.

Hi,
@kartman521 Replace the sendussd.js (\www\luci-static\resources\view\modem) file and check if it will be OK after replacing it. Remember to clear your browser cache before testing.

sendussd.zip

<!-- gh-comment-id:2059531155 --> @4IceG commented on GitHub (Apr 16, 2024): > Hello! There is a problem with sending USSD commands via luci-app-sms-tool-js. When I send a USSD command from the terminal (sms_tool -d /dev/ttyUSB1 ussd "*100#") I receive a response from the operator. When I try to send any command through LUCI, nothing simply happens. If you enable the checkbox in the "Sending USSD code in plain text" settings, an error is sent and returned; if the checkbox is unchecked, nothing happens at all. In the settings, the port is set to the same as when sending from the console (ttyUSB1) > > Tested in Firefox 124 and Chrome 123. Hi, @kartman521 Replace the sendussd.js (\www\luci-static\resources\view\modem) file and check if it will be OK after replacing it. Remember to clear your browser cache before testing. [sendussd.zip](https://github.com/4IceG/luci-app-sms-tool-js/files/15000135/sendussd.zip)
Author
Owner

@4IceG commented on GitHub (Apr 16, 2024):

Also, after many attempts to send a USSD command, SMS messages in LUCI stopped being displayed completely. At the same time, everything is accessible through the terminal

If there are no text messages, there is a bigger problem because I can't see your messages, you would have to show me the result of the sms_tool -d /dev/ttyUSB1 -j recv command, it is possible that some message destroys the json layout and therefore does not show anything.

Do you have split message merging enabled? Have you checked without and with this option?

<!-- gh-comment-id:2059545983 --> @4IceG commented on GitHub (Apr 16, 2024): > Also, after many attempts to send a USSD command, SMS messages in LUCI stopped being displayed completely. At the same time, everything is accessible through the terminal If there are no text messages, there is a bigger problem because I can't see your messages, you would have to show me the result of the `sms_tool -d /dev/ttyUSB1 -j recv` command, it is possible that some message destroys the json layout and therefore does not show anything. Do you have split message merging enabled? Have you checked without and with this option?
Author
Owner

@kartman521 commented on GitHub (Apr 16, 2024):

If there are no text messages, there is a bigger problem because I can't see your messages, you would have to show me the result of the sms_tool -d /dev/ttyUSB1 -j recv command, it is possible that some message destroys the json layout and therefore does not show anything.

Hello! Yesterday I cleared the modem memory and disabled SMS merging, after which they began to be displayed. Message merging was enabled at the time of the crash. I'll attach a screenshot of yesterday's command execution (when there was a display problem). I will also write the text from the SMS that led to the breakdown. They are in Russian, perhaps this is due to the Cyrillic alphabet (SMS "На номере 7999хххх услуга "Доступ без настроек" отключена. Cпасибо, что Вы с нами. МТС"). Also, sometimes SMS messages come in Georgian, I don’t know how such text is encoded)

322640713-2279a79f-7e57-4a04-9160-99088540d709

Replace the sendussd.js (\www\luci-static\resources\view\modem) file and check if it will be OK after replacing it. Remember to clear your browser cache before testing.

Unfortunately it didn’t help, it breaks the SMS sending page completely)

SyntaxError Unexpected token 'if' in http://10.0.0.1/luci-static/resources/view/modem/sendussd.js?v=git-24.073.29889-cd7e519:? at http://10.0.0.1/luci-static/resources/luci.js?v=git-24.073.29889-cd7e519:179:29

<!-- gh-comment-id:2060080747 --> @kartman521 commented on GitHub (Apr 16, 2024): > If there are no text messages, there is a bigger problem because I can't see your messages, you would have to show me the result of the `sms_tool -d /dev/ttyUSB1 -j recv` command, it is possible that some message destroys the json layout and therefore does not show anything. Hello! Yesterday I cleared the modem memory and disabled SMS merging, after which they began to be displayed. Message merging was enabled at the time of the crash. I'll attach a screenshot of yesterday's command execution (when there was a display problem). I will also write the text from the SMS that led to the breakdown. They are in Russian, perhaps this is due to the Cyrillic alphabet (SMS "На номере 7999хххх услуга "Доступ без настроек" отключена. Cпасибо, что Вы с нами. МТС"). Also, sometimes SMS messages come in Georgian, I don’t know how such text is encoded) <img width="648" alt="322640713-2279a79f-7e57-4a04-9160-99088540d709" src="https://github.com/4IceG/luci-app-sms-tool-js/assets/103675197/22e62ab3-9a0f-4a37-b586-143f7308e430"> > Replace the sendussd.js (\www\luci-static\resources\view\modem) file and check if it will be OK after replacing it. Remember to clear your browser cache before testing. Unfortunately it didn’t help, it breaks the SMS sending page completely) `SyntaxError Unexpected token 'if' in http://10.0.0.1/luci-static/resources/view/modem/sendussd.js?v=git-24.073.29889-cd7e519:? at http://10.0.0.1/luci-static/resources/luci.js?v=git-24.073.29889-cd7e519:179:29`
Author
Owner

@4IceG commented on GitHub (Apr 17, 2024):

Later I will send new/fixed files for testing.

Unfortunately, I don't know how individual languages ​​are encoded, so users must remember that the sms-tool may work variously/unpredictably.

We have already a case where the language itself was displayed correctly except for one symbol that the operator decided to add to the name of the message sender. Therefore, sometimes it is worth saving such a message because maybe we will be able to prepare an sms-tool for it later.

<!-- gh-comment-id:2060339927 --> @4IceG commented on GitHub (Apr 17, 2024): Later I will send new/fixed files for testing. Unfortunately, I don't know how individual languages ​​are encoded, so users must remember that the sms-tool may work variously/unpredictably. We have already a case where the language itself was displayed correctly except for one symbol that the operator decided to add to the name of the message sender. Therefore, sometimes it is worth saving such a message because maybe we will be able to prepare an sms-tool for it later.
Author
Owner

@4IceG commented on GitHub (Apr 17, 2024):

Hi @kartman521
Ok, USSD codes should work.

Replace the sendussd.js (\www\luci-static\resources\view\modem) file and check if it will be OK after replacing it.
sendussd.zip

<!-- gh-comment-id:2061742181 --> @4IceG commented on GitHub (Apr 17, 2024): Hi @kartman521 Ok, USSD codes should work. Replace the sendussd.js (\www\luci-static\resources\view\modem) file and check if it will be OK after replacing it. [sendussd.zip](https://github.com/4IceG/luci-app-sms-tool-js/files/15014643/sendussd.zip)
Author
Owner

@fildunsky commented on GitHub (Sep 16, 2025):

Hello Rafal @4IceG I have issues with USSD on T99W175 (I have two similar modems and two OpenWrt routers with it), 05c6:90d5, MBIM. 3ginfo-lite works fine with it, I also can recieve and send sms but when I am trying to request USSD I got No response from modem. - same via luci or via SSH using smstool. I am sure ttyUSB port is correct since 3ginfo-lite, modemband and luci-app-smstool-js for sms works with it.

If I do same thing via modemmanager e.g. mmcli -m 0 --3gpp-ussd-initiate="*100#" it works fine.
Do you think I can send some debug data to you to check if it's possible to fix that?

<!-- gh-comment-id:3296308465 --> @fildunsky commented on GitHub (Sep 16, 2025): Hello Rafal @4IceG I have issues with USSD on `T99W175` (I have two similar modems and two OpenWrt routers with it), 05c6:90d5, MBIM. 3ginfo-lite works fine with it, I also can recieve and send sms but when I am trying to request USSD I got `No response from modem.` - same via luci or via SSH using smstool. I am sure ttyUSB port is correct since 3ginfo-lite, modemband and luci-app-smstool-js for sms works with it. If I do same thing via `modemmanager` e.g. `mmcli -m 0 --3gpp-ussd-initiate="*100#"` it works fine. Do you think I can send some debug data to you to check if it's possible to fix that?
Author
Owner

@4IceG commented on GitHub (Sep 16, 2025):

Hi @fildunsky ,
Try sending at command AT+CUSD=1,”*100#”,15 with another program (picocom, socat) that handles at commands. Sending USSD works, but it depends on modem, at the moment I don't know why.

I don't know if this was due to changes in delays in the protocols or if there is another reason.

I have the same message on my 5G modems.

<!-- gh-comment-id:3296566659 --> @4IceG commented on GitHub (Sep 16, 2025): Hi @fildunsky , Try sending at command AT+CUSD=1,”*100#”,15 with another program (picocom, socat) that handles at commands. Sending USSD works, but it depends on modem, at the moment I don't know why. I don't know if this was due to changes in delays in the protocols or if there is another reason. I have the same message on my 5G modems.
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-sms-tool-js#10
No description provided.