Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Tue Nov 21, 2017 8:23 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jul 08, 2010 1:54 pm 
Offline

Joined: Thu Jul 08, 2010 1:28 pm
Posts: 4
I have a G58 terminal and am using the flash file system to log data and allow transfers over USB to my PC.
My program writes a small (4Kb) file at the end of a test. I run a series of tests during the day and then plug into my PC to offload the data files. It all works perfectly unless I try to save more than 170 (sometimes 171) files. On the 170th file it fails to save with an error message of "Cannot open file". If I then delete the data files, it works again.

I read in the data sheet that there is a 128 char file name limit and a 256 char directory name limit. Is there a number of files per directory limit?

The path to my data is /drv1/XXXXX.txt so the path name should never be more the 128chars.

I save to the /drv1 directory so that the USB will recognize it. Is there a special limitation in that directory?

Any info would be appreciated.
Thanks,
Nathan


Top
 Profile  
 
PostPosted: Thu Jul 08, 2010 2:29 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
The /drv1 directory of the G58, is actually the root directory of a FAT file system. This is, of course, the same file system that appears to your PC as a lettered drive (e.g., E:\). FAT has a limit to the number of entries that can appear in the root directory.

The actual maximum number of files that can be saved may vary as long file names may require multiple entries to record the file name, as well as how the file system was formatted. I just connected a G58 to my PC and copied a bunch of small files, and got an error at about 190 files.

Your best bet is to create a subdirectory under /drv1 and then you should be able to put as many files as you like. I was able to copy several hundred files to a subdirectory

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Thu Jul 08, 2010 2:39 pm 
Offline

Joined: Thu Jul 08, 2010 1:28 pm
Posts: 4
Thank you for the quick response. I was not aware of the FAT root limitation.

Nathan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group