A binding method for a mobile terminal and a camera device and an electronic device
Through the list of equipment to be added through cloud server management, mobile terminals and camera devices automatically complete binding in the wireless network, solve the problem of lack of label labeling of camera device, realize the equipment binding of the equipment under the wireless network, improve the use of the product's easy use of the product sex.
Patent Information
- Application Number
- CN202410853625.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-06-28
AI Technical Summary
When the camera equipment connected to the 4G card is used outdoors, the DID identity code tag on the body is easily lost or damaged, resulting in the inability to form a wireless network binding relationship between the mobile terminal and the camera equipment.
The list of device is pre -set through the cloud server, and the mobile terminal and camera device are set up to establish wireless connections with the cloud server, receive records of registration information updates, query the equipment identification number and bind it.
Even if the identity label of the camera device is lacking, the device identification number and user identity number can be obtained through the wireless network, and the binding relationship between the mobile terminal and the camera device can be established, which enhances the easy -to -use and scope of the product.
Smart Images

Figure CN118803204B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video monitoring, and in particular to a binding method for a mobile terminal and a camera device and an electronic device. Background Art
[0002] With the improvement of living standards, people's demand for video surveillance is becoming more and more extensive. 4G card network camera equipment is a widely used video surveillance equipment. The device has a built-in 4G module. Through the 4G module, a 4G wireless network connection is established. Without relying on traditional wired network connection, it can realize remote video monitoring, real-time video transmission and other functions, with higher flexibility and mobility. In order to enable 4G card network camera equipment to provide more diversified remote video monitoring services, people can use client software, such as APP (Application), to scan the label containing the DID (Decentralized Identifiers) identity code on the camera device body to add the camera device using 4G card network, forming a binding relationship between the client and the 4G card network camera device, so that the client can flexibly arrange the video monitoring of the 4G card network camera device through APP and view the video monitoring screen in time.
[0003] However, since the camera equipment connected to the 4G card network usually works outdoors, after the camera equipment is installed for a period of time, as the natural environment and weather change, the label containing the DID identity code on the camera equipment body is very easy to be lost or damaged, resulting in the camera equipment being unable to form a binding relationship when repeatedly adding binding clients because the DID identity code cannot be found, resulting in the problem of difficulty in use. In response to this problem, the current solution is: when the user of the client needs to add a camera device connected to the 4G card network, due to the lack of the DID identity code label on the camera device body, it must first be adjusted to the camera device to use the same wired network as the client, and then through the LAN multicast / broadcast search and discovery method, the DID identity code and other information of the camera device is obtained through the wired network, and then the user's account is used to add it to complete the binding between the camera device and the client corresponding to the user account. This method requires that the installation scene of the camera device has a wired network, and the user needs to insert the network into the network cable interface of the device before it can be used. If the installation environment of the camera device connected to the 4G card network does not have these conditions, the camera device will not be searched, and the client cannot add the camera device to establish a binding relationship. It can be seen that designing a method to establish a binding relationship between a mobile terminal and a camera device based on a wireless network without the DID identity code of the camera device is an urgent problem to be solved in the current video surveillance industry. Summary of the invention
[0004] In view of this, the present invention proposes a binding method and electronic device for a mobile terminal and a camera device, aiming to solve the problem that a binding relationship cannot be established between the mobile terminal and the camera device based on a wireless network due to missing identity tags of the camera device.
[0005] In order to solve the above problems, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present invention proposes a method for binding a mobile terminal and a camera device, which is applied to a cloud server, wherein the mobile terminal and the camera device respectively establish wireless connections with the cloud server, and the binding method comprises:
[0007] A list of devices to be added is pre-set; wherein the list of devices to be added includes a plurality of records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and a device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond to each other one by one;
[0008] Based on the wireless connection, the check-in information sent by the camera device is received, and the device check-in time recorded by the corresponding device to be added is updated according to the check-in information; wherein the check-in information includes the user identification number obtained by the camera device by parsing the identity code generated by the mobile terminal according to the preset generation rule, the device identification number generated by the camera device according to the preset generation rule, and the check-in time when the camera device sends the check-in information;
[0009] Based on the wireless connection, a query request including a user identification number sent by the mobile terminal is received, and according to the query request, it is inquired whether there is a record of a device to be added corresponding to the user identification number in the list of devices to be added, and the device reporting time of the record of the device to be added is the time when the camera device last reported to the cloud server. If so, the device identification number corresponding to the queried record of the device to be added is sent to the mobile terminal;
[0010] When a binding request sent by the mobile terminal is received, the mobile terminal corresponding to the user identification number and the camera device corresponding to the device identification number are bound according to the binding request; wherein the binding request includes the user identification number and the received device identification number.
[0011] Further, the updating of the device check-in time of the corresponding device record to be added according to the check-in information includes:
[0012] According to the registration information, verify the legitimacy of the user identity number included in the registration information according to a preset verification rule;
[0013] If the user identification number passes the legality check, querying whether there is a record of a device to be added corresponding to the device identification number included in the registration information in the list of devices to be added;
[0014] If it exists, then update the device reporting time of the device to be added recorded in the query to the reporting time included in the reporting information;
[0015] If not, the user ID and device ID included in the check-in information are inserted into the list of devices to be added, and the check-in time included in the check-in information is inserted into the list of devices to be added as the device check-in time, so as to form a new record of the device to be added.
[0016] Further, the querying, according to the query request, whether there is a device record to be added corresponding to the user identity number in the device list to be added, and the device check-in time of the device record to be added is the time when the camera device last checked in to the cloud server, if it exists, then sending the device identification number corresponding to the device record to be added obtained by query to the mobile terminal, including:
[0017] According to the query request, query whether there is a to-be-added device record corresponding to the user identity number in the to-be-added device list; if so, arrange all the to-be-added device records found in the query in reverse order of device reporting time, so that the to-be-added device record corresponding to the last time the camera device reported to the cloud server is arranged in the first row of the to-be-added device list;
[0018] The reordered list of devices to be added is sent to the mobile terminal so that the reordered list of devices to be added is displayed on the screen of the mobile terminal, and the mobile terminal obtains the device identification number of the first row of the list of devices to be added.
[0019] Further, after binding the mobile terminal corresponding to the user identification number and the camera device corresponding to the device identification number according to the binding request, the method further includes:
[0020] Deleting the device record to be added corresponding to the binding operation from the device list to be added; and / or;
[0021] The device records to be added in the device list to be added are checked at preset check intervals, and the device records to be added that meet the preset deletion conditions are deleted; wherein the preset deletion condition is that the difference between the device check-in time of the device record to be added and the current system time of the cloud server exceeds the preset deletion duration.
[0022] In a second aspect, the present invention proposes a method for binding a mobile terminal and a camera device, which is applied to a mobile terminal, wherein the mobile terminal and the camera device respectively establish wireless connections with a cloud server, and the binding method comprises:
[0023] Enable the function of generating an identity code to add a camera device, and generate an identity code including the user identity number of the mobile terminal according to a preset generation rule;
[0024] Based on the wireless connection, a query request including a user identification number is sent to the cloud server at every preset query period, and according to the query request, a device identification number corresponding to the device record to be added that meets the preset first adding condition is received from the cloud server;
[0025] Sending a binding request including a user identification number and the received device identification number to the cloud server, so as to bind with the camera device corresponding to the received device identification number;
[0026] The preset first adding condition includes: according to the list of devices to be added preset by the cloud server, confirming that there is a record of a device to be added corresponding to the user ID in the list of devices to be added, and the device check-in time of the record of the device to be added is the time when the camera device last checked in to the cloud server;
[0027] The list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
[0028] Furthermore, after the camera device corresponding to the received device identification number is bound, the method further includes:
[0029] The device naming interface is displayed on the screen. When the device naming interface receives naming information including a new name, the name of the bound camera device is updated to the new name according to the naming information.
[0030] In a third aspect, the present invention proposes a method for binding a mobile terminal and a camera device, which is applied to a camera device, wherein the mobile terminal and the camera device respectively establish wireless connections with a cloud server, and the binding method comprises:
[0031] Enable the function of detecting the identity code to add the camera device, and parse the identity code generated by the mobile terminal according to the preset generation rule according to the preset parsing rule, and obtain the user identity number corresponding to the identity code according to the parsing result;
[0032] Based on the wireless connection, the cloud server sends the check-in information to the cloud server, so that the cloud server updates the device check-in time recorded by the corresponding device to be added according to the check-in information and the preset second adding condition, and binds the mobile terminal corresponding to the user identification number and the camera device corresponding to the updated device check-in time according to the updated device check-in time; wherein the check-in information includes the user identification number obtained by the camera device by parsing the identity code generated by the mobile terminal according to the preset generation rule, the device identification number generated by the camera device according to the preset generation rule, and the check-in time when the camera device sends the check-in information;
[0033] The preset second adding condition includes: confirming that there is a device record corresponding to the user ID in the device list to be added according to the device list to be added preset by the cloud server, and updating the device check-in time of the confirmed device record to be added to the check-in time of the check-in information;
[0034] The list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
[0035] Furthermore, before enabling the function of detecting the identity code and adding the camera device, the method further includes:
[0036] Starting the camera device and establishing a wireless network connection, and detecting whether the current state of the camera device is a state of being bound to a mobile terminal;
[0037] If so, the function of detecting the identity code to add camera devices is prohibited;
[0038] If not, then detect whether the camera device currently has a wired network; if not, start the function of detecting the identity code to add the camera device.
[0039] Furthermore, after parsing the identity code generated by the mobile terminal according to the preset generation rule according to the preset parsing rule, it also includes determining whether the content of the parsed identity code meets the preset code scanning binding rule, and if so, issuing a voice prompt message indicating that the identity code is successfully detected;
[0040] After sending the check-in information to the cloud server, the method further includes:
[0041] If the wireless connection between the camera device and the cloud server fails or times out, the camera device re-sends the check-in information to the cloud server at every preset refresh period;
[0042] If the cloud server returns a successful message, the function of detecting the identity code to add the camera device is kept enabled;
[0043] If the wireless connection state between the camera device and the cloud server has lasted for a preset connection time, and the function of detecting the identity code to add the camera device is still turned on, then turn off the function of detecting the identity code to add the camera device;
[0044] If the prompt information for the mobile terminal to log in to the camera device sent by the cloud server is received, the function of detecting the identity code to add the camera device is closed.
[0045] In a fourth aspect, the present invention further provides an electronic device, comprising:
[0046] a memory for storing program instructions; and
[0047] The processor is used to execute the program instructions to implement the steps of the method for binding the mobile terminal and the camera device as described above.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] The technical solution provided by the present invention includes a mobile terminal, a camera device and a cloud server, wherein the mobile terminal and the camera device respectively establish wireless connections with the cloud server, and the cloud server pre-sets a list of devices to be added so as to find the identity information of the mobile terminal and the camera device to be bound according to the records of the devices to be added in the list of devices to be added; wherein the list of devices to be added includes a plurality of records of devices to be added, and the records of devices to be added include a user identity number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and a device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identity number, the device identification number and the device reporting time correspond to each other. The camera device sends reporting information to the cloud server so that the cloud server updates the corresponding device reporting time of the device to be added record according to the reporting information; wherein the reporting information includes the user identity number obtained by the camera device by parsing the identity code generated by the mobile terminal according to the preset generation rule, the device identification number generated by the camera device according to the preset generation rule, and the reporting time when the camera device sends the reporting information. The mobile terminal sends a query request to the cloud server, so that the cloud server can query the device identification number of the camera device that needs to establish a binding relationship in the list of devices to be added with the updated device reporting time according to the query request. When the cloud server receives the binding request sent by the mobile terminal, the cloud server binds the camera device corresponding to the device identification number and the mobile terminal corresponding to the user identification number. It can be seen that the binding method and electronic device of the mobile terminal and the camera device are based on a wireless network. Even if the identity tag of the camera device is missing, the device identification number generated by the camera device according to the preset generation rules can be obtained, and the user identification number can be obtained by parsing the identity code generated by the mobile terminal according to the preset generation rules. According to the user identification number and the device identification number, a binding relationship can be established between the mobile terminal and the camera device without preparing an additional wired network environment, which greatly improves the usability of the product and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0051] Figure 1 A schematic diagram of a flow chart of a first embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0052] Figure 2 A schematic diagram of a flow chart of a second embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0053] Figure 3 A schematic diagram of a flow chart of a third embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0054] Figure 4 A schematic diagram of a flow chart of a fourth embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0055] Figure 5 A flowchart of the cloud server provided by an embodiment of the present invention;
[0056] Figure 6 A schematic diagram of a flow chart of a fifth embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0057] Figure 7 A schematic diagram of a flow chart of a sixth embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0058] Figure 8 A flowchart of a seventh embodiment of a method for binding a mobile terminal and a camera device according to the present invention;
[0059] Fig. 9 A schematic diagram of a flow chart of an eighth embodiment of a method for binding a mobile terminal and a camera device of the present invention;
[0060] Fig.10 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0063] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0064] See also Figure 1 As shown, it is a flow chart of the first embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0065] In this embodiment, the binding method of the mobile terminal and the camera device is applied to a cloud server, and the mobile terminal and the camera device respectively establish wireless connections with the cloud server. The binding method includes:
[0066] Step S110: pre-set a list of devices to be added.
[0067] Among them, the list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
[0068] Specifically, the camera device is a 4G card network camera device or a 5G card network camera device. Compared with Wi-Fi camera devices, 4G card network camera devices or 5G card network camera devices are more suitable for outdoor video monitoring, remote monitoring and other scenes that require large bandwidth and high-speed transmission, and can stably transmit 4G or 5G network signals.
[0069] Step S120: Based on the wireless connection, the check-in information sent by the camera device is received, and the device check-in time recorded by the corresponding device to be added is updated according to the check-in information.
[0070] Among them, the reporting information includes the user identity number obtained by the camera device by parsing the identity code generated by the mobile terminal according to the preset generation rules, the device identification number generated by the camera device according to the preset generation rules and the reporting time when the camera device sends the reporting information.
[0071] Specifically, the identity code generated according to the preset generation rules can be a QR code or a barcode, which are the most common forms of identity codes. Compared with barcodes, QR codes are more flexible and feature-rich, and are suitable for more application scenarios. The user identity number is also called the user ID number, which is the user's unique identifier (User IDentifier) and is used to uniquely identify and recognize each user in the system.
[0072] Specifically, the device identification number is a unique identifier or serial number of a camera device, also known as a device DID (distributed identifier, Device IDentifier) number. The preset generation rules include device fixation rules and random generation rules. The device fixation rules are as follows: the device DID number has been fixed in the internal memory of the camera device during the production process of the camera device to ensure that each camera device has a unique identifier. This fixed device DID number is usually assigned and written by the camera device manufacturer during the production process. The random generation rules are as follows: some device DID numbers can be dynamically generated by the system when the camera device is started or registered. This device DID number is usually a random number or other unique identifier generated based on a specific algorithm. The dynamically generated device DID number can ensure the uniqueness of the camera device in the system, and can also simplify the management and configuration process of the camera device.
[0073] Step S130: Based on the wireless connection, a query request including a user identification number is received from the mobile terminal, and according to the query request, it is queried whether there is a device record to be added corresponding to the user identification number in the device list to be added, and the device reporting time of the device record to be added is the time when the camera device last reported to the cloud server. If so, the device identification number corresponding to the device record to be added obtained by the query is sent to the mobile terminal.
[0074] Specifically, the device reporting time recorded in the device to be added is the time when the camera device last reported to the cloud server. The device reporting time corresponds to the camera device that last scanned the code to report, and this camera device is also the camera device requested to be bound.
[0075] Step S140: When a binding request sent by the mobile terminal is received, the mobile terminal corresponding to the user identification number and the camera device corresponding to the device identification number are bound according to the binding request.
[0076] The binding request includes the user identification number and the received device identification number.
[0077] Specifically, the cloud server binds the mobile terminal corresponding to the user ID and the camera device corresponding to the device ID, which means that the mobile terminal and the camera device establish an encrypted connection with the cloud server through a secure communication protocol (such as HTTPS) to ensure the security and integrity of data transmission. The cloud server sets permissions based on identity information (user ID and device ID), authorizes access to the mobile terminal and camera device, and limits the operations they can perform and the resources they can access. This binding mechanism can ensure the security and reliability of the entire video surveillance system and prevent unauthorized devices from illegally accessing and operating.
[0078] Compared with the prior art, the binding method of the mobile terminal and the camera device in the embodiment of the present invention is based on a wireless network. Even if the identity tag of the camera device is missing, the device identification number generated by the camera device according to the preset generation rules can be obtained, and the user identification number can be obtained by parsing the identity code generated by the mobile terminal according to the preset generation rules. According to the user identification number and the device identification number, a binding relationship can be established between the mobile terminal and the camera device without preparing an additional wired network environment, which greatly improves the usability of the product and has a wide range of applications.
[0079] See also Figure 2 As shown, it is a flow chart of the second embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0080] Compared with other embodiments of the method for binding a mobile terminal and a camera device, this embodiment describes in detail the step of updating the device check-in time.
[0081] In this embodiment, in step S120, updating the device check-in time of the corresponding device record to be added according to the check-in information includes:
[0082] Step S121: Based on the registration information, the legitimacy of the user identity number included in the registration information is verified according to a preset verification rule.
[0083] Specifically, verifying the legitimacy of the user ID according to the preset verification rules usually includes: verifying whether the format of the user ID is legal, such as length, character type, etc.; verifying whether the user ID has legal authority to perform binding operations; and performing corresponding exception handling operations for illegal or abnormal user IDs, such as recording logs, sending alarms, etc. Through the above verification process, the legitimacy of the user ID can be effectively verified to ensure the accuracy and security of the data.
[0084] Step S122: If the user identification number passes the legality check, then query in the list of devices to be added whether there is a record of a device to be added corresponding to the device identification number included in the registration information.
[0085] Step S123a: If it exists, then update the device reporting time of the queried device record to be added to the reporting time included in the reporting information.
[0086] Specifically, if there is a record of a device to be added, it may be because the camera device corresponding to the device identification number included in the report information has been added before, in which case the device reporting time of the record of the device to be added needs to be updated; it may also be because the camera device has reported multiple times in a short period of time, in which case the cloud server may retain the previous record of the device to be added. If there is a record of a device to be added, it is necessary to update the device reporting time of the record of the device to be added in a timely manner to ensure that the updated record of the device to be added corresponds to the camera device that scanned the code and reported last.
[0087] Step S123b: If it does not exist, insert the user ID and device ID included in the registration information into the list of devices to be added, and insert the registration time included in the registration information as the device registration time into the list of devices to be added, so as to form a new record of the device to be added.
[0088] Specifically, if there is no record of device to be added, it may be because this is the first report of the camera device corresponding to the device identification number included in the report information. Therefore, there is no corresponding record of device to be added in the list of devices to be added. It is necessary to insert the user identity number, device identification number and report time into the list of devices to be added to form a new record of device to be added. It may also be because the original record of device to be added in the list of devices to be added has been deleted or lost for some reason, resulting in the inability to find the record of device to be added corresponding to the report information. At this time, the report information needs to be inserted into the list of devices to be added as a new record of device to be added.
[0089] It should be noted that step S123a and step S123b are processing steps for two situations: the existence or non-existence of a device record corresponding to the device identification number included in the registration information in the device list to be added. There is no order between step S123a and step S123b, and either one can be implemented.
[0090] The technical solution of this embodiment distinguishes between two situations of updating the device check-in time of the device record to be added. If the device record to be added already exists, an update operation can be performed; if the device record to be added does not exist, a new operation can be performed to avoid data duplication or omission. This distinguishing operation mechanism for the device record to be added helps to maintain the timeliness and accuracy of the data in the device list to be added.
[0091] See also Figure 3 As shown, it is a flow chart of the third embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0092] Compared with other embodiments of the method for binding a mobile terminal and a camera device, this embodiment describes in detail the step of querying the device identification number.
[0093] In this embodiment, in step S130, the querying whether there is a device record to be added corresponding to the user identity number in the device list to be added according to the query request, and the device check-in time of the device record to be added is the time when the camera device last checked in to the cloud server. If it exists, the device identification number corresponding to the device record to be added obtained by the query is sent to the mobile terminal, including:
[0094] Step S131: According to the query request, query whether there is a device record to be added corresponding to the user identity number in the device list to be added; if so, arrange all the queried device records to be added in reverse order of the device reporting time, so that the device record to be added corresponding to the last time the camera device reported to the cloud server is arranged in the first row of the device list to be added.
[0095] Specifically, all the records of devices to be added are arranged in reverse order of the device reporting time, which can ensure that the record of the device to be added corresponding to the latest reporting of the camera device is placed at the front of the first line of the list of devices to be added, so that the operator or system can find the record of the device to be added when the camera device reported the most recently more quickly, so as to process it in time. And the list of devices to be added arranged in reverse order is more in line with people's reading habits, starting from the latest data, making it easier to understand and process the data. In addition, the reverse order of the list of devices to be added can also reduce the confusion of the data, make the data more organized, avoid information confusion or omissions, and help operators understand the reporting history of the camera device more clearly.
[0096] Step S132: sending the reordered list of devices to be added to the mobile terminal so that the reordered list of devices to be added is displayed on the screen of the mobile terminal, and allowing the mobile terminal to obtain the device identification number of the first row of the list of devices to be added.
[0097] Specifically, because the cloud server binds the mobile terminal and the camera device based on the binding request of the mobile terminal, sending the reordered list of devices to be added to the mobile terminal can facilitate the operator of the mobile terminal to view and quickly confirm the identity of the camera device to be bound, thereby quickly and efficiently issuing a binding request.
[0098] The technical solution of this embodiment, by reordering the records of devices to be added, facilitates the mobile terminal to quickly identify the records of devices to be added corresponding to the camera device that reported in last time, helps the user to quickly find the camera device that needs to be bound, reduces the search time, improves the operation efficiency, and enhances the user experience.
[0099] See also Figure 4 As shown, it is a flow chart of the fourth embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0100] Compared with other embodiments of the method for binding a mobile terminal and a camera device, this embodiment adds a step of deleting the record of the device to be added.
[0101] In this embodiment, the method for binding the mobile terminal and the camera device further includes:
[0102] Step S150: deleting the to-be-added device record corresponding to the binding operation from the to-be-added device list.
[0103] Specifically, deleting the records of the devices to be added that have been bound can ensure that the list of devices to be added contains only the latest information of the camera devices, reduce the confusion and redundancy of the list of devices to be added, and make the list of devices to be added clearer and easier to manage.
[0104] Step S160: checking the device records to be added in the device list to be added at every preset checking period, and deleting the device records to be added that meet the preset deletion conditions.
[0105] The preset deletion condition is that the difference between the device check-in time recorded by the device to be added and the current system time of the cloud server exceeds the preset deletion time.
[0106] Specifically, if the difference between the device reporting time of the device record to be added and the current system time of the cloud server exceeds the preset deletion time, it means that the device record to be added has been in the list of devices to be added for a long time and is an expired record. Deleting the record can avoid the data in the list of devices to be added from being too large and chaotic, improve the operating efficiency of the cloud server, and reduce unnecessary data processing and query operations.
[0107] It should be noted that step S140 and step S150 are two processing steps for deleting the record of the device to be added. There is no order between step S140 and step S150, and they can be implemented one by one or in parallel.
[0108] The technical solution of this embodiment adds a mechanism for deleting the record of the device to be added, which can maintain the data accuracy and neatness of the list of devices to be added, and further improve the binding efficiency of the mobile terminal and the camera device.
[0109] See also Figure 5 As shown, it is a workflow diagram of the cloud server provided in an embodiment of the present invention.
[0110] The workflow of the cloud server provided in the embodiment of the present invention is specifically as follows:
[0111] 1. The cloud server creates a list of devices to be added, which includes the user ID number, device DID number and the last reporting time of the device;
[0112] 2. When the camera device reports to the cloud server, verify the legitimacy of the user ID number and whether there is a device record in the list of devices to be added. If it exists, update the device reporting time of the device record to the current system time. If it does not exist, insert the user ID number, device DID number, and current system time (i.e. the reporting time of the camera device this time) into the list of devices to be added (there must be only one device record to be added for the same combination of user ID number and device DID number);
[0113] 3. When the client APP queries the cloud server, it queries all device DID numbers according to the user ID number, and arranges them in reverse order according to the device reporting time. In the returned list of devices to be added, the first camera device is the one that was last scanned and reported;
[0114] 4. After the user adds a camera device, check whether the user ID and device DID number exist in the list of devices to be added. If so, delete the record of the device to be added from the list of devices to be added;
[0115] 5. Start the scheduled task in the background, check the device records in the device list every 10 minutes, and eliminate all the device records whose difference between the device reporting time and the current system time exceeds 10 minutes.
[0116] See also Figure 6 As shown, it is a flow chart of the fifth embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0117] In this embodiment, the binding method of the mobile terminal and the camera device is applied to the mobile terminal, and the mobile terminal and the camera device respectively establish wireless connections with the cloud server. The binding method includes:
[0118] Step S210: Enable the function of generating an identity code to add a camera device, and generate an identity code including the user identity number of the mobile terminal according to a preset generation rule.
[0119] Specifically, the mobile terminal (or client, usually a portable terminal device such as a mobile phone or tablet) APP needs to provide a method for adding camera devices without identity tags by scanning the code to bind the mobile terminal. In the case where the user cannot rely on the DID code tag on the camera device body, the mobile phone APP can be used to add the camera device at close range, and the camera device can scan the QR code generated by the mobile terminal to establish a binding relationship between the mobile terminal and the camera device.
[0120] Specifically, the identity code including the user identity number of the mobile terminal is a QR code generated according to the preset generation rules. The QR code content includes the cloud server domain name and port number, requiring the cloud servers in each region to unify the path of the camera device reporting interface (the interface suffix will be solidified in the camera device firmware).
[0121] The QR code is p6scloud:V8 / erp-cn.p6sai.com:8091 / 12345678.
[0122] Step S220: Based on the wireless connection, a query request including the user identification number is sent to the cloud server at every preset query period, and according to the query request, a device identification number corresponding to the device record to be added that meets the preset first adding condition is received from the cloud server.
[0123] Step S230: Sending a binding request including the user identification number and the received device identification number to the cloud server, so as to bind with the camera device corresponding to the received device identification number.
[0124] The preset first adding condition includes: according to the list of devices to be added preset by the cloud server, confirming that there is a record of a device to be added corresponding to the user ID in the list of devices to be added, and the device check-in time of the record of the device to be added is the time when the camera device last checked in to the cloud server;
[0125] The list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
[0126] Specifically, from the perspective of the mobile terminal, the above steps S220 and S230 explain the process of the mobile terminal communicating with the cloud server through a wireless network, querying the device records to be added that meet the preset first adding condition, and binding the camera device corresponding to the queried device records to be added with the mobile terminal.
[0127] The technical solution of this embodiment is based on a wireless network. Even if the identity tag of the camera device is missing, the device identification number generated by the camera device according to the preset generation rules can be obtained, and the user identification number can be obtained by parsing the identity code generated by the mobile terminal according to the preset generation rules. According to the user identification number and the device identification number, a binding relationship can be established between the mobile terminal and the camera device without preparing an additional wired network environment, which greatly improves the usability of the product and has a wide range of applications.
[0128] In some embodiments of the present application, after binding the camera device corresponding to the received device identification number, the method further includes:
[0129] The device naming interface is displayed on the screen. When the device naming interface receives naming information including a new name, the name of the bound camera device is updated to the new name according to the naming information.
[0130] Specifically, by allowing the user to specify a new name for the bound camera device, it can be greatly facilitated for the user to quickly identify and manage the camera device.
[0131] The following describes in detail the workflow of the mobile terminal provided by the embodiment of the present invention, specifically:
[0132] 1. When the DID QR code label of the camera device connected to the 4G card network cannot be found, the current wired network mode of adding the camera device is changed to the mode of adding the camera device using the QR code;
[0133] 2. When the user clicks the button to bind the camera device using the QR code, the QR code is generated according to the QR code rules (preset generation rules) using the currently logged-in cloud server address and the currently logged-in user ID number, and displayed on the UI interface;
[0134] 3. After the APP enters this page, it uses the user ID number to query the cloud server every 1 second to see if there is a new DID number of the device to be added. When the user returns or jumps to the next page, the scheduled query action ends;
[0135] 4. If the DID number of a new device to be added is found, the cloud server will automatically connect to return the first device in the list of devices to be added (the cloud server will sort the devices in reverse chronological order according to their check-in time, so the device corresponding to the first row of the device record in the list of devices to be added is the camera device that was last scanned and checked in);
[0136] 5. After the camera device is successfully connected, the process of adding and binding the camera device is executed;
[0137] 6. If the connection to the camera device fails, the device DID number and error message will be displayed and the current page will be maintained;
[0138] 7. After successfully adding the camera device, jump to the device naming page and name the added and bound camera device.
[0139] See also Figure 7 As shown, it is a flow chart of the sixth embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0140] In this embodiment, the binding method of the mobile terminal and the camera device is applied to the camera device. The mobile terminal and the camera device respectively establish wireless connections with the cloud server. The binding method includes:
[0141] Step S310: Enable the function of detecting the identity code and adding the camera device, and parse the identity code generated by the mobile terminal according to the preset generation rule according to the preset parsing rule, and obtain the user identity number corresponding to the identity code according to the parsing result.
[0142] Step S320: Based on the wireless connection, the cloud server sends the reporting information to the cloud server, so that the cloud server updates the device reporting time of the corresponding device to be added according to the reporting information and the preset second adding condition, and binds the mobile terminal corresponding to the user identity number and the camera device corresponding to the updated device reporting time according to the updated device reporting time.
[0143] Among them, the reporting information includes the user identity number obtained by the camera device by parsing the identity code generated by the mobile terminal according to the preset generation rules, the device identification number generated by the camera device according to the preset generation rules and the reporting time when the camera device sends the reporting information.
[0144] Among them, the preset second adding condition includes: according to the list of devices to be added pre-set by the cloud server, confirming that there is a record of a device to be added corresponding to the user identity number in the list of devices to be added, and updating the confirmed device reporting time of the record of the device to be added to the reporting time of the reporting information.
[0145] The list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
[0146] Specifically, the camera device establishes a stable binding relationship with the mobile terminal by parsing the QR code of the mobile terminal, sending reporting information to the cloud server and performing binding operations, thereby achieving interconnection between devices and ensuring smooth collaboration and data transmission between devices.
[0147] The technical solution of this embodiment is based on a wireless network. Even if the identity tag of the camera device is missing, the device identification number generated by the camera device according to the preset generation rules can be obtained, and the user identification number can be obtained by parsing the identity code generated by the mobile terminal according to the preset generation rules. According to the user identification number and the device identification number, a binding relationship can be established between the mobile terminal and the camera device without preparing an additional wired network environment, which greatly improves the usability of the product and has a wide range of applications.
[0148] See also Figure 8 As shown, it is a flow chart of the seventh embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0149] Compared with other embodiments of the method for binding a mobile terminal and a camera device, this embodiment provides a detailed description of the steps for enabling the function of detecting an identity code to add a camera device.
[0150] In this embodiment, before enabling the function of detecting the identity code to add the camera device, the method further includes:
[0151] Step S330: Start the camera device and establish a wireless network connection, and detect whether the current state of the camera device is a state of being bound to a mobile terminal.
[0152] Specifically, this step is used to determine whether the camera device has established a binding relationship with the mobile terminal. Whether the camera device is bound is determined based on the SCode file processing logic, specifically: the system needs to read the SCode file, which contains the binding information or status of the camera device, parse the data in the SCode file to obtain the binding status or related information of the camera device, and determine whether the camera device has been bound based on the parsed data. Usually, the binding status will be indicated by a specific identifier or information in the SCode file.
[0153] Step S340a: If yes, the function of detecting the identity code to add the camera device is prohibited.
[0154] Specifically, prohibiting the function of adding camera devices by detecting identity codes means that under the premise that the camera device has been bound to the mobile terminal, it is no longer necessary to wirelessly add new camera devices by scanning identity codes.
[0155] Step S340b: If not, then detect whether the camera device currently has a wired network; if not, enable the function of detecting the identity code to add the camera device.
[0156] Specifically, enabling the function of adding camera devices by detecting identity codes means that under the premise that the camera device is not bound to the mobile terminal and there is no wired network connection, new camera devices can be added wirelessly by scanning the identity code.
[0157] It should be noted that step S340a and step S340b are processing steps for two situations of whether the current state of the camera device is the state of being bound to the mobile terminal. There is no order of precedence between step S340a and step S340b, and either one can be implemented.
[0158] The technical solution of this embodiment decides whether to allow the function of adding camera devices by detecting identity codes to be enabled based on the current binding status and network conditions of the camera device, and adds new camera devices based on the function of adding camera devices by detecting identity codes to be enabled, thereby ensuring that the adding and binding operations between devices can be correctly handled in different situations.
[0159] In some embodiments of the present application, after parsing the identity code generated by the mobile terminal according to the preset generation rule according to the preset parsing rule, the method further includes:
[0160] Determine whether the parsed identity code content meets the preset scan code binding rules. If so, issue a voice prompt message indicating that the identity code detection is successful.
[0161] Specifically, camera devices usually do not have screens and cannot directly display text or image information. In order to prompt the user that the ID code has been successfully scanned, the camera device can remind the user by making a beeping sound. When the parsed ID code content meets the preset code scanning and binding rules, the camera device can issue a voice prompt message indicating that the ID code has been successfully detected, accompanied by a beeping sound, to ensure that the user can receive feedback in time and understand the scanning status. Such a design can improve the user experience and allow users to bind the camera device more conveniently.
[0162] See also Fig. 9 As shown, it is a flow chart of the eighth embodiment of the method for binding a mobile terminal and a camera device of the present invention.
[0163] Compared with other embodiments of the method for binding a mobile terminal and a camera device, this embodiment provides a detailed description of the steps of turning off and continuously turning on the function of detecting an identity code to add a camera device.
[0164] In this embodiment, after sending the check-in information to the cloud server, the method further includes:
[0165] Step S350: If the wireless connection between the camera device and the cloud server fails or times out, then resend the check-in information to the cloud server at every preset refresh period.
[0166] Specifically, this step ensures that the camera device can still attempt to communicate with the cloud server even if there is a wireless connection problem.
[0167] Step S360: If the cloud server returns a successful message, the function of detecting the identity code to add the camera device is kept enabled.
[0168] Specifically, receiving the successful return information from the cloud server indicates that the camera device is successfully connected to the cloud server, and the camera device can continue to perform the function of detecting the identity code and adding the camera device.
[0169] Step S370: If the wireless connection state between the camera device and the cloud server has lasted for a preset connection time, and the function of detecting the identity code to add the camera device is still turned on, then turn off the function of detecting the identity code to add the camera device.
[0170] Specifically, this step ensures that when the duration of the wireless connection state of the camera device is too long and the function of detecting the identity code to add the camera device is no longer needed, the function of detecting the identity code to add the camera device is turned off to further save resources.
[0171] Step S380: If a prompt message for the mobile terminal to log in to the camera device is received from the cloud server, the function of detecting the identity code to add the camera device is turned off.
[0172] Specifically, when the mobile terminal logs in to the camera device, it means that the mobile terminal and the camera device have established a binding relationship. Then, the camera device stops detecting the identity code to add the camera device function to ensure the network security of the camera device.
[0173] The technical solution of this embodiment specifically describes various operation scenarios for turning off and continuously turning on the function of detecting identity codes and adding camera devices, further improving the user experience.
[0174] The following describes in detail the workflow of the camera device provided by the embodiment of the present invention, specifically:
[0175] 1. After the camera device is started and the 4G wireless network is successfully connected, it is detected whether it is currently in an unbound state (determined according to the SCode file processing logic); if the device is bound, the current business logic is jumped out;
[0176] 2. If the camera device is not bound, further detect whether there is a wired network;
[0177] 3. If the camera device is currently connected to the 4G network successfully and is in an unbound state and is not in a wired network environment, enable the QR code detection function (the function of detecting the identity code to add the camera device). When the QR code is detected, parse the QR code text content;
[0178] 4. Determine whether the QR code text content complies with the tagless 4G code scanning binding rules (preset code scanning binding rules). If it complies with the rules, immediately broadcast a "beep" voice prompt to prompt the user that the QR code detection is successful; if the detected QR code does not comply with the tagless 4G code scanning binding rules, no voice prompt is broadcast;
[0179] 5. The camera device parses the QR code text content to obtain the cloud server domain name and APP user ID number currently logged in by the APP user;
[0180] 6. Combine the cloud server interface address, use the device DID number and user ID number as parameters, and report the device DID number to the cloud server interface;
[0181] 7. If the request fails or times out, retry the request every 3 seconds;
[0182] 8. If the request to the server returns a success, the QR code detection state will continue (if the user scans the code again, repeat step 4);
[0183] 9. If the camera device has been successfully connected to the 4G network for more than 8 minutes and the QR code detection function is still turned on, the QR code detection function will be automatically exited;
[0184] 10. If the APP user is successfully bound, the QR code detection function will be automatically exited;
[0185] 11. If the client user successfully logs into the camera device, the QR code detection function will be automatically exited.
[0186] The following is an embodiment of the electronic device provided by the present invention. The embodiment of the electronic device and the embodiment of the binding method of the mobile terminal and the camera device belong to the same concept, and the details not described in detail in the embodiment of the electronic device can refer to the embodiment of the binding method of the mobile terminal and the camera device.
[0187] See also Fig.10 As shown, it is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention. The electronic device includes a mobile terminal, a camera device and a cloud server.
[0188] In this embodiment, an electronic device includes:
[0189] Memory 1005, used to store program instructions; and
[0190] The processor 1001 is used to execute the program instructions to implement the steps of the method for binding the mobile terminal and the camera device as described above.
[0191] The electronic device of the embodiment of the present invention can be a computing device such as a desktop computer, a notebook, a palm computer, and a server. Fig.10 As shown, the electronic device may include: a processor 1001 (such as a CPU), a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0192] Those skilled in the art will understand that Fig.10The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0193] like Fig.10 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.
[0194] exist Fig.10 In the electronic device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the binding method of the above-mentioned mobile terminal and the camera device are implemented.
[0195] The technical solution of this embodiment is applied to when a user adds a camera device connected to a 4G network through a client software (such as an APP). If the camera device body lacks a device DID number, the binding relationship between the client user account and the camera device can be completed in a convenient way. This solution can also efficiently and quickly complete the camera device addition operation when the identity tag of the camera device body connected to a 4G network is lost or the identity tag is damaged and blurred after long-term use. The user does not need to prepare additional wired networks, computers, and other environments, which improves the usability of the product.
[0196] The electronic device of the present invention can implement the steps of the binding method of the mobile terminal and the camera device, and therefore at least has all the beneficial effects brought by the technical solution of the step embodiment of the binding method of the mobile terminal and the camera device, which will not be described one by one here.
[0197] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields are included in the scope of protection of the present invention.
[0198] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0199] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
Claims
1. A method for binding a mobile terminal and a camera device, applied to a cloud server, characterized in that: The mobile terminal and the camera device respectively establish wireless connections with the cloud server, and the binding method includes: A list of devices to be added is pre-set; wherein the list of devices to be added includes a plurality of records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and a device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond to each other one by one; Based on the wireless connection, the check-in information sent by the camera device is received, and the device check-in time of the corresponding device record to be added is updated according to the check-in information; wherein the check-in information includes the user identity number obtained by the camera device by scanning and parsing the identity code generated by the mobile terminal according to the preset generation rule, the device identification number generated by the camera device according to the preset generation rule, and the check-in time when the camera device sends the check-in information, and the identity code includes a QR code or a bar code; Based on the wireless connection, a query request including a user identification number sent by the mobile terminal is received, and according to the query request, it is inquired whether there is a to-be-added device record corresponding to the user identification number in the to-be-added device list, and the device reporting time of the to-be-added device record is the time when the camera device last reported to the cloud server. If it exists, the device identification number corresponding to the queried to-be-added device record is sent to the mobile terminal; When a binding request sent by the mobile terminal is received, the mobile terminal corresponding to the user identification number and the camera device corresponding to the device identification number are bound according to the binding request; wherein the binding request includes the user identification number and the received device identification number.
2. The method for binding a mobile terminal and a camera device according to claim 1, characterized in that: The updating of the device check-in time of the corresponding device record to be added according to the check-in information includes: According to the registration information, verify the legitimacy of the user identity number included in the registration information according to a preset verification rule; If the user identification number passes the legality check, querying whether there is a record of a device to be added corresponding to the device identification number included in the registration information in the list of devices to be added; If it exists, then update the device reporting time of the device to be added recorded in the query to the reporting time included in the reporting information; If not, the user ID and device ID included in the check-in information are inserted into the list of devices to be added, and the check-in time included in the check-in information is inserted into the list of devices to be added as the device check-in time, so as to form a new record of the device to be added.
3. The method for binding a mobile terminal and a camera device according to claim 1, characterized in that: The querying, according to the query request, whether there is a to-be-added device record corresponding to the user identification number in the to-be-added device list, and the device check-in time of the to-be-added device record is the time when the camera device last checked in to the cloud server, and if so, sending the queried device identification number corresponding to the to-be-added device record to the mobile terminal, includes: According to the query request, query whether there is a to-be-added device record corresponding to the user identity number in the to-be-added device list; if so, arrange all the to-be-added device records found in the query in reverse order of device reporting time, so that the to-be-added device record corresponding to the last time the camera device reported to the cloud server is arranged in the first row of the to-be-added device list; The reordered list of devices to be added is sent to the mobile terminal so that the reordered list of devices to be added is displayed on the screen of the mobile terminal, and the mobile terminal obtains the device identification number of the first row of the list of devices to be added.
4. The method for binding a mobile terminal and a camera device according to claim 1, characterized in that: After binding the mobile terminal corresponding to the user identification number and the camera device corresponding to the device identification number according to the binding request, the method further includes: Deleting the device record to be added corresponding to the binding operation from the device list to be added; and / or; The device records to be added in the device list to be added are checked at preset check intervals, and the device records to be added that meet the preset deletion conditions are deleted; wherein the preset deletion condition is that the difference between the device check-in time of the device record to be added and the current system time of the cloud server exceeds the preset deletion duration.
5. A method for binding a mobile terminal and a camera device, applied to a mobile terminal, characterized in that: The mobile terminal and the camera device respectively establish wireless connections with a cloud server, and the binding method includes: Enable the function of generating an identity code to add a camera device, and generate an identity code including the user identity number of the mobile terminal according to a preset generation rule, so that the cloud server receives the check-in information sent by the camera device based on the wireless connection, and updates the device check-in time recorded by the corresponding device to be added according to the check-in information; wherein the check-in information includes the user identity number obtained by the camera device by scanning and parsing the identity code generated by the mobile terminal according to the preset generation rule, the device identification number generated by the camera device according to the preset generation rule, and the check-in time when the camera device sends the check-in information, and the identity code includes a QR code or a bar code; Based on the wireless connection, a query request including a user identification number is sent to the cloud server at every preset query period, and according to the query request, a device identification number corresponding to the device record to be added that meets the preset first adding condition is received from the cloud server; Sending a binding request including a user identification number and the received device identification number to the cloud server, so as to bind with the camera device corresponding to the received device identification number; The preset first adding condition includes: according to the list of devices to be added preset by the cloud server, confirming that there is a record of a device to be added corresponding to the user ID in the list of devices to be added, and the device check-in time of the record of the device to be added is the time when the camera device last checked in to the cloud server; The list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
6. The method for binding a mobile terminal and a camera device according to claim 5, characterized in that: After the camera device corresponding to the received device identification number is bound, the method further includes: The device naming interface is displayed on the screen. When the device naming interface receives naming information including a new name, the name of the bound camera device is updated to the new name according to the naming information.
7. A method for binding a mobile terminal and a camera device, applied to the camera device, characterized in that: The mobile terminal and the camera device respectively establish wireless connections with a cloud server, and the binding method includes: Enable the function of detecting the identity code and adding the camera device, scan and parse the identity code generated by the mobile terminal according to the preset generation rule according to the preset parsing rule, and obtain the user identity number corresponding to the identity code according to the parsing result; Based on the wireless connection, the cloud server sends the check-in information to the cloud server, so that the cloud server updates the device check-in time recorded by the corresponding device to be added according to the check-in information and the preset second adding condition, and binds the mobile terminal corresponding to the user identity number and the camera device corresponding to the updated device check-in time according to the updated device check-in time; wherein the check-in information includes the user identity number obtained by the camera device by scanning and parsing the identity code generated by the mobile terminal according to the preset generation rule, the device identification number generated by the camera device according to the preset generation rule, and the check-in time when the camera device sends the check-in information, and the identity code includes a QR code or a bar code; The preset second adding condition includes: confirming that there is a device record corresponding to the user ID in the device list to be added according to the device list to be added preset by the cloud server, and updating the device check-in time of the confirmed device record to be added to the check-in time of the check-in information; The list of devices to be added includes several records of devices to be added, and the records of devices to be added include a user identification number corresponding to the mobile terminal, a device identification number corresponding to the camera device, and the device reporting time when the camera device corresponding to the device identification number last reported to the cloud server, and the user identification number, the device identification number and the device reporting time correspond one to one.
8. The method for binding a mobile terminal and a camera device according to claim 7, characterized in that: Before enabling the function of detecting the identity code to add the camera device, the method further includes: Starting the camera device and establishing a wireless network connection, and detecting whether the current state of the camera device is a state of being bound to a mobile terminal; If so, the function of detecting the identity code to add camera devices is prohibited; If not, then detect whether the camera device currently has a wired network; if not, start the function of detecting the identity code to add the camera device.
9. The method for binding a mobile terminal and a camera device according to claim 7, characterized in that: After parsing the identity code generated by the mobile terminal according to the preset generation rule according to the preset parsing rule, it also includes judging whether the content of the parsed identity code meets the preset scanning code binding rule, and if so, issuing a voice prompt message indicating that the identity code is successfully detected; After sending the check-in information to the cloud server, the method further includes: If the wireless connection between the camera device and the cloud server fails or times out, the camera device re-sends the check-in information to the cloud server at every preset refresh period; If the cloud server returns a successful message, the function of detecting the identity code to add the camera device is kept enabled; If the wireless connection state between the camera device and the cloud server has lasted for a preset connection time, and the function of detecting the identity code to add the camera device is still turned on, then turn off the function of detecting the identity code to add the camera device; If the prompt information for the mobile terminal to log in to the camera device sent by the cloud server is received, the function of detecting the identity code to add the camera device is closed.
10. An electronic device, characterized in that: include: A memory for storing program instructions; as well as A processor, configured to execute the program instructions to implement the steps of the method for binding a mobile terminal and a camera device as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for binding user account with monitoring equipment in video monitoring system
CN104410813A
Network distribution method, network distribution device and storage medium
CN112291100A