|Hello Luc Pattyn,
First of all, thank you very much for your attention on this topic.
Iwill try to give you information as much as I can which is following:-
1. This is not publicaly available anywhere as i found and researched about it. I am working on a project as my thesis topic.
In this one, I have a manufactured system which is having 6 keys on main keypad which is controllable by some other 4 keys. Now I need to get control of 6 keys through serial interface PC. To get this, i need to communicate the system to PC. The company gave me protocol and in this protocol mentioned that I need to connect the system and PC through serial communication and every key has command which I need to send these commands to the system which includes microcontroller LPC2132.
I mention 1 example here which is mentioned in protocol and need to follow the procedure:-
Write "Key – KEY_WB" request
« %W 0x03 0x02 0xF3 LRC »
Write "Key – KEY_WB" response
%W 0x02 ACK LRC
Remaining keys command I need to prepare on my own according to this.
% = Start of message
R/W = Read/Write
CMD = Command
NUM = length of message (all bytes excluding „% R/W NUM")
DATA = real data
LRC = XOR complete message
STAT = ACK (0x06) = OK
NAK (0x15) = not OK
BUSY (0x07) = in process
In case of negative answer (NACK) the request must be repeated until a positive answer
(ACK) has been received. The delay time for a new request has a minimum of 100ms.
In case of answer (BUSY) the sender has to wait until the answer (ACK) has been
In every case; each request must be answered with an response. The host has to wait on
Yes, I have commands for LED as well but first I want to write the commands for above key then I think remaining work can be done.
As per protocol, I have connected both system and serial interface PC through DB9- RJ45 cable which also prepared by manufacturer of system. After this, I have uploaded firmware version through Flashmagic software tool. Now I created GUI for implementing these commands but is not working as I expect becuase of some lacking in knowledge about these specific ack response commands. Now I would like to know about the command in which I can get response with ack byte from microcontroller side.
I think I tried to give you enough information to understand the project. If still need, I can give more information. Please advise me on this for further progress.
Thanks & regards,