Right now I am looking into the file USBFat.h code:
at:
template <class Vol>
class UsbBase : public Vol {
public:
...
Type: Posts; User: KurtE
Right now I am looking into the file USBFat.h code:
at:
template <class Vol>
class UsbBase : public Vol {
public:
...
It might be a problem with my mbr dump code, it is pretty big hack, I try to call the read sector directly...
bool mbrDmp(msController *pdrv) {
MbrSector_t mbr;
// bool valid = true;
if...
Thanks @mjs513
I understand what you are saying, but so far not sure where the connection is made:
USB Drive Inserted
msc # Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length...
I have added some additional debug code:
So far I pushed up a few debug output edits to the Msc... project in the branch: https://github.com/KurtE/UsbMscFat/tree/VolumeName_SD
A new MTP branch...
Yet another new day :D
I have been playing with the MTP stuff, with partitions... And pulling out a fair percentage of the few hairs I have left :D
I have hacked my way through to try to...
Again hard to know what is going on without details about the display and your wiring and...
Is it this one: http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807
Which is another ILI9341...
So far this one looks like it does not want to give up it's secrets!
That is it is not giving any clue by device class, subclass nor protocol. 0s for the device and 0xff for interface.
So...
Hi Frank,
Not sure the second one has HID or not...
But again maybe try plugging it into T3.6 or T4.x with one of the USBHost_t36 examples like I mentioned.
And at about line 62 in...
Yes Happy 51st Birthday...
I think I remember back to then :D
Have a great day!
Again as you mentioned maybe, as I added the ability to pass through the partition number on that begin, that maybe I should just try that and maybe again only
need to object types still. Will...
@mjs513 and @wwatson - Yes I think it would be a good place.
But right now I am trying to rethink some of the integration of the MSC stuff into MTP... Trying to decide how far to try to take.
...
Quick follow on:
I just pushed up changes into my branch: https://github.com/KurtE/UsbMscFat/tree/VolumeName_SD
To hopefully have the MSC wrappers for the files/volume now call into the new PFs......
Morning all (or time in your part of the world),
Starting to play with MTP again...
First off: Integration question, probably for @PaulStoffregen.
In an SdFat-beta project issue conversation...
Looks maybe like this one? https://www.amazon.com/JahyShow%C2%AE-DVB-T-RTL2832U-Receiver-Compatible/dp/B01H830YQ6/ref=sr_1_8?dchild=1&keywords=RTL2832&qid=1614606952&sr=8-8
Hi Frank,
It looks like this device is a HID (Human Interface Device) like mouse, some keyboard...
There is an example sketch under USBHost_t36 HIDDeviceInfo that is setup to dump a lot of data...
Just pushed up a new branch off of main which I synced back up: https://github.com/KurtE/UsbMscFat/tree/VolumeName_SD
It now shows Volume information about SD Card as well:
...
@mjs513 Long Pauses are often the trying to compute the used or free space... As it walk billions and billions of ...
Probably it for today. Probably tomorrow will look into MTP again with these...
Maybe... But then there is also MTP with @WMXZ and the like...
Quick fyi - right after the merge,
I updated the sketch again, such that you can dump the MBR for both USB devices as well as SD...
Try syncing again. I thought I had disabled that new... Turned out I had disabled the one in SDFat library instead :o
@all, again not sure if best to mention here or in the MSC thread...
But I just pushed up a new Branch of the UsbMscFat library... https://github.com/KurtE/UsbMscFat/tree/PFsLib
Where I...
Sounds good!
Will take in. Right now I am trying to make a version of the fsFat which is partition friendly.
Running into a few compile issues. Will let everyone know if I have any luck.
Actually I received a response on github from Bill... Now there is not a leak as the new is not actually allocating memory...
As the code like: m_fVol = new (m_volMem) FatVolume;
is actually...
I sort of started a thread a little bit ago: https://forum.pjrc.com/threads/66338-Many-TLAs-MTP-MSC-FS-SD-SDFat-LittleFS-UsbMSCFat-to-work-with-each-other-8)
Where I was maybe setting up for some...
@wwatson - Sounds great.
@all as I mentioned over in the MTP thread (https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution?p=271721&viewfull=1#post271721)
I am playing around with...
@mjs513 - Yep I am also thinking a smaller test with fewer Storage types would be nice and/or split some of them into multiple tabs...
And yes right not I am still playing with the MSC multi...
Glad you found the issue... :D
Wonder what is different between T3.x and T4.x?
Or does something in your interrupts also touch the Analog?
Sounds like maybe need test case to see and maybe...
@all - Sometimes hard to know which thread to discuss things like integration of MTP amd MSC... and the like.
I am going to try doing some additional changes to my branch of the code to add some...
Thanks @mjs513 will probably look more in the morning.
Today I also hacked up that function some more that printed that data, and used digital Write high/low with pin 0 for the whole duration and...
@defragster and @mjs513 I am sort of curious about fragmentation works ;)
For the Fat32 volume:
I mucked up the beginning of the method most all of the class variables
int32_t...
Full current sketch, Note I commented out the earlier calls to get sizes...
Waiting up to 5 seconds for USB drive 1
^^Waiting up to 5 seconds for USB drive 2
^^^^^^^~~~~:(Initialize USB...
So I tried adding in the above test sketch currently just to the FAT16 and FAT32 section code like:
for (uint8_t i = 1; i < 5; i++) {
switch (partitionTable[i - 1]) {
case 11:
...
Maybe the code in the sketch is wrong...
It is not applying the partition... I am going to move those calls into the sections by partition type and see what I get...
Looks like we crossed...
Something does not appear to be working correctly at all with the freeClusterCount:
int32_t FatPartition::freeClusterCount() {
#if MAINTAIN_FREE_CLUSTER_COUNT
if (m_freeClusterCount >= 0) {...
@all - Another quick question: while starting to look at why the free space is TAKING SOOOOOOOO LLLLOOONNNGGG
I noticed in the SDFat code:
...
Quick note: I am thinking it might make sense to add the VolumeName.ino as an example sketch to maybe MscFS.h project. That way we can all keep track of it?
Make sense?
Morning,
Try picking up the latest UsbMSCFat project - I added a hack into it that if you ask for the Used size, twice (or more) it remembers the first call to it, which we do as a debug message...
Thanks @defragster,
I updated to your version.
I ran again, still real slow on my older thumb drives:
Waiting up to 5 seconds for USB drive 1
^^Waiting up to 5 seconds for USB drive 2...
Just an FYI: I updated the Volume name sketch to also print out the total size and used size sort of plus elapsed time to get them for the different partitions:
// VolumeName.ino
// An example...
@mjs513 which code fragment... MSC or MTP... So far in MTP I have not converted the main code to try to do anything with partitions, other than so far I am printing them out and I am able to get the...
Might really help to understand what exactly is your setup?
Windows? Linux? MAC? ... What version of Arduino are you running? What version of Teensyduino are you running?
Anything changed on...
@wwatson - not sure, about NTFS here. It looks like both partitions have type=7 which I believe is exfat. although looking at:https://en.wikipedia.org/wiki/Partition_type
It looks like type of 7...
Any luck?
Looks a bit complicated to jump in... I prefer easier things like MSC and MTP :D
Is it easy to setup and see failure when you don't have the hardware? Steps, and what to see when it...
Updated to fix the Fat16, also implemented a one call to find volume label.
And did some more gratuitous changes to have a function called by loop to process a drive, as to not need to reproduce...
Another quick note: I updated my sketch to the last one @defragster and found it was using the old non working Fat16 code. i.e. the one that was reading the boot sector and appears to always be: NO...
Good morning again:
Just for the fun of it you might try adding the asm("dsb");
somewhere...
The reason I mention it, I have been bit several times where ISR gets triggered multiple times for...
Some More not fleshed out thoughts on MSC and Partitions and FS...
I first off think it will be great all of the pieces in place and part of Teensyduino!
What I am sort of wondering is if it...
Good Morning!
I have not had a good chance to go through all of the code:
I don't see anywhere that you call attachInterruptVector, but if you did, I would probably make sure all of my interrupt...
Good Morning all:
Sounds like we have things coming along well here, to understand some about partitions and getting the volume label. :D
But our test has not handled SD Cards with multiple...
My exfat was failing as well, will look tomorrow unless someone beats me to it.
Have Fat16 working I believe at least for USB, have not tried with SD yet...
// VolumeName.ino
// An example of how to retrieve Fat32 and ExFat volume names using SdFat.
// Works with SD...