Problem with getting the module type...

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

Moderators: Henry, Mods

Post Reply
stormy
LCD?
Posts: 4
Joined: Thu Jan 22, 2004 12:42 pm

Problem with getting the module type...

Post by stormy »

We own a GLK12232-25-WBL module and we're programming in Lua. We're actually encountring problems with getting the module type. It said in the manual that it should retrun a byte hex value but it's actually returning this: ~255 here is our code:

function LCD.ReadModuleType(Resource)
local VersionNum
COM.ClearBufferIn(Resource)
LCD.SendCommand(Resource, "~254~055")
VersionNum = ""
while VersionNum == "" do
VersionNum = COM.GetData(Resource, 100)
print(VersionNum)
Sleep(50)
end
tblResult = _MISC.ConvertDecToTbl(VersionNum)
return VersionNum, LCD._VersionNumberString[tblResult[0]]
end

We though that the module would return "22" instead of "~255".
Someone knows how to solve this?? :jawdrop:
Miles
Matrix Orbital
Matrix Orbital
Posts: 1105
Joined: Mon Mar 04, 2002 4:00 pm

Post by Miles »

Hello...

Your code looks fine...the problem actually lies within our firmware. Our firmware doesn't include the module type, therefore it has to be loaded on our end before the customer receives it. Unfortunately some units made it past quality assurance...When the module type is not entered, you will receive 0xFF
Miles Y.
Head of Technical Support
Product Manager
Matrix Orbital
stormy
LCD?
Posts: 4
Joined: Thu Jan 22, 2004 12:42 pm

Post by stormy »

thanks for your answer! :)
stormy
LCD?
Posts: 4
Joined: Thu Jan 22, 2004 12:42 pm

Post by stormy »

I wandered if there was any way we could write the version number into the module? Maybe a function or something? thx in advance!
Miles
Matrix Orbital
Matrix Orbital
Posts: 1105
Joined: Mon Mar 04, 2002 4:00 pm

Post by Miles »

Unfortunately our firmware doesn't have that ability on this current revision...that would be too easy!! If you are looking for a way to identify the unit, why don't you check out the Set Serial Number (254 52 [byte1] [byte2]) command.
Miles Y.
Head of Technical Support
Product Manager
Matrix Orbital
stormy
LCD?
Posts: 4
Joined: Thu Jan 22, 2004 12:42 pm

Post by stormy »

thx for the trick! :wink:
Post Reply