Announcement

Collapse
No announcement yet.

Windows reading RAW with standard card readers.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows reading RAW with standard card readers.

    Hi all,
    Ok so I have 2g of data sitting on my sd card. I have a udrive hooked up to my computer serial port running at what I believe is the max of 230k downloading 512 blocks . One can quickly realise that this is going to take a long time to get all 2g?

    Surely someone somewhere has written a driver that will use a standard card reader to read RAW right off an SD?

  • #2


    Yep, it's rather easy to do, see here.

    http://4d.websitetoolbox.com/post/show_single_post?pid=41513738&postcount=2

    Hang on, it was you who I posted this for.

    Didn't it make sense?
    Mark

    Comment


    • #3


      Thats still reading the card via a uDrive and the serial port.?
      To read 2g @ 250k takes eons.

      I have written a python script which can read the sectors off the card via a udrive hooked up to my serial port. Thats easy Problem is at max baud it takes too long.
      I was hoping to read the data via a generic $10 usb card reader. Which are of course expecting to read FAT16 and thus dont recognise a RAW card. I was hoping there was a work around. Lower level driver that would force a basic usb reader to just dump the RAW binary to a file.

      Comment


      • #4


        The code I showed you reads directly from a RAW card inserted in a $10 usb card reader
        Mark

        Comment


        • #5


          in that case yes it dosent make sense

          "And, in the above example, the first 500 sectors from the uSD card located in the uDrive connected to COM9 would be read at 256000 baud and saved to the current folder in a file called 'Sectors.hex'."

          ie you need a uDrive and a serial port.. not a generic usb card reader

          Comment


          • #6


            Duh, sorry, not been getting enough sleep lately.

            You can't do it that way, yet.

            I'll do a quickie in the morning, it's not that hard
            Mark

            Comment


            • #7


              Sleep? Whats that ? I went home last night and I think i walked into the wrong house,, no one there seemed to know me

              Comment


              • #8


                Here it is. It will only work from the command line atm. (i.e. running scriptC from the command line, as opposed to using it within workshop)

                #Run(Picaso,,256000,5,Wrap)
                $timeon
                $readPCuSD('Sectors.hex','G:',0,5000) // save the 1st 500 sectors to file 'sectors.hex'
                // func $ReadPCuSD("pcFile", "uSDDrive", "StartSector", "#Sectors") // Read multiple sectors from RAW uSD in PC
                //
                // pcFile The file to write the sectors to.
                // uSDDrive The drive the uSD card is in, eg G:
                // startsector The starting sector to read
                // #sectors The number of sectors to read.
                //
                // Description This reads #sectors from the uSD card in the PC starting at the specified sector
                // and saves them to the pc with the specified Filename.



                Attached files scriptC.zip (196.9 KB)
                Mark

                Comment


                • #9


                  "I'll do a quickie in the morning, it's not that hard"

                  Im kinda holding you to this
                  We tried using python to look at an sd card in a usb multicardreader last night.
                  We found the card but the bulk reads just timed out.

                  I realise this is not specifically udrive or 4dsystems stuff but do appreciate any thoughts or help as the PC world is minefield to us little upawns.

                  Comment


                  • #10


                    Im kinda holding you to this
                    It's actually attached to the post I did a few mins ago.

                    But since the forum doesn't seem to display attachments atm I've emailed it to you
                    Mark

                    Comment


                    • #11


                      ESPsupport wrote:
                      Im kinda holding you to this
                      It's actually attached to the post I did a few mins ago.

                      But since the forum doesn't seem to display attachments atm I've emailed it to you
                      got it cheers. Ill palm it off to my comrade in arms and Ill get back to uPeelooping

                      Comment


                      • #12


                        Just a quick thanks. The script seems to be working. My comrade in arms has indicated he is getting some good data.

                        cheers

                        Comment


                        • #13


                          Ah, good, wondered how it was going.

                          Just finished spending a bit of time trying to extract some more speed from it.

                          Perhaps a bit too successful, took me a while to convince myself it was actually working.

                          I'll send you the update in a few hours.
                          Mark

                          Comment


                          • #14


                            sweet they will like that

                            did ya here that Beng? ( I know your snooping)

                            Comment


                            • #15


                              go it cheers il let you know how it goes

                              Comment

                              Working...
                              X