Equipment management method and device, electronic equipment and storage medium
By establishing a virtual device process in the lower platform, receiving device management requests from the upper platform and performing corresponding operations, the direct problem of the higher platform's equipment management of the lower platform is solved, the signaling conversion efficiency is improved, and the device management platform registration is realized Stable and unified control of equipment.
Patent Information
- Application Number
- CN202310640951.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, when the superior platform manages the equipment registered to the subordinate platform externally, it cannot directly manage the registered equipment, and the signaling conversion efficiency is low, resulting in the platform being prone to unstable conditions.
By establishing a virtual device process in the lower platform, receiving device management requests from the upper platform, determining the target device identity, and performing corresponding device management operations based on the identifier, unified management and control of equipment registered with the lower platform are realized.
It solves the direct problem of the superior platform's equipment management over the subordinate platform, improves signaling conversion efficiency, and ensures the stable and unified control of the registered equipment by the equipment management platform.
Smart Images

Figure CN119071133A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video processing technology, and in particular to a device management method, device, electronic device and storage medium. Background Art
[0002] IPC, or IP (Internet Protocol) Camera, refers to network cameras, webcams and other network shooting devices. With the development of video surveillance technology, the management of IPC has become more standardized. IPC needs to be registered to the device management platform through SIP (Session Initiation Protocol) in the standard process of device registration.
[0003] When the device management platform, as the upper-level platform, performs external domain management on the IPC registered to the lower-level platform, the upper-level platform cannot directly manage the IPC and needs to synchronize the device status and storage with the lower-level platform, resulting in low signaling conversion efficiency. At the same time, when the performance of the upper-level platform and the lower-level platform are inconsistent, the pressure of pushing or receiving messages is inconsistent. When an abnormality occurs on one platform, it is easy to cause instability in the docking platform. Summary of the invention
[0004] The present invention provides a device management method, an apparatus, an electronic device and a storage medium to achieve unified management and control of devices registered to a lower-level platform by a device management platform.
[0005] In a first aspect, an embodiment of the present invention provides a device management method, which is executed by a lower-level platform and includes:
[0006] If it is determined that the virtual device process of the lower-level platform receives a device management request sent by the upper-level platform, then determining device management information according to the device management request, wherein the device management information at least includes a target device identifier;
[0007] Determine a target registered device that matches the target device identifier, and perform a device management operation corresponding to the device management request on the target registered device;
[0008] The device identifier is a unique identifier of the device registered to the lower-level platform.
[0009] In a second aspect, an embodiment of the present invention further provides a device management apparatus, the device comprising:
[0010] A target device identification determination module, for determining device management information according to the device management request if it is determined that the virtual device process of the lower-level platform receives a device management request sent by the upper-level platform, wherein the device management information at least includes the target device identification;
[0011] A device management module, used to determine a target registered device that matches the target device identifier, and perform a device management operation corresponding to the device management request on the target registered device;
[0012] The device identifier is a unique identifier of the device registered to the lower-level platform.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a device management method as described in any one of the embodiments of the present invention is implemented.
[0014] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a device management method as described in any one of the embodiments of the present invention.
[0015] The technical solution of the embodiment of the present invention is to determine the target device identification and other device management information according to the device management request through the virtual device process of the lower-level platform when receiving the device management request sent by the upper-level platform, and determine the matching target registered device according to the target device identification, and perform the device management operation matching the device management request on the target registered device. The problem in the prior art that the upper-level platform cannot directly manage the registered device when performing external domain management on the device registered to the lower-level platform, the signaling conversion efficiency is low, and the platform is prone to instability is solved, and the unified management and control of the device registered to the lower-level platform by the device management platform is realized.
[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 is a flow chart of a device management method provided by Embodiment 1 of the present invention;
[0019] Figure 2 This is a schematic diagram of information interaction in a registration process provided by Embodiment 1 of the present invention;
[0020] Figure 3 It is a structural diagram of a device management system provided by Embodiment 1 of the present invention;
[0021] Figure 4 is a flow chart of a device management method provided by Embodiment 2 of the present invention;
[0022] Figure 5 This is a schematic diagram of information interaction in a live video-on-demand process provided by Embodiment 2 of the present invention;
[0023] Figure 6 This is a schematic diagram of information interaction in a video recording control process provided by Embodiment 2 of the present invention;
[0024] Figure 7 This is a schematic diagram of information interaction during a video playback process provided by Embodiment 2 of the present invention;
[0025] Figure 8 It is a structural diagram of a device management device provided by Embodiment 3 of the present invention;
[0026] Fig. 9 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1A flowchart of a device management method is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where the upper-level platform performs unified management and control over the devices registered to the lower-level platform. The method can be executed by a device management device, which can be implemented in the form of hardware and / or software. The device management device can be configured in the lower-level platform and used in conjunction with the registered devices, storage devices and the upper-level platform.
[0031] like Figure 1 As shown, the method includes:
[0032] S110: If it is determined that the virtual device process of the lower-level platform receives a device management request sent by the upper-level platform, device management information is determined according to the device management request, where the device management information at least includes a target device identifier.
[0033] The upper-level platform is also the upper-level domain. For example, a VM platform or a third-party platform can be selected. The lower-level platform is also the lower-level domain. This embodiment does not limit the specific forms of the upper-level platform and the lower-level platform. The upper-level platform requires that the access method must be a standard GB registration process based on SIP (Session Initiation Protocol). Specifically, the upper-level platform access device must comply with the "Technical Requirements for Information Transmission, Exchange, and Control of Public Security Video Surveillance Network System".
[0034] The virtual device process of the present application is a newly established process in the lower-level platform, which is used to manage the devices registered to the lower-level platform and to register the lower-level platform to the upper-level platform. In this embodiment, the device registered to the lower-level platform can be an encoder, such as an IPC, or a decoder. Correspondingly, the virtual device process can be a virtual encoder device process, such as a virtual IPC process, or a virtual decoder device process, that is, the type of the virtual device process matches the type of the device to be managed, and the virtual device process manages the device through the device identifier.
[0035] When the device registered to the lower-level platform is an encoder such as an IPC, the device management request may include a live video-on-demand request, a video control request, a video retrieval request, and a video playback request, etc. When the device connected to the lower-level platform is a decoder, the device management request may include a video display control request, etc. This embodiment does not limit the specific content of the device management request. Among them, live video-on-demand is the core technology in the field of video surveillance. The upper-level platform requests the video stream from the IPC and plays it in real time. Video control refers to controlling the IPC to start recording. Video retrieval refers to retrieving the historical video / audio of a certain IPC within a certain time period. Video playback refers to replaying the historical video / audio of a certain IPC within a certain time period.
[0036] The device ID is the unique ID of the device registered to the lower-level platform. When a device is registered to the lower-level platform, the virtual device process generates a device ID for the device. When the virtual device process registers the lower-level platform to the upper-level platform, the device IDs of each device registered to the lower-level platform are sent to the upper-level platform. The upper-level platform can achieve unified and centralized management of each device registered to the lower-level platform based on each device ID.
[0037] It should be noted that in this embodiment, the device management method is explained by taking the registered device registered to the lower-level platform as the real IPC, the virtual device process as the virtual IPC process, and the device identifier as the unique identifier of the real IPC registered to the lower-level platform as an example.
[0038] Furthermore, the device identification includes a device identity and a port number; the method also includes: determining the device identity of each registered device registered to the lower-level platform; re-registering the registered device to the virtual device process of the lower-level platform; determining the virtual Internet Protocol address and the port number of each registered device through the virtual device process of the lower-level platform; and registering the lower-level platform to the upper-level platform through the virtual device process according to the virtual Internet Protocol address and the standard registration process.
[0039] In this embodiment, the real IPC is registered with the lower-level platform. Specifically, the real IPC and storage device can be registered with the lower-level platform based on a private protocol or an onvif protocol, etc. This embodiment does not limit the registration method between the real IPC and the lower-level platform. Furthermore, the real IPC can be registered with the device management module of the lower-level platform, and the device management module assigns a device identity to each real IPC, that is, a device ID (Identity document).
[0040] A virtual IPC process is established on the lower-level platform, and each real IPC connected is registered to the virtual IPC process through the device management module of the lower-level platform. Through the virtual IPC process, a virtual IP (Internet Protocol) address is generated, and a port number is assigned to each real IPC registered to the virtual IPC process. The virtual IPC process stores information such as the real IP address, device ID, and port number of each real IPC. The virtual IPC process is registered to the upper-level platform based on the virtual IP address in accordance with the standard registration process. Furthermore, the virtual IPC process can send the device identification of each real IPC to the upper-level platform, so that the upper-level platform can manage and control each IPC based on the device identification.
[0041] In this embodiment, a virtual IP address is generated by a virtual IPC process in the lower-level platform, and the lower-level platform is registered with the upper-level platform through the virtual IP address generated by the virtual IPC process. The virtual IPC process simulates the device access to the upper-level platform based on the virtual IP address, thereby meeting the access requirements of the upper-level platform.
[0042] Figure 2 A schematic diagram of the information interaction of the registration process is provided, such as Figure 2 As shown, the lower-level platform also includes a virtual IPC process and a device management module, and the real IPC is registered with the lower-level platform device management module based on its real IP address. The lower-level platform device management module assigns a device ID to the real IPC, and based on the real IP address and device ID of the real IPC, registers the real IPC with the virtual IPC process. The virtual IPC process assigns a port number to the IPC, and stores the correspondence between the real IP address, device ID, and port number of the IPC. The virtual IPC process is registered with the upper-level platform based on the generated virtual IP address, and the device identification of each real IPC is sent to the upper-level platform. The upper-level platform feeds back a successful registration message to complete the device online. The virtual IPC process forwards the successful registration message to the lower-level platform device management module, and the lower-level platform device management module feeds back the successful registration message to the real IPC.
[0043] Furthermore, in this embodiment, a corresponding storage device can be allocated to each real IPC. Figure 3 A schematic diagram of the structure of a device management system is provided. Figure 3 As shown, the device management system includes an upper-level platform, a lower-level platform, a real IPC, and a storage device. The mapping relationship between the real IPC and the storage device can be determined first, and then the real IPC and the storage device can be registered to the lower-level platform, or the real IPC and the storage device can be registered to the lower-level platform first, and then the mapping relationship between the real IPC and the storage device can be determined. This embodiment does not limit this. The virtual IPC process of the lower-level platform is registered to the upper-level platform. At this time, for the upper-level platform, the lower-level platform and the real IPCs and storage devices connected to the lower-level platform are regarded as a whole, which is equivalent to a multi-channel single-IP access device.
[0044] Furthermore, the virtual device process communicates with the upper-level platform based on the session initiation protocol; within the lower-level platform, communication is based on the internal communication protocol; and between the lower-level platform and the registered device, communication is based on the communication protocol when the registered device is registered to the lower-level platform.
[0045] In this embodiment, since the virtual IPC process is registered to the upper-level platform based on the SIP protocol and the standard registration process, the virtual IPC process and the upper-level platform transmit messages based on the SIP protocol. In the lower-level platform, that is, between the virtual IPC process and the lower-level platform device management module, communication is based on the internal communication protocol. Exemplarily, the internal communication protocol can be MAI, VMP, etc., and this embodiment does not limit the type of internal communication protocol. Since the real IPC is accessed to the lower-level platform based on other protocols, the real IPC and the lower-level platform communicate based on private protocols, onvif protocols, etc., and this embodiment does not limit the types of other protocols. Furthermore, the storage devices corresponding to each real IPC are also accessed to the lower-level platform based on other protocols, and the lower-level platform and the storage device communicate based on the communication protocol when the storage device is registered to the lower-level platform.
[0046] S120: Determine a target registered device that matches the target device identifier, and perform a device management operation corresponding to the device management request on the target registered device.
[0047] The device identifier is a unique identifier of the device registered to the lower-level platform.
[0048] Specifically, after the virtual IPC process obtains the target device identification according to the device management request, it determines the target IPC that matches the target device identification according to the stored device ID, real IP address, port number, etc. of each IPC. The lower-level platform device management module performs corresponding device management operations on the target IPC.
[0049] The technical solution of the embodiment of the present invention is to determine the target device identification and other device management information according to the device management request through the virtual device process of the lower-level platform when receiving the device management request sent by the upper-level platform, and determine the matching target registered device according to the target device identification, and perform the device management operation matching the device management request on the target registered device. The problem in the prior art that the upper-level platform cannot directly manage the registered device when performing external domain management on the device registered to the lower-level platform, the signaling conversion efficiency is low, and the platform is prone to instability is solved, and the unified management and control of the device registered to the lower-level platform by the device management platform is realized.
[0050] Embodiment 2
[0051] Figure 4 A flowchart of a device management method provided in the second embodiment of the present invention. Based on the above embodiments, the embodiment of the present invention further specifies the process of device registration to the lower-level platform and the lower-level platform registration to the upper-level platform, the process of live on-demand, the process of video control, the process of video retrieval and the process of video playback.
[0052] like Figure 4 As shown, the method includes:
[0053] S210: Determine the device identity of each registered device registered to the lower-level platform.
[0054] S220: Register the registered device to the virtual device process of the lower-level platform.
[0055] S230: Determine the virtual Internet Protocol address and the port number of each registered device through the virtual device process of the lower-level platform.
[0056] S240: Register the lower-level platform to the upper-level platform through the virtual device process according to the virtual Internet Protocol address and the standard registration process.
[0057] S250: If it is determined that the virtual device process of the lower-level platform receives a device management request sent by the upper-level platform, device management information is determined according to the device management request, where the device management information at least includes a target device identifier.
[0058] S260: Determine a target registered device that matches the target device identifier.
[0059] The process of registering the network shooting device and the storage device to the lower-level platform, the process of registering the lower-level platform to the upper-level platform, the process of the virtual device process determining the target device identifier according to the device management request, and determining the target registered device corresponding to the target device identifier has been described in the above embodiments and will not be repeated in this embodiment.
[0060] In this embodiment, the registered device is a network camera, and S260 further includes: determining a target network camera that matches the target device identifier. In this embodiment, the specific process of the device management operation is described by taking the registered device as an IPC as an example.
[0061] S270: Perform a device management operation corresponding to the device management request on the target registered device.
[0062] Furthermore, determining the device management information according to the device management request may include: if it is determined that the device management request is a live video-on-demand request, determining the target device identifier and the receiving end information according to the live video-on-demand request; S270 may include: sending the receiving end information to the media streaming server; determining the sending end information that matches the target network shooting device, and sending the sending end information to the media streaming server; sending a streaming instruction to the target network shooting device, so that the target network shooting device sends the video stream to the media streaming server, and the media streaming server forwards the video stream to the upper-level platform according to the sending end information and the receiving end information.
[0063] The receiving end information may include the receiving end ID and serial number of the upper platform, and the specific content of the receiving end information is not limited in this embodiment. The sending end information may include the sending address and port number of the IPC, and the specific content of the sending end information is not limited in this embodiment.
[0064] Figure 5 A schematic diagram of information interaction during live on-demand video is provided. Figure 5 As shown, after the virtual IPC process receives the live video-on-demand request, it determines the target device identifier and the receiving end information according to the live video-on-demand request, and sends the target device identifier and the receiving end information to the lower-level platform device management module through internal communication. The lower-level platform device management module negotiates with the media stream server and sends the receiving end information to the media stream server. The lower-level platform device management module negotiates with the target IPC according to the real IP address of the target IPC corresponding to the target device identifier to obtain the sending end information. The target IPC is the real IPC registered to the lower-level platform device management module. The lower-level platform device management module negotiates with the media stream server and sends the sending end information to the media stream server. The media stream server can confirm the sending and receiving stream information at this time. The lower-level platform device management module sends the sending confirmation information to the virtual IPC process, and the virtual IPC process sends the sending confirmation information to the upper-level platform. The IPC sends the stream to the media stream server, and the media stream server sends the video stream to the upper-level platform.
[0065] Further, S270 may include: if it is determined that the device management request is a recording control request, determining a target storage device that matches the target network shooting device based on a predetermined mapping relationship between the network shooting device and the storage device; sending a recording instruction to the target network shooting device so that the target network shooting device sends the video stream to the target storage device for storage; and sending a recording instruction to the target storage device so that the target storage device stores the video stream according to the storage plan.
[0066] In this embodiment, the mapping relationship between each real IPC and storage device can be determined before each real IPC and storage device are registered with the lower-level platform device management module, or after each real IPC and storage device are registered with the lower-level platform device management module, and this embodiment does not limit this. According to the target IPC corresponding to the target device identifier, and the mapping relationship between each real IPC and storage device, the target storage device can be determined. The storage plan can be used to indicate the storage content, location, time when storage activities occur, amount of stored data, retained and destroyed data, and storage method of the storage device, etc. This embodiment does not limit the specific content of the storage plan.
[0067] Figure 6 A schematic diagram of information interaction during the video recording control process is provided. Figure 6 As shown, when the virtual IPC process receives a recording control request, it determines the target device identifier according to the recording control request, and sends the target IPC corresponding to the target device identifier and its real IP address to the lower-level platform device management module. The lower-level platform device management module determines the target storage device that matches the target IPC, and sends a recording instruction to the target IPC and the target storage device. The target IPC directly sends the video stream to the target storage device for storage, and the target storage device stores the video stream according to the storage plan.
[0068] Furthermore, determining the device management information according to the device management request may include: if it is determined that the device management request is a video retrieval request, determining the target device identification and retrieval information according to the video retrieval request; S270 includes: determining a target storage device that matches the target network shooting device according to a predetermined mapping relationship between the network shooting device and the storage device; sending a retrieval instruction to the target storage device so that the target storage device performs a video search according to the retrieval information to obtain a retrieval result; and sending the retrieval result fed back by the target storage device to the upper-level platform through the virtual device process.
[0069] The search information may include video recording start and end information, etc. This embodiment does not limit the specific content of the search information.
[0070] The information interaction of the video retrieval process is similar to that of the video control process. Specifically, when the virtual IPC process receives a video retrieval request, it determines the target device identifier and retrieval information according to the video retrieval request, and sends the target IPC corresponding to the target device identifier and its real IP address and retrieval information to the lower-level platform device management module. The lower-level platform device management module determines the target storage device that matches the target IPC, and generates a retrieval instruction based on the retrieval information and sends it to the target storage device. After the target storage device receives the retrieval instruction, it performs a video retrieval based on the retrieval information and sends the retrieval result to the lower-level platform device management module. The lower-level platform device management module sends the retrieval result to the virtual IPC process, and the virtual IPC process sends the retrieval result to the upper-level platform.
[0071] Furthermore, determining the device management information according to the device management request may include: if it is determined that the device management request is a video playback request, determining the target device identifier and playback parameters according to the video playback request; S270 may include: determining a target storage device that matches the target network shooting device according to a predetermined mapping relationship between the network shooting device and the storage device; sending an address search instruction to the target storage device so that the target storage device determines the network address of the video stream to be played back according to the playback parameters; sending the network address of the video stream to be played back by the target storage device to the upper-level platform through the virtual device process; if it is determined that the virtual device process of the lower-level platform receives the video stream play instruction to be played back sent by the upper-level platform, sending a video playback instruction to the target storage device so that the target storage device sends the video stream to be played back to the upper-level platform.
[0072] The playback parameters may include the sender media stream sequence number, the media stream receiver ID, the receiver media stream sequence number, the playback channel ID, the playback type, and the playback time period, etc. This embodiment does not limit the specific types of the playback parameters. Further, the video playback request may be in the SDP (Session Description Protocol) message body format, the s field is "playback", indicating historical playback; the u field is the playback channel ID and the playback type; and the t field is the playback time period.
[0073] Figure 7 A schematic diagram of information interaction during video playback is provided, such as Figure 7As shown, when the virtual IPC process receives a video playback request, it determines the target device identifier and playback parameters according to the video playback request, and sends the target IPC corresponding to the target device identifier and its real IP address and playback parameters to the lower-level platform device management module. The lower-level platform device management module determines the target storage device that matches the target IPC, and generates an address search instruction based on playback parameters such as the playback time period and sends it to the target storage device. The target storage device determines the URL (Uniform Resource Locator) address of the video stream to be played back based on the playback parameters, and sends the URL address to the lower-level platform device management module. The lower-level platform device management module sends the URL address to the virtual IPC process, and the virtual IPC process sends the URL address to the upper-level platform. The upper-level platform sends a playback instruction for the video stream to be replayed to the virtual IPC process. After receiving the playback instruction for the video stream to be replayed, the virtual IPC process sends the playback instruction for the video stream to be replayed to the lower-level platform device management module. The lower-level platform device management module sends the playback instruction for the video stream to be replayed to the target storage device. The target storage device sends the video stream to be replayed corresponding to the URL address to the upper-level platform.
[0074] Embodiment 3
[0075] Figure 8 This is a schematic diagram of the structure of a device management device provided by Embodiment 3 of the present invention. Figure 8 As shown, the apparatus includes: a target device identification determination module 310 and a device management module 320 .
[0076] Among them:
[0077] The target device identification determination module 310 is used to determine the device management information according to the device management request if it is determined that the virtual device process of the lower-level platform receives the device management request sent by the upper-level platform, and the device management information at least includes the target device identification;
[0078] The device management module 320 is used to determine a target registered device that matches the target device identifier, and perform a device management operation corresponding to the device management request on the target registered device;
[0079] The device identifier is a unique identifier of the device registered to the lower-level platform.
[0080] The technical solution of the embodiment of the present invention is to determine the target device identification and other device management information according to the device management request when receiving the device management request sent by the upper-level platform through the virtual device process of the lower-level platform, and determine the matching target registered device according to the target device identification, and perform the device management operation matching the device management request on the target registered device. This solves the problem in the prior art that when the upper-level platform performs external domain management on the devices registered to the lower-level platform, it is unable to directly manage the registered devices of the lower-level platform, the signaling conversion efficiency is low, and the platform is prone to instability, and realizes the unified management and control of the devices registered to the lower-level platform by the device management platform.
[0081] Based on the above embodiment, the device identification includes a device identity and a port number;
[0082] The device further comprises:
[0083] A device identity determination module, used to determine the device identity of each registered device registered to the lower-level platform;
[0084] A device re-registration module, used to re-register a registered device to the virtual device process of the lower-level platform;
[0085] A port number determination module, used to determine the virtual Internet Protocol address and the port number of each registered device through the virtual device process of the lower-level platform;
[0086] The lower-level platform registration module is used to send the device identification of each network shooting device to the upper-level platform through the virtual device process.
[0087] On the basis of the above embodiment, the registered device is a network shooting device, and the target device identification determination module 310 includes:
[0088] a receiving end information determining unit, configured to determine a target device identifier and receiving end information according to the live video-on-demand request if it is determined that the device management request is a live video-on-demand request;
[0089] The device management module 320 includes:
[0090] A first target network camera device determining unit, configured to determine a target network camera device that matches the target device identifier;
[0091] A receiving end information sending unit, used for sending the receiving end information to a media stream server;
[0092] A stream sending end information sending unit, used to determine the stream sending end information matching the target network shooting device, and send the stream sending end information to the media stream server;
[0093] The streaming instruction sending unit is used to send a streaming instruction to the target network shooting device, so that the target network shooting device sends the video stream to the media stream server, and the media stream server forwards the video stream to the upper-level platform according to the streaming end information and the receiving end information.
[0094] Based on the above embodiment, the registered device is a network shooting device, and the device management module 320 includes:
[0095] A second target network camera device determining unit, configured to determine a target network camera device that matches the target device identifier;
[0096] a first target storage device determining unit, configured to determine a target storage device matching the target network camera device according to a predetermined mapping relationship between network camera devices and storage devices if the device management request is determined to be a video recording control request;
[0097] The recording instruction sending unit is used to send a recording instruction to the target network shooting device so that the target network shooting device sends the video stream to the target storage device for storage, and to send a recording instruction to the target storage device so that the target storage device stores the video stream according to the storage plan.
[0098] On the basis of the above embodiment, the registered device is a network shooting device, and the target device identification determination module 310 includes:
[0099] a retrieval information determining unit, configured to determine a target device identifier and retrieval information according to the video retrieval request if it is determined that the device management request is a video retrieval request;
[0100] The device management module 320 includes:
[0101] A third target network camera device determining unit, configured to determine a target network camera device that matches the target device identifier;
[0102] A second target storage device unit, configured to determine a target storage device matching the target network shooting device according to a predetermined mapping relationship between the network shooting device and the storage device;
[0103] A retrieval instruction sending unit, used to send a retrieval instruction to the target storage device, so that the target storage device performs a video retrieval according to the retrieval information to obtain a retrieval result;
[0104] The search result sending unit is used to send the search result fed back by the target storage device to the upper-level platform through the virtual device process.
[0105] On the basis of the above embodiment, the registered device is a network shooting device, and the target device identification determination module 310 includes:
[0106] a playback parameter determination unit, configured to determine a target device identifier and playback parameters according to the video playback request if it is determined that the device management request is a video playback request;
[0107] The device management module 320 includes:
[0108] a fourth target network camera device determining unit, configured to determine a target network camera device that matches the target device identifier;
[0109] A third target storage device unit, configured to determine a target storage device matching the target network shooting device according to a predetermined mapping relationship between the network shooting device and the storage device;
[0110] A network address determination unit, used to send an address search instruction to the target storage device, so that the target storage device determines the network address of the video stream to be played back according to the playback parameters;
[0111] A network address sending unit, used for sending the network address of the video stream to be played back fed back by the target storage device to the upper-level platform through the virtual device process;
[0112] The video playback instruction sending unit is used to send the video playback instruction to the target storage device if it is determined that the virtual device process of the lower-level platform receives the video stream to be played back instruction sent by the upper-level platform, so that the target storage device sends the video stream to be played back to the upper-level platform.
[0113] Based on the above embodiment, the virtual device process communicates with the upper platform based on the session initiation protocol;
[0114] Communicating within the lower-level platform based on an internal communication protocol;
[0115] The lower-level platform communicates with the registered device based on the communication protocol when the registered device is registered to the lower-level platform.
[0116] The equipment management device provided in the embodiment of the present invention can execute the equipment management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0117] Embodiment 4
[0118] Fig. 9A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0119] like Fig. 9 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0120] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0121] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the device management method.
[0122] In some embodiments, the device management method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the device management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the device management method in any other appropriate manner (e.g., by means of firmware).
[0123] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0125] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0127] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0128] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0129] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A device management method, characterized in that: The method is executed by a lower-level platform, and includes: If it is determined that the virtual device process of the lower-level platform receives a device management request sent by the upper-level platform, then determining device management information according to the device management request, wherein the device management information at least includes a target device identifier; Determine a target registered device that matches the target device identifier, and perform a device management operation corresponding to the device management request on the target registered device; The device identifier is a unique identifier of the device registered to the lower-level platform.
2. The method according to claim 1, characterized in that The device identification includes a device identity and a port number; Before the step of determining the device management information according to the device management request, the method further includes: Determine the device identity of each registered device registered to the subordinate platform; Re-registering the registered device to the virtual device process of the lower-level platform; Determine the virtual Internet Protocol address and the port number of each registered device through the virtual device process of the lower-level platform; Through the virtual device process, the lower-level platform is registered to the upper-level platform according to the virtual Internet Protocol address and the standard registration process.
3. The method according to claim 1, characterized in that The registered device is a network shooting device, and determining the device management information according to the device management request includes: If it is determined that the device management request is a live video-on-demand request, determining a target device identifier and a receiving end information according to the live video-on-demand request; The determining a target registered device that matches the target device identifier, and performing a device management operation corresponding to the device management request on the target registered device, includes: Determine a target network camera device that matches the target device identifier; Sending the receiving end information to the media streaming server; Determine the streaming end information matching the target network shooting device, and send the streaming end information to the media streaming server; A stream transmission instruction is sent to the target network shooting device, so that the target network shooting device sends the video stream to the media stream server, and the media stream server forwards the video stream to the upper-level platform according to the stream transmission end information and the stream receiving end information.
4. The method according to claim 1, characterized in that: The registered device is a network shooting device, and the determining of a target registered device that matches the target device identifier and performing a device management operation corresponding to the device management request on the target registered device includes: Determine a target network camera device that matches the target device identifier; If it is determined that the device management request is a video recording control request, determining a target storage device that matches the target network camera device according to a predetermined mapping relationship between network camera devices and storage devices; A recording instruction is sent to the target network camera so that the target network camera sends the video stream to the target storage device for storage, and a recording instruction is sent to the target storage device so that the target storage device stores the video stream according to a storage plan.
5. The method according to claim 1, characterized in that The registered device is a network shooting device, and determining the device management information according to the device management request includes: If it is determined that the device management request is a video retrieval request, determining a target device identifier and retrieval information according to the video retrieval request; The determining a target registered device that matches the target device identifier, and performing a device management operation corresponding to the device management request on the target registered device, includes: Determine a target network camera device that matches the target device identifier; Determining a target storage device that matches the target network shooting device according to a predetermined mapping relationship between the network shooting device and the storage device; Sending a retrieval instruction to the target storage device so that the target storage device performs a video retrieval according to the retrieval information to obtain a retrieval result; The search result fed back by the target storage device is sent to the upper-level platform through the virtual device process.
6. The method according to claim 1, characterized in that The registered device is a network shooting device, and the device management information is determined according to the device management request, including: If it is determined that the device management request is a video playback request, determining a target device identifier and playback parameters according to the video playback request; The determining a target registered device that matches the target device identifier, and performing a device management operation corresponding to the device management request on the target registered device, includes: Determine a target network camera device that matches the target device identifier; Determining a target storage device that matches the target network shooting device according to a predetermined mapping relationship between the network shooting device and the storage device; Sending an address search instruction to the target storage device so that the target storage device determines the network address of the video stream to be played back according to the playback parameters; Sending the network address of the video stream to be played back fed back by the target storage device to the upper-level platform through the virtual device process; If it is determined that the virtual device process receives a playback instruction for the video stream to be replayed sent by the upper-level platform, a video playback instruction is sent to the target storage device so that the target storage device sends the video stream to be replayed to the upper-level platform.
7. The method according to any one of claims 1 to 6, characterized in that: The virtual device process communicates with the upper platform based on the session initiation protocol; Communicating within the lower-level platform based on an internal communication protocol; The lower-level platform communicates with the registered device based on the communication protocol when the registered device is registered to the lower-level platform.
8. A device management device, characterized in that: The device is deployed in a lower-level platform, and includes: A target device identification determination module, for determining device management information according to the device management request if it is determined that the virtual device process of the lower-level platform receives a device management request sent by the upper-level platform, wherein the device management information at least includes the target device identification; A device management module, used to determine a target registered device that matches the target device identifier, and perform a device management operation corresponding to the device management request on the target registered device; The device identifier is a unique identifier of the device registered to the lower-level platform.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the device management method as described in any one of claims 1 to 7 is implemented.
10. A storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute the device management method according to any one of claims 1 to 7 when executed by a computer processor.
