How to determine size of usb

Hello Stefan,

is there a way how to get information about size of usb USB storage device when it’s more than 4GB? DevMemInfo is only up to 4GB.

Thank you.
Lukas

Hello Lukas,

according to the AS-Help, unfortunately no…

looks like it is only supported up to FAT32.

https://help.br-automation.com/#/en/6/libraries/asusb/gen/restrictions_asusb.html

So even if devmeminfo would support more than 4Gb (or there is an alternative) my guess is that it would still be limited to these 4Gb…

But that is only what I interpret from AS Help…

You could try posting this question as a new thread. That way some real experts can have a look at it :sweat_smile:

Hi @valikl, what is the status of this topic, can you update us?

Hi @kovarj,

I also figured that out some time ago, but forgot to write it down here.
In my opinion, unfortunately there’s no way to get this information.

The limit of 4GB is based on the maximum value that can be stored in an UDINT, as described in the help.
Therefore, I also checked the common USB device descriptors that can be read out with AsUSB, but I found out that there’s no standard descriptor defined in the USB mass storage profile (at least in USB1.1/2.0), that holds an information about the size of the device.

So, I think it’s not possible right now.
Best regards!

1 Like