Flow control mode on GLK12232-25SM

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

Moderators: Henry, Mods

Post Reply
thrust
LCD?
Posts: 7
Joined: Sat Mar 09, 2002 4:00 pm

Post by thrust »

Hi!

I can connect and send data to my GLK12232-25SM using visual c++. (Using CreateFile, WriteFile) But the display generates unpredictably results when the buffer is full so therefore i suppose the flow control mode would be the apropriate solution.

Any one have some source describing how to do this? I guess it will involve some overlapped communication, but im not sure how to do this.


Any help would be appreciated,

/Oskar
Cheese
Bit-Tech.net
Bit-Tech.net
Posts: 337
Joined: Thu Dec 06, 2001 4:00 pm
Location: Cambridge, UK
Contact:

Post by Cheese »

The bit in the manual describe how to use flow control pretty well... though if you're really stuck give mat-d-rat a bell, he put it in LCDC.

Cheers,

r.
Mat-Moo
LCD Guru
Posts: 502
Joined: Wed Jan 16, 2002 4:00 pm
Contact:

Post by Mat-Moo »

As Cheese says, in the manual there are control codes yo usend to turn on/off flow control - but you must rememebr to do that on the com side too. I just change a couple of parameters on the comport control I use so I can't really help any more than that.
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

Here is some C source code...

http://www.matrixorbital.com/faq/ex4.htm
Henry J.
President
Matrix Orbital
thrust
LCD?
Posts: 7
Joined: Sat Mar 09, 2002 4:00 pm

Post by thrust »

Hi again!

The problem is not really how the commands on the diplay works, rather how to implement it under Win32.

I have something that almost works using overlapped communication and a thread that waits for signals from the display. The problem is the reading thread behaves okay in debug-mode but produces really strange results in release-mode. Another problem is that the reading thread takes almost all processor cycles. Any help on how to solve this would be apreciated.


Thanks in advance,

/Oskar Sj
Post Reply