Originally Posted by
Salem
How about writing a small test program which specifically focusses on the problem at hand.
Not the 75K of source containing all sorts of irrelevance.
I would love to but I can't. I have been thrown this pile of code to look at and I don't even know where to begin coz I am not trained in C!
I think the problem lies with this line of code:
Code:
if(c=='r') //J750
{
command_detected=1;
i=0;
}
because for dual site protocols, the signal transmitted is rs 10,,,1
but for quad site protocols, the signal transmitted is €€Ïrs 10,1,10,10
and the quad site protocol begins with this funny character €. I believe this funny character prevents the from executing, therefore it is unable to go inside into the if statements which are nested in it.
Actually the rest of the codes are all relevant. They are used to communicate with a 8051 microcontroller. =)