How to start ofono-phonesim in ubuntu-10.04 -reg

krishna k id_kishore at live.in
Mon May 10 01:51:13 PDT 2010


Hi Zhenhua,
    
   I installed ofono-phonesim from Synaptic Package Manager (Ubuntu Lucid have this facility). I guess it is with 
bootscrap-configure only. So that I am able to find ofono directory in /etc (/etc/ofono). I placed my modem.conf file 
inside /etc/ofono.  

After that also it is giving the same problem... I tried to list the modem with the following command...


./ofono/test/list-modems 

===============================================================================================================================
Traceback (most recent call last):
  File "./ofono/test/list-modems", line 7, in <module>
    manager = dbus.Interface(bus.get_object('org.ofono', '/'),
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files

===============================================================================================================================

regards,
Krishna K Kandula.

Hi Krishna,

	From: ofono-bounces at ofono.org [mailto:ofono-bounces at ofono.org] On Behalf Of krishna k
	Sent: Monday, May 10, 2010 4:13 PM
	To: ofono at ofono.org
	Subject: How to start ofono-phonesim in ubuntu-10.04 -reg
	
	
	Hi Yoon, 
	
	I placed modem.conf file under /etc/ofono, and i tried with ./test/list-modems script. Still it is not showing any 
	thing on command line.  I tried to enable the phonesim0 modem with following command and i am getting the same o/p

[Zhenhua] Do you build oFono with bootscrap-configure? If does, you will have '--prefix=/usr --sysconfdir=/etc ...' configuration. So oFono reads configuration from /etc/ofono. Without that, you might put modem.conf under /usr/local/etc/ofono. Btw, you could raise your question on our IRC room #ofono at irc.freenode.net as well.
	
	======================================================================================================================
	
	./enable-modem /phonesim0
	
	******************etc.....
	
	dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "SetProperty" 
	with signature "sb" on interface "org.ofono.Modem" doesn't exist.
	
	======================================================================================================================
	
	The same error as below. It is not able to detect the phonesim0?
	
	regards,
	Krishna K Kandula.
	
	Hi Krishna,
	
	You should put your modem.conf file under /etc/ofono/.
	
	Thanks,
	Yoon
	
	From: ofono-bounces at ofono.org <http://lists.ofono.org/listinfo/ofono>  [mailto:ofono-bounces at ofono.org <http://lists.ofono.org/listinfo/ofono> ] On Behalf Of krishna k
	Sent: Monday, May 10, 2010 3:43 PM
	To: ofono at ofono.org <http://lists.ofono.org/listinfo/ofono> 
	Subject: How to start ofono-phonesim in ubuntu-10.04 -reg
	
	
	Hi Zhenhua,
	
	Thanks for your reply..
	
	I added the following code in /usr/share/alsa/pcm/modem.conf file...
	
	1.
	#
	#Sample for using phone simulator
	#
	[phonesim]
	Driver=phonesim
	Address=127.0.0.1
	port=12345
	
	-----------------------------------------------------------------------------------------------------------------------------------------
	I tried to ./list_modems. I got nothing on command prompt. According to my knowledge i should get the available modems (atleast phonesim0)
	I tried to enable  the modem using the following command..
	
	./enable-modem /phonesim0
	
	I got 
	output as follows...
	
	----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	Connecting
	 modem /phonesim0...
	
	Traceback 
	(most recent call last):
	
	  File 
	"./enable-modem", line 20, in <module>
	
	    
	modem.SetProperty("Powered", dbus.Boolean(1))
	
	  File 
	"/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
	
	    return
	 self._proxy_method(*args, **keywords)
	
	  File 
	"/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
	
	    
	**keywords)
	
	  File 
	"/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in 
	call_blocking
	
	    
	message, timeout)
	
	dbus.exceptions.DBusException:
	 org.freedesktop.DBus.Error.UnknownMethod: Method "SetProperty" with 
	signature "sb" on interface "org.ofono.Modem" doesn't exist
	
	--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	Have a nice time.
	
	Regards,
	Krishna K Kandula
 		 	   		  
_________________________________________________________________
South Cinema This Decade
http://entertainment.in.msn.com/southcinemathisdecade/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20100510/cddeb71c/attachment-0001.html>


More information about the ofono mailing list