Communication method and device

By negotiating the shared key between the network camera and the screen and updating the hotspot configuration information, the problem of communication security between the network camera and the screen is solved, achieving higher security and privacy protection.

CN118748800APending Publication Date: 2024-10-08SHANGHAI IMILAB TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411112056.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In a networking scenario between a network camera and an electronic device with a display function, how to ensure the security of communication, especially to prevent the leakage of private images or video data.

Method used

The shared key is obtained through negotiation, and hotspot configuration information is generated and updated based on the key, making the connection between the network camera and the screen more secure and ensuring that only both parties know the transmission of configuration information.

Benefits of technology

It improves the security of the network between the network camera and the screen, prevents unauthorized access and data leakage, and ensures the privacy of image or video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748800A_ABST
    Figure CN118748800A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method and equipment. The method comprises the steps that under the condition that the network camera serves as a first hotspot to be connected with a screen end, the network camera negotiates with the screen end to obtain a first shared key, and configuration information of the first hotspot is generated based on device information of the screen end; receiving a registration request sent by the screen end; determining configuration information of a second hotspot based on the first shared key and the equipment information of the network camera; a response message of the registration request is sent to the screen end, and the response message of the registration request carries related information of the configuration information of the second hotspot; the network camera is connected with the screen end as a second hotspot, and the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a communication method and device. Background Art

[0002] Wireless network technology is a widely used wireless network transmission technology. Network cameras, smart phones, tablet computers, etc. all use wireless network technology to form a network. Especially in the scenario where the network camera is networked with an electronic device with a display function, the electronic device with a display function may display the image or video captured by the network camera in real time, and the image or video is often private, so it is particularly necessary to ensure the security of the communication between the network camera and the electronic device with a display function. Summary of the invention

[0003] Embodiments of the present application provide a communication method, a device, a computer-readable storage medium, a computer program product, and a computer program.

[0004] The present application provides a communication method, including:

[0005] When the network camera is connected to the screen end as a first hotspot, a first shared key is obtained through negotiation with the screen end, wherein the configuration information of the first hotspot is generated based on the device information of the screen end;

[0006] Receiving a registration request sent by the screen end;

[0007] Determine configuration information of a second hotspot based on the first shared key and device information of the network camera;

[0008] Sending a response message of the registration request to the screen end, wherein the response message of the registration request carries relevant information of the configuration information of the second hotspot;

[0009] The network camera is connected to the screen end as a second hotspot, wherein the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot.

[0010] The present application provides a communication method, including:

[0011] When the screen end is connected to a network camera as a first hotspot, negotiate with the network camera to obtain a first shared key;

[0012] Sending a registration request to the network camera;

[0013] Receiving a response message to the registration request sent by the network camera, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot;

[0014] Based on the relevant information of the configuration information of the second hotspot, the network camera serving as the second hotspot is connected.

[0015] The present application provides a network camera, including:

[0016] A first communication unit is used to negotiate with the screen end to obtain a first shared key when the network camera is connected to the screen end as a first hotspot, wherein the configuration information of the first hotspot is generated based on the device information of the screen end; receive a registration request sent by the screen end; send a response message to the registration request to the screen end, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot; the network camera is connected to the screen end as a second hotspot, wherein the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot;

[0017] The first processing unit is used to determine the configuration information of the second hotspot based on the first shared key and the device information of the network camera.

[0018] The present application embodiment provides a screen terminal, including:

[0019] The second communication unit is used to negotiate with the network camera to obtain a first shared key when the screen end is connected to the network camera serving as the first hotspot; send a registration request to the network camera; receive a response message to the registration request sent by the network camera, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot; and connect to the network camera serving as the second hotspot based on the relevant information of the configuration information of the second hotspot.

[0020] The embodiment of the present application provides a network camera, comprising: a transceiver, a processor and a memory. The memory is used to store a computer program, the transceiver is used to communicate with other devices, and the processor is used to call and run the computer program stored in the memory so that the first device executes the above method.

[0021] The embodiment of the present application provides a screen terminal, comprising: a transceiver, a processor and a memory. The memory is used to store a computer program, the transceiver is used to communicate with other devices, and the processor is used to call and run the computer program stored in the memory so that the second device executes the above method.

[0022] The embodiment of the present application provides a chip for implementing the above method.

[0023] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the above method.

[0024] An embodiment of the present application provides a computer-readable storage medium for storing a computer program, which enables a device to perform the above method when the computer program is executed by the device.

[0025] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute the above method.

[0026] An embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the above method.

[0027] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.

[0028] By adopting the above solution, the network camera determines the configuration information of the second hotspot based on the first shared key and the device information of the network camera, and sends the relevant information of the configuration information of the second hotspot to the screen end. In this way, the screen end connects with the network camera based on the configuration information of the second hotspot generated by the first shared key, and the first shared key is only known to the screen end and the network camera, so the security of the network camera and the screen end is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0030] Figure 1 is a schematic diagram of an application scenario according to an embodiment of the present application;

[0031] Figure 2 is a schematic flow chart of a communication method according to an embodiment of the present application;

[0032] Figure 3 is a schematic flow chart of a communication method according to another embodiment of the present application;

[0033] Figure 4 is a schematic flow chart of a communication method according to an embodiment of the present application;

[0034] Figure 5 is another schematic flow chart of a communication method according to an embodiment of the present application;

[0035] Figure 6 is a schematic block diagram of a network camera according to an embodiment of the present application;

[0036] Figure 7 is a schematic block diagram of a network camera according to another embodiment of the present application;

[0037] Figure 8 is a schematic block diagram of a network camera according to another embodiment of the present application;

[0038] Fig. 9 is a schematic block diagram of a screen terminal according to an embodiment of the present application;

[0039] Fig.10 is a schematic block diagram of a screen end according to another embodiment of the present application;

[0040] Fig.11 is a schematic block diagram of a screen end according to another embodiment of the present application;

[0041] Fig.12 is a schematic block diagram of a screen end according to yet another embodiment of the present application;

[0042] Fig.13 is a schematic block diagram of a communication device according to an embodiment of the present application;

[0043] Fig.14 is a schematic block diagram of a chip according to an embodiment of the present application;

[0044] Fig.15 It is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: WLAN (Wireless Local Area Network), WiFi (Wireless Fidelity), 4G (The Fourth Generation of Mobile Communication Technology), 5G (The Fifth Generation of Mobile Communication Technology), or other communication systems.

[0046] The embodiments of the present application describe various embodiments in combination with an IP camera (IPC, IP Camera) and a screen end. The screen end can be mobile or fixed, and can also be called a nursing screen, a display screen, etc. The screen end can be an electronic device with a display function, such as a screen end for a mother-child care scene, a laptop, a tablet computer, or other electronic devices with a display screen. In the embodiments of the present application, the screen end can be a telemedicine screen end, or a wireless screen end for a smart home, etc.

[0047] In the embodiment of the present application, the network camera may be a device for communicating with the screen end, the network camera may be an access point in a WLAN, may be an access point in a WiFi, etc. This is for example and not limitation.

[0048] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0049] Figure 1 A communication system 100 is exemplarily shown. The communication system includes one or more network cameras 110 and a screen end 120. In a possible implementation, the network camera 110 may be an AP (Access Point mode), and the screen end 120 includes multiple STAs (Stations), each of which may be connected to one network camera 110.

[0050] Figure 2 The present invention is a schematic flow chart of a communication method performed by a network camera according to an embodiment of the present application. The method includes at least part of the following contents.

[0051] S210, when the network camera is connected to the screen end as a first hotspot, negotiate with the screen end to obtain a first shared key, wherein the configuration information of the first hotspot is generated based on the device information of the screen end;

[0052] S220, receiving a registration request sent by the screen end;

[0053] S230, determining configuration information of a second hotspot based on the first shared key and device information of the network camera;

[0054] S240, sending a response message of the registration request to the screen end, wherein the response message of the registration request carries relevant information of the configuration information of the second hotspot;

[0055] S250, the network camera is connected to the screen end as a second hotspot, wherein the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot.

[0056] Figure 3 The present invention is a schematic flow chart of a communication method performed by a screen terminal according to an embodiment of the present application. The method includes at least part of the following contents.

[0057] S310, when the screen end is connected to a network camera as a first hotspot, negotiate with the network camera to obtain a first shared key;

[0058] S320, sending a registration request to the network camera;

[0059] S330, receiving a response message to the registration request sent by the network camera, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot;

[0060] S340. Connect to the network camera serving as the second hotspot based on the relevant information of the configuration information of the second hotspot.

[0061] By adopting the above solution, the network camera determines the configuration information of the second hotspot based on the first shared key and the device information of the network camera, and sends the relevant information of the configuration information of the second hotspot to the screen end. In this way, the screen end connects with the network camera based on the configuration information of the second hotspot generated by the first shared key, and the first shared key is only known to the screen end and the network camera, so the security of the network camera and the screen end is improved.

[0062] In some possible implementations, on the network camera side, the method further includes: acquiring device information of the screen end through the content displayed on the screen end; determining configuration information of the first hotspot based on the device information of the screen end; and generating the first hotspot of the network camera based on the configuration information of the first hotspot.

[0063] The obtaining of the device information of the screen end through the content displayed on the screen end may include: the network camera obtains the device information of the screen end by scanning the QR code displayed on the display screen of the screen end, wherein the device information of the screen end may include the MAC (Media Access Control Address, physical address) of the screen end and the first preset first hotspot template information.

[0064] The configuration information of the first hotspot determined based on the device information of the screen end may include: generating the name of the first hotspot based on at least part of the characters in the MAC of the screen end, the first preset first hotspot template information, and the predefined information in the network camera; determining the configuration information of the first hotspot of the network camera based on the name of the first hotspot, the preset first hotspot password in the network camera, and the attribute of the first hotspot, wherein the attribute of the first hotspot is used to indicate that the first hotspot is in a hidden state or a broadcast state. For example: the configuration information of the first hotspot may include: the name of the first hotspot camera-060a02_ap633A, wherein camera and ap are predefined information, 060a02 is the first preset first hotspot template information, and 633A is the last four characters of the MAC of the screen end; the preset first hotspot password is empty, and the attribute of the first hotspot is a hidden state. This is only an exemplary description, and the preset first hotspot password can be set according to actual conditions, such as the preset first hotspot password can be any other character or string, the attribute of the first hotspot can be a hidden state or a broadcast state, and the predefined information in the network camera can be set according to actual conditions, which is not limited here.

[0065] In some possible implementations, the network camera side, before the network camera is connected to the screen end as a first hotspot, further includes: determining configuration information of the first hotspot based on the device information of the network camera, wherein the device information of the network camera may include the MAC (Media Access Control Address, physical address) of the network camera and a second preset first hotspot template information.

[0066] The configuration information of the first hotspot is determined based on the device information of the network camera, including: generating the name of the first hotspot based on at least part of the characters in the MAC of the network camera, the second preset first hotspot template information in the network camera, and the predefined information in the network camera; determining the configuration information of the first hotspot of the network camera based on the name of the first hotspot, the preset first hotspot password in the network camera, and the attributes of the first hotspot, wherein the attributes of the first hotspot are used to indicate that the first hotspot is in a hidden state or a broadcast state. The name of the first hotspot is generated in the same way as described above, and will not be described in detail here.

[0067] In some possible implementations, on the screen side, the method further includes: when the screen is in an unbound state, displaying device information of the screen on the screen, wherein the device information of the screen is used by the network camera to determine configuration information of the first hotspot; and connecting to the network camera based on the configuration information of the first hotspot.

[0068] Among them, the way to determine the binding state of the screen end can be: when the factory mode (factory_mode) in the factory (Factory) partition of the screen end is the first value, the state of the screen end is determined to be an unbound state; when the factory mode (factory_mode) in the factory (Factory) partition of the screen end is the second value, the state of the screen end is determined to be a bound state, wherein the factory partition can be a partition for storing the factory program or firmware of the screen end. For example: when factory_mode=0 in the factory partition, the state of the screen end is an unbound state; when factory_mode=1 in the factory partition, the state of the screen end is a bound state. This is only an exemplary description, and the specific setting method is set according to the actual situation.

[0069] The displaying of the device information of the screen end on the screen end may include: generating a QR code based on the MAC of the screen end and the first preset first hotspot template information in the screen end; and displaying the QR code on the display screen of the screen end.

[0070] The connection with the network camera based on the configuration information of the first hotspot may include: generating the configuration information of the first hotspot based on the device information of the screen end; and connecting with the network camera based on the configuration information of the first hotspot.

[0071] Specifically, the device information of the screen end generates the configuration information of the first hotspot, including: obtaining the name of the first hotspot based on at least part of the characters in the MAC of the screen end, the first preset first hotspot template information in the screen end, and the predefined information in the screen end; generating the configuration information of the first hotspot based on the name of the first hotspot and the preset first hotspot password in the screen end, wherein the predefined information in the screen end is the same as the predefined information in the network camera, and the preset first hotspot password in the screen end is the same as the preset first hotspot password in the network camera.

[0072] Optionally, when the screen end is in an unbound state, the screen end detects the first hotspot signals of one or more network cameras; among the first hotspot signals of one or more network cameras detected by the screen end, the first hotspot with the strongest signal is selected, and based on the preset first hotspot password in the screen end, the first hotspot with the strongest signal is connected.

[0073] Optionally, when the screen end is in a bound state, the screen end detects the first hotspot signals of one or more network cameras, selects the first hotspot of any one network camera among the first hotspot signals of one or more network cameras detected by the screen end, and connects to the first hotspot of any one network camera based on the preset first hotspot password in the screen end.

[0074] By adopting the above solution, the network camera can generate the configuration information of the first hotspot of the network camera by acquiring the device information of the screen end, and the screen end connects to the network camera based on the configuration information of the first hotspot. In this way, the network camera and the screen end can generate the same configuration information of the first hotspot, and then automatically connect through the same configuration information of the first hotspot, which can improve the efficiency of networking of the network camera and the screen end.

[0075] In some possible implementations, the network camera side negotiates with the screen side to obtain a first shared key, including: receiving a first public key sent by the screen side; generating a second public key and a second private key of the network camera; generating the first shared key based on the first public key and the second private key; and sending the second public key to the screen side, wherein the second public key is used by the screen side to generate the first shared key.

[0076] The second public key and the second private key of the network camera are generated by: generating the second public key and the second private key of the network camera based on a key negotiation algorithm, wherein the key negotiation algorithm includes one of the following: ECDH (Elliptic Curve Diffie-Hellman key Exchange) algorithm, DH (Diffie-Hellman) algorithm. Other algorithms may also be used, and they are not listed here one by one. As long as the algorithm of this implementation mode can be implemented, it is within the protection scope of this application.

[0077] The generating the first shared key based on the first public key and the second private key may include: generating the first shared key through a key negotiation algorithm based on the first public key and the second private key.

[0078] In some possible implementations, the screen side negotiates with the network camera to obtain a first shared key, including: generating a first public key and a first private key for the screen side; sending the first public key to the network camera, wherein the first public key is used by the network camera to generate the first shared key; receiving a second public key sent by the network camera; and generating the first shared key based on the first private key and the second public key.

[0079] The generating of the first public key and the first private key of the screen side may include: generating the first public key and the first private key of the screen side based on a key agreement algorithm.

[0080] The generating the first shared key based on the first private key and the second public key may include: generating the first shared key through a key negotiation algorithm based on the first private key and the second public key.

[0081] By adopting the above solution, the network camera and the screen end negotiate to obtain the first shared key. In this way, the network camera and the screen end can have the same first shared key, and then the second hotspot configuration information generated by the first shared key can be used for networking, so that the second hotspot configuration information can only be known by the screen end and the network camera, thereby improving the security of the network camera and the screen end networking.

[0082] In some possible implementations, on the network camera side, the configuration information of the second hotspot is determined based on the first shared key and the device information of the network camera, including: determining the name of the second hotspot based on the device information of the network camera; determining the password of the second hotspot based on the first shared key; and using the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot.

[0083] The method of determining the name of the second hotspot based on the device information of the network camera includes: generating the name of the second hotspot based on at least part of the characters in the MAC of the network camera, the second preset first hotspot template information in the network camera, and the predefined information in the network camera, wherein the method of generating the name of the second hotspot is the same as the method of generating the name of the first hotspot mentioned above, and will not be repeated here.

[0084] Determining the password of the second hotspot based on the first shared key may include: using some characters in the first shared key as the password of the second hotspot. For example, the first 8 characters in the first shared key may be used as the password of the second hotspot. This is only an example, and the specific method of using some characters in the first shared key as the password of the second hotspot can be set according to actual conditions.

[0085] The using the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot may include: using the name of the second hotspot, the password of the second hotspot, and the attributes of the second hotspot as the configuration information of the second hotspot, wherein the attributes of the second hotspot may be a hidden state or a broadcast state.

[0086] By adopting the above solution, the name of the second hotspot is determined based on the device information of the network camera; the password of the second hotspot is determined based on the first shared key; and the configuration information of the second hotspot of the network camera is determined based on the name of the second hotspot and the password of the second hotspot. In this way, the second hotspot password obtained according to the first shared key is only known to the screen end and the network camera, thereby improving the security of the network camera and the screen end networking.

[0087] In some possible implementations, on the screen end side, the screen end sends a registration request to the network camera, including: using the first shared key as an encryption key, encrypting the device information of the screen end through an encryption algorithm to obtain second ciphertext data; sending a registration request to the network camera, wherein the registration request carries the second ciphertext data.

[0088] The encryption algorithm includes one of the following: AES (Advanced Encryption Standard) algorithm, chacha20 (ChaCha20-Poly1305) algorithm, wherein the device information also includes at least one of the following: SN (Serial Number), ID (Identity document).

[0089] In some possible implementations, the network camera side, after receiving the registration request sent by the screen side, further includes: when decrypting the second ciphertext data carried by the registration request based on the first shared key to obtain the device information of the screen side, sending a response message of the registration request to the screen side.

[0090] The decrypting of the second ciphertext data carried in the registration request based on the first shared key to obtain the device information of the screen end includes: using the first shared key as a decryption key, decrypting the device information of the screen end through a decryption algorithm to obtain the device information of the screen end. The decryption algorithm is the same as the encryption algorithm.

[0091] In one embodiment, when the device information of the screen end is not obtained by decrypting the registration request based on the first shared key, it is determined that the binding between the screen end and the network camera fails, and the above process is re-executed.

[0092] The failure to obtain the device information of the screen end by decrypting the registration request based on the first shared key may be: using the first shared key as a decryption key, decrypting the registration request through a decryption algorithm, and determining that the device information of the screen end is not obtained when the decrypted information obtained is garbled.

[0093] In some possible implementations, on the network camera side, the response message of the registration request sent to the screen side includes: encrypting the relevant information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data; and sending a response message of the registration request to the screen side, wherein the response message of the registration request carries the first ciphertext data.

[0094] Among them, the relevant information of the configuration information of the second hotspot includes one of the following: the name of the second hotspot, the password of the second hotspot; the number of digits of characters in the first shared key corresponding to the name of the second hotspot and the password of the second hotspot.

[0095] Optionally, encrypting the relevant information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data includes: using the first shared key as the encryption key, encrypting the name of the second hotspot and the password of the second hotspot through an encryption algorithm to obtain the first ciphertext data.

[0096] Optionally, the relevant information of the configuration information of the second hotspot is encrypted based on the first shared key to obtain first ciphertext data, including: using the first shared key as an encryption key, and encrypting the name of the second hotspot and the password of the second hotspot by an encryption algorithm according to the number of digits of the characters in the first shared key to obtain the first ciphertext data.

[0097] In some possible implementations, the screen side, after receiving the response message to the registration request sent by the network camera, also includes: decrypting the first ciphertext data carried in the response message to the registration request based on the first shared key to obtain relevant information of the configuration information of the second hotspot.

[0098] The decrypting of the first ciphertext data carried in the response message of the registration request based on the first shared key to obtain relevant information of the configuration information of the second hotspot includes: using the first shared key as a decryption key, decrypting the first ciphertext data carried in the response message of the registration request through a decryption algorithm to obtain relevant information of the configuration information of the second hotspot, wherein the decryption algorithm is the same as the encryption algorithm.

[0099] Optionally, connecting with the network camera serving as the second hotspot based on relevant information of the configuration information of the second hotspot includes: connecting with the network camera serving as the second hotspot based on the name of the second hotspot and the password of the second hotspot.

[0100] Optionally, based on relevant information of the configuration information of the second hotspot, connecting to the network camera serving as the second hotspot includes: determining the second hotspot password in the first shared key based on the number of digits of characters in the first shared key corresponding to the password of the second hotspot; and connecting to the network camera serving as the second hotspot based on the name of the second hotspot and the password of the second hotspot.

[0101] By adopting the above scheme, the network camera sends the relevant information of the configuration information of the second hotspot by encrypting it with the first shared key, and the screen end obtains the relevant information of the configuration information of the second hotspot by decrypting it with the first shared key. In this way, the transmission of the relevant information of the configuration information of the second hotspot can be made more secure, thereby improving the security of the networking of the network camera and the screen end.

[0102] In some possible implementations, on the screen side, after the relevant information based on the configuration information of the second hotspot is connected to the network camera serving as the second hotspot, it also includes: sending an update registration request to the network camera; receiving a response message to the update registration request sent by the network camera, wherein the response message to the update registration request is used to notify the screen side that the binding with the network camera is successful; and switching the binding state of the screen side from an unbound state to a bound state.

[0103] The switching of the binding state of the screen end from the unbound state to the bound state may include: modifying a first value of a factory mode in a factory partition of the screen end to a second value.

[0104] In this implementation, the screen sends an update registration request to the network camera, including: using the first shared key as an encryption key, encrypting the device information of the screen through an encryption algorithm to obtain third ciphertext data; sending an update registration request to the network camera, wherein the registration request carries the third ciphertext data. The method of obtaining the third ciphertext data is the same as the method of obtaining the second ciphertext data, which will not be described in detail here.

[0105] In some possible implementations, on the network camera side, after the network camera is connected to the screen end as a second hotspot, it also includes: receiving an update registration request sent by the screen end; sending a response message of the update registration request to the screen end, wherein the response message of the update registration request is used to notify the screen end that the binding with the network camera is successful.

[0106] The updated registration information includes the device information of the screen end, and is used for the network camera to register and record the device information of the screen end.

[0107] In this embodiment, the sending of the response message of the update registration request to the screen end includes: decrypting the third ciphertext carried by the update registration request sent by the screen end based on the first shared key to obtain the device information of the screen end, and sending the response message of the update registration request to the screen end. The method of decrypting the third ciphertext is the same as the method of decrypting the second ciphertext, which will not be repeated here.

[0108] When the third ciphertext carried in the update registration request sent to the screen end based on the first shared key is decrypted and the device information of the screen end is not obtained, it is determined that the binding between the screen end and the network camera fails, and the above process is re-executed.

[0109] The decryption of the third ciphertext carried in the update registration request sent to the screen end based on the first shared key fails to obtain the device information of the screen end, which may be: the third ciphertext carried in the update registration request sent to the screen end is decrypted based on the first shared key, and when the decrypted information obtained is garbled, it is determined that the device information of the screen end is not obtained.

[0110] By adopting the above scheme, after the network camera is connected to the screen end as the second hotspot, the screen end determines that the screen end and the network camera are successfully bound by sending an update registration request and receiving a response message to the update registration request sent by the network camera, thereby modifying the binding status of the screen end. In this way, the binding status of the screen end and the network camera, that is, the networking status, can be determined more accurately.

[0111] Combination Figure 4 The above-mentioned implementation modes are exemplarily described as follows. Figure 4 As shown, when the IPC is in AP (Access Point mode) and the screen is in an unbound state, it includes:

[0112] S401, the IPC obtains the device information of the screen end by scanning the QR code displayed on the display screen of the screen end.

[0113] S402, the IPC determines the configuration information of the first hotspot of the IPC based on the device information of the screen end; generates the first hotspot based on the configuration information of the first hotspot, wherein the method of generating the first hotspot is the same as the above embodiment and will not be repeated here.

[0114] Optionally, the IPC determines configuration information of a first hotspot of the IPC based on device information of the IPC; generates a first hotspot based on the configuration information of the first hotspot, wherein the method of generating the first hotspot of the IPC is the same as that of the above embodiment and is not repeated here.

[0115] After the IPC generates the first hotspot, the IPC monitors the TCP (Transmission Control Protocol) connection initiated by the screen end through port 8088.

[0116] S403, the screen end is connected to the IPC serving as the first hotspot, and the specific connection method is the same as that in the above embodiment, which will not be repeated here.

[0117] S404, when the screen end is successfully connected to the IPC as the first hotspot within the first preset time, the IPC sends a message of success of the first hotspot to the screen end; when the screen end is not successfully connected to the IPC as the first hotspot within the first preset time, return to execute step S401 until the screen end is successfully connected to the IPC as the first hotspot within the first preset time, wherein the first time can be the time corresponding to the first preset time after the IPC generates the first hotspot.

[0118] S405, the screen end establishes a TCP connection with port 8088 of the IPC.

[0119] S406, the screen end generates a first public key and a first private key of the screen end. The specific generation method is the same as that in the above embodiment and will not be repeated here.

[0120] S407: The screen sends the first public key to the IPC.

[0121] S408, the IPC generates a second public key and a second private key of the IPC. The specific generation method is the same as that in the above embodiment and will not be repeated here.

[0122] S409, the IPC sends the second public key of the IPC to the screen end.

[0123] S410, the IPC generates a first shared key based on the second private key and the first public key; the screen end generates a first shared key based on the first private key and the second public key.

[0124] S411, the screen sends a registration request to the IPC.

[0125] S412, the IPC sends a response message of the registration request to the screen end, wherein the response message of the registration request carries relevant information of the configuration information of the second hotspot.

[0126] S413, the IPC disconnects the TCP connection with the screen end.

[0127] S414, the IPC updates the configuration information of the first hotspot based on the configuration information of the second hotspot to obtain a second hotspot.

[0128] After obtaining the second hotspot, IPC listens to the TCP connection initiated by the screen end through port 8088.

[0129] S415, the screen end is connected to the IPC serving as the second hotspot.

[0130] S416, when the screen end is successfully connected to the IPC as the second hotspot within the second preset time, the IPC sends a message of success of the second hotspot to the screen end, and when the screen end is not successfully connected to the IPC as the second hotspot within the second preset time, returns to step S401 until the screen end is successfully connected to the IPC as the second hotspot within the second preset time, wherein the second time can be the time corresponding to the second preset time after the second hotspot is obtained.

[0131] S417, the screen end establishes a TCP connection with port 8088 of the IPC.

[0132] S418, the screen sends an update registration request to the IPC.

[0133] S419, the IPC sends a response message of the update registration request to the screen end.

[0134] S420, the IPC and the screen end locally save the password of the second hotspot in the configuration information of the second hotspot.

[0135] In some possible implementations, the screen side, after receiving the response message of the update registration request sent by the network camera, also includes: generating a third public key and a third private key of the screen side; signing the third public key and the device information of the screen side based on the second shared key to obtain a first signature, wherein the second shared key includes the first shared key, or preset information; sending the login request to the network camera, wherein the login request carries the first signature, the device information of the screen side, and the third public key, and the third public key is used for the network camera to generate a third shared key; receiving a response message of the login request sent by the network camera, wherein the response message of the login request is used to notify the screen side that the login to the network camera is successful.

[0136] Among them, the method of generating the third public key and the third private key of the screen end is the same as the method of generating the first public key and the first private key of the screen end, which will not be repeated here.

[0137] The third shared key is used to encrypt data transmission between the screen device and the network camera.

[0138] The third public key and the device information on the screen are signed based on the second shared key to obtain a first signature, including: using the second signature information as a signature password, signing the third public key and the device information on the screen through a signature algorithm to obtain a first signature, wherein the signature algorithm includes: hmac_sha256 (Hash-based Message Authentication Code using SHA-256, using a hash-based message authentication code using SHA-256).

[0139] In some possible implementations, the network camera side, after sending the response message of the update registration request to the screen side, also includes: receiving a login request sent by the screen side, wherein the login request includes a first signature, the device information of the screen side, and a third public key; when the first signature is verified based on the second shared key, the device information of the screen side, and the third public key, sending a response message of the login request to the screen side, wherein the second shared key includes the first shared key, or preset information, and the response message of the login request is used to notify the screen side that the login to the network camera is successful.

[0140] The verifying the first signature based on the second shared key, the device information of the screen end, and the third public key may include: using the second shared key as a verification password, verifying the first signature through a verification algorithm, and obtaining first verification information; if the first verification information is the same as the device information of the screen end and the third public key, determining that the verification has passed; if the first verification information is different from the device information of the screen end and the third public key, determining that the verification has failed.

[0141] In this embodiment, if the first signature is verified based on the second shared key, the device information of the screen end, and the third public key, it means that the screen end is authenticated by the network camera, so that the screen end can be recognized by the network camera and allowed to access or use related services and functions. Otherwise, if the verification fails, the screen end is denied access to or use of related services and functions.

[0142] By adopting the above solution, the network camera can determine the legitimacy of the screen by verifying the login information sent by the screen. If the verification is passed, the screen is allowed to access or use related services and functions, thereby improving the security of communication between the network camera and the screen.

[0143] In some possible implementations, on the network camera side, the response message of the login request sent to the screen side includes: generating a fourth public key and a fourth private key of the network camera; generating a third shared key based on the fourth private key and the third public key; signing the fourth public key of the network camera based on the third shared key to obtain a second signature; and sending a response message of the login request to the screen side, wherein the response message of the login request carries the second signature and the fourth public key, and the fourth public key is used to generate the third shared key on the screen side.

[0144] The fourth public key and the fourth private key of the network camera are generated in the same manner as the second public key and the second private key of the network camera, which will not be described in detail here.

[0145] The third shared key is generated based on the fourth private key and the third public key in the same manner as the first shared key is generated based on the second private key and the first public key, and will not be repeated here.

[0146] The signing of the fourth public key of the network camera based on the third shared key to obtain the second signature may be performed by using the third shared key as a signature password and signing the fourth public key through a signature algorithm to obtain the second signature.

[0147] In some possible implementations, the screen side, after receiving the response message of the login request sent by the network camera, also includes: generating a third shared key based on the fourth public key carried in the response message of the login request and the third private key; verifying the second signature based on the third shared key and the fourth public key carried in the response message of the login request, wherein the verification of the second signature is used to determine the integrity of the fourth public key.

[0148] Based on the fourth public key and the third private key carried in the response message of the login request, a third shared key is generated. This is the same as the method of generating the first shared key based on the first private key and the second public key, and will not be repeated here.

[0149] The verification of the second signature based on the third shared key and the fourth public key includes: using the third shared key as a verification password, verifying the second signature through a verification algorithm, and obtaining second verification information, and if the second verification information is the same as the fourth public key, the verification passes; if the second verification information is different from the fourth public key, the verification fails.

[0150] If the signature verification is successful, the third shared key is used to encrypt the data transmission between the screen device and the network camera. If the signature verification is unsuccessful, the above steps are performed again.

[0151] By adopting the above scheme, the screen end can determine the legitimacy of the fourth public key sent by the network camera by verifying the signature of the response message of the login information sent by the network camera. Therefore, if the signature verification passes, the data transmission between the screen end device and the network camera can be encrypted by the third shared key, which can improve the security of data transmission.

[0152] Combination Figure 5 The above-mentioned implementation modes are exemplarily described as follows. Figure 5 As shown, including:

[0153] S501, the screen end generates a third public key and a third private key of the screen end;

[0154] S502, the screen side signs the third public key of the screen side and the device information of the screen side based on the second shared key to obtain a first signature; a login request is sent to the IPC, wherein the login request carries the first signature, the device information of the screen side, and the third public key, and the second shared key includes the first shared key, or preset information.

[0155] S503, the IPC generates a fourth public key and a fourth private key if the first signature is verified based on the second shared key, the device information of the screen end, and the third public key; and generates a third shared key based on the third public key and the fourth private key. If the first signature is not verified, continue to execute step 401 in the above embodiment.

[0156] S504, signing the fourth public key of the IPC based on the third shared key to obtain a second signature; sending a response message of the login request to the screen end, wherein the response message of the login request carries the second signature and the fourth public key.

[0157] S505: The screen side generates a third shared key based on the fourth public key and the third private key, and completes the negotiation of the third shared key.

[0158] S506, the IPC and the screen end encrypt the transmitted data through the third shared key, establish a data encryption channel, and encrypt the data transmission between the screen end device and the network camera through the third shared key.

[0159] In some possible implementations, on the network camera side, the method further includes: in a case where an upgrade is determined based on an upgrade notification sent by a server, obtaining an upgrade file corresponding to the upgrade notification from the server, and storing the upgrade file corresponding to the upgrade notification in a first partition of the network camera, wherein the upgrade notification includes an upgrade strategy, and the upgrade strategy includes one of the following: forced upgrade, normal upgrade; switching the boot partition mark of the network camera from the second partition to the first partition, and restarting the network camera; in a case where the network camera is successfully started based on the first partition, the network camera is upgraded successfully.

[0160] The upgrade notification may be sent by a server connected to the network camera to the network camera. The server may also be referred to as a cloud. The network camera may be connected to the server as a STA.

[0161] The network camera is also connected to the terminal as a STA, or the server is connected to the terminal, and the specific connection method is not limited here. The terminal can be a smart terminal, such as a smart phone, a tablet computer, etc., which is different from the above-mentioned screen terminal.

[0162] The determining whether to upgrade the network camera based on the upgrade notification includes one of the following: determining to upgrade the network camera when the upgrade policy carried in the upgrade notification is a forced upgrade; determining to upgrade the network camera when the upgrade policy carried in the upgrade notification is a normal upgrade and a message confirming the upgrade notification upgrade sent by the terminal is received.

[0163] In one implementation, the method further includes: the server sending an upgrade notification to the terminal.

[0164] When the terminal receives the upgrade notification sent by the server and the upgrade policy included in the upgrade notification is a common upgrade, based on the user's operation in the terminal, the terminal sends a message confirming the upgrade or a message rejecting the upgrade to the network camera.

[0165] When the upgrade policy included in the upgrade notification received by the network camera is a normal upgrade and no message confirming the upgrade is received from the terminal or a message rejecting the upgrade is received from the terminal, the network camera continues to wait for the next upgrade notification sent by the server.

[0166] In one implementation, on the network camera side, the method further includes: in the event that starting the network camera based on the first partition fails, switching the startup partition of the network camera from the first partition to the second partition, and determining that the network camera upgrade fails.

[0167] The first partition of the network camera can also be called the system backup partition of the network camera. It can be understood that the first partition of the network camera and the second partition of the network camera are system backup partitions of each other. For example, when the current second partition is the boot partition (i.e., the boot partition is marked as the second partition), the first partition is the system backup partition. When the upgrade file corresponding to the upgrade notification is stored in the first partition of the network camera, and the boot partition mark of the network camera is switched from the second partition to the first partition and the network camera is successfully started based on the first partition, the first partition is used as the boot partition and the second partition is used as the system backup partition, and the switching is repeated; when the network camera fails to be started based on the first partition, the current second partition is still used as the boot partition to prompt the network camera. This method can also be called a ping-pong upgrade method.

[0168] By adopting the above scheme, it can be ensured that the network camera can be accurately upgraded according to the upgrade strategy. According to the ping-pong upgrade method, the stability of the network camera upgrade can be guaranteed, avoiding the situation where errors in the upgrade process cause the network camera to be unusable after the upgrade.

[0169] In some possible implementations, on the network camera side, the method further includes: obtaining the version of the screen end; in the case where the version of the screen end is lower than the version of the network camera, determining the upgrade version of the screen end and the upgrade policy corresponding to the upgrade version of the screen end based on the version of the screen end and the version of the network camera; sending an upgrade instruction to the screen end, wherein the upgrade instruction carries the upgrade version of the screen end and the upgrade policy corresponding to the upgrade version of the screen end; and in the case of receiving an upgrade request sent by the screen end, sending the upgrade file corresponding to the upgraded version of the screen end to the screen end.

[0170] In the case where the version of the screen end is lower than the version of the network camera, the upgrade strategy of the screen end is determined based on the version of the screen end and the version of the network camera, which can be: in the case where the version of the screen end is lower than the version of the network camera, and the version difference between the screen end and the network camera is greater than a threshold, the upgrade strategy of the screen end is determined to be forced upgrade; in the case where the version of the screen end is lower than the version of the network camera, and the version difference between the screen end and the network camera is less than or equal to a threshold, the upgrade strategy of the screen end is determined to be normal upgrade.

[0171] When the version of the screen end is lower than the version of the network camera, determining the upgraded version of the screen end based on the version of the screen end and the version of the network camera may include using the version of the network camera as the upgraded version of the screen end.

[0172] When the version of the screen end is higher than or equal to the version of the network camera, it is determined that the screen end is not to be upgraded, and no upgrade instruction is sent to the screen end.

[0173] By adopting the above solution, it can be determined whether the screen side needs to be upgraded based on the version difference between the screen side and the network camera. In this way, it can be more accurately determined whether the screen side needs to be upgraded, thereby improving the efficiency of the upgrade.

[0174] In some possible implementations, on the network camera side, the method further includes: sending an upgrade file corresponding to an upgraded version of the screen end to the screen end, including one of the following: in a case where the upgrade file corresponding to the upgraded version of the screen end exists in the network camera, sending the upgrade file corresponding to the upgraded version of the screen end to the screen end; in a case where the upgrade file corresponding to the upgraded version of the screen end does not exist in the network camera, obtaining the upgrade file corresponding to the upgraded version of the screen end from the server, and sending the upgrade file corresponding to the upgraded version of the screen end to the screen end.

[0175] By adopting the above solution, it can be ensured that the screen end can obtain the upgrade file corresponding to its upgraded version in time. When the upgrade file is already in the network camera, it is directly sent to the screen end, which improves the efficiency of obtaining the upgrade file. When the network camera does not have the required upgrade file, it can actively obtain it from the server and send it to the screen end, ensuring that the screen end can successfully obtain the corresponding upgrade file under any circumstances as long as the upgraded version exists, thereby realizing timely update and optimization of the system.

[0176] In some possible implementations, on the screen side, the method also includes: sending the version of the screen side to one or more network cameras; receiving upgrade instructions sent by the one or more network cameras; in a case where the upgrade is determined based on the upgrade version of the screen side included in the upgrade instructions sent by the one or more network cameras and the upgrade policy corresponding to the upgrade version of the screen side, determining the target upgrade version of the screen side based on the upgrade version of the screen side included in the upgrade instructions of the one or more network cameras, and determining the target upgrade policy corresponding to the target upgrade version, wherein the target upgrade policy includes one of the following: forced upgrade, normal upgrade; sending a generate upgrade request to the network camera corresponding to the target upgrade version; obtaining the upgrade file corresponding to the target upgrade version of the screen side from the network camera corresponding to the target upgrade version.

[0177] The determining whether to upgrade based on the upgrade version of the screen side included in the upgrade instructions sent by the one or more network cameras and the upgrade policy corresponding to the upgrade version of the screen side includes: when the upgrade policy corresponding to the highest upgrade version of the upgrade version of the screen side included in the upgrade instructions sent by the one or more network cameras is a forced upgrade, determining to upgrade; when the upgrade policy corresponding to the highest upgrade version of the upgrade version of the screen side included in the upgrade instructions sent by the one or more network cameras is a normal upgrade, determining to upgrade based on the user's confirmation operation on the screen side.

[0178] The method also includes: when the upgrade policy corresponding to the highest upgrade version among the upgrade versions of the screen end included in the upgrade instructions of the one or more network cameras is a normal upgrade, based on the user's rejection of the upgrade operation on the screen end, determining not to upgrade and continuing to execute the above steps.

[0179] By adopting the above solution, it can be determined whether the screen side needs to be upgraded based on the version difference between the screen side and the network camera. In this way, it can be more accurately determined whether the screen side needs to be upgraded, thereby improving the efficiency of the upgrade.

[0180] In some possible implementations, on the screen side, the method further includes: storing the upgrade file corresponding to the target upgrade version of the screen side in the third partition of the screen side; switching the boot partition mark of the screen side from the fourth partition to the third partition, and restarting the screen side; if the screen side is successfully started based on the third partition, the screen side is upgraded successfully.

[0181] In some possible implementations, on the screen side, the method further includes: in the event that starting the screen side based on the third partition fails, switching the startup partition of the screen side from the third partition to the fourth partition, and determining that the screen side upgrade fails.

[0182] The third partition of the screen end can also be called the system backup partition of the screen end. It can be understood that the third partition of the screen end and the fourth partition of the screen end are system backup partitions of each other. For example, when the current fourth partition is the boot partition (i.e., the boot partition is marked as the fourth partition), the third partition is the system backup partition. When the upgrade file corresponding to the target upgrade version is stored in the third partition of the screen end, and the boot partition mark of the screen end is switched from the fourth partition to the third partition and the screen end is successfully started based on the third partition, the third partition is used as the boot partition and the fourth partition is used as the system backup partition, and the switching is repeated; when the screen end fails to be started based on the third partition, the current fourth partition is still used as the boot partition to enlighten the screen end. This method can also be called a ping-pong upgrade method.

[0183] By adopting the above solution, according to the ping-pong upgrade method, the stability of the screen upgrade can be guaranteed, and the situation that errors occur repeatedly during the upgrade process and the screen cannot be used after the upgrade can be avoided.

[0184] After the screen end is successfully upgraded, it also includes: judging whether it needs to be upgraded according to the version information of the WIFI firmware of the screen end and the version of the WIFI firmware in the network camera, and if necessary, requesting the network camera to download the corresponding WIFI firmware and calling the instruction to download, the specific judgment method and download method are the same as those of the above screen end, and will not be repeated here. Among them, the firmware may include a driver.

[0185] Figure 6 1 is a schematic diagram of the composition structure of a network camera according to an embodiment of the present application, including:

[0186] The first communication unit 601 is used for negotiating with the screen end to obtain a first shared key when the network camera is connected to the screen end as a first hotspot, wherein the configuration information of the first hotspot is generated based on the device information of the screen end; receiving a registration request sent by the screen end; sending a response message of the registration request to the screen end, wherein the response message of the registration request carries relevant information of the configuration information of the second hotspot; the network camera is connected to the screen end as a second hotspot, wherein the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot;

[0187] The first processing unit 602 is used to determine the configuration information of the second hotspot based on the first shared key and the device information of the network camera.

[0188] The first communication unit is used to receive the update registration request sent by the screen end; and send a response message of the update registration request to the screen end, wherein the response message of the update registration request is used to notify the screen end that the binding with the network camera is successful.

[0189] The first processing unit is used to determine the name of the second hotspot based on the device information of the network camera; determine the password of the second hotspot based on the first shared key; and use the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot.

[0190] The first communication unit is configured to receive a first public key sent by the screen end; and send the second public key to the screen end, wherein the second public key is used by the screen end to generate the first shared key;

[0191] The first processing unit is used to generate a second public key and a second private key of the network camera; and generate the first shared key based on the first public key and the second private key.

[0192] The first processing unit is configured to encrypt the relevant information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data;

[0193] The first communication unit is used to send a response message of the registration request to the screen end, wherein the response message of the registration request carries the first ciphertext data.

[0194] The first communication unit is used to receive a login request sent by the screen end, wherein the login request includes a first signature, device information of the screen end, and a third public key; when the first signature is verified based on a second shared key, the device information of the screen end, and the third public key, a response message of the login request is sent to the screen end, wherein the second shared key includes the first shared key, or preset information, and the response message of the login request is used to notify the screen end that the login to the network camera is successful.

[0195] The first processing unit is used to generate a fourth public key and a fourth private key of the network camera; generate a third shared key based on the fourth private key and the third public key; and sign the fourth public key of the network camera based on the third shared key to obtain a second signature;

[0196] The first communication unit is used to send a response message of the login request to the screen end, wherein the response message of the login request carries the second signature and the fourth public key, and the fourth public key is used by the screen end to generate a third shared key.

[0197] like Figure 7 As shown, the network camera further includes: a collection unit 701, which is used to obtain device information of the screen end through the content displayed on the screen end;

[0198] The first processing unit is used to determine the configuration information of the first hotspot based on the device information of the screen end; and generate the first hotspot of the network camera based on the configuration information of the first hotspot.

[0199] like Figure 8 As shown, the network camera further includes: a first storage unit, which is used to obtain an upgrade file corresponding to the upgrade notification from the server through the first communication unit when the upgrade is determined based on the upgrade notification sent by the server, and store the upgrade file corresponding to the upgrade notification in the first partition of the network camera, wherein the upgrade notification includes an upgrade strategy, and the upgrade strategy includes one of the following: forced upgrade, normal upgrade;

[0200] The first processing unit is used to switch the boot partition mark of the network camera from the second partition to the first partition, and restart the network camera; when the network camera is successfully started based on the first partition, it is determined that the network camera is upgraded successfully.

[0201] The first processing unit is used to switch the startup partition of the network camera from the first partition to the second partition when the network camera fails to be started based on the first partition, and determine that the network camera upgrade fails.

[0202] The first communication unit is used to obtain the version of the screen end; send an upgrade instruction to the screen end, wherein the upgrade instruction carries the upgrade version of the screen end and the upgrade policy corresponding to the upgrade version of the screen end; and upon receiving an upgrade request sent by the screen end, send an upgrade file corresponding to the upgrade version of the screen end to the screen end.

[0203] The first processing unit is used to determine the upgrade version of the screen end and the upgrade strategy corresponding to the upgrade version of the screen end based on the version of the screen end and the version of the network camera when the version of the screen end is lower than the version of the network camera.

[0204] The first communication unit is configured to perform one of the following:

[0205] In the case where the network camera has an upgrade file corresponding to the upgraded version of the screen end, sending the upgrade file corresponding to the upgraded version of the screen end to the screen end;

[0206] When the upgrade file corresponding to the upgraded version of the screen side does not exist in the network camera, the upgrade file corresponding to the upgraded version of the screen side is obtained from the server, and the upgrade file corresponding to the upgraded version of the screen side is sent to the screen side.

[0207] Fig. 9 : is a schematic diagram of the structure of a screen terminal according to an embodiment of the present application, including:

[0208] The second communication unit 901 is used for negotiating with the network camera to obtain a first shared key when the screen end is connected to the network camera serving as the first hotspot; sending a registration request to the network camera; receiving a response message to the registration request sent by the network camera, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot; and connecting to the network camera serving as the second hotspot based on the relevant information of the configuration information of the second hotspot.

[0209] like Fig.10 As shown, the screen end further includes: a second processing unit 1001, which is used to switch the binding state of the screen end from an unbound state to a bound state;

[0210] The second communication unit is used to send an update registration request to the network camera; receive a response message to the update registration request sent by the network camera, wherein the response message to the update registration request is used to notify the screen end that the binding with the network camera is successful.

[0211] The second processing unit is used to generate a first public key and a first private key of the screen end; based on the first private key and the second public key, a first shared key between the network camera and the screen end is generated;

[0212] The second communication unit is used to send the first public key to the network camera, wherein the first public key is used by the network camera to generate the first shared key; and receive the second public key sent by the network camera.

[0213] The second processing unit is used to decrypt the first ciphertext data carried in the response message of the registration request based on the first shared key to obtain relevant information of the configuration information of the second hotspot.

[0214] The second processing unit is used to generate a third public key and a third private key of the screen end; and sign the third public key and the device information of the screen end based on the second shared key to obtain a first signature, wherein the second shared key includes the first shared key or preset information;

[0215] The second communication unit is used to send the login request to the network camera, wherein the login request carries the first signature, the device information of the screen end, and the third public key, and the third public key is used for the network camera to generate a third shared key; receive a response message to the login request sent by the network camera, wherein the response message to the login request is used to notify the screen end that the login to the network camera is successful.

[0216] The second processing unit is used to generate a third shared key based on the fourth public key and the third private key carried in the response message of the login request; and verify the second signature carried in the response message of the login request based on the third shared key and the fourth public key, wherein the verification of the second signature is used to determine the integrity of the fourth public key.

[0217] like Fig.11 As shown, the screen end further includes: a display unit 1101, which is used to display device information of the screen end on the screen end when the screen end is in an unbound state, wherein the device information of the screen end is used by the network camera to determine the configuration information of the first hotspot;

[0218] The second communication unit is used to connect to the network camera based on the configuration information of the first hotspot.

[0219] The second communication unit is used to send the version of the screen end to one or more network cameras; receive the upgrade instruction sent by the one or more network cameras; send a generation upgrade request to the network camera corresponding to the target upgrade version; obtain the upgrade file corresponding to the target upgrade version of the screen end from the network camera corresponding to the target upgrade version;

[0220] The second processing unit is used to determine the target upgrade version of the screen end based on the upgrade version of the screen end included in the upgrade instructions sent by the one or more network cameras, and determine the target upgrade policy corresponding to the target upgrade version, when determining to upgrade the screen end based on the upgrade version of the screen end included in the upgrade instructions sent by the one or more network cameras and the upgrade policy corresponding to the upgrade version of the screen end, wherein the target upgrade policy includes one of the following: forced upgrade and normal upgrade.

[0221] like Fig.12 As shown, the screen end further includes: a second storage unit 1201, which is used to store the upgrade file corresponding to the target upgrade version of the screen end in the third partition of the screen end;

[0222] The second processing unit is used to switch the boot partition mark of the screen end from the fourth partition to the third partition, and restart the screen end; when the screen end is successfully started based on the third partition, it is determined that the screen end is upgraded successfully.

[0223] The second processing unit is configured to switch the boot partition of the screen end from the third partition to the fourth partition when the screen end fails to be booted based on the third partition, and determine that the screen end upgrade fails.

[0224] The device of the embodiment of the present application can realize the corresponding functions of each device in the aforementioned communication method embodiment. The processes, functions, implementation methods and beneficial effects corresponding to each module (submodule, unit or component, etc.) in the network camera or screen end can be found in the corresponding description in the above method embodiment, which will not be repeated here. It should be noted that the functions described by each module (submodule, unit or component, etc.) in the network camera or screen end of the application embodiment can be implemented by different modules (submodule, unit or component, etc.), or by the same module (submodule, unit or component, etc.).

[0225] Fig.131 is a schematic structural diagram of a communication device 1300 according to an embodiment of the present application. The communication device 1300 includes a processor 1310, and the processor 1310 can call and run a computer program from a memory so that the communication device 1300 implements the method in the embodiment of the present application. In a possible implementation, the communication device 1300 may also include a memory 1320. Among them, the processor 1310 can call and run a computer program from the memory 1320 so that the communication device 1300 implements the method in the embodiment of the present application. Among them, the memory 1320 may be a separate device independent of the processor 1310, or it may be integrated in the processor 1310. In a possible implementation, the communication device 1300 may also include a transceiver 1330, and the processor 1310 may control the transceiver 1330 to communicate with other devices, specifically, it may send information or data to other devices, or receive information or data sent by other devices. Among them, the transceiver 1330 may include a transmitter and a receiver. The transceiver 1330 may further include an antenna, and the number of antennas may be one or more.

[0226] In one possible implementation, the communication device 1300 may be a network camera or a screen end of an embodiment of the present application, and the communication device 1300 may implement the corresponding processes implemented by the network camera or the screen end in each method of the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0227] Fig.14 1 is a schematic structural diagram of a chip 1400 according to an embodiment of the present application. The chip 1400 includes a processor 1410, and the processor 1410 can call and run a computer program from a memory to implement the method in the embodiment of the present application. In a possible implementation, the chip 1400 may also include a memory 1420. Among them, the processor 1410 can call and run a computer program from the memory 1420 to implement the method performed by the network camera or the screen end in the embodiment of the present application. Among them, the memory 1420 can be a separate device independent of the processor 1410, or it can be integrated in the processor 1410. In a possible implementation, the chip 1400 may also include an input interface 1430. Among them, the processor 1410 can control the input interface 1430 to communicate with other devices or chips, specifically, it can obtain information or data sent by other devices or chips. In a possible implementation, the chip 1400 may also include an output interface 1440. The processor 1410 may control the output interface 1440 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0228] In a possible implementation, the chip can be applied to the network camera or screen end in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the network camera or the screen end in each method of the embodiment of the present application, which will not be repeated here for the sake of brevity. It should be understood that the chip mentioned in the embodiment of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc. The above-mentioned processor can be a general-purpose processor, a digital signal processor (digital signa l processor, DSP), a field programmable gate array (field programmable gate array, FPG A), an application specific integrated circuit (application specific integrated circuit, ASIC) or other programmable logic devices, transistor logic devices, discrete hardware components, etc. Among them, the above-mentioned general-purpose processor can be a microprocessor or any conventional processor, etc. The above-mentioned memory can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM). It should be understood that the above-mentioned memory is an exemplary but not restrictive description. For example, the memory in the embodiment of the present application can also be a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DR RAM), etc. That is, the memory in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.

[0229] Fig.151 is a schematic block diagram of a communication system 1500 according to an embodiment of the present application. The communication system 1500 includes a network camera 1510 and a screen end 1520. The network camera 1510 can be used to implement the corresponding functions implemented by the network camera in the above method. The screen end 1520 can be used to implement the corresponding functions implemented by the screen end in the above method. For the sake of brevity, it will not be repeated here.

[0230] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0231] It should be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claim.

Claims

1. A communication method performed by a network camera, comprising: When the network camera is connected to the screen end as a first hotspot, a first shared key is obtained through negotiation with the screen end, wherein the configuration information of the first hotspot is generated based on the device information of the screen end; Receiving a registration request sent by the screen end; Determine configuration information of a second hotspot based on the first shared key and device information of the network camera; Sending a response message of the registration request to the screen end, wherein the response message of the registration request carries relevant information of the configuration information of the second hotspot; The network camera is connected to the screen end as a second hotspot, wherein the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot.

2. The method according to claim 1, wherein: After the network camera is connected to the screen end as a second hotspot, the method further includes: Receiving a registration update request sent by the screen end; A response message of the registration update request is sent to the screen end, wherein the response message of the registration update request is used to notify the screen end that the binding with the network camera is successful.

3. The method according to claim 1, wherein: The determining the configuration information of the second hotspot based on the first shared key and the device information of the network camera includes: Determine the name of the second hotspot based on the device information of the network camera; Determining a password for the second hotspot based on the first shared key; The name of the second hotspot and the password of the second hotspot are used as the configuration information of the second hotspot.

4. The method according to claim 1, wherein: The network camera negotiates with the screen end to obtain a first shared key, including: Receiving a first public key sent by the screen end; Generate a second public key and a second private key of the network camera; Generate the first shared key based on the first public key and the second private key; The second public key is sent to the screen end, wherein the second public key is used by the screen end to generate the first shared key.

5. The method according to claim 1, wherein: The response message of sending the registration request to the screen end includes: Encrypting the relevant information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data; A response message of the registration request is sent to the screen end, wherein the response message of the registration request carries the first ciphertext data.

6. The method according to claim 2, wherein: After sending the response message of the update registration request to the screen end, the method further includes: Receiving a login request sent by the screen end, wherein the login request includes a first signature, device information of the screen end, and a third public key; When the first signature is verified and passed based on the second shared key, the device information of the screen end, and the third public key, a response message of the login request is sent to the screen end, wherein the second shared key includes the first shared key, or preset information, and the response message of the login request is used to notify the screen end that the login to the network camera is successful.

7. The method according to claim 6, wherein: The sending of the response message of the login request to the screen end includes: Generate a fourth public key and a fourth private key of the network camera; Generate a third shared key based on the fourth private key and the third public key; Signing the fourth public key of the network camera based on the third shared key to obtain a second signature; A response message of the login request is sent to the screen side, wherein the response message of the login request carries the second signature and the fourth public key, and the fourth public key is used by the screen side to generate a third shared key.

8. The method according to claim 1, further comprising: Obtaining device information of the screen end through the content displayed on the screen end; Determining configuration information of the first hotspot based on the device information of the screen end; The first hotspot is generated based on the configuration information of the first hotspot.

9. The method according to any one of claims 1 to 8, further comprising: In the case of determining to upgrade based on an upgrade notification sent by a server, acquiring an upgrade file corresponding to the upgrade notification from the server, and storing the upgrade file corresponding to the upgrade notification in a first partition of the network camera, wherein the upgrade notification includes an upgrade strategy, and the upgrade strategy includes one of the following: forced upgrade, normal upgrade; Switching the boot partition mark of the network camera from the second partition to the first partition, and restarting the network camera; When the network camera is successfully started based on the first partition, the network camera is upgraded successfully.

10. The method according to claim 9, further comprising: In the case that starting the network camera based on the first partition fails, the startup partition of the network camera is switched from the first partition to the second partition, and it is determined that the upgrade of the network camera fails.

11. The method according to claim 9, further comprising: Get the version of the screen end; In the case where the version of the screen end is lower than the version of the network camera, determining the upgrade version of the screen end and the upgrade strategy corresponding to the upgrade version of the screen end based on the version of the screen end and the version of the network camera; Sending an upgrade instruction to the screen end, wherein the upgrade instruction carries an upgrade version of the screen end and an upgrade strategy corresponding to the upgrade version of the screen end; When an upgrade request sent by the screen end is received, an upgrade file corresponding to the upgraded version of the screen end is sent to the screen end.

12. The method according to claim 11, wherein: The sending the upgrade file corresponding to the upgraded version of the screen end to the screen end includes one of the following: In the case where the network camera has an upgrade file corresponding to the upgraded version of the screen end, sending the upgrade file corresponding to the upgraded version of the screen end to the screen end; When the upgrade file corresponding to the upgraded version of the screen side does not exist in the network camera, the upgrade file corresponding to the upgraded version of the screen side is obtained from the server, and the upgrade file corresponding to the upgraded version of the screen side is sent to the screen side.

13. A communication method performed by a screen terminal, comprising: When the screen end is connected to a network camera as a first hotspot, negotiate with the network camera to obtain a first shared key; Sending a registration request to the network camera; Receiving a response message to the registration request sent by the network camera, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot; Based on the relevant information of the configuration information of the second hotspot, the network camera serving as the second hotspot is connected.

14. The method according to claim 13, wherein: The related information based on the configuration information of the second hotspot is connected to the network camera as the second hotspot, and further includes: Sending a registration update request to the network camera; Receiving a response message to the registration update request sent by the network camera, wherein the registration update request response message is used to notify the screen end that the binding with the network camera is successful; The binding state of the screen end is switched from an unbound state to a bound state.

15. The method according to claim 13, wherein: The step of negotiating with the network camera to obtain a first shared key includes: Generate a first public key and a first private key of the screen end; Sending the first public key to the network camera, wherein the first public key is used by the network camera to generate the first shared key; Receiving a second public key sent by the network camera; The first shared key is generated based on the first private key and the second public key.

16. The method according to claim 13, wherein: After receiving the response message of the registration request sent by the network camera, the method further includes: The first ciphertext data carried in the response message of the registration request is decrypted based on the first shared key to obtain relevant information of the configuration information of the second hotspot.

17. The method according to claim 14, wherein: After receiving the response message of the update registration request sent by the network camera, the method further includes: Generate a third public key and a third private key of the screen end; Signing the third public key and the device information of the screen end based on the second shared key to obtain a first signature, wherein the second shared key includes the first shared key or preset information; Sending a login request to the network camera, wherein the login request carries the first signature, the device information of the screen end, and the third public key, and the third public key is used by the network camera to generate a third shared key; A response message to the login request sent by the network camera is received, wherein the response message to the login request is used to notify the screen end that the login to the network camera is successful.

18. The method according to claim 17, wherein: After receiving the response message of the login request sent by the network camera, the method further includes: Generate a third shared key based on the fourth public key and the third private key carried in the response message of the login request; Verify the second signature carried in the response message of the login request based on the third shared key and the fourth public key.

19. The method according to claim 13, further comprising: When the screen end is in an unbound state, displaying device information of the screen end on the screen end, wherein the device information of the screen end is used by the network camera to determine configuration information of the first hotspot; Based on the configuration information of the first hotspot, connect to the network camera.

20. The method according to any one of claims 13 to 19, further comprising: Sending the screen version to one or more network cameras; Receiving an upgrade instruction sent by the one or more network cameras; In the case where the upgrade is determined based on the upgrade version of the screen end included in the upgrade instruction sent by the one or more network cameras and the upgrade policy corresponding to the upgrade version of the screen end, based on the upgrade version of the screen end included in the upgrade instruction of the one or more network cameras, a target upgrade version of the screen end is determined, and a target upgrade policy corresponding to the target upgrade version is determined, wherein the target upgrade policy includes one of the following: forced upgrade and normal upgrade; Sending a request for generating an upgrade to a network camera corresponding to the target upgrade version; The upgrade file corresponding to the target upgrade version on the screen end is obtained from the network camera corresponding to the target upgrade version.

21. The method according to claim 20, further comprising: storing the upgrade file corresponding to the target upgrade version of the screen end in the third partition of the screen end; Switching the boot partition mark of the screen end from the fourth partition to the third partition, and restarting the screen end; In the case where the screen end is successfully started based on the third partition, the screen end is upgraded successfully.

22. The method according to claim 21, further comprising: In the case that the screen end fails to be started based on the third partition, the startup partition of the screen end is switched from the third partition to the fourth partition, and it is determined that the screen end upgrade fails.

23. A network camera, comprising: A first communication unit is used to negotiate with the screen end to obtain a first shared key when the network camera is connected to the screen end as a first hotspot, wherein the configuration information of the first hotspot is generated based on the device information of the screen end; receive a registration request sent by the screen end; send a response message to the registration request to the screen end, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot; the network camera is connected to the screen end as a second hotspot, wherein the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot; The first processing unit is used to determine the configuration information of the second hotspot based on the first shared key and the device information of the network camera.

24. The network camera according to claim 23, wherein: The first communication unit is used to receive the update registration request sent by the screen end; and send a response message of the update registration request to the screen end, wherein the response message of the update registration request is used to notify the screen end that the binding with the network camera is successful.

25. The network camera according to claim 23, wherein: The first processing unit is used to determine the name of the second hotspot based on the device information of the network camera; determine the password of the second hotspot based on the first shared key; and use the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot.

26. The network camera according to claim 23, wherein: The first communication unit is configured to receive a first public key sent by the screen end; and send the second public key to the screen end, wherein the second public key is used by the screen end to generate the first shared key; The first processing unit is used to generate a second public key and a second private key of the network camera; and generate the first shared key based on the first public key and the second private key.

27. The network camera according to claim 23, wherein: The first processing unit is configured to encrypt the relevant information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data; The first communication unit is used to send a response message of the registration request to the screen end, wherein the response message of the registration request carries the first ciphertext data.

28. The network camera according to claim 24, wherein: The first communication unit is used to receive a login request sent by the screen end, wherein the login request includes a first signature, device information of the screen end, and a third public key; when the first signature is verified based on a second shared key, the device information of the screen end, and the third public key, a response message of the login request is sent to the screen end, wherein the second shared key includes the first shared key, or preset information, and the response message of the login request is used to notify the screen end that the login to the network camera is successful.

29. The network camera according to claim 28, wherein: The first processing unit is used to generate a fourth public key and a fourth private key of the network camera; and generate a third shared key based on the fourth private key and the third public key; Signing the fourth public key of the network camera based on the third shared key to obtain a second signature; The first communication unit is used to send a response message of the login request to the screen end, wherein the response message of the login request carries the second signature and the fourth public key, and the fourth public key is used by the screen end to generate a third shared key.

30. The network camera according to claim 23, further comprising: A collection unit, used to obtain device information of the screen end through the content displayed on the screen end; A first processing unit, configured to determine configuration information of a first hotspot based on device information of the screen end; Based on the configuration information of the first hotspot, a first hotspot of the network camera is generated.

31. The network camera according to any one of claims 23 to 30, further comprising: A first storage unit is used for, when an upgrade is determined based on an upgrade notification sent by a server, obtaining an upgrade file corresponding to the upgrade notification from the server through the first communication unit, and storing the upgrade file corresponding to the upgrade notification in a first partition of the network camera, wherein the upgrade notification includes an upgrade strategy, and the upgrade strategy includes one of the following: forced upgrade and normal upgrade; The first processing unit is used to switch the boot partition mark of the network camera from the second partition to the first partition, and restart the network camera; when the network camera is successfully started based on the first partition, it is determined that the network camera is upgraded successfully.

32. The network camera according to claim 31, wherein the first processing unit is used to switch the boot partition of the network camera from the first partition to the second partition when the network camera fails to be started based on the first partition, and determine that the network camera upgrade fails.

33. The network camera according to claim 31, wherein the first communication unit is used to obtain the version of the screen end; and send an upgrade instruction to the screen end, wherein: The upgrade instruction carries the upgrade version of the screen end and the upgrade policy corresponding to the upgrade version of the screen end; when receiving the upgrade request sent by the screen end, sending the upgrade file corresponding to the upgrade version of the screen end to the screen end; The first processing unit is used to determine the upgrade version of the screen end and the upgrade strategy corresponding to the upgrade version of the screen end based on the version of the screen end and the version of the network camera when the version of the screen end is lower than the version of the network camera.

34. The network camera according to claim 33, wherein: The first communication unit is configured to perform one of the following: In the case where the network camera has an upgrade file corresponding to the upgraded version of the screen end, sending the upgrade file corresponding to the upgraded version of the screen end to the screen end; When the upgrade file corresponding to the upgraded version of the screen side does not exist in the network camera, the upgrade file corresponding to the upgraded version of the screen side is obtained from the server, and the upgrade file corresponding to the upgraded version of the screen side is sent to the screen side.

35. A screen terminal, comprising: A second communication unit is used to negotiate with the network camera to obtain a first shared key when the screen end is connected to the network camera as the first hotspot; Sending a registration request to the network camera; receiving a response message to the registration request sent by the network camera, wherein the response message to the registration request carries relevant information of the configuration information of the second hotspot; Based on the relevant information of the configuration information of the second hotspot, the network camera serving as the second hotspot is connected.

36. The screen terminal according to claim 35, further comprising: A second processing unit, used for switching the binding state of the screen end from an unbound state to a bound state; The second communication unit is used to send a registration update request to the network camera; A response message to the registration update request sent by the network camera is received, wherein the response message to the registration update request is used to notify the screen end that the binding with the network camera is successful.

37. The screen terminal according to claim 35, wherein: The second processing unit is used to generate a first public key and a first private key of the screen end; based on the first private key and the second public key, a first shared key between the network camera and the screen end is generated; The second communication unit is used to send the first public key to the network camera, wherein the first public key is used by the network camera to generate the first shared key; and receive the second public key sent by the network camera.

38. The screen terminal according to claim 35, wherein: The second processing unit is used to decrypt the first ciphertext data carried in the response message of the registration request based on the first shared key to obtain relevant information of the configuration information of the second hotspot.

39. The screen terminal according to claim 36, wherein: The second processing unit is used to generate a third public key and a third private key of the screen end; and sign the third public key and the device information of the screen end based on the second shared key to obtain a first signature, wherein the second shared key includes the first shared key or preset information; The second communication unit is used to send the login request to the network camera, wherein the login request carries the first signature, the device information of the screen end, and the third public key, and the third public key is used for the network camera to generate a third shared key; receive a response message to the login request sent by the network camera, wherein the response message to the login request is used to notify the screen end that the login to the network camera is successful.

40. The screen terminal according to claim 39, wherein: A second processing unit, configured to generate a third shared key based on the fourth public key and the third private key carried in the response message of the login request; The second signature carried in the response message to the login request is verified based on the third shared key and the fourth public key, wherein the verification of the second signature is used to determine the integrity of the fourth public key.

41. The screen terminal according to claim 35, further comprising: A display unit, used for displaying device information of the screen end on the screen end when the screen end is in an unbound state, wherein the device information of the screen end is used by the network camera to determine configuration information of the first hotspot; The second communication unit is used to connect to the network camera based on the configuration information of the first hotspot.

42. According to any one of claims 35-41, the second communication unit is used to send the version of the screen end to one or more network cameras; receive the upgrade instruction sent by the one or more network cameras; Sending a request for generating an upgrade to a network camera corresponding to the target upgrade version; Acquire the upgrade file corresponding to the target upgrade version on the screen end from the network camera corresponding to the target upgrade version; The second processing unit is used to determine the target upgrade version of the screen end based on the upgrade version of the screen end included in the upgrade instructions sent by the one or more network cameras, and determine the target upgrade policy corresponding to the target upgrade version, when determining to upgrade the screen end based on the upgrade version of the screen end included in the upgrade instructions sent by the one or more network cameras and the upgrade policy corresponding to the upgrade version of the screen end, wherein the target upgrade policy includes one of the following: forced upgrade and normal upgrade.

43. The screen terminal according to claim 42, further comprising: A second storage unit, used for storing the upgrade file corresponding to the target upgrade version of the screen end in the third partition of the screen end; The second processing unit is used to switch the boot partition mark of the screen end from the fourth partition to the third partition, and restart the screen end; In the case where the screen end is successfully started based on the third partition, it is determined that the screen end is successfully upgraded.

44. The screen end according to claim 43, the second processing unit is used to switch the boot partition of the screen end from the third partition to the fourth partition when the screen end fails to be started based on the third partition, and determine that the screen end upgrade fails.

45. A network camera, comprising: A transceiver, a processor and a memory, the memory being used to store a computer program, the transceiver being used to communicate with other devices, and the processor being used to call and run the computer program stored in the memory so that the first device executes the method as claimed in any one of claims 1 to 12.

46. ​​A screen terminal, comprising: A transceiver, a processor and a memory, the memory being used to store a computer program, the transceiver being used to communicate with other devices, and the processor being used to call and run the computer program stored in the memory so that the second device executes the method as described in any one of claims 13 to 22.

47. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 12 or claims 13 to 22.

48. A computer-readable storage medium for storing a computer program, which, when executed by a device, causes the device to perform the method according to any one of claims 1 to 12 or claims 13 to 22.

49. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 12 or claims 13 to 22.

50. A computer program causing a computer to perform the method of any one of claims 1 to 12 or claims 13 to 22.

Citation Information

Cited By

  • Communication method and device

    WO2026036968A1