UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    USSD

    Scheduled Pinned Locked Moved App Development
    13 Posts 4 Posters 861 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • lduboeufL Offline
        lduboeuf
        last edited by

        don't know much about USSD, just saw a fix that have been done few months ago. Do you have logs ( dialer-app or dbus ) ?

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          Markatrafik @lduboeuf
          last edited by

          @lduboeuf where can I find logs of dialer-app in the system? maybe I need to enable debugging somehow, and there is nothing useful in /var/log

          lduboeufL 1 Reply Last reply Reply Quote 0
          • M Offline
            Markatrafik @lduboeuf
            last edited by

            @lduboeuf ohh... sorry, I forgot about the dbus ...

            method call time=1617460602.192946 sender=:1.222 -> destination=:1.24 serial=346 path=/org/freedesktop/Telepathy/Connection/ofono/ofono/connection_da4fb6106a7762892d7be1da4d4277f2;interface=com.canonical.Telephony.USSD; member=Initiate
            string "*100#"
            error time=1617460602.194065 sender=:1.24 -> destination=:1.222
            error_name=org.freedesktop.Telepathy.Error.NotImplemented reply_serial=346
            string "Not implemented"
            method return time=1617460602.194462 sender=:1.24 -> destination=:1.222 serial=1160 reply_serial=346
            method call time=1617460602.196537 sender=:1.222 -> destination=com.lomiri.hfd serial=347
            path=/com/lomiri/hfd; interface=org.freedesktop.DBus.Introspectable; member=Introspect
            error time=1617460602.196990 sender=org.freedesktop.DBus -> destination=:1.222
            error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=347
            string "The name com.lomiri.hfd was not provided by any .service files"
            method call time=1617460602.197761 sender=:1.222 -> destination=org.freedesktop.DBus
            serial=348 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
            string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',
            member='NameOwnerChanged',arg0='com.lomiri.hfd'"
            method call time=1617460602.198329 sender=:1.222 -> destination=org.freedesktop.DBus
            serial=349 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
            string "com.lomiri.hfd"
            error time=1617460602.198459 sender=org.freedesktop.DBus -> destination=:1.222
            error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=349
            string "Could not get owner of name 'com.lomiri.hfd': no such name"
            method call time=1617460602.200812 sender=:1.222 -> destination=org.freedesktop.DBus
            serial=350 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
            string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',
            member='NameOwnerChanged',arg0='com.lomiri.hfd'"
            signal time=1617460602.359120 sender=:1.0 -> destination=(null destination)
            serial=39679 path=/com/ubuntu/Upstart; interface=com.ubuntu.Upstart0_6; member=EventEmitted

            1 Reply Last reply Reply Quote 0
            • lduboeufL Offline
              lduboeuf @Markatrafik
              last edited by lduboeuf

              @markatrafik you can see logs from the logviewer app, or in .cache/upstart/

              Don't see much from dbus
              Edit: we can see an error in dbus log. But i personally don't know where to look at Maybe someone know better ?

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                Markatrafik @lduboeuf
                last edited by

                @lduboeuf no information in the ~/.cache/upstart

                Connection :1.224 (uid=32011 pid=20883 comm="dbus-monitor ") became a monitor.
                void ToneGenerator::playDTMFTone(uint) 10
                void ToneGenerator::playDTMFTone(uint) 1
                void ToneGenerator::playDTMFTone(uint) 0
                void ToneGenerator::playDTMFTone(uint) 0
                void ToneGenerator::playDTMFTone(uint) 11
                Monitoring connection :1.224 closed.

                But utility dbus-monitor say enough... šŸ˜ž

                The USSD functions is not implemented yet

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Markatrafik
                  last edited by Markatrafik

                  Maybe I don't understand something, but I can clearly see python scripts to onofo, for example:

                  phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/initiate-ussd
                  Usage: /usr/share/ofono/scripts/initiate-ussd [modem] <ussd-string>
                  

                  also, the QML componets menu scripts for dailer-app:

                  phablet@ubuntu-phablet:~$ cd /usr/share/dialer-app/Dialogs/
                  phablet@ubuntu-phablet:/usr/share/dialer-app/Dialogs$ ls -al
                  total 44
                  drwxr-xr-x  2 root root 4096 oct 15 23:47 .
                  drwxr-xr-x 12 root root 4096 oct 15 23:47 ..
                  -rw-r--r--  1 root root 1631 oct 13 22:56 DisableFlightModeDialog.qml
                  -rw-r--r--  1 root root 1866 oct 13 22:56 FlightModeProgressDialog.qml
                  -rw-r--r--  1 root root 3347 oct 13 22:56 NoDefaultSIMCardDialog.qml
                  -rw-r--r--  1 root root  994 oct 13 22:56 NotificationDialog.qml
                  -rw-r--r--  1 root root 2380 oct 13 22:56 SetDefaultSIMCardDialog.qml
                  -rw-r--r--  1 root root 2529 oct 13 22:56 SimLockedDialog.qml
                  -rw-r--r--  1 root root 1012 oct 13 22:56 UssdErrorDialog.qml
                  -rw-r--r--  1 root root 1088 oct 13 22:56 UssdProgressDialog.qml
                  -rw-r--r--  1 root root  991 oct 13 22:56 UssdResponseDialog.qml
                  

                  What is missing from the system so that I can work with my ISP's USSD dialog menu? May be from terminal using python scripts?

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kugiigi
                    last edited by

                    USSD works fine on most of my phones (Xperia X, Nexus 5, MX4, Bq E5) so it's most likely an issue or missing implementation on your specific device model.

                    M KenedaK 2 Replies Last reply Reply Quote 0
                    • M Offline
                      Markatrafik @kugiigi
                      last edited by

                      @kugiigi said in [USSD] (/post/48876):

                      USSD works fine on most of my phones (Xperia X, Nexus 5, MX4, Bq E5) so it's most likely an issue or missing implementation on your specific device model.

                      Yes, I have no luck with this equipment, the echo is such that the other side hears itself after a second, like a parrot, calls can not hear - you can miss an important call, and so the USSD at the end...
                      I hope this can all be fixed, or is it easier to order another machine?

                      lduboeufL 1 Reply Last reply Reply Quote 0
                      • KenedaK Offline
                        Keneda @kugiigi
                        last edited by Keneda

                        @kugiigi
                        Works on MX4 too.

                        I didn't even know about USSD, just decovered this with this thread ^^
                        Tested #123# from orange.

                        2015-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
                        2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
                        2024-***** : FPOS Fairphone 5 waiting UT for freedom šŸ˜‰
                        šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

                        1 Reply Last reply Reply Quote 0
                        • lduboeufL Offline
                          lduboeuf @Markatrafik
                          last edited by

                          @markatrafik humm already heard the echo issue for some devices, here ?: https://forums.ubports.com/topic/5968/caller-echo?_=1617469387193

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            Markatrafik @lduboeuf
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote -1
                            • M Offline
                              Markatrafik
                              last edited by Markatrafik

                              I tried to use the onofo python scripts directly. For a one-step USSD request from the shell everything looks good, the data is output to the console:

                              ~$ /usr/share/ofono/scripts/initiate-ussd /ril_1 "*100#"
                              State: idle
                              USSD:  Current: 235.79, Limit: 300
                              

                              But if a dialog is required, the answer appears on the screen, asks you to enter the number of USSD menu item, and press the button. If I click the button, the window closes and the script crashes with the following errors:

                              ~$ /usr/share/ofono/scripts/initiate-ussd /ril_1 "*222#"
                              State: idle
                              Traceback (most recent call last):
                                File "/usr/share/ofono/scripts/initiate-ussd", line 35, in <module>
                                  result = ussd.Initiate(ussdstring, timeout=100)
                                File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
                                  **keywords)
                                File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
                                  message, timeout)
                              dbus.exceptions.DBusException: org.ofono.Error.Failed: Operation failed
                              

                              So there is USSD processing in the system. Only for some reason it does not work. For example, there is no possibility to "call" a number beginning with an asterisk "*".

                              Is there any way to get this program code to work completely?

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post