At Command Control GPRS module to implement TCP connection steps

Source: Internet
Author: User
At/R at + CCID/R // check whether a SIM card is installed
At + cgmr/R // check software version. For Versions later than 5.0, the GPRS function is available to support at + CSQ/R // check the signal quality and determine whether the system can log on to the network; if a signal between 10-31 and 0 is returned, the process continues. If the signal is 99,99, the module should constantly search for the network. At + cgclass = "B"/R // set the module work type at + cgdcont = 1, "ip", "cmnet"/R at + cgatt = 1 // activate PDP, obtain the IP address at + cipcsgp = 1, "cmnet"/R at + cipstart = "TCP", "10.56.12.207 ", "2020"/R at + cipsend/r> // return ">", enter the data to be transmitted, and then send Ctrl + Z, sending OK is returned if the data to be sent is successfully sent to the server of the specified IP address.
At + cipclose/R // OK is returned only when TCP/UDP is in the connect OK status. Otherwise, error at + cipshut/R // is returned when mobile is disabled.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.