Using Keypads Event Handler with bluetooth Serial

hello,

I am working on a project having 20x4 LCD and a 4x4 Keypad. I have already implemented a program using KeypadEventHandler() technique and its working fine. Now, i want to use the same keypadEventHandler() function through bluetooth serial, enabling my smartphone touchscreen to be used as an alternative keypad.
I need an android app for that purpose which can send characters from my smart phone over a bluetooth link to my arduino uC, but i need to register those characters (from 1 to 7) as a keypadEvent(). Is there any way to do it easily.

Now, i want to use the same keypadEventHandler() function through bluetooth serial, enabling my smartphone touchscreen to be used as an alternative keypad.

You're kidding, right? They have NOTHING to do with each other.

I have made a device similar to a cell phone based on ArduinoMega2560 interfaced with GSM SIM900 with a 20x4 LCD and a matrix keypad(4x4). User can use this keypad and LCD to call and receive text messages via SIM900. For interaction through keypad i have used keypad event handler function.

My next step is to first of all establish a link between my Device and a android based smart phone via bluetooth. I am going to make an app which can do so. I want to shift all the functionality of my matrix kepad(4x4) to my smart phone touch screen. Is there any way to do so without disturbing already written program

You could write a program for your phone that displays a keypad and sends data to the Arduino via Bluetooth when you press the keys. I don't know how to do that - it is not trivial. You may find something useful on this SL4A website. Or maybe app inventor

As far as the Arduino is concerned it is just receiving serial data and the examples in serial input basics should be suitable.

...R

Thanks for you response Robin2.

I am well-versed in other serial communication and have a separate app developer working with me.
So no worries with App development and Serial communication(as i have already done it).

I think i have to hack into keyapd.h library and edit it a bit to register bluetooth serial input characters (from 1 to 7) as a keypad event. If u have some information regarding it, u can help me.

Ali_Khan90:
I think i have to hack into keyapd.h library and edit it a bit to register bluetooth serial input characters (from 1 to 7) as a keypad event. If u have some information regarding it, u can help me.

I don't understand why you think that. If you can explain it may be possible to help.

...R

I think i have to hack into keyapd.h library and edit it a bit to register bluetooth serial input characters (from 1 to 7) as a keypad event. If u have some information regarding it, u can help me.

Nonsense. There are two discrete events happening. If you want both events to do the same thing, the solution is not to bastardize the trigger for the event. The solution is to have both event handlers call the same function.