UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. babbu
    B
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 3
    • Groups 0

    babbu

    @babbu

    0
    Reputation
    4
    Profile views
    3
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    babbu Unfollow Follow

    Latest posts made by babbu

    • RE: sms service is not working

      @Giiba bin/python3

      from gi.repository import GLib

      import dbus
      import dbus.mainloop.glib

      def incoming_message(message, details, path, interface):
      print("%s" % (message.encode('utf-8')))

      for key in details:
              val = details[key]
              print("    %s = %s" % (key, val))
      

      if name == 'main':
      dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

      bus = dbus.SystemBus()
      
      bus.add_signal_receiver(incoming_message,
                                      bus_name="org.ofono",
                                      signal_name = "ImmediateMessage",
                                              path_keyword="path",
                                              interface_keyword="interface")
      
      bus.add_signal_receiver(incoming_message,
                                      bus_name="org.ofono",
                                      signal_name = "IncomingMessage",
                                              path_keyword="path",
                                              interface_keyword="interface")
      
      mainloop = GLib.MainLoop()
      mainloop.run()
      
      posted in Support
      B
      babbu
    • RE: sms service is not working

      bin/python3

      from gi.repository import GLib

      import dbus
      import dbus.mainloop.glib

      def incoming_message(message, details, path, interface):
      print("%s" % (message.encode('utf-8')))

          for key in details:
                  val = details[key]
                  print("    %s = %s" % (key, val))
      

      if name == 'main':
      dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

          bus = dbus.SystemBus()
      
          bus.add_signal_receiver(incoming_message,
                                          bus_name="org.ofono",
                                          signal_name = "ImmediateMessage",
                                                  path_keyword="path",
                                                  interface_keyword="interface")
      
          bus.add_signal_receiver(incoming_message,
                                          bus_name="org.ofono",
                                          signal_name = "IncomingMessage",
                                                  path_keyword="path",
                                                  interface_keyword="interface")
      
          mainloop = GLib.MainLoop()
          mainloop.run()
      
      posted in Support
      B
      babbu
    • sms service is not working

      incoming sms not working though outgoing sms are working ... is there any fix?

      posted in Support
      B
      babbu