From: Daniel Wagner <wagi@monom.org>
To: ofono@ofono.org
Subject: Re: [PATCH v6 03/16] dundee: Add test scripts
Date: Tue, 24 Apr 2012 14:33:11 +0200 [thread overview]
Message-ID: <4F969D87.6070700@monom.org> (raw)
In-Reply-To: <2CF57A644018A745B8FE029C7223E16E0FD1CDB4@SHSMSX102.ccr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2869 bytes --]
Hi Wu,
On 23.04.2012 12:13, Zheng, Wu wrote:
> Hi Daniel,
>
> I try to test your patches.
Thanks for giving them a try.
>> -----Original Message-----
>> From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf
>> Of Daniel Wagner
>> Sent: Tuesday, April 03, 2012 12:20 AM
>> To: ofono(a)ofono.org
>> Cc: Daniel Wagner
>> Subject: [PATCH v6 03/16] dundee: Add test scripts
>>
>> From: Daniel Wagner<daniel.wagner@bmw-carit.de>
>>
>> ---
>> test/dundee-connect | 20 +++++++++
>> test/dundee-disconnect | 20 +++++++++
>> test/monitor-dundee | 109
>> ++++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 149 insertions(+)
>> create mode 100755 test/dundee-connect
>> create mode 100755 test/dundee-disconnect create mode 100755
>> test/monitor-dundee
>>
>> diff --git a/test/dundee-connect b/test/dundee-connect new file mode 100755
>> index 0000000..6cbc629
>> --- /dev/null
>> +++ b/test/dundee-connect
>> @@ -0,0 +1,20 @@
>> +#!/usr/bin/python
>> +
>> +import dbus
>> +import sys
>> +
>> +bus = dbus.SystemBus()
>> +
>> +if len(sys.argv) == 2:
>> + path = sys.argv[1]
>> +else:
>> + manager = dbus.Interface(bus.get_object('org.ofono.dundee', '/'),
>> + 'org.ofono.dundee.Manager')
>> + devices = manager.GetDevices()
>> + path = devices[0][0]
>> +
>> +print "Connect device %s..." % path
>> +device = dbus.Interface(bus.get_object('org.ofono.dundee', path),
>> + 'org.ofono.dundee.Device')
>> +
>> +device.Connect()
>
> The dbus method connect() does not exist on org.ofono.dundee.Device, it cannot be found in device.c and doc/dundee-api.txt.
> Why?
>
> Best regards
>
>> diff --git a/test/dundee-disconnect b/test/dundee-disconnect new file mode
>> 100755 index 0000000..e67d8cd
>> --- /dev/null
>> +++ b/test/dundee-disconnect
>> @@ -0,0 +1,20 @@
>> +#!/usr/bin/python
>> +
>> +import dbus
>> +import sys
>> +
>> +bus = dbus.SystemBus()
>> +
>> +if len(sys.argv) == 2:
>> + path = sys.argv[1]
>> +else:
>> + manager = dbus.Interface(bus.get_object('org.ofono.dundee', '/'),
>> + 'org.ofono.dundee.Manager')
>> + devices = manager.GetDevices()
>> + path = devices[0][0]
>> +
>> +print "Disonnect device %s..." % path
>> +device = dbus.Interface(bus.get_object('org.ofono.dundee', path),
>> + 'org.ofono.dundee.Device')
>> +
>> +device.Disconnect()
Change this line to
device.SetProperty("Active", True)
That should do the trick.
> The dbus method Disconnect() does not exist on org.ofono.dundee.Device, it cannot be found in device.c and doc/dundee-api.txt.
> Why?
The documentation and the script are not in sync with the
implementation. I'll fix that.
Documentation change:
Methods
SetProperty()
Test script change:
device.SetProperty("Active", True)
cheers,
daniel
next prev parent reply other threads:[~2012-04-24 12:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-02 16:19 [PATCH v6 00/16] Add DUN support Daniel Wagner
2012-04-02 16:19 ` [PATCH v6 01/16] bluetooth: Add Serial interface definition Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 02/16] dundee: Add documentation Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 03/16] dundee: Add test scripts Daniel Wagner
2012-04-23 10:13 ` Zheng, Wu
2012-04-24 12:33 ` Daniel Wagner [this message]
2012-04-02 16:20 ` [PATCH v6 04/16] dundee: Add skeleton implementation Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 05/16] dundee: Add D-Bus error messages Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 06/16] dundee: Add D-Bus configuration file Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 07/16] dundee: Add systemd " Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 08/16] dundee: Add Manager interface Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 09/16] dundee: Add skeleton implementation for device Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 10/16] dundee: Manager append devices Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 11/16] dundee: Add callback helpers Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 12/16] dundee: Add device un/register Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 13/16] dundee: Add driver helper functions Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 14/16] dundee: Add device D-Bus interface Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 15/16] dundee: Add PPP handling code to device Daniel Wagner
2012-04-02 16:20 ` [PATCH v6 16/16] dundee: Add Bluetooth DUN driver Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F969D87.6070700@monom.org \
--to=wagi@monom.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.