Skip to content

Filesystem over BLE#164

Closed
redengin wants to merge 8 commits intoInfiniTimeOrg:developfrom
redengin:obex
Closed

Filesystem over BLE#164
redengin wants to merge 8 commits intoInfiniTimeOrg:developfrom
redengin:obex

Conversation

@redengin
Copy link

Directly plumbed to the Pinetime littlefs implementation #162

Expands upon the conventions of DfuService.
Provides:

  • Listing of directories
  • Creating directories
  • Reading of a file
  • Writing of a file
  • Deleting files
  • Deleting empty directories

@ZephyrLabs
Copy link
Contributor

@redengin please add file system integration with LVGL (graphics library used in Infinitime)
more info here:
https://docs.lvgl.io/v6/en/html/overview/file-system.html

for more info please contact on discord/telegram/matrix of pinetime dev-channel
cheers

@Avamander
Copy link
Collaborator

@ZephyrLabs that's something that should probably be implemented with LVGLv7 migration, which is not a trivial amount of work.

@JF002
Copy link
Collaborator

JF002 commented Jan 19, 2021

Thanks for this impressive PR, @redengin !
Is this ftp service over BLE part of a standard that is/will be implemented by some companion apps?

Where you able to test the implementation (LittleFS + ftp service over BLE) with a companion app or an application/script on a pc?

@redengin
Copy link
Author

It's over BLE GATT using a protocol similar to the DFUService. Where possible I used OBEX constants (Service UUID, opcodes).

I've not been able to test it as there is not test framework in Pinetime and as you've identified this will need a custom app (or gadgetbridge module) as there is no protocol standard for filesystems over BLE.

@JF002
Copy link
Collaborator

JF002 commented Jul 13, 2021

Similar feature have been implemented and merged in #438, we can close this PR. Not this one!

@JF002 JF002 closed this Jul 13, 2021
@JF002 JF002 reopened this Jul 13, 2021
@hubmartin
Copy link
Contributor

@redengin Hi, I'm looking for solution to transfer files to/from the InfiniTime. I've added Console BLE NUS service #560 but I would rather copy files through another channel.

I've read this thread and checked the source code but cannot find any trace how to actually list directory or send file from my computer. You mention that the other part for computer needs to be written, but how did you written all that without any testing? Even if you have some python scripts, then this might help a lot for development. I'm not familiar with OBEX. Can you please create an example how to transfer a file? Thanks

@geekbozu geekbozu added enhancement Enhancement to an existing app/feature needs more info More information is needed needs more work This PR needs more work labels Oct 3, 2021
@geekbozu geekbozu mentioned this pull request Oct 16, 2021
@Avamander
Copy link
Collaborator

Implemented by #756

@Avamander Avamander closed this Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement to an existing app/feature needs more info More information is needed needs more work This PR needs more work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants