Hi Kris,

> I am trying to understand CAIF protocol implementation in OFono.  I am
> getting "Failed to create CAIF socket for AT" when i am trying to enable my
> modem.

Maybe the easies way to check if you have CAIF running is to try out
unit/test-caif.
It will try to open a CAIF Socket to the modem and send an AT command.


You need to do the following to get the CAIF serial interface up:

1) Run a user space program to configure your serial cable and insert
the CAIF line discipline.
(You'll find a really old sample of ldiscd.c here:
http://patchwork.ozlabs.org/patch/34179/ perhaps
you could get this to work? Please ignore all the other stuff in this
patch, it is completely obsolete).
Please note that you have to run as root in order to install the ldisc.

2) If this is succesfull you will get a new network interface called
"cf<ttyname>" representing
the CAIF Link Layer. You need to set this interface in state "up"
(e.g. sudo ifconfig cf<ttyname> up).

You should now be able to connect CAIF sockets, and run unit/test-caif.

If Marcel accepts the patch I send for plugin/stemgr.c then this is
the best way to start
the STE modem. I will post a python-script simulating the Modem Init
Daemon when the stemgr is accepted.

Regards,
Sjur
_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to