Opened 6 years ago
Last modified 6 years ago
#13 new defect
No way to connect to a particular known USB device
| Reported by: | jamesh | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | openobex-lib | Version: | |
| Keywords: | Cc: |
Description
To connect to a USB device, you need to pass one of the interfaces discovered with OBEX_FindInterfaces() to OBEX_InterfaceConnect().
This is okay if you are happy with OpenOBEX's device discovery, but is not adequate if you are using some other method of discovering devices (e.g. using HAL), as the obex_interface_t structures don't provide enough information to tell which device they came from.
It'd be nice if OpenOBEX provided an API for connecting to a particular (bus, device, interface) triple, or a way to create obex_interface_t's for particular USB devices.
Note: See
TracTickets for help on using
tickets.

Openobex relies on libusb for its USB support, and currently libusb does not provide an API for this. You should talk to libusb maintainers about extending it. Also each platform identifies buses and devices in a different way, so there would have to be several platform-specific APIs.