Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request #7

Closed
indramal opened this issue Sep 21, 2019 · 3 comments
Closed

Request #7

indramal opened this issue Sep 21, 2019 · 3 comments
Labels
question Further information is requested

Comments

@indramal
Copy link

indramal commented Sep 21, 2019

First, I want to thank you for this library. I also used Scott C example code. Scott C code can create the file but can not read in computer. Then I found your library with improvement of Scott C codes.

I saw your code added FAT file structure. Is it FAT32 file structure or other? I have not seen those types and size variable in this link https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system.

was it the problem in Scott C example code? (FAT file structure not included in Scott C example code).

What are other possible extensions to save files in pen drive? (Other than txt and csv)

If we add NTFS file structure, can not we save files? Like you add FAT32 file structure

@djuseeq
Copy link
Owner

djuseeq commented Sep 21, 2019

Hi,
i'm glad you found it useful this library. Actually the ch376 chip handle the FAT file structure(FAT12 FAT16 and FAT32).This is hardcoded to the chip itself that means the NTFS support is not possible :( . I needed information about FAT file structure because i wanted to understand and handle the directory entry i get it from the chip. I used in these functions: rdUsbData(), writeFatData().So the ch376 do the hard job.I used just for plain text, because that what i needed for.

@djuseeq djuseeq added the question Further information is requested label Sep 26, 2019
@Fenix-125
Copy link

Fenix-125 commented Sep 29, 2019

I have encountered similar problems: how to find the right file structure?
So I want to share the solution I found.
This is the output of "cfdisk" and "fdisk" commands respectively (Linux):
photo_2019-09-29_13-09-02
photo_2019-09-29_13-08-58

The FAT formatting on Windows 10 did not match the necessary format, but the one (FAT32) on Windows XP does.

@djuseeq
Copy link
Owner

djuseeq commented Sep 29, 2019

Thanks for information, Fenix-125. That means who use Win10, they need to found some formatting tool to make a proper FAT partition on theirs flash drive. I'm on Linux,so i didn't faced with this kind of issue.

@djuseeq djuseeq closed this as completed Nov 21, 2019
@djuseeq djuseeq mentioned this issue Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants