All of lore.kernel.org
 help / color / mirror / Atom feed
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-07 10:22 krishna k
  2010-05-07 10:31 ` Dario
  0 siblings, 1 reply; 19+ messages in thread
From: krishna k @ 2010-05-07 10:22 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]


Hi All,

Any body who is working ofono-phonesim suggest how to start ofono-phonesim simulator?

I installed ofono-phonesim from synaptic package manager in ubuntu lucid (10.04) and i am trying start the simulator with the following ...

1. I modified modem.conf file with following content...
==================================
[phonesim]
Driver=phonesim
Address=127.0.0.1
Port=12345
==================================

2. phonesim -p 12345  -gui ~/data/moblin.xml (i created data file in user home directory and placed moblin.xml file inside data)

But it is not displaying anything on the screen. But if i check with "ps ax | grep phonesim" I am getting below o/p.

 5822 pts/1    S+     0:00 phonesim -p 12345 -gui /home/kandukis/data/moblin.xml
 5842 pts/2    S+     0:00 grep --color=auto phonesim

What is the problem and why simulator is not visible?

Please correct me if i am doing wrong...

Thanks and Regards,
Krishna.

 		 	   		  
_________________________________________________________________
South Cinema This Decade
http://entertainment.in.msn.com/southcinemathisdecade/

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1556 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* FW: How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-07 13:06 krishna k
  2010-05-10  1:37 ` Yoon, Youngsik
  0 siblings, 1 reply; 19+ messages in thread
From: krishna k @ 2010-05-07 13:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]


Hi Andrew,

Thank you very much. I am not using real modem. I am using E71. If i want to use 
Phonesim emulator with gui (With out connecting E71). Can you please suggest
how to proceed? Am I need to connect with Real Modem? If it is the case can
you please suggest what are the modem types supported by ofono-phonesim emulator.


Thanks and Regards,
Krishna K Kandula.

You're talking about two things here: using a real modem, and using
phonesim.  Phonesim emulates a modem, so you don't need the E71.  Or
you can use the E71 (like you did) and then you don't need phonesim
and no gui.
 
Best regards,
Andrew
  		 	   		  
_________________________________________________________________
The amazing world in sharp snaps
http://news.in.msn.com/gallery/archive.aspx

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1004 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-10  5:23 krishna k
  2010-05-10  5:33 ` Zhang, Zhenhua
  0 siblings, 1 reply; 19+ messages in thread
From: krishna k @ 2010-05-10  5:23 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]


Hi Yoon,

Thank very much for your guidance. I followed the same procedure ...

You already did following procedure.
1. ofono-phonesim -p 12345 -gui ~/data/moblin.xml
2. sudo ofonod -nd 

And then, you need to type following command to power up modem(phonesim).
3. dbus-send --system --print-reply --dest=org.ofono / phonesim0 org.ofono.Modem.SetProperty string:Powered variant:boolean:true

I got below response....

Must use org.mydomain.Interface.Method notation, no dot in "phonesim0"

Please see the ps ax | grep ofono*
-------------------------------------------------------------------------------------------------------------------------
 1609 pts/0    S+     0:00 ofono-phonesim -p 12345 -gui /home/kandukis/data/moblin.xml
 1654 pts/2    S+     0:00 ofonod -nd
------------------------------------------------------------------------------------------------------------------------

Can you please suggest  how to get-rid from this problem.

regards,
Krishna K Kandula 		 	   		  
_________________________________________________________________
The amazing world in sharp snaps
http://news.in.msn.com/gallery/archive.aspx

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1463 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-10  6:42 krishna k
  2010-05-10  6:55 ` Yoon, Youngsik
  2010-05-10  6:55 ` Zhang, Zhenhua
  0 siblings, 2 replies; 19+ messages in thread
From: krishna k @ 2010-05-10  6:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1954 bytes --]





	
	
	
	


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

 		 	   		  
_________________________________________________________________
Bollywood This Decade
http://entertainment.in.msn.com/bollywoodthisdecade/

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 6864 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-10  8:13 krishna k
  2010-05-10  8:27 ` Zhang, Zhenhua
  0 siblings, 1 reply; 19+ messages in thread
From: krishna k @ 2010-05-10  8:13 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3044 bytes --]


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

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

./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@ofono.org [mailto:ofono-bounces at ofono.org] On Behalf Of krishna k
Sent: Monday, May 10, 2010 3:43 PM
To: ofono@ofono.org
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
 		 	   		  
_________________________________________________________________
Bollywood This Decade
http://entertainment.in.msn.com/bollywoodthisdecade/

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 3679 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-10  8:51 krishna k
  0 siblings, 0 replies; 19+ messages in thread
From: krishna k @ 2010-05-10  8:51 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 5478 bytes --]


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/

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 6263 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-10 13:09 krishna k
  0 siblings, 0 replies; 19+ messages in thread
From: krishna k @ 2010-05-10 13:09 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 5895 bytes --]


Hi,

I installed phonesim1.1 source. I compiled and installed.

I 
started phonesim as you suggested "./phonesim -p gui default.xml"
 (now i got default.xml file in /phonesim/src)
I started ofono using "ofonod
 -n -d"
I executed "./list-modems".  It is not displaying 
any thing. I am just getting prompt. For your reference i am posting 
ofonod -n -d o/p at the end of the mail.

======================================================================
Please note this is additional information..

I found one file named 
blacklist-modem.conf in /etc/modprobe.d path. Please find the 
content of that file.

# Uncomment these entries in order to 
blacklist unwanted modem drivers
# blacklist snd-atiixp-modem
# 
blacklist snd-intel8x0m
# blacklist snd-via82xx-modem

Is it 
creating any trouble for me to start the phonesim? Any idea on this?
========================================================================

modem.conf
 file is presented in 2 locations.

1. /etc/ofono
2. 
/usr/share/alsa/pcm

After changing the modem.conf am I need to 
restart the system?

Thanks in advance.

Note:- oFono version is 0.9 and phonesim version is 1.1

sudo ofono -n -d 
(output)
==================================================================================
ofonod[5458]:
 oFono version 0.9
ofonod[5458]: src/plugin.c:__ofono_plugin_init() 
ofonod[5458]:
 plugins/hfp.c:hfp_init() 
ofonod[5458]: 
src/modem.c:ofono_modem_driver_register() driver: 0x66de80, name: hfp
ofonod[5458]:
 src/modem.c:ofono_modem_driver_register() driver: 0x66de00, name: 
novatel
ofonod[5458]: src/modem.c:ofono_modem_driver_register() 
driver: 0x66dd80, name: huawei
ofonod[5458]: 
src/modem.c:ofono_modem_driver_register() driver: 0x66dd00, name: hso
ofonod[5458]:
 src/modem.c:ofono_modem_driver_register() driver: 0x66dc60, name: mbm
ofonod[5458]:
 src/modem.c:ofono_modem_driver_register() driver: 0x66dbe0, name: 
calypso
ofonod[5458]: src/modem.c:ofono_modem_driver_register() 
driver: 0x66db60, name: g1
ofonod[5458]: 
src/modem.c:ofono_modem_driver_register() driver: 0x66dae0, name: atgen
ofonod[5458]:
 src/modem.c:ofono_modem_driver_register() driver: 0x66da60, name: 
phonesim
ofonod[5458]: Reading of /etc/ofono/modem.conf failed: Key 
file contains line 'pcm.!phoneline {' which is not a key-value pair, 
group, or comment
ofonod[5458]: 
src/gprs.c:ofono_gprs_context_driver_register() driver: 0x66d9a0, name: 
mbm
ofonod[5458]: src/voicecall.c:ofono_voicecall_driver_register() 
driver: 0x66d8c0, name: hfpmodem
ofonod[5458]: 
src/voicecall.c:ofono_voicecall_driver_register() driver: 0x66d7e0, 
name: calypsomodem
ofonod[5458]: 
src/voicecall.c:ofono_voicecall_driver_register() driver: 0x66d4e0, 
name: atmodem
ofonod[5458]: 
src/modem.c:ofono_devinfo_driver_register() driver: 0x66d660, name: 
atmodem
ofonod[5458]: 
src/call-barring.c:ofono_call_barring_driver_register() driver: 
0x66d5a0, name: atmodem
ofonod[5458]: 
src/call-forwarding.c:ofono_call_forwarding_driver_register() driver: 
0x66d280, name: atmodem
ofonod[5458]: 
src/call-meter.c:ofono_call_meter_driver_register() driver: 0x66d2e0, 
name: atmodem
ofonod[5458]: 
src/call-settings.c:ofono_call_settings_driver_register() driver: 
0x66d100, name: atmodem
ofonod[5458]: 
src/phonebook.c:ofono_phonebook_driver_register() driver: 0x66d5e0, 
name: atmodem
ofonod[5458]: src/ssn.c:ofono_ssn_driver_register() 
driver: 0x66d630, name: atmodem
ofonod[5458]: 
src/ussd.c:ofono_ussd_driver_register() driver: 0x66d4a0, name: atmodem
ofonod[5458]:
 src/sms.c:ofono_sms_driver_register() driver: 0x66d1a0, name: atmodem
ofonod[5458]:
 src/sim.c:ofono_sim_driver_register() driver: 0x66d400, name: atmodem
ofonod[5458]:
 src/network.c:ofono_netreg_driver_register() driver: 0x66d380, name: 
atmodem
ofonod[5458]: src/cbs.c:ofono_cbs_driver_register() driver: 
0x66d240, name: atmodem
ofonod[5458]: 
src/call-volume.c:ofono_call_volume_driver_register() driver: 0x66d6a0, 
name: atmodem
ofonod[5458]: src/gprs.c:ofono_gprs_driver_register() 
driver: 0x66d700, name: atmodem
ofonod[5458]: 
src/gprs.c:ofono_gprs_context_driver_register() driver: 0x66d760, name: 
atmodem
ofonod[5458]: src/modem.c:ofono_devinfo_driver_register() 
driver: 0x66cb00, name: isimodem
ofonod[5458]: 
src/phonebook.c:ofono_phonebook_driver_register() driver: 0x66cae0, 
name: isimodem
ofonod[5458]: 
src/network.c:ofono_netreg_driver_register() driver: 0x66cb40, name: 
isimodem
ofonod[5458]: 
src/voicecall.c:ofono_voicecall_driver_register() driver: 0x66cba0, 
name: isimodem
ofonod[5458]: src/sms.c:ofono_sms_driver_register() 
driver: 0x66cc40, name: isimodem
ofonod[5458]: 
src/cbs.c:ofono_cbs_driver_register() driver: 0x66cc80, name: isimodem
ofonod[5458]:
 src/sim.c:ofono_sim_driver_register() driver: 0x66ccc0, name: isimodem
ofonod[5458]:
 src/ssn.c:ofono_ssn_driver_register() driver: 0x66cd50, name: isimodem
ofonod[5458]:
 src/ussd.c:ofono_ussd_driver_register() driver: 0x66cd80, name: 
isimodem
ofonod[5458]: 
src/call-forwarding.c:ofono_call_forwarding_driver_register() driver: 
0x66cdc0, name: isimodem
ofonod[5458]: 
src/call-settings.c:ofono_call_settings_driver_register() driver: 
0x66ce00, name: isimodem
ofonod[5458]: 
src/call-barring.c:ofono_call_barring_driver_register() driver: 
0x66ce60, name: isimodem
ofonod[5458]: 
src/call-meter.c:ofono_call_meter_driver_register() driver: 0x66cea0, 
name: isimodem
ofonod[5458]: 
src/modem.c:ofono_modem_driver_register() driver: 0x66caa0, name: 
isimodem
==================================================================================
Regards,
Krishna
 K Kandula.
 		 	   		  
_________________________________________________________________
South Cinema This Decade
http://entertainment.in.msn.com/southcinemathisdecade/

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 6164 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-10 13:31 krishna k
  2010-05-10 14:53 ` Matthias =?unknown-8bit?q?G=C3=BCnther?=
  0 siblings, 1 reply; 19+ messages in thread
From: krishna k @ 2010-05-10 13:31 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3229 bytes --]


Hi,

After starting ofonod with command "sudo ofonod -n -d", I am getting below messages

Reading of /etc/ofono/modem.conf failed: Key file contains line 'pcm.!phoneline {' which is not a key-value pair, group, or comment

Does it mean that it is not able to recognize the modem presented in modem.conf file?

if i try to execute ./list-modems then it is listing any thing. Please suggest me.

modem.conf file contents
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

#
# "raw" modem - phoneline
#

pcm.!phoneline {
    @args [ CARD DEV ]
    @args.CARD {
        type string
        default {
            @func getenv
            vars [
                ALSA_MODEM_CARD
                ALSA_PCM_CARD
                ALSA_CARD
            ]
            default {
                @func refer
                name defaults.pcm.modem.card
            }
        }
    }
    @args.DEV {
        type integer
        default {
            @func igetenv
            vars [
                ALSA_MODEM_DEVICE
            ]
            default {
                @func refer
                name defaults.pcm.modem.device
            }
        }
    }
    @func refer
    name {
        @func concat
        strings [
            "cards."
            {
                @func card_driver
                card $CARD
            }
            ".pcm.modem." $DEV ":CARD=" $CARD
        ]
    }
    hint.show off
}

#
#  "autohooked" modem
#

pcm.!modem {
    @args [ CARD DEV ]
    @args.CARD {
        type string
        default {
            @func getenv
            vars [
                ALSA_MODEM_CARD
                ALSA_PCM_CARD
                ALSA_CARD
            ]
            default {
                @func refer
                name defaults.pcm.modem.card
            }
        }
    }
    @args.DEV {
        type integer
        default {
            @func igetenv
            vars [
                ALSA_MODEM_DEVICE
            ]
            default {
                @func refer
                name defaults.pcm.modem.device
            }
        }
    }
    type hooks
    slave {
        pcm {
            @func concat
            strings [
                "cards.pcm.phoneline:CARD=" $CARD ",DEV=" $DEV
            ]
        }
    }
    hooks.0 {
        type ctl_elems
        hook_args [
        {
            name "Off-hook Switch"
            preserve true
            value "on"
            lock false
            optional true
        }
        ]
    }
    hint.show off
}

#
#Sample for using phone simulator
#
[phonesim]
Driver=phonesim
Address=127.0.0.1
port=12345

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks and Regards,
Krishna K Kandula
 		 	   		  
_________________________________________________________________
The amazing world in sharp snaps
http://news.in.msn.com/gallery/archive.aspx

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 7210 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2010-05-11  5:12 krishna k
  0 siblings, 0 replies; 19+ messages in thread
From: krishna k @ 2010-05-11  5:12 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]


Hi Matthias Günther,

     Lots of thanks. My problem got solved. I was dealing with wrong Modem.conf file. Thanks to each and every individual who supported me to resolve the problem. Thanks for sparing your time.
    
     Special Thanks to Zhenhua.zang from intel for his support.
   
     Thanks in advance.

Regards,
Krishna K Kandula.


 		 	   		  
_________________________________________________________________
Catch the latest in the world of fashion
http://lifestyle.in.msn.com/

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* How to start ofono-phonesim in ubuntu-10.04 -reg
@ 2012-01-19  5:06 Pranay
  2012-01-19  6:03 ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
  2012-01-19  6:13 ` Denis Kenzior
  0 siblings, 2 replies; 19+ messages in thread
From: Pranay @ 2012-01-19  5:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3966 bytes --]

Hi,

I am getting problem while starting ofono-phonesim-1.16 in ubuntu-10.04.
I installed ofono-phonesim from synaptic package manager in ubuntu lucid
(10.04) and i am trying start the simulator with the following ...

1. I modified modem.conf file with following content...
==================================
[phonesim]
Driver=phonesim
Address=127.0.0.1
Port=12345
==================================
Copied modem.conf file to /ofono/ folder

2. phonesim -p 12345  -gui  /ofono/phonesim/src/default.xml

But it is not displaying anything on the screen.
I also tried all changes suggested by other members of forum, but getting same problem.

During power up the phonesim following error is coming (Unable to hop onto D-Bus):

root(a)pranay-desktop:/home/pranay/ofono/phonesim-1.16#<mailto:root@pranay-desktop:/home/pranay/ofono/phonesim-1.16#> sudo ofonod -nd *

ofonod[19304]: oFono version 1.2

ofonod[19304]: Unable to hop onto D-Bus: Name already in use

ofonod[19304]: Exit


Test to enable the ofono-phonesim modem support also fails:

root(a)pranay-desktop:/home/pranay/ofono/phonesim-1.16#<mailto:root@pranay-desktop:/home/pranay/ofono/phonesim-1.16#> /home/pranay/ofono/ofono-1.2/test/enable-modem

Traceback (most recent call last):

  File "/home/pranay/ofono/ofono-1.2/test/enable-modem", line 13, in <module>

    modems = manager.GetModems()

  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 "GetModems" with signature "" on interface "org.ofono.Manager" doesn't exist


Test to online the ofono-phonesim modem support also fails:

root(a)pranay-desktop:/home/pranay/ofono/phonesim-1.16#<mailto:root@pranay-desktop:/home/pranay/ofono/phonesim-1.16#> /home/pranay/ofono/ofono-1.2/test/online-modem

Traceback (most recent call last):

  File "/home/pranay/ofono/ofono-1.2/test/online-modem", line 12, in <module>

    modems = manager.GetModems()

  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 "GetModems" with signature "" on interface "org.ofono.Manager" doesn't exist

Can anyone please help me out if already resolved this problem?
Thanks in Advance.

Thanks & Regards,
Pranay Singh
+91-9650855977




________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 12082 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-01-19  9:21 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 10:22 How to start ofono-phonesim in ubuntu-10.04 -reg krishna k
2010-05-07 10:31 ` Dario
  -- strict thread matches above, loose matches on Subject: below --
2010-05-07 13:06 FW: " krishna k
2010-05-10  1:37 ` Yoon, Youngsik
2010-05-10  5:23 krishna k
2010-05-10  5:33 ` Zhang, Zhenhua
2010-05-10  6:42 krishna k
2010-05-10  6:55 ` Yoon, Youngsik
2010-05-10  6:55 ` Zhang, Zhenhua
2010-05-10  8:13 krishna k
2010-05-10  8:27 ` Zhang, Zhenhua
2010-05-10  8:51 krishna k
2010-05-10 13:09 krishna k
2010-05-10 13:31 krishna k
2010-05-10 14:53 ` Matthias =?unknown-8bit?q?G=C3=BCnther?=
2010-05-11  5:12 krishna k
2012-01-19  5:06 Pranay
2012-01-19  6:03 ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2012-01-19  9:21   ` Pranay
2012-01-19  6:13 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.