A new-generation GSM/GPRS module supporting TCP/IP protocol and a new-generation GSM/GPRS module and Application Supporting TCP/IP protocol

Source: Internet
Author: User
Tags network function website server

The GSM/GPRS-Based IP protocol provides the possibility of "always connected" with the Internet, making it a cost-saving option. In order to develop an application based on the IP protocol, the system design requires that no network connections and TCP/IP protocol be established at the same time. To develop IP-based applications, system designers need to be familiar with wireless networks and TCP/IP protocols. In this article, we will introduce the new force-sensitive information organizations that support TCP/IP protocol and embedded applications and their application examples. This article describes in detail the new force-sensitive information module supporting TCP/IP and embedded applications and its application instances.

Various access technologies are used for non-linear networks. Various access technologies are used in wireless networks. In FDMA technology, each user is allocated a transfer rate, while the TDMA technology is separated by time. In FDMA technology, each user is assigned a frequency, while TDMA technology separates users by time. In the CDMA technology, all users use the same segment to send messages at the same time, which is separated by the unique program that has been allocated to each other. In CDMA technology, all users send signals in the same frequency band at the same time, and separate users by the unique code allocated to them. In 2G systems, data transmission is primarily a transmission channel, that is, a transmission channel allocated to the user, when a user completes the operation and sends a message channel, the transmission information channel is provided to other users. In a 2G system, data transmission is mainly through circuit exchange, that is, a message transmission channel allocated to the user. After a user completes the transmission task and transfers a message channel, this transmission channel is provided to other users. As a result, bursts are the basic feature of the Digital business. When a user no longer has a number, the peak is in the wild. Because burst is the basic feature of data services, when a user no longer has data transmission, broadband is in a state of waste. In the grouping and grouping system, all users share the same information channel, so that the functions of multiple workers can be implemented. In the group exchange system, all users share the same message channel, and you can implement multiple tasks. When a user does not need to renew the data, the transmission channel will be used by other users. When a user does not need to transmit data, the message channel will be used by other users. The indexing method of the resource package can be used through the Media Access Control (MAC) protocol. The transfer method of the information package can be organized through the Media Access Control (MAC) protocol.

All the information packages on the website are based on IP protocol. All information packets transmitted over the Internet are based on the IP protocol. The unencrypted network will be integrated with the online network, and the information package will be directed to the IP address-based network without any media, in order to directly reach the specified destination in the specified region, the data package must be blocked using TCP/IP protocol. The wireless network will be integrated with the Internet, and the information package can be seamlessly transmitted to an IP-based network through wireless media. In order to directly reach the specified destination before transmission, data packets must be encapsulated according to the TCP/IP protocol. IP addresses are also recommended in the GPRS network. The IP protocol is also used for transmission in the GPRS network.

In terms of service activation, almost all GSM models can be connected to the GPRS network. In terms of service flexibility, almost all GSM modules can connect to the GPRS network. Generally, the information package function of the root protocol TCP/IP protocol is not part of the modular feature. Generally, the information packaging function based on the TCP/IP protocol stack is not a part of the features of the module. Before sending data through the mode, the TCP/IP protocol must be developed in advance. However, only a few modules have built-in TCP/IP protocol, and data can be directly sent through the module. Before sending data through the module, the TCP/IP protocol stack must be developed in advance. However, only a few modules have an embedded TCP/IP protocol stack, data can be directly sent through modules. In this case, the development cycle of the application is short, and its capability to complete the operation is also greatly improved. As a result, the application development cycle is shortened, and its execution capability is also greatly improved.

This article will introduce the TCP/IP protocol and necessary conditions for realizing TCP/IP in the GPRS network, zookeeper describes the new force-sensitive information model groups supporting TCP/IP protocol and embedded applications and their application examples. This article briefly introduces the TCP/IP protocol and the necessary conditions for implementing TCP/IP in the GPRS network, and describes in detail the new force-sensitive information module supporting TCP/IP protocol and embedded applications and its application instances.

Based on GPRS TCP/IP protocol based on GPRS TCP/IP protocol

TCP/IP is a set of suggestions for sharing network resources in the same industry. TCP/IP is a set of protocols for collaborative job computers and sharing network resources. The recommended members include IP, TCP, and UDP. This Protocol includes IP, TCP, and UDP. If the number of TCP guaranteed data packets is too large, TCP can divide them into several groups. TCP ensures the correct transmission of data. If the data volume of an information package is too large, TCP can divide it into several groups. The IP address is used to find a channel from the other end of the network. Each workstation connected to the network has a unique IP address, the IP address is a 32-bit number, which is usually divided into four 10-digit numbers, each representing 8-bit yuan. For example, 165.21.32.70 is an IP address of the Xinli Yixin website server. The IP address is used to find a channel for the information package to reach the other end. Each workstation connected to the network has a unique IP address, which is a 32-bit number of elements, it is usually written into four decimal digits, each representing 8 bits. For example, 165.21.32.70 is an IP address of the Xinli Yixin website server.

TCP/IP is a non-conforming protocol. The information volume is structured in groups. The maximum capacity of the information package is agreed upon during the initialization process. TCP/IP is a connectionless protocol. Information is transmitted in groups. The maximum capacity of the information package is agreed upon during initialization. If the information exceeds its maximum capacity, it will be divided into several groups for delivery. If the information exceeds its maximum capacity, it is divided into several groups for transmission. There is a possibility that the information package cannot be sent or even lost or re-transmitted in the reverse order. Therefore, TCP must sort the data in the forward direction, the data sources of the data source, and the number of destination channels, and other resources are added to the data package, which is regarded as the TCP packet header. Information packages may not be transmitted in sequence or even lost or re-forwarded. Therefore, TCP must add the serial number, the number of information sources and destination channels, and other information to the data packets, it is called a TCP packet header. The receiver will use the information to check whether the data packets are correctly received. The receiver uses this information to check whether data packets are correctly received and then sort them out. It is not sufficient to directly send the information package to the correct workstation with a TCP packet header. It is not sufficient to directly send the information package to the correct workstation with only a TCP packet header. An IP Address Header must be added to the TCP packet header. The source address and destination address are included in the IP packet header. An IP header must be added to the TCP header, and the source address and destination address are included in the IP header. Send a data packet to the destination. The computer will first check its own route list. If the destination is in its own network, it will directly send the data packet. When sending an information package to a destination, the computer first checks its own route list. If the destination is in its own network, it will directly send the information package. Otherwise, it sends the information package to the network route. Each network route has a route list, the information package is directed to the destination address of the route entry through a single route entry. Otherwise, it will send an information package to the network gate, each of which has a route list. The information package will arrive at the destination address through several separate routing nodes.

The GPRS network provides the network function to send IP address packages from dynamic traffic points to external networks. The GPRS network provides the network function to transmit IP information packets from the mobile user point to the external network. GPRS can provide multiple options for IP addresses, including public addresses, used addresses, and guest proxy addresses. GPRS provides multiple options for IP addresses, including public addresses, private addresses, and customer proxy addresses. The GPRS machine with the specified IP address selection permission is converted to the access point domain name (APN ). The GPRS mechanism that specifies the IP address selection is called the Access Point domain name (APN ).

Protocol 1 represents the TCP/IP System Architecture Based on GSM/GPRS. Figure 1 shows the structure of the GSM/GPRS-Based TCP/IP system. Because the overall IP address supply is limited, a GPRS network can be used by suppliers to allocate addresses dynamically. However, public addresses can be provided by the customer who owns the website. However, the website cannot be used to access the public network. Because the overall supply of IP addresses is limited, a GPRS network vendor usually uses dedicated and dynamically allocated addresses. However, public URLs can be provided by dedicated customers, A private website cannot be used to perform jobs over the public network. In order to connect to a public network, the website is converted into a public network. To connect to the public network, a Private URL is converted to a public URL. It should have been generated through a specific attack point. The attack point is the network address used for Nat ). This conversion is generated by a node, which is a dedicated network address translation (NAT ). Multi-region IP addresses can be mapped to a public IP address, which is applicable to IP protocol and has the same network path, they work in the same way in a non-existent network. Multiple private addresses can be mapped to a public address. for IP-based applications, they work in the same way as for wired networks. When GPRS calls are triggered, most data service providers will also control the traffic volume of data centers, if there are no data records within a specific period of time, the links will be opened. When a GPRS conversation is started, most service providers will also monitor the data transmission traffic. If no data is transmitted within a specific period of time, the connection will be disconnected.

Because TCP/IP data packets are transmitted over the GSM network, you must configure the number of packets specified by TCP/IP protocol. Because TCP/IP information packages are transmitted over the GSM network, some parameter configurations of the TCP/IP protocol stack must be considered. TCP based on GPRS should support the window size of the terminal to facilitate the optimization of the end-to-end protocol delay, the percentage of the receiver and sender should be increased to a window with sufficient capacity, the maximum number of IP Address data packages supported by the connected instance is the maximum value of MTU ). GPRS-based TCP should support the appropriate window size to facilitate the bandwidth delay of the end-to-end connection. The default receiving and sending buffer ratio should be increased to accommodate a large enough window, the maximum value of IP data packets supported by the connection layer is the maximum transmission unit (MTU ). When the MTU size is small, the chance of successful renewal is increased. The maximum valid IP address quota is 576 bits. On the link with a high error rate, the smaller MTU size increases the chance of successful transmission. The default maximum IP transmission unit value is 576 tuples. Depending on the configuration of the specified path and ARQ, it may increase the MTU size to a large value, A large MTU allows TCP to increase the limit window more quickly. Based on the Link conditions and the ARQ configuration, it may increase the MTU size to a large value. A large MTU allows TCP to increase the crowded window more quickly. For GPRS-Based TCP/IP protocol design, it is necessary to answer these questions. For the design of GPRS-Based TCP/IP protocol, designers must consider these issues.

Xinli Yi xin Xinli Yi-Xin-yi-Xin

many GSM models can directly connect to the network through GSM/GPRS. If no TCP/IP protocol is available on the model, it must be reflected in its application or weekly microhandler. Many GSM modules can directly connect to the Internet through GSM/GPRS. If the module does not have a TCP/IP stack, it must be reflected in its application or peripheral microprocessor. The Xinli Yixin gr47/48 module is one of the internal TCP/IP protocol modules. The gr47/48 module is one of the built-in TCP/IP protocol stacks. In order to develop TCP/IP applications based on GSM/GPRS networks, Xinli Yixin provides a complete set of tools for its machine-to-machine communication solution (m2mpower Business Solution) it is a strong support environment, designed to promote the development of the machine-to-machine applications that increase the cost-effectiveness ratio. To develop TCP/IP applications based on GSM/GPRS networks, Xinli Yixin provides a complete set of tools for its machine-to-machine communication business solution (m2mpower business solution) it is a powerful support environment designed to promote the R & D of wireless machine-to-machine applications that increase the cost-effectiveness ratio. M2mpower enables developers to use specific development tools to easily embed non-conforming applications directly into compatible Xinli message devices. M2mpower allows developers to use specific development tools to easily embed wireless applications directly into compatible Xinli Information System products. M2mpower is integrated with the programmable component gr47/48. In this statement, m2mpower is built on the basis of the production ansi c statement, enable developers to smoothly redirect existing applications to m2mpower. M2mpower is imported together with gr47/48, a program wireless component. The script language is based on the industry-level ansi c language, allowing developers to smoothly convert existing applications to m2mpower.

Article 2 illustrates the final structure of the gr47 production system. Figure 2 shows the structure of the gr47 real-time job system. The new programmable undefined modular gr47/48 provides complete and comprehensive functions. The new programmable wireless module gr47/48 provides comprehensive functions. This module includes an internal TCP/TP protocol for more effective use of GPRS. This module includes a built-in TCP/TP protocol stack for more effective use of GPRS. It allows a TCP/UDP protocol to be used with minimal preliminary configuration and operation. It allows a TCP/UDP transmission mechanism to be used with minimal preliminary configuration and jobs. Its built-in controllers facilitate the application of customer service and reduce the need for external controllers, for example, in police reports, reading table copies, and auto-Sales scenarios. Its embedded controller can easily integrate customers' applications and reduce external controller requirements, such as alarms, meter CC, and automatic vending. Gr47 and gr48 do not support GSM 900 MHz/1800mhz and 850 MHz/1900 MHz, it can send or receive data through SMS Short Message Service, CSD, HSCSD, or GPRS, and can handle audio and audio. Gr47 and gr48 support dual-band GSM 900 MHz/1800mhz and 850 MHz/1900 MHz, respectively. They can send or receive data through SMS Short Message Service, CSD, HSCSD, or GPRS, and can process voice and fax. Its TCP/IP protocol can also be accessed through AT commands or embedded applications. Its TCP/IP stack can also be accessed through AT commands or embedded applications.

Gr47/48 modular units have many large features. Gr47/48 modules have many powerful features. Its TCP/UDP session can be triggered through a command; it also provides the function of querying the IP address of a unified resource locator (URL; one of the most useful features is the IP server's Listen function, which allows users to communicate with the Internet through a model. For example, an assigned IP address does not need to be connected to any part. You only need to wait for the single dollar to receive an incoming request for an IP address based on the incoming request. Its TCP/UDP session can be started through a command. It also provides the IP address query function for the unified resource locator (URL). One of the most useful features is the IP server listening function, this function allows the communication module to start a conversation with the network. For example, if an assigned IP address does not need to be connected to any part of the communication module, you only need to wait for the unit to receive an IP-based connection import request.

Application Example Application Instance

In this section, we will list some examples of applications using the new force Yi Lixin gr47 model for future testing. In this section, we will list some application instances that use the new force Yi Lixin gr47 module for your reference. The first example shows how to use the AT command to set up a TCP session. The second example is an embedded application example. The first example shows how to use the AT command to set up a TCP session, and the second example is an embedded application.

1. Use the AT command to access the GPRS network. 1. Use the AT command to access the GPRS network.

Gr47 provides a series of AT commands to complete TCP/IP protocol functions and adapt to integrated processes. Gr47 provides a series of AT commands to complete TCP/IP functions, to simplify the application integration process. Related commands allow the designer to set up and cancel UDP and TCP protocol, control the settings of the gprs pdp context, and send data packets, check the metadata of the IP address. Related commands allow Application designers to set up and cancel UDP and TCP Protocols, control the establishment of gprs pdp context, send data, and check IP status information.

To activate the TCP session function, follow these steps:

1. at + cgdcont = 1, "ip", "cmnet" \ * write PDP context information, connect to China Mobile GPRS Network * \ 1. at + cgdcont = 1, "ip", "cmnet" \ * write PDP context information, connect to China Mobile GPRS Network *\

2. At * e2ipa = 1, 1 \ * Active IP session using stored PDP context * \ 2. At * e2ipa = 1, 1 \ * Active IP session using stored PDP context *\

3. At * e2ipi = 0 \ * return currently assigned IP Address * \ 3. At * e2ipi = 0 \ * return currently assigned IP Address *\

4. at * e2ipo = 1, "166.111.8.238", 23 \ * initiate a TCP connection to the module * \ 4. at * e2ipo = 1, "166.111.8.238", 23 \ * initiate a TCP connection to the module *\

5. At * e2ipc \ * close a currently opened IP connection * \ 5. At * e2ipc \ * close a currently opened IP connection *\

When the mode is used in the data processing environment, you need to invoke DTR to restart the local command mode. The ATO mode is used to restart the data processing environment again. When the module is in the data transmission status, you need to start DTR to switch back to the online command mode, and the ATO is used to switch back to the data mode again.

2. embedded applications access the GPRS network 2. embedded applications access the GPRS network

The following describes how to modify the PDP text, start a TCP conversation, and receive data. The following describes how to start the PDP text, start a TCP conversation, and receive data. This is only a part of the entire program. This is only part of the entire program and cannot be executed independently.

/* Reset the IP error flag by reading it * // * reset the IP error flag by reading it */

GTF (pai_ip_error_trigger );

Err = pdpa (1, 1); err = pdpa (1, 1 );

Prtf ("\ n PDP activate result = % d \ n", err); prtf ("\ n PDP activate result = % d \ n", err );

If (ERR = 0) if (ERR = 0)

{Val = IPI (0); {val = IPI (0 );

Prtf ("ip address = % x", Val);} prtf ("ip address = % x", Val );}

Else

{Prtf ("\ n PDP activation failed! \ N "); {prtf (" \ n PDP activation failed! \ N ");

Return ;}

Err = IPO (1, & scknum); err = IPO (1, & scknum );

If (Err! = 0) if (Err! = 0)

{Prtf ("\ n TCP socket open failed! \ N ") ;}{ prtf (" \ n TCP socket open failed! \ N ");}

Else

{Prtf ("\ n TCP socket opened! \ N "); {prtf (" \ n TCP socket opened! \ N ");

Err = TCPC (scknum, port, address); err = TCPC (scknum, port, address );

If (ERR = 0) | (ERR = tcp_connecting) | (ERR = tcp_connected) if (ERR = 0) | (ERR = tcp_connecting) | (ERR = tcp_connected ))

{While (! Complete & (GTB (pai_ip_error_statusbyte) = 0) {While (! Complete & (GTB (pai_ip_error_statusbyte) = 0 ))

{Int Len;

/* Receive some data * // * receive some data */

If (GTF (pai_ip_data_recvd) if (GTF (pai_ip_data_recvd ))

{Prtf ("\ n IP data recvd"); {prtf ("\ n IP data recvd ");

Len = rxtx_size;

Err = TCPR (scknum, rxtxbuf, & Len); err = TCPR (scknum, rxtxbuf, & Len );

If (Err! = 0) if (Err! = 0)

{Prtf ("\ n *** error in TCP receive (% d ). * ** \ n ", err) ;}{ prtf (" \ n *** error in TCP receive (% d ). * ** \ n ", err );}

Else

{If (GTB (apps_ip_tcpstatus_byte) = tcp_connecting)

{Prtf ("\ n delaying while TCP connect occurs... \ n ") ;}{ prtf (" \ n delaying while TCP connect occurs... \ n ");}

Else

{Prtf ("\ n received % d bytes of data. \ n ", Len) ;}{ prtf (" \ n received % d bytes of data. \ n ", Len );}

}

}

}

}

Err = IPC (scknum); err = IPC (scknum );

If (Err! = 0) if (Err! = 0)

{Prtf ("\ n socket close failed! \ N ") ;}{ prtf (" \ n socket close failed! \ N ");}}

Err = pdpa (0, 1); err = pdpa (0, 1 );

Prtf ("\ n PDP deactivate result = % d \ n", err); prtf ("\ n PDP deactivate result = % d \ n", err );

Summary Summary

Based on the TCP/IP protocol of GSM/GPRS, many applications provide higher resolution solutions, such as vehicle location, reading meter on the terminal, and reading on the terminal. The GSM/GPRS-Based TCP/IP protocol provides more advanced solutions for many applications, such as vehicle positioning, remote meter reading, and remote bank reading. It has the inaccessibility and mobility, and TCP/IP protocol provides the 'always connected' method for the network, and solutions that are more economic for SMS, CSD, and so on. It has the flexibility and mobility of wireless communication. The TCP/IP protocol provides a "always-connected" Communication Method for the Internet, as well as more economical solutions than SMS and CSD. Xinli Yixin GSM model group supports TCP/IP protocol and embedded application. It is one of the perfect solution to allow communication. Xinli Yixin GSM module, which supports TCP/IP protocol and embedded applications, is one of the perfect wireless communication solutions.

Author: Roewe Author: Huang Wei

Dataworks Communication Technology Co., Ltd.

E-mail: vincent.huang@ims.net.cn

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.