Uploading a bitmap programmatically on a GLK240128-25
Posted: Fri Aug 31, 2007 6:53 am
I'm trying to write code to upload a bitmap file to a GLK240128-25 and the board does not seem to be responding as the manual would have you believe it should. For test purposes I'm using Python under Linux. Here's what I'm seeing:
If I upload a bitmap using MOGD# the board displays it for me when it powers up (refID 1). From Python, if I send a delete command (0xFE, 0xAD, 0x01, 0x01) the bitmap is deleted. I know communication between the board and Python is working perfectly.
If I then issue the commands to start uploading a new bitmap file: 0xFE, 0x5E, 0x01 (using refID 0x01 which I know is available because I just deleted the file) I get one of two replies. The first time I send the sequence I get nothing back. The manual seems to say I should get 0x01 back to indicate that the reference ID is available. If I send the same sequence a second time I get 0x08 back, the decline byte.
Does anyone have an idea why this is happening? Is there a simple code example somewhere of the sequence for uploading a file?
Any help appreciated!
Ron
If I upload a bitmap using MOGD# the board displays it for me when it powers up (refID 1). From Python, if I send a delete command (0xFE, 0xAD, 0x01, 0x01) the bitmap is deleted. I know communication between the board and Python is working perfectly.
If I then issue the commands to start uploading a new bitmap file: 0xFE, 0x5E, 0x01 (using refID 0x01 which I know is available because I just deleted the file) I get one of two replies. The first time I send the sequence I get nothing back. The manual seems to say I should get 0x01 back to indicate that the reference ID is available. If I send the same sequence a second time I get 0x08 back, the decline byte.
Does anyone have an idea why this is happening? Is there a simple code example somewhere of the sequence for uploading a file?
Any help appreciated!
Ron