Home > other >  Using Zigbee through GPRS to mobile phone text messaging
Using Zigbee through GPRS to mobile phone text messaging

Time:12-06

Have bosses did use zigbee through GPRS mobile phone text messaging?
I am using a serial port 0
C file
in the Sample.Void GSM (void)
{
Uint8 I, end [1]={0 x1a};
HalUARTWrite (0, "AT + CSCS=" GSM \ \ r \ n ", strlen (" AT + CSCS=\ "GSM \ \ r \ n"));

HalUARTWrite (0, "AT + CMGF=1 \ r \ n", strlen (" AT + CMGF=1 \ r \ n "));
HalUARTWrite (0, "AT + CMGS=" 18031971032 \ "\ r \ n", strlen (" AT + CMGS=\ "18031971032 " \ r \ n "));

HalUARTWrite (0, "youju, strlen (" youju"));

HalUARTWrite (0, end, 1);
}
This is the code
But there is no success
Power supply problem solved, using SIM900A module
Can use a serial port debug successful send text messages, but using ZigBee module can't send
There are bosses know solution

CodePudding user response:

Look at zigbee module through the serial port can normal send out these instructions, if you can try again to add a little delay between each instruction, check your serial port initialization if not right,

CodePudding user response:

Using a serial port assistant monitor, can see ZigBee succeeded in sending these the AT command, baud rate configuration is 9600, and the delay did not send a success? Who do you know what reason is this

CodePudding user response:

refer to the second floor weixin_44722927 response:
monitoring using a serial port assistant, you can see ZigBee succeeded in sending these the AT command, baud rate of the configuration is 9600, and the delay did not send a success? Who do you know this is the reason why

You're not a serial port line to meet the, discuss the zigbee module and GSM module of serial port?

CodePudding user response:

refer to the second floor weixin_44722927 response:
monitoring using a serial port assistant, you can see ZigBee succeeded in sending these the AT command, baud rate of the configuration is 9600, and the delay did not send a success? Who do you know this is the reason why

An instruction can give out the serial port to receive the corresponding response?

CodePudding user response:

reference month, 4/f, bird, response:
Quote: refer to the second floor weixin_44722927 response:

Using a serial port assistant monitor, can see ZigBee succeeded in sending these the AT command, baud rate configuration is 9600, and the delay did not send a success? Who do you know this is the reason why

An instruction can give out the serial port to receive the corresponding response?

I don't have to monitor this, I write the code
  • Related