Communication method and device
By negotiating and sharing a key between the network camera and the screen, configuration information for the second hotspot is generated and encrypted for transmission, thus solving the security problem of network camera and screen networking and enabling secure transmission of private images or videos.
Patent Information
- Application Number
- PCT/CN2025/105381
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-13
- Filing Date
- 2025-06-30
- Publication Date
- 2026-02-19
AI Technical Summary
When networking network cameras with electronic devices that have display functions, how can we ensure the security of communication, especially the security of transmitting private images or videos?
The configuration information of the second hotspot is generated by negotiating a first shared key between the network camera and the screen, and the configuration information of the second hotspot is transmitted in encrypted form using the first shared key, ensuring that only the network camera and the screen know about it.
It enhances the security of network cameras and screen connections, ensuring the secure transmission of private images or videos.
Smart Images

Figure CN2025105381_19022026_PF_FP_ABST
Abstract
Description
Communication method and device TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of communication, and in particular to a communication method and device. BACKGROUND
[0002] Wireless network technology is a wireless network transmission technology that is currently widely used. Network cameras, smart phones, tablet computers, and the like use wireless network technology for networking. In particular, in a scenario in which a network camera is networked with an electronic device having a display function, the electronic device having the display function can display images or videos collected by the network camera in real time. The images or videos often have privacy, and therefore it is particularly necessary to ensure the security of communication between the network camera and the electronic device having the display function. SUMMARY
[0003] Embodiments of the present application provide a communication method, device, computer-readable storage medium, computer program product, and computer program.
[0004] Embodiments of the present application provide a communication method, comprising:
[0005] In a case where the network camera is connected to a screen terminal as a first hotspot, a first shared key is negotiated with the screen terminal, wherein configuration information of the first hotspot is generated based on device information of the screen terminal;
[0006] A registration request sent by the screen terminal is received;
[0007] Based on the first shared key and device information of the network camera, configuration information of a second hotspot is determined;
[0008] A response message of the registration request is sent to the screen terminal, wherein the response message of the registration request carries related information of the configuration information of the second hotspot;
[0009] The network camera is connected to the screen terminal as a second hotspot, wherein the configuration information of the second hotspot is updated based on the configuration information of the first hotspot.
[0010] Embodiments of the present application provide a communication method, comprising:
[0011] In a case where the screen terminal is connected to a network camera as a first hotspot, a first shared key is negotiated with the network camera;
[0012] A registration request is sent to the network camera;
[0013] receive a response message of the registration request, wherein the response message of the registration request carries related information of the configuration information of the second hotspot;
[0014] connect with the network camera as the second hotspot based on the related information of the configuration information of the second hotspot.
[0015] The embodiment of the present application provides a network camera, comprising:
[0016] a first communication unit, configured to: obtain a first shared key by negotiation with a screen terminal in a case where the network camera is connected with the screen terminal as a first hotspot, wherein the configuration information of the first hotspot is generated based on device information of the screen terminal; receive a registration request sent by the screen terminal; send a response message of the registration request to the screen terminal, wherein the response message of the registration request carries related information of the configuration information of the second hotspot; and connect with the screen terminal as a second hotspot, wherein the configuration information of the second hotspot is obtained by updating the configuration information of the first hotspot based on the configuration information of the second hotspot.
[0017] a first processing unit, configured to determine the configuration information of the second hotspot based on the first shared key, device information of the network camera.
[0018] The embodiment of the present application provides a screen terminal, comprising:
[0019] a second communication unit, configured to: obtain a first shared key by negotiation with a network camera as a first hotspot in a case where the screen terminal is connected with the network camera as the first hotspot; send a registration request to the network camera; receive a response message of the registration request sent by the network camera, wherein the response message of the registration request carries related information of the configuration information of the second hotspot; and connect with the network camera as the second hotspot based on the related 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 for storing a computer program, the transceiver is used for communicating with other devices, and the processor is used for calling and running 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 for storing a computer program, the transceiver is used for communicating with other devices, and the processor is used for calling and running the computer program stored in the memory, so that the second device executes the above method.
[0022] The chip is used to implement the method.
[0023] Specifically, the chip comprises a processor configured to call and run a computer program from a memory, so that a device installed with the chip performs the method.
[0024] The computer readable storage medium is used to store a computer program, which, when executed by a device, causes the device to perform the method.
[0025] The computer program product comprises computer program instructions, which cause a computer to perform the method.
[0026] The computer program, when executed on a computer, causes the computer to perform the method.
[0027] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
[0028] By adopting the above scheme, 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 related 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 based on 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 networking of the network camera and the screen end is improved. BRIEF DESCRIPTION OF DRAWINGS
[0029] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application.
[0030] FIG. 2 is a schematic flowchart of a communication method according to an embodiment of the present application.
[0031] FIG. 3 is a schematic flowchart of a communication method according to another embodiment of the present application.
[0032] FIG. 4 is a schematic flowchart of a communication method according to an embodiment of the present application.
[0033] FIG. 5 is another schematic flowchart of a communication method according to an embodiment of the present application.
[0034] FIG. 6 is a schematic block diagram of a network camera according to an embodiment of the present application.
[0035] FIG. 7 is a schematic block diagram of a network camera according to another embodiment of the present application.
[0036] Fig. 8 is a schematic block diagram of a network camera according to yet another embodiment of the present application;
[0037] Fig. 9 is a schematic block diagram of a screen end according to an embodiment of the present application;
[0038] Fig. 10 is a schematic block diagram of a screen end according to another embodiment of the present application;
[0039] Fig. 11 is a schematic block diagram of a screen end according to yet another embodiment of the present application;
[0040] Fig. 12 is a schematic block diagram of a screen end according to still another embodiment of the present application;
[0041] Fig. 13 is a schematic block diagram of a communication device according to an embodiment of the present application;
[0042] Fig. 14 is a schematic block diagram of a chip according to an embodiment of the present application;
[0043] Fig. 15 is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions of the embodiments of the present application can be applied to various communication systems, for example: 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, etc.
[0045] The embodiments of the present application describe various embodiments in combination with a network camera (IPC, IP Camera) and a screen end. The screen end can be mobile or fixed, and can also be referred to as a care screen, a display screen, etc. The screen end can be an electronic device with a display function, for example: a screen end in a mother-baby care scene, a notebook computer, a tablet computer or other electronic devices with a display screen, etc. In the embodiments of the present application, the screen end can be a remote medical screen end, or a wireless screen end of a smart home, etc.
[0046] In the embodiments of the present application, the network camera can be a device for communicating with the screen end. The network camera can be an access point in WLAN, an access point in WiFi, etc. This is an example and is not limited.
[0047] For the convenience of understanding the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described as follows, which can be combined with the technical solutions of the embodiments of the present application in any manner as optional solutions, and all of them belong to the protection scope of the embodiments of the present application.
[0048] Fig. 1 exemplarily shows a communication system 100. The communication system comprises one or more network cameras 110 and a screen end 120. In a possible implementation, the network camera 110 can be an AP (Access Point mode), and the screen end 120 comprises a plurality of STAs (Station), wherein each STA can be connected to one network camera 110.
[0049] Fig. 2 is a schematic flow chart of a communication method performed by a network camera according to an embodiment of the present application. The method comprises at least part of the following contents.
[0050] S210, in a case where the network camera is connected to a screen end as a first hotspot, negotiating a first shared key with the screen end, wherein configuration information of the first hotspot is generated based on device information of the screen end;
[0051] S220, receiving a registration request sent by the screen end;
[0052] S230, determining configuration information of a second hotspot based on the first shared key, device information of the network camera;
[0053] S240, sending a response message of the registration request to the screen end, wherein the response message of the registration request carries related information of the configuration information of the second hotspot;
[0054] S250, connecting the network camera to the screen end as a second hotspot, wherein the second hotspot is updated based on the configuration information of the second hotspot to the configuration information of the first hotspot.
[0055] Fig. 3 is a schematic flow chart of a communication method performed by a screen end according to an embodiment of the present application. The method comprises at least part of the following contents.
[0056] S310, in a case where the screen end is connected to a network camera as a first hotspot, negotiating a first shared key with the network camera;
[0057] S320, sending a registration request to the network camera;
[0058] S330, receiving a response message of the registration request sent by the network camera, wherein the response message of the registration request carries related information of the configuration information of the second hotspot;
[0059] S340, connecting with the network camera as the second hotspot based on the related information of the configuration information of the second hotspot.
[0060] By adopting the above scheme, 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 related 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 based on the first shared key, and the first shared key is only known by the screen end and the network camera, so that the security of networking of the network camera and the screen end is improved.
[0061] In some possible implementation manners, on the network camera side, the method further includes: obtaining device information of the screen end through content displayed by the screen end; determining configuration information of a 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.
[0062] The obtaining of the device information of the screen end through the content displayed by the screen end can include: the network camera obtaining the device information of the screen end by scanning a two-dimensional code displayed on a display screen of the screen end, wherein the device information of the screen end can include a MAC (Media Access Control Address, physical address) of the screen end and first preset first hotspot template information.
[0063] The determining the configuration information of the first hotspot based on the device information of the screen terminal can include: generating a name of the first hotspot based on at least part of characters in the MAC of the screen terminal, the first preset first hotspot template information, and predefined information in the network camera; and determining the configuration information of the first hotspot of the network camera based on the name of the first hotspot, a preset first hotspot password in the network camera, and an 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 can 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 terminal; the preset first hotspot password is empty, and the attribute of the first hotspot is in the hidden state. This is only an example, and the preset first hotspot password can be set according to actual conditions, for example, the preset first hotspot password can be any other character or string, the attribute of the first hotspot can be in the hidden state or the broadcast state, and the predefined information in the network camera can be set according to actual conditions, which is not limited here.
[0064] In some possible implementation manners, on the network camera side, before the network camera is connected with the screen terminal as the first hotspot, the method further includes: determining the configuration information of the first hotspot based on device information of the network camera, wherein the device information of the network camera can include a MAC (Media Access Control Address, physical address) of the network camera and second preset first hotspot template information.
[0065] The determining the configuration information of the first hotspot based on the device information of the network camera includes: generating a name of the first hotspot based on at least part of characters in the MAC of the network camera, the second preset first hotspot template information in the network camera, and predefined information in the network camera; and determining the configuration information of the first hotspot of the network camera based on the name of the first hotspot, a preset first hotspot password in the network camera, and an 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. The generation manner of the name of the first hotspot is the same as the above manner, which is not described herein again.
[0066] In some possible implementation manners, on the screen terminal side, the method further includes: in a case where the screen terminal is in an unbound state, displaying device information of the screen terminal on the screen terminal, wherein the device information of the screen terminal is used by the network camera to determine the configuration information of the first hotspot; and connecting with the network camera based on the configuration information of the first hotspot.
[0067] The manner of determining the screen end binding state can be: in a case where a factory mode (factory mode) in a factory (Factory) partition of the screen end is a first value, determining that the state of the screen end is an unbound state; in a case where the factory mode in the factory (Factory) partition of the screen end is a second value, determining that the state of the screen end is a bound state, wherein the factory partition can be a partition for storing a factory program or firmware of the screen end. For example: in a case where factory_mode in the factory partition is 0, the state of the screen end is an unbound state; in a case where factory_mode in the factory partition is 1, the state of the screen end is a bound state, which is only an example for illustration, and the specific setting manner is set according to actual conditions.
[0068] The screen end can display device information of the screen end, which can include: generating a two-dimensional code based on a MAC of the screen end and first preset first hotspot template information in the screen end; and displaying the two-dimensional code on a display screen of the screen end.
[0069] The screen end can connect with the network camera based on the configuration information of the first hotspot, which can 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.
[0070] Specifically, the screen end can generate the configuration information of the first hotspot based on device information of the screen end, which can include: obtaining a name of the first hotspot based on at least part of characters in the MAC of the screen end, first preset first hotspot template information in the screen end, and predefined information in the screen end; and generating the configuration information of the first hotspot based on the name of the first hotspot and a preset first hotspot password in the screen end, wherein the predefined information in the screen end is the same as predefined information in the network camera, and the preset first hotspot password in the screen end is the same as a preset first hotspot password in the network camera.
[0071] Optionally, in a case where the screen end is in an unbound state, the screen end can detect first hotspot signals of one or more network cameras; in the detection of the first hotspot signals of the one or more network cameras, the screen end can select a first hotspot signal with the strongest signal, and connect with the first hotspot with the strongest signal based on a preset first hotspot password in the screen end.
[0072] Optionally, in the case that the screen end is in the binding state, the screen end detects a first hot spot signal of the one or more network cameras, in the screen end detecting the first hot spot signal of the one or more network cameras, a first hot spot of any one of the network cameras is selected, and the first hot spot of any one of the network cameras is connected based on a preset first hot spot password in the screen end.
[0073] By using the above scheme, the network camera can generate the configuration information of the first hot spot of the network camera by acquiring the device information of the screen end, and the screen end can connect the network camera based on the configuration information of the first hot spot. In this way, the network camera and the screen end can generate the same configuration information of the first hot spot, and then automatically connect through the same configuration information of the first hot spot, which can improve the efficiency of network camera and screen end networking.
[0074] In some possible implementation manners, the network camera side negotiates with the screen end to obtain a first shared key, including: receiving a first public key sent by the screen end; 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 end, where the second public key is used by the screen end to generate the first shared key.
[0075] The generating of the second public key and the second private key of the network camera can be generating the second public key and the second private key of the network camera based on a key agreement algorithm, where the key agreement algorithm includes one of the following: an ECDH (Elliptic Curve Diffie-Hellman key Exchange) algorithm and a DH (Diffie-Hellman) algorithm. Other algorithms can also be used as long as they can achieve the algorithm of the present embodiment.
[0076] The generating of the first shared key based on the first public key and the second private key can include: generating the first shared key based on the first public key and the second private key by using a key agreement algorithm.
[0077] In some possible implementation manners, the screen end side negotiates with the network camera to obtain a first shared key, including: generating a first public key and a first private key of the screen end; sending the first public key to the network camera, where 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.
[0078] The generating the first public key and the first private key of the screen terminal can include generating the first public key and the first private key of the screen terminal based on a key agreement algorithm.
[0079] The generating the first shared key based on the first private key and the second public key can include generating the first shared key based on the first private key and the second public key by using a key agreement algorithm.
[0080] By using the above scheme, the network camera and the screen terminal negotiate the first shared key. In this way, the network camera and the screen terminal have the same first shared key, and the configuration information of the second hotspot generated by the first shared key is known only to the screen terminal and the network camera, so that the security of the network camera and the screen terminal is improved.
[0081] In some possible implementation manners, the network camera side, the determining the configuration information of the second hotspot based on the first shared key and the device information of the network camera can include: 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 taking the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot.
[0082] The determining the name of the second hotspot based on the device information of the network camera can include generating the name of the second hotspot based on at least part of characters in the MAC of the network camera, second preset first hotspot template information in the network camera, and predefined information in the network camera, where the way of generating the name of the second hotspot is the same as the way of generating the name of the first hotspot, which will not be described herein again.
[0083] The determining the password of the second hotspot based on the first shared key can include taking part of characters in the first shared key as the password of the second hotspot. For example, the first 8 characters in the first shared key can be taken as the password of the second hotspot, which is only an example, and the specific way of taking part of characters in the first shared key as the password of the second hotspot can be set according to actual conditions.
[0084] The taking the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot can include taking the name of the second hotspot, the password of the second hotspot, and the attribute of the second hotspot as the configuration information of the second hotspot, where the attribute of the second hotspot can be a hidden state or a broadcast state.
[0085] By adopting the above scheme, 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 known only to the screen terminal and the network camera, so that the security of network camera and screen terminal networking is improved.
[0086] In some possible implementation manners, on the screen terminal side, the screen terminal sends a registration request to the network camera, including: encrypting device information of the screen terminal by an encryption algorithm with the first shared key as an encryption key to obtain second ciphertext data; and sending the registration request to the network camera, where the registration request carries the second ciphertext data.
[0087] The encryption algorithm includes one of the following: an AES (Advanced Encryption Standard) algorithm and a chacha20 (ChaCha20-Poly1305) algorithm, and the device information further includes at least one of the following: an SN (Serial Number) and an ID (Identity document).
[0088] In some possible implementation manners, on the network camera side, after receiving the registration request sent by the screen terminal, the network camera further includes: sending a response message to the screen terminal in a case where the device information of the screen terminal is obtained by decrypting the second ciphertext data carried in the registration request based on the first shared key.
[0089] The device information of the screen terminal is obtained by decrypting the second ciphertext data carried in the registration request based on the first shared key, including: decrypting the device information of the screen terminal by a decryption algorithm with the first shared key as a decryption key, where the decryption algorithm is the same as the encryption algorithm.
[0090] In an embodiment, in a case where the device information of the screen terminal is not obtained by decrypting the registration request based on the first shared key, it is determined that the screen terminal fails to be bound to the network camera, and the above process is re-executed.
[0091] The decrypting the registration request based on the first shared key to obtain the device information of the screen end can be: in a case where the first shared key is taken as a decryption key, the registration request is decrypted by a decryption algorithm, and the obtained decryption information is random code, it is determined that the device information of the screen end is not obtained.
[0092] In some possible implementation manners, on the network camera side, the response message of the registration request sent to the screen end comprises: encrypting the related information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data; and sending the response message of the registration request to the screen end, wherein the response message of the registration request carries the first ciphertext data.
[0093] The related information of the configuration information of the second hotspot comprises one of the following: the name of the second hotspot, the password of the second hotspot; and the number of bits of characters in the first shared key corresponding to the name of the second hotspot and the password of the second hotspot.
[0094] Optionally, the encrypting the related information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data comprises: taking 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 to obtain the first ciphertext data.
[0095] Optionally, the encrypting the related information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data comprises: taking the first shared key as an encryption key, and encrypting the number of bits of characters in the first shared key corresponding to the name of the second hotspot and the password of the second hotspot by an encryption algorithm to obtain the first ciphertext data.
[0096] In some possible implementation manners, on the screen end side, after the response message of the registration request sent by the network camera is received, the following step is further included: decrypting the first ciphertext data carried in the response message of the registration request based on the first shared key to obtain the related information of the configuration information of the second hotspot.
[0097] The decrypting the first ciphertext data carried in the response message of the registration request based on the first shared key to obtain the related information of the configuration information of the second hotspot comprises: taking the first shared key as a decryption key, and decrypting the first ciphertext data carried in the response message of the registration request by a decryption algorithm to obtain the related information of the configuration information of the second hotspot, wherein the decryption algorithm is the same as the encryption algorithm.
[0098] Optionally, the connecting to the network camera as the second hotspot based on the related information of the configuration information of the second hotspot comprises: connecting to the network camera as the second hotspot based on the name of the second hotspot and the password of the second hotspot.
[0099] Optionally, the connecting to the network camera as the second hotspot based on the related information of the configuration information of the second hotspot comprises: determining the password of the second hotspot in the first shared key based on the number of bits of the characters in the first shared key corresponding to the password of the second hotspot; and connecting to the network camera as the second hotspot based on the name of the second hotspot and the password of the second hotspot.
[0100] By using the above scheme, the network camera transmits the related information of the configuration information of the second hotspot in a manner of encryption by the first shared key, and the screen end obtains the related information of the configuration information of the second hotspot by decryption by the first shared key, so that the transmission of the related information of the configuration information of the second hotspot is more secure, and the security of the networking of the network camera and the screen end is improved.
[0101] In some possible implementation manners, after the connecting to the network camera as the second hotspot based on the related information of the configuration information of the second hotspot, the screen end further comprises: sending an update registration request to the network camera; receiving a response message of the update registration request sent by the network camera, 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; and switching the binding state of the screen end from an unbound state to a bound state.
[0102] The switching of the binding state of the screen end from the unbound state to the bound state can comprise: modifying a first value of a factory mode in a factory partition of the screen end to a second value.
[0103] In the embodiment, the sending of the update registration request to the network camera by the screen end comprises: encrypting device information of the screen end by an encryption algorithm by taking the first shared key as an encryption key to obtain third ciphertext data; and sending an update registration request to the network camera, wherein the registration request carries the third ciphertext data. The manner of obtaining the third ciphertext data is the same as the manner of obtaining the second ciphertext data, which will not be described herein.
[0104] In some possible implementation manners, after the network camera is connected to the screen end as the second hotspot, the network camera side further includes: receiving an update registration request sent by the screen end; and sending a response message of the update registration request to the screen end, where the response message of the update registration request is used to notify the screen end that the binding with the network camera is successful.
[0105] The update registration information includes device information of the screen end, and is used for the network camera to register and record the device information of the screen end.
[0106] In the embodiment, the sending of the response message of the update registration request to the screen end includes: in a case where device information of the screen end is obtained by decrypting third ciphertext carried in the update registration request sent by the screen end based on the first shared key, the sending of the response message of the update registration request to the screen end. The decryption manner of the third ciphertext is the same as the decryption manner of the second ciphertext, which is not described herein again.
[0107] In a case where the device information of the screen end is not obtained by decrypting the third ciphertext carried in the update registration request sent by the screen end based on the first shared key, it is determined that the binding of the screen end with the network camera fails, and the above process is re-executed.
[0108] The case where the device information of the screen end is not obtained by decrypting the third ciphertext carried in the update registration request sent by the screen end based on the first shared key can be a case where, in a case where the decryption information obtained by decrypting the third ciphertext carried in the update registration request sent by the screen end based on the first shared key is garbled code, it is determined that the device information of the screen end is not obtained.
[0109] By using the above scheme, after the network camera is connected to the screen end as the second hotspot, the screen end determines that the binding of the screen end with the network camera is successful by sending an update registration request and receiving a response message of the update registration request sent by the network camera, so as to modify the binding state of the screen end. In this way, the binding state of the screen end and the network camera, that is, the networking state, can be determined more accurately.
[0110] The above embodiment is exemplarily described in combination with FIG. 4. As shown in FIG. 4, in a case where the IPC is an AP (Access Point mode) and the screen end is in an unbound state, the following includes:
[0111] S401, the IPC obtains device information of the screen end by scanning a two-dimensional code displayed on a screen of the screen end.
[0112] S402, the IPC determines configuration information of the first hotspot of the IPC based on the device information of the screen end; and generates the first hotspot based on the configuration information of the first hotspot, wherein the manner of generating the first hotspot is the same as that of the above embodiment, which will not be repeated here.
[0113] Optionally, the IPC determines configuration information of the first hotspot of the IPC based on the device information of the IPC; and generates the first hotspot based on the configuration information of the first hotspot, wherein the manner of generating the first hotspot of the IPC is the same as that of the above embodiment, which will not be repeated here.
[0114] After the IPC generates the first hotspot, the IPC listens to a TCP (Transmission Control Protocol) connection initiated by the screen end through a port 8088.
[0115] S403, the screen end connects with the IPC as the first hotspot, and the connection manner is the same as that of the above embodiment, which will not be repeated here.
[0116] S404, in a case where the screen end successfully connects with the IPC as the first hotspot within a first preset time, the IPC sends a message of successful first hotspot to the screen end; in a case where the screen end fails to successfully connect with the IPC as the first hotspot within the first preset time, the method returns to step S401 until the screen end successfully connects with the IPC as the first hotspot within the first preset time, wherein the first time can be a time corresponding to a first preset time length after the IPC generates the first hotspot.
[0117] S405, the screen end establishes a TCP connection with the port 8088 of the IPC.
[0118] S406, the screen end generates a first public key and a first private key of the screen end, and the generation manner is the same as that of the above embodiment, which will not be repeated here.
[0119] S407, the screen end sends the first public key to the IPC.
[0120] S408, the IPC generates a second public key and a second private key of the IPC, and the generation manner is the same as that of the above embodiment, which will not be repeated here.
[0121] S409, the IPC sends the second public key of the IPC to the screen end.
[0122] S410, the IPC generates a first shared key based on the second private key and the first public key; and the screen end generates the first shared key based on the first private key and the second public key.
[0123] S411, the screen end sends a registration request to the IPC.
[0124] 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.
[0125] S413, the IPC disconnects the TCP connection with the screen end.
[0126] S414, the IPC updates the configuration information of the first hotspot based on the configuration information of the second hotspot to obtain the second hotspot.
[0127] After obtaining the second hotspot, the IPC listens to the TCP connection initiated by the screen end through the 8088 port.
[0128] S415, the screen end connects with the IPC as the second hotspot.
[0129] S416, in the case that the screen end successfully connects with the IPC as the second hotspot within a second preset time, the IPC sends a message of the success of the second hotspot to the screen end, and in the case that the screen end fails to connect with the IPC as the second hotspot within the second preset time, returns to step S401 until the screen end successfully connects with the IPC as the second hotspot within the second preset time, wherein the second time can be a time corresponding to a second preset duration after obtaining the second hotspot.
[0130] S417, the screen end establishes a TCP connection with the 8088 port of the IPC.
[0131] S418, the screen end sends an update registration request to the IPC.
[0132] S419, the IPC sends a response message of the update registration request to the screen end.
[0133] S420, the IPC and the screen end locally save the password of the second hotspot in the configuration information of the second hotspot.
[0134] In some possible implementation manners, after receiving the response message of the update registration request sent by the network camera, the screen terminal side further includes: generating a third public key and a third private key of the screen terminal; signing the third public key and device information of the screen terminal based on a 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 terminal and the third public key, and the third public key is used to generate a third shared key by the network camera; and 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 terminal that the login to the network camera is successful.
[0135] The third public key and the third private key of the screen terminal are generated in the same manner as the first public key and the first private key of the screen terminal, which will not be described herein again.
[0136] The third shared key is used to encrypt data transmission between the screen terminal device and the network camera.
[0137] The signing the third public key and the device information of the screen terminal based on the second shared key to obtain the first signature includes: signing the third public key and the device information of the screen terminal by using a signature algorithm with the second signature information as a signature password, to obtain the first signature, wherein the signature algorithm includes an hmac_sha256 (Hash-based Message Authentication Code using SHA-256, using SHA-256 based on hash message authentication code).
[0138] In some possible implementation manners, after sending the response message of the update registration request to the screen terminal, the network camera side further includes: receiving a login request sent by the screen terminal, wherein the login request includes a first signature, device information of the screen terminal and a third public key; and sending a response message of the login request to the screen terminal in a case where the first signature is verified successfully based on a second shared key, the device information of the screen terminal and the third public key, 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 terminal that the login to the network camera is successful.
[0139] The verifying the first signature based on the second shared key, the device information of the screen terminal, and the third public key can include: verifying the first signature by a verifying algorithm with the second shared key as a verifying password to obtain first verifying information; determining that the verifying is passed in a case where the first verifying information is same as the device information of the screen terminal and the third public key; and determining that the verifying is failed in a case where the first verifying information is different from the device information of the screen terminal and the third public key.
[0140] In the embodiment, in a case where the first signature is verified to be passed based on the second shared key, the device information of the screen terminal, and the third public key, it is illustrated that the screen terminal is authenticated to be passed by the network camera, so that the screen terminal can be identified by the network camera, and access or use of related services and functions is allowed, otherwise in a case where the verifying is failed, the screen terminal is denied to access or use related services and functions.
[0141] By adopting the above scheme, the network camera can determine the legitimacy of the screen terminal by verifying the login information sent by the screen terminal, so that the screen terminal is allowed to access or use related services and functions in a case where the verifying is passed, and the security of communication between the network camera and the screen terminal is improved.
[0142] In some possible implementation manners, on the network camera side, the response message of the login request sent to the screen terminal 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 the response message of the login request to the screen terminal, where 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 terminal to generate the third shared key.
[0143] The fourth public key and the fourth private key of the network camera are generated in the same way as the second public key and the second private key of the network camera, which will not be described herein again.
[0144] The third shared key is generated based on the fourth private key and the third public key in the same way as the first shared key is generated based on the second private key and the first public key, which will not be described herein again.
[0145] The fourth public key of the network camera is signed based on the third shared key to obtain the second signature, which can be signing the fourth public key by a signing algorithm with the third shared key as a signing password to obtain the second signature.
[0146] In some possible implementation manners, after receiving the response message of the login request sent by the network camera, the screen-side further 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; and verifying the second signature based on the third shared key and the fourth public key carried in the response message of the login request, where the verification of the second signature is used to determine the integrity of the fourth public key.
[0147] The third shared key is generated based on the fourth public key carried in the response message of the login request and the third private key, which is the same as the way of generating the first shared key based on the second public key and the first private key, and will not be described herein again.
[0148] The verification of the second signature based on the third shared key and the fourth public key includes: verifying the second signature by using a verification algorithm with the third shared key as a verification password to obtain second verification information, and the verification is passed when the second verification information is the same as the fourth public key; and the verification is failed when the second verification information is not the same as the fourth public key.
[0149] In the case that the verification is passed, the third shared key is used to encrypt data transmission between the screen-side device and the network camera. In the case that the verification is failed, the above steps are re-executed.
[0150] By using the above scheme, the screen-side can determine the legality of the fourth public key sent by the network camera by verifying the response message of the login information sent by the network camera, so that in the case that the verification is passed, the third shared key is used to encrypt data transmission between the screen-side device and the network camera, and the security of data transmission can be improved.
[0151] The above implementation manners are exemplarily described in combination with FIG. 5, as shown in FIG. 5, which includes:
[0152] S501, the screen-side generates a third public key and a third private key of the screen-side;
[0153] S502, the screen-side signs the third public key of the screen-side and device information of the screen-side based on a second shared key to obtain a first signature, and sends a login request to the IPC, where the login request carries the first signature, the device information of the screen-side, the third public key, and the second shared key includes a first shared key or preset information.
[0154] S503, the IPC generates a fourth public key and a fourth private key based on the second shared key, the device information of the screen end, and the third public key, and verifies the first signature based on the third public key and the fourth private key to generate a third shared key. If the verification of the first signature fails, the method proceeds to step 401 in the above embodiment.
[0155] S504, the IPC signs the fourth public key of the IPC based on the third shared key to obtain a second signature, and sends a response message of the login request to the screen end, where the response message of the login request carries the second signature and the fourth public key.
[0156] S505, the screen end 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.
[0157] S506, the IPC and the screen end perform data encryption based on the third shared key to establish a data encryption channel, and encrypt data transmission between the screen end device and the network camera based on the third shared key.
[0158] In some possible embodiments, on the network camera side, the method further includes: in a case where it is determined to upgrade 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, where the upgrade notification includes an upgrade policy, and the upgrade policy includes one of the following: forced upgrade and normal upgrade; switching a startup partition mark of the network camera from a 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.
[0159] The upgrade notification can be sent by a server connected to the network camera. The server can also be referred to as a cloud. The network camera can be connected to the server as a STA.
[0160] The network camera as a STA can also be connected to a terminal, or the server can be connected to the terminal, and the specific connection manner is not limited here. The terminal can be a smart terminal, such as a smart phone, a tablet computer, or the like. The terminal is different from the screen end.
[0161] The determining whether to upgrade the network camera based on the upgrade notification comprises one of the following: in a case that the upgrade policy carried in the upgrade notification is a forced upgrade, it is determined to upgrade the network camera; in a case that the upgrade policy carried in the upgrade notification is a normal upgrade and a message confirming the upgrade of the upgrade notification is received from the terminal, it is determined to upgrade the network camera.
[0162] In an embodiment, the method further comprises: the server sending an upgrade notification to the terminal.
[0163] In a case that the terminal receives the upgrade notification sent by the server and the upgrade policy included in the upgrade notification is a normal upgrade, the terminal sends a message confirming the upgrade or a message rejecting the upgrade to the network camera based on the operation of the user in the terminal.
[0164] In a case that the upgrade policy included in the upgrade notification received by the network camera is a normal upgrade and the terminal does not send a message confirming the upgrade to the network camera or sends a message rejecting the upgrade to the network camera, the network camera continues to wait for the upgrade notification sent by the server next time.
[0165] In an embodiment, on the network camera side, the method further comprises: in a case that the starting of the network camera based on the first partition fails, switching the starting partition of the network camera from the first partition to the second partition and determining that the upgrade of the network camera fails.
[0166] The first partition of the network camera can also be referred to as 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, in a case that the current second partition is the starting partition (i.e., the starting partition is marked as the second partition), the first partition is the system backup partition. In a case that the upgrade file corresponding to the upgrade notification is stored in the first partition of the network camera, the starting partition mark of the network camera is switched from the second partition to the first partition, the starting of the network camera based on the first partition succeeds, the first partition is used as the starting partition and the second partition is used as the system backup partition, and the switching is repeated. In a case that the starting of the network camera based on the first partition fails, the network camera is started using the current second partition as the starting partition. This mode can also be referred to as a ping-pong upgrade mode.
[0167] By using the above scheme, it can be ensured that the network camera can be accurately upgraded according to the upgrade policy. According to the ping-pong upgrade mode, the stability of the upgrade of the network camera can be ensured, and the case that the network camera cannot be used after the upgrade due to errors in the upgrade process can be avoided.
[0168] In some possible implementation, the network camera side, the method further comprises: obtaining the version of the screen terminal; in the case that the version of the screen terminal is lower than the version of the network camera, determining the upgrade version of the screen terminal and the upgrade strategy corresponding to the upgrade version of the screen terminal based on the version of the screen terminal and the version of the network camera; sending an upgrade instruction to the screen terminal, wherein the upgrade instruction carries the upgrade version of the screen terminal and the upgrade strategy corresponding to the upgrade version of the screen terminal; in the case that an upgrade request sent by the screen terminal is received, sending the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
[0169] In the case that the version of the screen terminal is lower than the version of the network camera, the method of determining the upgrade strategy of the screen terminal based on the version of the screen terminal and the version of the network camera can be: in the case that the version of the screen terminal is lower than the version of the network camera and the difference between the version of the screen terminal and the version of the network camera is greater than a threshold, determining the upgrade strategy of the screen terminal as forced upgrade; in the case that the version of the screen terminal is lower than the version of the network camera and the difference between the version of the screen terminal and the version of the network camera is less than or equal to the threshold, determining the upgrade strategy of the screen terminal as normal upgrade.
[0170] In the case that the version of the screen terminal is lower than the version of the network camera, the method of determining the upgrade version of the screen terminal based on the version of the screen terminal and the version of the network camera can comprise: taking the version of the network camera as the upgrade version of the screen terminal.
[0171] In the case that the version of the screen terminal is higher than or equal to the version of the network camera, the method of determining that the screen terminal does not upgrade and does not send an upgrade instruction to the screen terminal.
[0172] By adopting the above scheme, whether the screen terminal upgrades can be determined according to the difference between the version of the screen terminal and the version of the network camera, so that whether the screen terminal needs to upgrade can be determined more accurately, and the upgrade efficiency is improved.
[0173] In some possible implementation, the network camera side, the method further comprises: sending the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal, comprising one of the following: in the case that the upgrade file corresponding to the upgrade version of the screen terminal exists in the network camera, sending the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal; in the case that the upgrade file corresponding to the upgrade version of the screen terminal does not exist in the network camera, obtaining the upgrade file corresponding to the upgrade version of the screen terminal from a server and sending the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
[0174] By adopting the above scheme, it can be ensured that the screen end can obtain the upgrade file corresponding to the upgrade version in time. When the network camera already has the upgrade file, the screen end is directly sent, thereby improving the efficiency of obtaining the upgrade file. When the network camera does not have the required upgrade file, the screen end can be actively obtained from the server and sent, thereby ensuring that the screen end can successfully obtain the corresponding upgrade file as long as there is an upgrade version, thereby realizing timely updating and optimization of the system.
[0175] In some possible implementation manners, on the screen end side, the method further includes: sending the version of the screen end to one or more network cameras; receiving an upgrade instruction sent by the one or more network cameras; in a case where it is determined to upgrade based on the upgrade version of the screen end included in the upgrade instruction of the one or more network cameras and the upgrade strategy corresponding to the upgrade version of the screen end, determining the target 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, and determining the target upgrade strategy corresponding to the target upgrade version, wherein the target upgrade strategy includes one of the following: forced upgrade and normal upgrade; sending a generation upgrade request to the network camera corresponding to the target upgrade version; and obtaining the upgrade file corresponding to the target upgrade version of the screen end from the network camera corresponding to the target upgrade version.
[0176] The determination of whether to upgrade based on the upgrade version of the screen end included in the upgrade instruction of the one or more network cameras and the upgrade strategy corresponding to the upgrade version of the screen end includes: in a case where the upgrade strategy corresponding to the highest upgrade version in the upgrade version of the screen end included in the upgrade instruction of the one or more network cameras is forced upgrade, determining to upgrade; and in a case where the upgrade strategy corresponding to the highest upgrade version in the upgrade version of the screen end included in the upgrade instruction of the one or more network cameras is normal upgrade, determining to upgrade based on a confirmation upgrade operation of a user in the screen end.
[0177] The method further includes: in a case where the upgrade strategy corresponding to the highest upgrade version in the upgrade version of the screen end included in the upgrade instruction of the one or more network cameras is normal upgrade, determining not to upgrade based on a refusal upgrade operation of a user in the screen end, and continuing to execute the above steps.
[0178] By adopting the above scheme, whether the screen end needs to be upgraded can be determined according to the version difference between the screen end and the network camera, so that whether the screen end needs to be upgraded can be more accurately determined, and the efficiency of upgrading is improved.
[0179] In some possible implementation manners, on the screen side, the method further includes: storing the upgrade file corresponding to the target upgraded version of the screen in a third partition of the screen; switching the boot partition mark of the screen from the fourth partition to the third partition, and restarting the screen; in a case where the screen is successfully started based on the third partition, the screen upgrade is successful.
[0180] In some possible implementation manners, on the screen side, the method further includes: in a case where the screen fails to be started based on the third partition, switching the boot partition of the screen from the third partition to the fourth partition, and determining that the screen upgrade fails.
[0181] The third partition of the screen can also be referred to as a system backup partition of the screen. It can be understood that the third partition of the screen and the fourth partition of the screen are system backup partitions of each other. For example, in a case where the current fourth partition is a boot partition (that is, the boot partition mark is the fourth partition), the third partition is a system backup partition. In a case where the upgrade file corresponding to the target upgraded version is stored in the third partition of the screen, the boot partition mark of the screen is switched from the fourth partition to the third partition, and the screen is successfully started based on the third partition, the third partition is used as the boot partition, the fourth partition is used as the system backup partition, and the switching is repeated. In a case where the screen fails to be started based on the third partition, the screen is started using the current fourth partition as the boot partition. This mode can also be referred to as a ping-pong upgrade mode.
[0182] By using the above scheme, according to the ping-pong upgrade mode, the stability of the screen upgrade can be ensured, and the case where the screen cannot be used after the upgrade due to errors in the upgrade process can be avoided.
[0183] After the screen upgrade is successful, the method further includes: determining whether the WIFI firmware of the screen needs to be upgraded according to the version information of the WIFI firmware of the screen and the version of the WIFI firmware of the network camera, and if so, requesting the network camera to download the corresponding WIFI firmware and calling the instruction to download. The specific determination mode and the downloading mode are the same as those of the screen, which will not be described here again. The firmware can include a driver.
[0184] FIG. 6 is a schematic diagram of the composition structure of the network camera according to an embodiment of the present application, which includes:
[0185] The first communication unit 601 is configured to, in a case where the network camera is connected to a screen terminal as a first hotspot, negotiate a first shared key with the screen terminal, wherein configuration information of the first hotspot is generated based on device information of the screen terminal; receive a registration request sent by the screen terminal; and send a response message of the registration request to the screen terminal, wherein the response message of the registration request carries related information of configuration information of a second hotspot; and the network camera is connected to the screen terminal as the second hotspot, wherein the configuration information of the second hotspot is obtained by updating the configuration information of the first hotspot based on configuration information of the second hotspot.
[0186] The first processing unit 602 is configured to determine the configuration information of the second hotspot based on the first shared key and device information of the network camera.
[0187] The first communication unit is configured to receive an update registration request sent by the screen terminal; and send a response message of the update registration request to the screen terminal, wherein the response message of the update registration request is used to notify the screen terminal that the binding with the network camera is successful.
[0188] The first processing unit is configured to determine a name of the second hotspot based on device information of the network camera; determine a password of the second hotspot based on the first shared key; and take the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot.
[0189] The first communication unit is configured to receive a first public key sent by the screen terminal; and send a second public key to the screen terminal, wherein the second public key is used by the screen terminal to generate the first shared key.
[0190] The first processing unit is configured 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.
[0191] The first processing unit is configured to encrypt related information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data.
[0192] The first communication unit is configured to send a response message of the registration request to the screen terminal, wherein the response message of the registration request carries the first ciphertext data.
[0193] The first communication unit is configured to receive a login request sent by the screen terminal, wherein the login request comprises a first signature, device information of the screen terminal, and a third public key; and send a response message of the login request to the screen terminal in a case where the first signature is verified successfully based on a second shared key, the device information of the screen terminal, and the third public key, wherein the second shared key comprises the first shared key or preset information, and the response message of the login request is used to notify the screen terminal that the login to the network camera is successful.
[0194] The first processing unit is configured 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.
[0195] The first communication unit is configured to send the response message of the login request to the screen terminal, 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 terminal to generate a third shared key.
[0196] As shown in FIG. 7, the network camera further comprises a collection unit 701 configured to acquire device information of the screen terminal through content displayed by the screen terminal.
[0197] The first processing unit is configured to determine configuration information of a first hotspot based on the device information of the screen terminal, and generate the first hotspot of the network camera based on the configuration information of the first hotspot.
[0198] As shown in FIG. 8, the network camera further comprises a first storage unit configured to, in a case where it is determined to upgrade based on an upgrade notification sent by a server, acquire an upgrade file corresponding to the upgrade notification from the server through the first communication unit, and store the upgrade file corresponding to the upgrade notification in a first partition of the network camera, wherein the upgrade notification comprises an upgrade policy, and the upgrade policy comprises one of the following: forced upgrade and normal upgrade.
[0199] The first processing unit is configured to switch a startup partition of the network camera from the second partition to the first partition, and restart the network camera; and in a case where the network camera is successfully started based on the first partition, determine that the network camera is upgraded successfully.
[0200] The first processing unit is configured to, in a case where the network camera fails to be started based on the first partition, switch the startup partition of the network camera from the first partition to the second partition, and determine that the network camera fails to be upgraded.
[0201] The first communication unit is configured to acquire a version of the screen terminal, send an upgrade instruction to the screen terminal, where the upgrade instruction carries an upgrade version of the screen terminal and an upgrade strategy corresponding to the upgrade version of the screen terminal, and send, in response to receiving an upgrade request sent by the screen terminal, an upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
[0202] The first processing unit is configured to, in response to the version of the screen terminal being lower than the version of the network camera, determine, based on the version of the screen terminal and the version of the network camera, an upgrade version of the screen terminal and an upgrade strategy corresponding to the upgrade version of the screen terminal.
[0203] The first communication unit is configured to perform one of the following:
[0204] In response to the network camera having an upgrade file corresponding to the upgrade version of the screen terminal, send the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
[0205] In response to the network camera not having an upgrade file corresponding to the upgrade version of the screen terminal, acquire, from a server, the upgrade file corresponding to the upgrade version of the screen terminal, and send the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
[0206] FIG. 9 is a schematic diagram of a component structure of a screen terminal according to an embodiment of the present application, including:
[0207] The second communication unit 901 is configured to, in response to the screen terminal being connected to the network camera as a first hotspot, obtain a first shared key by negotiation with the network camera, send a registration request to the network camera, receive a response message of the registration request sent by the network camera, where the response message of the registration request carries related information of configuration information of the second hotspot, and connect to the network camera as the second hotspot based on the related information of the configuration information of the second hotspot.
[0208] As shown in FIG. 10, the screen terminal further includes a second processing unit 1001 configured to switch a binding state of the screen terminal from an unbound state to a bound state.
[0209] The second communication unit is configured to send an update registration request to the network camera, and receive a response message of the update registration request sent by the network camera, where the response message of the update registration request is used to notify the screen terminal that the binding with the network camera is successful.
[0210] The second processing unit is configured to generate a first public key and a first private key of the screen terminal, and generate a first shared key between the network camera and the screen terminal based on the first private key and a second public key.
[0211] The second communication unit is configured to send the first public key to the network camera, where the first public key is used by the network camera to generate the first shared key, and receive a second public key sent by the network camera.
[0212] The second processing unit is configured to decrypt first cipher data carried in a response message of the registration request based on the first shared key, to obtain related information of the configuration information of the second hotspot.
[0213] The second processing unit is configured to generate a third public key and a third private key of the screen terminal, and sign the third public key and device information of the screen terminal based on a second shared key to obtain a first signature, where the second shared key includes the first shared key or preset information.
[0214] The second communication unit is configured to send the login request to the network camera, where the login request carries the first signature, the device information of the screen terminal, and the third public key, and the third public key is used by the network camera to generate a third shared key, and receive a response message of the login request sent by the network camera, where the response message of the login request is used to notify the screen terminal that the login to the network camera is successful.
[0215] The second processing unit is configured to generate a third shared key based on a fourth public key carried in the response message of the login request and the third private key, and verify a second signature carried in the response message of the login request based on the third shared key and the fourth public key, where the verification of the second signature is used to determine the integrity of the fourth public key.
[0216] As shown in FIG. 11, the screen terminal further includes a display unit 1101 configured to display device information of the screen terminal on the screen terminal in a case where the screen terminal is in an unbound state, where the device information of the screen terminal is used by the network camera to determine the configuration information of the first hotspot.
[0217] The second communication unit is configured to connect to the network camera based on the configuration information of the first hotspot.
[0218] The second communication unit is configured to send the version of the screen terminal to one or more network cameras, receive an 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, and obtain the upgrade file corresponding to the target upgrade version of the screen terminal from the network camera corresponding to the target upgrade version.
[0219] The second processing unit is configured to determine the target upgrade version of the screen terminal based on the upgrade version of the screen terminal included in the upgrade instruction sent by the one or more network cameras, and determine the target upgrade strategy corresponding to the target upgrade version, in a case where it is determined to upgrade the screen terminal based on the upgrade version of the screen terminal included in the upgrade instruction sent by the one or more network cameras and the upgrade strategy corresponding to the upgrade version of the screen terminal, wherein the target upgrade strategy includes one of the following: forced upgrade, normal upgrade.
[0220] As shown in FIG. 12, the screen terminal further includes a second storage unit 1201 configured to store the upgrade file corresponding to the target upgrade version of the screen terminal in the third partition of the screen terminal.
[0221] The second processing unit is configured to switch the start partition of the screen terminal from the fourth partition to the third partition, and restart the screen terminal, and determine that the screen terminal is upgraded successfully in a case where the screen terminal is started based on the third partition successfully.
[0222] The second processing unit is configured to switch the start partition of the screen terminal from the third partition to the fourth partition, and determine that the screen terminal is upgraded unsuccessfully in a case where the screen terminal is started based on the third partition unsuccessfully.
[0223] The device of the embodiments of the present application can realize the corresponding functions of each device in the communication method embodiments described above. The processes, functions, implementation manners, and advantages of each module (sub-module, unit, or component, etc.) in the network camera or the screen terminal can be referred to the corresponding description in the method embodiments described above, and will not be described here. It should be noted that the functions described with respect to each module (sub-module, unit, or component, etc.) in the network camera or the screen terminal of the embodiments of the present application can be realized by different modules (sub-modules, units, or components, etc.), or can be realized by the same module (sub-module, unit, or component, etc.).
[0224] FIG. 13 is a schematic structural diagram of a communication device 1300 according to an embodiment of the present application. The communication device 1300 comprises a processor 1310, which can invoke and run a computer program from a memory to enable the communication device 1300 to implement the methods in the embodiments of the present application. In a possible implementation, the communication device 1300 can further comprise a memory 1320. The processor 1310 can invoke and run a computer program from the memory 1320 to enable the communication device 1300 to implement the methods in the embodiments of the present application. The memory 1320 can be a separate device independent of the processor 1310, or integrated in the processor 1310. In a possible implementation, the communication device 1300 can further comprise a transceiver 1330, which can be controlled by the processor 1310 to communicate with other devices, specifically, to send information or data to other devices, or receive information or data sent by other devices. The transceiver 1330 can comprise a transmitter and a receiver. The transceiver 1330 can further comprise an antenna, which can be one or more.
[0225] In a possible implementation, the communication device 1300 can be a network camera or a screen end of the embodiments of the present application, and the communication device 1300 can implement the corresponding procedures implemented by the network camera or the screen end in the methods of the embodiments of the present application. For brevity, details are not described herein.
[0226] FIG. 14 is a schematic structural diagram of a chip 1400 according to an embodiment of the present application. The chip 1400 comprises a processor 1410, which can invoke and run a computer program from a memory to implement the methods in the embodiments of the present application. In a possible implementation, the chip 1400 can further comprise a memory 1420. The processor 1410 can invoke and run a computer program from the memory 1420 to implement the methods in the embodiments of the present application implemented by the network camera or the screen end. The memory 1420 can be a separate device independent of the processor 1410, or integrated in the processor 1410. In a possible implementation, the chip 1400 can further comprise an input interface 1430. The processor 1410 can control the input interface 1430 to communicate with other devices or chips, specifically, to obtain information or data sent by other devices or chips. In a possible implementation, the chip 1400 can further comprise an output interface 1440. The processor 1410 can control the output interface 1440 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.
[0227] In a possible implementation, the chip can be applied to the network camera or the screen end in the embodiments of the present application, and the chip can implement the corresponding procedures implemented by the network camera or the screen end in the various methods of the embodiments of the present application. For brevity, details are not repeated here. It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, a system chip, a chip system or a system-on-chip, etc. The processor mentioned above can be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or other programmable logic devices, transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor mentioned above can be a microprocessor or any conventional processor, etc. The memory mentioned above 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 read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM). It should be understood that the above memory is exemplary but not a limiting description, for example, the memory in the embodiments 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 synch link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
[0228] FIG. 15 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, a screen terminal 1520. The network camera 1510 can be configured to implement the corresponding functions of the network camera in the above-described methods. The screen terminal 1520 can be configured to implement the corresponding functions of the screen terminal in the above-described methods. For brevity, details are not repeated here.
[0229] In the above embodiments, the whole or part can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, the whole or part can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed by a computer, the computer instructions produce the processes or functions in the embodiments of the present application. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another via wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0230] It should be understood that the size of the sequence number of each process described above in various embodiments of the present application does not mean the order of execution, and the execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. It can be clearly understood by those skilled in the art that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any skilled person in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A communication method performed by a network camera, comprising: obtaining a first shared key with a screen terminal in a case that the network camera connects with the screen terminal as a first hotspot, wherein configuration information of the first hotspot is generated based on device information of the screen terminal; receiving a registration request sent by the screen terminal; determining 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 terminal, wherein the response message of the registration request carries related information of the configuration information of the second hotspot; connecting with the screen terminal as the second hotspot, wherein the second hotspot is updated based on the configuration information of the second hotspot and the configuration information of the first hotspot.
2. The method of claim 1, wherein, after connecting with the screen terminal as the second hotspot, further comprising: receiving an update registration request sent by the screen terminal; sending a response message of the update registration request to the screen terminal, wherein the response message of the update registration request is used to notify the screen terminal that the binding with the network camera is successful.
3. The method of claim 1, wherein, the determining of the configuration information of the second hotspot based on the first shared key and the device information of the network camera comprises: determining a name of the second hotspot based on the device information of the network camera; determining a password of the second hotspot based on the first shared key; taking the name of the second hotspot and the password of the second hotspot as the configuration information of the second hotspot.
4. The method of claim 1, wherein, the obtaining of the first shared key with the screen terminal comprises: receiving a first public key sent by the screen terminal; 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; sending the second public key to the screen terminal, wherein the second public key is used by the screen terminal to generate the first shared key.
5. The method of claim 1, wherein, the sending of the response message of the registration request to the screen terminal comprises: encrypting the related information of the configuration information of the second hotspot based on the first shared key to obtain first ciphertext data; sending the response message of the registration request to the screen terminal, wherein the response message of the registration request carries the first ciphertext data.
6. The method of claim 2, wherein, after the sending of the response message of the update registration request to the screen terminal, further comprising: receiving a login request sent by the screen terminal, wherein the login request comprises a first signature, device information of the screen terminal, and a third public key; in a case that a verification of the first signature based on a second shared key, the device information of the screen terminal, and the third public key is passed, sending a response message of the login request to the screen terminal, wherein the second shared key comprises the first shared key or preset information, and the response message of the login request is used to notify the screen terminal that the login to the network camera is successful.
7. The method of claim 6, wherein, the sending of the response message of the login request to the screen terminal comprises: 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 a fourth public key of the network camera based on the third shared key, to obtain a second signature; sending, to the screen terminal, a response message of the login request, 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 terminal to generate a third shared key.
8. The method of claim 1, further comprising: obtaining device information of the screen terminal through content displayed by the screen terminal; determining configuration information of the first hotspot based on the device information of the screen terminal; generating the first hotspot based on the configuration information of the first hotspot.
9. The method of any one of claims 1-8, further comprising: in a case where it is determined to upgrade based on the upgrade notification sent by the 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 comprises an upgrade policy, and the upgrade policy comprises one of: forced upgrade, and normal upgrade; switching a startup partition 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.
10. The method of claim 9, further comprising: in a case where the network camera fails to be started based on the first partition, switching the startup partition of the network camera from the first partition to the second partition, and determining that the network camera fails to be upgraded.
11. The method of claim 9, further comprising: obtaining a version of the screen terminal; in a case where the version of the screen terminal is lower than a version of the network camera, determining an upgrade version of the screen terminal and an upgrade policy corresponding to the upgrade version of the screen terminal based on the version of the screen terminal and the version of the network camera; sending an upgrade instruction to the screen terminal, wherein the upgrade instruction carries the upgrade version of the screen terminal and the upgrade policy corresponding to the upgrade version of the screen terminal; in a case where an upgrade request sent by the screen terminal is received, sending an upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
12. The method of claim 11, wherein, The sending of the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal comprises one of: in a case where the upgrade file corresponding to the upgrade version of the screen terminal exists in the network camera, sending the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal; in a case where the upgrade file corresponding to the upgrade version of the screen terminal does not exist in the network camera, obtaining the upgrade file corresponding to the upgrade version of the screen terminal from a server, and sending the upgrade file corresponding to the upgrade version of the screen terminal to the screen terminal.
13. A communication method performed by a screen terminal, comprising: in a case where the screen terminal is connected to a network camera as a first hotspot, negotiating a first shared key with the network camera; sending a registration request to the network camera; receive a response message of the registration request sent by the network camera, wherein the response message of the registration request carries the related information of the configuration information of the second hotspot; connect with the network camera as the second hotspot based on the related information of the configuration information of the second hotspot.
14. The method of claim 13, wherein, The connecting with the network camera as the second hotspot based on the related information of the configuration information of the second hotspot further comprises: send an update registration request to the network camera; receive a response message of the update registration request sent by the network camera, wherein the response message of the update registration request is used to inform the screen terminal that the binding with the network camera is successful; switch the binding state of the screen terminal from an unbound state to a bound state.
15. The method of claim 13, wherein, The negotiating the first shared key with the network camera comprises: generating a first public key and a first private key of the screen terminal; 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; generating the first shared key based on the first private key and the second public key.
16. The method of claim 13, wherein, After receiving the response message of the registration request sent by the network camera, the method further comprises: decrypting first ciphertext data carried by the response message of the registration request based on the first shared key to obtain the related information of the configuration information of the second hotspot.
17. The method of claim 14, wherein, After receiving the response message of the update registration request sent by the network camera, the method further comprises: generating a third public key and a third private key of the screen terminal; signing the third public key and the device information of the screen terminal based on a second shared key to obtain a first signature, wherein the second shared key comprises 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 terminal and the third public key, and the third public key is used by 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 inform the screen terminal that the login to the network camera is successful.
18. The method of claim 17, wherein, After receiving the response message of the login request sent by the network camera, the method further comprises: generating a third shared key based on a fourth public key carried by the response message of the login request and the third private key; verifying a second signature carried by the response message of the login request based on the third shared key and the fourth public key.
19. The method of claim 13, further comprising: in a case where the screen terminal is in an unbound state, displaying device information of the screen terminal on the screen terminal, wherein the device information of the screen terminal is used by the network camera to determine the configuration information of the first hotspot; connecting with the network camera based on the configuration information of the first hotspot.
20. The method of any one of claims 13-19, further comprising: sending a version of the screen terminal to one or more network cameras. receive an upgrade instruction sent by the one or more network cameras; in a case where it is determined to upgrade based on the upgrade version of the screen terminal included in the upgrade instruction sent by the one or more network cameras and the upgrade strategy corresponding to the upgrade version of the screen terminal, determine a target upgrade version of the screen terminal based on the upgrade version of the screen terminal included in the upgrade instruction sent by the one or more network cameras, and determine a target upgrade strategy corresponding to the target upgrade version of the screen terminal, wherein the target upgrade strategy comprises one of the following: forced upgrade, normal upgrade; send an upgrade request to the network camera corresponding to the target upgrade version of the screen terminal; obtain the upgrade file corresponding to the target upgrade version of the screen terminal from the network camera corresponding to the target upgrade version of the screen terminal.
21. The method of claim 20, further comprising: storing the upgrade file corresponding to the target upgrade version of the screen terminal in a third partition of the screen terminal; switching the boot partition of the screen terminal from the fourth partition to the third partition and restarting the screen terminal; in a case where the screen terminal is successfully started based on the third partition, determining that the screen terminal is successfully upgraded.
22. The method of claim 21, further comprising: in a case where the screen terminal fails to be started based on the third partition, switching the boot partition of the screen terminal from the third partition to the fourth partition and determining that the screen terminal fails to be upgraded.
23. A network camera, comprising: a first communication unit configured to, in a case where the network camera is connected to a screen terminal as a first hotspot, negotiate a first shared key with the screen terminal, wherein configuration information of the first hotspot is generated based on device information of the screen terminal, receive a registration request sent by the screen terminal, and send a response message of the registration request to the screen terminal, wherein the response message of the registration request carries related information of configuration information of the second hotspot, and connect to the screen terminal 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; a first processing unit configured to determine the configuration information of the second hotspot based on the first shared key and device information of the network camera.
24. The network camera of claim 23, wherein, the first communication unit is configured to receive an update registration request sent by the screen terminal, and send a response message of the update registration request to the screen terminal, wherein the response message of the update registration request is used to notify the screen terminal that the binding with the network camera is successful.
25. The network camera of claim 23, wherein, the first processing unit is configured to determine a name of the second hotspot based on the device information of the network camera, determine a password of the second hotspot based on the first shared key, and take 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 of claim 23, wherein, the first communication unit is configured to receive a first public key sent by the screen terminal, and send a second public key to the screen terminal, wherein the second public key is used by the screen terminal to generate the first shared key. The first processing unit is configured 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 of claim 23, wherein, The first processing unit is configured to encrypt relevant information of configuration information of the second hotspot based on the first shared key to obtain first ciphertext data. The first communication unit is configured to send a response message of a registration request to the screen terminal, where the response message of the registration request carries the first ciphertext data.
28. The network camera of claim 24, wherein, The first communication unit is configured to receive a login request sent by the screen terminal, where the login request includes a first signature, device information of the screen terminal, and a third public key; and in a case where verification of the first signature based on a second shared key, the device information of the screen terminal, and the third public key is passed, the first communication unit sends a response message of the login request to the screen terminal, where 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 terminal that the login to the network camera is successful.
29. The network camera of claim 28, wherein, The first processing unit is configured 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. The first processing unit is configured to sign the fourth public key of the network camera based on the third shared key to obtain a second signature. The first communication unit is configured to send the response message of the login request to the screen terminal, where 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 terminal to generate the third shared key.
30. The network camera of claim 23, further comprising: The acquisition unit is configured to acquire device information of the screen terminal through content displayed by the screen terminal. The first processing unit is configured to determine configuration information of a first hotspot based on the device information of the screen terminal. The first processing unit is configured to generate the first hotspot of the network camera based on the configuration information of the first hotspot.
31. The network camera of any of claims 23-30, further comprising: The first storage unit is configured to, in a case where it is determined to upgrade based on an upgrade notification sent by a server, acquire an upgrade file corresponding to the upgrade notification from the server through the first communication unit, and store the upgrade file corresponding to the upgrade notification in a first partition of the network camera, where the upgrade notification includes an upgrade policy, and the upgrade policy includes one of the following: forced upgrade and normal upgrade. The first processing unit is configured to switch a start partition of the network camera from a second partition to the first partition, and restart the network camera; and in a case where the network camera is successfully started based on the first partition, determine that the network camera is successfully upgraded.
32. The network camera of claim 31, wherein the first processing unit is configured to, in a case where the network camera fails to be started based on the first partition, switch the start partition of the network camera from the first partition to the second partition, and determine that the network camera fails to be upgraded.
33. The network camera of claim 31, wherein the first communication unit is configured to acquire a version of a screen terminal, and send an upgrade instruction to the screen terminal. The upgrade instruction carries the upgraded version of the screen terminal and an upgrade strategy corresponding to the upgraded version of the screen terminal; and in a case where the upgrade request sent by the screen terminal is received, the upgrade file corresponding to the upgraded version of the screen terminal is sent to the screen terminal. The first processing unit is configured to, in a case where the version of the screen terminal is lower than the version of the network camera, determine the upgraded version of the screen terminal and an upgrade strategy corresponding to the upgraded version of the screen terminal based on the version of the screen terminal and the version of the network camera.
34. The network camera of claim 33, wherein, The first communication unit is configured to perform one of the following: In a case where the upgrade file corresponding to the upgraded version of the screen terminal exists in the network camera, the upgrade file corresponding to the upgraded version of the screen terminal is sent to the screen terminal; In a case where the upgrade file corresponding to the upgraded version of the screen terminal does not exist in the network camera, the upgrade file corresponding to the upgraded version of the screen terminal is obtained from a server, and the upgrade file corresponding to the upgraded version of the screen terminal is sent to the screen terminal.
35. A screen terminal, comprising: The second communication unit is configured to, in a case where the screen terminal is connected to the network camera as a first hotspot, obtain a first shared key by negotiating with the network camera; The second communication unit is configured to send a registration request to the network camera; and receive a response message of the registration request sent by the network camera, wherein the response message of the registration request carries related information of configuration information of the second hotspot. The second communication unit is configured to, based on the related information of the configuration information of the second hotspot, connect to the network camera as the second hotspot.
36. The screen end of claim 35, further comprising: The second processing unit is configured to switch a binding state of the screen terminal from an unbound state to a bound state. The second communication unit is configured to send an update registration request to the network camera. The second communication unit is configured to receive a response message of the update registration request sent by the network camera, wherein the response message of the update registration request is used to notify the screen terminal that the binding with the network camera is successful.
37. The screen end of claim 35, wherein, The second processing unit is configured to generate a first public key and a first private key of the screen terminal; and generate a first shared key of the network camera and the screen terminal based on the first private key and a second public key. The second communication unit is configured 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 a second public key sent by the network camera.
38. The screen end of claim 35, wherein, The second processing unit is configured to decrypt first ciphertext data carried in the response message of the registration request based on the first shared key, to obtain the related information of the configuration information of the second hotspot.
39. The screen end of claim 36, wherein, The second processing unit is configured to generate a third public key and a third private key of the screen terminal; and sign the third public key and device information of the screen terminal based on a 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 configured to send the login request to the network camera, where the login request carries the first signature, the device information of the screen terminal, and the third public key, and the third public key is used by the network camera to generate a third shared key; and receive a response message of the login request sent by the network camera, where the response message of the login request is used to notify the screen terminal that the login to the network camera is successful.
40. The screen end of claim 39, wherein, The second processing unit is configured to generate a third shared key based on a fourth public key carried in the response message of the login request and the third private key. The second signature carried in the response message of the login request is verified based on the third shared key and the fourth public key, where the verification of the second signature is used to determine the integrity of the fourth public key.
41. The screen end of claim 35, further comprising: The display unit is configured to display the device information of the screen terminal on the screen terminal in the unbound state, where the device information of the screen terminal is used by the network camera to determine the configuration information of the first hotspot. The second communication unit is configured to connect to the network camera based on the configuration information of the first hotspot.
42. The screen end of any of claims 35-41, the second communication unit to send a version of the screen end to one or more network cameras; receive upgrade instructions sent by the one or more network cameras. An upgrade request is sent to the network camera corresponding to the target upgrade version. An upgrade file corresponding to the target upgrade version of the screen terminal is obtained from the network camera corresponding to the target upgrade version. The second processing unit is configured to determine the target upgrade version of the screen terminal and determine a target upgrade strategy corresponding to the target upgrade version based on the upgrade version of the screen terminal included in the upgrade instruction sent by the one or more network cameras and the upgrade strategy corresponding to the upgrade version of the screen terminal in the case that the screen terminal is determined to be upgraded based on the upgrade instruction sent by the one or more network cameras, where the target upgrade strategy includes one of the following: forced upgrade and normal upgrade.
43. The screen end of claim 42, further comprising: The second storage unit is configured to store the upgrade file corresponding to the target upgrade version of the screen terminal in the third partition of the screen terminal. The second processing unit is configured to switch the start partition of the screen terminal from the fourth partition to the third partition and restart the screen terminal. In the case that the screen terminal is successfully started based on the third partition, it is determined that the screen terminal is upgraded successfully.
44. The screen terminal of claim 43, wherein the second processing unit is configured to switch the start partition of the screen terminal from the third partition to the fourth partition and determine that the screen terminal fails to be upgraded in the case that the screen terminal fails to be started based on the third partition.
45. A network camera comprising: A transceiver, a processor, and a memory for storing a computer program, the transceiver is configured to communicate with other devices, and the processor is configured to invoke and run the computer program stored in the memory to enable the first device to perform the method of any one of claims 1 to 12.
46. A screen end comprising: a transceiver for communicating with other devices, a processor for invoking and running a computer program stored in the memory to cause the second device to perform the method of any of claims 13 to 22.
47. A chip comprising: a processor for invoking and running a computer program from the memory to cause the device in which the chip is installed to perform the method of any of claims 1 to 12, or claims 13 to 22.
48. A computer readable storage medium for storing a computer program which, when run by a device, causes the device to perform the method of any of claims 1 to 12, or claims 13 to 22.
49. A computer program product comprising computer program instructions which cause a computer to perform the method of any of claims 1 to 12, or claims 13 to 22.
50. A computer program which causes a computer to perform the method of any of claims 1 to 12, or claims 13 to 22.
Citation Information
Patent Citations
Mobile intelligent network camera
CN104902151A
Method and system for controlling electric appliance to access router
CN104936179A
Communication method and device
CN118748800A
Method, apparatus, and computer program product for configuring a mobile wireless hotspot
US20140195654A1