|
#30
|
exit with error code when a transfer fails
|
obexftp
|
|
enhancement
|
05/10/08
|
|
From sf user summetj: ObexFTP fails with an exit code of 1 if it is not able
to find a specified bluetooth client.
However, if it DOES find the client, and starts a transfer, but the (put)
transfer is interrupted half way through, it returns with a success code
(0) instead of an error code (1 or something other than 0).
|
|
#19
|
zero-length arrays are not defined by standard C
|
openobex-lib
|
|
defect
|
10/26/07
|
|
{{{ In "obex_header.h", the structure obex_unicode_hdr was defined to contain an zero-length array.
struct obex_unicode_hdr {
uint8_t hi;
uint16_t hl;
uint8_t hv[0];
}
Actually, zero-length array are forbidden by standard C, although it was defined by windows C complier and gcc compiler. To push it to be cross-platform, it's better to follow the standard C.}}}
|
|
#20
|
__FUNCTION__ isn't a general macro, it isn't defined by Sun C compilor
|
openobex-lib
|
|
defect
|
10/26/07
|
|
After enable debug of openobex, there's a compiling error about the macro
"FUNCTION" on Solaris platform, it's because func instead of
FUNCTION is defined in Solaris.
|
|
#25
|
Obexfs doesn't convert special XML symbols
|
obexfs
|
|
defect
|
02/15/08
|
|
Obexftp library uses names in raw XML format with special symbols (like & > etc) when does directory listing, but for file operations it requires normal names. So obexfs can't normaly work with file names which are contain, for example, apostrophes.
|
|
#45
|
obexftp -u returns no OBEX interfaces for Nokia handset
|
openobex-lib
|
|
defect
|
07/12/10
|
|
Pre-requisites:
1. libobenobex.so.1.5.0
2. Nokia N73/N82/N95 etc. USB connected
Bus 002 Device 006: ID 0421:0071 Nokia Mobile Phones
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0421 Nokia Mobile Phones
idProduct 0x0071
bcdDevice 1.00
iManufacturer 1 Nokia
iProduct 2 N82
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 404
bNumInterfaces 14
bConfigurationValue 1
iConfiguration 4 Bulk transfer method configuration
bmAttributes 0xc0
Self Powered
MaxPower? 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 8 Wireless Handset Control
bInterfaceProtocol 0
iInterface 0
CDC Header:
bcdCDC 1.10
CDC WHCM:
bcdVersion 1.00
CDC Union:
bMasterInterface 0
bSlaveInterface 1 2 3 4 5 6 7 8 9 10 11 12 13
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 8 Wireless Handset Control
bInterfaceProtocol 1
iInterface 0
CDC Header:
bcdCDC 1.10
INVALID CDC (Telephone Operations): 05 24 08 00 01
CDC Union:
bMasterInterface 1
bSlaveInterface 2 3
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 254
bInterfaceProtocol 0
iInterface 0
CDC Header:
bcdCDC 1.10
UNRECOGNIZED CDC: 05 24 ab 05 15
CDC Union:
bMasterInterface 2
bSlaveInterface 3
Interface Descriptor:
bLength 0
bDescriptorType 0
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 04 24 fd 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 11 OBEX
bInterfaceProtocol 0
iInterface 6 SYNCML-SYNC
CDC Header:
bcdCDC 1.10
CDC OBEX:
bcdVersion 1.00
CDC Union:
bMasterInterface 4
bSlaveInterface 5
Interface Descriptor:
bLength 0
bDescriptorType 0
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 6
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 11 OBEX
bInterfaceProtocol 0
iInterface 7 PC Suite Services
CDC Header:
bcdCDC 1.10
CDC OBEX:
bcdVersion 1.00
CDC Union:
bMasterInterface 6
bSlaveInterface 7
Interface Descriptor:
bLength 0
bDescriptorType 0
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 7
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 8
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 2 Communications
bInterfaceSubClass 11 OBEX
bInterfaceProtocol 0
iInterface 8 SYNCML-DM
CDC Header:
bcdCDC 1.10
CDC OBEX:
bcdVersion 1.00
CDC Union:
bMasterInterface 8
bSlaveInterface 9
Interface Descriptor:
bLength 0
bDescriptorType 0
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 9
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x09 EP 9 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 10
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 9 CDC Comms Interface
CDC Header:
bcdCDC 1.00
CDC ACM:
bmCapabilities 0x0f
connection notifications
sends break
line coding and serial state
get/set/clear comm features
CDC Union:
bMasterInterface 10
bSlaveInterface 11
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 128
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 11
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 10 CDC Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x8b EP 11 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x0c EP 12 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 12
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 255 Vendor Specific (MSFT RNDIS?)
iInterface 11 CDC Comms Interface
CDC Header:
bcdCDC 1.00
CDC ACM:
bmCapabilities 0x0f
connection notifications
sends break
line coding and serial state
get/set/clear comm features
CDC Union:
bMasterInterface 12
bSlaveInterface 13
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 128
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 13
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 12 CDC Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x8c EP 12 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x0d EP 13 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0001
Self Powered
vint@vgreck:~/openobex$ sudo obexftp -u
Found 0 USB OBEX interfaces
Fix:
File lib/usbobex.c, line 91:
*found_idle = 1;
if (data_intf.bNumEndpoints == 0) {
intf->data_idle_setting = data_intf.bAlternateSetting;
intf->data_interface_idle_description = data_intf.iInterface;
}
|
|
#4
|
OBEX_CharToUnicode does not handle characters outside of US-ASCII correctly
|
openobex-lib
|
|
enhancement
|
04/30/07
|
|
This patch replaces the OBEX_CharToUnicode implementation with a more functional version which uses iconv for charset conversion. The previous implementation is not useful for non-English locales, because it "converts" characters to Unicode by tacking a null byte to form a 16-bit big-endian value. My phone has an images directory called "Imágenes" (that is, a string with U+00E1 LATIN SMALL LETTER A WITH ACUTE). In my case, I was lucky because the low byte of the codepoint happens to match the same symbol in the ISO-8859-1, so some trickery with the iconv command-line tool was enough. Now imagine somebody in Japan with a directory name written in Kanji...
Original patch had only one fallback to iso-8859-1. This patch (modified by colimit@…) tries to use the system locale to convert characters, and is supposed to work on all locales, not just UTF-8.
|
|
#24
|
Bad timestamp processing in obexftp
|
obexftp
|
|
enhancement
|
02/15/08
|
|
Obexftp library wrong calculates timestamps on files because it doesn't take into account GMT offset and uses only "modified" as key. For example, my SEK790i hasn't field "modified", but has fields "created" and "accessed".
|
|
#18
|
Fix proposal for Sony Ericsson models connection with DCU-11 USB cable (pl2303 module)
|
obexftp
|
|
defect
|
09/16/07
|
|
I'm owner of a Sony Ericsonn K300i and obexftp fails to connect twice.
This issue seems to concern other models according to the users' reports: T610, T616, T630.
I have compared obexftp source with multisync 0.82 - known to work perfectly when the pl2303 module is involved.
The attached patch fixes this issue but I have no idea what the impact is for other phones...
As the trouble only concerns disconnection, I guess it is possible to use a condition with the phone model.
|
|
#11
|
BIP obex identifiers
|
openobex-lib
|
|
enhancement
|
05/31/07
|
|
Hi,
the bluetooth profile "BIP" defines two additional header IDs. Include them in obex_const.h.
HS
|
|
#14
|
Change the method to check libusb at configuring
|
openobex-lib
|
|
enhancement
|
07/07/07
|
|
libusb.pc is checked at configuring to ensure that the usb library exists. However, the file libusb.pc isn't shipped in Solaris. So it won't work on Solaris.
It was modified to check if the function 'usb_open' is there or not. If 'usb_open' is found, we think the usb library exists. It will work in Solaris as well as in Linux.
|
|
#42
|
obexftp: hex escape sequence out of range
|
obexftp
|
|
defect
|
11/30/09
|
|
line 415 of file bfb_io.c says:
actual = bfb_io_write(ttyfd, "\xFF\x00\x08\xCBATZ\r", 8);
This generates a warning, because the compiler thinks \xCBA is a hex sequence.
Please use this variant instead:
actual = bfb_io_write(ttyfd, "\xFF\x00\x08\xCB" "ATZ\r", 8);
|
|
#32
|
[PATCH] Allow to choose how many retries obexftp uses
|
obexftp
|
|
enhancement
|
09/03/08
|
|
This patch adds support for telling obexftp how many times it should retry (it keeps default 3 times, but you can add -T N to use N as retries).
Please contact me over email, or mailing list for questions.
|