Question about ofono and a chat app
#1
Hey guys, I'm not sure where to post this so I thought I'd start here.

Long story short, I'm wondering if anyone can make any suggestions on how to interact with ofono using C. I see some notes here for python using D-Bus and I'm wondering if I should also use d-bus in C or if there's a more low level api or something????? I should look at?


Long story long, I've always wanted to learn C and I've been on and off learning it for quite awhile. I've never had a good project to work on to keep me interested and so I've never stuck with it for very long. My goal here is to write a simple CLI chat app in C for the PinePhone. I know there are lots of ways I can do this and I'm sure python is the best tool for this but I need a good reason to learn C and I feel like this is a good start.


Thanks!
-FutureBucket
#2
For a simple CLI chat app you don't need ofono. I would suggest to use standard network interface or some http client aka curl.
#3
If you want to interact with ofono you have to use dbus

If you want to write a chat application that uses SMS for learning C you can just skip ofono and talk to the modem directly over the serial port. not something that's production ready but great for learning.
#4
(01-10-2020, 05:38 PM)MartijnBraam Wrote: If you want to interact with ofono you have to use dbus

If you want to write a chat application that uses SMS for learning C you can just skip ofono and talk to the modem directly over the serial port. not something that's production ready but great for learning.

Ah, I see, This is what I am looking for. Thank you!!  I had the wrong idea but at least now I have my starting point. I believe I can look at ofono code too so I have sort of a cheat sheet.

Thanks!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic question: KDE apps on GNOME and vice versa jojuma 4 1,236 06-15-2023, 01:42 PM
Last Post: jojuma
  Dedicated Chat and Phone. Chief 2 1,575 07-07-2022, 03:14 PM
Last Post: Chief
  I am considering a pinephone but have a question first flatulent_piney 11 7,473 01-04-2022, 08:56 AM
Last Post: ryo
  Problem with incoming calls (w/o ModemManager/Ofono) jlucas 10 7,567 08-09-2021, 05:38 PM
Last Post: mouffa
  Suddenly no chat incoming Nutmeg 3 2,215 06-28-2021, 10:38 AM
Last Post: Nutmeg
  PinePhone Pin/password question dgdimick 3 4,035 03-28-2021, 06:32 PM
Last Post: dgdimick
Question Order limit question psm321 3 2,871 03-24-2021, 07:59 PM
Last Post: Zebulon Walton
  Pine phone setup question Csanderson0313 3 3,364 11-29-2020, 05:34 AM
Last Post: firefox-58
  IMEI related question ryo 4 5,271 10-20-2020, 08:36 PM
Last Post: ryo
  New to PinePhone - one basic question Mike X 2 4,550 07-16-2020, 12:43 AM
Last Post: rocket2nfinity

Forum Jump:


Users browsing this thread: 1 Guest(s)