CN109067932B - Data transmission method for data acquisition terminal without fixed IP and data server - Google Patents

Data transmission method for data acquisition terminal without fixed IP and data server Download PDF

Info

Publication number
CN109067932B
CN109067932B CN201810819480.2A CN201810819480A CN109067932B CN 109067932 B CN109067932 B CN 109067932B CN 201810819480 A CN201810819480 A CN 201810819480A CN 109067932 B CN109067932 B CN 109067932B
Authority
CN
China
Prior art keywords
data
data acquisition
acquisition terminal
identity
terminal
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.)
Active
Application number
CN201810819480.2A
Other languages
Chinese (zh)
Other versions
CN109067932A (en
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.)
Guangzhou Guanxing Electric Energy Technology Co ltd
Original Assignee
Guangzhou Guanxing Electric Energy 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 Guangzhou Guanxing Electric Energy Technology Co ltd filed Critical Guangzhou Guanxing Electric Energy Technology Co ltd
Priority to CN201810819480.2A priority Critical patent/CN109067932B/en
Publication of CN109067932A publication Critical patent/CN109067932A/en
Application granted granted Critical
Publication of CN109067932B publication Critical patent/CN109067932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4552Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data transmission method of a data acquisition terminal without a fixed IP (Internet protocol) and a data server, which solve the technical problem of determining which data acquisition terminal of a plurality of data acquisition terminals sends a received data packet by the data server under the condition that the data acquisition terminal does not have a fixed IP address. The method comprises the following steps: receiving a data packet sent by an unknown data acquisition terminal; analyzing the data packet, and extracting a first identity mark contained in the data packet; judging whether a second identity label identical to the first identity label exists in the online terminal list, if so, sending the data packet to an application end, executing the next step, and if not, deleting the data packet; and judging whether a first confirmation signal returned by the application terminal is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, sending the data packet to the application terminal again.

Description

Data transmission method for data acquisition terminal without fixed IP and data server
Technical Field
The invention relates to the technical field of communication, in particular to a data transmission method of a data acquisition terminal without a fixed IP and a data server.
Background
In a switch room, there are many monitoring terminals, such as an electrical information monitoring terminal, an environmental temperature and humidity monitoring terminal, a camera, and the like. Various data acquired by the monitoring terminal are gathered through the data acquisition terminal, namely a switch room, and then uploaded to the application terminal through the data server terminal for processing and application. Because the number of data acquisition terminals is numerous, the data server needs to judge which data acquisition terminal a received data packet belongs to, and the current methods include two types:
1. leasing APN service of a telecom operator, so that each data acquisition terminal and each data service terminal have a unique intranet IP, and the data service terminal judges which data acquisition terminal a received data packet belongs to according to the intranet IP connected with the data acquisition terminal, and the scheme needs to pay expensive APN service cost to the telecom operator;
2. the scheme is characterized in that independent public network private lines are applied to each data acquisition terminal, each data acquisition terminal is provided with a unique public network IP, the data server judges which data acquisition terminal a received data packet belongs to according to the public network IP connected with the data acquisition terminal, and expensive public network private line cost needs to be paid to a network operator.
Because the existing communication method is expensive and is not suitable for the connection between a large number of data acquisition terminals and a data server, how to enable the data server to determine which data acquisition terminal of the large number of data acquisition terminals sends a received data packet is a technical problem that needs to be solved urgently by those skilled in the art when the data acquisition terminal does not have a fixed IP address.
Disclosure of Invention
The invention provides a data transmission method of a data acquisition terminal without a fixed IP (Internet protocol) and a data server, which solve the technical problem of determining which data acquisition terminal of a plurality of data acquisition terminals sends a received data packet by the data server under the condition that the data acquisition terminal does not have a fixed IP address.
The invention provides a data transmission method of a data acquisition terminal without a fixed IP, which comprises the following steps:
receiving a data packet sent by an unknown data acquisition terminal;
analyzing the data packet, and extracting a first identity mark contained in the data packet;
judging whether a second identity mark identical to the first identity mark exists in the online terminal list, if so, sending the data packet to an application end, executing the next step, and if not, deleting the data packet;
and judging whether a first confirmation signal returned by the application terminal is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, sending the data packet to the application terminal again.
Optionally, the method further comprises:
receiving a data transmission instruction sent by an application terminal to a known data acquisition terminal;
extracting a third identity corresponding to the known data acquisition terminal according to the data transmission instruction;
and judging whether a second identity label identical to the third identity label exists in the online terminal list, if so, sending the data transmission instruction to a registered data acquisition terminal corresponding to the second identity label, and if not, returning a communication failure signal to the application terminal.
Optionally, before the receiving the data packet sent by the unknown data acquisition terminal or the receiving the data transmission instruction sent by the application terminal to the known data acquisition terminal, the method further includes:
after establishing connection with a registered data acquisition terminal, receiving a second identity identifier sent by the registered data acquisition terminal;
and associating the registration data acquisition terminal with the second identity and storing the second identity in an online terminal list.
Optionally, after associating and storing the registration data acquisition terminal and the second identity to an online terminal list, the method further includes:
and judging whether the time interval for receiving the second identity identifier sent by the registered data acquisition terminal is lower than a preset time interval threshold value, if so, not acting, and if not, removing the registered data acquisition terminal and the second identity identifier corresponding to the registered data acquisition terminal from the online terminal list.
The invention provides a data transmission method of a data acquisition terminal without a fixed IP, which comprises the following steps:
sending a data packet containing the first identity identifier to a data server;
and judging whether a second confirmation signal returned by the data server is received, if so, not acting, otherwise, establishing connection with the data server again and sending the data packet to the data server.
Optionally, before sending the data packet to the data server, the method further includes:
and after the connection with the data server is established, sending a second identity to the data server.
The invention provides a data server, comprising:
the first receiving unit is used for receiving a data packet sent by an unknown data acquisition terminal;
the first extraction unit is used for analyzing the data packet and extracting a first identity mark contained in the data packet;
the first judging unit is used for judging whether a second identity label which is the same as the first identity label exists in the online terminal list, if so, the data packet is sent to an application end, the next step is executed, and if not, the data packet is deleted;
and the second judging unit is used for judging whether a first confirmation signal returned by the application end is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity, and if not, sending the data packet to the application end again.
Optionally, the method further comprises:
the second receiving unit is used for receiving a data transmission instruction sent by the application terminal to the known data acquisition terminal;
the second extraction unit is used for extracting a third identity corresponding to the known data acquisition terminal according to the data transmission instruction;
and the third judging unit is used for judging whether a second identity identifier which is the same as the third identity identifier exists in the online terminal list, if so, sending the data transmission instruction to a registered data acquisition terminal corresponding to the second identity identifier, and if not, returning a communication failure signal to the application terminal.
Optionally, the method further comprises:
the third receiving unit is used for receiving a second identity mark sent by the registered data acquisition terminal after the connection with the registered data acquisition terminal is established;
and the storage unit is used for associating the registration data acquisition terminal with the second identity and storing the second identity into an online terminal list.
Optionally, the method further comprises:
and the fourth judging unit is used for judging whether the time interval for receiving the second identity identifier sent by the registered data acquisition terminal is lower than a preset time interval threshold value, if so, the registered data acquisition terminal does not act, and if not, the registered data acquisition terminal and the second identity identifier corresponding to the registered data acquisition terminal are removed from the online terminal list.
According to the technical scheme, the invention has the following advantages:
the invention provides a data transmission method of a data acquisition terminal without a fixed IP, which comprises the following steps: receiving a data packet sent by an unknown data acquisition terminal; analyzing the data packet, and extracting a first identity mark contained in the data packet; judging whether a second identity mark identical to the first identity mark exists in the online terminal list, if so, sending the data packet to an application end, executing the next step, and if not, deleting the data packet; and judging whether a first confirmation signal returned by the application terminal is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, deleting the data packet.
In the invention, after a received data packet is analyzed, a first identity mark corresponding to the data packet is extracted, and a second identity mark which is the same as the first identity mark is searched in an online terminal list, so that the unknown data acquisition terminal which sends the data packet can be determined to be which registered data acquisition terminal in the online terminal list, namely, the data server can be used for clearly determining the registered data acquisition terminal corresponding to the data packet, and the technical problem of determining the received data packet to be sent by which data acquisition terminal in a plurality of data acquisition terminals by the data server under the condition that the data acquisition terminal does not have a fixed IP address is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a data transmission method of a data acquisition terminal without a fixed IP according to a first embodiment of the present invention;
fig. 2 is a schematic flowchart of a data transmission method of a data acquisition terminal without a fixed IP according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a data transmission method of a data acquisition terminal without a fixed IP according to a third embodiment of the present invention;
fig. 4 is a schematic flowchart of a fourth embodiment of a data transmission method of a data acquisition terminal without a fixed IP according to the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a data server provided in the present invention;
fig. 6 is a schematic structural diagram of another embodiment of a data server according to the present invention.
Detailed Description
The embodiment of the invention provides a data transmission method of a data acquisition terminal without a fixed IP and a data server, and solves the technical problem of how to enable the data server to determine which data acquisition terminal of a plurality of data acquisition terminals sends a received data packet under the condition that the data acquisition terminal does not have a fixed IP address.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a first embodiment of a data transmission method for a data acquisition terminal without a fixed IP, including:
101. receiving a data packet sent by an unknown data acquisition terminal;
it should be noted that, the data server first receives a data packet sent by an unknown data acquisition terminal in the plurality of data acquisition terminals.
102. Analyzing the data packet, and extracting a first identity mark contained in the data packet;
it should be noted that, after receiving a data packet sent by an unknown data acquisition terminal, the data packet is analyzed to extract a first identity identifier included in the data packet, where the identity identifier may be a SIM card number, an MAC of a network card used by the data acquisition terminal, or other unique ID numbers.
103. Judging whether a second identity label identical to the first identity label exists in the online terminal list, if so, sending the data packet to an application end, executing the next step, and if not, deleting the data packet;
it should be noted that, after the first identity included in the data packet is extracted, according to the first identity, the data server searches a second identity corresponding to the stored registered data acquisition terminal in the online terminal list, and determines whether there is a second identity identical to the first identity, that is, an unknown data acquisition terminal that sends the data packet can be determined according to the registered data acquisition terminal corresponding to the second identity, if there is no identical second identity, the unknown data acquisition terminal that represents that the data packet is sent is disconnected from the data server, the data packet is deleted, the unknown data acquisition terminal is waited to be connected with the data server again and send the data packet again, and if there is an identical second identity, the data packet is sent to the application terminal for data consumption.
104. Judging whether a first confirmation signal returned by the application terminal is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, sending the data packet to the application terminal again;
it should be noted that, after receiving the data packet, the application end applies and consumes the data contained in the data packet, in order to prevent the application end from unsuccessfully receiving the data packet, the application end returns a first acknowledgement signal to the data service end after successfully consuming the data packet, and the data service end can return a second acknowledgement signal to the data acquisition terminal to confirm that the transmission process of the entire data packet is complete only after determining that the first acknowledgement signal returned by the application end is received, otherwise, the data packet needs to be sent to the application end again, and then the determination process of step 104 is executed.
In the embodiment of the invention, after a received data packet is analyzed, a first identity mark corresponding to the data packet is extracted, and a second identity mark which is the same as the first identity mark is searched in an online terminal list, so that an unknown data acquisition terminal for sending the data packet can be determined to be a registered data acquisition terminal in the online terminal list, namely, a data server can know the registered data acquisition terminal corresponding to the data packet, and the technical problem of determining the received data packet to be sent by which data acquisition terminal in a plurality of data acquisition terminals by the data server under the condition that the data acquisition terminal does not have a fixed IP address is solved.
The above is a description of a first embodiment of the data transmission method without a fixed IP of the data acquisition terminal provided by the present invention, and a second embodiment of the data transmission method without a fixed IP of the data acquisition terminal provided by the present invention is described below.
Referring to fig. 2, a second embodiment of a data transmission method for a data acquisition terminal without a fixed IP according to the present invention includes:
201. after establishing connection with the registered data acquisition terminal, receiving a second identity mark sent by the registered data acquisition terminal;
it should be noted that, on the premise that the IP address of the data server is known, the registered data acquisition terminal may establish a connection with the data server, and after the connection is established, the registered data acquisition terminal sends the second identity to the data server.
202. The registration data acquisition terminal is associated with the second identity identifier and stored in an online terminal list;
it should be noted that, after receiving the second identity identifier sent by the registered data acquisition terminal, the registered data acquisition terminal is associated with the second identity identifier and stored in the online terminal list, and the online terminal list represents which of the registered data acquisition terminal successfully connected with the data server and the corresponding second identity identifier are currently.
203. Judging whether the time interval for receiving the second identity identification sent by the registered data acquisition terminal is lower than a preset time interval threshold value or not, if so, not acting, and if not, removing the registered data acquisition terminal and the corresponding second identity identification from the online terminal list;
it should be noted that, after the registered data acquisition terminal establishes a connection with the data server, the registered data acquisition terminal needs to continuously send the second identity identifier to the data server within a preset time interval threshold value to ensure that the registered data acquisition terminal and the data server are kept in a connection state, otherwise, the registered data acquisition terminal and the corresponding second identity identifier thereof are removed from the online terminal list.
204. Receiving a data packet sent by an unknown data acquisition terminal;
it should be noted that, the data server first receives a data packet sent by an unknown data acquisition terminal in the plurality of data acquisition terminals.
205. Analyzing the data packet, and extracting a first identity mark contained in the data packet;
it should be noted that, after receiving a data packet sent by an unknown data acquisition terminal, the data packet is analyzed to extract a first identity identifier included in the data packet, where the identity identifier may be a SIM card number, an MAC of a network card used by the data acquisition terminal, or other unique ID numbers.
206. Judging whether a second identity label identical to the first identity label exists in the online terminal list, if so, sending the data packet to an application end, executing the next step, and if not, deleting the data packet;
after the first identity mark contained in the data packet is extracted, the data server searches a second identity mark corresponding to the stored registered data acquisition terminal in the online terminal list according to the first identity mark, judges whether a second identity mark identical to the first identity mark exists, namely, an unknown data acquisition terminal for sending the data packet can be determined according to the registered data acquisition terminal corresponding to the second identity mark, if the same second identity mark does not exist, the unknown data acquisition terminal representing that the data packet is sent is disconnected with the data server, deletes the data packet, waits for the unknown data acquisition terminal to be connected with the data server again and sends the data packet again;
207. judging whether a first confirmation signal returned by the application terminal is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, sending the data packet to the application terminal again;
it should be noted that, after receiving the data packet, the application end applies and consumes the data contained in the data packet, in order to prevent the application end from unsuccessfully receiving the data packet, the application end returns a first acknowledgement signal to the data service end after successfully consuming the data packet, and the data service end can return a second acknowledgement signal to the data acquisition terminal to confirm that the transmission process of the entire data packet is complete only after determining that the first acknowledgement signal returned by the application end is received, otherwise, the data packet needs to be sent to the application end again, and then the determination process of step 207 is executed.
Steps 208 to 210 are data transmission methods when the application terminal needs to issue a data transmission instruction to the known data acquisition terminal:
208. receiving a data transmission instruction sent by an application terminal to a known data acquisition terminal;
it should be noted that, when the application needs to communicate with the known data acquisition terminal, the data server first receives a data transmission instruction sent by the application to the known data acquisition terminal.
209. Extracting a third identity corresponding to the known data acquisition terminal according to the data transmission instruction;
it should be noted that, after receiving a data transmission instruction for a known data acquisition terminal, a third identity corresponding to the known data acquisition terminal is extracted according to the data transmission instruction.
210. Judging whether a second identity label identical to the third identity label exists in the online terminal list, if so, sending a data transmission instruction to a registered data acquisition terminal corresponding to the second identity label, and if not, returning a communication failure signal to the application terminal;
it should be noted that, after the third identity included in the data transmission instruction is extracted, according to the third identity, the data server searches a second identity corresponding to the stored registered data acquisition terminal in the online terminal list, and determines whether there is a second identity identical to the third identity, that is, it can determine whether the known data acquisition terminal that the application wants to communicate is connected to the data server according to the registered data acquisition terminal corresponding to the second identity, if there is no identical second identity, the known data acquisition terminal that represents the application needs to communicate is disconnected from the data server, that is, communication cannot be established, and a communication failure signal is returned to the application; and if the same second identity identification exists, sending the data transmission instruction to the registered data acquisition terminal corresponding to the second identity identification.
The above is a description of a second embodiment of the data transmission method without a fixed IP of the data acquisition terminal provided by the present invention, and a third embodiment of the data transmission method without a fixed IP of the data acquisition terminal provided by the present invention is described below.
Referring to fig. 3, the third embodiment of the data transmission method without fixed IP for a data acquisition terminal according to the present invention includes:
301. sending a data packet containing the first identity identifier to a data server;
it should be noted that, when each data acquisition terminal performs data transmission with the data server, the transmitted data packet needs to include the corresponding first identity identifier.
302. Judging whether a second confirmation signal returned by the data server side is received or not, if so, not acting, and if not, re-establishing connection with the data server side and sending a data packet to the data server side;
it should be noted that, after the data packet including the first identity identifier is sent to the data server, if the data server does not return the second confirmation signal, it is necessary to establish connection with the data server again and send the data packet to the data server, which represents that the data acquisition terminal is not successfully connected with the data server.
The above is a description of a third embodiment of the data transmission method without a fixed IP of the data acquisition terminal provided by the present invention, and a fourth embodiment of the data transmission method without a fixed IP of the data acquisition terminal provided by the present invention is described below.
Referring to fig. 4, a fourth embodiment of a data transmission method for a data acquisition terminal without a fixed IP according to the present invention includes:
401. after establishing connection with the data server, sending a second identity to the data server;
it should be noted that, after each data acquisition terminal establishes a connection with the data server, first, a second identity needs to be sent to the data server for registration, and the first identity and the second identity of each data acquisition terminal are the same.
402. Sending a data packet containing the first identity identifier to a data server;
it should be noted that, when each data acquisition terminal performs data transmission with the data server, the transmitted data packet needs to include the corresponding first identity identifier.
403. Judging whether a second confirmation signal returned by the data server side is received or not, if so, not acting, and if not, re-establishing connection with the data server side and sending a data packet to the data server side;
it should be noted that, after the data packet including the first identity identifier is sent to the data server, if the data server does not return the second confirmation signal, it is necessary to establish connection with the data server again and send the data packet to the data server, which represents that the data acquisition terminal is not successfully connected with the data server.
The above is a description of a fourth embodiment of the data transmission method without fixed IP for the data acquisition terminal provided by the present invention, and an embodiment of a data service end provided by the present invention is described below.
Referring to fig. 5, an embodiment of a data server according to the present invention includes:
a first receiving unit 501, configured to receive a data packet sent by an unknown data acquisition terminal;
a first extracting unit 502, configured to analyze the data packet and extract a first identity identifier included in the data packet;
a first determining unit 503, configured to determine whether a second identity identical to the first identity exists in the online terminal list, if yes, send the data packet to the application end, and execute the next step, and if not, delete the data packet;
the second determining unit 504 is configured to determine whether a first confirmation signal returned by the application terminal is received, if so, return a second confirmation signal to the registered data acquisition terminal corresponding to the second identity, and if not, send the data packet to the application terminal again.
In the embodiment of the present invention, after the first extraction unit 502 analyzes the received data packet, a first identity identifier corresponding to the data packet is extracted, and the first judgment unit 503 searches for a second identity identifier that is the same as the first identity identifier in the online terminal list, that is, it can be determined which registered data acquisition terminal in the online terminal list the unknown data acquisition terminal that sends the data packet is, that is, the data server can know the registered data acquisition terminal corresponding to the data packet, so as to solve the technical problem of how to make the data server determine which data acquisition terminal in the plurality of data acquisition terminals sends the received data packet when the data acquisition terminal does not have a fixed IP address.
The above is a description of an embodiment of a data server provided by the present invention, and another embodiment of a data server provided by the present invention is described below.
Referring to fig. 6, another embodiment of a data server according to the present invention includes:
the third receiving unit 601 is configured to receive the second identity identifier sent by the registered data acquisition terminal after establishing connection with the registered data acquisition terminal;
a storing unit 602, configured to associate the registered data acquisition terminal with the second identity identifier and store the associated registered data acquisition terminal in the online terminal list;
a fourth judging unit 603, configured to judge whether a time interval for receiving the second identity identifier sent by the registered data acquisition terminal is lower than a preset time interval threshold, if yes, not act, and if not, remove the registered data acquisition terminal and the second identity identifier corresponding to the registered data acquisition terminal from the online terminal list;
a first receiving unit 604, configured to receive a data packet sent by an unknown data acquisition terminal;
a first extracting unit 605, configured to analyze the data packet and extract a first identity identifier included in the data packet;
a first determining unit 606, configured to determine whether a second identity identical to the first identity exists in the online terminal list, if yes, send the data packet to the application end, and execute the next step, and if not, delete the data packet;
the second determining unit 607 is configured to determine whether a first confirmation signal returned by the application terminal is received, if so, return a second confirmation signal to the registered data acquisition terminal corresponding to the second identity, and if not, send the data packet to the application terminal again;
a second receiving unit 608, configured to receive a data transmission instruction sent by an application terminal to a known data acquisition terminal;
the second extracting unit 609 is configured to extract a third identity corresponding to the known data acquisition terminal according to the data transmission instruction;
the third determining unit 610 is configured to determine whether a second identity identical to the third identity exists in the online terminal list, send a data transmission instruction to the registered data acquisition terminal corresponding to the second identity if the second identity exists in the online terminal list, and return a communication failure signal to the application if the second identity does not exist in the online terminal list.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A data transmission method of a data acquisition terminal without a fixed IP is characterized by comprising the following steps:
receiving a data packet sent by an unknown data acquisition terminal;
analyzing the data packet, and extracting a first identity mark contained in the data packet;
judging whether a second identity mark identical to the first identity mark exists in the online terminal list, if so, sending the data packet to an application end, executing the next step, and if not, deleting the data packet;
judging whether a first confirmation signal returned by the application terminal is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, sending the data packet to the application terminal again;
before the receiving a data packet sent by an unknown data acquisition terminal or a data transmission instruction sent by an application terminal to a known data acquisition terminal, the method further comprises:
after establishing connection with a registered data acquisition terminal, receiving a second identity identifier sent by the registered data acquisition terminal;
associating the registration data acquisition terminal with the second identity identifier and storing the second identity identifier and the second identity identifier in an online terminal list;
after associating the registration data acquisition terminal with the second identity and storing the second identity into an online terminal list, the method further comprises the following steps:
and judging whether the time interval for receiving the second identity identifier sent by the registered data acquisition terminal is lower than a preset time interval threshold value, if so, not acting, and if not, removing the registered data acquisition terminal and the second identity identifier corresponding to the registered data acquisition terminal from the online terminal list.
2. The data transmission method without fixed IP for the data collection terminal according to claim 1, further comprising:
receiving a data transmission instruction sent by an application terminal to a known data acquisition terminal;
extracting a third identity corresponding to the known data acquisition terminal according to the data transmission instruction;
and judging whether a second identity label identical to the third identity label exists in the online terminal list, if so, sending the data transmission instruction to a registered data acquisition terminal corresponding to the second identity label, and if not, returning a communication failure signal to the application terminal.
3. A data transmission method of a data acquisition terminal without a fixed IP is characterized by comprising the following steps:
the data acquisition terminal sends a data packet containing the first identity identifier to the data server;
the data server side processes the data packet according to the data transmission method without the fixed IP of the data acquisition terminal as claimed in any one of claims 1-2, and judges whether to send a second confirmation signal to the data acquisition terminal;
and the data acquisition terminal judges whether the second confirmation signal returned by the data server is received, if so, the data acquisition terminal does not act, and if not, the data acquisition terminal establishes connection with the data server again and sends the data packet to the data server.
4. The data transmission method without fixed IP for the data acquisition terminal according to claim 3, wherein before sending the data packet to the data service end, the method further comprises:
and after the connection with the data server is established, sending a second identity to the data server.
5. A data server, comprising:
the first receiving unit is used for receiving a data packet sent by an unknown data acquisition terminal;
the first extraction unit is used for analyzing the data packet and extracting a first identity mark contained in the data packet;
the first judging unit is used for judging whether a second identity label which is the same as the first identity label exists in the online terminal list, if so, the data packet is sent to an application end, the next step is executed, and if not, the data packet is deleted;
the second judging unit is used for judging whether a first confirmation signal returned by the application end is received or not, if so, returning a second confirmation signal to the registered data acquisition terminal corresponding to the second identity identifier, and if not, sending the data packet to the application end again;
the third receiving unit is used for receiving a second identity mark sent by the registered data acquisition terminal after the connection with the registered data acquisition terminal is established;
the storage unit is used for associating the registration data acquisition terminal with the second identity identifier and storing the second identity identifier and the second identity identifier into an online terminal list;
and the fourth judging unit is used for judging whether the time interval for receiving the second identity identifier sent by the registered data acquisition terminal is lower than a preset time interval threshold value, if so, the registered data acquisition terminal does not act, and if not, the registered data acquisition terminal and the second identity identifier corresponding to the registered data acquisition terminal are removed from the online terminal list.
6. The data server of claim 5, further comprising:
the second receiving unit is used for receiving a data transmission instruction sent by the application terminal to the known data acquisition terminal;
the second extraction unit is used for extracting a third identity corresponding to the known data acquisition terminal according to the data transmission instruction;
and the third judging unit is used for judging whether a second identity identifier which is the same as the third identity identifier exists in the online terminal list, if so, sending the data transmission instruction to a registered data acquisition terminal corresponding to the second identity identifier, and if not, returning a communication failure signal to the application terminal.
CN201810819480.2A 2018-07-24 2018-07-24 Data transmission method for data acquisition terminal without fixed IP and data server Active CN109067932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810819480.2A CN109067932B (en) 2018-07-24 2018-07-24 Data transmission method for data acquisition terminal without fixed IP and data server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810819480.2A CN109067932B (en) 2018-07-24 2018-07-24 Data transmission method for data acquisition terminal without fixed IP and data server

Publications (2)

Publication Number Publication Date
CN109067932A CN109067932A (en) 2018-12-21
CN109067932B true CN109067932B (en) 2022-01-25

Family

ID=64836161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810819480.2A Active CN109067932B (en) 2018-07-24 2018-07-24 Data transmission method for data acquisition terminal without fixed IP and data server

Country Status (1)

Country Link
CN (1) CN109067932B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615930B (en) * 2020-12-25 2022-08-23 北京东土科技股份有限公司 Multi-node data synchronous distribution method, device, equipment and storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100913869B1 (en) * 2002-10-28 2009-08-26 삼성전자주식회사 Terminal and method for creating and changing automatically configuration information in wireless-lan
WO2006126085A1 (en) * 2005-05-27 2006-11-30 Nokia Corporation Expanded signalling capability for network element, user equipment and system
CN103312382B (en) * 2012-03-14 2016-12-14 联想(北京)有限公司 A kind of data transmission method, operation equipment and system
CN102970710B (en) * 2012-10-18 2015-11-18 上海中觅通信技术有限公司 A kind of data transmission method and base station
CN103167033B (en) * 2013-03-11 2015-11-18 深圳创维-Rgb电子有限公司 The method and system of remote monitoring and administration
CN103281161B (en) * 2013-05-17 2016-04-27 深圳市康凯斯信息技术有限公司 The means of communication of a kind of GPS locating terminal and background server
CN103532975B (en) * 2013-10-28 2016-08-17 国家电网公司 A kind of can dynamic smoothing extension data collecting system and method
CN104468265A (en) * 2014-11-19 2015-03-25 北京国双科技有限公司 Method and device for detecting online states of local area network terminals
WO2017023304A1 (en) * 2015-08-05 2017-02-09 Hewlett Packard Enterprise Development Lp Verification of a device identifier of a mobile device
CN205374237U (en) * 2016-01-09 2016-07-06 惠州市物联微电子有限公司 Fine particles detecting system in distributing type air
CN107204966A (en) * 2016-03-18 2017-09-26 中国移动通信集团终端有限公司 A kind of communication receiver's personal identification method, communication terminal and system
CN106815334A (en) * 2016-12-30 2017-06-09 晶赞广告(上海)有限公司 A kind of data query method and device for terminal
CN106899584A (en) * 2017-02-17 2017-06-27 深圳怡化电脑股份有限公司 Management method and its device that a kind of hardware device is accessed
CN107331144A (en) * 2017-07-05 2017-11-07 国网山东省电力公司微山县供电公司 Power information collecting device and acquisition system
CN108011873B (en) * 2017-11-28 2020-09-04 江苏方天电力技术有限公司 Illegal connection judgment method based on set coverage
CN108183950B (en) * 2017-12-28 2020-11-06 新华三技术有限公司 Method and device for establishing connection of network equipment

Also Published As

Publication number Publication date
CN109067932A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109600258B (en) Industrial protocol message recording device and method
CN104283918B (en) A kind of WLAN terminal type acquisition methods and system
CN106547634B (en) Cross-process communication method and device
CN102413044B (en) Method, device, equipment and system for generating DHCP (Dynamic Host Configuration Protocol) Snooping binding table
CN110868436B (en) Internet of things data acquisition method and device
CN104320325A (en) Information push method and device
CN113507471A (en) Method, device, router and storage medium for acquiring terminal system type
CN109067932B (en) Data transmission method for data acquisition terminal without fixed IP and data server
CN101483557B (en) Log statistic, storing method and system used for deep packet detection apparatus
CN110472410B (en) Method and device for identifying data and data processing method
CN106533728B (en) Server info collection method and device
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
CN111930653B (en) Remote distribution use method and device of USB (universal serial bus) equipment
CN111371919A (en) IP query method and device of Internet of things card and electronic equipment
US10506021B2 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device
CN105792265A (en) Malicious traffic detection method and system and monitoring platform
CN110493818B (en) Detection method and device of wireless fidelity module, storage medium and electronic device
CN114666390A (en) Page monitoring method and device of application program, electronic equipment and storage medium
CN110830314B (en) Method and device for determining abnormal traffic
CN109391626B (en) Method and related device for judging whether network attack result is unsuccessful
CN112995017A (en) Service management method, device, equipment and computer readable medium
CN111885097A (en) Network card processing method and device, electronic equipment and storage medium
CN106648983A (en) Testing method and system for Wi-Fi equipment factory reset success rate
CN105554268A (en) Enterprise information recognition method and device based on service short message
CN111294382A (en) Real-time data pushing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant