Hi
Your main problem is that there is nothing in your loop() function.
The way an Arduino sketch works is that it executes setup() once after power-up/reset and then continuously executes loop() until power-down/reset.
Try changing this:-
void loop() {
// put your main code here, to run repeatedly:
}
To this:-
void loop() {
readLocalCmd();
}
Which should get you going.
Ian