CN106686754B - Data interaction method and data interaction system - Google Patents

Data interaction method and data interaction system Download PDF

Info

Publication number
CN106686754B
CN106686754B CN201611108197.6A CN201611108197A CN106686754B CN 106686754 B CN106686754 B CN 106686754B CN 201611108197 A CN201611108197 A CN 201611108197A CN 106686754 B CN106686754 B CN 106686754B
Authority
CN
China
Prior art keywords
intelligent terminal
mobile terminal
terminal device
data
intelligent
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
CN201611108197.6A
Other languages
Chinese (zh)
Other versions
CN106686754A (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.)
Xiamen Entropy Technology Co., Ltd
Original Assignee
Xiamen Zkteco Biometric Identification Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Zkteco Biometric Identification Technology Co ltd filed Critical Xiamen Zkteco Biometric Identification Technology Co ltd
Priority to CN201611108197.6A priority Critical patent/CN106686754B/en
Publication of CN106686754A publication Critical patent/CN106686754A/en
Application granted granted Critical
Publication of CN106686754B publication Critical patent/CN106686754B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention is suitable for the technical field of communication, and provides a data interaction method and a data interaction system, wherein the data interaction method comprises the following steps: the mobile terminal is accessed to a local area network where the intelligent terminal device is located; the mobile terminal acquires the IP address and the port number of the intelligent terminal equipment; sending a connection request to the intelligent terminal equipment according to the IP address and the port number of the intelligent terminal equipment; the intelligent terminal equipment returns connection confirmation information to the mobile terminal; and the mobile terminal acquires the data in the intelligent terminal equipment based on a private communication protocol according to the data interaction instruction. According to the embodiment of the invention, the mobile terminal is used for accessing the local area network where the intelligent terminal device is located, and the intelligent device required to be interacted is searched according to the IP address and the port number, so that the problem that the mobile terminal and the intelligent device are far away from each other and are constrained by signal strength is solved, the difficulty of data interaction is reduced, no additional physical setting is needed for the intelligent terminal device, the cost of device consumables is reduced, and the data interaction is effectively realized.

Description

Data interaction method and data interaction system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a data interaction method and a data interaction system.
Background
At present, security monitoring systems such as entrance guard security equipment and attendance access control equipment are gradually applied to various places such as office buildings, communities, markets, banks and the like, and bring great convenience to people. With the widespread application of intelligent security equipment, the data interaction problem is also paid attention to in the industry. At present, security equipment mainly carries out data interaction through the following several modes: firstly, a fixed panel is arranged on security equipment, so that a user can interact with the equipment through physical keys or touch screen keys on the panel; secondly, remote sensing control of data is achieved through a Bluetooth controller matched with the security equipment; and thirdly, the data of the security equipment is automatically uploaded to the cloud server, and the PC computer software can be used for connecting the cloud server to obtain the security data.
However, in the process of implementing the present invention, the inventor finds that the current data interaction method for the intelligent security device at least has the following problems: data interaction is achieved through the cloud server and the mode of setting the fixed panel, the cost of equipment consumables is increased, the interactive mode of Bluetooth remote sensing control is restrained by signal strength, remote data interaction cannot be achieved, and the interaction difficulty is high.
Disclosure of Invention
The embodiment of the invention provides a data interaction method and a data interaction system, and aims to solve the problems that the existing intelligent security equipment data interaction method is too high in equipment consumable cost and interaction difficulty and cannot realize remote data interaction.
The embodiment of the invention is realized in such a way that a data interaction method comprises the following steps:
the mobile terminal is accessed to a local area network where the intelligent terminal device is located;
the mobile terminal acquires the IP address and the port number of the intelligent terminal equipment;
according to the IP address and the port number of the intelligent terminal equipment, the mobile terminal sends a connection request to the intelligent terminal equipment;
the intelligent terminal equipment returns connection confirmation information to the mobile terminal;
and the mobile terminal acquires the data in the intelligent terminal equipment based on a private communication protocol according to a data interaction instruction input by a user.
Another object of an embodiment of the present invention is to provide a data interaction system, which is characterized in that the data interaction system includes a mobile terminal and an intelligent terminal device,
the mobile terminal is used for accessing a local area network where the intelligent terminal equipment is located;
the mobile terminal is also used for acquiring the IP address and the port number of the intelligent terminal equipment;
the mobile terminal is also used for sending a connection request to the intelligent terminal equipment according to the IP address and the port number of the intelligent terminal equipment;
the intelligent terminal equipment is used for returning connection confirmation information to the mobile terminal;
and the mobile terminal is also used for acquiring data in the intelligent terminal equipment based on a private communication protocol according to a data interaction instruction input by a user.
In the embodiment of the invention, the mobile terminal is accessed to the local area network where the intelligent terminal device is located, and the intelligent terminal device needing to interact data is searched according to the IP address and the port number, so that the problem that the mobile terminal is constrained by the signal strength when the geographical position of the intelligent terminal device is far away from the geographical position of the intelligent terminal device can be avoided, the difficulty of data interaction is reduced, the stability of data interaction is improved, the user experience degree is improved, meanwhile, the intelligent terminal device does not need to add extra physical settings, the cost of device consumables is reduced compared with the existing data interaction method, and the data interaction is effectively realized.
Drawings
Fig. 1 is a system architecture diagram to which the data interaction method provided by the embodiment of the present invention is applicable;
FIG. 2 is a flow chart of an implementation of a data interaction method provided by the embodiment of the present invention;
fig. 3 is a schematic diagram illustrating that the data interaction method according to the embodiment of the present invention obtains the IP address and the port number of the intelligent terminal device in a two-dimensional code scanning manner;
fig. 4 is a schematic diagram illustrating that the data interaction method directly obtains the IP address and the port number of the intelligent terminal device by inputting information by a user according to the embodiment of the present invention;
fig. 5 is a flowchart illustrating a specific implementation of the data interaction method S204 according to an embodiment of the present invention;
fig. 6 is a block diagram of a data interaction system 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, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiment of the invention, the mobile terminal is accessed to the local area network where the intelligent terminal device is located, and the intelligent terminal device needing to interact data is searched according to the IP address and the port number, so that the problem that the mobile terminal is constrained by the signal strength when the geographical position of the intelligent terminal device is far away from the geographical position of the intelligent terminal device can be avoided, the difficulty of data interaction is reduced, the stability of data interaction is improved, the user experience degree is improved, meanwhile, the intelligent terminal device does not need to add extra physical settings, the cost of device consumables is reduced compared with the existing data interaction method, and the data interaction is effectively realized.
In the embodiment of the invention, the intelligent terminal device is a device with an embedded computer system, and supports various functions such as audio, video, data acquisition and the like, for example, various security devices such as an attendance machine, an access controller and the like. It should be understood that the data interaction method provided by the embodiment of the invention is still applicable to intelligent terminal devices in various other fields and data in various other fields besides the access controller and the attendance machine.
Fig. 1 is a system architecture diagram applicable to the data interaction method provided by the embodiment of the present invention, and for convenience of description, only the relevant parts to the embodiment are shown.
Referring to fig. 1, the system is composed of an intelligent terminal device 11 and a plurality of mobile terminals 12, wherein the intelligent terminal device 11 is configured to perform an interactive operation with the connected mobile terminals 12 according to stored attendance data and entrance and exit data. Preferably, the attendance data and the entrance guard entry and exit data information may be stored in a background database 13 connected to the intelligent terminal device, including but not limited to data information such as data records and exception logs of each time period, each user, each intelligent terminal device, and the intelligent terminal device 11 stores, manages, and screens the information according to the data types, and interacts with other external devices, users, or the mobile terminal 12. Meanwhile, the intelligent terminal device 11 is further configured to provide data query, upload, and download services for the mobile terminal 12, so that the mobile terminal 12 can feed back to an actual user according to a result of data processing.
In the system, the mobile terminal 12 may provide a terminal device with a network access function for a notebook computer, a tablet computer, or a mobile phone, and the communication with the intelligent terminal device 11 is ensured by interacting information with the intelligent terminal device 11 through an application client or a web client running on the device. Each mobile terminal 12 may serve as a request client, submit a data interaction request to the intelligent terminal device 11, and control the operation of each component in the intelligent terminal device 11 or directly output data to the mobile terminal 12 according to an interaction result returned by the intelligent terminal device 11.
Fig. 2 shows a flowchart of an implementation of the data interaction method provided by the embodiment of the present invention, which is detailed as follows:
in S201, the mobile terminal accesses a local area network where the intelligent terminal device is located.
In this embodiment, when the intelligent terminal device is installed and debugged or actually operated, the intelligent terminal device is often successfully accessed to the local area network of the location through network wiring in an actual application scene. For example, when the attendance machine is installed on a wall at the door of a company, a network connection for connecting an internal network of the company is preset at a position behind the attendance machine, and the connection is connected to the door of the attendance machine, which is then successfully connected to the local area network of the company.
After the local area network where the intelligent terminal device is located is expanded through the wireless AP inside the company, the wireless coverage range of the local area network can be expanded, and the fact that the mobile terminal can be accessed into the local area network where the intelligent terminal device is located and wirelessly connected with the intelligent terminal device is guaranteed only by being connected to the wireless access point inside the company.
In S202, the mobile terminal obtains an IP address and a port number of the intelligent terminal device.
As an embodiment of the present invention, the acquiring, by the mobile terminal, the IP address and the port number of the intelligent terminal device includes:
the intelligent terminal equipment displays a two-dimensional code based on the IP address and the port number information;
and the mobile terminal scans the two-dimensional code to acquire the IP address and the port number of the intelligent terminal equipment.
The two-dimensional code is a planar pattern for recording data symbol information by using a certain specific geometric figure or black and white figures distributed in a two-dimensional direction according to a certain rule. The two-dimensional code is formed by a plurality of geometric shapes corresponding to binary information of the IP address and port number data of the intelligent terminal device, and is displayed on a screen of the intelligent terminal device, pasted on a shell of the intelligent terminal device or displayed in other external information carriers. When the IP address changes, the two-dimension code displayed on the screen can be updated in real time, and other external display modes update the two-dimension code through manual modification. The two-dimensional code is scanned by using the mobile terminal with the photoelectric scanning function, information in the two-dimensional code can be automatically identified and read, processing can be automatically executed, and the real IP address and the port number of the intelligent terminal device can be obtained.
Fig. 3 is a schematic diagram of acquiring an IP address and a port number of the intelligent terminal device in a two-dimensional code manner. As shown in fig. 3, the attendance machine No. 1, whose left side is an intelligent terminal device, displays a two-dimensional code having information of an IP address and a port number of the device on a screen, and the mobile terminal on the right side starts a scanning function, aligns a scanning frame with the two-dimensional code on the attendance machine screen, identifies the two-dimensional code, and finally obtains a real IP address and a port number of the attendance machine No. 1.
As another embodiment of the present invention, the IP address and port number may also be specified by the user directly entering information on the mobile terminal. As shown in fig. 4, specifically, the mobile terminal obtains the IP address and the port number about the intelligent terminal device, which are input by the user, through an input box and a prompt displayed on the screen. The user can know the IP address and the port number of the intelligent terminal equipment with which data is to be interacted by consulting an intelligent terminal equipment administrator or inquiring the information openly recorded by the intelligent terminal equipment, and inputs the IP address and the port number into an input box shown by a mobile terminal screen.
In S203, the mobile terminal sends a connection request to the intelligent terminal device according to the IP address and the port number of the intelligent terminal device.
The IP address allocates a unique logical address to each intelligent terminal device in the local area network, and the mobile terminal searches the intelligent terminal device corresponding to the IP address from the local area network by using the IP address and sends a connection request to the intelligent terminal device.
Since an intelligent terminal device having an IP address can provide many different types of data services, these data services can be implemented by one IP address. In order to determine the specific services required by the mobile terminal, this problem is solved by means of one port number per service.
Preferably, the intelligent terminal device only opens one port to provide data service when in operation.
In the embodiment, according to the IP addresses and the port numbers obtained from multiple ways, the mobile terminal can break the limitation of the geographic spatial position, and interacts with the remote intelligent terminal equipment through a wireless network, so that the stability and the flexibility of data interaction are improved.
As an embodiment of the present invention, the sending, by the mobile terminal, the connection request to the intelligent terminal device includes:
the mobile terminal acquires identity information of a user;
and the mobile terminal sends a connection request based on the identity information to the intelligent terminal equipment.
And acquiring account information which is input by a user and related to the identity at one side of the mobile terminal. The account number includes, but is not limited to, an entity card account number such as a job number, an access control card number, an identity card number, and other virtual account numbers, such as an equipment administrator account number, an office system account number, and the like. The mobile terminal can acquire the user identity account on the current system platform in a mode of directly jumping to other system platforms in the interactive program.
And the mobile terminal sends a connection request to the intelligent terminal equipment, wherein the connection request information contains the account content and can also contain a password corresponding to the identity account.
In S204, the intelligent terminal device returns connection confirmation information to the mobile terminal.
And the mobile terminal waits for the response of the intelligent terminal equipment and receives a connection confirmation packet returned by the intelligent terminal equipment. If the mobile terminal does not receive the response of the intelligent terminal equipment or the sent data packet within the preset time, the data interaction connection request fails; and if receiving the connection confirmation information returned by the mobile terminal, starting the mobile terminal to enter a data interaction state.
As an embodiment of the present invention, the above S203 and S204 are specifically as follows:
the mobile terminal sends a connection request to the intelligent terminal equipment based on a private communication protocol;
and the intelligent terminal equipment judges whether the identity information meets a preset condition or not according to the received connection request based on the identity information, and if so, returns connection confirmation information to the mobile terminal based on a private communication protocol.
In this embodiment, the private communication protocol represents a self-defined communication protocol, and can only be used between devices manufactured by the same manufacturer, and the intelligent terminal device cannot communicate with devices manufactured by other manufacturers by using the private communication protocol, and thus has no compatibility.
In particular, the private communication protocol in this embodiment is a UDK (Universal Development Kit) communication protocol, and is implemented by a private offline UDK. The offline UDK is a cross-platform version of an offline SDK (Software development kit), can be used for various application platforms such as IOS, android, Linux and the like, is a development kit tool capable of managing and configuring various data on intelligent terminal equipment, and provides an interface for data communication with the intelligent terminal equipment such as an offline fingerprint machine, a door access machine, a card machine and the like.
Before initiating a data interaction request, the mobile terminal processes the value of a specified field in the request data packet through a preset algorithm stored in the mobile terminal to obtain a first check value related to the data packet, attaches the check value to the interaction request data packet, and sends the interaction request data packet to the intelligent terminal equipment.
After receiving the request data packet based on the private UDK communication protocol, one end of the intelligent terminal equipment performs the following processing: and processing the value of the specified field in the data packet by using a preset algorithm to obtain a second check value related to the data packet.
And the intelligent terminal equipment compares whether the second check value is the same as the first check value in the data packet, and if the second check value is the same as the first check value in the data packet, the intelligent terminal equipment determines that the request data packet is not subjected to illegal tampering by a third party and is a complete data packet. At the moment, the intelligent terminal equipment creates a session window, takes the session information as connection confirmation information and transmits the connection confirmation information to the mobile terminal through a private UDK communication protocol.
According to the embodiment, data can be received and transmitted between the mobile terminal and the intelligent terminal device through the private communication protocol, and the mobile terminal using other communication protocols can not be connected with the intelligent terminal device, so that lawless persons can be prevented from using mobile terminal application programs matched with the intelligent terminal devices of the manufacturers to perform data interaction and management on the intelligent terminal devices of other manufacturers. In addition, the embodiment of the invention further ensures the safe transmission of the data by carrying out integrity check on the received data packet.
Fig. 5 is a flowchart of a specific implementation of the data interaction method S204 according to an embodiment of the present invention, which is specifically as follows:
in S501, the intelligent terminal device obtains a connection request based on the identity information.
And the intelligent terminal equipment extracts the identity account of the user from the connection request, and if the password information corresponding to the identity account also exists in the connection request, the identity account is extracted together. In S502, it is determined whether a record corresponding to the identity account exists in a preset identity information base.
The identity information base is preset with legally authorized user account information, and only the account existing in the identity information base can perform data interaction with the intelligent terminal equipment. The identity information base can be arranged in the intelligent terminal equipment or in a background identity information database connected with the intelligent terminal equipment through a network
And matching and comparing the identity account acquired from the connection request with legal account information in an identity information base one by one, and judging whether the same record items exist. If yes, go to step S503; otherwise, the intelligent terminal equipment returns connection rejection information to the mobile terminal.
In S503, it is determined whether the password information of the account needs to be verified.
When an entry identical to the identity account obtained in the connection request exists in the identity information base, reading the entry information, judging whether the entry of the identity account has a password attribute, if so, verifying the password validity of the account, and executing a step S504; if the entry of the identity account does not have the password attribute, step S505 is executed.
In S504, it is determined whether the identity password carried in the connection request matches a preset password.
And when the entry which is the same as the identity account acquired in the connection request has the password attribute, reading the password of the account stored in the entry, namely the preset password. Comparing the identity password obtained from the connection request with the preset password, and if the identity password is different from the preset password, returning connection rejection information to the mobile terminal by the intelligent terminal equipment; if the two are the same, step S505 is executed.
In S505, the intelligent terminal device returns connection confirmation information to the mobile terminal.
And after receiving the connection confirmation information, the mobile terminal switches an interface interacting with the user, receives an interaction instruction of the user and prepares for data interaction with the intelligent terminal equipment.
As an embodiment of the present invention, the intelligent terminal device obtains the interaction right corresponding to the identity account according to the received connection request based on the identity information, so that the mobile terminal can only interact information with the intelligent terminal device within a range specified by the right.
In this embodiment, through increasing user authentication function in intelligent terminal equipment, can avoid illegal user to acquire the inside secret data of system, prevent to cause because of information leakage and be difficult to the loss of property of estimation, through the authority level that sets up the identification account number, guaranteed that different users can acquire the data of different secret levels in the intelligent terminal equipment, be favorable to carrying out the management and control to the transmission range of data.
In S205, the mobile terminal obtains the data in the intelligent terminal device based on the private communication protocol according to the data interaction instruction input by the user.
After the mobile terminal and the intelligent terminal device are stably connected, a user can input an instruction on the mobile terminal and send the instruction to the intelligent terminal device through a network so as to finish interaction between data. For example, the operation of the intelligent terminal device is controlled or data on the intelligent terminal device is exported.
In the embodiment of the invention, the mobile terminal is accessed to the local area network where the intelligent terminal device is located, and the intelligent terminal device needing to interact data is searched according to the IP address and the port number, so that the problem that the mobile terminal is constrained by the signal strength when the geographical position of the intelligent terminal device is far away from the geographical position of the intelligent terminal device can be avoided, the difficulty of data interaction is reduced, the stability of data interaction is improved, the user experience degree is improved, meanwhile, the intelligent terminal device does not need to add extra physical settings, the cost of device consumables is reduced compared with the existing data interaction method, and the data interaction is effectively realized.
As an embodiment of the present invention, the intelligent terminal device performs data screening according to the data interaction instruction, and after the data obtained by the data screening is transmitted to the mobile terminal, the UDK inside the mobile terminal automatically determines whether the currently received data is continuous with the data received last time.
If the currently received data is not continuous with the previously received data, it indicates that the data packet is lost, and at this time, the mobile terminal initiates a data interaction request again to request to acquire the lost data packet.
As an embodiment of the present invention, the data interaction method provided by the present invention further includes:
the mobile terminal caches the node position or the deviation position of the data obtained from the intelligent terminal equipment at present;
when the connection between the mobile terminal and the intelligent terminal device is disconnected, after the mobile terminal is reconnected to the intelligent terminal device, the mobile terminal sends the node position or the deviation position of the data to the intelligent terminal device.
In the process of downloading or acquiring data by the mobile terminal, if the connection between the mobile terminal and the intelligent terminal device is disconnected and the mobile terminal and the intelligent terminal device are reconnected after the disconnection, the mobile terminal sends the node position or the deviation position corresponding to the downloaded partial data to the intelligent terminal device before the disconnection.
And the intelligent terminal equipment analyzes the node position or the deviation position corresponding to the data according to the received information, and reads the data again from the position. And transmitting the subsequent part of the read data to the mobile terminal, thereby realizing the breakpoint continuous transmission of the data.
When the mobile terminal receives the subsequent part of the information of the data, if all the information corresponding to the data is received completely, the currently received data is stored; if all the information corresponding to the data is not received completely, storing the currently received partial data, and meanwhile caching a new node position or a deviation position corresponding to the data, so that the cached new node position or the deviation position can be sent after the intelligent terminal equipment is disconnected and reconnected next time.
Fig. 6 is a block diagram illustrating a data interaction system according to an embodiment of the present invention, where the data interaction system is used to execute the data interaction method according to the embodiments of fig. 1 to fig. 5. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the data interaction system includes an intelligent terminal device 61 and a mobile terminal 62,
the mobile terminal 62 is used for accessing to a local area network where the intelligent terminal device 61 is located.
The mobile terminal 62 is further configured to obtain an IP address and a port number of the intelligent terminal device 61.
The mobile terminal 62 is further configured to send a connection request to the intelligent terminal device 61 according to the IP address and the port number of the intelligent terminal device 61.
The intelligent terminal device 61 is configured to return connection confirmation information to the mobile terminal 62.
The mobile terminal 62 is further configured to obtain data in the intelligent terminal device 61 based on a private communication protocol according to a data interaction instruction input by a user.
Optionally, the intelligent terminal device 61 is specifically configured to display a two-dimensional code based on the IP address and the port number information;
optionally, the mobile terminal 62 is specifically configured to obtain the IP address and the port number of the intelligent terminal device 61 by scanning the two-dimensional code.
Optionally, the mobile terminal 62 is specifically configured to obtain, through an input box displayed on a screen, an IP address and a port number, which are input by a user, of the intelligent terminal device 61.
Optionally, the mobile terminal 62 is further configured to send a connection request based on the identity information to the intelligent terminal device 61.
Optionally, the mobile terminal 62 is further configured to send a connection request to the intelligent terminal device 61 based on a private communication protocol.
The intelligent terminal device 61 is further configured to determine whether the identity information meets a preset condition according to the received connection request based on the identity information, and if so, return connection confirmation information to the mobile terminal 62 based on a private communication protocol.
Optionally, the mobile terminal 62 is further configured to cache a node position or a deviation position of data that has been currently acquired from the intelligent terminal device 61;
when the connection between the mobile terminal 62 and the intelligent terminal device 61 is disconnected, after the mobile terminal 62 reconnects the intelligent terminal device 61, the mobile terminal 62 is further configured to send the node position or the deviation position of the data to the intelligent terminal device 61.
In the embodiment of the invention, the mobile terminal is accessed to the local area network where the intelligent terminal device is located, and the intelligent terminal device needing to interact data is searched according to the IP address and the port number, so that the problem that the mobile terminal is constrained by the signal strength when the geographical position of the intelligent terminal device is far away from the geographical position of the intelligent terminal device can be avoided, the difficulty of data interaction is reduced, the stability of data interaction is improved, the user experience degree is improved, meanwhile, the intelligent terminal device does not need to add extra physical settings, the cost of device consumables is reduced compared with the existing data interaction method, and the data interaction is effectively realized.
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 and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method for data interaction, comprising:
the mobile terminal is accessed to a local area network where the intelligent terminal device is located;
the intelligent terminal displays a two-dimensional code based on the IP address and the port number information;
the mobile terminal obtains the IP address and the port number of the intelligent terminal device by scanning the two-dimensional code;
according to the IP address and the port number of the intelligent terminal equipment, the mobile terminal sends a connection request to the intelligent terminal equipment, wherein the connection request comprises identity information of a user and a check value of a connection request data packet;
when the intelligent terminal equipment judges that the identity information of the user and the check value are legal, the intelligent terminal equipment returns connection confirmation information to the mobile terminal;
and the mobile terminal acquires the data in the intelligent terminal equipment based on a private communication protocol according to a data interaction instruction input by a user.
2. The method of claim 1, wherein the mobile terminal sending a connection request to the intelligent terminal device comprises:
the mobile terminal acquires identity information of a user;
and the mobile terminal sends a connection request based on the identity information to the intelligent terminal equipment.
3. The method of claim 2, wherein the mobile terminal sending a connection request to the intelligent terminal device comprises:
the mobile terminal sends a connection request to the intelligent terminal equipment based on a private communication protocol;
the intelligent terminal device returns connection confirmation information to the mobile terminal, and the connection confirmation information comprises the following steps:
and the intelligent terminal equipment judges whether the identity information meets a preset condition or not according to the received connection request based on the identity information, and if so, returns connection confirmation information to the mobile terminal based on a private communication protocol.
4. The method of claim 1, wherein the method further comprises:
the mobile terminal caches the node position or the deviation position of the data obtained from the intelligent terminal equipment at present;
when the connection between the mobile terminal and the intelligent terminal device is disconnected, after the mobile terminal is reconnected with the intelligent terminal device, the mobile terminal sends the node position or the deviation position of the data to the intelligent terminal device.
5. A data interaction system is characterized by comprising a mobile terminal and intelligent terminal equipment,
the mobile terminal is used for accessing a local area network where the intelligent terminal equipment is located;
the mobile terminal is also used for acquiring the IP address and the port number of the intelligent terminal equipment by scanning the two-dimensional code;
the mobile terminal is further used for sending a connection request to the intelligent terminal device according to the IP address and the port number of the intelligent terminal device, wherein the connection request comprises the identity information of the user and the check value of the connection request data packet;
the intelligent terminal equipment is used for displaying a two-dimensional code based on IP address and port number information and returning connection confirmation information to the mobile terminal when the identity information of the user and the check value are judged to be legal;
and the mobile terminal is also used for acquiring data in the intelligent terminal equipment based on a private communication protocol according to a data interaction instruction input by a user.
6. The system of claim 5, wherein the mobile terminal is further configured to obtain identity information of a user;
the mobile terminal is further used for sending a connection request based on the identity information to the intelligent terminal equipment.
7. The system of claim 6, wherein the mobile terminal is further configured to send a connection request to the intelligent terminal device based on a private communication protocol;
the intelligent terminal equipment is further used for judging whether the identity information meets preset conditions or not according to the received connection request based on the identity information, and if so, returning connection confirmation information to the mobile terminal based on a private communication protocol.
8. The system of claim 5, wherein the mobile terminal is further configured to cache a node location or a deviation location of data currently obtained from the intelligent terminal device;
when the connection between the mobile terminal and the intelligent terminal device is disconnected, after the mobile terminal is reconnected to the intelligent terminal device, the mobile terminal is further used for sending the node position or the deviation position of the data to the intelligent terminal device.
CN201611108197.6A 2016-12-06 2016-12-06 Data interaction method and data interaction system Active CN106686754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611108197.6A CN106686754B (en) 2016-12-06 2016-12-06 Data interaction method and data interaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108197.6A CN106686754B (en) 2016-12-06 2016-12-06 Data interaction method and data interaction system

Publications (2)

Publication Number Publication Date
CN106686754A CN106686754A (en) 2017-05-17
CN106686754B true CN106686754B (en) 2020-03-20

Family

ID=58867614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108197.6A Active CN106686754B (en) 2016-12-06 2016-12-06 Data interaction method and data interaction system

Country Status (1)

Country Link
CN (1) CN106686754B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566885A (en) * 2017-09-01 2018-01-09 北京雷石天地电子技术有限公司 STB terminal and the method and device of peripheral hardware safety communication
CN109474646B (en) * 2017-09-07 2021-10-19 腾讯科技(深圳)有限公司 Communication connection method, device, system and storage medium
CN109996347B (en) * 2017-12-29 2023-05-23 珠海金山办公软件有限公司 Method and device for establishing connection between terminal devices
CN110209070A (en) * 2019-04-10 2019-09-06 浙江捷昌线性驱动科技股份有限公司 The means of communication, device and same table based on two dimensional code
CN111491041B (en) * 2020-04-15 2022-06-28 陕西师范大学 Wireless network transmission method and device based on visual addressing
CN111970698B (en) * 2020-08-07 2023-04-07 江苏海岸线互联网科技有限公司 Industrial field weak network environment optimization method
CN113489710B (en) * 2021-06-30 2023-03-24 厦门熵基科技有限公司 File sharing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413182A (en) * 2011-11-17 2012-04-11 南京天溯自动化控制系统有限公司 Intelligent home device remote monitoring device and method
CN103269408A (en) * 2013-05-20 2013-08-28 四川智行电子科技有限公司 Converged communication system
CN103295294A (en) * 2013-04-22 2013-09-11 大连智慧城科技有限公司 Indoor unit-free access control system based on SIP
CN103458059A (en) * 2012-06-05 2013-12-18 深圳市华百安智能技术有限公司 Intelligent home remote control system platform
CN104966343A (en) * 2015-07-14 2015-10-07 深圳市亲邻科技有限公司 Entrance guard control method based on Internet

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254357A (en) * 2011-08-11 2011-11-23 福州开睿动力通信科技有限公司 Attendance system and attendance method
GB2525129A (en) * 2013-02-21 2015-10-14 Chennai Res Ltd A time and attendance processing system
KR102218295B1 (en) * 2014-02-06 2021-02-22 삼성전자주식회사 Home appliance, a network-connection system for home appliance and method of connection of home appliance to a network
CN103955969B (en) * 2014-05-07 2016-01-13 天津师范大学 A kind of student classroom work attendance statistics system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413182A (en) * 2011-11-17 2012-04-11 南京天溯自动化控制系统有限公司 Intelligent home device remote monitoring device and method
CN103458059A (en) * 2012-06-05 2013-12-18 深圳市华百安智能技术有限公司 Intelligent home remote control system platform
CN103295294A (en) * 2013-04-22 2013-09-11 大连智慧城科技有限公司 Indoor unit-free access control system based on SIP
CN103269408A (en) * 2013-05-20 2013-08-28 四川智行电子科技有限公司 Converged communication system
CN104966343A (en) * 2015-07-14 2015-10-07 深圳市亲邻科技有限公司 Entrance guard control method based on Internet

Also Published As

Publication number Publication date
CN106686754A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106686754B (en) Data interaction method and data interaction system
CN103098441B (en) Equipment communicates
US9125049B2 (en) Configuring secure wireless networks
CN108632253B (en) Client data security access method and device based on mobile terminal
US7840688B2 (en) Information processing device, server client system, method, and computer program
CN112738805A (en) Device control method and apparatus, storage medium, and electronic device
KR101564716B1 (en) Apparatus for managing open and shut in enclosure box
US20140235205A1 (en) Method And Systems For Pairing A Mobile Device With A Wireless Network
KR101358346B1 (en) Method for auto log-in and system for the same
CN111123388B (en) Detection method and device for room camera device and detection equipment
CN111935802A (en) Equipment network distribution method and device and computer readable storage medium
CN108123961A (en) Information processing method, apparatus and system
CN112671887A (en) Asset identification method and device, electronic equipment and computer storage medium
KR102356474B1 (en) Systems that support smart work
KR20120140043A (en) A set-top box and method for diagnostic of the same
CN111901151A (en) Method, device, equipment and medium for gateway equipment to manage IOT equipment
CN107396363B (en) Method and equipment for carrying out wireless connection pre-authorization on user equipment
KR20110083050A (en) System for authentication using pairing function in bluetooth terminal and method thereof
US20090150979A1 (en) Network system, network method, and terminal and program therefor
CN105141624A (en) Login method, account management server and client system
CN114585055B (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN114338132B (en) Secret-free login method, client application, operator server and electronic equipment
CN106095781A (en) Malicious websites recognition methods and device
CN112702743B (en) Network data monitoring and protecting method based on artificial intelligence
CN113055254B (en) Address configuration method, device, access server 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170821

Address after: 361000, Xiamen three software park, Fujian Province, 8 North Street, room 2001

Applicant after: Xiamen Central Intelligent Information Technology Co., Ltd.

Address before: 361000 Fujian province Xiamen software park two sunrise Road No. 32 403 unit 02 District

Applicant before: XIAMEN ZHONGKONG BIOLOGICAL RECOGNITION INFORMATION TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 1301, No.132, Fengqi Road, phase III, software park, Xiamen City, Fujian Province

Patentee after: Xiamen Entropy Technology Co., Ltd

Address before: 361000, Xiamen three software park, Fujian Province, 8 North Street, room 2001

Patentee before: XIAMEN ZKTECO BIOMETRIC IDENTIFICATION TECHNOLOGY Co.,Ltd.