Uploading a Font file

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
Jmaq
LCD?
Posts: 2
Joined: Wed Jul 09, 2008 4:02 pm

Uploading a Font file

Post by Jmaq »

Hello,

My Display is a GLK12232-25-SM

I am somewhat new to hardware so be easy on me. I have looked through the forum though not extensively, so if this was answered please just refer me to those postings.

My question/confusion:

I've been reading through the manual Revision 2.0 in hopes that things would become clear, not the case. I am trying to write a program in C# that pretty much reproduces your mogd# program (pretty cool btw) but I've been having trouble uploading a font file.

First off...I have actual been able to communicate in the way that manual describes the communication protocol. (command echo command echo (to be simple) This was done only for one file(one character). (for your "clean" font there are many files (a file for each character) )

I guess I am confused on how to actual put a complete font on the device so that I can use it.
Do I just use a windows defined font?
Do I use a font like the provided "clean" font and write an algorithm:
get font file 1
send command to set font to device
send file
get font file2
send command to set font to device
send file
etc
or do things get overwritten....?
Am I supposed to somehow link all the files then send all at once?
I am not too sure how to do this. And having two separate ways of doing this was confusing me. (the uploading a font file section and creating a font section -sections 5.2 and 5.1.2, respectively)
I've also read through the manual for this device revision 1.0

Please help :)
Thanks
Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hi Jmaq,

I understand you're having some trouble working out the file upload protocol for your GLK12232-SM. Not to worry, this is a rather complicated process, but I'm sure we can help you through it.

As you may have noticed, our protocol changed between revisions 1 and 2, so I'd recommend staying away from the older manual if you've got the revision 2.0 unit. In addition, the protocol in many of our older manuals has been found to be slightly incorrect. We've been working on adding the following table to our documentation, but it's not in every manual yet. Please note the given protocol is meant for bitmaps, but the principles remain the same for fonts.

Another suggestion would be to try monitoring the serial port as MOGD# is running. Use a program such as portmon to sniff out the data transactions and replicate it in your code.

You can send any font you like to the display, but I would recommend going with something pre-made, such as clean. The unit will expect the whole file, that is all characters, to be transmitted in one shot. The file system section on page 44 should give you a good outline.

If you have any further trouble, or questions, just post them up here, and if need be, I'm sure our MOGD# designer can point you in the right direction.

Thanks,
~Troy
Attachments
Second Generation Upload Protocol
Second Generation Upload Protocol
Upload Protocol (G2).JPG (70.54 KiB) Viewed 7565 times
Troy Clark
Design & Development
Matrix Orbital
Jmaq
LCD?
Posts: 2
Joined: Wed Jul 09, 2008 4:02 pm

Post by Jmaq »

Troy,

I appreciate the help. I did sniff the transmission before posting but I will apply the information you've given and will get back to you if I have questions.

I greatly appreciate your time!

Jmaq
Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hi Jmaq,

No worries, it seems that you have a pretty good grasp of the protocol, please do let me know if you run into any trouble during your development.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital
asawilliams
LCD?
Posts: 1
Joined: Sun Feb 15, 2009 1:41 am

Having the same Problem uploading font file

Post by asawilliams »

I have a GLK240128-25 and have been trying to use mog sharp to upload a font with a size greater than 22pt to the display but each time it replies with a 0x08 (error). I have tried many times using a different refID, but still no luck.

I have been able to connect and send commands and download/upload the file system through this program.

has anyone had this problem and was able to solve, or have any ideas?
Ray
Matrix Orbital
Matrix Orbital
Posts: 745
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Post by Ray »

0x08 is usually caused by the eeprom being too full with other bitmaps and fonts to accept the new font, try a Wipe Module option in mogd# to clear the eeprom.
Post Reply