Open jehoshua7 opened 2 years ago
I see similar crashes with Samsung phone that makes it impossible to transfer files.
Switched to https://github.com/JasonFerrara/jmtpfs and it just worked
fetchPacketSize := d.fetchMaxPacketSize()
data := make([]byte, fetchPacketSize)
h := &usbBulkHeader{}
rest, err := d.fetchPacket(data[:], h)
...
func (d *Device) fetchPacket(dest []byte, header *usbBulkHeader) (rest []byte, err error) {
n, err := d.h.BulkTransfer(d.fetchEP, dest[:d.fetchMaxPacketSize()], d.Timeout)
if n > 0 {
..
func (d *Device) fetchMaxPacketSize() int {
return d.dev.GetMaxPacketSize(d.fetchEP)
}
...
func (d *Device) GetMaxPacketSize(endpoint byte) int {
return int(C.libusb_get_max_packet_size(d.me(), C.uchar(endpoint)))
}
See https://sourcegraph.com/github.com/OneOfEleven/NanoVNA-App/-/blob/libusb.cpp?L772 , LIBUSB_ERROR_OTHER is -99.
I assume there was some error before the crash that caused the USB connection to break before.
Version 1.0.0-1
The mobile phone was attached okay and transferring files. Then there were problems with navigating empty paths, and these messages