Dear ALL,THis is related to PIC16f877a MCU and USART
Following message was received to my Hyper terminal from my Internet dongle. which is SMS I sent to Dongal SIM
In my 16F1827 based SMS system I read the entire message in to a buffer (hence the use of the 1827), and do a text search on the buffer.
I consider it important to be pretty to be specific about the instructions you're searching for, just 'B0' would be a bit to easy to occur accidentally - I choose a five letter system such as "SET= - which would work well in this case, you could have "RB0=ON" and "RB0=OFF" for example. So you search for "RBO= and once that is found read the following characters and look for the subsequent " which signifies the end of the instruction, then simply check if it's ON or OFF.