Shop OBEX P1 Docs P2 Docs Learn Events
uOLED-128-G1 now I am throwing in the towel — Parallax Forums

uOLED-128-G1 now I am throwing in the towel

ErlendErlend Posts: 612
edited 2014-02-16 00:02 in General Discussion
I seriously think googling can kill me one day. I have googled uOLED-128-G1 a billion times, and dowloaded a billion documents in a billion revisions. How hard can it be??
Ordered the uOLED-128-G1 from Parallax, the PCB says it is the -G2 version, rev3, but the splash screen says it is the G1 version, and the 4D software loader seems to agree to that.
Version according to the splash screen:
uOLED-128-G1
SPE2 rev 1.1
PmmC rev 2.2
The display is UG-2828GDEDF11, which, according to googles makes it the latest/later version. It also says PCB Rev 6.

I have installed the 4D Workshop software on my PC, hooked up the USB/Serial using approved hardware (which means DTR to Reset is supported).
Have loaded uOLED with the SPE loader - which should make sure it is congfigured to behave as a serial controlled slave. It does, I have successfully sent it simple commands ("Hello World").
So far, fine.

Next, I have run the Graphics Composer, 'add'ed two 128x128 jpgs, and 'build' a file on the uSD card direct. When doing that I have selected the 'raw' option which promises to put the first jpg in the 4D native format, starting at sector address 0.
How can I verify the files are there? The card gets lost to Win due to the 'raw' format - I think.
The Graphics composer also outputs some text files; one which gives the sector address of each jpg, and one which contains 4GL code, I think, to display them. Google world promises a text file will be created which contains the appropriate serial command to use - I can find it nowhere.

Next, I have googled (again) and found out there in the forums (- and also found found in some versions of documentation -) which command to use to Display Image from uSD:
It appears to be a choice of two options;
1, first send command Set Sector Address, then command Display Image -or-
2, send Display Image/Icon from uSD, with the sector address included as part of the parameters.

I have tried both Display Image commands, but the display only prints "Missing internal fi...." and nothing more happens.

Now, where do I go? How can I check the files are there? How can I know which is the correct command for this particular soft/firm/hard-ware version?

This is the command code & reply:
> 40 49 00 12 7F 5B 10 00 00 00
< 15 15 15 15 06 FF FB

Erlend

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2014-02-13 14:54
    I'll have to do some digging around, since I don't (at the moment) have a direct way to read/write to a microSD card.

    That said, the uOLED-128 that we sell is the G2 ... the attached screenshot is what my display shows.
    IMG1693.jpg


    If your splash screen truly says "uOLED-128-G1" then there might be another issue. Can you communicate with your display using the "Serial Commander" ? ... and if so what version of the commander are you using to communicate?
    640 x 480 - 124K
  • ErlendErlend Posts: 612
    edited 2014-02-13 23:09
    I'll have to do some digging around, since I don't (at the moment) have a direct way to read/write to a microSD card.

    That said, the uOLED-128 that we sell is the G2 ... the attached screenshot is what my display shows.

    If your splash screen truly says "uOLED-128-G1" then there might be another issue. Can you communicate with your display using the "Serial Commander" ? ... and if so what version of the commander are you using to communicate?


    Thanks for helping, Beau. I bought the display form Parallax sometime last fall. The display definitely says it is -G1. The 4D Workshop (includes Serial Commander) I am using is the latest one downloaded from the 4D site. Serial communication works fine.
    To help me solve this, what I need is the correct command and syntax to use (for this rev.), and some way of verifying that the right files have indeed been written to the SD card.

    Erlend
  • FranklinFranklin Posts: 4,747
    edited 2014-02-14 21:00
    Have you tried the 4D site? http://www.4dsystems.com.au/
  • Don MDon M Posts: 1,652
    edited 2014-02-14 21:20
    4D Systems forums are very responsive and they provide a lot of help. I'd take your questions there.
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2014-02-15 10:56
    Erlend,

    Since the SD card is saved as 'raw' and no longer has a conventional format, you might have luck looking into a Hex Editor designed to look at a mounted disk.

    This is a good editor:
    http://www.winhex.com/disk-editor.html

    When you first start this editor, go to .... View --> Show --> ... and uncheck "Case Data"
    Then go to ... Tools --> Open Disk .... (or F9) ... and select the drive your SD card is in.

    You should be able to do the same thing with the actual file you sent to the micro SD card and manually compare the Hex file data. I tried this with a larger SD card and it seemed to work.
  • ErlendErlend Posts: 612
    edited 2014-02-15 23:58
    Breakthrough!

    Beau's tip to use a hexed allowed me to see the files were actually there - on the uSD. Next, DonM's warm recommendation of the 4D Forum convinced me to go there - I registered and then asked - within hours a comprehensive answer was given by Mark moderator, and within an hour I had the display working.
    It turned out the module was shipped with the old -G1 PmmC firmware loaded - therefore it's split personality. After downloading the latest -G2 PmmC firmware it became a true -G2 version.
    Mark also showed me the correct commands to use:
    media_Init[FFB1 ]
    media_SetSector[FFB8 0000 0000]
    media_Image[FFB3 0000 0000]
    -and hey presto, my jpg appeared!

    Thanks for the help - and I hereby copy DonM's praise of the 4D Forum.

    Erlend
    (the display will be 'a robotic eye' on my machine)
    RoboEye.jpg
    1024 x 576 - 40K
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2014-02-16 00:02
    Yay!! ... Ohhh and we gotta see the video of I assume "both" robotic eyes in action when you get to that part of your project!!! :-)
Sign In or Register to comment.