Le Monday 17 August 2009 21:24:18, vous avez écrit : > On Mon, Aug 17, 2009 at 05:13:14PM +0200, Azwaw OUSADOU wrote: > > Le Monday 17 August 2009 16:43:20 Stuart Henderson, vous avez écrit : > > > On 2009/08/17 15:35, Azwaw OUSADOU wrote: > > > > Le Sunday 16 August 2009 20:01:41, vous avez écrit : > > > > > Hi, > > > > > > > > > > I updated openobex and obexftp to new version. I tested it and it's > > > > > work fine with my Nokia N72, with my Nokia N95 disconnect failed. I > > > > > can do only one operation. With obex you can saw data stocked in > > > > > the internal memory of your phone. If you a have a old symbian > > > > > (S60v1 and S60v2). You can get data in your memory card only with > > > > > obex protocol. > > > > > > > > > > To work fine it's required a patch to libusb: > > > > > > > > > > With this patch usb_get_string get first the string descriptor (4 > > > > > chars) and if it's ok, the requested string. It's required by some > > > > > device (like Nokia N70/N72). > > > > > > > > > > Tested ok in i386. > > > > > > > > > > BSDManiak > > > > > > > > PATCH: > > > > > > your diff is mangled (spaces->tabs and quoted-printable mangling). > > > would be nice to clean out the removals of the CVS control files too > > > (-x CVS). > > > > http://ultragames93.free.fr/libusb.diff > > Did you check that other apps using libusb weren't impacted by this > patch ? Also, i don't think we want enable-debug=yes in ports.. > And it's generally nice to add a comment on top of each patch saying > what is modified and why, in particular in those weird corner cases. >
I put --enable-debug if anyone has a problem with this patch he can help to debug. > > http://ultragames93.free.fr/openobex.diff > > Same comment applies... so many patches, we don't know why/what things are > fixed, where does the patch come from ? freebsd, upstream scm, you ? > openobex and obexftp patch come from me and libusb patch is inspired from a diff founded in freebsd mailling list. Openobex and obexftp were written to run with linux. My patches remove some ways to linux. > > http://ultragames93.free.fr/obexftp.diff > > Ditto.. what's this new patch for apps/obexftp.c, what does it fix ? And > for the SHARED_LIBS, we usually don't follow upstream numbering, but that's > a minor nit. > This patch resolve a crash problem. If NULL is take to times. Then it's crash. > Other than that, i don't really know how to use it with my N85, which > shows as regular umass when configured as UMS (and mounts fine) : > > umass0 at uhub0 port 2 configuration 1 interface 0 "Nokia N85" rev > 2.00/1.00 addr 2 > umass0: using SCSI over Bulk-Only > scsibus2 at umass0: 2 targets, initiator 0 > sd0 at scsibus2 targ 1 lun 0: <Nokia, S60, 1.0> SCSI0 0/direct removable > sd0: 7566MB, 512 bytes/sec, 15495168 sec total > > or shows as umodem when configured as 'pc suite' mode : > > umodem0 at uhub0 port 2 configuration 1 interface 1 "Nokia N85" rev > 2.00/1.00 addr 2 > umodem0: data interface 2, has no CM over data, has break > umodem0: status change notification available > ucom0 at umodem0 > > are we supposed to use irda or bluetooth to connect to it ? what's a > standard commandline ? using obexftp -l -t /dev/cuaU0 when configured as > ucom0, it fails. > > obexftp -u fails too. > You must to recompile your kernel without umodem support. Then you have a ugen device and you can use obexftp -u. > Landry For use obexftp with USB obex protocol. You must first recompile your kernel without umodem support. Obexftp use /dev/usbX devices. For Nokia phone (S60v1 and S60v2) plug your phone in USB. For other Nokia (S60v3 and more) you must choose PC Suite mode when you plug your phone. bash-4.0$ obexftp -u If USB doesn't work setup permissions in udev or run as superuser. Found 3 USB OBEX interfaces 0 (Manufacturer: Nokia Product: Nokia N95 Serial: (null) Interface description: SYNCML-SYNC) 1 (Manufacturer: Nokia Product: Nokia N95 Serial: (null) Interface description: PC Suite Services) 2 (Manufacturer: Nokia Product: Nokia N95 Serial: (null) Interface description: SYNCML-DM) Use '-u interface_number' to connect Nothing to do. Use --help for help. Choose PC Suite Serivces interface obexftp -u 1 -l for list dir : bash-4.0$ obexftp -u 1 -l If USB doesn't work setup permissions in udev or run as superuser. Connecting...done Tried to connect for 38ms Receiving "(null)"... <?xml version="1.0"?> <!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd" [ <!ATTLIST folder mem-type CDATA #IMPLIED> <!ATTLIST folder label CDATA #IMPLIED> ]> <folder-listing version="1.0"> <folder name="C:" user-perm="R" mem-type="DEV" label="Mémoire du téléphone"/> <folder name="E:" user-perm="RW" mem-type="MMC" label="Carte mémoire"/> </folder-listing>done Disconnecting...done With my N95 then i can retry obexftp -u 1 -l. It's work in my N72. Original libusb patch is here : http://article.gmane.org/gmane.comp.lib.libusb.devel.general/525 I try to do work properly my N95. Thanks, BSDManiak