Page 1 of 1

LK202-25 keypad HOWTO?

Posted: Sat Dec 01, 2012 11:33 am
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.

Re: LK202-25 keypad HOWTO?

Posted: Sat Dec 01, 2012 1:33 pm
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.

Re: LK202-25 keypad HOWTO?

Posted: Mon Dec 03, 2012 8:03 am
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