USB to USB flash Drive File Copier


Closed Thread
Results 1 to 40 of 223

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    What if you populate the array with a character that would probably not be used in a file name, (~), and parse the array for that before the array is used again.

    Or, have a "working" array. This would be one that stored arrays are parsed into for using.

    Stored array with (~) character
    Stored array re-written into sandbox array
    Sandbox array is sent to VDIP
    Start over with next stored array.

    Maybe....
    are saying its like this:
    say you have an array named FILE1 with 12 array places, i will pre-load it with (~) so...
    FILE1 = [~][~][~][~][~][~][~][~][~][~][~][~]

    and then when i receive a file named "vdip.txt" from the vdip serially, then the array would be like:
    FILE1 = [v][d][i][p][.][t][x][t][~][~][~][~]
    am i right with this? please correct me if im wrong...

    then when i want to send command to the vdip that i want to copy that particular file, i will be sending the "CPS" command plus the array of bytes stored in FILE1 including the bytes that contains [~] back to the vdip, but the vinculum is very strict with the spelling...if i include these bytes it will respond with "command failed" if only i could remove those unneeded bytes before sending it back to the vdip...

    am i getting your idea right?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Thinking more about this the "~" will not do you any good. Still need to re-write the array but...

    Assume file names should only contain letters and numbers. The problem is other characters are showing up..
    So when the file name is read from the VDIP say it is saved into "arrayF". Before "arrayF" is used again it needs checked for bad characters. Right?

    Again have a working array that will be used and/or reused to send back to the VDIP, "arrayW".

    The bad characters are at the end of the name?
    What if you check each bit of "arrayF" and IF the bit equals A-Z or 0-9 then that bit will be written to "arrayW". When the first bad character bit is found the re-write loop stops.
    Now "arrayW" should only contain valid characters.

    This thread should give you some ideas on how to process the arrays.
    http://www.picbasic.co.uk/forum/showthread.php?t=8876

    I hope this is on the correct track.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    this is so unfortunate..my vdip2 is suddenly not working...

    the status LEDs do not light when i turn the circuit on.. it also does not respond when i insert flash drives...

    i tried connecting it to the pc's serial port to see if the LEDs are just busted, but nothing happend. its as if there's nothing connected to the serial port.

    i've measured the voltage supplied and i saw that the voltage was correct.

    did anyone experience this? can there still be a remedy for this module?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    On the VDIP1 there is an active low reset pin. Can not remember the exact pin but I think it is 22. Double check for the VDIP2 and give that a try.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    ive been connecting that pin(rs#) to the ground using a push button. still nothing happend...no lights from the LEDs.

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by newbie View Post
    ive been connecting that pin(rs#) to the ground using a push button. still nothing happend...no lights from the LEDs.
    And it gets to high state by . . . a Pullup ? WPU ? Fear ? Which is to ask, can it get there ? Or is it locked to reset in perpetuity ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    Join Date
    Nov 2009
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    And it gets to high state by . . . a Pullup ? WPU ? Fear ? Which is to ask, can it get there ? Or is it locked to reset in perpetuity ?
    are you suggesting to try pullup instead of pull down? done that...didn't work..

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 14:43
  2. How to drive the Vinculum VDIP1 in UART mode
    By BrianT in forum Code Examples
    Replies: 41
    Last Post: - 23rd May 2013, 13:34
  3. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 21:17
  4. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 23:40
  5. PICs and USB Flash Drives
    By The Master in forum USB
    Replies: 2
    Last Post: - 23rd October 2007, 11:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts