Beta support: MMS on chatty/mmsd on Modem Manager - help/testing wanted!
#35
(01-05-2021, 11:51 AM)Lousy Fisherman Wrote:
(01-05-2021, 11:02 AM)kop316 Wrote: So it seems that in order for an mmsd plugin to talk to modem manager, all of the dbus interfaces from within that plugin have to be rewritten to target dbus-2.0 vs dbus 1.0. I made a "wip branch" with the hopes of updating the dbus interfaces from within simple.c to dbus-2.0:

https://source.puri.sm/kop316/mmsd/-/tree/wip

If there is anyone with experience in dbus, I would really appreciate help from them!
I've been hacking on DBus on the PPhone for a month or 2 (or 100 it seems) now. What do you need?
I'm using python and shell

LF

You are amazing!

Here is the original plugin code: https://source.puri.sm/kop316/mmsd/-/blo...s/simple.c

And the WIP code: https://source.puri.sm/kop316/mmsd/-/blo...s/simple.c

All I have done so far is comment out the old code and add in the dbus2.0 libraries at the top. However, everything that is commented needs to be changed to support dbus-2.0 instead of dbus-1.0.

I am working from this code as a reference: https://gitlab.gnome.org/GNOME/glib/-/blob/master/gio/tests/gdbus-example-server.c

Right now I cannot get the reference code to compile as a stand alone, so I am working on that so I can understand how it is run.

EDIT: I am finally able to compile the example-server with
Code:
gcc -Wall -o gdbus-example-server gdbus-example-server.c $(pkg-config --cflags --libs glib-2.0 gio-2.0)
I am also able to port all of the example server onto mmsd and get it to run, but it requires manual tweaking. the loader requires gio-2.0 (and I am not familiar enough with automake to see how to add it, but I suppose that is lower on the to do list rather than getting it to run). The plugin will eventually also require mm-glib too (that way the mmsd plugin can talk to modem manager).

I added those guts to simple.c in the "wip" branch, but to get it to compile and run, you must manually add "-lgio-2.0 -lglib-2.0 -lgobject-2.0" to LDFLAGS in the makefile.
  Reply


Messages In This Thread
RE: Experimental support MMS on chatty - help/testing wanted! - by kop316 - 01-05-2021, 12:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 2,550 10-18-2023, 08:37 AM
Last Post: luppivega
  A/B testing or Unit testing gulshan212 0 987 08-29-2023, 03:36 AM
Last Post: gulshan212
  Article: NuttX RTOS for PinePhone: 4G LTE Modem lupyuen 2 1,601 04-10-2023, 10:19 PM
Last Post: lupyuen
  changing from bullseye to bookworm to install mmsd-tng jyoung 8 3,034 04-09-2023, 06:08 PM
Last Post: zetabeta
Sad Modem is always visible/connected but stops working after a while dante404 6 3,180 11-08-2022, 09:12 AM
Last Post: dante404
  Downsides of the open-source modem firmware? alpineduck 4 2,684 10-25-2022, 05:28 PM
Last Post: Zebulon Walton
  Pinephone: OpenGL support? orbital 2 2,243 08-25-2022, 04:09 PM
Last Post: vortex
  Latest firmware for PinePhone modem! Subsentient 104 130,731 07-20-2022, 05:32 AM
Last Post: zetabeta
  Which PP OS currently has the best podcast support? kujo_marble 3 2,095 07-14-2022, 07:09 AM
Last Post: tophneal
  Help wanted: location of calls and chatty data files dukla2000 3 4,707 06-13-2022, 02:01 PM
Last Post: israel

Forum Jump:


Users browsing this thread: 3 Guest(s)