LK202-25 keypad HOWTO?

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

Moderators: Henry, Mods

Post Reply
cptdondo
LCD?
Posts: 4
Joined: Sat Nov 10, 2012 6:35 pm

LK202-25 keypad HOWTO?

Post by cptdondo »

This should be simple, but I cannot get any response from the keypad with my LK202-25.

I have a B202A-BK, and I connected it to the keypad header. I get no response when I push anything on the keypad. Just to make sure I reset the keypad settings using the following:

Code: Select all

#!/bin/sh
echo -e "\xFE\x58"
echo -e "\xFE\xCA\xF5\xA0\x00"
echo -e "\xFE\x93\x01"
echo -e "\xFE\x41"
echo -e "\xFE\x55\x08"
echo -e "\xFE\x7E\x00"
echo -e "\xFE\xD5ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy"
echo -e "\xFE\x93\x00"
echo -e "\xFE\xCA\xF5\xA0\x18"
so characters should be sent immediately.

I am centering the keypad connector on the header. I can't find any docs on the BK202 keypad connector.

cptdondo
LCD?
Posts: 4
Joined: Sat Nov 10, 2012 6:35 pm

Re: LK202-25 keypad HOWTO?

Post by cptdondo »

OK, got it figured out.... Make sure canonical mode is not set for the serial port.

Code: Select all

stty -F /dev/ttyS0 -icanon
or

Code: Select all

newtio.c_lflag = 0;
if you're working with *nix.

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

Re: LK202-25 keypad HOWTO?

Post by Clark »

Hello cptdondo,

Glad to see you have that keypad working now. For future reference you can find the schematic layout of the 7-key B202A keypad here, and the header pinout in the LK202-25 manual.

All the best with your project, if you do run into any further questions as you continue development, please don't hesitate to ask.
Troy
Troy Clark
Design & Development
Matrix Orbital

Post Reply