PranjalKushwaha / ESP32-Bluetooth-FTP

This project aims to provide file-sharing capabilities between the ESP32 Bluetooth and any Android/Linux device over their default OBEX protocols.
22 stars 1 forks source link

Unable to receive file from Windows #1

Open BrandonStudio opened 2 years ago

BrandonStudio commented 2 years ago

Succeeded on Android, but failed on Windows.

I thought Windows and Android use the same protocol to send file, but it seems I was wrong. Could you explain why it does not work on Windows?

BTW, can you open discussions?

BrandonStudio commented 2 years ago

I've also got other issues to report:

  1. set-target should be executed before menuconfig, because after set-target, the previous config losts.
  2. the transfer speed is too slow, I sent a 4MB file for nearly a minute. It is much slower than transfer a file from a common Android device to another. Is it because the low efficiency of ESP32 or because of the blocks in receiver behaviour?
BrandonStudio commented 2 years ago

And you may add a .gitignore to exclude build/ folder

PranjalKushwaha commented 2 years ago

Hello @BrandonStudio, Thank you for taking the time to point the issues and make helpful suggestions.

You are right about windows using the same protocol but as this was a partial implementation(with missing features) currently it can only cater to devices running the Bluez Bluetooth stack(Android and Linux), I had omitted the features not being used by Bluez. An example would be during SDP querying Windows makes a SDP_ServiceSearchRequest, Bluez does not make this request and hence this was not implemented.

I will be adding Windows support to the project shortly.

Discussions have been opened.

Fixed the README.md.

There are several fixed parameters related to transmission interval etc in the code which need to be fine tuned to maximize the transfer speed. This will be catered to after the windows support.

Added .gitignore to local project.

BrandonStudio commented 2 years ago

@PranjalKushwaha I should thank you for your great job. Honestly I have an urgent work on this and I've been seeking for OBEX on ESP32 for a few weeks, so this repo is a timely godsend for me :)