Announcement

Collapse
No announcement yet.

How can I copy Media Files from a Project to SD Card without IDE

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

  • How can I copy Media Files from a Project to SD Card without IDE

    Hi all,

    I've a project, which is ready comiled and the compiled code is copied per Delphi to the SD card.

    I've the idea to copy the media files via command shell with one of the external tools to the external SD card. May be with a format of the SD card, cause it must be raw.
    Which tool is the best and is able to use via params from command shell.
    A short excamle will be helpful. Thanks a lot.

    Greetings
    Kai
    Animated Scale Cockpit Displays at https://plastes.de

  • #2
    Hi Kai,

    Are you referring like the tool shown in this App Note?

    Designer Displaying Images from the uSD Card - RAW
    http://www.4dsystems.com.au/appnote/4D-AN-00045/

    Hope this helps,

    Comment


    • #3
      Hi Joseph,

      sorry, no it doesn't help. I need an example to transfer all media data
      of an existing compiled project via commnd shell script with a tool from
      the IDE (SCRIPTC.EXE or something like this).

      Greetings
      Kai
      Animated Scale Cockpit Displays at https://plastes.de

      Comment


      • #4
        You can use scriptc to transfer from your PC to a uSD inserted into the PC, see C:\Users\Public\Documents\4D Labs\SCRIPTS\PC\WRITEUSD.4DSCRIPT (edit it with a text editor)

        You 'simply' transfer the .gci file to start at sector 0.

        There is no utility to transfer from a PC to a uSD card inserted in a display, partially because of the many possible ways the devices could be attached which would alter the way the program would need to work, but you could always write this yourself.
        Mark

        Comment


        • #5
          Dear Mark,

          Thanks for this link. I think the script may be helpful, if I understand the doing.

          Using my ShellScript Test96.cmd
          Code:
          SCRIPTC.EXE Test96.4DSCRIPT
          with the 4D Systems Script Test96.4DSCRIPT
          Code:
          #Run(Goldelox,COM4,256000,5,Wrap)
          $timeon
          $writePCuSD('Sectors.hex','E:',preserve,0)   // overwrite start of uSD card with file 'sectors.hex'
          I got the following result.
          Code:
          c:\plastes.de\Softwareentwicklung\4D Systems\Eigener Code\Zur_Sammlung\TestVideo>SCRIPTC.EXE Test96.4DSCRIPT
          No Errors, code size = 23 bytes
          Starting Script Test96.4DSCRIPT
          Log Command Times
          Error reading boot Sector
          Ending Script Test96.4DSCRIPT
          I think the problem is the file Sectors.hex, cause I've no one found. May be my added project will help.

          Please help me understand the doing of Test96.4DSCRIPT. Thanks!

          Greetings
          Kai
          Attached Files
          Animated Scale Cockpit Displays at https://plastes.de

          Comment


          • #6
            You need to edit the script.

            Replace 'sectors.hex' with the name of the GCI file you need to copy
            replace 'E:' with the drive the uSD is inserted into
            Probably replace preserve with overwrite (as your uSD will probably be formatted)
            You will need to run the scriptC utility from an 'admin mode' command prompt
            Mark

            Comment


            • #7
              Thanks a lot - it works!
              Animated Scale Cockpit Displays at https://plastes.de

              Comment

              Working...
              X