Failed to create CAIF socket for AT

2010-12-20 Thread krishna k

Hello Sjur,

Thanks for your reply.

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.

I appended below rule to 97-ofono-rules in /etc/udev.

ATTRS{idVendor}=="major-number", ATTRS{idProduct}=="minor-number", 
ENV{OFONO_DRIVER}="ste"

After appending the above line in rules file, my modem insertion and removal is 
getting recognized by oFono core daemon and displaying debug statements like 
below..

plugins/udev.c:remove_modem() xx.

When i list my modem information with "list-modem" script. I got output as 
below..

[ /ste0 ]
Interfaces =
Powered = 0
Features =
Online = 0

If i am connecting nokia Phone in PC Suite mode it is working fine. I am 
getting below information if i list nokia phone info using list-modem script

[ /isigen1 ]
Features = sim 
Powered = 1
Interfaces = org.ofono.Phonebook org.ofono.SimManager 
org.ofono.VoiceCallManager 
Online = 0
Model = Nokia E71
Manufacturer = Nokia
Serial = 
Revision = xxx
09-02-10
RM-346
(c) Nokia
[ org.ofono.Phonebook ]
[ org.ofono.SimManager ]
FixedDialing = 0
SubscriberNumbers = 
BarredDialing = 0
CardIdentifier = 123456566
LockedPins = 
PinRequired = none
SubscriberIdentity = 123445566
Present = 1
[ org.ofono.VoiceCallManager ]
EmergencyNumbers = 119 118 999 110 08 000 911 112 


I found add_isi() (every modem vendor have their own in udev.c) function is 
getting get invoked, when i am dealing with nokia phone (PC Suite Mode). Is it 
necessary to have "add_ste()" function to work with CAIF protocol.

Please suggest.

Please suggest me how to start open contribution for oFono Testing.

Thank You.

Regards,
Kris  ___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Failed to create CAIF socket for AT

2010-12-27 Thread krishna k




Hi Sjur,

Thanks a ton for your support.

By tweaking add_modem() function in udev.c lead to success of modem enumration 
properly and we are able to perform all basic operations like dirty 
call making, sms-sending, sms-receive, etc... 

We are using oFono-0.36 with Linux-2.6.36-rc1 kernel.

Really thanks for your time.

Regards,
--Kris
  ___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Re: Failed to create CAIF socket for AT

2010-12-21 Thread Sjur Brændeland
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" representing
the CAIF Link Layer. You need to set this interface in state "up"
(e.g. sudo ifconfig cf 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