WO2017088575A1 - Encryption mechanism-based ipc service implementation method and system - Google Patents

Encryption mechanism-based ipc service implementation method and system Download PDF

Info

Publication number
WO2017088575A1
WO2017088575A1 PCT/CN2016/099895 CN2016099895W WO2017088575A1 WO 2017088575 A1 WO2017088575 A1 WO 2017088575A1 CN 2016099895 W CN2016099895 W CN 2016099895W WO 2017088575 A1 WO2017088575 A1 WO 2017088575A1
Authority
WO
WIPO (PCT)
Prior art keywords
app client
ipc terminal
ipc
terminal
signaling
Prior art date
Application number
PCT/CN2016/099895
Other languages
French (fr)
Chinese (zh)
Inventor
田晓川
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017088575A1 publication Critical patent/WO2017088575A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for implementing an IPC service based on an encryption mechanism.
  • IPC IP Camera
  • the service targets of video surveillance are gradually developing from professional services for industry and enterprises to general video surveillance services for the general public such as individuals and families.
  • the network environment of its monitoring system is gradually moving from private network to LAN.
  • Development; network video surveillance currently provided to individual users is generally based on the Internet. Individuals and families install network cameras at home to obtain remote video surveillance services.
  • users also worry about and pay attention to the security of video data, and worry about video data leakage. Or video data is illegally intercepted during transmission and its video information is easily known.
  • the present invention has been made in order to provide an encryption mechanism based IPC service implementation method and system that overcomes the above problems or at least partially solves the above problems.
  • an IPC service implementation method based on an encryption mechanism which includes the following steps:
  • the client receives a play request of the APP client, and controlling the APP client to establish a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by using the encryption key to the APP that can be decrypted by using the decryption key.
  • the client performs decryption playback.
  • an IPC service implementation system based on an encryption mechanism which includes:
  • a receiving module configured to receive a connection and registration request of the IPC terminal, and complete registration thereof
  • Generating a transmission module configured to generate an encryption key and a decryption key, and respectively corresponding to the IPC terminal and an APP client bound to the IPC terminal;
  • a receiving control module configured to receive a play request of the APP client, and control the APP client to establish a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by using the encryption key to enable The APP client decrypting the key for decryption plays the decrypted play.
  • an IPC service implementation method based on an encryption mechanism includes the following steps:
  • the IPC terminal connects to the primary server through HTTP or HTTPS and registers with the primary server, and then the APP client performs binding with the IPC terminal;
  • the primary server generates an encryption key and a decryption key, and transmits the encryption key to the IPC terminal, and transmits the decryption key to the APP client, the encryption key and a decryption key Using symmetric encryption;
  • the IPC terminal encrypts the audio and video stream by using the encryption key, and transmits the audio and video stream to the APP client;
  • the APP client After receiving the audio and video stream encrypted by the IPC terminal, the APP client decrypts the audio and video stream by using the decryption key to implement audio and video playback.
  • the invention also provides an IPC service implementation system based on an encryption mechanism, which comprises:
  • the IPC terminal is connected to the primary server by using HTTP or HTTPS, and is registered with the primary server, and the APP client performs binding with the IPC terminal;
  • a key generation module configured to generate an encryption key and a decryption key by the primary server, and transmit the encryption key to the IPC terminal and transmit the decryption key to the APP client;
  • the encryption key and the decryption key are symmetrically encrypted;
  • a base station connection module configured to send, by the APP client, a play request to the primary server, so that the APP client
  • the IPC terminal establishes a TCP connection with the base station respectively;
  • An encryption module configured to: the IPC terminal encrypts the audio and video stream by using the encryption key, and transmits the audio and video stream to the APP client;
  • a decryption module configured to perform decryption processing on the audio and video stream by using the decryption key after the APP client receives the audio and video stream encrypted by the IPC terminal, so as to implement audio and video playback.
  • a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform any of said encryption based mechanisms described above IPC service implementation method.
  • a computer readable medium storing the computer program as described above.
  • the present invention has the following advantages:
  • the server generates an encryption key and a decryption key, which are respectively transmitted to the IPC terminal and the APP client bound to the IPC terminal.
  • the server control office The APP client establishes a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by the encryption key to the APP client, and the APP client receives the encrypted audio and video stream corresponding to the encryption key.
  • the decryption key decrypts and plays the audio and video stream; in the process, only after the audio and video stream that has been encrypted and processed is successfully decrypted, the audio and video stream can be played normally, if the APP client does not perform the encrypted audio and video stream.
  • the decrypted decryption key or decryption key does not correspond to the encryption key, so even if the client acquires the audio and video stream, it cannot be decrypted and processed, and thus cannot be played normally, and accordingly, the security of the audio and video information is ensured. Sex, that is, the user's privacy is better protected.
  • the server when the server controls the APP client to establish a connection with the IPC terminal, the server uses the public key check to determine whether the sig provided by the APP client and the IPC terminal is legal; when the determination is no, the server does not Granting the APP client to establish a connection with the IPC terminal, and when the determination is yes, granting the APP client to establish a connection with the IPC terminal; the process can prevent the APP client and the non-IPC terminal from being bound to the IPC terminal.
  • the IPC terminal establishes a connection, thereby preventing the APP client not bound to the IPC terminal from acquiring audio and video streams, which further improves the security of the audio and video information, and the user's privacy is better protected.
  • the technical solution provided by the present invention acquires and saves the corresponding control relationship between the master device and the smart device through authentication, and saves the association relationship between the smart devices on the other hand, according to the relationship between the smart device and the smart device.
  • the association information between the master devices is passively established according to the association information between the smart devices, so that the control of the smart device by the master device is no longer controlled.
  • the master device supervises and controls the related information between the corresponding smart devices through the association information between the master devices, so that the master device is more comprehensive and effective for the corresponding smart devices. control.
  • FIG. 1 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention
  • FIG. 2 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention
  • FIG. 3 is a structural block diagram of an embodiment of an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 4 is a structural block diagram of an embodiment of a receiving control module in an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 5 is a structural block diagram of an embodiment of a processing module in an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 6 is a structural block diagram of an embodiment of an IPC service implementation system interrupt connection assistance module based on an encryption mechanism in the present invention
  • FIG. 7 is a structural block diagram of an embodiment of a push assisting module in an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 8 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention
  • FIG. 9 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention.
  • FIG. 10 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention
  • FIG. 11 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention
  • FIG. 12 is a structural block diagram of an embodiment of an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 13 is a structural block diagram of an embodiment of an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 14 is a structural block diagram of an embodiment of a base station connection module in an IPC service implementation system based on an encryption mechanism in the present invention
  • FIG. 15 is a structural block diagram of an embodiment of a signaling processing module in an IPC service implementation system based on an encryption mechanism in the present invention
  • 16 is a structural block diagram of an embodiment of an event pushing module in an IPC service implementation system based on an encryption mechanism in the present invention
  • Figure 17 is a schematic block diagram showing a computing device for performing a method in accordance with the present invention.
  • Fig. 18 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • terminal and terminal device used herein include both a wireless signal receiver device, a device having only a wireless signal receiver without a transmitting capability, and a receiving and transmitting hardware.
  • Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data Processing, fax, and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars, and/or GPS (Global Positioning System (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver.
  • PCS Personal Communications Service
  • PDA Personal Digital Assistant
  • terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form.
  • the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playback terminal, and may be, for example, a PDA or a MID (Mobile Internet Device).
  • Networked devices) and/or mobile phones with music/video playback capabilities can also be devices such as smart TVs, set-top boxes, and the like.
  • the concepts of servers, clouds, remote network devices, and the like used herein have equivalent effects, including but not limited to computers, network hosts, single network servers, multiple network server sets, or multiple servers.
  • the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the communication between the remote network device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, TCP/IP, UDP protocol. Computer network communication and short-range wireless transmission based on Bluetooth and infrared transmission standards.
  • the Internet it generally includes a client (user mobile terminal), a network, and a server (such as a web server of a website).
  • the client can be a user's Internet mobile terminal, such as a desktop computer (PC), a laptop (Laptop), a smart device with web browsing capabilities, such as a personal digital assistant (PDA), and mobile Internet devices (MID) and smartphones (Phone).
  • PC desktop computer
  • laptop laptop
  • PDA personal digital assistant
  • MID mobile Internet devices
  • smartphones Phone
  • the server is typically a remote computer system that can be accessed via a communication medium such as the Internet, typically such as the Internet. Moreover, servers can often serve multiple clients from the Internet.
  • the service process includes receiving requests from the client, collecting user information and feedback information, and the like.
  • the server acts as an information provider for the computer network.
  • the server is usually located on the party providing the service, or configured by the service provider to serve the content, such a service provider may be, for example, an Internet service company's website.
  • the application method of the related method and terminal of the present invention is an APP device suitable for audio and video playback and web browsing function, such as a desktop client, a laptop computer, a PDA, a MID, and an intelligent device.
  • a mobile phone or the like, with the cloud server as the server described below, is exemplified by taking an IPC terminal as described below as an example for an intelligent device suitable for collecting audio and video data and with a network connection function.
  • the APP client and the IPC terminal are installed with an application that implements data interaction with the server through the network. It should be noted that the description is merely exemplary, and the scope of the invention is not limited thereto.
  • the present invention provides an IPC service implementation method based on an encryption mechanism, that is, the method is described from the perspective of a server, and the IPC service implementation method of the encryption mechanism can be implemented as a computer program in a remote network device by programming. Implementations include, but are not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers.
  • an exemplary embodiment of an IPC service implementation method based on an encryption mechanism according to the present invention includes the following steps:
  • the IPC terminal initiates a connection request to the server. After the connection is successful, the IPC terminal initiates a registration request to the server through the HTTPS, and the server obtains configuration information used by the IPC terminal for registration and authentication, and the server performs configuration information. The comparison judges that if it is determined that the SN already exists and is not the same QID, the bound error message is returned. If it is determined that the SN already exists and is the same QID, the TS word number data is updated, and if it is determined that the SN does not exist, the data is entered. The library also returns the response data to the APP client; after the registration authentication is passed, the IPC terminal obtains an ID and its corresponding token token that is logged into the server.
  • the IPC terminal enters the server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can perform correspondingly through the server. operating.
  • the method of the present invention further includes a step S110, generating an encryption key and a decryption key, respectively corresponding to the IPC terminal and an APP (Application; application client) bound to the IPC terminal. .
  • APP Application; application client
  • the server uses a symmetric encryption algorithm to generate an encryption key and a decryption key, transmits the encryption key to the IPC terminal, and transmits the corresponding decryption key to the APP client bound to the IPC terminal.
  • the process of binding the IPC terminal to the APP client includes: first, the APP client requests the server to obtain the IPC terminal through the QID and the TS. After binding the data, the server determines whether the APP client has been bound, and if the determination is yes, returns the determination result, and downlinks the binding result signaling to the APP client; If no, the binding operation is performed and the result is returned, and the downlink binding result signaling is sent to the APP client and the IPC terminal. In addition, if the server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result of the failure of obtaining the failure is returned to the APP client, and the next acquisition request of the APP client is awaited.
  • the method of the present invention further includes a step S120, receiving a play request of the APP client, and controlling the APP client to establish a connection with the IPC terminal, so that the IPC terminal encrypts the voice by using an encryption key.
  • the video stream is transmitted to an APP client that can be decrypted using the decryption key for decryption playback.
  • the APP client initiates a play request to the server through HTTPS, and the server receives the play request and returns a corresponding response notification.
  • the process of establishing a connection between the APP client and the IPC terminal includes: the server controls the APP client to initiate a connection to the IPC terminal, and then the server uses the public key check to determine the APP client and the IPC terminal. Whether the sig is legal or not; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if the determination is yes, the APP client is permitted to establish a connection with the IPC terminal.
  • the process is further illustrated as follows.
  • the APP client and the IPC terminal establish a connection through the base station as a relay station.
  • the server controls the APP client to initiate a TCP connection to the base station, and then the base station.
  • the public key provided by the server is used to check whether the sig provided by the APP client is legal.
  • the server sends the check result information to the IPC terminal, so that the IPC terminal initiates a connection to the base station, and the base station also uses the base station.
  • the public key check provided by the server determines whether the sig provided by the IPC terminal is legal. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding subsequent actions.
  • the IPC terminal encrypts the audio and video stream by using an encryption key, and then transmits the result to the APP client, and the APP client receives the encrypted audio and video stream and uses the corresponding After the decryption key is successfully decrypted, it can be played normally. If the APP client receives the encrypted audio and video stream without a decryption key or a corresponding decryption key, the encrypted audio and video stream cannot be decrypted normally. , that is, the audio and video cannot be played normally.
  • the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
  • the method of the present invention further includes the step S130, the APP client is disconnected from the IPC terminal.
  • the APP client actively closes the connection with the IPC terminal, and then the IPC terminal is closed.
  • the process is further illustrated. If the APP client and the IPC terminal are connected through the base station as a transit station, the details are as follows: the APP client actively closes the TCP long connection with the base station, and then The base station sends the command result to the IPC terminal, and after receiving the IPC terminal, the TCP connection with the base station is also closed.
  • the method of the present invention further includes the step of processing the operation control signaling sent by the APP client to the IPC terminal; the step may be interspersed in the foregoing related step process, and the specific operation control signaling
  • the device may include a light-on command, a shake-up command, and a focus command.
  • the step includes: the APP client sends corresponding operation control signaling, and after receiving the signaling sent by the APP client, the server sends the signal to the APP client. And returning the response data to the IPC terminal, and sending an execution signaling notification by using the private key signature to the IPC terminal, after receiving the execution signaling notification, the IPC terminal performs an execution action corresponding to the execution signaling, and uploads to the server. After the server receives the signaling execution result uploaded by the IPC terminal, the process ends.
  • the parameters for performing the signaling include the session ID and the signaling code.
  • the method of the present invention further includes the step of assisting the IPC terminal to push an event to the APP client.
  • the process includes: the IPC terminal pushes the event data to the server through the HTTPS, and after receiving the event data sent by the IPC terminal, the server returns the response data to the IPC terminal and sends the event to the APP client.
  • the server receives the message notification, if the event is intentionally sent to the server to send a request for acquiring the specific data of the event, the server receives the request of the APP client to acquire event specific data and responds to the request.
  • the message notification sent by the server to the APP client is signed by using its private key, and the message notification parameter includes a session ID and a signaling code. This step can greatly improve the interactivity of information between the APP client, the server and the IPC terminal, and also improve the timeliness and stability of information transmission.
  • the method of the present invention further includes the step of assisting in processing the unbinding between the APP client and the IPC terminal.
  • the step of the step is substantially the same as the step of processing the operation control signaling sent by the APP client to the IPC terminal, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal;
  • the difference is that the process requires the server to remove the local binding state.
  • This step facilitates the binding state relationship between the APP client and the IPC terminal.
  • the method of the present invention further includes the step of assisting the processing of the APP client to trigger the IPC terminal upgrade.
  • the step process integrates the operation control signaling sent by the APP client to the IPC terminal, which is similar to the APP client sending an upgrade signaling to the IPC terminal, but in the process
  • the IPC terminal also closes the offline and starts the online process, and during this step, the IPC terminal feeds back the upgrade process status information to the server multiple times.
  • This step enables the defects to be continuously optimized, which makes the user's operation more convenient and improves the user experience.
  • the step of disconnecting the APP client from the IPC terminal includes a process of assisting the APP client to close the connection with the IPC terminal.
  • the APP client shares audio and video information to other parts of the client for playback, and the APP client directly connected to the IPC terminal needs to cancel sharing to forcibly close the connection with the IPC terminal.
  • the process is further illustrated. If the APP client and the IPC terminal are connected to each other through the base station as a transit station, the specific process is as follows: the APP client actively closes the TCP long connection with the base station. The server sends an information notification to the APP client that needs to be unshared and forcibly closed.
  • the APP client may send a signaling to the server to forcibly close the connection with the IPC terminal, and the server receives the notification.
  • the signaling of the connection with the IPC terminal is forcibly closed, the signaling result is fed back to the base station, and the control base station is disconnected from the APP client, and the IPC terminal is sent to close the connection with the APP client. It is notified that after receiving the IPC terminal, the TCP connection with the base station is also closed. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal.
  • the step of disconnecting the APP client from the IPC terminal includes monitoring the use or operation status of the playback client by the audio and video information relay station.
  • the process is further illustrated. If the APP client and the IPC terminal are connected through the base station as a transit station, the specific process is as follows: when the base station detects no APP client or other After the playing client is using or operating the IPC terminal for more than a preset time, the base station closes the TCP connection with the IPC terminal, and the APP client also disconnects from the IPC terminal and the base station. Open the connection. It not only saves related resources, avoids waste of resources, but also prolongs the service life of related equipment to a certain extent.
  • the server avoids the process of binding the APP client to the IPC terminal, establishing a connection, and generating an encryption key and a decryption key, respectively, and transmitting the same to the APP client and the IPC terminal.
  • the illegal user acquires and/or decrypts the audio and video stream information of the user, ensures the security of the audio and video stream information transmission, and further improves the security of the user's privacy; in addition, the invention has better information interactivity and stability, and is convenient to use. Sexuality and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
  • the present invention also provides an IPC service implementation system based on an encryption mechanism, that is, a server for implementing an IPC service based on an encryption mechanism.
  • an encryption mechanism that is, a server for implementing an IPC service based on an encryption mechanism.
  • the following includes the modules included in the system and the specific functions implemented by each module.
  • the system includes:
  • the receiving module 11 is configured to receive a connection and registration request of the IPC terminal, and complete registration thereof.
  • the IPC terminal initiates a connection request to the receiving module 11, and after the connection is successful, the IPC terminal initiates a registration request to the receiving module 11 through the HTTPS, and the receiving module 11 acquires configuration information used by the IPC terminal for registration and authentication.
  • the server compares the configuration information, and if it determines that the SN already exists and is not the same QID, returns a bound error message, if If it is determined that the SN already exists and is the same QID, the TS word number data is updated. If it is determined that the SN does not exist, the data is stored in the database and the response data is returned to the APP client; after the registration authentication is passed, the IPC terminal obtains a login to the server. ID and its corresponding token token.
  • the IPC terminal enters the server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can perform correspondingly through the server. Operation.
  • system of the present invention further includes a generating transfer module 13 and a control module 12.
  • the generating and transmitting module 13 is configured to generate an encryption key and a decryption key, and respectively transmit the same to the IPC terminal and the APP client bound to the IPC terminal.
  • the control module 12 is configured to control the APP client to be bound to the IPC terminal.
  • the control module 12 includes: a grant determining unit, configured to obtain the binding data of the IPC terminal by the APP client, and a method for determining whether the APP client is in a binding state, and if yes, The result of the determination is returned, and the result signaling is downlink-bound, and if not, the binding operation and the return result are performed, and the result signaling is downlink-bound.
  • the generating and transmitting module 13 generates an encryption key and a decryption key by using a symmetric encryption algorithm, transmits the encryption key to the IPC terminal, and transmits the corresponding decryption key to the APP client bound to the IPC terminal.
  • the process of binding the IPC terminal to the APP client includes: first, the APP client requests the server to obtain the binding data of the IPC terminal through the QID and the TS, and the granting judgment unit grants the request, and determines the location.
  • the server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result of the failure of obtaining the failure is returned to the APP client, and the next acquisition request of the APP client is awaited.
  • the system of the present invention further includes a receiving control module 14 configured to receive a play request of the APP client, and control the APP client to establish a connection with the IPC terminal, so that the IPC terminal will utilize the encryption key.
  • the encrypted audio and video stream is transmitted to an APP client that can be decrypted by using the decryption key for decryption playback.
  • the receiving control module 14 includes:
  • the control unit 141 is configured to control the APP client to initiate a connection to the IPC terminal.
  • the determining unit 142 is configured to determine whether the sig provided by the APP client and the IPC terminal is legal by using a public key check; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if it is determined to be If yes, the APP client is granted a connection with the IPC terminal.
  • the APP client initiates a play request to the receiving control module 14 through HTTPS, and the receiving control module 14 receives the play request and returns a corresponding response notification.
  • the process of establishing a connection between the APP client and the IPC terminal includes: the control unit 141 of the server controls the APP client to initiate a connection to the IPC terminal, and then the determining unit 142 of the server uses the public key check to determine the APP client. Whether the sig provided by the terminal and the IPC terminal is legal; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if the determination is yes, the APP client is allowed to establish a connection with the IPC terminal. .
  • the process is further illustrated as follows. For example, the APP client and the IPC terminal establish a connection through the base station as a relay station.
  • the control unit 141 of the server controls the APP client to initiate a TCP to the base station.
  • the base station uses the public key provided by the determining unit 142 of the server to check whether the sig provided by the APP client is legal.
  • the server sends the check result information to the IPC terminal, so that the IPC terminal sends the IPC terminal to the IPC terminal.
  • the base station initiates the connection, and the base station also uses the public key provided by the determining unit 142 of the server to check whether the sig provided by the IPC terminal is legal. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding follow-up actions. .
  • the IPC terminal encrypts the audio and video stream by using an encryption key, and then transmits the result to the APP client, and the APP client receives the encrypted audio and video stream and uses the corresponding After the decryption key is successfully decrypted, it can be played normally. If the APP client receives the encrypted audio and video stream without a decryption key or a corresponding decryption key, the encrypted audio and video stream cannot be decrypted normally. , that is, the audio and video cannot be played normally.
  • the encrypted audio and video should be encrypted.
  • the stream is shared with other playing clients, and not only the encrypted audio and video stream is shared, but also the corresponding decryption key is shared; the playing client of the encrypted audio and video stream shared by the APP client is received. It is also necessary to use the corresponding decryption key to decrypt the encrypted audio and video stream before playing normally. Therefore, the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
  • the system of the present invention further includes a processing module for processing operation control signaling sent by the APP client to the IPC terminal.
  • the processing module includes:
  • the first receiving unit 151 is configured to receive signaling sent by the APP client.
  • the notification sending unit 152 is configured to return response data to the APP client, and send an execution signaling that is signed by the private key to the IPC terminal, where the parameters of the execution signaling include a session ID and a signaling code. .
  • the second receiving unit 153 is configured to receive a signaling execution result uploaded by the IPC terminal.
  • the operation control signaling may include a light-on command, a shake command, a focus command, and the like;
  • the processing of the processing module includes: the APP client sends corresponding operation control signaling, and the first receiving unit 151 receives the After the signaling sent by the APP client, the response data is returned to the APP client, and the sending unit 152 sends an execution signaling notification by using the private key signature to the IPC terminal, and the IPC terminal receives the execution.
  • the parameters for performing signaling include a session ID and a signaling code.
  • the system of the present invention further includes a disconnection assistance module for assisting the APP client to close the connection with the IPC terminal.
  • the disconnection assistance module includes:
  • the strong closed receiving unit 161 is configured to receive signaling sent by the APP client to forcibly close the connection with the IPC terminal.
  • the strong-close sending unit 162 is configured to send a notification to the IPC terminal to close the connection with the APP client.
  • the APP client when the APP client shares the audio and video information to other parts of the client for playing, the APP client directly connected to the IPC terminal needs to cancel the sharing to forcibly close the connection with the IPC terminal.
  • the process is further illustrated. If the APP client and the IPC terminal are connected to each other through the base station as a transit station, the specific process is as follows: the APP client actively closes the TCP long connection with the base station. The server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the information notification, the APP client may send a signaling to the strong receiving unit to forcibly close the connection with the IPC terminal, and close the signal.
  • the receiving unit 161 After receiving the signaling for forcibly closing the connection with the IPC terminal, the receiving unit 161 feeds back the signaling result to the base station, and the control base station disconnects from the APP client, and at the same time, the strong-close sending unit 162 sends the signal to the IPC.
  • the terminal sends a notification to close the connection with the APP client, and after receiving the IPC terminal, the TCP connection with the base station is also closed. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal.
  • the APP client does not share the audio and video information, the APP client only needs to actively close the connection with the IPC terminal; if the base station detects that there is no APP client or other playback client, the IPC terminal is After the user uses or operates for more than the preset time, the base station closes the TCP connection with the IPC terminal, and the APP client also disconnects from the IPC terminal and the base station.
  • the system of the present invention further includes a push assistance module for assisting the IPC terminal to push an event to the APP client.
  • the push assisting module includes:
  • the push receiving unit 171 is configured to receive event data sent by the IPC terminal.
  • the sending and sending unit 172 is configured to return response data to the IPC terminal, and send a message notification of the event to the APP client.
  • the request receiving unit 173 is configured to receive a request for the APP client to acquire event specific data, and respond to the request.
  • the working process of the push assisting module includes: the IPC terminal pushes the event data to the server through the HTTPS, and after the push receiving unit 171 receives the event data sent by the IPC terminal, the push sending unit 172 returns a response to the IPC terminal.
  • the data is sent to the APP client to send a message notification of the event.
  • the request receiving unit 173 receives the message.
  • the APP client Get a request for event specific data and respond to the request.
  • the message notification sent by the sending and delivering unit 172 to the APP client is signed by using the server private key, and the message notification parameter includes a session ID and a signaling code.
  • system of the present invention further includes an unbundling assistance module for assisting in processing the unbinding between the APP client and the IPC terminal.
  • the working process of the unbinding assistance module is basically the same as the working process of the processing module, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal; the difference is that the unbinding assistance module
  • the work process requires the server to delete the local binding state.
  • the unbinding assistance module has a binding state relationship that facilitates the APP client to freely control the IPC terminal.
  • system of the present invention further includes an upgrade assistance module for assisting in processing the APP client to trigger the IPC terminal upgrade.
  • the working process of the upgrade assisting module integrates the working process of the processing module, which is similar to the APP client sending an upgrade signaling to the IPC terminal, but in the process, the IPC terminal is further closed and opened.
  • the IPC terminal will feedback the upgrade process status information to the server multiple times.
  • the upgrade assistance module can continuously optimize various defects, make the user operation more convenient, and improve the user experience.
  • the server avoids the process of binding the APP client to the IPC terminal, establishing a connection, and generating an encryption key and a decryption key, respectively, and transmitting the same to the APP client and the IPC terminal.
  • the illegal user acquires and/or decrypts the audio and video stream information of the user, ensures the security of the audio and video stream information transmission, and further improves the security of the user's privacy; in addition, the invention has better information interactivity and stability, and is convenient to use. Sexuality and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
  • the present invention further provides an IPC service implementation method based on an encryption mechanism, which describes the method from the perspective of the entire large system (including an APP client, a main server, and an IPC terminal), and can program the IPC service of the encryption mechanism.
  • the implementation is implemented as a computer program implemented on a remote network device, including but not limited to a computer, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers.
  • an exemplary embodiment of an IPC service implementation method based on an encryption mechanism according to the present invention includes the following steps:
  • the IPC terminal connects to the primary server by using HTTP or HTTPS and registers with the primary server, and then the APP client performs binding with the IPC terminal.
  • the IPC terminal initiates a connection request to the primary server. After the connection is successful, the IPC terminal initiates a registration request to the primary server through the HTTPS, and the primary server acquires configuration information used by the IPC terminal for registration and authentication, and the primary server The configuration information is compared and determined. If it is determined that the SN already exists and is not the same QID, the bound error message is returned. If it is determined that the SN already exists and is the same QID, the TS word number data is updated, and if it is determined that the SN does not exist, Then the data is stored in the library and the response data is returned to the APP client; after the registration authentication is passed, the IPC terminal obtains an ID and its corresponding token token that is logged into the main server.
  • the IPC terminal enters the main server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the main server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can pass the primary server. Take the appropriate action.
  • the process of binding the APP client to the IPC terminal includes: first, the APP client requests the primary server to obtain the binding data of the IPC terminal through the QID and the TS, and after the primary server grants the request, Determining whether the APP client has been bound, if the determination is yes, returning the determination result, and downlink binding result signaling to the APP client; if the determination is no, performing the binding operation and returning the result And downlink binding result signaling to the APP client and the IPC terminal.
  • the primary server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result notification of the failure of the acquisition is returned to the APP client, and the next acquisition request of the APP client is awaited.
  • the primary server generates an encryption key and a decryption key, and transmits the encryption key to the IPC terminal, and transmits the decryption key to the APP client.
  • the encryption key and the decryption key are generated by using a symmetric encryption algorithm.
  • the APP client sends a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station.
  • the APP client initiates a play request to the primary server by using HTTPS, and the primary server receives the play request and returns a corresponding response notification.
  • the process of establishing a connection between the APP client and the IPC terminal includes: the APP client initiates a connection to the IPC terminal, and then the primary server uses the public key check to determine the sig provided by the APP client and the IPC terminal. If the determination is no, the APP client is not allowed to establish a connection with the IPC terminal. If the determination is yes, the APP client is allowed to establish a connection with the IPC terminal.
  • the process is further illustrated as follows. For example, the APP client and the IPC terminal establish a connection through the base station as a relay station.
  • the APP client initiates a TCP connection to the base station, and then the base station uses the master.
  • the public key check provided by the server determines whether the sig provided by the APP client is legal.
  • the primary server sends the check result information to the IPC terminal, so that the IPC terminal initiates a connection to the base station, and the base station also uses the base station.
  • the public key check provided by the primary server determines whether the sig provided by the IPC terminal is legal. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding subsequent actions.
  • the IPC terminal encrypts the audio and video stream by using the encryption key, and then transmits the audio and video stream to the APP client.
  • the APP client After receiving the audio and video stream encrypted by the IPC terminal, the APP client decrypts the audio and video stream by using the decryption key to implement audio and video playback.
  • the APP client can perform normal decryption after performing decryption by using the corresponding decryption key, and if the APP client receives the encrypted audio and video stream, there is no decryption key or no Corresponding decryption key, then the encrypted audio and video stream cannot be decrypted normally, that is, the audio and video cannot be played normally.
  • the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
  • the method of the present invention further includes a step S350, in which the APP client and the IPC terminal are closed from the base station.
  • the APP client actively closes the TCP long connection with the base station, and then the base station sends the command result to the IPC terminal, and after receiving the IPC terminal, the TCP connection with the base station is also closed.
  • the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a transit station by other means.
  • the method of the present invention further includes a signaling processing step when the APP client sends operation control signaling to the IPC terminal; the step may be interspersed in the foregoing related steps, and the specific operation control
  • the signaling may include a light-on command, a shaking command, and a focus command.
  • the step specifically includes: the APP client sends corresponding operation control signaling, and after receiving the signaling sent by the APP client, the primary server The APP client returns the response data, and sends an execution signaling notification by using the private key signature to the IPC terminal, and after receiving the execution signaling notification, the IPC terminal performs an execution action corresponding to the execution signaling, and After the signaling execution result is uploaded to the primary server, the process ends after the primary server receives the signaling execution result uploaded by the IPC terminal, where the parameters for performing the signaling notification include a session ID and a signaling code.
  • the method of the present invention further includes the step of the IPC terminal pushing an event to the APP client.
  • the process includes: the IPC terminal pushes the event data to the primary server by using the HTTPS, and after receiving the event data sent by the IPC terminal, the primary server returns the response data to the IPC terminal and sends the response data to the APP client.
  • the message notification of the event after the APP client receives the message notification, if the event is intentionally sent to the main server to send a request for acquiring the specific data of the event, the main server receives the request of the APP client to acquire the specific data of the event and Respond to the request.
  • the message notification sent by the primary server to the APP client is signed by using its private key, and the message notification parameter includes a session ID and a signaling code. This step can greatly improve the interactivity of information between the APP client, the server and the IPC terminal, and also improve the timeliness and stability of information transmission.
  • the method of the present invention further includes the step of unbinding between the APP client and the IPC terminal.
  • the step of the step is substantially the same as the step of processing the operation control signaling sent by the APP client to the IPC terminal, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal;
  • the difference is that the process requires the primary server to delete the local binding state.
  • This step facilitates the binding state relationship between the APP client and the IPC terminal.
  • the method of the present invention further includes the step of the APP client triggering the IPC terminal upgrade.
  • the step process integrates the operation control signaling sent by the APP client to the IPC terminal, which is similar to the APP client sending an upgrade signaling to the IPC terminal, but in the process
  • the IPC terminal also closes the offline and starts the online process, and during this step, the IPC terminal feeds back the upgrade process status information to the primary server multiple times.
  • This step enables the defects to be continuously optimized, which makes the user's operation more convenient and improves the user experience.
  • step S350 the APP client and the IPC terminal are disconnected from the base station, the method includes: S351, the APP client sends a forced shutdown to the primary server. Signaling of the TCP connection between the APP client and the IPC terminal and the base station.
  • the primary server sends a notification to the IPC terminal to close a TCP connection with the base station.
  • the IPC terminal After receiving the notification sent by the primary server, the IPC terminal closes the TCP connection with the base station.
  • the APP client shares audio and video information to other parts of the client for playback, and the APP client directly connected to the IPC terminal needs to cancel sharing to forcibly close the connection with the IPC terminal.
  • the process is further illustrated. If the APP client and the IPC terminal are connected to each other through the base station as a transit station, the specific process is as follows: the APP client actively closes the TCP long connection with the base station. The primary server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the notification, the APP client may send a signaling to the primary server to forcibly close the connection with the IPC terminal, the primary server.
  • the signaling result After receiving the signaling for forcibly closing the connection with the IPC terminal, the signaling result is fed back to the base station, and the control base station disconnects from the APP client, and simultaneously sends the close to the APP client to the IPC terminal.
  • the notification of the end connection after receiving the IPC terminal, also closes the TCP connection with the base station. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal.
  • the above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
  • step S350 the APP client and the IPC terminal are disconnected from the base station, the method includes: S352, the base station detects that the APP client is not detected.
  • the IPC terminal is being used or operated for more than a preset time.
  • the base station closes a TCP connection with the IPC terminal.
  • the process is further illustrated as follows.
  • the specific process is as follows: when the base station detects that no APP client or other playing client is using or operating the IPC terminal for more than a preset time, The base station will close the TCP connection with the IPC terminal, and the APP client will also disconnect from the IPC terminal and the base station. It not only saves related resources, avoids waste of resources, but also prolongs the service life of related equipment to a certain extent.
  • the above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
  • the APP client binds to the IPC terminal, establishes a connection, and the primary server generates an encryption key and a decryption key and transmits the same to the APP client and the IPC terminal, respectively.
  • the illegal user is prevented from acquiring and/or decrypting the audio and video stream information of the user, thereby ensuring the security of the audio and video stream information transmission, thereby improving the security of the user's privacy; in addition, the invention has better information interactivity, stability, and use. Convenience and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
  • the present invention also provides an IPC service implementation system based on an encryption mechanism.
  • the following includes the modules included in the system and the specific functions implemented by the modules.
  • the system includes:
  • the registration binding module 31 is configured to connect the IPC terminal to the primary server via HTTP or HTTPS and register with the primary server, and the APP client performs binding with the IPC terminal.
  • the IPC terminal initiates a connection request to the primary server. After the connection is successful, the IPC terminal initiates a registration request to the primary server through the HTTPS, and the primary server acquires configuration information used by the IPC terminal for registration and authentication, and the primary server The configuration information is compared and determined. If it is determined that the SN already exists and is not the same QID, the bound error message is returned. If it is determined that the SN already exists and is the same QID, the TS word number data is updated, and if it is determined that the SN does not exist, Then the data is stored in the library and the response data is returned to the APP client; after the registration authentication is passed, the IPC terminal obtains an ID and its corresponding token token that is logged into the main server.
  • the IPC terminal enters the main server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the main server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can pass the primary server. Take the appropriate action.
  • the registration binding module 31 includes:
  • a binding judging unit configured to acquire, by the qd and ts, the binding data of the IPC terminal, and determine whether the APP client is in a binding state; if yes, return the determination result, and downlink Binding result signaling; if not, performing binding operation and returning result, and downlink binding result signaling.
  • the process of binding the APP client to the IPC terminal includes: first, the APP client requests the primary server to obtain the binding data of the IPC terminal through the QID and the TS, and after the primary server grants the request, the determining Whether the APP client has been bound, if the determination is yes, the decision result is returned, and the downlink binding result signaling is sent to the APP client; if the determination is no, the binding operation and the return result are executed, and at the same time, The downlink binding result signaling is sent to the APP client and the IPC terminal.
  • the primary server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result notification of the failure of the acquisition is returned to the APP client, and the next acquisition request of the APP client is awaited.
  • the key generation module 32 is configured to generate an encryption key and a decryption key by the primary server, and transmit the encryption key to the IPC terminal and transmit the decryption key to the APP client.
  • the encryption key and the decryption key adopt a symmetric encryption method.
  • the base station connection module 33 is configured to send, by the APP client, a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station.
  • the base station connection module 33 includes:
  • the first connection unit 331 is configured to initiate, by the APP client, a TCP connection to the base station.
  • the first check determining unit 332 is configured to determine, by the base station, whether the sig provided by the APP client is legal by using a public key check of the primary server; if the determination is negative, the connection fails; if the determination is yes, the The APP client establishes a connection with the base station, and sends a notification for connecting the base station to the IPC terminal by using the primary server.
  • the second connection unit 333 is configured to initiate, by the IPC terminal, a TCP connection to the base station.
  • the second check determining unit 334 is configured to determine, by the base station, whether the sig provided by the IPC terminal is legal using the public key check of the primary server; if the determination is negative, the connection fails, and if the determination is yes, the IPC The terminal establishes a connection with the base station.
  • the process of establishing a connection between the APP client and the IPC terminal includes: first, the APP client initiates a TCP connection to the base station, and then the base station uses the public key provided by the primary server to check whether the sig provided by the APP client is legal.
  • the primary server sends the check result information to the IPC terminal, so that the IPC terminal initiates a connection to the base station, and the base station also checks whether the sig provided by the IPC terminal is legal by using the public key provided by the primary server. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding subsequent actions.
  • the system of the present invention further includes an encryption module 34, configured to encrypt the audio and video stream by the IPC terminal by using the encryption key, and then transmit the audio and video stream to the APP client.
  • an encryption module 34 configured to encrypt the audio and video stream by the IPC terminal by using the encryption key, and then transmit the audio and video stream to the APP client.
  • the decryption module 35 is configured to perform decryption processing on the audio and video stream by using the decryption key after the APP client receives the audio and video stream encrypted by the IPC terminal, so as to implement audio and video playback.
  • the APP client can perform normal decryption after performing decryption by using the corresponding decryption key, and if the APP client receives the encrypted audio and video stream, there is no decryption key or no Corresponding decryption key, then the encrypted audio and video stream cannot be decrypted normally, that is, the audio and video cannot be played normally.
  • the encrypted audio and video stream must be shared not only, but also Need to divide the corresponding decryption key
  • the playing client that receives the encrypted audio and video stream shared by the APP client also needs to use the corresponding decryption key to decrypt the encrypted audio and video stream before playing normally. Therefore, the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
  • the system of the present invention further includes a base station disconnection mode for the APP client and the IPC terminal to close the connection with the base station, 36;
  • the base station disconnection module 36 includes:
  • a first disconnecting unit configured to perform, by the APP client, an operation of closing a TCP connection with the base station.
  • the working process of the base station disconnection module 36 includes: the APP client actively closes the TCP long connection with the base station, and then the base station sends the command result to the IPC terminal, and after receiving the IPC terminal, the TCP connection with the base station is also closed.
  • the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a transit station by other means.
  • the system of the present invention further includes a signaling processing module for signaling processing when the APP client sends operation control signaling to the IPC terminal.
  • the signaling processing module includes:
  • the signaling sending unit 371 is configured to send, by the APP client, signaling to the primary server by using HTTPS.
  • the information notification delivery unit 372 is configured to return response data to the primary server, and send an information notification of performing signaling to the IPC terminal by using HTTP.
  • the signaling execution unit 373 is configured to perform corresponding operations according to the signaling content by the IPC terminal, and upload a signaling execution result.
  • the working process of the signaling processing module includes: the APP client sends corresponding operation control signaling, and after receiving the signaling sent by the APP client, the primary server returns response data to the APP client. And sending an execution signaling notification by using the private key signature to the IPC terminal, after receiving the execution signaling notification, the IPC terminal performs an execution action corresponding to the execution signaling, and uploads signaling execution to the primary server.
  • the primary server receives the signaling execution result uploaded by the IPC terminal, the process ends; wherein the parameters for performing the signaling notification include a session ID and a signaling code.
  • the operation control signaling may include a light-on command, a shake command, a focus command, and the like.
  • the system of the present invention further includes an event pushing module for the IPC terminal to push an event to the APP client.
  • the event pushing module includes:
  • the event sending unit 381 is configured to send, by the IPC terminal, event data to the primary server by using HTTPS.
  • the event issuance unit 382 is configured to return response data to the primary server, and send an information notification of the event to the APP client by using HTTP.
  • the event obtaining unit 383 is configured to request, by the APP client, specific data of an event to the primary server by using HTTPS.
  • the working process of the event pushing module includes: the IPC terminal pushes event data to the primary server by using the HTTPS, and after receiving the event data sent by the IPC terminal, the primary server returns the response data to the IPC terminal and
  • the APP client sends a message notification of the event, after the APP client receives the message notification, if the event is intentionally sent to the primary server to send a request for obtaining the specific data of the event, the primary server receives the APP client to obtain the request.
  • a request for event specific data and respond to the request.
  • the message notification sent by the primary server to the APP client is signed by using its private key, and the message notification parameter includes a session ID and a signaling code.
  • system of the present invention further includes an unbinding module for unbinding between the APP client and the IPC terminal.
  • the working process of the unbinding module is similar to the working process of the signaling processing module, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal; the difference is that the unbinding module
  • the work process requires the primary server to remove the local binding state.
  • the unbinding module has a binding state relationship that facilitates the APP client to freely control the IPC terminal.
  • system of the present invention further includes an upgrade module for the APP client to trigger the upgrade of the IPC terminal.
  • the working process of the upgrade module is similar to the working process of the signaling processing module, and the APP client sends an upgrade signaling to the IPC terminal, but the IPC terminal is also closed in the process.
  • the process of going offline and starting the online, and in the process, the IPC terminal will feedback the upgrade process status information to the primary server multiple times.
  • the upgrade module can be systemized The defect is continuously optimized to make the user's operation more convenient and improve the user experience.
  • the base station disconnection module 36 further includes:
  • And disconnecting the sending unit configured to send, by the APP client, signaling for forcibly closing a TCP connection between the APP client and the IPC terminal and the base station to the primary server.
  • a notification sending unit configured to send, by the primary server, a notification to close the TCP connection with the base station to the IPC terminal.
  • a second disconnecting unit configured to: after the IPC terminal receives the notification sent by the primary server, the IPC terminal closes a TCP connection with the base station.
  • the APP client shares audio and video information to other parts of the client for playback, and the APP client directly connected to the IPC terminal needs to cancel sharing to forcibly close the connection with the IPC terminal.
  • the specific process is as follows: the APP client actively closes the TCP long connection with the base station, and the primary server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the information notification, the APP client can then redirect to the primary server. Sending a signaling for forcibly closing the connection with the IPC terminal, after receiving the signaling for forcibly closing the connection with the IPC terminal, the primary server feeds back the signaling result to the base station, and controls the base station and the APP client to be disconnected.
  • connection is opened, and at the same time, the IPC terminal is notified to close the connection with the APP client, and after receiving the IPC terminal, the TCP connection with the base station is also closed. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal.
  • the above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
  • the base station disconnection module 36 further includes:
  • a third disconnecting unit configured to: when the base station detects that the APP client is not using or operating the IPC terminal, and continues to exceed a preset time, the base station closes the TCP with the IPC terminal. connection.
  • the process of the base station disconnection module is further illustrated as follows: when the base station detects that no APP client or other playback client is using or operating the IPC terminal. After the preset time is exceeded, the base station closes the TCP connection with the IPC terminal, and the APP client also disconnects from the IPC terminal and the base station. It not only saves related resources, avoids waste of resources, but also prolongs the service life of related equipment to a certain extent.
  • the above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
  • the APP client binds to the IPC terminal, establishes a connection, and the primary server generates an encryption key and a decryption key and transmits the same to the APP client and the IPC terminal, respectively.
  • the illegal user is prevented from acquiring and/or decrypting the audio and video stream information of the user, thereby ensuring the security of the audio and video stream information transmission, thereby improving the security of the user's privacy; in addition, the invention has better information interactivity, stability, and use. Convenience and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of some or all of the components of an encryption mechanism based IPC service implementation system in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 17 shows a block diagram of a computing device for performing the method in accordance with the present invention.
  • the computing device conventionally includes a processor 1710 and a computer program product or computer readable medium in the form of a memory 1720.
  • the memory 1720 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1720 has a memory space 1730 for program code 1731 for performing any of the method steps described above.
  • the storage space 1730 for program code may include respective program codes 1731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage segment, a storage space, and the like that are similarly arranged to the storage 1720 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 1731', ie, code that can be read by a processor, such as, for example, 1710, which when executed by a computing device causes the computing device to perform each of the methods described above step.

Abstract

The present invention relates to the technical field of communications, and in particular to an encryption mechanism-based IPC service implementation method and system. The method comprises: receiving a connection and registration request of an IPC terminal to complete the registration thereof; generating an encryption key and a decryption key, and respectively and correspondingly transmitting same to the IPC terminal and an APP client bound with the IPC terminal; and receiving a playing request of the APP client, and controlling the APP client so that same establishes a connection with the IPC terminal, so as to enable the IPC terminal to transmit an audio and video stream encrypted using the encryption key to the APP client which can use the decryption key for decryption to perform decryption and playing. In the present solution, a server controls processes of an APP client being bound with and establishing a connection with an IPC terminal, and generating an encryption key and a decryption key and respectively transmitting same to the APP client and the IPC terminal, etc., thereby preventing an illegitimate user from acquiring and/or decrypting a user's audio and video stream information, ensuring the security of audio and video stream information transmission, and further improving the security of the user's privacy.

Description

基于加密机制的IPC服务实现方法及系统Method and system for implementing IPC service based on encryption mechanism 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种基于加密机制的IPC服务实现方法及系统。The present invention relates to the field of communications technologies, and in particular, to a method and system for implementing an IPC service based on an encryption mechanism.
背景技术Background technique
随着移动互联网的快速发展,IPC(IP Camera;网络摄像机)技术现在已经得到了广泛的应用。视频监控的服务对象也逐渐从只面向行业和企业的专业服务发展到面向个人和家庭等广大公众提供通用的视频监控服务,同时,其监控系统的网络环境也逐渐地从专网、局域网向互联网发展;当前提供给个人用户的网络视频监控一般都是基于互联网的,个人和家庭在家中安装网络摄像机获得远程视频监控服务方便的同时,用户也担心和重视视频数据的安全问题,担心视频数据泄露或视频数据在传输过程中被非法截获而轻易知晓其视频信息。With the rapid development of the mobile Internet, IPC (IP Camera) technology has now been widely used. The service targets of video surveillance are gradually developing from professional services for industry and enterprises to general video surveillance services for the general public such as individuals and families. At the same time, the network environment of its monitoring system is gradually moving from private network to LAN. Development; network video surveillance currently provided to individual users is generally based on the Internet. Individuals and families install network cameras at home to obtain remote video surveillance services. At the same time, users also worry about and pay attention to the security of video data, and worry about video data leakage. Or video data is illegally intercepted during transmission and its video information is easily known.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于加密机制的IPC服务实现方法及系统。In view of the above problems, the present invention has been made in order to provide an encryption mechanism based IPC service implementation method and system that overcomes the above problems or at least partially solves the above problems.
依据本发明的一个方面,提供了一种基于加密机制的IPC服务实现方法,其包括有以下步骤:According to an aspect of the present invention, an IPC service implementation method based on an encryption mechanism is provided, which includes the following steps:
接收IPC终端的连接及注册请求,完成其注册;Receiving the connection and registration request of the IPC terminal and completing its registration;
生成加密密钥和解密密钥,分别对应传送给所述IPC终端及与该IPC终端相绑定的APP(Application;应用程序)客户端;Generating an encryption key and a decryption key, respectively corresponding to an APP (Application; application) client that is transmitted to the IPC terminal and bound to the IPC terminal;
接收所述APP客户端的播放请求,控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给能够利用所述解密密钥进行解密的APP客户端进行解密播放。Receiving a play request of the APP client, and controlling the APP client to establish a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by using the encryption key to the APP that can be decrypted by using the decryption key. The client performs decryption playback.
依据本发明的一个方面,提供了一种基于加密机制的IPC服务实现系统,其包括:According to an aspect of the present invention, an IPC service implementation system based on an encryption mechanism is provided, which includes:
接收模块,用于接收IPC终端的连接及注册请求,完成其注册;a receiving module, configured to receive a connection and registration request of the IPC terminal, and complete registration thereof;
生成传送模块,用于生成加密密钥和解密密钥,并分别对应传送给所述IPC终端及与该IPC终端相绑定的APP客户端;Generating a transmission module, configured to generate an encryption key and a decryption key, and respectively corresponding to the IPC terminal and an APP client bound to the IPC terminal;
接收控制模块,用于接收所述APP客户端的播放请求,并控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给能够利用所述解密密钥进行解密的APP客户端进行解密播放。a receiving control module, configured to receive a play request of the APP client, and control the APP client to establish a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by using the encryption key to enable The APP client decrypting the key for decryption plays the decrypted play.
依据本发明的一个方面,还提供了一种基于加密机制的IPC服务实现方法,其包括有以下步骤:According to an aspect of the present invention, an IPC service implementation method based on an encryption mechanism is further provided, which includes the following steps:
IPC终端通过HTTP或HTTPS与主服务器连接并向所述主服务器注册,然后,APP客户端与所述IPC终端实施绑定;The IPC terminal connects to the primary server through HTTP or HTTPS and registers with the primary server, and then the APP client performs binding with the IPC terminal;
所述主服务器产生加密密钥和解密密钥,并将所述加密密钥传送给所述IPC终端,将所述解密密钥传送给所述APP客户端,所述加密密钥与解密密钥采用对称加密法;The primary server generates an encryption key and a decryption key, and transmits the encryption key to the IPC terminal, and transmits the decryption key to the APP client, the encryption key and a decryption key Using symmetric encryption;
所述APP客户端向所述主服务器发送播放请求,使所述APP客户端与IPC终端分别与基站建立TCP连接;Sending, by the APP client, a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station;
所述IPC终端利用所述加密密钥将音视频流进行加密后传送给所述APP客户端;The IPC terminal encrypts the audio and video stream by using the encryption key, and transmits the audio and video stream to the APP client;
所述APP客户端收到所述IPC终端加密处理过的音视频流后,利用所述解密密钥对音视频流进行解密处理,以便实现音视频的播放。After receiving the audio and video stream encrypted by the IPC terminal, the APP client decrypts the audio and video stream by using the decryption key to implement audio and video playback.
本发明还提供了一种基于加密机制的IPC服务实现系统,其包括:The invention also provides an IPC service implementation system based on an encryption mechanism, which comprises:
注册绑定模块,用于所述IPC终端通过HTTP或HTTPS与主服务器连接并向所述主服务器注册,以及APP客户端与所述IPC终端实施绑定;Registering a binding module, the IPC terminal is connected to the primary server by using HTTP or HTTPS, and is registered with the primary server, and the APP client performs binding with the IPC terminal;
密钥生成模块,用于所述主服务器产生加密密钥和解密密钥,并将所述加密密钥传送给所述IPC终端及将所述解密密钥传送给所述APP客户端;所述加密密钥与解密密钥采用对称加密法;a key generation module, configured to generate an encryption key and a decryption key by the primary server, and transmit the encryption key to the IPC terminal and transmit the decryption key to the APP client; The encryption key and the decryption key are symmetrically encrypted;
基站连接模块,用于所述APP客户端向所述主服务器发送播放请求,使所述APP客户端与 IPC终端分别与基站建立TCP连接;a base station connection module, configured to send, by the APP client, a play request to the primary server, so that the APP client The IPC terminal establishes a TCP connection with the base station respectively;
加密模块,用于所述IPC终端利用所述加密密钥将音视频流进行加密后传送给所述APP客户端;An encryption module, configured to: the IPC terminal encrypts the audio and video stream by using the encryption key, and transmits the audio and video stream to the APP client;
解密模块,用于当所述APP客户端收到所述IPC终端加密处理过的音视频流后,利用所述解密密钥对音视频流进行解密处理,以便实现音视频的播放。And a decryption module, configured to perform decryption processing on the audio and video stream by using the decryption key after the APP client receives the audio and video stream encrypted by the IPC terminal, so as to implement audio and video playback.
依据本发明的一个方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行前述所述的任一个基于加密机制的IPC服务实现方法。According to an aspect of the invention there is provided a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform any of said encryption based mechanisms described above IPC service implementation method.
依据本发明的另一个方面,还一种计算机可读介质,其中存储了如上所述的计算机程序。According to another aspect of the present invention, a computer readable medium storing the computer program as described above.
与现有技术相比,本发明具备如下优点:Compared with the prior art, the present invention has the following advantages:
本发明中服务器生成加密密钥和解密密钥,分别对应传送给所述IPC终端及与该IPC终端相绑定的APP客户端,当服务器接收到所述APP客户端的播放请求时,服务器控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给APP客户端,APP客户端收到加密后的音视频流利用与加密密钥对应的解密密钥对所述音视频流进行解密播放;该过程中只有对实施加密处理过的音视频流解密成功后,音视频流才可正常播放,若APP客户端无对加密的音视频流进行解密的解密密钥或解密密钥与加密密钥不对应,那么即使该客户端获取了该音视频流也无法对其解密处理,进而也无法正常播放,相应地,确保了音视频信息的安全性,即对用户的隐私起到了较好的保护。In the present invention, the server generates an encryption key and a decryption key, which are respectively transmitted to the IPC terminal and the APP client bound to the IPC terminal. When the server receives the playback request of the APP client, the server control office The APP client establishes a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by the encryption key to the APP client, and the APP client receives the encrypted audio and video stream corresponding to the encryption key. The decryption key decrypts and plays the audio and video stream; in the process, only after the audio and video stream that has been encrypted and processed is successfully decrypted, the audio and video stream can be played normally, if the APP client does not perform the encrypted audio and video stream. The decrypted decryption key or decryption key does not correspond to the encryption key, so even if the client acquires the audio and video stream, it cannot be decrypted and processed, and thus cannot be played normally, and accordingly, the security of the audio and video information is ensured. Sex, that is, the user's privacy is better protected.
相应地,本发明中服务器控制所述APP客户端与IPC终端建立连接时,服务器会利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;当判定为否时,不准予所述APP客户端与IPC终端建立连接,当判定为是时,才准予所述APP客户端与IPC终端建立连接;该过程可防止非与所述IPC终端相绑定的APP客户端与所述IPC终端建立连接,进而防止非与所述IPC终端相绑定的APP客户端获取音视频流,其进一步提高了音视频信息的安全性,使用户的隐私得到了更好的保护Correspondingly, when the server controls the APP client to establish a connection with the IPC terminal, the server uses the public key check to determine whether the sig provided by the APP client and the IPC terminal is legal; when the determination is no, the server does not Granting the APP client to establish a connection with the IPC terminal, and when the determination is yes, granting the APP client to establish a connection with the IPC terminal; the process can prevent the APP client and the non-IPC terminal from being bound to the IPC terminal. The IPC terminal establishes a connection, thereby preventing the APP client not bound to the IPC terminal from acquiring audio and video streams, which further improves the security of the audio and video information, and the user's privacy is better protected.
由上述可知,本发明提供的技术方案一方面通过认证获取并保存主控设备与智能设备之间的相应控制关系,另一方面保存智能设备之间的关联关系,依据智能设备与智能设备之间的关联关系,建立对应的主控设备之间的关联关系,依据此方案,主控设备间的关联信息是依据智能设备间的关联信息被动建立的,使得主控设备对智能设备的控制不再局限于一对一的单独控制,而是主控设备通过主控设备间的关联信息对相应的智能设备间的关联信息进行监督和控制,实现主控设备对相应的智能设备的更为全面有效的控制。It can be seen from the above that the technical solution provided by the present invention acquires and saves the corresponding control relationship between the master device and the smart device through authentication, and saves the association relationship between the smart devices on the other hand, according to the relationship between the smart device and the smart device. According to the scheme, the association information between the master devices is passively established according to the association information between the smart devices, so that the control of the smart device by the master device is no longer controlled. Limited to one-to-one individual control, the master device supervises and controls the related information between the corresponding smart devices through the association information between the master devices, so that the master device is more comprehensive and effective for the corresponding smart devices. control.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1是本发明中基于加密机制的IPC服务实现方法的一个实施例的程序流程图;1 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention;
图2是本发明中基于加密机制的IPC服务实现方法的一个实施例的程序流程图;2 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention;
图3是本发明中基于加密机制的IPC服务实现系统的一个实施例的结构框图;3 is a structural block diagram of an embodiment of an IPC service implementation system based on an encryption mechanism in the present invention;
图4是本发明中基于加密机制的IPC服务实现系统中接收控制模块的一个实施例的结构框图;4 is a structural block diagram of an embodiment of a receiving control module in an IPC service implementation system based on an encryption mechanism in the present invention;
图5是本发明中基于加密机制的IPC服务实现系统中处理模块的一个实施例的结构框图;5 is a structural block diagram of an embodiment of a processing module in an IPC service implementation system based on an encryption mechanism in the present invention;
图6是本发明中基于加密机制的IPC服务实现系统中断连协助模块的一个实施例的结构框图; 6 is a structural block diagram of an embodiment of an IPC service implementation system interrupt connection assistance module based on an encryption mechanism in the present invention;
图7是本发明中基于加密机制的IPC服务实现系统中推送协助模块的一个实施例的结构框图;7 is a structural block diagram of an embodiment of a push assisting module in an IPC service implementation system based on an encryption mechanism in the present invention;
图8是本发明中基于加密机制的IPC服务实现方法的一个实施例的程序流程图;8 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention;
图9是本发明中基于加密机制的IPC服务实现方法的一个实施例的程序流程图;9 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention;
图10是本发明中基于加密机制的IPC服务实现方法的一个实施例的程序流程图;10 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention;
图11是本发明中基于加密机制的IPC服务实现方法的一个实施例的程序流程图;11 is a flowchart of a process of an embodiment of an IPC service implementation method based on an encryption mechanism in the present invention;
图12是本发明中基于加密机制的IPC服务实现系统的一个实施例的结构框图;12 is a structural block diagram of an embodiment of an IPC service implementation system based on an encryption mechanism in the present invention;
图13是本发明中基于加密机制的IPC服务实现系统的一个实施例的结构框图;13 is a structural block diagram of an embodiment of an IPC service implementation system based on an encryption mechanism in the present invention;
图14是本发明中基于加密机制的IPC服务实现系统中基站连接模块的一个实施例的结构框图;14 is a structural block diagram of an embodiment of a base station connection module in an IPC service implementation system based on an encryption mechanism in the present invention;
图15是本发明中基于加密机制的IPC服务实现系统中信令处理模块的一个实施例的结构框图;15 is a structural block diagram of an embodiment of a signaling processing module in an IPC service implementation system based on an encryption mechanism in the present invention;
图16是本发明中基于加密机制的IPC服务实现系统中事件推送模块的一个实施例的结构框图;16 is a structural block diagram of an embodiment of an event pushing module in an IPC service implementation system based on an encryption mechanism in the present invention;
图17示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 17 is a schematic block diagram showing a computing device for performing a method in accordance with the present invention;
图18示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。Fig. 18 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
具体实施例Specific embodiment
下面结合附图和示例性实施例对本发明作进一步地描述,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。此外,如果已知技术的详细描述对于示出本发明的特征是不必要的,则将其省略。The invention is further described in the following with reference to the drawings and exemplary embodiments, which are illustrated in the accompanying drawings, in which the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. . The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting. Further, if a detailed description of a known technique is not necessary to show the features of the present invention, it will be omitted.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。The singular forms "a", "an", "the" It is to be understood that the phrase "comprise" or "an" Integers, steps, operations, components, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element. Further, "connected" or "coupled" as used herein may include either a wireless connection or a wireless coupling. The phrase "and/or" used herein includes all or any one and all combinations of one or more of the associated listed.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs, unless otherwise defined. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互 联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal device" used herein include both a wireless signal receiver device, a device having only a wireless signal receiver without a transmitting capability, and a receiving and transmitting hardware. A device having a device capable of performing two-way communication receiving and transmitting hardware on a two-way communication link. Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data Processing, fax, and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars, and/or GPS (Global Positioning System (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver. As used herein, "terminal", "terminal device" may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form. The "terminal" and "terminal device" used herein may also be a communication terminal, an internet terminal, a music/video playback terminal, and may be, for example, a PDA or a MID (Mobile Internet Device). Networked devices) and/or mobile phones with music/video playback capabilities can also be devices such as smart TVs, set-top boxes, and the like.
本技术领域技术人员可以理解,这里所使用的服务器、云端、远端网络设备等概念,具有等同效果,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,远端网络设备、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络通信以及基于蓝牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the concepts of servers, clouds, remote network devices, and the like used herein have equivalent effects, including but not limited to computers, network hosts, single network servers, multiple network server sets, or multiple servers. The cloud that makes up. Here, the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers. In the embodiment of the present invention, the communication between the remote network device, the terminal device and the WNS server can be implemented by any communication method, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, TCP/IP, UDP protocol. Computer network communication and short-range wireless transmission based on Bluetooth and infrared transmission standards.
有必要先对本发明的应用场景及其原理进行如下的先导性说明。It is necessary to first make a preliminary description of the application scenario and principles of the present invention as follows.
互联网中,一般包括用户端(用户移动终端)、网络和服务器(如网站的Web服务器等)。其中用户端可以是用户的互联网移动终端,如台式机(PC)、膝上型计算机(Laptop),带有网页浏览功能的智能型设备,如个人数字助理(Personal Digital Assisstant,PDA),以及移动互联网设备(Mobile Internet Device,MID)和智能手机(Phone)等。这些移动终端都可以在互联网环境中,典型的如英特网环境中,请求由另一进程(如服务器提供的进程)提供某项服务。In the Internet, it generally includes a client (user mobile terminal), a network, and a server (such as a web server of a website). The client can be a user's Internet mobile terminal, such as a desktop computer (PC), a laptop (Laptop), a smart device with web browsing capabilities, such as a personal digital assistant (PDA), and mobile Internet devices (MID) and smartphones (Phone). These mobile terminals can all request a service by another process (such as a server-provided process) in an Internet environment, typically in an Internet environment.
服务器通常是可通过互联网等通信媒介,典型的如英特网访问的远程计算机系统。而且,服务器通常可以为来自互联网的多个用户端提供服务。提供服务过程包括接收用户端发来的请求,收集用户端情报和反馈信息等。实质上,服务器充当计算机网络的信息提供者这一角色。服务器通常位于提供服务的一方,或由服务提供方配置以服务内容,这样的服务提供方可以如互联网服务公司的网站等。The server is typically a remote computer system that can be accessed via a communication medium such as the Internet, typically such as the Internet. Moreover, servers can often serve multiple clients from the Internet. The service process includes receiving requests from the client, collecting user information and feedback information, and the like. In essence, the server acts as an information provider for the computer network. The server is usually located on the party providing the service, or configured by the service provider to serve the content, such a service provider may be, for example, an Internet service company's website.
本发明的有关方法和终端的应用场景,是以适合于音视频播放及带有网页浏览功能的智能设备为下文中所述APP客户端,例如台式机、膝上型计算机、PDA、MID及智能手机等,以云服务器为下文中所述的服务器,以适合于采集音视频数据及带有网络连接功能的智能设备为下文中所述IPC终端为例来进行示例性说明。其中所述APP客户端与IPC终端上安装有通过网络与服务器实现数据交互的应用程序。需要说明的是,该描述仅是示例性的,本发明的范围并不限于此。The application method of the related method and terminal of the present invention is an APP device suitable for audio and video playback and web browsing function, such as a desktop client, a laptop computer, a PDA, a MID, and an intelligent device. A mobile phone or the like, with the cloud server as the server described below, is exemplified by taking an IPC terminal as described below as an example for an intelligent device suitable for collecting audio and video data and with a network connection function. The APP client and the IPC terminal are installed with an application that implements data interaction with the server through the network. It should be noted that the description is merely exemplary, and the scope of the invention is not limited thereto.
以下将详细说明为了运用上述的原理实现上述的场景而提出的本发明的若干技术方案的具体实施方式。需要说明的是,本发明提供了一种基于加密机制的IPC服务实现方法,即从服务器的视角来描述该方法,可以通过编程将加密机制的IPC服务实现方法实现为计算机程序在远端网络设备上实现,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, specific embodiments of several technical solutions of the present invention proposed to implement the above-described scenarios using the above-described principles will be described in detail. It should be noted that the present invention provides an IPC service implementation method based on an encryption mechanism, that is, the method is described from the perspective of a server, and the IPC service implementation method of the encryption mechanism can be implemented as a computer program in a remote network device by programming. Implementations include, but are not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers.
请参阅图1,本发明一种基于加密机制的IPC服务实现方法的一个典型实施例,具体包括以下步骤:Referring to FIG. 1, an exemplary embodiment of an IPC service implementation method based on an encryption mechanism according to the present invention includes the following steps:
S100,接收IPC终端的连接及注册请求,完成其注册。S100. Receive a connection and registration request of the IPC terminal, and complete registration.
具体的,所述IPC终端向服务器发起连接请求,连接成功后,所述IPC终端再通过HTTPS向服务器发起注册请求,服务器获取所述IPC终端用于注册及认证的配置信息,服务器对配置信息进行比对判断,若判定SN已经存在且不是同一个QID,则返回已绑定错误消息,若判定SN已经存在且是同一个QID,则更新TS字数数据,若判定SN不存在,则将数据入库并返回响应数据给APP客户端;注册认证通过后,IPC终端会获得一个登陆到服务器端的ID及其相应的令牌token。IPC终端通过网络进入服务器端页面,在相应对话框中输入ID及其相应的令牌token,服务器端对IPC终端的ID和token进行验证,当验证通过后,IPC终端即可通过服务器进行相应的操作。Specifically, the IPC terminal initiates a connection request to the server. After the connection is successful, the IPC terminal initiates a registration request to the server through the HTTPS, and the server obtains configuration information used by the IPC terminal for registration and authentication, and the server performs configuration information. The comparison judges that if it is determined that the SN already exists and is not the same QID, the bound error message is returned. If it is determined that the SN already exists and is the same QID, the TS word number data is updated, and if it is determined that the SN does not exist, the data is entered. The library also returns the response data to the APP client; after the registration authentication is passed, the IPC terminal obtains an ID and its corresponding token token that is logged into the server. The IPC terminal enters the server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can perform correspondingly through the server. operating.
进一步的,本发明所述的方法,还包括步骤S110,生成加密密钥和解密密钥,分别对应传送给所述IPC终端及与该IPC终端相绑定的APP(Application;应用程序)客户端。Further, the method of the present invention further includes a step S110, generating an encryption key and a decryption key, respectively corresponding to the IPC terminal and an APP (Application; application client) bound to the IPC terminal. .
具体的,所述服务器采用对称加密算法生成加密密钥和解密密钥,将加密密钥传送给IPC终端,将对应的解密密钥传送给与该IPC终端相绑定的APP客户端。其中,所述IPC终端与APP客户端相绑定的过程包括有:首先,APP客户端通过QID和TS向服务器请求获取所述IPC终端的 绑定数据,服务器准予该请求后,判断所述APP客户端是否已经绑定,若判定为是,则将该判定结果返回,并下行绑定结果信令至所述APP客户端;若判定为否,则执行绑定操作及返回结果,同时下行绑定结果信令至所述APP客户端与IPC终端。另外,若服务器不准予APP客户端获取所述IPC终端的绑定数据,则获取失败,并向所述APP客户端返回获取失败的结果通知,等待APP客户端的发起下一次获取请求。Specifically, the server uses a symmetric encryption algorithm to generate an encryption key and a decryption key, transmits the encryption key to the IPC terminal, and transmits the corresponding decryption key to the APP client bound to the IPC terminal. The process of binding the IPC terminal to the APP client includes: first, the APP client requests the server to obtain the IPC terminal through the QID and the TS. After binding the data, the server determines whether the APP client has been bound, and if the determination is yes, returns the determination result, and downlinks the binding result signaling to the APP client; If no, the binding operation is performed and the result is returned, and the downlink binding result signaling is sent to the APP client and the IPC terminal. In addition, if the server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result of the failure of obtaining the failure is returned to the APP client, and the next acquisition request of the APP client is awaited.
进一步的,本发明所述的方法,还包括步骤S120,接收所述APP客户端的播放请求,控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给能够利用所述解密密钥进行解密的APP客户端进行解密播放。Further, the method of the present invention further includes a step S120, receiving a play request of the APP client, and controlling the APP client to establish a connection with the IPC terminal, so that the IPC terminal encrypts the voice by using an encryption key. The video stream is transmitted to an APP client that can be decrypted using the decryption key for decryption playback.
具体的,所述APP客户端通过HTTPS向服务器发起播放请求,服务器接收该播放请求并返回相应响应通知。Specifically, the APP client initiates a play request to the server through HTTPS, and the server receives the play request and returns a corresponding response notification.
其中,所述APP客户端与IPC终端建立连接的过程包括有:服务器控制所述APP客户端向IPC终端发起连接,然后服务器再利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;若判定为否时,则不准予所述APP客户端与IPC终端建立连接,若判定为是时,则准予所述APP客户端与IPC终端建立连接。为便于理解,对该过程进一步举例说明,具体如下:例如,所述APP客户端与IPC终端通过基站作为中转站以建立连接,首先,服务器控制所述APP客户端向基站发起TCP连接,然后基站使用服务器提供的公钥检查判断APP客户端提供的sig是否合法,当检查判断结果为合法时,服务器将该检查判断结果信息下发至IPC终端,使IPC终端向基站发起连接,进而基站也使用服务器提供的公钥检查判断IPC终端提供的sig是否合法,若检查判断结果为合法,则APP客户端与IPC终端建立连接,可进行相应的后续动作。The process of establishing a connection between the APP client and the IPC terminal includes: the server controls the APP client to initiate a connection to the IPC terminal, and then the server uses the public key check to determine the APP client and the IPC terminal. Whether the sig is legal or not; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if the determination is yes, the APP client is permitted to establish a connection with the IPC terminal. For ease of understanding, the process is further illustrated as follows. For example, the APP client and the IPC terminal establish a connection through the base station as a relay station. First, the server controls the APP client to initiate a TCP connection to the base station, and then the base station. The public key provided by the server is used to check whether the sig provided by the APP client is legal. When the check result is legal, the server sends the check result information to the IPC terminal, so that the IPC terminal initiates a connection to the base station, and the base station also uses the base station. The public key check provided by the server determines whether the sig provided by the IPC terminal is legal. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding subsequent actions.
在上述过程完成后,所述IPC终端会利用加密密钥将音视频流进行加密处理,然后传送给发送给所述APP客户端,所述APP客户端收到加密后的音视频流后利用对应解密密钥实施解密成功之后即可正常播放,若APP客户端收到加密后的音视频流后无解密密钥或无对应的解密密钥,那么就无法正常对加密的音视频流进行解密处理,也即无法正常播放音视频。After the foregoing process is completed, the IPC terminal encrypts the audio and video stream by using an encryption key, and then transmits the result to the APP client, and the APP client receives the encrypted audio and video stream and uses the corresponding After the decryption key is successfully decrypted, it can be played normally. If the APP client receives the encrypted audio and video stream without a decryption key or a corresponding decryption key, the encrypted audio and video stream cannot be decrypted normally. , that is, the audio and video cannot be played normally.
另外,若合法的及具有可对加密音视频流进行正常解密密钥的APP客户端要将该加密音视频流分享给其他的播放客户端,则不仅要将该加密音视频流分享过去,还需将对应的解密密钥一并分享;收到所述APP客户端分享的加密音视频流的播放客户端,同样要采用对应的解密密钥对加密音视频流解密后方可正常播放。因此,本发明方案在确保用户隐私的同时,也可对经合法用户的授权后,将用户愿意分享的音视频信息分享给相关用户。In addition, if the APP client that is legal and has a normal decryption key for the encrypted audio and video stream shares the encrypted audio and video stream with other playback clients, the encrypted audio and video stream must be shared not only, but also The corresponding decryption key needs to be shared together; the playback client that receives the encrypted audio and video stream shared by the APP client must also use the corresponding decryption key to decrypt the encrypted audio and video stream before playing normally. Therefore, the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
进一步的,请参见附图2,本发明所述的方法,还包括步骤S130,所述APP客户端与IPC终端断开连接。Further, referring to FIG. 2, the method of the present invention further includes the step S130, the APP client is disconnected from the IPC terminal.
具体的,所述APP客户端主动关闭与IPC终端的连接,接着IPC终端即关闭。为便于理解,对该过程进一步举例说明,若所述APP客户端与IPC终端是通过基站作为中转站以建立连接的前提下,其具体如下:APP客户端主动关闭与基站的TCP长连接,然后基站将指令结果发送给IPC终端,IPC终端收到后,也关闭与基站的TCP连接。Specifically, the APP client actively closes the connection with the IPC terminal, and then the IPC terminal is closed. For ease of understanding, the process is further illustrated. If the APP client and the IPC terminal are connected through the base station as a transit station, the details are as follows: the APP client actively closes the TCP long connection with the base station, and then The base station sends the command result to the IPC terminal, and after receiving the IPC terminal, the TCP connection with the base station is also closed.
进一步的,本发明所述的方法,还包括处理所述APP客户端向所述IPC终端发送的操作控制信令的步骤;该步骤可穿插于前述相关步骤过程中的,其具体操作控制信令可包括开灯指令、摇头指令及调焦指令等;该步骤具体包括:APP客户端发送相应的操作控制信令,服务器接收到所述APP客户端发送来的信令后,向所述APP客户端返回响应数据,并向所述IPC终端下发采用私钥签名的执行信令通知,IPC终端接收到所述执行信令通知后,作出与该执行信令对应的执行动作,并向服务器上传信令执行结果,服务器接收到所述IPC终端上传来的信令执行结果后,过程结束;其中,所述执行信令通知的参数包括会话ID及信令码。Further, the method of the present invention further includes the step of processing the operation control signaling sent by the APP client to the IPC terminal; the step may be interspersed in the foregoing related step process, and the specific operation control signaling The device may include a light-on command, a shake-up command, and a focus command. The step includes: the APP client sends corresponding operation control signaling, and after receiving the signaling sent by the APP client, the server sends the signal to the APP client. And returning the response data to the IPC terminal, and sending an execution signaling notification by using the private key signature to the IPC terminal, after receiving the execution signaling notification, the IPC terminal performs an execution action corresponding to the execution signaling, and uploads to the server. After the server receives the signaling execution result uploaded by the IPC terminal, the process ends. The parameters for performing the signaling include the session ID and the signaling code.
进一步的,本发明所述的方法,还包括协助所述IPC终端向APP客户端推送事件的步骤。Further, the method of the present invention further includes the step of assisting the IPC terminal to push an event to the APP client.
具体的,该过程包括:IPC终端通过HTTPS向服务器推送事件数据,服务器接收所述IPC终端发送来的事件数据后,向所述IPC终端返回响应数据并向所述APP客户端下发该事件的消息通 知,APP客户端收到消息通知后,若对该事件有意向可向所述服务器发送获取该事件具体数据的请求,服务器接收所述APP客户端获取事件具体数据的请求并响应该请求。其中,服务器向所述APP客户端下发的消息通知会使用其私钥进行签名,消息通知参数包括会话ID及信令码。该步骤可大大提高APP客户端、服务器及IPC终端之间的信息的交互性,同时也提高了信息传送的及时性及稳定性。Specifically, the process includes: the IPC terminal pushes the event data to the server through the HTTPS, and after receiving the event data sent by the IPC terminal, the server returns the response data to the IPC terminal and sends the event to the APP client. News After the APP client receives the message notification, if the event is intentionally sent to the server to send a request for acquiring the specific data of the event, the server receives the request of the APP client to acquire event specific data and responds to the request. The message notification sent by the server to the APP client is signed by using its private key, and the message notification parameter includes a session ID and a signaling code. This step can greatly improve the interactivity of information between the APP client, the server and the IPC terminal, and also improve the timeliness and stability of information transmission.
进一步的,本发明所述的方法,还包括协助处理所述APP客户端与IPC终端之间解除绑定的步骤。Further, the method of the present invention further includes the step of assisting in processing the unbinding between the APP client and the IPC terminal.
具体的,该步骤过程与处理所述APP客户端向所述IPC终端发送的操作控制信令的步骤基本一致,其就相当于所述APP客户端向IPC终端发送了一个解绑信令;所不同的是该过程需要服务器删除本地绑定状态。该步骤有便于APP客户端自由控制与IPC终端的绑定状态关系。Specifically, the step of the step is substantially the same as the step of processing the operation control signaling sent by the APP client to the IPC terminal, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal; The difference is that the process requires the server to remove the local binding state. This step facilitates the binding state relationship between the APP client and the IPC terminal.
进一步的,本发明所述的方法,还包括协助处理所述APP客户端触发所述IPC终端升级的步骤。Further, the method of the present invention further includes the step of assisting the processing of the APP client to trigger the IPC terminal upgrade.
具体的,该步骤过程综合了所述APP客户端向所述IPC终端发送的操作控制信令的步骤,其类似于所述APP客户端向IPC终端发送了一个升级信令,但是在该过程中还包括IPC终端关闭下线及开启上线的过程,且在该步骤过程中,IPC终端会多次向服务器反馈升级进程状态信息。该步骤可使各项缺陷不断得到优化解决,使用户操作更便捷,提高用户的使用体验度。Specifically, the step process integrates the operation control signaling sent by the APP client to the IPC terminal, which is similar to the APP client sending an upgrade signaling to the IPC terminal, but in the process The IPC terminal also closes the offline and starts the online process, and during this step, the IPC terminal feeds back the upgrade process status information to the server multiple times. This step enables the defects to be continuously optimized, which makes the user's operation more convenient and improves the user experience.
在本发明的又一个实施例中,所述APP客户端与IPC终端断开连接的步骤中,包括协助所述APP客户端关闭与所述IPC终端的连接的过程。例如,APP客户端将音视频信息共享给其他部分客户端播放,与IPC终端直接连接的APP客户端就需要取消共享,以强制关闭与所述IPC终端的连接。为便于理解,对该过程进一步举例说明,若所述APP客户端与IPC终端是通过基站作为中转站以建立连接的前提下,其具体过程如下:APP客户端主动关闭与基站的TCP长连接,服务器向APP客户端发送一个需取消共享、强制关闭的信息通知,APP客户端收到该信息通知后,可再向服务器发送一个强制关闭与所述IPC终端的连接的信令,服务器收到该强制关闭与所述IPC终端的连接的信令后,将该信令结果反馈至基站,控制基站与APP客户端断开连接,同时,向所述IPC终端发送关闭与所述APP客户端连接的通知,IPC终端收到后,也关闭与基站的TCP连接。其不仅可防止IPC终端直接所有者用户误操作而造成的不便,还有便于IPC终端直接所有者用户对共享信息的控制性。In still another embodiment of the present invention, the step of disconnecting the APP client from the IPC terminal includes a process of assisting the APP client to close the connection with the IPC terminal. For example, the APP client shares audio and video information to other parts of the client for playback, and the APP client directly connected to the IPC terminal needs to cancel sharing to forcibly close the connection with the IPC terminal. For ease of understanding, the process is further illustrated. If the APP client and the IPC terminal are connected to each other through the base station as a transit station, the specific process is as follows: the APP client actively closes the TCP long connection with the base station. The server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the notification, the APP client may send a signaling to the server to forcibly close the connection with the IPC terminal, and the server receives the notification. After the signaling of the connection with the IPC terminal is forcibly closed, the signaling result is fed back to the base station, and the control base station is disconnected from the APP client, and the IPC terminal is sent to close the connection with the APP client. It is notified that after receiving the IPC terminal, the TCP connection with the base station is also closed. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal.
在本发明的又一个实施例中,所述APP客户端与IPC终端断开连接的步骤中包括音视频信息中转站对播放客户端使用或操作状态的监控。为便于理解,对该过程进一步举例说明,若所述APP客户端与IPC终端是通过基站作为中转站以建立连接的前提下,其具体过程如下:当所述基站检测到无APP客户端或其他播放客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站即会关闭与所述IPC终端的TCP连接,同时,APP客户端也会与IPC终端及基站断开连接。其不仅可节约相关资源,避免资源的浪费,还可在一定程度上延长相关设备的使用寿命。In still another embodiment of the present invention, the step of disconnecting the APP client from the IPC terminal includes monitoring the use or operation status of the playback client by the audio and video information relay station. For ease of understanding, the process is further illustrated. If the APP client and the IPC terminal are connected through the base station as a transit station, the specific process is as follows: when the base station detects no APP client or other After the playing client is using or operating the IPC terminal for more than a preset time, the base station closes the TCP connection with the IPC terminal, and the APP client also disconnects from the IPC terminal and the base station. Open the connection. It not only saves related resources, avoids waste of resources, but also prolongs the service life of related equipment to a certain extent.
综上所述,本发明中服务器通过控制APP客户端与IPC终端相绑定、建立连接,以及生成加密密钥和解密密钥并分别传送给APP客户端与IPC终端等过程,以此来避免非法用户获取和/或解密用户的音视频流信息,确保了音视频流信息传输的安全性,进而提高用户隐私的安全性;另外,本发明具有较好的信息交互性和稳定性、使用便捷性及较好的用户体验度,同时还可节约相关资源,避免资源的浪费,且可在一定程度上延长相关设备的使用寿命。In summary, in the present invention, the server avoids the process of binding the APP client to the IPC terminal, establishing a connection, and generating an encryption key and a decryption key, respectively, and transmitting the same to the APP client and the IPC terminal. The illegal user acquires and/or decrypts the audio and video stream information of the user, ensures the security of the audio and video stream information transmission, and further improves the security of the user's privacy; in addition, the invention has better information interactivity and stability, and is convenient to use. Sexuality and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
相应的,依据计算机软件的功能模块化思维,本发明还提供了一种基于加密机制的IPC服务实现系统,也即一种基于加密机制的IPC服务实现方法的服务器。请参见附图3,以下具体揭示本系统包括的模块及各模块实现的具体功能。该系统包括:Correspondingly, according to the functional modularization of computer software, the present invention also provides an IPC service implementation system based on an encryption mechanism, that is, a server for implementing an IPC service based on an encryption mechanism. Referring to FIG. 3, the following includes the modules included in the system and the specific functions implemented by each module. The system includes:
接收模块11,用于接收IPC终端的连接及注册请求,完成其注册。The receiving module 11 is configured to receive a connection and registration request of the IPC terminal, and complete registration thereof.
具体的,所述IPC终端向接收模块11发起连接请求,连接成功后,所述IPC终端再通过HTTPS向接收模块11发起注册请求,接收模块11获取所述IPC终端用于注册及认证的配置信息,服务器对配置信息进行比对判断,若判定SN已经存在且不是同一个QID,则返回已绑定错误消息,若 判定SN已经存在且是同一个QID,则更新TS字数数据,若判定SN不存在,则将数据入库并返回响应数据给APP客户端;注册认证通过后,IPC终端会获得一个登陆到服务器端的ID及其相应的令牌token。IPC终端通过网络进入服务器端页面,在相应对话框中输入ID及其相应的令牌token,服务器端对IPC终端的ID和token进行验证,当验证通过后,IPC终端即可通过服务器端进行相应的操作。Specifically, the IPC terminal initiates a connection request to the receiving module 11, and after the connection is successful, the IPC terminal initiates a registration request to the receiving module 11 through the HTTPS, and the receiving module 11 acquires configuration information used by the IPC terminal for registration and authentication. The server compares the configuration information, and if it determines that the SN already exists and is not the same QID, returns a bound error message, if If it is determined that the SN already exists and is the same QID, the TS word number data is updated. If it is determined that the SN does not exist, the data is stored in the database and the response data is returned to the APP client; after the registration authentication is passed, the IPC terminal obtains a login to the server. ID and its corresponding token token. The IPC terminal enters the server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can perform correspondingly through the server. Operation.
进一步的,本发明所述的系统还包括生成传送模块13与控制模块12。Further, the system of the present invention further includes a generating transfer module 13 and a control module 12.
生成传送模块13,用于生成加密密钥和解密密钥,并分别对应传送给所述IPC终端及与该IPC终端相绑定的APP客户端。The generating and transmitting module 13 is configured to generate an encryption key and a decryption key, and respectively transmit the same to the IPC terminal and the APP client bound to the IPC terminal.
控制模块12,用于控制所述APP客户端与IPC终端相绑定。其中,所述控制模块12包括:准予判断单元,用于准予所述APP客户端获取所述IPC终端的绑定数据;以及用于判断所述APP客户端是否已为绑定状态,若是,则将判定结果返回,并下行绑定结果信令,若否,则执行绑定操作及返回结果,并下行绑定结果信令。The control module 12 is configured to control the APP client to be bound to the IPC terminal. The control module 12 includes: a grant determining unit, configured to obtain the binding data of the IPC terminal by the APP client, and a method for determining whether the APP client is in a binding state, and if yes, The result of the determination is returned, and the result signaling is downlink-bound, and if not, the binding operation and the return result are performed, and the result signaling is downlink-bound.
具体的,所述生成传送模块13采用对称加密算法生成加密密钥和解密密钥,将加密密钥传送给IPC终端,将对应的解密密钥传送给与该IPC终端相绑定的APP客户端。其中,所述IPC终端与APP客户端相绑定的过程包括有:首先,APP客户端通过QID和TS向服务器请求获取所述IPC终端的绑定数据,准予判断单元准予该请求后,判断所述APP客户端是否已经绑定,若判定为是,则将该判定结果返回,并下行绑定结果信令至所述APP客户端;若判定为否,则执行绑定操作及返回结果,同时下行绑定结果信令至所述APP客户端与IPC终端。另外,若服务器不准予APP客户端获取所述IPC终端的绑定数据,则获取失败,并向所述APP客户端返回获取失败的结果通知,等待APP客户端的发起下一次获取请求。Specifically, the generating and transmitting module 13 generates an encryption key and a decryption key by using a symmetric encryption algorithm, transmits the encryption key to the IPC terminal, and transmits the corresponding decryption key to the APP client bound to the IPC terminal. . The process of binding the IPC terminal to the APP client includes: first, the APP client requests the server to obtain the binding data of the IPC terminal through the QID and the TS, and the granting judgment unit grants the request, and determines the location. Whether the APP client has been bound, if the determination is yes, the decision result is returned, and the downlink binding result signaling is sent to the APP client; if the determination is no, the binding operation and the return result are executed, and at the same time, The downlink binding result signaling is sent to the APP client and the IPC terminal. In addition, if the server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result of the failure of obtaining the failure is returned to the APP client, and the next acquisition request of the APP client is awaited.
进一步的,本发明所述的系统还包括接收控制模块14,用于接收所述APP客户端的播放请求,并控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给能够利用所述解密密钥进行解密的APP客户端进行解密播放。请参见附图4,所述接收控制模块14包括有:Further, the system of the present invention further includes a receiving control module 14 configured to receive a play request of the APP client, and control the APP client to establish a connection with the IPC terminal, so that the IPC terminal will utilize the encryption key. The encrypted audio and video stream is transmitted to an APP client that can be decrypted by using the decryption key for decryption playback. Referring to FIG. 4, the receiving control module 14 includes:
控制单元141,用于控制所述APP客户端向所述IPC终端发起连接;The control unit 141 is configured to control the APP client to initiate a connection to the IPC terminal.
判断单元142,用于利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;若判定为否时,则不准予所述APP客户端与IPC终端建立连接,若判定为是时,则准予所述APP客户端与IPC终端建立连接。The determining unit 142 is configured to determine whether the sig provided by the APP client and the IPC terminal is legal by using a public key check; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if it is determined to be If yes, the APP client is granted a connection with the IPC terminal.
具体的,所述APP客户端通过HTTPS向接收控制模块14发起播放请求,接收控制模块14接收该播放请求并返回相应响应通知。Specifically, the APP client initiates a play request to the receiving control module 14 through HTTPS, and the receiving control module 14 receives the play request and returns a corresponding response notification.
其中,所述APP客户端与IPC终端建立连接的过程包括有:服务器的控制单元141控制所述APP客户端向IPC终端发起连接,然后服务器的判断单元142再利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;若判定为否时,则不准予所述APP客户端与IPC终端建立连接,若判定为是时,则准予所述APP客户端与IPC终端建立连接。为便于理解,对该过程进一步举例说明,具体如下:例如,所述APP客户端与IPC终端通过基站作为中转站以建立连接,首先,服务器的控制单元141控制所述APP客户端向基站发起TCP连接,然后基站使用服务器的判断单元142提供的公钥检查判断APP客户端提供的sig是否合法,当检查判断结果为合法时,服务器将该检查判断结果信息下发至IPC终端,使IPC终端向基站发起连接,进而基站也使用服务器的判断单元142提供的公钥检查判断IPC终端提供的sig是否合法,若检查判断结果为合法,则APP客户端与IPC终端建立连接,可进行相应的后续动作。The process of establishing a connection between the APP client and the IPC terminal includes: the control unit 141 of the server controls the APP client to initiate a connection to the IPC terminal, and then the determining unit 142 of the server uses the public key check to determine the APP client. Whether the sig provided by the terminal and the IPC terminal is legal; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if the determination is yes, the APP client is allowed to establish a connection with the IPC terminal. . For ease of understanding, the process is further illustrated as follows. For example, the APP client and the IPC terminal establish a connection through the base station as a relay station. First, the control unit 141 of the server controls the APP client to initiate a TCP to the base station. After the connection is made, the base station uses the public key provided by the determining unit 142 of the server to check whether the sig provided by the APP client is legal. When the check result is legal, the server sends the check result information to the IPC terminal, so that the IPC terminal sends the IPC terminal to the IPC terminal. The base station initiates the connection, and the base station also uses the public key provided by the determining unit 142 of the server to check whether the sig provided by the IPC terminal is legal. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding follow-up actions. .
在上述过程完成后,所述IPC终端会利用加密密钥将音视频流进行加密处理,然后传送给发送给所述APP客户端,所述APP客户端收到加密后的音视频流后利用对应解密密钥实施解密成功之后即可正常播放,若APP客户端收到加密后的音视频流后无解密密钥或无对应的解密密钥,那么就无法正常对加密的音视频流进行解密处理,也即无法正常播放音视频。After the foregoing process is completed, the IPC terminal encrypts the audio and video stream by using an encryption key, and then transmits the result to the APP client, and the APP client receives the encrypted audio and video stream and uses the corresponding After the decryption key is successfully decrypted, it can be played normally. If the APP client receives the encrypted audio and video stream without a decryption key or a corresponding decryption key, the encrypted audio and video stream cannot be decrypted normally. , that is, the audio and video cannot be played normally.
另外,若合法的及具有可对加密音视频流进行正常解密密钥的APP客户端要将该加密音视频 流分享给其他的播放客户端,则不仅要将该加密音视频流分享过去,还需将对应的解密密钥一并分享;收到所述APP客户端分享的加密音视频流的播放客户端,同样要采用对应的解密密钥对加密音视频流解密后方可正常播放。因此,本发明方案在确保用户隐私的同时,也可对经合法用户的授权后,将用户愿意分享的音视频信息分享给相关用户。In addition, if the APP client that is legal and has a normal decryption key for the encrypted audio and video stream, the encrypted audio and video should be encrypted. The stream is shared with other playing clients, and not only the encrypted audio and video stream is shared, but also the corresponding decryption key is shared; the playing client of the encrypted audio and video stream shared by the APP client is received. It is also necessary to use the corresponding decryption key to decrypt the encrypted audio and video stream before playing normally. Therefore, the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
进一步的,本发明所述的系统还包括用于处理所述APP客户端向所述IPC终端发送的操作控制信令的处理模块。请参见附图5,所述处理模块包括:Further, the system of the present invention further includes a processing module for processing operation control signaling sent by the APP client to the IPC terminal. Referring to FIG. 5, the processing module includes:
第一接收单元151,用于接收所述APP客户端发送来的信令。The first receiving unit 151 is configured to receive signaling sent by the APP client.
通知下发单元152,用于向所述APP客户端返回响应数据及向所述IPC终端下发采用私钥签名的执行信令通知,所述执行信令通知的参数包括会话ID及信令码。The notification sending unit 152 is configured to return response data to the APP client, and send an execution signaling that is signed by the private key to the IPC terminal, where the parameters of the execution signaling include a session ID and a signaling code. .
第二接收单元153,用于接收所述IPC终端上传的信令执行结果。The second receiving unit 153 is configured to receive a signaling execution result uploaded by the IPC terminal.
具体的,所述操作控制信令可包括开灯指令、摇头指令及调焦指令等;所述处理模块工作过程包括:APP客户端发送相应的操作控制信令,第一接收单元151接收到所述APP客户端发送来的信令后,向所述APP客户端返回响应数据,通知下发单元152向所述IPC终端下发采用私钥签名的执行信令通知,IPC终端接收到所述执行信令通知后,作出与该执行信令对应的执行动作,并向服务器上传信令执行结果,第二接收单元153接收到所述IPC终端上传来的信令执行结果后,过程结束;其中,所述执行信令通知的参数包括会话ID及信令码。Specifically, the operation control signaling may include a light-on command, a shake command, a focus command, and the like; the processing of the processing module includes: the APP client sends corresponding operation control signaling, and the first receiving unit 151 receives the After the signaling sent by the APP client, the response data is returned to the APP client, and the sending unit 152 sends an execution signaling notification by using the private key signature to the IPC terminal, and the IPC terminal receives the execution. After the signaling is notified, an execution action corresponding to the execution signaling is performed, and a signaling execution result is uploaded to the server, and after the second receiving unit 153 receives the signaling execution result uploaded by the IPC terminal, the process ends; The parameters for performing signaling include a session ID and a signaling code.
进一步的,本发明所述的系统还包括用于协助所述APP客户端关闭与所述IPC终端的连接的断连协助模块。请参见附图6,所述断连协助模块包括:Further, the system of the present invention further includes a disconnection assistance module for assisting the APP client to close the connection with the IPC terminal. Referring to FIG. 6, the disconnection assistance module includes:
强闭接收单元161,用于接收所述APP客户端发送来的强制关闭与所述IPC终端的连接的信令。The strong closed receiving unit 161 is configured to receive signaling sent by the APP client to forcibly close the connection with the IPC terminal.
强闭发送单元162,用于向所述IPC终端发送关闭与所述APP客户端连接的通知。The strong-close sending unit 162 is configured to send a notification to the IPC terminal to close the connection with the APP client.
具体的,当APP客户端将音视频信息共享给其他部分客户端播放,与IPC终端直接连接的APP客户端就需要取消共享,以强制关闭与所述IPC终端的连接。为便于理解,对该过程进一步举例说明,若所述APP客户端与IPC终端是通过基站作为中转站以建立连接的前提下,其具体过程如下:APP客户端主动关闭与基站的TCP长连接,服务器向APP客户端发送一个需取消共享、强制关闭的信息通知,APP客户端收到该信息通知后,可向强闭接收单元发送一个强制关闭与所述IPC终端的连接的信令,强闭接收单元161收到该强制关闭与所述IPC终端的连接的信令后,将该信令结果反馈至基站,控制基站与APP客户端断开连接,同时,强闭发送单元162向所述IPC终端发送关闭与所述APP客户端连接的通知,IPC终端收到后,也关闭与基站的TCP连接。其不仅可防止IPC终端直接所有者用户误操作而造成的不便,还有便于IPC终端直接所有者用户对共享信息的控制性。另外,若APP客户端未将音视频信息共享时,APP客户端只需主动关闭与IPC终端的连接即可;若所述基站检测到无APP客户端或其他播放客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站即会关闭与所述IPC终端的TCP连接,同时,APP客户端也会与IPC终端及基站断开连接。Specifically, when the APP client shares the audio and video information to other parts of the client for playing, the APP client directly connected to the IPC terminal needs to cancel the sharing to forcibly close the connection with the IPC terminal. For ease of understanding, the process is further illustrated. If the APP client and the IPC terminal are connected to each other through the base station as a transit station, the specific process is as follows: the APP client actively closes the TCP long connection with the base station. The server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the information notification, the APP client may send a signaling to the strong receiving unit to forcibly close the connection with the IPC terminal, and close the signal. After receiving the signaling for forcibly closing the connection with the IPC terminal, the receiving unit 161 feeds back the signaling result to the base station, and the control base station disconnects from the APP client, and at the same time, the strong-close sending unit 162 sends the signal to the IPC. The terminal sends a notification to close the connection with the APP client, and after receiving the IPC terminal, the TCP connection with the base station is also closed. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal. In addition, if the APP client does not share the audio and video information, the APP client only needs to actively close the connection with the IPC terminal; if the base station detects that there is no APP client or other playback client, the IPC terminal is After the user uses or operates for more than the preset time, the base station closes the TCP connection with the IPC terminal, and the APP client also disconnects from the IPC terminal and the base station.
进一步的,本发明所述的系统还包括用于协助所述IPC终端向APP客户端推送事件的推送协助模块。请参见附图7,所述推送协助模块包括:Further, the system of the present invention further includes a push assistance module for assisting the IPC terminal to push an event to the APP client. Referring to FIG. 7, the push assisting module includes:
推送接收单元171,用于接收所述IPC终端发送来的事件数据。The push receiving unit 171 is configured to receive event data sent by the IPC terminal.
推送下发单元172,用于向所述IPC终端返回响应数据,并向所述APP客户端下发事件的消息通知。The sending and sending unit 172 is configured to return response data to the IPC terminal, and send a message notification of the event to the APP client.
请求接收单元173,用于接收所述APP客户端获取事件具体数据的请求,并响应其请求。The request receiving unit 173 is configured to receive a request for the APP client to acquire event specific data, and respond to the request.
具体的,所述推送协助模块工作过程包括:IPC终端通过HTTPS向服务器推送事件数据,推送接收单元171接收所述IPC终端发送来的事件数据后,推送下发单元172向所述IPC终端返回响应数据并向所述APP客户端下发该事件的消息通知,APP客户端收到消息通知后,若对该事件有意向可向所述服务器发送获取该事件具体数据的请求,请求接收单元173接收所述APP客户端 获取事件具体数据的请求并响应该请求。其中,推送下发单元172向所述APP客户端下发的消息通知会使用服务器私钥进行签名,消息通知参数包括会话ID及信令码。该过程可大大提高APP客户端、服务器及IPC终端之间的信息的交互性,同时也提高了信息传送的及时性及稳定性。Specifically, the working process of the push assisting module includes: the IPC terminal pushes the event data to the server through the HTTPS, and after the push receiving unit 171 receives the event data sent by the IPC terminal, the push sending unit 172 returns a response to the IPC terminal. The data is sent to the APP client to send a message notification of the event. After receiving the message notification, if the APP client intends to send a request for acquiring the specific data of the event to the server, the request receiving unit 173 receives the message. The APP client Get a request for event specific data and respond to the request. The message notification sent by the sending and delivering unit 172 to the APP client is signed by using the server private key, and the message notification parameter includes a session ID and a signaling code. This process can greatly improve the interactivity of information between the APP client, the server and the IPC terminal, and also improve the timeliness and stability of information transmission.
进一步的,本发明所述的系统还包括用于协助处理所述APP客户端与IPC终端之间解除绑定的解绑协助模块。Further, the system of the present invention further includes an unbundling assistance module for assisting in processing the unbinding between the APP client and the IPC terminal.
具体的,该解绑协助模块的工作过程与处理模块的工作过程基本一致,其就相当于所述APP客户端向IPC终端发送了一个解绑信令;所不同的是该解绑协助模块的工作过程需要服务器删除本地绑定状态。该解绑协助模块有便于APP客户端自由控制与IPC终端的绑定状态关系。Specifically, the working process of the unbinding assistance module is basically the same as the working process of the processing module, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal; the difference is that the unbinding assistance module The work process requires the server to delete the local binding state. The unbinding assistance module has a binding state relationship that facilitates the APP client to freely control the IPC terminal.
进一步的,本发明所述的系统还包括用于协助处理所述APP客户端触发所述IPC终端升级的升级协助模块。Further, the system of the present invention further includes an upgrade assistance module for assisting in processing the APP client to trigger the IPC terminal upgrade.
具体的,该升级协助模块的工作过程综合了处理模块的工作过程,其类似于所述APP客户端向IPC终端发送了一个升级信令,但是在该过程中还包括IPC终端关闭下线及开启上线的过程,且在该升级协助模块的工作过程中,IPC终端会多次向服务器反馈升级进程状态信息。该该升级协助模块可使各项缺陷不断得到优化解决,使用户操作更便捷,提高用户的使用体验度。Specifically, the working process of the upgrade assisting module integrates the working process of the processing module, which is similar to the APP client sending an upgrade signaling to the IPC terminal, but in the process, the IPC terminal is further closed and opened. During the process of going online, and during the work of the upgrade assistance module, the IPC terminal will feedback the upgrade process status information to the server multiple times. The upgrade assistance module can continuously optimize various defects, make the user operation more convenient, and improve the user experience.
综上所述,本发明中服务器通过控制APP客户端与IPC终端相绑定、建立连接,以及生成加密密钥和解密密钥并分别传送给APP客户端与IPC终端等过程,以此来避免非法用户获取和/或解密用户的音视频流信息,确保了音视频流信息传输的安全性,进而提高用户隐私的安全性;另外,本发明具有较好的信息交互性和稳定性、使用便捷性及较好的用户体验度,同时还可节约相关资源,避免资源的浪费,且可在一定程度上延长相关设备的使用寿命。In summary, in the present invention, the server avoids the process of binding the APP client to the IPC terminal, establishing a connection, and generating an encryption key and a decryption key, respectively, and transmitting the same to the APP client and the IPC terminal. The illegal user acquires and/or decrypts the audio and video stream information of the user, ensures the security of the audio and video stream information transmission, and further improves the security of the user's privacy; in addition, the invention has better information interactivity and stability, and is convenient to use. Sexuality and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
进一步,本发明还提供了一种基于加密机制的IPC服务实现方法,从整个大系统(包括APP客户端、主服务器及IPC终端)的视角来描述该方法,可以通过编程将加密机制的IPC服务实现方法实现为计算机程序在远端网络设备上实现,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。Further, the present invention further provides an IPC service implementation method based on an encryption mechanism, which describes the method from the perspective of the entire large system (including an APP client, a main server, and an IPC terminal), and can program the IPC service of the encryption mechanism. The implementation is implemented as a computer program implemented on a remote network device, including but not limited to a computer, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers.
请参阅图8,本发明一种基于加密机制的IPC服务实现方法的一个典型实施例,具体包括以下步骤:Referring to FIG. 8, an exemplary embodiment of an IPC service implementation method based on an encryption mechanism according to the present invention includes the following steps:
S300,IPC终端通过HTTP或HTTPS与主服务器连接并向所述主服务器注册,然后,APP客户端与所述IPC终端实施绑定。S300. The IPC terminal connects to the primary server by using HTTP or HTTPS and registers with the primary server, and then the APP client performs binding with the IPC terminal.
具体的,所述IPC终端向主服务器发起连接请求,连接成功后,所述IPC终端再通过HTTPS向主服务器发起注册请求,主服务器获取所述IPC终端用于注册及认证的配置信息,主服务器对配置信息进行比对判断,若判定SN已经存在且不是同一个QID,则返回已绑定错误消息,若判定SN已经存在且是同一个QID,则更新TS字数数据,若判定SN不存在,则将数据入库并返回响应数据给APP客户端;注册认证通过后,IPC终端会获得一个登陆到主服务器端的ID及其相应的令牌token。IPC终端通过网络进入主服务器端页面,在相应对话框中输入ID及其相应的令牌token,主服务器端对IPC终端的ID和token进行验证,当验证通过后,IPC终端即可通过主服务器进行相应的操作。Specifically, the IPC terminal initiates a connection request to the primary server. After the connection is successful, the IPC terminal initiates a registration request to the primary server through the HTTPS, and the primary server acquires configuration information used by the IPC terminal for registration and authentication, and the primary server The configuration information is compared and determined. If it is determined that the SN already exists and is not the same QID, the bound error message is returned. If it is determined that the SN already exists and is the same QID, the TS word number data is updated, and if it is determined that the SN does not exist, Then the data is stored in the library and the response data is returned to the APP client; after the registration authentication is passed, the IPC terminal obtains an ID and its corresponding token token that is logged into the main server. The IPC terminal enters the main server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the main server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can pass the primary server. Take the appropriate action.
另外,所述APP客户端与所述IPC终端实施绑定的过程包括有:首先,APP客户端通过QID和TS向主服务器请求获取所述IPC终端的绑定数据,主服务器准予该请求后,判断所述APP客户端是否已经绑定,若判定为是,则将该判定结果返回,并下行绑定结果信令至所述APP客户端;若判定为否,则执行绑定操作及返回结果,同时下行绑定结果信令至所述APP客户端与IPC终端。另外,若主服务器不准予APP客户端获取所述IPC终端的绑定数据,则获取失败,并向所述APP客户端返回获取失败的结果通知,等待APP客户端的发起下一次获取请求。In addition, the process of binding the APP client to the IPC terminal includes: first, the APP client requests the primary server to obtain the binding data of the IPC terminal through the QID and the TS, and after the primary server grants the request, Determining whether the APP client has been bound, if the determination is yes, returning the determination result, and downlink binding result signaling to the APP client; if the determination is no, performing the binding operation and returning the result And downlink binding result signaling to the APP client and the IPC terminal. In addition, if the primary server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result notification of the failure of the acquisition is returned to the APP client, and the next acquisition request of the APP client is awaited.
S310,所述主服务器产生加密密钥和解密密钥,并将所述加密密钥传送给所述IPC终端,将所述解密密钥传送给所述APP客户端。 S310. The primary server generates an encryption key and a decryption key, and transmits the encryption key to the IPC terminal, and transmits the decryption key to the APP client.
具体的,所述加密密钥与解密密钥采用对称加密算法生成。Specifically, the encryption key and the decryption key are generated by using a symmetric encryption algorithm.
S320,所述APP客户端向所述主服务器发送播放请求,使所述APP客户端与IPC终端分别与基站建立TCP连接。S320. The APP client sends a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station.
具体的,所述APP客户端是通过HTTPS向主服务器发起播放请求的,主服务器接收该播放请求并返回相应响应通知。其中,所述APP客户端与IPC终端建立连接的过程包括有:所述APP客户端向IPC终端发起连接,然后主服务器再利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;若判定为否时,则不准予所述APP客户端与IPC终端建立连接,若判定为是时,则准予所述APP客户端与IPC终端建立连接。为便于理解,对该过程进一步举例说明,具体如下:例如,所述APP客户端与IPC终端通过基站作为中转站以建立连接,首先,所述APP客户端向基站发起TCP连接,然后基站使用主服务器提供的公钥检查判断APP客户端提供的sig是否合法,当检查判断结果为合法时,主服务器将该检查判断结果信息下发至IPC终端,使IPC终端向基站发起连接,进而基站也使用主服务器提供的公钥检查判断IPC终端提供的sig是否合法,若检查判断结果为合法,则APP客户端与IPC终端建立连接,可进行相应的后续动作。Specifically, the APP client initiates a play request to the primary server by using HTTPS, and the primary server receives the play request and returns a corresponding response notification. The process of establishing a connection between the APP client and the IPC terminal includes: the APP client initiates a connection to the IPC terminal, and then the primary server uses the public key check to determine the sig provided by the APP client and the IPC terminal. If the determination is no, the APP client is not allowed to establish a connection with the IPC terminal. If the determination is yes, the APP client is allowed to establish a connection with the IPC terminal. For ease of understanding, the process is further illustrated as follows. For example, the APP client and the IPC terminal establish a connection through the base station as a relay station. First, the APP client initiates a TCP connection to the base station, and then the base station uses the master. The public key check provided by the server determines whether the sig provided by the APP client is legal. When the check result is legal, the primary server sends the check result information to the IPC terminal, so that the IPC terminal initiates a connection to the base station, and the base station also uses the base station. The public key check provided by the primary server determines whether the sig provided by the IPC terminal is legal. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding subsequent actions.
S330,所述IPC终端利用所述加密密钥将音视频流进行加密后传送给所述APP客户端。S330. The IPC terminal encrypts the audio and video stream by using the encryption key, and then transmits the audio and video stream to the APP client.
S340,所述APP客户端收到所述IPC终端加密处理过的音视频流后,利用所述解密密钥对音视频流进行解密处理,以便实现音视频的播放。S340. After receiving the audio and video stream encrypted by the IPC terminal, the APP client decrypts the audio and video stream by using the decryption key to implement audio and video playback.
具体的,所述APP客户端收到加密后的音视频流后利用对应解密密钥实施解密成功之后即可正常播放,若APP客户端收到加密后的音视频流后无解密密钥或无对应的解密密钥,那么就无法正常对加密的音视频流进行解密处理,也即无法正常播放音视频。Specifically, after receiving the encrypted audio and video stream, the APP client can perform normal decryption after performing decryption by using the corresponding decryption key, and if the APP client receives the encrypted audio and video stream, there is no decryption key or no Corresponding decryption key, then the encrypted audio and video stream cannot be decrypted normally, that is, the audio and video cannot be played normally.
另外,若合法的及具有可对加密音视频流进行正常解密密钥的APP客户端要将该加密音视频流分享给其他的播放客户端,则不仅要将该加密音视频流分享过去,还需将对应的解密密钥一并分享;收到所述APP客户端分享的加密音视频流的播放客户端,同样要采用对应的解密密钥对加密音视频流解密后方可正常播放。因此,本发明方案在确保用户隐私的同时,也可对经合法用户的授权后,将用户愿意分享的音视频信息分享给相关用户。In addition, if the APP client that is legal and has a normal decryption key for the encrypted audio and video stream shares the encrypted audio and video stream with other playback clients, the encrypted audio and video stream must be shared not only, but also The corresponding decryption key needs to be shared together; the playback client that receives the encrypted audio and video stream shared by the APP client must also use the corresponding decryption key to decrypt the encrypted audio and video stream before playing normally. Therefore, the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
进一步的,请参见附图9,本发明所述的方法,还包括步骤S350,所述APP客户端和IPC终端与所述基站关闭连接。Further, referring to FIG. 9, the method of the present invention further includes a step S350, in which the APP client and the IPC terminal are closed from the base station.
具体的,APP客户端主动关闭与基站的TCP长连接,然后基站将指令结果发送给IPC终端,IPC终端收到后,也关闭与基站的TCP连接。其中,以上是以基站作为中转站使APP客户端与IPC终端建立连接的前提下实施的,该基站用其他的方式作为中转站也可实施。Specifically, the APP client actively closes the TCP long connection with the base station, and then the base station sends the command result to the IPC terminal, and after receiving the IPC terminal, the TCP connection with the base station is also closed. The above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a transit station by other means.
进一步的,本发明所述的方法,还包括所述APP客户端向所述IPC终端发送操作控制信令时的信令处理步骤;该步骤可穿插于前述相关步骤过程中的,其具体操作控制信令可包括开灯指令、摇头指令及调焦指令等;该步骤具体包括:APP客户端发送相应的操作控制信令,主服务器接收到所述APP客户端发送来的信令后,向所述APP客户端返回响应数据,并向所述IPC终端下发采用私钥签名的执行信令通知,IPC终端接收到所述执行信令通知后,作出与该执行信令对应的执行动作,并向主服务器上传信令执行结果,主服务器接收到所述IPC终端上传来的信令执行结果后,过程结束;其中,所述执行信令通知的参数包括会话ID及信令码。Further, the method of the present invention further includes a signaling processing step when the APP client sends operation control signaling to the IPC terminal; the step may be interspersed in the foregoing related steps, and the specific operation control The signaling may include a light-on command, a shaking command, and a focus command. The step specifically includes: the APP client sends corresponding operation control signaling, and after receiving the signaling sent by the APP client, the primary server The APP client returns the response data, and sends an execution signaling notification by using the private key signature to the IPC terminal, and after receiving the execution signaling notification, the IPC terminal performs an execution action corresponding to the execution signaling, and After the signaling execution result is uploaded to the primary server, the process ends after the primary server receives the signaling execution result uploaded by the IPC terminal, where the parameters for performing the signaling notification include a session ID and a signaling code.
进一步的,本发明所述的方法,还包括所述IPC终端向APP客户端推送事件的步骤。Further, the method of the present invention further includes the step of the IPC terminal pushing an event to the APP client.
具体的,该过程包括:IPC终端通过HTTPS向主服务器推送事件数据,主服务器接收所述IPC终端发送来的事件数据后,向所述IPC终端返回响应数据并向所述APP客户端下发该事件的消息通知,APP客户端收到消息通知后,若对该事件有意向可向所述主服务器发送获取该事件具体数据的请求,主服务器接收所述APP客户端获取事件具体数据的请求并响应该请求。其中,主服务器向所述APP客户端下发的消息通知会使用其私钥进行签名,消息通知参数包括会话ID及信令码。该步骤可大大提高APP客户端、服务器及IPC终端之间的信息的交互性,同时也提高了信息传送的及时性及稳定性。Specifically, the process includes: the IPC terminal pushes the event data to the primary server by using the HTTPS, and after receiving the event data sent by the IPC terminal, the primary server returns the response data to the IPC terminal and sends the response data to the APP client. The message notification of the event, after the APP client receives the message notification, if the event is intentionally sent to the main server to send a request for acquiring the specific data of the event, the main server receives the request of the APP client to acquire the specific data of the event and Respond to the request. The message notification sent by the primary server to the APP client is signed by using its private key, and the message notification parameter includes a session ID and a signaling code. This step can greatly improve the interactivity of information between the APP client, the server and the IPC terminal, and also improve the timeliness and stability of information transmission.
进一步的,本发明所述的方法,还包括所述APP客户端与IPC终端之间解除绑定的步骤。 Further, the method of the present invention further includes the step of unbinding between the APP client and the IPC terminal.
具体的,该步骤过程与处理所述APP客户端向所述IPC终端发送的操作控制信令的步骤基本一致,其就相当于所述APP客户端向IPC终端发送了一个解绑信令;所不同的是该过程需要主服务器删除本地绑定状态。该步骤有便于APP客户端自由控制与IPC终端的绑定状态关系。Specifically, the step of the step is substantially the same as the step of processing the operation control signaling sent by the APP client to the IPC terminal, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal; The difference is that the process requires the primary server to delete the local binding state. This step facilitates the binding state relationship between the APP client and the IPC terminal.
进一步的,本发明所述的方法,还包括所述APP客户端触发所述IPC终端升级的步骤。Further, the method of the present invention further includes the step of the APP client triggering the IPC terminal upgrade.
具体的,该步骤过程综合了所述APP客户端向所述IPC终端发送的操作控制信令的步骤,其类似于所述APP客户端向IPC终端发送了一个升级信令,但是在该过程中还包括IPC终端关闭下线及开启上线的过程,且在该步骤过程中,IPC终端会多次向主服务器反馈升级进程状态信息。该步骤可使各项缺陷不断得到优化解决,使用户操作更便捷,提高用户的使用体验度。Specifically, the step process integrates the operation control signaling sent by the APP client to the IPC terminal, which is similar to the APP client sending an upgrade signaling to the IPC terminal, but in the process The IPC terminal also closes the offline and starts the online process, and during this step, the IPC terminal feeds back the upgrade process status information to the primary server multiple times. This step enables the defects to be continuously optimized, which makes the user's operation more convenient and improves the user experience.
请参见附图10,在本发明的一个实施例中,所述APP客户端和IPC终端与所述基站关闭连接的步骤S350中,包括:S351,所述APP客户端向主服务器发送强制关闭所述APP客户端和IPC终端与基站之间的TCP连接的信令。Referring to FIG. 10, in an embodiment of the present invention, in step S350, the APP client and the IPC terminal are disconnected from the base station, the method includes: S351, the APP client sends a forced shutdown to the primary server. Signaling of the TCP connection between the APP client and the IPC terminal and the base station.
S353,所述主服务器向所述IPC终端发送关闭与所述基站之间的TCP连接的通知。S353. The primary server sends a notification to the IPC terminal to close a TCP connection with the base station.
S355,所述IPC终端接收所述主服务器发送来的通知后,所述IPC终端关闭与所述基站的TCP连接。S355. After receiving the notification sent by the primary server, the IPC terminal closes the TCP connection with the base station.
例如,APP客户端将音视频信息共享给其他部分客户端播放,与IPC终端直接连接的APP客户端就需要取消共享,以强制关闭与所述IPC终端的连接。为便于理解,对该过程进一步举例说明,若所述APP客户端与IPC终端是通过基站作为中转站以建立连接的前提下,其具体过程如下:APP客户端主动关闭与基站的TCP长连接,主服务器向APP客户端发送一个需取消共享、强制关闭的信息通知,APP客户端收到该信息通知后,可再向主服务器发送一个强制关闭与所述IPC终端的连接的信令,主服务器收到该强制关闭与所述IPC终端的连接的信令后,将该信令结果反馈至基站,控制基站与APP客户端断开连接,同时,向所述IPC终端发送关闭与所述APP客户端连接的通知,IPC终端收到后,也关闭与基站的TCP连接。其不仅可防止IPC终端直接所有者用户误操作而造成的不便,还有便于IPC终端直接所有者用户对共享信息的控制性。以上是以基站作为中转站使APP客户端与IPC终端建立连接的前提下实施的,该基站用其他的方式作为中转站也可实施。For example, the APP client shares audio and video information to other parts of the client for playback, and the APP client directly connected to the IPC terminal needs to cancel sharing to forcibly close the connection with the IPC terminal. For ease of understanding, the process is further illustrated. If the APP client and the IPC terminal are connected to each other through the base station as a transit station, the specific process is as follows: the APP client actively closes the TCP long connection with the base station. The primary server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the notification, the APP client may send a signaling to the primary server to forcibly close the connection with the IPC terminal, the primary server. After receiving the signaling for forcibly closing the connection with the IPC terminal, the signaling result is fed back to the base station, and the control base station disconnects from the APP client, and simultaneously sends the close to the APP client to the IPC terminal. The notification of the end connection, after receiving the IPC terminal, also closes the TCP connection with the base station. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal. The above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
请参见附图11,在本发明的又一个实施例中,所述APP客户端和IPC终端与所述基站关闭连接的步骤S350中,包括:S352,所述基站检测到无所述APP客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间。Referring to FIG. 11, in another embodiment of the present invention, in step S350, the APP client and the IPC terminal are disconnected from the base station, the method includes: S352, the base station detects that the APP client is not detected. The IPC terminal is being used or operated for more than a preset time.
S354,所述基站关闭与所述IPC终端的TCP连接。S354. The base station closes a TCP connection with the IPC terminal.
为便于理解,对该过程进一步举例说明,其具体过程如下:当所述基站检测到无APP客户端或其他播放客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站即会关闭与所述IPC终端的TCP连接,同时,APP客户端也会与IPC终端及基站断开连接。其不仅可节约相关资源,避免资源的浪费,还可在一定程度上延长相关设备的使用寿命。以上是以基站作为中转站使APP客户端与IPC终端建立连接的前提下实施的,该基站用其他的方式作为中转站也可实施。For ease of understanding, the process is further illustrated as follows. The specific process is as follows: when the base station detects that no APP client or other playing client is using or operating the IPC terminal for more than a preset time, The base station will close the TCP connection with the IPC terminal, and the APP client will also disconnect from the IPC terminal and the base station. It not only saves related resources, avoids waste of resources, but also prolongs the service life of related equipment to a certain extent. The above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
综上所述,本发明中是通过APP客户端与IPC终端相绑定、建立连接,以及主服务器生成加密密钥和解密密钥并分别传送给APP客户端与IPC终端等过程,以此来避免非法用户获取和/或解密用户的音视频流信息,确保了音视频流信息传输的安全性,进而提高用户隐私的安全性;另外,本发明具有较好的信息交互性和稳定性、使用便捷性及较好的用户体验度,同时还可节约相关资源,避免资源的浪费,且可在一定程度上延长相关设备的使用寿命。In summary, in the present invention, the APP client binds to the IPC terminal, establishes a connection, and the primary server generates an encryption key and a decryption key and transmits the same to the APP client and the IPC terminal, respectively. The illegal user is prevented from acquiring and/or decrypting the audio and video stream information of the user, thereby ensuring the security of the audio and video stream information transmission, thereby improving the security of the user's privacy; in addition, the invention has better information interactivity, stability, and use. Convenience and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
相应的,本发明还提供了一种基于加密机制的IPC服务实现系统。请参见附图12,以下具体揭示本系统包括的模块及各模块实现的具体功能。该系统包括:Correspondingly, the present invention also provides an IPC service implementation system based on an encryption mechanism. Referring to FIG. 12, the following includes the modules included in the system and the specific functions implemented by the modules. The system includes:
注册绑定模块31,用于所述IPC终端通过HTTP或HTTPS与主服务器连接并向所述主服务器注册,以及APP客户端与所述IPC终端实施绑定。 The registration binding module 31 is configured to connect the IPC terminal to the primary server via HTTP or HTTPS and register with the primary server, and the APP client performs binding with the IPC terminal.
具体的,所述IPC终端向主服务器发起连接请求,连接成功后,所述IPC终端再通过HTTPS向主服务器发起注册请求,主服务器获取所述IPC终端用于注册及认证的配置信息,主服务器对配置信息进行比对判断,若判定SN已经存在且不是同一个QID,则返回已绑定错误消息,若判定SN已经存在且是同一个QID,则更新TS字数数据,若判定SN不存在,则将数据入库并返回响应数据给APP客户端;注册认证通过后,IPC终端会获得一个登陆到主服务器端的ID及其相应的令牌token。IPC终端通过网络进入主服务器端页面,在相应对话框中输入ID及其相应的令牌token,主服务器端对IPC终端的ID和token进行验证,当验证通过后,IPC终端即可通过主服务器进行相应的操作。Specifically, the IPC terminal initiates a connection request to the primary server. After the connection is successful, the IPC terminal initiates a registration request to the primary server through the HTTPS, and the primary server acquires configuration information used by the IPC terminal for registration and authentication, and the primary server The configuration information is compared and determined. If it is determined that the SN already exists and is not the same QID, the bound error message is returned. If it is determined that the SN already exists and is the same QID, the TS word number data is updated, and if it is determined that the SN does not exist, Then the data is stored in the library and the response data is returned to the APP client; after the registration authentication is passed, the IPC terminal obtains an ID and its corresponding token token that is logged into the main server. The IPC terminal enters the main server page through the network, enters the ID and its corresponding token token in the corresponding dialog box, and the main server verifies the ID and token of the IPC terminal. After the verification is passed, the IPC terminal can pass the primary server. Take the appropriate action.
其中,所述注册绑定模块31包括:The registration binding module 31 includes:
绑定判断单元,用于所述APP客户端通过qid和ts获取所述IPC终端的绑定数据,并判断所述APP客户端是否已为绑定状态;若是,则将判定结果返回,并下行绑定结果信令;若否,则执行绑定操作及返回结果,并下行绑定结果信令。a binding judging unit, configured to acquire, by the qd and ts, the binding data of the IPC terminal, and determine whether the APP client is in a binding state; if yes, return the determination result, and downlink Binding result signaling; if not, performing binding operation and returning result, and downlink binding result signaling.
所述APP客户端与所述IPC终端实施绑定的过程包括有:首先,APP客户端通过QID和TS向主服务器请求获取所述IPC终端的绑定数据,主服务器准予该请求后,判断所述APP客户端是否已经绑定,若判定为是,则将该判定结果返回,并下行绑定结果信令至所述APP客户端;若判定为否,则执行绑定操作及返回结果,同时下行绑定结果信令至所述APP客户端与IPC终端。另外,若主服务器不准予APP客户端获取所述IPC终端的绑定数据,则获取失败,并向所述APP客户端返回获取失败的结果通知,等待APP客户端的发起下一次获取请求。The process of binding the APP client to the IPC terminal includes: first, the APP client requests the primary server to obtain the binding data of the IPC terminal through the QID and the TS, and after the primary server grants the request, the determining Whether the APP client has been bound, if the determination is yes, the decision result is returned, and the downlink binding result signaling is sent to the APP client; if the determination is no, the binding operation and the return result are executed, and at the same time, The downlink binding result signaling is sent to the APP client and the IPC terminal. In addition, if the primary server does not allow the APP client to obtain the binding data of the IPC terminal, the acquisition fails, and the result notification of the failure of the acquisition is returned to the APP client, and the next acquisition request of the APP client is awaited.
密钥生成模块32,用于所述主服务器产生加密密钥和解密密钥,并将所述加密密钥传送给所述IPC终端及将所述解密密钥传送给所述APP客户端。The key generation module 32 is configured to generate an encryption key and a decryption key by the primary server, and transmit the encryption key to the IPC terminal and transmit the decryption key to the APP client.
具体的,所述加密密钥与解密密钥采用对称加密法。Specifically, the encryption key and the decryption key adopt a symmetric encryption method.
基站连接模块33,用于所述APP客户端向所述主服务器发送播放请求,使所述APP客户端与IPC终端分别与基站建立TCP连接。The base station connection module 33 is configured to send, by the APP client, a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station.
具体的,请参见附图14,所述基站连接模块33包括:Specifically, referring to FIG. 14, the base station connection module 33 includes:
第一连接单元331,用于所述APP客户端向所述基站发起TCP连接。The first connection unit 331 is configured to initiate, by the APP client, a TCP connection to the base station.
第一检查判断单元332,用于所述基站使用主服务器的公钥检查判断所述APP客户端提供的sig是否合法;若判定为否时,则连接失败;若判定为是时,则所述APP客户端与基站建立连接,并通过所述主服务器向所述IPC终端下发连接所述基站的通知。The first check determining unit 332 is configured to determine, by the base station, whether the sig provided by the APP client is legal by using a public key check of the primary server; if the determination is negative, the connection fails; if the determination is yes, the The APP client establishes a connection with the base station, and sends a notification for connecting the base station to the IPC terminal by using the primary server.
第二连接单元333,用于所述IPC终端向所述基站发起TCP连接。The second connection unit 333 is configured to initiate, by the IPC terminal, a TCP connection to the base station.
第二检查判断单元334,用于所述基站使用主服务器的公钥检查判断所述IPC终端提供的sig是否合法;若判定为否时,则连接失败,若判定为是时,则所述IPC终端与基站建立连接。The second check determining unit 334 is configured to determine, by the base station, whether the sig provided by the IPC terminal is legal using the public key check of the primary server; if the determination is negative, the connection fails, and if the determination is yes, the IPC The terminal establishes a connection with the base station.
其中,所述APP客户端与IPC终端建立连接的过程包括有:首先,所述APP客户端向基站发起TCP连接,然后基站使用主服务器提供的公钥检查判断APP客户端提供的sig是否合法,当检查判断结果为合法时,主服务器将该检查判断结果信息下发至IPC终端,使IPC终端向基站发起连接,进而基站也使用主服务器提供的公钥检查判断IPC终端提供的sig是否合法,若检查判断结果为合法,则APP客户端与IPC终端建立连接,可进行相应的后续动作。The process of establishing a connection between the APP client and the IPC terminal includes: first, the APP client initiates a TCP connection to the base station, and then the base station uses the public key provided by the primary server to check whether the sig provided by the APP client is legal. When the check result is legal, the primary server sends the check result information to the IPC terminal, so that the IPC terminal initiates a connection to the base station, and the base station also checks whether the sig provided by the IPC terminal is legal by using the public key provided by the primary server. If the check result is legal, the APP client establishes a connection with the IPC terminal, and can perform corresponding subsequent actions.
进一步的,请参见附图12,本发明所述的系统还包括加密模块34,用于所述IPC终端利用所述加密密钥将音视频流进行加密后传送给所述APP客户端。Further, referring to FIG. 12, the system of the present invention further includes an encryption module 34, configured to encrypt the audio and video stream by the IPC terminal by using the encryption key, and then transmit the audio and video stream to the APP client.
解密模块35,用于当所述APP客户端收到所述IPC终端加密处理过的音视频流后,利用所述解密密钥对音视频流进行解密处理,以便实现音视频的播放。The decryption module 35 is configured to perform decryption processing on the audio and video stream by using the decryption key after the APP client receives the audio and video stream encrypted by the IPC terminal, so as to implement audio and video playback.
具体的,所述APP客户端收到加密后的音视频流后利用对应解密密钥实施解密成功之后即可正常播放,若APP客户端收到加密后的音视频流后无解密密钥或无对应的解密密钥,那么就无法正常对加密的音视频流进行解密处理,也即无法正常播放音视频。Specifically, after receiving the encrypted audio and video stream, the APP client can perform normal decryption after performing decryption by using the corresponding decryption key, and if the APP client receives the encrypted audio and video stream, there is no decryption key or no Corresponding decryption key, then the encrypted audio and video stream cannot be decrypted normally, that is, the audio and video cannot be played normally.
另外,若合法的及具有可对加密音视频流进行正常解密密钥的APP客户端要将该加密音视频流分享给其他的播放客户端,则不仅要将该加密音视频流分享过去,还需将对应的解密密钥一并分 享;收到所述APP客户端分享的加密音视频流的播放客户端,同样要采用对应的解密密钥对加密音视频流解密后方可正常播放。因此,本发明方案在确保用户隐私的同时,也可对经合法用户的授权后,将用户愿意分享的音视频信息分享给相关用户。In addition, if the APP client that is legal and has a normal decryption key for the encrypted audio and video stream shares the encrypted audio and video stream with other playback clients, the encrypted audio and video stream must be shared not only, but also Need to divide the corresponding decryption key The playing client that receives the encrypted audio and video stream shared by the APP client also needs to use the corresponding decryption key to decrypt the encrypted audio and video stream before playing normally. Therefore, the solution of the present invention can also share the audio and video information that the user is willing to share to the relevant user after authorizing the authorized user.
进一步的,请参见附图13,本发明所述的系统还包括用于所述APP客户端和IPC终端与所述基站关闭连接的基站断连模,36;所述基站断连模块36包括:Further, referring to FIG. 13, the system of the present invention further includes a base station disconnection mode for the APP client and the IPC terminal to close the connection with the base station, 36; the base station disconnection module 36 includes:
第一断连单元,用于所述APP客户端主动执行关闭与所述基站TCP连接的操作。And a first disconnecting unit, configured to perform, by the APP client, an operation of closing a TCP connection with the base station.
具体的,所述基站断连模块36的工作过程包括:APP客户端主动关闭与基站的TCP长连接,然后基站将指令结果发送给IPC终端,IPC终端收到后,也关闭与基站的TCP连接。其中,以上是以基站作为中转站使APP客户端与IPC终端建立连接的前提下实施的,该基站用其他的方式作为中转站也可实施。Specifically, the working process of the base station disconnection module 36 includes: the APP client actively closes the TCP long connection with the base station, and then the base station sends the command result to the IPC terminal, and after receiving the IPC terminal, the TCP connection with the base station is also closed. . The above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a transit station by other means.
进一步的,本发明所述的系统还包括用于所述APP客户端向所述IPC终端发送操作控制信令时的信令处理的信令处理模块。请参见附图15,所述信令处理模块包括:Further, the system of the present invention further includes a signaling processing module for signaling processing when the APP client sends operation control signaling to the IPC terminal. Referring to FIG. 15, the signaling processing module includes:
信令发送单元371,用于所述APP客户端利用HTTPS将信令发送至所述主服务器。The signaling sending unit 371 is configured to send, by the APP client, signaling to the primary server by using HTTPS.
信息通知下发单元372,用于所述主服务器返回响应数据,并通过HTTP向所述IPC终端下发执行信令的信息通知。The information notification delivery unit 372 is configured to return response data to the primary server, and send an information notification of performing signaling to the IPC terminal by using HTTP.
信令执行单元373,用于所述IPC终端根据信令内容作出相应操作,并上传信令执行结果。The signaling execution unit 373 is configured to perform corresponding operations according to the signaling content by the IPC terminal, and upload a signaling execution result.
具体的,所述信令处理模块的工作过程包括:APP客户端发送相应的操作控制信令,主服务器接收到所述APP客户端发送来的信令后,向所述APP客户端返回响应数据,并向所述IPC终端下发采用私钥签名的执行信令通知,IPC终端接收到所述执行信令通知后,作出与该执行信令对应的执行动作,并向主服务器上传信令执行结果,主服务器接收到所述IPC终端上传来的信令执行结果后,过程结束;其中,所述执行信令通知的参数包括会话ID及信令码。所述操作控制信令可包括开灯指令、摇头指令及调焦指令等。Specifically, the working process of the signaling processing module includes: the APP client sends corresponding operation control signaling, and after receiving the signaling sent by the APP client, the primary server returns response data to the APP client. And sending an execution signaling notification by using the private key signature to the IPC terminal, after receiving the execution signaling notification, the IPC terminal performs an execution action corresponding to the execution signaling, and uploads signaling execution to the primary server. As a result, after the primary server receives the signaling execution result uploaded by the IPC terminal, the process ends; wherein the parameters for performing the signaling notification include a session ID and a signaling code. The operation control signaling may include a light-on command, a shake command, a focus command, and the like.
进一步的,本发明所述的系统还包括用于所述IPC终端向APP客户端推送事件的事件推送模块。请参见附图16,所述事件推送模块包括:Further, the system of the present invention further includes an event pushing module for the IPC terminal to push an event to the APP client. Referring to FIG. 16, the event pushing module includes:
事件发送单元381,用于所述IPC终端通过HTTPS向所述主服务器发送事件数据。The event sending unit 381 is configured to send, by the IPC terminal, event data to the primary server by using HTTPS.
事件下发单元382,用于所述主服务器返回响应数据,并利用HTTP向所述APP客户端下发事件的信息通知。The event issuance unit 382 is configured to return response data to the primary server, and send an information notification of the event to the APP client by using HTTP.
事件获取单元383,用于所述APP客户端通过HTTPS向所述主服务器请求并获取事件的具体数据。The event obtaining unit 383 is configured to request, by the APP client, specific data of an event to the primary server by using HTTPS.
具体的,所述事件推送模块的工作过程包括:IPC终端通过HTTPS向主服务器推送事件数据,主服务器接收所述IPC终端发送来的事件数据后,向所述IPC终端返回响应数据并向所述APP客户端下发该事件的消息通知,APP客户端收到消息通知后,若对该事件有意向可向所述主服务器发送获取该事件具体数据的请求,主服务器接收所述APP客户端获取事件具体数据的请求并响应该请求。其中,主服务器向所述APP客户端下发的消息通知会使用其私钥进行签名,消息通知参数包括会话ID及信令码。该过程可大大提高APP客户端、服务器及IPC终端之间的信息的交互性,同时也提高了信息传送的及时性及稳定性。Specifically, the working process of the event pushing module includes: the IPC terminal pushes event data to the primary server by using the HTTPS, and after receiving the event data sent by the IPC terminal, the primary server returns the response data to the IPC terminal and The APP client sends a message notification of the event, after the APP client receives the message notification, if the event is intentionally sent to the primary server to send a request for obtaining the specific data of the event, the primary server receives the APP client to obtain the request. A request for event specific data and respond to the request. The message notification sent by the primary server to the APP client is signed by using its private key, and the message notification parameter includes a session ID and a signaling code. This process can greatly improve the interactivity of information between the APP client, the server and the IPC terminal, and also improve the timeliness and stability of information transmission.
进一步的,本发明所述的系统还包括用于所述APP客户端与IPC终端之间解除绑定的解绑模块。Further, the system of the present invention further includes an unbinding module for unbinding between the APP client and the IPC terminal.
具体的,所述解绑模块的工作过程与所述信令处理模块的工作过程类似,其就相当于所述APP客户端向IPC终端发送了一个解绑信令;所不同的是解绑模块的工作过程需要主服务器删除本地绑定状态。该解绑模块有便于APP客户端自由控制与IPC终端的绑定状态关系。Specifically, the working process of the unbinding module is similar to the working process of the signaling processing module, which is equivalent to the APP client sending an unbinding signaling to the IPC terminal; the difference is that the unbinding module The work process requires the primary server to remove the local binding state. The unbinding module has a binding state relationship that facilitates the APP client to freely control the IPC terminal.
进一步的,本发明所述的系统还包括用于所述APP客户端触发所述IPC终端升级的升级模块。Further, the system of the present invention further includes an upgrade module for the APP client to trigger the upgrade of the IPC terminal.
具体的,所述升级模块的工作过程与所述信令处理模块的工作过程类似,其类似于所述APP客户端向IPC终端发送了一个升级信令,但是在该过程中还包括IPC终端关闭下线及开启上线的过程,且在该过程中,IPC终端会多次向主服务器反馈升级进程状态信息。该升级模块可系统使各 项缺陷不断得到优化解决,使用户操作更便捷,提高用户的使用体验度。Specifically, the working process of the upgrade module is similar to the working process of the signaling processing module, and the APP client sends an upgrade signaling to the IPC terminal, but the IPC terminal is also closed in the process. The process of going offline and starting the online, and in the process, the IPC terminal will feedback the upgrade process status information to the primary server multiple times. The upgrade module can be systemized The defect is continuously optimized to make the user's operation more convenient and improve the user experience.
在本发明的又一个实施例中,所述基站断连模块36还包括:In still another embodiment of the present invention, the base station disconnection module 36 further includes:
断连发送单元,用于所述APP客户端向主服务器发送强制关闭所述APP客户端和IPC终端与基站之间的TCP连接的信令。And disconnecting the sending unit, configured to send, by the APP client, signaling for forcibly closing a TCP connection between the APP client and the IPC terminal and the base station to the primary server.
通知发送单元,用于所述主服务器向所述IPC终端发送关闭与所述基站之间的TCP连接的通知。And a notification sending unit, configured to send, by the primary server, a notification to close the TCP connection with the base station to the IPC terminal.
第二断连单元,用于当所述IPC终端接收所述主服务器发送来的通知后,所述IPC终端关闭与所述基站的TCP连接。a second disconnecting unit, configured to: after the IPC terminal receives the notification sent by the primary server, the IPC terminal closes a TCP connection with the base station.
具体的,例如,APP客户端将音视频信息共享给其他部分客户端播放,与IPC终端直接连接的APP客户端就需要取消共享,以强制关闭与所述IPC终端的连接。其具体过程如下:APP客户端主动关闭与基站的TCP长连接,主服务器向APP客户端发送一个需取消共享、强制关闭的信息通知,APP客户端收到该信息通知后,可再向主服务器发送一个强制关闭与所述IPC终端的连接的信令,主服务器收到该强制关闭与所述IPC终端的连接的信令后,将该信令结果反馈至基站,控制基站与APP客户端断开连接,同时,向所述IPC终端发送关闭与所述APP客户端连接的通知,IPC终端收到后,也关闭与基站的TCP连接。其不仅可防止IPC终端直接所有者用户误操作而造成的不便,还有便于IPC终端直接所有者用户对共享信息的控制性。以上是以基站作为中转站使APP客户端与IPC终端建立连接的前提下实施的,该基站用其他的方式作为中转站也可实施。Specifically, for example, the APP client shares audio and video information to other parts of the client for playback, and the APP client directly connected to the IPC terminal needs to cancel sharing to forcibly close the connection with the IPC terminal. The specific process is as follows: the APP client actively closes the TCP long connection with the base station, and the primary server sends an information notification to the APP client that needs to be unshared and forcibly closed. After receiving the information notification, the APP client can then redirect to the primary server. Sending a signaling for forcibly closing the connection with the IPC terminal, after receiving the signaling for forcibly closing the connection with the IPC terminal, the primary server feeds back the signaling result to the base station, and controls the base station and the APP client to be disconnected. The connection is opened, and at the same time, the IPC terminal is notified to close the connection with the APP client, and after receiving the IPC terminal, the TCP connection with the base station is also closed. It not only prevents the inconvenience caused by the direct owner of the IPC terminal, but also facilitates the control of the shared information by the direct owner of the IPC terminal. The above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
在本发明的又一个实施例中,所述基站断连模块36还包括:In still another embodiment of the present invention, the base station disconnection module 36 further includes:
第三断连单元,用于当所述基站检测到无所述APP客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站关闭与所述IPC终端的TCP连接。a third disconnecting unit, configured to: when the base station detects that the APP client is not using or operating the IPC terminal, and continues to exceed a preset time, the base station closes the TCP with the IPC terminal. connection.
具体的,为便于理解,对该过程进一步举例说明,所述基站断连模块的工作过程如下:当所述基站检测到无APP客户端或其他播放客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站即会关闭与所述IPC终端的TCP连接,同时,APP客户端也会与IPC终端及基站断开连接。其不仅可节约相关资源,避免资源的浪费,还可在一定程度上延长相关设备的使用寿命。以上是以基站作为中转站使APP客户端与IPC终端建立连接的前提下实施的,该基站用其他的方式作为中转站也可实施。Specifically, for ease of understanding, the process of the base station disconnection module is further illustrated as follows: when the base station detects that no APP client or other playback client is using or operating the IPC terminal. After the preset time is exceeded, the base station closes the TCP connection with the IPC terminal, and the APP client also disconnects from the IPC terminal and the base station. It not only saves related resources, avoids waste of resources, but also prolongs the service life of related equipment to a certain extent. The above is implemented on the premise that the base station is used as a relay station to establish an connection between the APP client and the IPC terminal, and the base station can also be implemented as a relay station by other means.
综上所述,本发明中是通过APP客户端与IPC终端相绑定、建立连接,以及主服务器生成加密密钥和解密密钥并分别传送给APP客户端与IPC终端等过程,以此来避免非法用户获取和/或解密用户的音视频流信息,确保了音视频流信息传输的安全性,进而提高用户隐私的安全性;另外,本发明具有较好的信息交互性和稳定性、使用便捷性及较好的用户体验度,同时还可节约相关资源,避免资源的浪费,且可在一定程度上延长相关设备的使用寿命。In summary, in the present invention, the APP client binds to the IPC terminal, establishes a connection, and the primary server generates an encryption key and a decryption key and transmits the same to the APP client and the IPC terminal, respectively. The illegal user is prevented from acquiring and/or decrypting the audio and video stream information of the user, thereby ensuring the security of the audio and video stream information transmission, thereby improving the security of the user's privacy; in addition, the invention has better information interactivity, stability, and use. Convenience and better user experience, while saving related resources, avoiding waste of resources, and extending the service life of related equipment to a certain extent.
在此处所提供的说明书中,虽然说明了大量的具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实施例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some embodiments, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the specification.
虽然上面已经示出了本发明的一些示例性实施例,但是本领域的技术人员将理解,在不脱离本发明的原理或精神的情况下,可以对这些示例性实施例做出改变,本发明的范围由权利要求及其等同物限定。While some exemplary embodiments of the invention have been shown in the foregoing, the embodiments of the invention may The scope is defined by the claims and their equivalents.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的基于加密机制的IPC服务实现系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of some or all of the components of an encryption mechanism based IPC service implementation system in accordance with an embodiment of the present invention. Features. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图17示出了用于执行根据本发明的方法的计算设备的框图。该计算设备传统上包括处理器1710和以存储器1720形式的计算机程序产品或者计算机可读介质。存储器1720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1720具有用于执行上述方法中的任何方法步骤的程序代码1731的存储空间1730。例如,用于程序代码的存储空间1730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图18所述的便携式或者固定存储单元。该存储单元可以具有与图17的计算设备中的存储器1720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1731’,即可以由例如诸如1710之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 17 shows a block diagram of a computing device for performing the method in accordance with the present invention. The computing device conventionally includes a processor 1710 and a computer program product or computer readable medium in the form of a memory 1720. The memory 1720 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 1720 has a memory space 1730 for program code 1731 for performing any of the method steps described above. For example, the storage space 1730 for program code may include respective program codes 1731 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. The storage unit may have a storage segment, a storage space, and the like that are similarly arranged to the storage 1720 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 1731', ie, code that can be read by a processor, such as, for example, 1710, which when executed by a computing device causes the computing device to perform each of the methods described above step.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (40)

  1. 一种基于加密机制的IPC服务实现方法,其中,包括以下步骤:An IPC service implementation method based on an encryption mechanism, which comprises the following steps:
    接收IPC终端的连接及注册请求,完成其注册;Receiving the connection and registration request of the IPC terminal and completing its registration;
    生成加密密钥和解密密钥,分别对应传送给所述IPC终端及与该IPC终端相绑定的APP客户端;Generating an encryption key and a decryption key, respectively corresponding to the IPC terminal and the APP client bound to the IPC terminal;
    接收所述APP客户端的播放请求,控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给能够利用所述解密密钥进行解密的APP客户端进行解密播放。Receiving a play request of the APP client, and controlling the APP client to establish a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by using the encryption key to the APP that can be decrypted by using the decryption key. The client performs decryption playback.
  2. 如权利要求1所述的方法,其中,所述IPC终端与APP客户端相绑定的过程中,其具体步骤包括:The method of claim 1, wherein the specific steps in the process of binding the IPC terminal to the APP client include:
    准予所述APP客户端获取所述IPC终端的绑定数据,并判断所述APP客户端是否已为绑定状态;Granting the APP client to acquire binding data of the IPC terminal, and determining whether the APP client is in a binding state;
    若是,则将判定结果返回,并下行绑定结果信令;If yes, the decision result is returned, and the downlink binding result signaling is performed;
    若否,则执行绑定操作及返回结果,并下行绑定结果信令。If not, the binding operation is performed and the result is returned, and the result signaling is downlink bound.
  3. 如权利要求1或2所述的方法,其中,所述控制所述APP客户端与IPC终端建立连接的过程中,其具体步骤包括:The method according to claim 1 or 2, wherein the specific steps in the process of controlling the connection between the APP client and the IPC terminal include:
    控制所述APP客户端向所述IPC终端发起连接;Controlling the APP client to initiate a connection to the IPC terminal;
    利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;若判定为否时,则不准予所述APP客户端与IPC终端建立连接,若判定为是时,则准予所述APP客户端与IPC终端建立连接。Using the public key check to determine whether the sig provided by the APP client and the IPC terminal is legal; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if the determination is yes, the grant is granted. The APP client establishes a connection with the IPC terminal.
  4. 如权利要求1-3中任一项所述的方法,其中,该方法还包括:处理所述APP客户端向所述IPC终端发送的操作控制信令的步骤;该步骤具体包括:The method of any of claims 1-3, wherein the method further comprises: the step of processing the operation control signaling sent by the APP client to the IPC terminal; the step specifically comprising:
    接收所述APP客户端发送来的信令;Receiving signaling sent by the APP client;
    向所述APP客户端返回响应数据,并向所述IPC终端下发采用私钥签名的执行信令通知,所述执行信令通知的参数包括会话ID及信令码;Returning the response data to the APP client, and sending an execution signaling notification by using the private key signature to the IPC terminal, where the parameters of the execution signaling include a session ID and a signaling code;
    接收所述IPC终端上传的信令执行结果。Receiving a signaling execution result uploaded by the IPC terminal.
  5. 如权利要求1-4中任一项所述的方法,其中,该方法还包括:协助所述APP客户端关闭与所述IPC终端的连接的步骤;该步骤具体包括:The method of any of claims 1-4, wherein the method further comprises the step of assisting the APP client to close the connection with the IPC terminal; the step specifically comprising:
    接收所述APP客户端发送来的强制关闭与所述IPC终端的连接的信令;Receiving, by the APP client, signaling for forcibly closing a connection with the IPC terminal;
    向所述IPC终端发送关闭与所述APP客户端连接的通知。Sending a notification to the IPC terminal to close the connection with the APP client.
  6. 如权利要求1-5中任一项所述的方法,其中,该方法还包括:协助所述IPC终端向APP客户端推送事件的步骤;该步骤具体包括:The method of any of claims 1-5, wherein the method further comprises: a step of assisting the IPC terminal to push an event to the APP client; the step specifically comprising:
    接收所述IPC终端发送来的事件数据;Receiving event data sent by the IPC terminal;
    向所述IPC终端返回响应数据,并向所述APP客户端下发事件的消息通知;Returning response data to the IPC terminal, and sending a message notification of the event to the APP client;
    接收所述APP客户端获取事件具体数据的请求,并响应其请求。Receiving a request for the APP client to acquire event specific data, and responding to the request.
  7. 如权利要求1-6中任一项所述的方法,其中,该方法还包括:协助处理所述APP客户端与IPC终端之间解除绑定的步骤。The method of any of claims 1-6, wherein the method further comprises the step of assisting in processing the unbinding between the APP client and the IPC terminal.
  8. 如权利要求1-7中任一项所述的方法,其中,该方法还包括:协助处理所述APP客户端触发所述IPC终端升级的步骤。The method of any of claims 1-7, wherein the method further comprises the step of assisting in processing the APP client to trigger the IPC terminal upgrade.
  9. 如权利要求1-8中任一项所述的方法,其中,所述加密密钥和解密密钥是采用对称加密算法生成。The method of any of claims 1-8, wherein the encryption key and the decryption key are generated using a symmetric encryption algorithm.
  10. 一种基于加密机制的IPC服务实现系统,其中,包括: An IPC service implementation system based on an encryption mechanism, which includes:
    接收模块,用于接收IPC终端的连接及注册请求,完成其注册;a receiving module, configured to receive a connection and registration request of the IPC terminal, and complete registration thereof;
    生成传送模块,用于生成加密密钥和解密密钥,并分别对应传送给所述IPC终端及与该IPC终端相绑定的APP客户端;Generating a transmission module, configured to generate an encryption key and a decryption key, and respectively corresponding to the IPC terminal and an APP client bound to the IPC terminal;
    接收控制模块,用于接收所述APP客户端的播放请求,并控制所述APP客户端与IPC终端建立连接,使所述IPC终端将利用加密密钥加密后的音视频流传送给能够利用所述解密密钥进行解密的APP客户端进行解密播放。a receiving control module, configured to receive a play request of the APP client, and control the APP client to establish a connection with the IPC terminal, so that the IPC terminal transmits the audio and video stream encrypted by using the encryption key to enable The APP client decrypting the key for decryption plays the decrypted play.
  11. 如权利要求10所述的系统,其中,还包括用于控制所述APP客户端与IPC终端相绑定的控制模块;所述控制模块包括:The system of claim 10, further comprising: a control module for controlling binding of the APP client to the IPC terminal; the control module comprising:
    准予判断单元,用于准予所述APP客户端获取所述IPC终端的绑定数据;以及用于判断所述APP客户端是否已为绑定状态;a granting unit, configured to: grant the APP client to acquire binding data of the IPC terminal; and determine whether the APP client is in a binding state;
    若是,则将判定结果返回,并下行绑定结果信令;If yes, the decision result is returned, and the downlink binding result signaling is performed;
    若否,则执行绑定操作及返回结果,并下行绑定结果信令。If not, the binding operation is performed and the result is returned, and the result signaling is downlink bound.
  12. 如权利要求10或11所述的系统,其中,所述接收控制模块包括:The system of claim 10 or 11, wherein the receiving control module comprises:
    控制单元,用于控制所述APP客户端向所述IPC终端发起连接;a control unit, configured to control the APP client to initiate a connection to the IPC terminal;
    判断单元,用于利用公钥检查判断所述APP客户端与所述IPC终端提供的sig是否合法;若判定为否时,则不准予所述APP客户端与IPC终端建立连接,若判定为是时,则准予所述APP客户端与IPC终端建立连接。a determining unit, configured to determine, by using a public key check, whether the sig provided by the APP client and the IPC terminal is legal; if the determination is no, the APP client is not allowed to establish a connection with the IPC terminal, and if the determination is yes When the APP client is granted to establish a connection with the IPC terminal.
  13. 如权利要求10-12中任一项所述的系统,其中,该系统还包括用于处理所述APP客户端向所述IPC终端发送的操作控制信令的处理模块;所述处理模块包括:The system of any of claims 10-12, wherein the system further comprises a processing module for processing operation control signaling sent by the APP client to the IPC terminal; the processing module comprising:
    第一接收单元,用于接收所述APP客户端发送来的信令;a first receiving unit, configured to receive signaling sent by the APP client;
    通知下发单元,用于向所述APP客户端返回响应数据及向所述IPC终端下发采用私钥签名的执行信令通知,所述执行信令通知的参数包括会话ID及信令码;a notification sending unit, configured to return response data to the APP client, and send an execution signaling that is signed by the private key to the IPC terminal, where the parameters of the execution signaling include a session ID and a signaling code;
    第二接收单元,用于接收所述IPC终端上传的信令执行结果。And a second receiving unit, configured to receive a signaling execution result uploaded by the IPC terminal.
  14. 如权利要求10-13中任一项所述的系统,其中,该系统还包括用于协助所述APP客户端关闭与所述IPC终端的连接的断连协助模块;所述断连协助模块包括:The system of any of claims 10-13, wherein the system further comprises a disconnection assistance module for assisting the APP client to close a connection with the IPC terminal; the disconnection assistance module includes :
    强闭接收单元,用于接收所述APP客户端发送来的强制关闭与所述IPC终端的连接的信令;a strong closed receiving unit, configured to receive signaling sent by the APP client to forcibly close a connection with the IPC terminal;
    强闭发送单元,用于向所述IPC终端发送关闭与所述APP客户端连接的通知。And a strong closed sending unit, configured to send a notification to the IPC terminal to close the connection with the APP client.
  15. 如权利要求10-14中任一项所述的系统,其中,该系统还包括用于协助所述IPC终端向APP客户端推送事件的推送协助模块;所述推送协助模块包括:The system of any of claims 10-14, wherein the system further comprises a push assistance module for assisting the IPC terminal to push an event to an APP client; the push assistance module comprising:
    推送接收单元,用于接收所述IPC终端发送来的事件数据;a push receiving unit, configured to receive event data sent by the IPC terminal;
    推送下发单元,用于向所述IPC终端返回响应数据,并向所述APP客户端下发事件的消息通知;a sending and delivering unit, configured to return response data to the IPC terminal, and send a message notification of the event to the APP client;
    请求接收单元,用于接收所述APP客户端获取事件具体数据的请求,并响应其请求。The request receiving unit is configured to receive the request of the APP client to acquire event specific data, and respond to the request.
  16. 如权利要求10-15中任一项所述的系统,其中,该系统还包括用于协助处理所述APP客户端与IPC终端之间解除绑定的解绑协助模块。The system of any of claims 10-15, wherein the system further comprises an unbundling assistance module for facilitating processing of unbinding between the APP client and the IPC terminal.
  17. 如权利要求10-16中任一项所述的系统,其中,该系统还包括用于协助处理所述APP客户端触发所述IPC终端升级的升级协助模块。The system of any of claims 10-16, wherein the system further comprises an upgrade assistance module for assisting in processing the APP client to trigger the IPC terminal upgrade.
  18. 如权利要求10-17中任一项所述的系统,其中,所述加密密钥和解密密钥是采用对称加密算法生成。The system of any of claims 10-17, wherein the encryption key and the decryption key are generated using a symmetric encryption algorithm.
  19. 一种基于加密机制的IPC服务实现方法,其特征在于,包括以下步骤:An IPC service implementation method based on an encryption mechanism, comprising the following steps:
    IPC终端通过HTTP或HTTPS与主服务器连接并向所述主服务器注册,然后,APP客户端与所述IPC终端实施绑定; The IPC terminal connects to the primary server through HTTP or HTTPS and registers with the primary server, and then the APP client performs binding with the IPC terminal;
    所述主服务器产生加密密钥和解密密钥,并将所述加密密钥传送给所述IPC终端,将所述解密密钥传送给所述APP客户端,所述加密密钥与解密密钥采用对称加密法;The primary server generates an encryption key and a decryption key, and transmits the encryption key to the IPC terminal, and transmits the decryption key to the APP client, the encryption key and a decryption key Using symmetric encryption;
    所述APP客户端向所述主服务器发送播放请求,使所述APP客户端与IPC终端分别与基站建立TCP连接;Sending, by the APP client, a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station;
    所述IPC终端利用所述加密密钥将音视频流进行加密后传送给所述APP客户端;The IPC terminal encrypts the audio and video stream by using the encryption key, and transmits the audio and video stream to the APP client;
    所述APP客户端收到所述IPC终端加密处理过的音视频流后,利用所述解密密钥对音视频流进行解密处理,以便实现音视频的播放。After receiving the audio and video stream encrypted by the IPC terminal, the APP client decrypts the audio and video stream by using the decryption key to implement audio and video playback.
  20. 如权利要求19所述的方法,其中,所述APP客户端与所述IPC终端实施绑定的过程中,其步骤包括:The method of claim 19, wherein the step of the binding of the APP client to the IPC terminal comprises:
    所述APP客户端通过qid和ts获取所述IPC终端的绑定数据,并判断所述APP客户端是否已为绑定状态;The APP client obtains binding data of the IPC terminal by using qid and ts, and determines whether the APP client is in a binding state.
    若是,则将判定结果返回,并下行绑定结果信令;If yes, the decision result is returned, and the downlink binding result signaling is performed;
    若否,则执行绑定操作及返回结果,并下行绑定结果信令。If not, the binding operation is performed and the result is returned, and the result signaling is downlink bound.
  21. 如权利要求19或20所述的方法,其中,所述APP客户端与IPC终端分别与基站建立TCP连接的过程中,其具体步骤包括:The method according to claim 19 or 20, wherein in the process of establishing a TCP connection between the APP client and the IPC terminal and the base station, the specific steps include:
    所述APP客户端向所述基站发起TCP连接;The APP client initiates a TCP connection to the base station;
    所述基站使用主服务器的公钥检查判断所述APP客户端提供的sig是否合法;若判定为否时,则连接失败,若判定为是时,则所述APP客户端与基站建立连接,并通过所述主服务器向所述IPC终端下发连接所述基站的通知;The base station uses the public key of the primary server to check whether the sig provided by the APP client is legal; if the determination is no, the connection fails, and if the determination is yes, the APP client establishes a connection with the base station, and Sending, by the primary server, a notification that the base station is connected to the IPC terminal;
    所述IPC终端向所述基站发起TCP连接;The IPC terminal initiates a TCP connection to the base station;
    所述基站使用主服务器的公钥检查判断所述IPC终端提供的sig是否合法;若判定为否时,则连接失败,若判定为是时,则所述IPC终端与基站建立连接。The base station uses the public key of the primary server to check whether the sig provided by the IPC terminal is legal. If the determination is negative, the connection fails. If the determination is yes, the IPC terminal establishes a connection with the base station.
  22. 如权利要求19-21中任一项所述的方法,其中,该方法一步包括:所述APP客户端向所述IPC终端发送操作控制信令时的信令处理步骤;该步骤具体包括:The method according to any one of claims 19 to 21, wherein the method comprises: a signaling processing step when the APP client sends operation control signaling to the IPC terminal; the step specifically comprising:
    所述APP客户端利用HTTPS将信令发送至所述主服务器;The APP client sends signaling to the primary server by using HTTPS;
    所述主服务器返回响应数据,并通过HTTP向所述IPC终端下发执行信令的信息通知,所述信息通知采用所述主服务器的私钥签名,所述信息通知参数包括会话ID及信令码;The primary server returns response data, and sends an information notification of performing signaling to the IPC terminal by using HTTP, the information notification is signed by a private key of the primary server, and the information notification parameter includes a session ID and signaling. code;
    所述IPC终端根据信令内容作出相应操作,并上传信令执行结果。The IPC terminal performs a corresponding operation according to the signaling content, and uploads a signaling execution result.
  23. 如权利要求19-22中任一项所述的方法,其中,该方法一步包括:所述APP客户端和IPC终端与所述基站关闭连接的步骤;该步骤具体包括:The method according to any one of claims 19 to 22, wherein the method comprises the steps of: closing the connection between the APP client and the IPC terminal and the base station; the step specifically comprising:
    所述APP客户端主动执行关闭与所述基站TCP连接的操作。The APP client actively performs an operation of closing a TCP connection with the base station.
  24. 如权利要求19-23中任一项所述的方法,其中,所述APP客户端和IPC终端与所述基站关闭连接的步骤中,还包括:The method according to any one of claims 19 to 23, wherein the step of closing the connection between the APP client and the IPC terminal and the base station further comprises:
    所述APP客户端向主服务器发送强制关闭所述APP客户端和IPC终端与基站之间的TCP连接的信令;Sending, by the APP client, signaling for forcibly closing a TCP connection between the APP client and the IPC terminal and the base station to the primary server;
    所述主服务器向所述IPC终端发送关闭与所述基站之间的TCP连接的通知;The primary server sends a notification to the IPC terminal to close a TCP connection with the base station;
    所述IPC终端接收所述主服务器发送来的通知后,所述IPC终端关闭与所述基站的TCP连接。After the IPC terminal receives the notification sent by the primary server, the IPC terminal closes the TCP connection with the base station.
  25. 如权利要求19-24中任一项所述的方法,其中,所述APP客户端和IPC终端与所述基站关闭连接的步骤中;还包括:The method according to any one of claims 19 to 24, wherein the step of closing the connection between the APP client and the IPC terminal and the base station; further comprising:
    所述基站检测到无所述APP客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站关闭与所述IPC终端的TCP连接。After the base station detects that the APP client is not using or operating the IPC terminal, and continues for more than a preset time, the base station closes the TCP connection with the IPC terminal.
  26. 如权利要求19-25中任一项所述的方法,其中,该方法还包括:所述IPC终端向 APP客户端推送事件的步骤;该步骤具体包括:The method of any of claims 19 to 25, wherein the method further comprises: the IPC terminal The step of the APP client pushing the event; the step specifically includes:
    所述IPC终端通过HTTPS向所述主服务器发送事件数据;The IPC terminal sends event data to the primary server by using HTTPS;
    所述主服务器返回响应数据,并利用HTTP向所述APP客户端下发事件的信息通知;The primary server returns response data, and sends an information notification of the event to the APP client by using HTTP;
    所述APP客户端通过HTTPS向所述主服务器请求并获取事件的具体数据。The APP client requests and acquires specific data of an event from the primary server through HTTPS.
  27. 如权利要求19-26中任一项所述的方法,其中,该方法还包括:所述APP客户端与IPC终端之间解除绑定的步骤。The method of any of claims 19-26, wherein the method further comprises the step of unbinding between the APP client and the IPC terminal.
  28. 如权利要求19-27中任一项所述的方法,其中,该方法还包括:所述APP客户端触发所述IPC终端升级的步骤。The method of any of claims 19-27, wherein the method further comprises the step of the APP client triggering the IPC terminal upgrade.
  29. 一种基于加密机制的IPC服务实现系统,其中,包括:An IPC service implementation system based on an encryption mechanism, which includes:
    注册绑定模块,用于所述IPC终端通过HTTP或HTTPS与主服务器连接并向所述主服务器注册,以及APP客户端与所述IPC终端实施绑定;Registering a binding module, the IPC terminal is connected to the primary server by using HTTP or HTTPS, and is registered with the primary server, and the APP client performs binding with the IPC terminal;
    密钥生成模块,用于所述主服务器产生加密密钥和解密密钥,并将所述加密密钥传送给所述IPC终端及将所述解密密钥传送给所述APP客户端;所述加密密钥与解密密钥采用对称加密法;a key generation module, configured to generate an encryption key and a decryption key by the primary server, and transmit the encryption key to the IPC terminal and transmit the decryption key to the APP client; The encryption key and the decryption key are symmetrically encrypted;
    基站连接模块,用于所述APP客户端向所述主服务器发送播放请求,使所述APP客户端与IPC终端分别与基站建立TCP连接;a base station connection module, configured to send, by the APP client, a play request to the primary server, so that the APP client and the IPC terminal respectively establish a TCP connection with the base station;
    加密模块,用于所述IPC终端利用所述加密密钥将音视频流进行加密后传送给所述APP客户端;An encryption module, configured to: the IPC terminal encrypts the audio and video stream by using the encryption key, and transmits the audio and video stream to the APP client;
    解密模块,用于当所述APP客户端收到所述IPC终端加密处理过的音视频流后,利用所述解密密钥对音视频流进行解密处理,以便实现音视频的播放。And a decryption module, configured to perform decryption processing on the audio and video stream by using the decryption key after the APP client receives the audio and video stream encrypted by the IPC terminal, so as to implement audio and video playback.
  30. 如权利要求29所述的系统,其中,所述注册绑定模块包括:The system of claim 29 wherein said registration binding module comprises:
    绑定判断单元,用于所述APP客户端通过qid和ts获取所述IPC终端的绑定数据,并判断所述APP客户端是否已为绑定状态;a binding determining unit, configured to acquire the binding data of the IPC terminal by using the qid and the ts, and determine whether the APP client is in a binding state;
    若是,则将判定结果返回,并下行绑定结果信令;If yes, the decision result is returned, and the downlink binding result signaling is performed;
    若否,则执行绑定操作及返回结果,并下行绑定结果信令。If not, the binding operation is performed and the result is returned, and the result signaling is downlink bound.
  31. 如权利要求29或30所述的系统,其中,所述基站连接模块包括:The system of claim 29 or 30, wherein the base station connection module comprises:
    第一连接单元,用于所述APP客户端向所述基站发起TCP连接;a first connecting unit, configured to initiate, by the APP client, a TCP connection to the base station;
    第一检查判断单元,用于所述基站使用主服务器的公钥检查判断所述APP客户端提供的sig是否合法;若判定为否时,则连接失败;若判定为是时,则所述APP客户端与基站建立连接,并通过所述主服务器向所述IPC终端下发连接所述基站的通知;a first check judging unit, configured to: use the public key check of the main server to determine whether the sig provided by the APP client is legal; if the determination is no, the connection fails; if the determination is yes, the APP The client establishes a connection with the base station, and sends a notification for connecting the base station to the IPC terminal by using the primary server;
    第二连接单元,用于所述IPC终端向所述基站发起TCP连接;a second connecting unit, configured to initiate, by the IPC terminal, a TCP connection to the base station;
    第二检查判断单元,用于所述基站使用主服务器的公钥检查判断所述IPC终端提供的sig是否合法;若判定为否时,则连接失败,若判定为是时,则所述IPC终端与基站建立连接。a second check judging unit, configured to: use the public key check of the main server to determine whether the sig provided by the IPC terminal is legal; if the determination is no, the connection fails, and if the determination is yes, the IPC terminal Establish a connection with the base station.
  32. 如权利要求29-31中任一项所述的系统,其中,该系统进一步包括用于所述APP客户端向所述IPC终端发送操作控制信令时的信令处理的信令处理模块,所述信令处理模块包括:The system of any of claims 29-31, wherein the system further comprises a signaling processing module for signaling processing when the APP client sends operational control signaling to the IPC terminal, The signaling processing module includes:
    信令发送单元,用于所述APP客户端利用HTTPS将信令发送至所述主服务器;a signaling sending unit, configured to send, by the APP client, signaling to the primary server by using HTTPS;
    信息通知下发单元,用于所述主服务器返回响应数据,并通过HTTP向所述IPC终端下发执行信令的信息通知;所述信息通知采用所述主服务器的私钥签名,所述信息通知参数包括会话ID及信令码;And the information notification sending unit is configured to send the response data to the primary server, and send an information notification of performing signaling to the IPC terminal by using HTTP; the information notification is signed by the private key of the primary server, where the information is The notification parameter includes a session ID and a signaling code;
    信令执行单元,用于所述IPC终端根据信令内容作出相应操作,并上传信令执行结果。And a signaling execution unit, configured to perform corresponding operations according to the signaling content by the IPC terminal, and upload a signaling execution result.
  33. 如权利要求29-32中任一项所述的系统,其中,该系统进一步包括用于所述APP客 户端和IPC终端与所述基站关闭连接的基站断连模块,所述基站断连模块包括:The system of any of claims 29-32, wherein the system further comprises for the APP The base station disconnecting module is connected to the base station and the IPC terminal and the base station is closed, and the base station disconnecting module includes:
    第一断连单元,用于所述APP客户端主动执行关闭与所述基站TCP连接的操作。And a first disconnecting unit, configured to perform, by the APP client, an operation of closing a TCP connection with the base station.
  34. 如权利要求29-33中任一项所述的系统,其中,所述基站断连模块还包括:The system of any of claims 29-33, wherein the base station disconnection module further comprises:
    断连发送单元,用于所述APP客户端向主服务器发送强制关闭所述APP客户端和IPC终端与基站之间的TCP连接的信令;a disconnect sending unit, configured to send, by the APP client, signaling for forcibly closing a TCP connection between the APP client and the IPC terminal and the base station to the primary server;
    通知发送单元,用于所述主服务器向所述IPC终端发送关闭与所述基站之间的TCP连接的通知;a notification sending unit, configured to send, by the primary server, a notification to the IPC terminal to close a TCP connection with the base station;
    第二断连单元,用于当所述IPC终端接收所述主服务器发送来的通知后,所述IPC终端关闭与所述基站的TCP连接。a second disconnecting unit, configured to: after the IPC terminal receives the notification sent by the primary server, the IPC terminal closes a TCP connection with the base station.
  35. 如权利要求29-34中任一项所述的系统,其中,所述基站断连模块还包括:The system of any of claims 29-34, wherein the base station disconnection module further comprises:
    第三断连单元,用于当所述基站检测到无所述APP客户端对所述IPC终端正在进行使用或操作,且持续超过预设时间后,所述基站关闭与所述IPC终端的TCP连接。a third disconnecting unit, configured to: when the base station detects that the APP client is not using or operating the IPC terminal, and continues to exceed a preset time, the base station closes the TCP with the IPC terminal. connection.
  36. 如权利要求29-35中任一项所述的系统,其中,该系统还包括用于所述IPC终端向APP客户端推送事件的事件推送模块;所述事件推送模块包括:The system of any of claims 29-35, wherein the system further comprises an event pushing module for the IPC terminal to push an event to the APP client; the event pushing module comprising:
    事件发送单元,用于所述IPC终端通过HTTPS向所述主服务器发送事件数据;An event sending unit, configured to send, by the IPC terminal, event data to the primary server by using HTTPS;
    事件下发单元,用于所述主服务器返回响应数据,并利用HTTP向所述APP客户端下发事件的信息通知;An event sending unit, configured to send response data to the main server, and send an information notification of the event to the APP client by using HTTP;
    事件获取单元,用于所述APP客户端通过HTTPS向所述主服务器请求并获取事件的具体数据。An event obtaining unit, configured to request, by the APP client, specific data of an event to the primary server by using HTTPS.
  37. 如权利要求29-36中任一项所述的系统,其中,该系统还包括用于所述APP客户端与IPC终端之间解除绑定的解绑模块。The system of any of claims 29-36, wherein the system further comprises an unbundling module for unbinding between the APP client and the IPC terminal.
  38. 如权利要求29-37中任一项所述的系统,其中,该系统还包括用于所述APP客户端触发所述IPC终端升级的升级模块。The system of any of claims 29-37, wherein the system further comprises an upgrade module for the APP client to trigger the IPC terminal upgrade.
  39. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-9中的任一个所述的基于加密机制的IPC服务实现方法,或者所述计算设备执行根据权利要求19-28中的任一个所述的基于加密机制的IPC服务实现方法。A computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform an encryption mechanism based IPC service according to any of claims 1-9 Implementing a method, or the computing device performing the encryption mechanism based IPC service implementation method according to any one of claims 19-28.
  40. 一种计算机可读介质,其中存储了如权利要求39所述的计算机程序。 A computer readable medium storing the computer program of claim 39.
PCT/CN2016/099895 2015-11-26 2016-09-23 Encryption mechanism-based ipc service implementation method and system WO2017088575A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510845799.9 2015-11-26
CN201510845799.9A CN105306493B (en) 2015-11-26 2015-11-26 IPC service implementing method and system based on encryption mechanism

Publications (1)

Publication Number Publication Date
WO2017088575A1 true WO2017088575A1 (en) 2017-06-01

Family

ID=55203243

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099895 WO2017088575A1 (en) 2015-11-26 2016-09-23 Encryption mechanism-based ipc service implementation method and system

Country Status (2)

Country Link
CN (1) CN105306493B (en)
WO (1) WO2017088575A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306493B (en) * 2015-11-26 2019-02-15 北京奇虎科技有限公司 IPC service implementing method and system based on encryption mechanism
CN109840407A (en) * 2018-12-24 2019-06-04 航天信息股份有限公司 Intelligent personnel's verification system and method
CN110932939A (en) * 2019-12-06 2020-03-27 杭州视洞科技有限公司 Scheme for monitoring APP and IPC network conditions in real time
CN112969094A (en) * 2021-02-26 2021-06-15 江西格灵如科科技有限公司 Virtual reality video decryption system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094394A (en) * 2007-07-17 2007-12-26 中国科学院软件研究所 Method for guaranteeing safe transmission of video data, and video monitoring system
CN101163228A (en) * 2007-10-24 2008-04-16 中国电信股份有限公司 Video data encrypted system and method for network video monitoring
US20120060031A1 (en) * 2010-09-02 2012-03-08 Verizon Patent And Licensing Inc. Secure video content provisioning using digital rights management
CN105306493A (en) * 2015-11-26 2016-02-03 北京奇虎科技有限公司 Method and system for implementing IPC (IP Camera) service based on encryption mechanism

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938485B (en) * 2010-09-10 2014-05-14 上海复控华龙微系统技术有限公司 Bidirectional safety certification based IP (internet protocol) Camera service realization method of point-to-point protocol
CN103905384B (en) * 2012-12-26 2017-11-24 北京握奇数据系统有限公司 The implementation method of session handshake between built-in terminal based on secure digital certificate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094394A (en) * 2007-07-17 2007-12-26 中国科学院软件研究所 Method for guaranteeing safe transmission of video data, and video monitoring system
CN101163228A (en) * 2007-10-24 2008-04-16 中国电信股份有限公司 Video data encrypted system and method for network video monitoring
US20120060031A1 (en) * 2010-09-02 2012-03-08 Verizon Patent And Licensing Inc. Secure video content provisioning using digital rights management
CN105306493A (en) * 2015-11-26 2016-02-03 北京奇虎科技有限公司 Method and system for implementing IPC (IP Camera) service based on encryption mechanism

Also Published As

Publication number Publication date
CN105306493B (en) 2019-02-15
CN105306493A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
US20200236408A1 (en) Reducing time to first encrypted frame in a content stream
US10412061B2 (en) Method and system for encrypted communications
US10491575B2 (en) Secure dynamic communication network and protocol
US7992212B2 (en) Mobile terminal and gateway for remotely controlling data transfer from secure network
US10650119B2 (en) Multimedia data processing method, apparatus, system, and storage medium
WO2019109809A1 (en) Media data processing method, computer device and storage medium
WO2017177767A1 (en) Service access, and control method and apparatus therefor
WO2017088575A1 (en) Encryption mechanism-based ipc service implementation method and system
JP2007305136A (en) Personal domain controller
EP3059945A1 (en) Method and system for video surveillance content adaptation, and central server and device
WO2022033278A1 (en) Ims data channel-based communication method and device
US9438567B1 (en) Location-based remote media access via mobile device
JP6466382B2 (en) Method and apparatus for sending keys
CN112753031A (en) Media content control
US9825942B2 (en) System and method of authenticating a live video stream
WO2015074450A1 (en) Instant messaging (im) client side data transmission processprocess and apparatus
KR20100056934A (en) System and method for transporting of contents using cache server
JP5773894B2 (en) Method and system for relaying authority information between terminals
US20210097023A1 (en) Decentralized Data System
KR101745367B1 (en) Multimedia contents streaming system using http and method thereof
US11310235B1 (en) Internet of things system based on security orientation and group sharing
US11234032B2 (en) Method of managing the right of access to a digital content
US20200351088A1 (en) System and method for managing certification for webpage service system
WO2021109998A1 (en) Media content transmission method and apparatus, and storage medium
CN116980399A (en) Method and device for establishing negotiation information in real-time communication connection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867802

Country of ref document: EP

Kind code of ref document: A1