mirror of
https://github.com/4IceG/luci-app-sms-tool-js.git
synced 2026-04-26 03:15:59 +03:00
[GH-ISSUE #17] USSD issue #10
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-sms-tool-js#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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

@4IceG commented on GitHub (Apr 16, 2024):
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
@4IceG 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 recvcommand, 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?
@kartman521 commented on GitHub (Apr 16, 2024):
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)
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@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.
@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
@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 gotNo 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
modemmanagere.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?
@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.