CN109347979B - Query method and server - Google Patents

Query method and server Download PDF

Info

Publication number
CN109347979B
CN109347979B CN201811399988.8A CN201811399988A CN109347979B CN 109347979 B CN109347979 B CN 109347979B CN 201811399988 A CN201811399988 A CN 201811399988A CN 109347979 B CN109347979 B CN 109347979B
Authority
CN
China
Prior art keywords
server
address
current network
identification
network address
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
CN201811399988.8A
Other languages
Chinese (zh)
Other versions
CN109347979A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811399988.8A priority Critical patent/CN109347979B/en
Publication of CN109347979A publication Critical patent/CN109347979A/en
Application granted granted Critical
Publication of CN109347979B publication Critical patent/CN109347979B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a query method and a server, relates to the technical field of Internet of things, and solves the problem that a user cannot query a target object according to a passive object identifier in the prior art. The method comprises the steps that an identification server receives passive object identification of a target object from a query device; the identification server determines the current network address and the active object identification of the target object according to the passive object identification; the identification server transmits the current network address and the active object identification to the query equipment so that the query equipment can address the address server according to the current network address and transmit the active object identification to the address server, and the address server establishes a session between the target object and the query equipment according to the active object identification so that the query equipment can acquire the state information of the target object.

Description

Query method and server
Technical Field
The invention relates to the technical field of Internet of things, in particular to a query method and a server.
Background
The vision of the internet of things is to realize object connection, i.e. to connect a target object into a communication network. Passive object identification, such as two-dimensional codes, bar codes, can be used to identify the target object. The passive object identification can only be read by a passive reader-writer, and the passive object identification cannot be actively networked to report information and is more difficult to be remotely accessed. After the passive object identification is read by the reader, the reader can enter information related to the target object. Because the passive object identifier can only be used for associating information, it cannot be guaranteed that related information is correctly associated with the target object, and the passive object identifier is likely to be maliciously removed or maliciously attached to an incorrect object, so that the user cannot find the target object corresponding to the passive object identifier according to the passive object identifier.
From the above, how to query the target object according to the passive object identifier by the user in the prior art is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a query method and a server, which solve the problem that a user cannot query the target object according to a passive object identifier in the prior art.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a query method, including: the identification server receives the passive object identification of the target object from the query device; wherein the passive object identification comprises at least one of a two-dimensional code and a bar code; the identification server determines the current network address and the active object identification of the target object according to the passive object identification; the active object identification is used for identifying a target object; the identification server transmits a current network address and an active object identification to the query equipment so that the query equipment can address the address server according to the current network address and transmits the active object identification to the address server, and the address server establishes a session between a target object and the query equipment according to the active object identification so that the query equipment can acquire state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
As can be seen from the above, according to the query method provided by the embodiment of the present invention, even if the passive object identifier is maliciously removed or maliciously attached to an incorrect object, the user can transmit the passive object identifier on the object to the identifier server through the query device, and the identifier server determines the current network address and the active object identifier of the target object according to the passive object identifier; because the IP address of the address server is the same as the current network address, the inquiry equipment can be addressed to the address server according to the current network address; because the active object identification is used for identifying the target object, the address server can establish a session between the target object and the query device according to the active object identification, so that the user can still query the longitude and latitude information of the target object through the passive object identification, and the problem that the user can not query the target object according to the passive object identification in the prior art is solved.
In a second aspect, an embodiment of the present invention provides a query method, including: the address server receives the active object identification transmitted by the query equipment; after the inquiry equipment transmits the passive object identification of the target object to the identification server, the identification server determines the current network address and the active object identification of the target object according to the passive object identification, and simultaneously the identification server transmits the current network address and the active object identification to the inquiry equipment, so that the inquiry equipment can be addressed to the address server according to the current network address and transmit the active object identification to the address server; the passive object identification comprises at least one of a two-dimensional code and a bar code, and the active object identification is used for identifying a target object; the address server establishes a session between the target object and the query device according to the active object identifier so that the query device can acquire state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
In a third aspect, an embodiment of the present invention provides a computer storage medium, which includes instructions, when executed on a computer, cause the computer to execute the query method according to any one of the above-mentioned first aspect.
In a fourth aspect, an embodiment of the present invention provides an identity server, including: communication interface, processor, memory, bus; the memory is used for storing computer-executable instructions, the processor is connected with the memory through the bus, and when the identification server runs, the processor executes the computer-executable instructions stored in the memory, so that the identification server executes the query method provided by any one of the above first aspects.
It can be understood that any one of the identifier servers provided above is used to execute the method corresponding to the first aspect provided above, and therefore, the beneficial effects that can be achieved by the identifier server refer to the beneficial effects of the method according to the first aspect above and the corresponding scheme in the following detailed description, which are not described herein again.
In a fifth aspect, an embodiment of the present invention provides a computer storage medium, which includes instructions, when executed on a computer, cause the computer to execute the query method as set forth in any one of the above provided second aspects.
A sixth aspect and an embodiment of the present invention provide an address server, including: communication interface, processor, memory, bus; the memory is used for storing computer-executable instructions, the processor is connected with the memory through the bus, and when the address server runs, the processor executes the computer-executable instructions stored in the memory, so that the address server executes the query method provided by any one of the above second aspects.
It can be understood that any one of the address servers provided above is used to execute the method according to the second aspect provided above, and therefore, the beneficial effects that can be achieved by the address server refer to the method according to the second aspect above and the beneficial effects of the solutions in the following detailed description, which are not described herein again.
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, 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 the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a query method according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating a query method according to an embodiment of the present invention;
fig. 3 is a third schematic flowchart of a query method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating a query method according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart illustrating a query method according to an embodiment of the present invention;
FIG. 6 is a logic diagram of a query method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an identification server according to an embodiment of the present invention;
fig. 8 is a second schematic structural diagram of an identity server according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an address server according to an embodiment of the present invention;
fig. 10 is a second schematic structural diagram of an address server according to an embodiment of the present invention.
Reference numerals:
an identity server-10;
a transceiver unit-101; a processing unit-102;
an address server-20;
a transceiving unit-201; a processing unit-202.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments 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.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like are not limited in number or execution order.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of networks refers to two or more networks.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
First, concepts involved in the query method provided by the embodiment of the present invention need to be introduced, including:
1. the query method provided by the embodiment of the invention is applied to an active object identification system, the active identification system comprises an identification server and at least one address server, and the coverage range of each address server comprises at least one target object.
2. The target object in the query method provided by the embodiment of the invention is provided with an active identification module: the wireless communication capability is provided, and active object identification (such as identification generated by a specified encryption mode or information capable of uniquely identifying the target object) can be periodically transmitted; and the active object identification is not opened to a third party and is only mastered by a producer of the target object and an owner of the active object identification system.
3. The address server in the query method provided by the embodiment of the invention is installed in a place where a target object may pass through, can cover a region with a certain area, can communicate with the active identification module on the target object, and can receive the active object identification sent by the target object.
In the prior art, because a user cannot query the target object according to the passive object identifier, in order to solve the above problem, embodiments of the present invention provide a query method, even if the passive object identifier is maliciously removed or maliciously attached to an incorrect object, the user can transmit the passive object identifier on the object to an identifier server through a query device, and the identifier server determines the current network address and the active object identifier of the target object according to the passive object identifier; because the IP address of the address server is the same as the current network address, the inquiry equipment can be addressed to the address server according to the current network address; because the active object identifier is used for identifying the target object, the address server can establish a session between the target object and the query device according to the active object identifier, so that the user can still query the longitude and latitude information of the target object through the passive object identifier, and the specific implementation mode is as follows:
example one
An embodiment of the present invention provides a query method, as shown in fig. 1 and fig. 6, including:
s101, the identification server receives a passive object identification of a target object from the query equipment; wherein the passive object identification comprises at least one of a two-dimensional code and a bar code.
S102, the identification server determines the current network address and the active object identification of the target object according to the passive object identification; wherein the active object identification is used to identify the target object.
S103, the identification server transmits a current network address and an active object identification to the query equipment so that the query equipment can address the address server according to the current network address and transmit the active object identification to the address server, and the address server establishes a session between a target object and the query equipment according to the active object identification so that the query equipment can acquire state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
It should be noted that, in practical application, different target objects need to record different state information; for example, when the query method provided by the embodiment of the present invention is applied to cold chain transportation, a user needs to manage the ambient temperature and humidity during the cold chain transportation; at this time, the target object is a cold-chain transport vehicle, so the query device can send the active object identifier of the cold-chain transport vehicle to the address server, thereby the query device establishes access with the cold-chain transport vehicle and obtains the state information of the cold-chain transport vehicle in real time, wherein the state information at least comprises the ambient temperature, the humidity and the latitude and longitude.
Specifically, the user can set all information related to the target object in the state information according to actual requirements, so that the user can directly obtain the information related to the full life cycle of the target object according to the query device conveniently, and the user can manage the target object more conveniently.
Optionally, the determining, by the identification server, the current network address of the target object and the active object identification according to the passive object identification includes:
s1020, the identification server determines the current network address and the active object identification of the target object according to the mapping relation and the passive object identification; the mapping relation comprises an active object identifier, a passive object identifier and a current network address.
Optionally, each active object identifier corresponds to a current network address, and as shown in fig. 2, the method further includes:
s104, the identification server updates the current network address corresponding to the active object identifier into the IP address of the address server according to the current network address updating instruction transmitted by the address server, wherein the current network address updating instruction comprises the active object identifier and the IP address of the address server; and when the address server determines that the received active object identifier is received for the first time, the current network address updating instruction is transmitted to the identifier server.
It should be noted that, in practical applications, the identification server may perform an operation on the passive object identifier through a preset algorithm for more convenient management, so as to generate the active object identifier, and establish a mapping relationship between the active object identifier and the passive object identifier; meanwhile, when the target object is in the coverage area of the address server, the address server receives the active object identification transmitted by the target object, and when the address server determines that the received active object identification is received for the first time, the address server transmits a current network address updating instruction to the identification server, so that the identification server updates the current network address corresponding to the active object identification to the IP address of the address server according to the current network address updating instruction transmitted by the address server.
Optionally, before the identification server receives the passive object identification of the target object from the querying device, as shown in fig. 3, the method further includes:
s105, the identification server receives the binding information; the binding information comprises an active object identification and a passive object identification.
And S106, the identification server binds the active object identification and the passive object identification according to the binding information.
As can be seen from the above, according to the query method provided by the embodiment of the present invention, even if the passive object identifier is maliciously removed or maliciously attached to an incorrect object, the user can transmit the passive object identifier on the object to the identifier server through the query device, and the identifier server determines the current network address and the active object identifier of the target object according to the passive object identifier; because the IP address of the address server is the same as the current network address, the inquiry equipment can be addressed to the address server according to the current network address; because the active object identification is used for identifying the target object, the address server can establish a session between the target object and the query device according to the active object identification, so that the user can still query the longitude and latitude information of the target object through the passive object identification, and the problem that the user can not query the target object according to the passive object identification in the prior art is solved.
An embodiment of the present invention provides a query method, as shown in fig. 4 and fig. 6, including:
s201, an address server receives an active object identifier transmitted by inquiry equipment; after the inquiry equipment transmits the passive object identification of the target object to the identification server, the identification server determines the current network address and the active object identification of the target object according to the passive object identification, and simultaneously the identification server transmits the current network address and the active object identification to the inquiry equipment, so that the inquiry equipment can be addressed to the address server according to the current network address and transmit the active object identification to the address server; the passive object identification comprises at least one of a two-dimensional code and a bar code, and the active object identification is used for identifying the target object.
S202, the address server establishes a session between the target object and the query device according to the active object identifier, so that the query device obtains state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
Optionally, each active object identifier corresponds to a current network address, and as shown in fig. 5, the method further includes:
s203, when the address server determines that the received active object identifier is received for the first time, the address server transmits a current network address updating instruction to the identifier server, wherein the current network address updating instruction comprises the active object identifier and the IP address of the address server, so that the identifier server updates the current network address corresponding to the active object identifier to the IP address of the address server according to the current network address updating instruction transmitted by the address server.
It should be noted that, in practical applications, each address server has a certain coverage, and therefore, when a target object first enters the coverage of the address server, that is, when it is determined that a received active object identifier is received for the first time, a current network address update instruction needs to be transmitted to the identifier server; here, determining whether the received active object identification is a first receipt includes: the address server compares the received active object identification with the active object identification in the database of the address server, if no active object identification matched with the address server exists, the active object identification is determined to be accessed for the first time, and the active object identification is stored in the database while a current network address updating instruction is transmitted to the identification server, so that the active object identification stored in the database is updated in real time; meanwhile, the target object may move out of the coverage area of the address server after a period of time, and the target object periodically transmits the active object identifier, so that the active object identifier in the database can be deleted by setting a time threshold when the active object identifier is not received within a time period greater than the time threshold; or, when the identification server receives a current network address update instruction sent by the address server, the current network address corresponding to the active object identifier is updated to the IP address of the address server, and a delete instruction (including the active object identifier) is sent to the address server corresponding to the original current network address, and the address server corresponding to the original current network address deletes the active object identifier stored in the database after receiving the delete instruction, thereby ensuring that the active object identifier stored in the data is the latest.
Specifically, the active identification module of the target object periodically sends a network address update detection message to the address server. At time T1, the target object is in the coverage area of the address server 1, and the current network address stored in the identification server is the IP address of the address server 1.
At time T2, when the target object has moved into the coverage area of the address server 2, the active identification module of the target object knows that the address server connected to the target object has been updated to address server n through the network address update detection message; at this time, the active identification module of the target object triggers the address server n to send a current network address updating instruction to the identification server, so that the identification server changes the current network address into the IP address of the address server n.
As can be seen from the above, according to the query method provided by the embodiment of the present invention, even if the passive object identifier is maliciously removed or maliciously attached to an incorrect object, the user can transmit the passive object identifier on the object to the identifier server through the query device, and the identifier server determines the current network address and the active object identifier of the target object according to the passive object identifier; because the IP address of the address server is the same as the current network address, the inquiry equipment can be addressed to the address server according to the current network address; because the active object identification is used for identifying the target object, the address server can establish a session between the target object and the query device according to the active object identification, so that the user can still query the longitude and latitude information of the target object through the passive object identification, and the problem that the user can not query the target object according to the passive object identification in the prior art is solved.
EXAMPLE III
An embodiment of the present invention provides an identification server 10, as shown in fig. 7, including:
a transceiving unit 101 for receiving a passive object identification of a target object from an inquiring apparatus; wherein the passive object identification comprises at least one of a two-dimensional code and a bar code.
The processing unit 102 is configured to determine a current network address and an active object identifier of the target object according to the passive object identifier received by the transceiving unit 101; wherein the active object identification is used to identify the target object.
The transceiver 101 is further configured to transmit the current network address and the active object identifier determined by the processing unit 102 to the query device, so that the query device addresses the address server 20 according to the current network address, and transmit the active object identifier to the address server 20, and the address server 20 establishes a session between the target object and the query device according to the active object identifier, so that the query device obtains state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
Optionally, the processing unit 102 is specifically configured to determine a current network address and an active object identifier of the target object according to the mapping relationship and the passive object identifier received by the transceiving unit 101; the mapping relation comprises an active object identifier, a passive object identifier and a current network address.
Optionally, each active object identifier corresponds to a current network address; the processing unit 102 is further configured to update, according to a current network address update instruction transmitted by the address server 20 and received by the transceiving unit 101, the current network address update instruction including the active object identifier and the IP address of the address server 20, a current network address corresponding to the active object identifier to be an IP address of the address server 20; wherein, the current network address updating command is transmitted to the identification server 10 when the address server 20 determines that the received active object identification is received for the first time.
Optionally, the transceiver 101 is further configured to receive binding information; the binding information comprises an active object identifier and a passive object identifier; the processing unit 102 is further configured to bind the active object identifier and the passive object identifier according to the binding information received by the transceiving unit 101.
All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and the function thereof is not described herein again.
In the case of an integrated module, the identification server comprises: the device comprises a storage unit, a processing unit and a transmitting and receiving unit. The processing unit is used for controlling and managing the action of the identification server, for example, the processing unit is used for supporting the identification server to execute the processes S101, S102 and S103 in fig. 1; the receiving and sending unit is used for supporting information interaction between the identification server and other equipment. A storage unit for storing program codes and data identifying the server.
For example, the processing unit is a processor, the storage unit is a memory, and the transceiver unit is a communication interface. The identifier server shown in fig. 8 includes a communication interface 501, a processor 502, a memory 503, and a bus 504, and the communication interface 501 and the processor 502 are connected to the memory 503 through the bus 504.
The processor 502 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an Application-Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to control the execution of programs in accordance with the teachings of the present disclosure.
The Memory 503 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 503 is used for storing application program codes for executing the scheme of the application, and the processor 502 controls the execution. The communication interface 501 is used for information interaction with other devices, such as a remote controller. The processor 502 is configured to execute application program code stored in the memory 503 to implement the methods described in the embodiments of the present application.
Further, a computing storage medium (or media) is also provided, comprising instructions that when executed perform the method operations of the above-described embodiments performed by the identification server. Additionally, a computer program product is also provided, comprising the above-described computing storage medium (or media).
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
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 ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional 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 functions, if implemented in the form of software functional units 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.
It can be understood that any one of the identifier servers provided above is used to execute a corresponding method of the embodiments provided above, and therefore, the beneficial effects that can be achieved by the identifier server refer to the beneficial effects of the method of the first embodiment above and the corresponding scheme in the following detailed description, which are not described herein again.
Example four
An embodiment of the present invention provides an address server 20, as shown in fig. 9, including:
a transceiver unit 201, configured to receive an active object identifier transmitted by an inquiry apparatus; after the query device transmits the passive object identifier of the target object to the identification server 10, the identification server 10 determines the current network address and the active object identifier of the target object according to the passive object identifier, and simultaneously the identification server 10 transmits the current network address and the active object identifier to the query device, so that the query device can be addressed to the address server 20 according to the current network address and transmit the active object identifier to the address server 20; the passive object identification comprises at least one of a two-dimensional code and a bar code, and the active object identification is used for identifying the target object.
The processing unit 202 is configured to establish a session between the target object and the query device according to the active object identifier received by the transceiving unit 201, so that the query device obtains state information of the target object; the IP address of the address server 20 is the same as the current network address, and the status information includes latitude and longitude.
Optionally, each active object identifier corresponds to a current network address; the transceiving unit 201 is further configured to, when the processing unit 202 determines that the active object identifier received by the transceiving unit 201 is received for the first time, transmit a current network address update instruction to the identifier server 10, where the current network address update instruction includes the active object identifier and the IP address of the address server 20, so that the identifier server 10 updates the current network address corresponding to the active object identifier to the IP address of the address server according to the current network address update instruction transmitted by the address server 20.
All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and the function thereof is not described herein again.
In the case of an integrated module, the address server comprises: the device comprises a storage unit, a processing unit and a transmitting and receiving unit. The processing unit is used for controlling and managing the action of the address server, for example, the processing unit is used for supporting the address server to execute the processes S201 and S202 in fig. 4; the receiving and sending unit is used for supporting the information interaction between the address server and other equipment. And the storage unit is used for storing the program codes and the data of the address server.
For example, the processing unit is a processor, the storage unit is a memory, and the transceiver unit is a communication interface. The address server is shown in fig. 10, and includes a communication interface 601, a processor 602, a memory 603, and a bus 604, where the communication interface 601 and the processor 602 are connected to the memory 603 through the bus 604.
Processor 602 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an Application-Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to control the execution of programs in accordance with the teachings of the present disclosure.
The Memory 603 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 603 is used for storing application program codes for executing the scheme of the application, and the processor 602 controls the execution. The communication interface 601 is used for information interaction with other devices, such as a remote controller. The processor 602 is configured to execute the application program code stored in the memory 603, thereby implementing the methods described in the embodiments of the present application.
Further, a computing storage medium (or media) is also provided, comprising instructions which, when executed, perform the method operations performed by the address server in the above embodiments. Additionally, a computer program product is also provided, comprising the above-described computing storage medium (or media).
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
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 ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional 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 functions, if implemented in the form of software functional units 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.
It can be understood that any one of the address servers provided above is used to execute the method corresponding to the embodiment provided above, and therefore, the beneficial effects that can be achieved by the address server refer to the method of the second embodiment above and the beneficial effects of the corresponding scheme in the following detailed description, which are not described herein again.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. A method of querying, comprising:
the identification server receives the passive object identification of the target object from the query device; wherein the passive object identification comprises at least one of a two-dimensional code and a barcode;
the identification server determines the current network address and the active object identification of the target object according to the passive object identification; wherein the active object identification is used to identify the target object;
the identification server transmits the current network address and the active object identification to the query device so that the query device can address to an address server according to the current network address and transmit the active object identification to the address server, and the address server establishes a session between the target object and the query device according to the active object identification so that the query device can obtain the state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude;
the identification server determines the current network address and the active object identification of the target object according to the passive object identification, and the method comprises the following steps:
the identification server determines the current network address and the active object identification of the target object according to the mapping relation and the passive object identification; the mapping relation comprises an active object identifier, a passive object identifier and a current network address.
2. The query method of claim 1, wherein each active object id corresponds to a current network address, the method further comprising:
the identification server updates the current network address corresponding to the active object identifier into the IP address of the address server according to a current network address updating instruction transmitted by the address server, wherein the current network address updating instruction comprises the active object identifier and the IP address of the address server; and the current network address updating instruction is transmitted to the identification server when the address server determines that the received active object identification is received for the first time.
3. The querying method of claim 1, wherein before the identification server receives the passive object identification of the target object from the querying device, the method further comprises:
the identification server receives binding information; wherein the binding information comprises an active object identification and a passive object identification;
and the identification server binds the active object identification and the passive object identification according to the binding information.
4. A method of querying, comprising:
the address server receives the active object identification transmitted by the query equipment; after the query device transmits a passive object identifier of a target object to an identifier server, the identifier server determines a current network address and an active object identifier of the target object according to a mapping relation and the passive object identifier, and simultaneously the identifier server transmits the current network address and the active object identifier to the query device, so that the query device can be addressed to an address server according to the current network address and transmit the active object identifier to the address server; the mapping relation comprises an active object identifier, a passive object identifier and a current network address, wherein the passive object identifier comprises at least one of a two-dimensional code and a bar code, and the active object identifier is used for identifying the target object;
the address server establishes a session between the target object and the query device according to the active object identifier, so that the query device obtains the state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
5. The query method of claim 4, wherein each active object identifier corresponds to a current network address, the method further comprising:
when the address server determines that the received active object identifier is received for the first time, the address server transmits a current network address updating instruction to the identifier server, wherein the current network address updating instruction comprises the active object identifier and the IP address of the address server, so that the identifier server updates the current network address corresponding to the active object identifier into the IP address of the address server according to the current network address updating instruction transmitted by the address server.
6. An identity server, comprising:
the receiving and sending unit is used for receiving the passive object identification of the target object from the inquiry equipment; wherein the passive object identification comprises at least one of a two-dimensional code and a barcode;
the processing unit is used for determining the current network address and the active object identifier of the target object according to the passive object identifier received by the transceiving unit; wherein the active object identification is used to identify the target object;
the transceiver unit is further configured to transmit the current network address and the active object identifier determined by the processing unit to the query device, so that the query device addresses an address server according to the current network address and transmits the active object identifier to the address server, and the address server establishes a session between the target object and the query device according to the active object identifier, so that the query device obtains state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude;
the processing unit is specifically configured to determine a current network address and an active object identifier of the target object according to the mapping relationship and the passive object identifier received by the transceiver unit; the mapping relation comprises an active object identifier, a passive object identifier and a current network address.
7. The identity server of claim 6, wherein each active object identity corresponds to a current network address;
the processing unit is further configured to update, according to a current network address update instruction transmitted by the address server and received by the transceiver unit, the current network address update instruction including an active object identifier and an IP address of the address server, a current network address corresponding to the active object identifier to be an IP address of the address server; and the current network address updating instruction is transmitted to the identification server when the address server determines that the received active object identification is received for the first time.
8. The identity server of claim 6, wherein the transceiver unit is further configured to receive binding information; wherein the binding information comprises an active object identification and a passive object identification;
the processing unit is further configured to bind the active object identifier and the passive object identifier according to the binding information received by the transceiver unit.
9. An address server, comprising:
the receiving and sending unit is used for receiving the active object identification transmitted by the query equipment; after the query device transmits a passive object identifier of a target object to an identifier server, the identifier server determines a current network address and an active object identifier of the target object according to a mapping relation and the passive object identifier, and simultaneously the identifier server transmits the current network address and the active object identifier to the query device, so that the query device can be addressed to an address server according to the current network address and transmit the active object identifier to the address server; the mapping relation comprises an active object identifier, a passive object identifier and a current network address, wherein the passive object identifier comprises at least one of a two-dimensional code and a bar code, and the active object identifier is used for identifying the target object;
the processing unit is used for establishing a session between the target object and the query device according to the active object identifier received by the transceiving unit so that the query device can acquire the state information of the target object; the IP address of the address server is the same as the current network address, and the state information comprises longitude and latitude.
10. The address server of claim 9, wherein each active object id corresponds to a current network address;
the receiving and sending unit is further configured to transmit a current network address update instruction to the identifier server when the processing unit determines that the active object identifier received by the receiving and sending unit is received for the first time, where the current network address update instruction includes the active object identifier and the IP address of the address server, so that the identifier server updates the current network address corresponding to the active object identifier to the IP address of the address server according to the current network address update instruction transmitted by the address server.
11. A computer storage medium comprising instructions which, when run on a computer, cause the computer to perform the query method of any one of claims 1-3 above.
12. An identity server, comprising: communication interface, processor, memory, bus; the memory is used for storing computer-executable instructions, the processor is connected with the memory through the bus, and when the identification server runs, the processor executes the computer-executable instructions stored in the memory so as to enable the identification server to execute the query method according to any one of the claims 1-3.
13. A computer storage medium comprising instructions which, when run on a computer, cause the computer to perform the query method of any one of claims 4 and 5 above.
14. An address server, comprising: communication interface, processor, memory, bus; the memory is used for storing computer execution instructions, the processor is connected with the memory through the bus, and when the address server runs, the processor executes the computer execution instructions stored in the memory so as to enable the address server to execute the query method according to any one of the claims 4 and 5.
CN201811399988.8A 2018-11-22 2018-11-22 Query method and server Active CN109347979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811399988.8A CN109347979B (en) 2018-11-22 2018-11-22 Query method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811399988.8A CN109347979B (en) 2018-11-22 2018-11-22 Query method and server

Publications (2)

Publication Number Publication Date
CN109347979A CN109347979A (en) 2019-02-15
CN109347979B true CN109347979B (en) 2021-03-12

Family

ID=65317204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811399988.8A Active CN109347979B (en) 2018-11-22 2018-11-22 Query method and server

Country Status (1)

Country Link
CN (1) CN109347979B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022061822A1 (en) * 2020-09-27 2022-03-31 Siemens Aktiengesellschaft Method and apparatus for communitcating with passive objects

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656765A (en) * 2009-09-14 2010-02-24 中兴通讯股份有限公司 Address mapping system and data transmission method of identifier/locator separation network
CN103001975A (en) * 2012-12-26 2013-03-27 百度在线网络技术(北京)有限公司 Method, system and device used for controlling login and based on two-dimensional code
CN103501349A (en) * 2013-10-18 2014-01-08 南京九度网络科技有限公司 Two-dimensional code cloud service system and method capable of accurately counting access data based on release positions
CN106897341A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 2 D code information querying method, server, client and system
CN107888642A (en) * 2016-09-30 2018-04-06 中国电子科技集团公司信息科学研究院 A kind of identification (RNC-ID) analytic device, identification (RNC-ID) analytic system and identification analytic method
US10111088B1 (en) * 2006-08-08 2018-10-23 Sprint Spectrum L.P. Method and system for associating a user identifier with a device identifier

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10111088B1 (en) * 2006-08-08 2018-10-23 Sprint Spectrum L.P. Method and system for associating a user identifier with a device identifier
CN101656765A (en) * 2009-09-14 2010-02-24 中兴通讯股份有限公司 Address mapping system and data transmission method of identifier/locator separation network
CN103001975A (en) * 2012-12-26 2013-03-27 百度在线网络技术(北京)有限公司 Method, system and device used for controlling login and based on two-dimensional code
CN103501349A (en) * 2013-10-18 2014-01-08 南京九度网络科技有限公司 Two-dimensional code cloud service system and method capable of accurately counting access data based on release positions
CN106897341A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 2 D code information querying method, server, client and system
CN107888642A (en) * 2016-09-30 2018-04-06 中国电子科技集团公司信息科学研究院 A kind of identification (RNC-ID) analytic device, identification (RNC-ID) analytic system and identification analytic method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于RFID技术的矿井人员定位系统研究与实现;王仁兴;《中国优秀硕士学位论文全文数据库 工程科技Ⅰ辑》;20140315;全文 *

Also Published As

Publication number Publication date
CN109347979A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US9930632B2 (en) M2M application remote registration method, device, system and storage medium
CN1667645B (en) Method and system for communicating with identification tags
EP2957085B1 (en) Service layer resource propagation across domains
US9191772B2 (en) Bluetooth connection method and system
CN105404258A (en) Intelligent household management method and platform
CN107835498B (en) Method and equipment for managing user
CN104093118A (en) Resource notification method, machine-to-machine nodes and system
EP3337219A1 (en) Carrier configuration processing method, device and system, and computer storage medium
CN104751344A (en) Commodity information processing method, device and system
CN105453074A (en) Mechanism for facilitating dynamic detection and communication of geo-locations for devices
WO2015034337A1 (en) Method and device for processing a specific request message in wireless communication system
CN105282682B (en) Method for realizing resource attribute notification and public service entity
CN104484958A (en) Express delivery pickup method and system for intelligent express delivery cabinet
CN104468603A (en) Internet of things terminal access method and system
CN102594716A (en) Method, system and device for transmitting instant communication message
CN103685176A (en) Terminal equipment, equipment management server and connection establishment method
WO2015161572A1 (en) Resource notification method, device and system
CN104639583A (en) Method and device for sharing environment contexts
CN109347979B (en) Query method and server
CN102006185A (en) Internet of things terminal charging query method and internet of things terminal charging query system
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN105101040A (en) Resource creating method and device
CN103258174B (en) A kind of radio frequency identification label carries out the method and apparatus of identification
JP4580305B2 (en) Computer system and radio base station
CN114019821A (en) Smart home control method, device and system

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