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