Joke Collection Website - Public benefit messages - C language program for controlling mobile phone module to send short messages by single chip microcomputer
C language program for controlling mobile phone module to send short messages by single chip microcomputer
The current GSM module is a serial communication protocol. Look for the AT command on the Internet, and you will understand it after a brief look. This process is very simple and can be completed by using the serial port of single chip microcomputer.
uchar code * STATES = " AT $ no sleep = 1 \ r \ n "; // \r Yes
Invalid sending (uchar SMS [])
{
uchar I = 0;
While (SMS [i]! ='\0')
{
SBUF = SMS[I];
And (! TI);
TI = 0;
i++;
}
}
Send (country);
In this way, those commands and carriage returns are sent to the module through the single chip microcomputer. I haven't done it before. I've been debugging it for two hours. This method is possible. We'll communicate if there is a problem! !
- Previous article:What holster can use holster mode?
There should be many friends interested in the meaning of the holster model, which is also a problem that everyone is concerned about at present. Then the foll
- Next article:Received greetings from friends. My best friend wishes me a happy Goddess Day. How should I reply to each other?
- Related articles
- Send a new year message to my mother-in-law
- How long does it take Netease to appeal against addiction?
- What if the creditor's rights are transferred to a third party and sued by a third party?
- Lovely love story copy and atlas ‖ Make a wish and it will come true one day.
- Why didn't anyone apply after the interview appointment?
- Why didn't I receive the text message from my mobile phone?
- Why does the personal registration information of Health Cloud have no address?
- Attractive sentences for summer hot pot restaurant copywriting
- What birthday greetings are there to thank friends?
- Do I need to upload the consumption voucher for the cash installment of Bank of Communications credit card? Can I leave early?