CN108665583B - Information association method and device - Google Patents
Information association method and device Download PDFInfo
- Publication number
- CN108665583B CN108665583B CN201710193096.1A CN201710193096A CN108665583B CN 108665583 B CN108665583 B CN 108665583B CN 201710193096 A CN201710193096 A CN 201710193096A CN 108665583 B CN108665583 B CN 108665583B
- Authority
- CN
- China
- Prior art keywords
- information
- building
- authentication
- level
- indoor unit
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/20—Individual registration on entry or exit involving the use of a pass
- G07C9/27—Individual registration on entry or exit involving the use of a pass with central registration
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00896—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
- G07C9/00904—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses for hotels, motels, office buildings or the like
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/30—Individual registration on entry or exit not involving the use of a pass
- G07C9/38—Individual registration on entry or exit not involving the use of a pass with central registration
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an information association method and device, and belongs to the technical field of information management. The method comprises the following steps: acquiring building information stored in a door phone, wherein the building information is used for representing a building using the door phone; acquiring description information stored in an indoor unit; the description information comprises a room number using the indoor unit and an entrance machine identifier of an entrance machine used by a building to which the room belongs; and establishing a target incidence relation according to the building information and the description information, wherein the target incidence relation comprises incidence relations among the building information, the room number, the door phone and the indoor unit. The problem that in the prior art, the incidence relation is manually input by a worker, and the incidence relation is created with low efficiency is solved; the effect of improving the creation efficiency of the incidence relation is achieved.
Description
Technical Field
The embodiment of the invention relates to the technical field of information management, in particular to an information association method and device.
Background
In order to better serve the residents in the community, an entrance machine can be installed below each unit in the community, an indoor machine can be installed in each resident home, and the security guard provides services for the residents through the association relationship between the entrance machines of the unit buildings and the indoor machines of the residents home.
In the prior art, after the door phone and the indoor unit are deployed, the security guard arranges a worker to input the association between the door phone of each unit building and the indoor unit of each household of each unit building in the control terminal, and the association is created inefficiently.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide an information association method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present invention, there is provided an information associating method, including:
acquiring building information stored in a door phone, wherein the building information is used for representing a building using the door phone;
acquiring description information stored in an indoor unit; the description information comprises a room number using the indoor unit and an entrance machine identifier of an entrance machine used by a building to which the room belongs;
and establishing a target incidence relation according to the building information and the description information, wherein the target incidence relation comprises incidence relations among the building information, the room number, the door phone and the indoor unit.
Optionally, the creating a target association relationship according to the building information and the description information includes:
for each piece of description information, according to the entrance machine identification of the entrance machine in the description information, establishing an association relation among the room number in the description information, the indoor machine identification of the indoor machine storing the description information, the entrance machine identification and the building information stored in the entrance machine identified by the entrance machine identification.
Optionally, the creating, according to the entrance machine identifier of the entrance machine in the description information, an association relationship between the room number in the description information, the indoor machine identifier of the indoor machine storing the description information, the entrance machine identifier, and the building information stored in the entrance machine identified by the entrance machine identifier includes:
and taking the room number and the indoor unit identification as the next layer node of the entrance machine identification and the building information.
Optionally, the building information includes n-level information, an area defined by the i-level information is larger than an area defined by the i + 1-level information, n is an integer greater than or equal to 2, i is greater than or equal to 1 and is less than or equal to n-1, and the method further includes:
and for each piece of building information, creating n layers of trees according to the building information, wherein the ith layer of the tree is the ith level information in the building information.
Optionally, the creating n-level trees according to the building information includes:
for each level of information in the building information, detecting whether the information exists;
if yes, continuously detecting whether next-level information exists;
and if the information does not exist, if the information is the level 1 information, creating a node corresponding to the level 1 information, and if the information is not the level 1 information, taking the information as a next level node of a node corresponding to the previous level information.
Optionally, the acquiring building information stored in the door phone includes: reading a first authentication result corresponding to each entrance machine from a first database; according to the read first authentication results, the building information is read in batch from the doorway machine corresponding to the first authentication results which show that the authentication is passed;
and/or the presence of a gas in the gas,
the obtaining of the description information stored in the indoor unit includes: reading a second authentication result corresponding to each indoor unit from a second database; and reading the description information in batch from the indoor units corresponding to the second authentication results which show that the authentication is passed according to the read second authentication results.
Optionally, the method further comprises:
the acquiring of the building information stored in the doorway machine includes: acquiring first authentication information, authenticating the door phone according to the first authentication information, and reading the building information from the door phone after the door phone passes the authentication;
and/or the presence of a gas in the gas,
the obtaining of the description information stored in the indoor unit includes: and acquiring second authentication information, authenticating the indoor unit according to the second authentication information, and reading the description information from the indoor unit after the authentication is passed.
In a second aspect, an information associating apparatus is provided, the apparatus comprising:
the first acquisition unit is used for acquiring building information stored in the door phone, and the building information is used for indicating the building using the door phone;
the second acquisition unit is used for acquiring the description information stored in the indoor unit; the description information comprises a room number using the indoor unit and an entrance machine identifier of an entrance machine used by a building to which the room belongs;
and the relationship creating unit is used for creating a target incidence relationship according to the building information acquired by the first acquiring unit and the description information acquired by the second acquiring unit, wherein the target incidence relationship comprises incidence relationships among the building information, the room number, the door phone and the indoor unit.
Optionally, the relationship creating unit is further configured to:
for each piece of description information, according to the entrance machine identification of the entrance machine in the description information, establishing an association relation among the room number in the description information, the indoor machine identification of the indoor machine storing the description information, the entrance machine identification and the building information stored in the entrance machine identified by the entrance machine identification.
Optionally, the relationship creating unit is further configured to:
and taking the room number and the indoor unit identification as the next layer node of the entrance machine identification and the building information.
Optionally, the building information includes n-level information, an area defined by the i-level information is larger than an area defined by the i + 1-level information, n is an integer greater than or equal to 2, i is greater than or equal to 1 and is less than or equal to n-1, and the apparatus further includes:
the tree creating unit is used for creating n layers of trees according to the building information for each piece of building information, wherein the ith layer of the tree is the ith level information in the building information.
Optionally, the tree creating unit is further configured to:
for each level of information in the building information, detecting whether the information exists;
if yes, continuously detecting whether next-level information exists;
and if the information does not exist, if the information is the level 1 information, creating a node corresponding to the level 1 information, and if the information is not the level 1 information, taking the information as a next level node of a node corresponding to the previous level information.
Optionally, the first obtaining unit is further configured to read a first authentication result corresponding to each entrance machine from a first database; according to the read first authentication results, the building information is read in batch from the doorway machine corresponding to the first authentication results which show that the authentication is passed;
and/or the presence of a gas in the gas,
the second obtaining unit is further configured to read a second authentication result corresponding to each indoor unit from a second database; and reading the description information in batch from the indoor units corresponding to the second authentication results which show that the authentication is passed according to the read second authentication results.
Optionally, the apparatus further comprises an authentication unit, configured to:
the first obtaining unit is further configured to obtain first authentication information, authenticate the door phone according to the first authentication information, and read the building information from the door phone after the authentication is passed;
and/or the presence of a gas in the gas,
the second obtaining unit is further configured to obtain second authentication information, authenticate the indoor unit according to the second authentication information, and read the description information from the indoor unit after the authentication is passed.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
automatically creating a target association relation according to the acquired building information and description information by automatically acquiring the building information stored in the entrance machine and the description information stored in the indoor machine; the problem that in the prior art, the incidence relation is manually input by a worker, and the incidence relation is created with low efficiency is solved; the effect of improving the creation efficiency of the incidence relation is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment related to an information association method provided by various embodiments of the present invention;
FIG. 2 is a flow chart of a method for associating information provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a method for associating information provided by another embodiment of the present invention;
FIG. 4 is a schematic diagram of a created target association provided by another embodiment of the invention;
FIG. 5 is a flow chart of a method of associating information provided by yet another embodiment of the present invention;
FIG. 6 is a diagram illustrating a tree created in an information association method according to yet another embodiment of the present invention;
FIG. 7 is a block diagram of an information association method provided by yet another embodiment of the invention;
fig. 8 is a schematic diagram of an information association apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an implementation environment according to various embodiments of the present invention is shown, and as shown in fig. 1, the implementation environment may include an outdoor unit 110, an indoor unit 120, and a control terminal 130. Wherein:
the door phone 110 refers to a device having a voice call capability installed below a cell floor. Optionally, the door phone 110 may also have a video call capability, for example, it may be a video phone.
In practical implementation, the door phone 110 may be provided with a button for calling an indoor unit of each resident, and the user may call a desired indoor unit of the resident through the button. For example, if the entrance machine 110 is installed at 11 floors and a unit with 2 residents per floor is downstairs, buttons of 0101, 0102, 0201, …, and 1102 may be provided in the entrance machine 110, and when a friend in the 0202 room visits, the friend may call the resident of 0202 through the 0202 button in the entrance machine 110.
The outdoor unit 110 may be connected to the indoor unit 120 and the control terminal 130 through a wired or wireless network. In addition, in actual implementation, the door phone 110 may be connected to the indoor unit 120 and the control terminal 130 through a local area network in a cell.
The indoor unit 120 is a device having a voice call capability installed in a home of a household. Optionally, the indoor unit 120 may further have a video call capability. In practical implementation, the indoor unit 120 may implement: the functions of responding to the call of the door phone 110 and opening the door lock, calling the control terminal 130 or responding to the call of the control terminal 130, etc., which are not limited in this embodiment.
The indoor unit 120 may be connected to the control terminal 130 through a wired or wireless network. In addition, in actual implementation, the indoor unit 120 may be connected to the control terminal 130 through a local area network in a cell.
The control terminal 130 refers to a terminal installed at a security or property. The control terminal 130 may be a terminal such as a desktop computer, an e-reader, a notebook computer, and the like, but is not limited thereto. In actual implementation, the control terminal 130 may have a client installed therein, and the control terminal 130 communicates with the door phone 110 and the indoor unit 120 through the client, which is not limited herein.
Referring to fig. 2, a flowchart of a method for associating information according to an embodiment of the present invention is shown, and the embodiment illustrates that the method for associating information is used in the control terminal 130 shown in fig. 1. As shown in fig. 2, the information associating method may include:
Step 202, obtaining description information stored in an indoor unit; the description information includes the room number of the room using the indoor unit and the entrance machine identification of the entrance machine used by the building to which the room belongs.
And step 203, establishing a target incidence relation according to the building information and the description information, wherein the target incidence relation comprises incidence relations among the building information, the room number, the door phone and the indoor unit.
In summary, according to the information association method provided in this embodiment, the building information stored in the entrance machine and the description information stored in the indoor machine are automatically acquired, so that the target association relationship is automatically created according to the acquired building information and the description information; the problem that in the prior art, the incidence relation is manually input by a worker, and the incidence relation is created with low efficiency is solved; the effect of improving the creation efficiency of the incidence relation is achieved. Meanwhile, the problem that the incidence relation is wrong due to the fact that a user inputs a mistake is solved by automatically creating the target incidence relation.
Referring to fig. 3, a flowchart of a method for associating information according to an embodiment of the present invention is shown, where the embodiment illustrates that the information associating method is used in the control terminal 130 shown in fig. 1. As shown in fig. 3, the information associating method may include:
The control terminal can traverse each connected door phone and acquire the building information stored in each door phone. The building information is information written into the door phone when the cell network equipment is deployed, and the building information can be represented by the date and the number. For example, if a certain cell has a third period, the building information can be represented by the 122 th period when the door phone is used for the 122 th period. Optionally, the building information may further include units, for example, for a plate building, after dividing the building, the units are further divided, and at this time, if the door phone is used for the 122 th unit of the second-stage building 1 unit, the building information is the 122 th unit of the second-stage building 1. In this embodiment, the principle is not limited, and the principle is that the unit of use of the gate machine can be accurately defined, that is, if the gate machine takes one building as a unit, the building information can uniquely identify one building, and if the gate machine takes one unit, the building information can uniquely identify one unit.
In practical implementation, the present step may include two possible implementations. In a possible implementation manner, the control terminal may authenticate the door phone first, and then only after the authentication is passed, the building information stored in the door phone can be acquired. Specifically, the step of authenticating the entrance machine includes: and acquiring first authentication information, and authenticating the door phone according to the first authentication information. The first authentication information may include an entrance machine identification of the entrance machine, a user name and a password of the entrance machine. The gate machine identifier is used to uniquely identify a gate machine, for example, the gate machine identifier may be an IP (Internet Protocol, Protocol for interconnecting networks) address of the gate machine, or a MAC (Media Access Control) address of the gate machine.
The step of acquiring the first authentication information may include: receiving first authentication information input by a user; or, the gate phone identifier of the gate phone is obtained in the process of traversing the gate phone, and the user name and the password input by the user are received, which is not limited.
The process that the control terminal authenticates the entrance machine according to the first authentication information comprises the following steps: and detecting whether the first authentication information is stored, if so, passing the authentication of the entrance machine, otherwise, failing the authentication. Optionally, the control terminal may further send the first authentication information to the door phone, and receive a first authentication result returned by the door phone. After receiving the first authentication information, the door phone may detect whether the first authentication information is stored, if so, return an authentication result indicating that the door phone is authenticated, and if not, return an authentication result indicating that the door phone is authenticated.
In another possible implementation manner, the control terminal may further read the first authentication result corresponding to each door phone from the first database, and read the building information in batch from the door phones corresponding to the first authentication result indicating that the authentication is passed. Optionally, if the read first authentication result indicates that the authentication of the entrance machine fails, the entrance machine is skipped. Optionally, when the authentication result of a certain door phone indicates that the door phone authentication fails, the control terminal may display the prompt message, which is not described herein again. The first database stores the first authentication result corresponding to each door phone, and the first authentication result corresponding to each door phone may be a result that the control terminal authenticates in advance through the authentication method and stores the result, which is not described herein again.
Step 302, obtaining description information stored in an indoor unit; the description information includes the room number using the indoor unit and the entrance machine identification of the entrance machine used by the building to which the room belongs.
The control terminal can also traverse each indoor unit to obtain the description information stored in the indoor unit. Similar to the building information in the door phone, the description information may also be information that is written in advance to the indoor phone when the cell network device is deployed.
For example, if an indoor unit is used for 302 rooms in the second 122 th place, the description information stored in the indoor unit may be IP addresses of 302 rooms and the doorway machine of the second 122 th place, such as 192.168.1.1.
In practical implementation, this step may include the following two possible implementations similar to the above step. In a possible implementation manner, the control terminal may authenticate the indoor unit first, and then only after the authentication is passed, the description information stored in the indoor unit can be acquired. Specifically, the step of authenticating the indoor unit includes: and acquiring second authentication information, and authenticating the indoor unit according to the second authentication information. The second authentication information may include an indoor unit identifier of the indoor unit, a user name and a password of the indoor unit. The indoor unit identifier is used to uniquely identify an indoor unit, for example, the indoor unit identifier may be an IP address of the indoor unit or an MAC address of the indoor unit.
The step of receiving the second authentication information may include: receiving second authentication information input by a user; or, the indoor unit identifier of the indoor unit is obtained in the process of traversing the indoor unit, and the user name and the password of the indoor unit input by the user are received, which is not limited.
The process that the control terminal authenticates the indoor unit according to the second authentication information comprises the following steps: and detecting whether the second authentication information is stored, if so, passing the authentication of the indoor unit, and otherwise, failing the authentication. Optionally, the control terminal may further send second authentication information to the indoor unit, and receive an authentication result returned by the indoor unit. After receiving the second authentication information, the indoor unit may detect whether the second authentication information is stored, and if the second authentication information is stored, return an authentication result indicating that the indoor unit is authenticated, and if the second authentication information is not stored, return an authentication result indicating that the indoor unit is authenticated.
In another possible implementation manner, the control terminal may further read the second authentication result corresponding to each indoor unit from the second database, and batch read the description information from the indoor units corresponding to the second authentication result indicating that the authentication is passed. And skipping the indoor unit when the read second authentication result shows that the indoor unit fails to be authenticated. Optionally, when the authentication result of a certain indoor unit indicates that the authentication of the indoor unit fails, the control terminal may display the prompt information, which is not described herein again. The second database stores a second authentication result corresponding to each indoor unit, and the second authentication result corresponding to each indoor unit may be a result that the control terminal authenticates in advance through the authentication method and stores the result, which is not described herein again. In addition, in actual implementation, the second database and the first database may be the same database or different databases, which is not limited in this embodiment.
For example, for the description information 302 room and 192.168.1.1, the control terminal may query the building information stored in the entrance machine with the IP address of 192.168.1.1, and further establish the association relationship among 302 room, 192.168.1.2 (the IP address of the indoor machine storing the description information), 192.168.1.1, and second-stage 122. Alternatively, the control terminal may store the association relationship in the form of a quadruple table, which is not limited in this respect.
In actual implementation, the control terminal may use the room number in the description information and the indoor unit identifier of the indoor unit storing the description information as the next-layer node of the building information stored in the doorway unit identified by the doorway unit identifier in the description information. For example, still taking the description information of 302 rooms and 192.168.1.1 as an example, please refer to fig. 4, the control terminal may construct the association relationship shown in fig. 4.
In the above embodiment, the control terminal may further obtain household information of each household, for example, a name of a householder, a contact number, a number of living population, and the like, so that the target association relationship created by the control terminal may further include the household information of the household, which is not limited in this embodiment.
In summary, according to the information association method provided in this embodiment, the building information stored in the entrance machine and the description information stored in the indoor machine are automatically acquired, so that the target association relationship is automatically created according to the acquired building information and the description information; the problem that in the prior art, the incidence relation is manually input by a worker, and the incidence relation is created with low efficiency is solved; the effect of improving the creation efficiency of the incidence relation is achieved. Meanwhile, the problem that the incidence relation is wrong due to the fact that a user inputs a mistake is solved by automatically creating the target incidence relation.
In the above embodiment, since the building information may include n-th-level information, the area defined by the i-th-level information is larger than the area defined by the i + 1-th-level information, n is an integer greater than or equal to 2, and i is greater than or equal to 1 and less than or equal to n-1, at this time, referring to fig. 5, the method may further include the following steps:
and 304, for each piece of building information, creating a tree with n layers according to the building information, wherein the ith layer of the tree is ith-level information in the building information.
Optionally, the step of creating a tree of n layers according to the building information includes:
first, for each level of information in the building information, it is detected whether the information is present.
For each piece of acquired building information, the control terminal can detect whether each level of information in the building information exists. Alternatively, the control terminal may first detect whether level 1 information in the building information exists. Taking the building information expiration date and the building number as an example, the building information comprises two levels of information, wherein the first level of information is a term number, and the second level of information is a building number; if the obtained building information is the 1 st building in the first period, the control terminal may detect whether information indicating the first period already exists; for another example, if the acquired building information is the first-day 88 th building, the control terminal may detect whether information indicating the first-day building already exists.
Second, if the node does not exist, if the information is level 1 information, the node corresponding to the level 1 information is created, and if the information is not level 1 information, the information is used as a next node of the previous level information.
If the detection result of the control terminal is that the node does not exist, the control terminal may create a node corresponding to the level 1 information when the information is the level 1 information, for example, referring to fig. 6, for the first time building information of each building in a period is stored, the control terminal may create a node representing the period. And when the information is not the level 1 information, the control terminal may regard the information as a node next to the node corresponding to the already stored previous level information. For example, when storing 88 of 88 in a period, please refer to fig. 6, the control terminal may use 88 as a next level node in the period, and when actually implementing, may use the IP addresses of the gate machines used by 88 as the next level node in the period.
Thirdly, if the next level information exists, whether the next level information exists is continuously detected.
If the information exists, whether the next level information in the building information is stored or not can be detected.
In this way, after storing the building information, the control terminal may construct the tree shown in fig. 6 (fig. 6 is illustrated by including description information, and the IP address in the figure is the IP address of the used door phone or the IP address of the used indoor unit, which is not described herein again).
In this embodiment, only level 1 in the building information is taken as an example of a root node of a tree, and in actual implementation, a cell name may also be taken as the root node, so that each period is a child node of the cell name, and the span below each period is a child node of a period node, and so on, which is not limited in this embodiment.
In an illustrative example, assuming that the building information includes a period, a span, and a unit, please refer to FIG. 7, which shows a complete flow diagram. As shown in fig. 7, the control terminal may traverse each device, determine whether the device is an entrance machine or an indoor machine, acquire building information from the entrance machine if the device is an entrance machine, detect whether an issue number in the building information already exists, detect whether the issue number already exists if the issue number already exists, and create a node corresponding to the issue number if the issue number does not exist, and continue to detect whether the issue number already exists; if the building number exists, detecting whether the unit number exists, and if the building number does not exist, establishing a node corresponding to the building number and continuously detecting whether the unit number exists; if the unit number exists, the unit number is ignored, and if the unit number does not exist, a node corresponding to the unit number is created under the building number. And if the indoor unit is the indoor unit, obtaining the description information from the indoor unit, finding the building information stored in the door phone identified by the door phone identification according to the door phone identification in the description information, and taking the room number in the description information and the indoor unit identification of the indoor unit as the next-level node of the found building information.
By using a tree structure to store the building information and the description information, the storage space required to store the information is reduced.
Referring to fig. 8, which shows a schematic structural diagram of an information association apparatus according to an embodiment of the present invention, as shown in fig. 8, the information association apparatus may include: a first acquisition unit 810, a second acquisition unit 820, and a relationship creation unit 830.
A first obtaining unit 810, configured to obtain building information stored in a door phone, where the building information is used to indicate a building using the door phone;
a second obtaining unit 820, configured to obtain description information stored in an indoor unit; the description information comprises a room number of a room using the indoor unit and an entrance machine identifier of an entrance machine used by a building to which the room belongs;
a relationship creating unit 830, configured to create a target association relationship according to the building information acquired by the first acquiring unit 810 and the description information acquired by the second acquiring unit 820, where the target association relationship includes an association relationship among building information, a room number, an entrance machine, and an indoor machine.
In summary, the information association apparatus provided in this embodiment automatically creates a target association relationship according to the acquired building information and description information by automatically acquiring the building information stored in the entrance machine and the description information stored in the indoor machine; the problem that in the prior art, the incidence relation is manually input by a worker, and the incidence relation is created with low efficiency is solved; the effect of improving the creation efficiency of the incidence relation is achieved.
Based on the information association apparatus provided in the foregoing embodiment, optionally, the relationship creating unit 830 is further configured to:
for each piece of description information, according to the entrance machine identification of the entrance machine in the description information, establishing an association relation among the room number in the description information, the indoor machine identification of the indoor machine storing the description information, the entrance machine identification and the building information stored in the entrance machine identified by the entrance machine identification.
Optionally, the relationship creating unit 830 is further configured to:
and taking the room number and the indoor unit identification as the next layer node of the entrance machine identification and the building information.
Optionally, the building information includes n-level information, an area defined by the i-level information is larger than an area defined by the i + 1-level information, n is an integer greater than or equal to 2, i is greater than or equal to 1 and is less than or equal to n-1, and the apparatus further includes:
the tree creating unit is used for creating n layers of trees according to the building information for each piece of building information, wherein the ith layer of the tree is the ith level information in the building information.
Optionally, the tree creating unit is further configured to:
for each level of information in the building information, detecting whether the information exists;
if yes, continuously detecting whether next-level information exists;
and if the information does not exist, if the information is the level 1 information, creating a node corresponding to the level 1 information, and if the information is not the level 1 information, taking the information as a next level node of a node corresponding to the previous level information.
Optionally, the first obtaining unit 810 is further configured to read a first authentication result corresponding to each entrance machine from a first database; according to the read first authentication results, the building information is read in batch from the doorway machine corresponding to the first authentication results which show that the authentication is passed;
and/or the presence of a gas in the gas,
the second obtaining unit 820 is further configured to read a second authentication result corresponding to each indoor unit from a second database; and reading the description information in batch from the indoor units corresponding to the second authentication results which show that the authentication is passed according to the read second authentication results.
Optionally, the first obtaining unit 810 is further configured to obtain first authentication information, authenticate the door phone according to the first authentication information, and read the building information from the door phone after the door phone passes the authentication;
and/or the presence of a gas in the gas,
the second obtaining unit 820 is further configured to obtain second authentication information, authenticate the indoor unit according to the second authentication information, and read the description information from the indoor unit after the authentication is passed.
It should be noted that: the information association apparatus provided in the foregoing embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be allocated to different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiments of the information association apparatus and the information association method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiments of the methods and are not described herein again.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (12)
1. An information association method is applied to a control terminal, and the method comprises the following steps:
traversing the connected door phone to acquire building information stored in the door phone, wherein the building information is used for representing the building using the door phone;
traversing the connected indoor units to acquire description information stored in the indoor units; the description information comprises a room number using the indoor unit and an entrance machine identifier of an entrance machine used by a building to which the room belongs;
and for each piece of description information, according to the entrance machine identification of the entrance machine in the description information, creating a target association relation among the room number in the description information, the indoor machine identification of the indoor machine storing the description information, the entrance machine identification and the building information stored in the entrance machine identified by the entrance machine identification.
2. The method of claim 1, wherein the creating of the target association relationship among the room number in the description information, the indoor unit identification of the indoor unit storing the description information, the entrance unit identification, and the building information stored in the entrance unit identified by the entrance unit identification according to the entrance unit identification of the entrance unit in the description information comprises:
and taking the room number and the indoor unit identification as the next layer node of the entrance machine identification and the building information.
3. The method of claim 1 or 2, wherein the building information includes n levels of information, the i level of information demarcating an area larger than the i +1 level of information, n is an integer greater than or equal to 2, 1 ≦ i ≦ n-1, and the method further comprises:
and for each piece of building information, creating n layers of trees according to the building information, wherein the ith layer of the tree is the ith level information in the building information.
4. The method of claim 3, wherein creating an n-level tree from the building information comprises:
for each level of information in the building information, detecting whether the information exists;
if yes, continuously detecting whether next-level information exists;
and if the information does not exist, if the information is the level 1 information, creating a node corresponding to the level 1 information, and if the information is not the level 1 information, taking the information as a next level node of a node corresponding to the previous level information.
5. The method according to claim 1 or 2,
the acquiring of the building information stored in the doorway machine includes: reading a first authentication result corresponding to each entrance machine from a first database; according to the read first authentication results, the building information is read in batch from the doorway machine corresponding to the first authentication results which show that the authentication is passed;
and/or the presence of a gas in the gas,
the obtaining of the description information stored in the indoor unit includes: reading a second authentication result corresponding to each indoor unit from a second database; and reading the description information in batch from the indoor units corresponding to the second authentication results which show that the authentication is passed according to the read second authentication results.
6. The method according to claim 1 or 2,
the acquiring of the building information stored in the doorway machine includes: acquiring first authentication information, authenticating the door phone according to the first authentication information, and reading the building information from the door phone after the door phone passes the authentication;
and/or the presence of a gas in the gas,
the obtaining of the description information stored in the indoor unit includes: and acquiring second authentication information, authenticating the indoor unit according to the second authentication information, and reading the description information from the indoor unit after the authentication is passed.
7. An information association device, applied to a control terminal, the device comprising:
the first acquisition unit is used for traversing the connected door phone to acquire the building information stored in the door phone, wherein the building information is used for representing the building using the door phone;
the second acquisition unit is used for traversing the connected indoor units to acquire the description information stored in the indoor units; the description information comprises a room number using the indoor unit and an entrance machine identifier of an entrance machine used by a building to which the room belongs;
and the relationship creating unit is used for creating a target association relationship among the room number in the description information, the indoor unit identification of the indoor unit storing the description information, the entrance machine identification and the building information stored in the entrance machine identified by the entrance machine identification according to the entrance machine identification in the description information.
8. The apparatus of claim 7, wherein the relationship creating unit is further configured to:
and taking the room number and the indoor unit identification as the next layer node of the entrance machine identification and the building information.
9. The apparatus of claim 7 or 8, wherein the building information comprises n-level information, the i-level information defines a region larger than the i + 1-level information, n is an integer greater than or equal to 2, 1 ≦ i ≦ n-1, and the apparatus further comprises:
the tree creating unit is used for creating n layers of trees according to the building information for each piece of building information, wherein the ith layer of the tree is the ith level information in the building information.
10. The apparatus of claim 9, wherein the tree creating unit is further configured to:
for each level of information in the building information, detecting whether the information exists;
if yes, continuously detecting whether next-level information exists;
and if the information does not exist, if the information is the level 1 information, creating a node corresponding to the level 1 information, and if the information is not the level 1 information, taking the information as a next level node of a node corresponding to the previous level information.
11. The apparatus according to claim 7 or 8,
the first obtaining unit is further configured to read a first authentication result corresponding to each entrance machine from a first database; according to the read first authentication results, the building information is read in batch from the doorway machine corresponding to the first authentication results which show that the authentication is passed;
and/or the presence of a gas in the gas,
the second obtaining unit is further configured to read a second authentication result corresponding to each indoor unit from a second database; and reading the description information in batch from the indoor units corresponding to the second authentication results which show that the authentication is passed according to the read second authentication results.
12. The apparatus according to claim 7 or 8,
the first obtaining unit is further configured to obtain first authentication information, authenticate the door phone according to the first authentication information, and read the building information from the door phone after the authentication is passed;
and/or the presence of a gas in the gas,
the second obtaining unit is further configured to obtain second authentication information, authenticate the indoor unit according to the second authentication information, and read the description information from the indoor unit after the authentication is passed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193096.1A CN108665583B (en) | 2017-03-28 | 2017-03-28 | Information association method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193096.1A CN108665583B (en) | 2017-03-28 | 2017-03-28 | Information association method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108665583A CN108665583A (en) | 2018-10-16 |
CN108665583B true CN108665583B (en) | 2021-11-23 |
Family
ID=63785947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710193096.1A Active CN108665583B (en) | 2017-03-28 | 2017-03-28 | Information association method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108665583B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111629332B (en) * | 2019-02-28 | 2023-03-21 | 阿里巴巴集团控股有限公司 | Correlation method and device of building information model and Internet of things equipment and mobile terminal |
CN111629012B (en) * | 2020-07-28 | 2020-10-30 | 杭州海康威视数字技术股份有限公司 | Communication method, communication device, access control system, access control equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101931791A (en) * | 2009-06-24 | 2010-12-29 | Tcl集团股份有限公司 | Intercom system terminal device as well as intercom system and communication method thereof |
CN103095715A (en) * | 2013-01-28 | 2013-05-08 | 中国船舶重工集团公司第七一八研究所 | Full-digital building intercom system and authentication method based on session initiation protocol (SIP) |
CN103647806A (en) * | 2013-11-26 | 2014-03-19 | 深圳国投物联网络股份有限公司 | Internet of things system, public machine and method for calling indoor unit by adopting self-adaptive keyboard |
CN106254357A (en) * | 2016-08-09 | 2016-12-21 | 慧锐通智能科技股份有限公司 | A kind of building conversational system based on Quick Response Code configuration system and method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI282941B (en) * | 2001-03-15 | 2007-06-21 | Toshiba Corp | Entrance management apparatus and entrance management method by using face features identification |
CN102831503A (en) * | 2012-08-14 | 2012-12-19 | 安科智慧城市技术(中国)有限公司 | Building visual talkback integrated management system and implementing method thereof |
CN104853343A (en) * | 2014-02-17 | 2015-08-19 | 联想(北京)有限公司 | Data processing method, device and electronic device |
-
2017
- 2017-03-28 CN CN201710193096.1A patent/CN108665583B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101931791A (en) * | 2009-06-24 | 2010-12-29 | Tcl集团股份有限公司 | Intercom system terminal device as well as intercom system and communication method thereof |
CN103095715A (en) * | 2013-01-28 | 2013-05-08 | 中国船舶重工集团公司第七一八研究所 | Full-digital building intercom system and authentication method based on session initiation protocol (SIP) |
CN103647806A (en) * | 2013-11-26 | 2014-03-19 | 深圳国投物联网络股份有限公司 | Internet of things system, public machine and method for calling indoor unit by adopting self-adaptive keyboard |
CN106254357A (en) * | 2016-08-09 | 2016-12-21 | 慧锐通智能科技股份有限公司 | A kind of building conversational system based on Quick Response Code configuration system and method |
Also Published As
Publication number | Publication date |
---|---|
CN108665583A (en) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10764743B1 (en) | Providing a service with location-based authorization | |
EP3506031B1 (en) | Smart household control method and system | |
US9432358B2 (en) | System and method of authenticating user account login request messages | |
US8707407B2 (en) | Account hijacking counter-measures | |
CN108023794B (en) | Equipment access control method and device | |
US9313080B2 (en) | User logging of web traffic on non-browser based devices | |
CN109474838B (en) | Data processing method, device, system and storage medium | |
CN109067762B (en) | Identification method, device and equipment of Internet of things equipment | |
US8990389B2 (en) | Using a router based web meter in a mixed mode configuration | |
US20140335886A1 (en) | Network identifier position determining system and method for same | |
CN108665583B (en) | Information association method and device | |
CN105022939B (en) | Information Authentication method and device | |
CN109493469A (en) | Authority setting method and management equipment of intelligent door lock | |
CN102932427A (en) | Control system based on limited area | |
CN111769967A (en) | Intelligent configuration method and device for intercom equipment, server, terminal equipment and storage medium | |
US9876800B2 (en) | Integrating a router based web meter and a software based web meter | |
CN113452763B (en) | Smart home business registration method and device and smart home system | |
CN103516674A (en) | Method for rapid online connection to network equipment and manipulator | |
CN110298953B (en) | Method and device for controlling equipment in intelligent home operating system | |
CN105873046B (en) | A kind of method and apparatus for managing WAP | |
US20200053095A1 (en) | Systems And Methods For Managing Access Control | |
WO2015062266A1 (en) | System and method of authenticating user account login request messages | |
CN108112031A (en) | Network type determines method and device | |
CN111768544B (en) | Intelligent access control method, device and system, electronic equipment and storage medium | |
CN114415525A (en) | Control method, control device, electronic equipment and storage medium |
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 |