CN102984814A - Large-scale GPRS (general packet radio service) terminal device networking method - Google Patents

Large-scale GPRS (general packet radio service) terminal device networking method Download PDF

Info

Publication number
CN102984814A
CN102984814A CN2012105181470A CN201210518147A CN102984814A CN 102984814 A CN102984814 A CN 102984814A CN 2012105181470 A CN2012105181470 A CN 2012105181470A CN 201210518147 A CN201210518147 A CN 201210518147A CN 102984814 A CN102984814 A CN 102984814A
Authority
CN
China
Prior art keywords
gprs
server
gprs terminal
tcp
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012105181470A
Other languages
Chinese (zh)
Inventor
王春桥
周跃军
黄小鹏
王冰
应腾
薛玲
刘欣春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HANGZHOU YINGJIE ELECTRONIC CO Ltd
Eastcompeace Technology Co Ltd
Original Assignee
HANGZHOU YINGJIE ELECTRONIC CO Ltd
Eastcompeace Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HANGZHOU YINGJIE ELECTRONIC CO Ltd, Eastcompeace Technology Co Ltd filed Critical HANGZHOU YINGJIE ELECTRONIC CO Ltd
Priority to CN2012105181470A priority Critical patent/CN102984814A/en
Publication of CN102984814A publication Critical patent/CN102984814A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a large-scale GPRS (general packet radio service) terminal device networking method. The method comprises the following steps: S10, judging whether data is transmitted between a GPRS terminal and a server; and S11, according to a judgment result of the step S10, when no data is transmitted, sending a TCP (transmission control protocol) connection disconnecting command to a GPRS module by a processor, and keeping a silence state, while when data is transmitted, sending a connection establishing command to the GPRS module by the processor. In the large-scale GPRS terminal device networking method, usually, when no data is required to be transmitted between the GPRS terminal and the server, the GPRS terminal is only adhered to a base station and keeps the silence state, and no transport layer TCP or UDP (user datagram protocol) link exists between the GPRS terminal and the server; when data is required to be transmitted, the TCP or UDP link is established; therefore, the large-scale GPRS (general packet radio service) terminal device networking method has relatively good using effect on application occasions when the communication data volume is small, but real-time data transmission is required.

Description

A kind of large-scale GPRS terminal equipment networking method
Technical field
The invention belongs to the wireless network communication technique field, relate to a kind of under same base station large-scale GPRS terminal equipment networking method.
Background technology
At present, server and GPRS terminal through internet are accessed main employing dual mode mutually, a kind of is to set up the long connection of TCP, namely before real read-write operation, set up between server and the client and be connected, after read-write operation is finished, both sides can discharge this connection when no longer needing this to connect, but establishment of connection needs three-way handshake, then needs when discharging to shake hands for 4 times, and each establishment of connection needs resource consumption and time loss.Another kind is to send the UDP message bag by GPRS terminal equipment regular (in 20 seconds) to keep the communication link connection.
Yet, because the GPRS load-bearing capacity of base station is lower, as long as a lot of base stations have GPRS terminal about 40 to adopt any connected mode in above-mentioned two kinds of communication modes, system the irregular equipment situation that goes offline will occur in practice.Particularly for existing cell networking gate control system, renting a house as public affairs has many high buildings in residential quarter of gate control system, nearly 20,000 of doors numbers, and also nearly 20,000 at the GPRS terminal of installing is so obviously can't satisfy the demands with these two kinds of interconnection techniques of routine.
So the problem for above-mentioned prior art exists is necessary to study in fact, so that a kind of technical scheme to be provided, in load of base station situation limited in one's ability, provide a kind of communication means of new high security.
Summary of the invention
For addressing the above problem, the object of the present invention is to provide a kind of large-scale GPRS terminal equipment networking method, it mainly is for the low situation of existing load of base station ability, a kind of new solution is provided, little but need the application scenario of real-time Data Transmission that preferably result of use is arranged in amount of communication data.
For achieving the above object, technical scheme of the present invention is:
A kind of large-scale GPRS terminal equipment networking method comprises the steps:
S10: judge whether data are in transmission between GPRS terminal and the server;
S11: according to the judged result of step S10, when not having data in transmission, processor sends to the GPRS module and disconnects the TCP bind command, keeps silent status; When professional transmission was arranged, processor sent the order that connects to the GPRS module and can connect with server.
Further, under described silent status, base station and GPRS terminal all keep the scene of oneself.
Further when having business datum to transmit, set up TCP or UDP link, business datum is transmitted, after the operation layer transfer of data is finished, it is the stand-by period that both sides keep linking certain hour, when confirming that both sides do not have the business datum transmitting-receiving within waiting time, port TCP connectivity restitution silent status.
Further, the GPRS terminal is during initiatively to the server service data transmission, and whether the GPRS terminal judges is in the GPRS attachment state, and if so, then the GPRS terminal to server is initiated TCP and connected; If not, then the GPRS terminal microprocessor initiates to adhere to order to the GPRS module first, and then the GPRS terminal is initiated the TCP connection to server again, and after the successful connection, the GPRS terminal to server is sent out and is logged in request command, the waiting for server authentication.
Further, server adopts the mode of SMS notification when initiatively the sending service data are to the GPRS terminal, server sends the SMS notification GPRS terminal of encrypting and initiates to connect, after the GPRS terminal is received note, initiate TCP to server and connect, can carry out data transmit-receive after the TCP successful connection.
The large-scale GPRS terminal equipment of the present invention networking method is not when having the data both sides to transmit at ordinary times, and the GPRS terminal just is attached on the base station, keeps silent status, and both sides do not have transport layer TCP or UDP link; When having business datum to transmit, set up again TCP or UDP link, little but need the application scenario of real-time Data Transmission that preferably result of use is arranged in amount of communication data.
Description of drawings
Figure 1A, 1B are flow process diagrams of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The large-scale GPRS terminal equipment of the present invention networking method is not when having the data both sides to transmit at ordinary times, and the GPRS terminal just is attached on the base station, keeps silent status, and both sides do not have transport layer TCP or UDP link; When having business datum to transmit, set up again TCP or UDP link, business datum is transmitted, after the operation layer transfer of data was finished, both sides kept linking certain hour, were 30 seconds in the embodiment of the invention, this time is the idle waiting time, be adjustable, confirm both sides when this nearest idle waiting does not all have the business datum transmitting-receiving in the time, port TCP connectivity restitution silent status.
Particularly, the large-scale GPRS terminal equipment of the present invention networking method comprises the steps:
S10: judge whether data are in transmission between GPRS terminal and the server;
S11: according to the judged result of step S10, when not having data in transmission, processor sends to the GPRS module and disconnects the TCP bind command, keeps silent status.
Under the silent status, base station and GPRS terminal all keep the scene of oneself, namely keep the context of communication, and the GPRS terminal is equivalent to be attached on the base station.Under this silent status, transfer of data does not occur in GPRS terminal equipment and base station, does not produce flow, if but GPRS terminal equipment when needing outward the transmission of data, the connection of initiating still can establish a communications link very soon because the communication context of original base station and GPRS terminal keeps.
According to the judged result of step S10, when professional transmission was arranged, processor sent the order that connects to the GPRS module and can connect with server.Then, server and GPRS terminal judge separately have or not in nearest 30 seconds business datum the transmission, if do not have business datum the transmission, represent that then business datum is transmitted.
Particularly, with reference to shown in Figure 1, the GPRS terminal communicate by letter with server include the GPRS terminal initiatively the sending service data to server and server initiatively the sending service data to two kinds of situations of GPRS terminal.
Wherein, the GPRS terminal is during initiatively to the server service data transmission, and the I P of server is a fixedly IP, and the GPRS terminal is as the TCP client, and server end, is set up TCP and connected just passable as long as send the TCP connection request to server as the TCP server end.Idiographic flow is as follows:
Whether the GPRS terminal judges is in the GPRS attachment state, and if so, then the GPRS terminal to server is initiated the TCP connection; If not, then the GPRS terminal microprocessor initiates to adhere to order to the GPRS module first, and then the GPRS terminal is initiated the TCP connection to server again.After the successful connection, the GPRS terminal to server is sent out and is logged in request command, the waiting for server authentication, if server is agreed request command through replying after authenticating, then the GPRS terminal judges has or not business datum to need to send, if send business datum, waiting for server answering service data to server.If receive professional reply data at the appointed time, then whether the GPRS terminal judges has business datum to send and receive in nearest 30 seconds, if if recently. all send without professional data in 30 seconds and receive, then the GPRS terminal to server sends the request of withdrawing from that logs in, waiting for server is replied, after receiving server acknowledge, the GPRS terminal disconnects TCP and connects; If do not receive and reply, then wait the time of by the time appointment, the stand-by period disconnects TCP to rear GPRS terminal and connects.
And server is when initiatively the sending service data are to the GPRS terminal, because the IP of GPRS terminal is dynamic, each its IP and port that be connected on the public network is all different, server can't be initiatively and the GPRS terminal set up the TCP annexation.Therefore need to adopt the mode of SMS notification, server sends the SMS notification GPRS terminal of encrypting and initiates to connect, and after the GPRS terminal is received note, initiates TCP to server and connects.Just can carry out data transmit-receive after the TCP successful connection, specific as follows:
Server is sent short messages notice to the GPRS terminal, and the GPRS terminal detects the note notifying messages of whether reaching the standard grade, if reach the standard grade notifying messages, then initiates TCP to server and connects, and just can carry out data transmit-receive after the TCP successful connection; As not being the notifying messages of reaching the standard grade, then with the note discard processing.
Press such as upper type, GPRS terminal and server both sides communicate on the basis of ensuring communication safety property, and the complete rear GPRS equipment of communicating by letter has been in again silent status, greatly reduces the load of base station.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. a large-scale GPRS terminal equipment networking method is characterized in that, comprises the steps:
S10: judge whether data are in transmission between GPRS terminal and the server;
S11: according to the judged result of step S10, when not having data in transmission, processor sends to the GPRS module and disconnects the TCP bind command, keeps silent status; When professional transmission was arranged, processor sent the order that connects to the GPRS module and can connect with server.
2. large-scale GPRS terminal equipment networking method as claimed in claim 1, it is characterized in that: under described silent status, base station and GPRS terminal all keep the scene of oneself.
3. large-scale GPRS terminal equipment networking method as claimed in claim 2, it is characterized in that: when having business datum to transmit, set up TCP or UDP link, business datum is transmitted, after the operation layer transfer of data is finished, it is the stand-by period that both sides keep linking certain hour, when confirming that both sides do not have the business datum transmitting-receiving within waiting time, and port TCP connectivity restitution silent status.
4. large-scale GPRS terminal equipment networking method as claimed in claim 3 is characterized in that, further comprises the steps:
The GPRS terminal is during initiatively to the server service data transmission, and whether the GPRS terminal judges is in the GPRS attachment state, and if so, then the GPRS terminal to server is initiated TCP and connected; If not, then the GPRS terminal microprocessor initiates to adhere to order to the GPRS module first, and then the GPRS terminal is initiated the TCP connection to server again, and after the successful connection, the GPRS terminal to server is sent out and is logged in request command, the waiting for server authentication.
5. large-scale GPRS terminal equipment networking method as claimed in claim 3 is characterized in that, further comprises the steps:
Server is when initiatively the sending service data are to the GPRS terminal, adopt the mode of SMS notification, server sends the SMS notification GPRS terminal of encrypting and initiates to connect, after the GPRS terminal is received note, initiate TCP to server and connect, can carry out data transmit-receive after the TCP successful connection.
CN2012105181470A 2012-12-05 2012-12-05 Large-scale GPRS (general packet radio service) terminal device networking method Pending CN102984814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105181470A CN102984814A (en) 2012-12-05 2012-12-05 Large-scale GPRS (general packet radio service) terminal device networking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105181470A CN102984814A (en) 2012-12-05 2012-12-05 Large-scale GPRS (general packet radio service) terminal device networking method

Publications (1)

Publication Number Publication Date
CN102984814A true CN102984814A (en) 2013-03-20

Family

ID=47858438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105181470A Pending CN102984814A (en) 2012-12-05 2012-12-05 Large-scale GPRS (general packet radio service) terminal device networking method

Country Status (1)

Country Link
CN (1) CN102984814A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105759697A (en) * 2016-04-29 2016-07-13 沈阳仪表科学研究院有限公司 Informatization monitoring management system for elevator
CN107426806A (en) * 2017-07-17 2017-12-01 深圳市盛路物联通讯技术有限公司 Internet-of-things terminal transmits the method and device of data
CN108023944A (en) * 2017-11-29 2018-05-11 深圳市天颐健康科技有限公司 Cloud platform and its control method, smart machine and its control method
CN108156149A (en) * 2017-12-21 2018-06-12 杭州海兴电力科技股份有限公司 Communication means and system based on Transmission Control Protocol
US10111207B2 (en) 2013-11-07 2018-10-23 Huawei Technologies Co., Ltd. Network device, terminal device, and voice service control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863185A (en) * 2005-05-12 2006-11-15 中国科学院计算技术研究所 Conversation managing method for multi-node intelligent network application service system
CN101827326A (en) * 2010-03-22 2010-09-08 深圳市芯朗金能源技术有限公司 Method for maintaining link communication and device thereof
CN102546538A (en) * 2010-12-15 2012-07-04 中兴通讯股份有限公司 Business continuity implementation method and business continuity implementation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863185A (en) * 2005-05-12 2006-11-15 中国科学院计算技术研究所 Conversation managing method for multi-node intelligent network application service system
CN101827326A (en) * 2010-03-22 2010-09-08 深圳市芯朗金能源技术有限公司 Method for maintaining link communication and device thereof
CN102546538A (en) * 2010-12-15 2012-07-04 中兴通讯股份有限公司 Business continuity implementation method and business continuity implementation system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
谷亚宁: "基于无线通信技术的远程监控系统的设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
钟子果: "基于GPRS移动通信网络数据传输系统的研究与实现", 《移动通信》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10111207B2 (en) 2013-11-07 2018-10-23 Huawei Technologies Co., Ltd. Network device, terminal device, and voice service control method
CN105759697A (en) * 2016-04-29 2016-07-13 沈阳仪表科学研究院有限公司 Informatization monitoring management system for elevator
CN107426806A (en) * 2017-07-17 2017-12-01 深圳市盛路物联通讯技术有限公司 Internet-of-things terminal transmits the method and device of data
CN107426806B (en) * 2017-07-17 2021-01-26 深圳市盛路物联通讯技术有限公司 Method and device for transmitting data by Internet of things terminal
CN108023944A (en) * 2017-11-29 2018-05-11 深圳市天颐健康科技有限公司 Cloud platform and its control method, smart machine and its control method
CN108156149A (en) * 2017-12-21 2018-06-12 杭州海兴电力科技股份有限公司 Communication means and system based on Transmission Control Protocol
CN108156149B (en) * 2017-12-21 2021-02-23 杭州海兴电力科技股份有限公司 Communication method and system based on TCP protocol

Similar Documents

Publication Publication Date Title
CN101909257B (en) Method and system for realizing concurrency access of multiple bearer protocols by M2M platform
CN101170745B (en) Bluetooth-based instant communication method, server, system and terminal
WO2013097452A1 (en) Method for receiving data, method for transmitting data, mobile terminal, and server
CN102811335B (en) Set up the method, apparatus and system of video session
WO2014059813A1 (en) Data transmission method and terminal device
CN102647314A (en) Client side on-line state judgment method and system
CN102984814A (en) Large-scale GPRS (general packet radio service) terminal device networking method
CN103297470B (en) The processing method of always online business, application server, user terminal and system
CN103001860A (en) Achieving system for converged communication Web instant messages
US9571409B2 (en) Maximum transmission unit negotiation method and data terminal
CN103517409B (en) Information transferring method, system and equipment
CN102177697A (en) Method for controlling internet services, and relevant device and system
CN106453356B (en) The bilateral acceleration transmission method of wireless network and system
CN104270355A (en) Cross-safety-zone data transmission method based on network bus
CN107172572B (en) Virtual connections method based on low-power consumption bluetooth and the wireless charging agreement using this method
CN103457985B (en) A kind of dual-channels communication method and system
CN101299689B (en) On-line detection method as well as mail server
RU2007108254A (en) METHOD FOR RESERVING SERVICES IN "PUSH-TO" SYSTEM
CN103313406A (en) Method for carrying out D2D (device-to-device) communication between different cells by adopting signaling interaction of X2 interfaces
CA2613759A1 (en) Method and system for communicating a message attachment
CN104462033A (en) Method and device for realizing editing operation among devices
CN104821909A (en) Peer-to-peer data transmission method and system
CN103369604A (en) Method , network device and terminal for realizing switching to device-to-device communication mode
CN101779415A (en) Method of preventing tcp-based denial-of-service attacks on mobile devices
CN103338184A (en) Data transmitting method and apparatus, data receiving apparatus and data transmission system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130320