Return-Path: Message-ID: From: Robert Rawlins To: Date: Thu, 19 Apr 2007 17:04:16 +0000 MIME-Version: 1.0 Subject: Re: [Bluez-users] Obex Push Channel Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1847908156==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1847908156== Content-Type: multipart/alternative; boundary="_35f838a9-7bfd-4bf4-935b-b153311ecd1b_" --_35f838a9-7bfd-4bf4-935b-b153311ecd1b_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Guys, =20 I've been toying with this today and I'm still not making any real progress= , In the mean time i tried to give the XML version a go as to be honest thi= s is likely to be of more use to me anyway, But it doesn't appear to find t= he XML function in the adapter object so i get the following error when try= ing to run it. =20 File "./sdp.py", line 14, in ? result2 =3D adapter.GetRemoteServiceRec= ordAsXML('00:17:B0:A0:E7:09', result[0]) File "/var/lib/python-support/pyt= hon2.4/dbus/proxies.py", line 169, in __call__ reply_message =3D self._c= onnection.send_message_with_reply_and_block(message, timeout)dbus.DBusExcep= tion: org.bluez.Error.UnknownMethod: Method "GetRemoteServiceRecordAsXML" w= ith signature "su" on interface "org.bluez.Adapter" doesn't exist The code I'm using looks like this. =20 #!/usr/bin/python import dbus bus =3D dbus.SystemBus() obj =3D bus.get_object('org.bluez', '/org/bluez') obj =3D bus.get_object('org.bluez', '/org/bluez/hci0') adapter =3D dbus.Interface(obj, 'org.bluez.Adapter') # Search For Obex Push Protocol print('Start Scan...') result =3D adapter.GetRemoteServiceHandles('00:17:B0:A0:E7:09', 'opp') result2 =3D adapter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09', result= [0]) print result print('Done Scanning.') =20 Now as you can see from the code and the signature in the exception thrown = by dbus I'm passing in the right types of arguments in the form of a string= address and a unit32 handle for the obex push record but it doesn't appear= to come to life, I've upgraded to bluez 3.9 and still no change. =20 Thanks for any further help anyone can offer, =20 Rob _________________________________________________________________ Try Live.com - your fast, personalized homepage with all the things you car= e about in one place. http://www.live.com/getstarted= --_35f838a9-7bfd-4bf4-935b-b153311ecd1b_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Guys,
 
I've been toying with this today and I'm still not making any real progress= , In the mean time i tried to give the XML version a go as to be honest thi= s is likely to be of more use to me anyway, But it doesn't appear to find t= he XML function in the adapter object so i get the following error when try= ing to run it.
 
  File "./sdp.py", line 14, in ?
    result2 =3D ada= pter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09', result[0])
  = File "/var/lib/python-support/python2.4/dbus/proxies.py", line 169, in __ca= ll__
    reply_message =3D self._connection.send_message_= with_reply_and_block(message, timeout)
dbus.DBusException: org.bluez.Err= or.UnknownMethod: Method "GetRemoteServiceRecordAsXML" with signature "su" = on interface "org.bluez.Adapter" doesn't exist

The code I'm using looks like this.
 
#!/usr/bin/python
import dbus
bus =3D dbus.SystemBus()
obj =3D bus.get_object('org.bluez', '/org/bluez')
obj =3D bus.get_object('org.bluez', '/org/bluez/hci0')
adapter =3D dbus.Interface(obj, 'org.bluez.Adapter')
# Search For Obex Push Protocol
print('Start Scan...')
result =3D adapter.GetRemoteServiceHandles('00:17:B0:A0:E7:09', 'opp')
result2 =3D adapter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09', result= [0])
print result<= /FONT>
print('Done Scanning.')
 
Now as you can see from the code and the signature in the ex= ception thrown by dbus I'm passing in the right types of arguments in the f= orm of a string address and a unit32 handle for the obex push record but it= doesn't appear to come to life, I've upgraded to bluez 3.9= and still no change.
 
Thanks for any further help anyone can offer,
 
Rob


Express yourself instantly = with Windows Live Messenger, the future of MSN Messenger! Windows Live Mess= enger, the future of MSN Messenger! = --_35f838a9-7bfd-4bf4-935b-b153311ecd1b_-- --===============1847908156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1847908156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============1847908156==--