Announcement

Collapse
No announcement yet.

Display Images - No uSD Card found

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

  • 4dTechSupport
    replied


    Hi Iguan,
    Here is the link,
    http://www.4dsystems.com.au/contact.php
    -Bilal

    Leave a comment:


  • Iguan
    replied


    can you give me the link to the us page?

    Leave a comment:


  • 4dTechSupport
    replied


    Hi Iguan,
    You may wish to contact 4D Systems through the Contact Us page to proceed further to resolve your hardware issue. Please refer to this thread link.
    -Bilal

    Leave a comment:


  • ESPsupport
    replied


    but would "media_Init()" return 1 with an empty card (formatted or unformatted)?
    If it can initialize the card it will return 1, a card doesn't need anything on it to be initialised

    Leave a comment:


  • Iguan
    replied


    but would "media_Init()" return 1 with an empty card (formatted or unformatted)?



    What i did:

    1. I put the uSD card in the Card-Reader connected to USB of PC(direct)
    2. I Added a few Images in the Graphic Composer 3
    3. Bit Depth 8 or 16 (tried both)
    4. Burn "4DGL - usD Raw - GCI at Specified Offset" with offset 0 to the Card-Reader - Drive (progressbar apears)
    5. Take out the card and put it in the display (Click!)
    6. I power the Display using the 4D programming Cable (direct)
    7. I loaded the following code:

    #platform "GOLDELOX"
    #inherit "4DGL_16bitColours.fnc"
    #inherit "WorldMap.gc"

    func main()
    gfx_ScreenMode(LANDSCAPE) ; // change manually if orientation change

    while(!media_Init())
    gfx_Cls();
    pause(100);
    print("NO uSD CARD");
    pause(300);
    wend

    media_SetSector(0x0000,0x0000);
    media_Image(0,0);
    repeat forever

    endfunc


    8. Then it says "NO uSD CARD"

    Is that the correct way??









    I'm not sure, if the files below are needed.. or are they remaining from a test with the (wrong) option "4DGL - GCI - FAT Selected Folder"

    **************************************
    the *.GC file:

    // Image - "WorldMap.bmp" Size 128x128
    // Width = 128
    // Height = 128
    // Usage: WorldMap.bmp(x, y);
    #constant WorldMap.bmp $media_SetSector(0x0000, 0x0000); media_Image

    // Image - "SwissMap.bmp" Size 128x128
    // Width = 128
    // Height = 128
    // Usage: SwissMap.bmp(x, y);
    #constant SwissMap.bmp $media_SetSector(0x0000, 0x0021); media_Image

    // Image - "Orbit.bmp" Size 128x128
    // Width = 128
    // Height = 128
    // Usage: Orbit.bmp(x, y);
    #constant Orbit.bmp $media_SetSector(0x0000, 0x0062); media_Image

    // Image - "SolarSystem.bmp" Size 128x128
    // Width = 128
    // Height = 128
    // Usage: SolarSystem.bmp(x, y);
    #constant SolarSystem.bmp $media_SetSector(0x0000, 0x00A3); media_Image


    ********************************************


    the *.Dat file:

    "WorldMap.bmp" 0000 0000 00 00
    "SwissMap.bmp" 4200 0000 00 00
    "Orbit.bmp" C400 0000 00 00
    "SolarSystem.bmp" 4600 0001 00 00

    ******************************************
    here's the *.gcs file:




    128
    128


    WorldMap.bmp
    WorldMap.bmp
    2013.04.29 13:29:47

    0
    0
    128
    128


    0
    0
    128
    128

    False

    False

    8
    False


    SwissMap.bmp
    SwissMap.bmp
    2013.04.29 13:29:33

    0
    0
    128
    128


    0
    0
    128
    128

    False

    False

    16r> False


    Orbit.bmp
    Orbit.bmp
    2013.04.29 13:29:03

    0
    0
    128
    128


    0
    0
    128
    128

    False

    False

    16
    False


    SolarSystem.bmp
    SolarSystem.bmp
    2013.04.29 13:31:25

    0
    0
    128
    128


    0
    0
    128
    128

    False

    False

    8
    False

    Leave a comment:


  • ESPsupport
    replied


    Goldelox can't tell the difference between formatted and unformatted cards, to it a card is just a series of sectors.

    So it will init either exactly the same.

    The correct option is "4DGL - usD Raw - GCI at Specified Offset".

    Perhaps try the Goldelox ViSi example "VidImage"?

    But really I can't see anything wrong with your code.

    Is the cable plugged into a hub, or direct? (try direct).

    Is the usd card inserted fully? (it should 'click' in)

    Leave a comment:


  • Iguan
    replied


    yeah, sorry for that... with the 4D Programming Cable. by the way a few questions...

    If I insert an empty uSD Card (Windows formatted), would "media_Init()" return 0 or 1??

    Is the code correct to display an Image?

    In the Graphic Composer 3 i've two options to chose:
    - 4DGL - GCI - FAT Selected Folder
    - 4DGL - usD Raw - GCI at Specified Offset
    -> which one do I have to select? (I tried both)

    Leave a comment:


  • ESPsupport
    replied


    Hmm, odd, the first post says "NO SD CARD" and what you just posted is almost the same but says "NO uSD CARD", np.

    How are you powering the display?

    What sort of cable are you using?

    Leave a comment:


  • Iguan
    replied


    look at the code above... its from the code and it's blinking as it should

    Leave a comment:


  • Iguan
    replied


    Iguan wrote: Hi

    I've got a uOled 128-G2 (GFX2) Module and i'm trying to display a Picture. I burnt a Picture on the uSD Card (using "4DGL - uSD Raw - GCI at speific offset" option at Sector 0). But it always says "No uSD Card". But there is a Card in the Slot.

    Can you help me?

    Thanks!



    Here's the code:

    #platform "GOLDELOX"

    #inherit "4DGL_16bitColours.fnc"
    #inherit "WorldMap.gc"

    func main()

    gfx_ScreenMode(LANDSCAPE) ; // change manually if orientation change


    while(!media_Init())
    gfx_Cls();
    pause(100);
    print("NO uSD CARD");
    pause(300);
    wend


    media_SetSector(0x0000,0x0000);
    media_Image(0,0);

    repeat forever


    endfunc

    Leave a comment:


  • ESPsupport
    replied


    Hmm, just where is this "No uSD Card" message coming from?

    I thought you were implying the display program was generating it, but the display program's message is ""No SD Card".

    Leave a comment:


  • Iguan
    replied


    Ok, i bought a Sandisk 4gb card (class 4).... it doesnt work! Still the message "No uSD Card"... what can i do? Do i have to set the jumper in a specific way or what?

    Leave a comment:


  • ESPsupport
    replied


    I'd say 2gb or 4gb Sandisk, the 2gb are getting a bit hard to come by these days.

    I think the small ones only come in one class. The class relates to SD mode access, the displays only use SPI access, so spending more for a higher class is just wasting money

    Leave a comment:


  • Iguan
    replied


    Can you reccomend a specific Type? Which class, which size etc...?

    Leave a comment:


  • ESPsupport
    replied


    I'd be trying to buy a small Sandisk and give that a try.

    Leave a comment:

Working...
X