IMHO UTF8 in SdFat would be perfectly fine. If this is coming, we can leave the UTF8-UTC2 transfer functions for SdFat as a patch.
But MTP needs to convert properly to 16bit (UTC2/UTF16) strings when communicating...
Please correct me, if I am wrong, but I think C++ and C generally do not have garbage collection.
But yes, I am reading that dynamic allocation is considered "bad style" on embedded systems, as they do not have a lot...
Ok, I implemented it, and I can confirm it works. The directory listing on the host PC now shows Unicode characters correctly.
MTP.cpp:
void MTPD::writestring(const char* str8) {
if (*str8)
{
...
I just checked MTP.cpp, and it seems to me (haven't worked with C or C++ in a while), that the writestring function blows back the 8bit strings into a 16bit string (which I guess is to be expected, MTP being a Microsoft...
Thank you for the offer, Paul!
In the last hour, I already implemented the missing eight functions in SdFAT(Core), by calling UTF8<->UCS2 conversion methods.
The code compiles. Good, this is a step forward.
The...
Ok, I see. Rewriting all the mentioned libraries (at least SD wrapper and MTP-t4) for additional char16_t support seems quite some work.
But I am considering writing a small patch for SdFat, which would implement the...
WMXZ library in storage.h seems to be char* focused, yes. I guess this would need to be changed.
At the very least it is not compatible with the Unicode mode of SdFat.
In the example, it gets an SDClass from the SD...
Ok, the example in MTP_t4 is working, but only if #define USE_EXFAT_UNICODE_NAMES 0 in ExFatConfig.h
In this case, the filenames displayed in Windows are displaying all non-American letters as questionmarks.
In other...
Great adviсe, thank you. With the beta Teensyduino the code actually compiles :)
Serial is working, and there is even an MTP device showing up in Windows.
Its contents are empty, but that is probably because I still...
Dear community,
I'm successfully using a Teensy 3.6 as a Unicode-compatible native MP3 player, and would now like to add MTP.
However, I am running into several dependency issues. There seem to be two libraries: MTP...
Thanks for the quick reply!
In other words, as long as I don't copy files while I'm playing them, I should be fine?
The project is a player for my baby daughter, so that wouldn't be a big problem.
I'll think...
Dear community,
looking for general guidance on MP3 with Teensy 3.6.
I am planning to put several GBs of MP3 on the SD-card. Most are audio books, some of them with sample rates of 22.05kHz.
At the moment I am...