Device data processing method and device, electronic device and readable storage medium
By introducing the cloud Client component and KubeEdge framework into the IoT platform, combined with MQTT and SIP signaling protocols, the delay and bandwidth problems in device data processing are solved, and low-latency processing of device software attributes and video operations is achieved. Meets the needs of intelligent application scenarios.
Patent Information
- Application Number
- CN202110757628.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-07-05
AI Technical Summary
Existing IoT platforms have problems with increased latency and bandwidth in device data processing. In particular, they lack real-time video acquisition and video operation support in video device data processing, and cannot meet the needs of intelligent application scenarios.
By monitoring operation requests in the cloud Client component, business distribution is performed based on the operation type, and the KubeEdge framework and WVP module are used to implement the processing of device software properties and video-related operations. Combined with MQTT and SIP signaling protocols, edge processing of device data and video are realized. Real-time streaming of streams.
It realizes low-latency and low-bandwidth device data processing, supports device software attributes and video operations, enhances the responsiveness and universality of the system, and meets the needs of intelligent application scenarios.
Smart Images

Figure CN115589400B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a device data processing method and apparatus, an electronic device and a readable storage medium. Background Art
[0002] Existing IoT platforms process device data in the cloud, but devices are often deployed far away from the cloud platform. The long transmission path increases the delay of data collection. In addition, the data cleaning and other pre-processing functions of the existing IoT platforms are deployed in the cloud. The original data of the device can only be processed after being reported to the cloud, which undoubtedly increases the transmission bandwidth. The large amount of data reported to the cloud server also increases the server load to a certain extent. In addition, the existing IoT platform does not have the cloud-edge collaboration capability like the KubeEdge-based platform, and often relies on the refresh of the front-end interface to trigger data updates.
[0003] With the support of 5G technology with large bandwidth, low latency and high reliability, IoT applications such as machine vision, remote control and smart meter reading are developing rapidly. KubeEdge has emerged as the times require. It is an open source system built on kubernetes, which extends the orchestration function of containerized applications to the Edge host. Device data can be processed directly on the edge. Compared with traditional IoT platforms, the transmission latency of device data to the cloud processing platform is reduced. In addition, the inherent characteristics of KubeEdge enable deployment and metadata synchronization between the cloud and the edge. When using KubeEdge as an edge computing framework for device data processing, users only need to develop a Mapper program to complete the management of the device. The Mapper program relies on the interface provided by the device SDK. For video devices, it is impossible to obtain real-time video of the device only through the Mapper program, and video operations such as real-time video, recording, and capturing are not supported, which makes the application have some limitations to a certain extent.
[0004] Based on the integrated platform of KubeEdge framework, the corresponding Mapper program needs to be developed when the device is connected. The Mapper program focuses more on how to connect the device to the KubeEdge platform. The platform naturally supports MQTT, Bluetooth, and Modbus protocols. If the device supports any of these three protocols, it can be directly connected to the platform without additional work. However, for video devices, there is no way to obtain real-time video of the device, let alone video operations (such as capturing pictures and recording).
[0005] Since its release, GB / T 28181-2016 has received positive responses from major video surveillance manufacturers. This standard specifies the interconnection structure, communication protocol structure, basic requirements and security requirements for information transmission, exchange and control in the city monitoring alarm network system, as well as technical requirements such as control, transmission process and protocol interface. It implements communication and signaling negotiation with devices based on SIP signaling. Currently, video devices provided by mainstream manufacturers on the market basically support GB / T28181 standard. This standard focuses more on the physical properties of monitoring equipment, such as longitude and latitude, etc., and the software properties of the equipment (such as brightness, white balance, etc.) cannot be obtained, and there is no description in the standard. However, in the IoT environment, in addition to the physical properties of the equipment, the software properties of the equipment also need to be obtained. These properties can realize the linkage of multiple devices under the drive of the rule engine, enrich the usage scenarios, and improve the practicality of the system.
[0006] Video devices that support the GB / T 28181 standard focus on the transmission, control, and video of device information to meet the requirements of the city monitoring and alarm networking system. However, the GB / T 28181 standard does not explain how to obtain device software attributes (such as brightness, white balance, etc.), so it is impossible to obtain the device software attributes. These attributes are indispensable in intelligent application scenarios, especially in multi-device linkage scenarios.
[0007] It can be seen that both device data processing methods have their own advantages, but their shortcomings are also obvious. Accessing the device through only one method cannot meet the usage requirements in smart application scenarios. Summary of the invention
[0008] The present invention provides a device data processing method and apparatus, an electronic device and a readable storage medium, which are used to solve the technical defects existing in the prior art.
[0009] The present invention provides a device data processing method, comprising:
[0010] Use the client component in the cloud to monitor the operation requests sent by the front-end, and distribute services based on the operation type of the operation request;
[0011] When the operation type is device software attributes, the operation request is passed to the KubeEdge framework, parameters are obtained based on the operation request, and the MQTT message is encapsulated and published. After receiving the MQTT message, the Mapper sends the parameters to the specified device;
[0012] When the operation type is a video-related operation, the operation request is sent to the WVP module by way of an interface call, and the WVP module communicates with the designated device through SIP signaling.
[0013] According to the device data processing method of the present invention, the operation request includes:
[0014] Add, delete, modify, query or perform video-related operations on the device, wherein the video-related operations include real-time video, recording or capturing.
[0015] According to the device data processing method of the present invention, the service distribution based on the operation type of the operation request includes:
[0016] Based on the operation type of the operation request, the operation instruction is sent to the edge by calling different interfaces for business distribution.
[0017] The present invention also provides a device data processing apparatus, comprising:
[0018] The business distribution module is used to use the client component in the cloud to monitor the operation requests issued by the foreground and distribute the business based on the operation type of the operation request;
[0019] The device software attribute delivery processing module is used to pass the operation request to the KubeEdge framework when the operation type is the device software attribute, obtain parameters based on the operation request, encapsulate and publish the MQTT message, and the Mapper sends the parameters to the specified device after receiving the MQTT message;
[0020] The video-related operation sending processing module is used to send the operation request to the WVP module through an interface call when the operation type is a video-related operation. The WVP module realizes communication with the designated device through SIP signaling.
[0021] The present invention also provides a device data processing method, comprising:
[0022] Use the client component in the cloud to receive operation requests reported by the edge end and distribute services according to the operation type;
[0023] When the operation type is device software attribute, based on the operation request, Mapper is used to collect device data and encapsulate it into MQTT messages to report to the edge, and then report to the cloud;
[0024] When the operation type is a video operation, signaling negotiation is performed with the designated device by means of SIP signaling. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0025] According to the device data processing method of the present invention, the operation request includes reporting of device data or reporting of video-related data, the device data includes device attributes and device status, and the video-related data includes real-time video, recording or screenshot.
[0026] According to the device data processing method of the present invention, the reporting to the cloud includes:
[0027] The client component in the cloud is used to persist the received data into the database for display on the front end.
[0028] The present invention also provides a device data processing apparatus, comprising:
[0029] The reporting business distribution module is used to use the client component on the cloud to receive the operation request reported by the edge end and distribute the business according to the operation type;
[0030] The device software attribute reporting processing module is used to collect device data using Mapper based on the operation request when the operation type is device software attribute, encapsulate it into an MQTT message and report it to the edge end, and then report it to the cloud end;
[0031] The video-related operation reporting processing module is used to perform signaling negotiation with the designated device through SIP signaling when the operation type is a video operation. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0032] The present invention also 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, the steps of any of the above-mentioned device data processing methods are implemented.
[0033] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned device data processing methods are implemented.
[0034] The device data processing method and apparatus, electronic device and readable storage medium provided by the present invention distribute services by the operation type based on the operation request, taking into account the advantages of KubeEdge and GB / T 28181 standards, and can not only realize cloud-edge collaboration, but also obtain real-time video and video operations of the device for video devices, and have universal applicability. Based on the currently popular KubeEdge framework and supporting the GB / T 28181 standard, most smart devices on the market can achieve low-cost access, and have certain universality; low latency, low bandwidth; the present invention can deploy smart applications to the edge side according to actual business scenarios, such as rule engines, data cleaning, etc., and can realize pre-processing of device reported data at the near end of the device, instead of pre-processing after arriving at the cloud, thereby reducing the transmission bandwidth. Since the business is processed at the near end of the device, the response latency of the system is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 It is a flowchart of one of the device data processing methods provided by the present invention;
[0037] Figure 2 It is a structural schematic diagram of one of the equipment data processing devices provided by the present invention;
[0038] Figure 3 It is a flow chart of the second device data processing method provided by the present invention;
[0039] Figure 4 It is a structural schematic diagram of the second device data processing apparatus provided by the present invention;
[0040] Figure 5 It is a business scenario application diagram of the device data method provided by the present invention;
[0041] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Combine the following Figure 1 A device data processing method of the present invention is described, the method comprising:
[0044] S11. Use the client component in the cloud to monitor the operation requests sent by the front-end, and distribute services based on the operation type of the operation request;
[0045] The Client component is deployed in the cloud (that is, the Cloud side) to receive operation commands from the front-end interface. The Server is used in conjunction with the Client and is deployed on the edge side. The Server receives the operation request sent by the Client and is also responsible for reporting the received message to the Client. The Server also has a synchronization mechanism to periodically send requests to the SIP protocol stack to query the device's latitude and longitude and other attribute parameters, and report the query results to the Cloud, ensuring the real-time data storage on the Cloud side.
[0046] S12. When the operation type is a device software attribute, the operation request is passed to the KubeEdge framework, parameters are obtained based on the operation request, and the MQTT message is encapsulated and published. After receiving the MQTT message, the Mapper sends the parameters to the specified device;
[0047] Another advantage of the KubeEdge framework is that it can deploy intelligent applications on the edge side. When in use, according to the actual business scenarios, some pre-processing (such as data cleaning) and applications with strict response speed requirements can be deployed to the edge side. After the data is reported, the business logic processing can be done immediately, avoiding the delay caused by transmission, thereby improving the timeliness of the system. The Mapper program integrates the device SDK to query and modify the device software properties, and encapsulate the queried software properties into MQTT messages and report them to the Cloud. The device provides an SDK, and the SDK interface will be called in the mapper to set it to the device. The designated device in S12 refers to the device that receives the operation request issued by the foreground.
[0048] S13. When the operation type is a video-related operation, the operation request is sent to the WVP module by way of an interface call, and the WVP module communicates with the designated device by means of SIP signaling.
[0049] SIP (Session Initiation Protocol) is a multimedia communication protocol developed by IETF (Internet Engineering Task Force). It is a text-based application layer control protocol used to create, modify and release sessions of one or more participants. SIP is an IP voice session control protocol originating from the Internet, which has the characteristics of flexibility, easy implementation and easy expansion. The SIP protocol stack implements the SIP protocol and performs signaling negotiation with video devices that comply with the GB / T 28181 standard, such as video format, frame rate, bit rate, etc. The WVP module, that is, the WVP component (WEB VIDEO PLATFORM), is a video platform. It is a SIP protocol stack that encapsulates some APIs for applications to use based on the protocol stack. The WVP component is used in the present invention. In addition to supporting the SIP protocol, the WVP component also provides an interface to the outside in the form of a REST API, making the upper layer application more convenient, and even developers who do not understand the SIP protocol can use it easily.
[0050] This proposal is based on the KubeEdge platform framework, which is divided into the Cloud side and the Edge side. The communication mainly includes: communication between the front-end and the Cloud side, communication between the Cloud side and the Edge side, and communication between the Edge side and the edge device. According to the communication direction, it can be divided into uplink messages and downlink messages.
[0051] The above S11-S13 discloses that when a downlink message is sent, the Client component on the Cloud side listens to the operation request sent by the front desk, distributes the business according to the operation type, and after receiving the request from the front desk, the Cloud side calls different interfaces (REST API) according to the business type to send the operation instruction to the Edge side. After receiving the request from the Cloud side, the Edge side encapsulates the message according to the business type and forwards it to the corresponding processing module. If it is a modification of the device software attribute, the KubeEdge framework is used to obtain the parameters first and then encapsulate and publish the MQTT message. Specifically, if the device is added, deleted, modified, or checked, the message is encapsulated into an MQTT message, which is received by the Mapper program and finally sent to the smart device. After receiving it, the Mapper sends the set parameters to the specified device; if it is a video operation, the operation request is sent to the WVP module through an interface call, and the WVP module communicates with the specified device through SIP signaling.
[0052] The present invention distributes services based on the operation type of the operation request, taking into account the advantages of KubeEdge and GB / T28181 standards, and can not only realize cloud-edge collaboration, but also obtain real-time video and video operations of the device for video devices. It has universal applicability. Based on the currently popular KubeEdge framework and supporting GB / T 28181 standards, most smart devices on the market can achieve low-cost access, and have certain universality; low latency, low bandwidth; the present invention can deploy smart applications to the edge side according to actual business scenarios, such as rule engines, data cleaning, etc., and can implement pre-processing of device-reported data at the near end of the device instead of pre-processing after arriving at the cloud, thereby reducing the transmission bandwidth. Since the business is processed at the near end of the device, the response latency of the system is improved.
[0053] According to the device data processing method of the present invention, the operation request includes:
[0054] Add, delete, modify, query or perform video-related operations on the device, wherein the video-related operations include real-time video, recording or capturing.
[0055] ZLMedia is an open source component that mainly implements video operations, such as capturing pictures, recording, and real-time video streaming. After the SIP signaling negotiation is successful, ZLMedia pulls the media data from the device and pushes it to the front-end interface for final presentation.
[0056] According to the device data processing method of the present invention, the service distribution based on the operation type of the operation request includes:
[0057] Based on the operation type of the operation request, the operation instruction is sent to the edge by calling different interfaces for business distribution.
[0058] See also Figure 2 The device data processing apparatus provided by the present invention is described below. The device data processing apparatus described below and the device data processing method described above can be referred to each other. The device data processing apparatus includes:
[0059] The service distribution module 11 is used to use the client component of the cloud to monitor the operation request issued by the foreground, and distribute the service based on the operation type of the operation request;
[0060] The device software attribute delivery processing module 12 is used to pass the operation request to the KubeEdge framework when the operation type is the device software attribute, obtain parameters based on the operation request, encapsulate and publish the MQTT message, and the Mapper delivers the parameters to the specified device after receiving the MQTT message;
[0061] The video-related operation sending processing module 13 is used to send the operation request to the WVP module through an interface call when the operation type is a video-related operation. The WVP module realizes communication with the designated device through SIP signaling.
[0062] Combine the following Figure 3 A device data processing method of the present invention is described. The execution subject of the method is a network management monitoring platform. The method includes:
[0063] S21. Use the client component in the cloud to receive the operation request reported by the edge end, and distribute the service according to the operation type;
[0064] The Client component is deployed in the cloud (that is, the Cloud side) to receive data reported by the edge side (that is, the Edge side) and persist the data in the database for query and display on the front-end interface.
[0065] S22. When the operation type is device software attribute, based on the operation request, use Mapper to collect device data and encapsulate it into an MQTT message to report to the edge end, and then report to the cloud end;
[0066] The Mapper program integrates the device SDK to query and modify the device software properties and encapsulate the queried software properties into MQTT messages and report them to the Cloud.
[0067] S23. When the operation type is a video operation, signaling negotiation is performed with the designated device by means of SIP signaling. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0068] When the above S21-S23 discloses uplink messages, the uplink messages can be divided into reporting of device data (such as device status, attributes, etc.) and reporting of video-related data (real-time video, screenshots, etc.). If the device data is reported, the Mapper program first collects the device data and encapsulates it into an MQTT message and reports it to the Edge end, and then reports it to the Cloud end. The Cloud end persists the received data in the database for presentation on the front-end interface. If it is video data, the WVP component first negotiates SIP signaling with the device. After the negotiation is successful, the media data will be reported to the ZLMedia component and finally presented on the front-end interface.
[0069] According to the device data processing method of the present invention, the operation request includes reporting of device data or reporting of video-related data, the device data includes device attributes and device status, and the video-related data includes real-time video, recording or screenshot.
[0070] According to the device data processing method of the present invention, the reporting to the cloud includes:
[0071] The client component in the cloud is used to persist the received data into the database for display on the front end.
[0072] See also Figure 4 The device data processing apparatus provided by the present invention is described below. The device data processing apparatus described below and the device data processing method described above can be referred to each other. The device data processing apparatus includes:
[0073] The reporting service distribution module 21 is used to use the client component of the cloud to receive the operation request reported by the edge end and distribute the service according to the operation type;
[0074] The device software attribute reporting processing module 22 is used for, when the operation type is device software attribute, based on the operation request, using Mapper to collect device data and encapsulate it into an MQTT message to report to the edge end, and then report to the cloud end;
[0075] The video-related operation reporting processing module 23 is used to perform signaling negotiation with the designated device through SIP signaling when the operation type is a video-related operation. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0076] The following is a detailed description of the message interaction process between components in combination with business application scenarios.
[0077] Business scenarios can be divided into device operations and video-related operations, see Figure 5 The following describes the three scenarios of device discovery, data synchronization, and device operation:
[0078] The device discovery process is as follows:
[0079] Step 1.1. Device registration: Before the device is powered on, configure the address and port of the nearest SIP server to the device. After the device is powered on, it will initiate registration with the configured SIP server.
[0080] Step 1.2. Report to the Edge. After receiving the registration request, the SIP server performs authentication and other operations. After authentication, the registered device is reported to the Server component of the Edge through the API.
[0081] Step 1.3. Report to the Cloud. After receiving the registered device information, the Server encapsulates it into an MQTT message and reports it to the Cloud.
[0082] Step 1.4. Persistence: After receiving the device information, the cloud client component saves it in the DB for persistence;
[0083] Step 1.5. Front desk display: The front desk periodically queries the cloud for devices to ensure that the information such as the number of device status displayed on the front desk is consistent with the actual situation;
[0084] Step 1.6. Device query: After receiving the query request, the cloud queries the latest data from the DB and feeds the result back to the Client component;
[0085] Step 1.7. Result response: The client feeds back the query result in the form of a response to the front-end interface for presentation;
[0086] The synchronization mechanism is to ensure that the data stored persistently on the Cloud side is consistent with the actual status of the device. The synchronization mechanism process is as follows:
[0087] Step 2.1. Synchronize the request. The Server component deployed on the Edge will synchronize a scheduled task when it is started, and regularly send device query requests to the SIP server component.
[0088] Step 2.2. Signaling interaction: After receiving the request, the SIP server component will negotiate SIP signaling with the device and feed back the final result to the SIP server component;
[0089] Step 2.3. Result response: the SIP server component feeds back the result to the Server component in the form of a response;
[0090] Step 2.4. Report to the Cloud. After receiving the registered device information, the Server encapsulates it into an MQTT message and reports it to the Cloud.
[0091] Step 2.5. Persistence: After receiving the device information, the cloud client component saves it in the DB for persistence.
[0092] The equipment operation process is as follows:
[0093] Step 3.1. Operation request: the user operates the device through the front-end interface. The operation can be divided into the modification of device attributes or the request for video-related operations;
[0094] Step 3.2. Request forwarding: After receiving the operation request, the Client component on the Cloud side forwards the message to the Server component on the Edge side;
[0095] Step 3.3. Encapsulate and distribute the message according to the operation type. If it is a device attribute modification operation, encapsulate it into an MQTT message of the specified Topic in a certain format and publish it. After the MAPPER component subscribes to the corresponding Topic, it will receive the message and perform business processing. If it is a video operation, call the interface provided by the SIP server component to perform business processing;
[0096] Step 3.4. Signaling interaction: If it is a video operation, SIP signaling negotiation will be carried out with the device to negotiate the video codec, bit rate and other information;
[0097] Step 3.5. Signaling interaction. As the core of video stream push, ZLMedia will also participate in signaling negotiation and need to know the address of the video stream and other information. After the signaling negotiation is completed, ZLMEDIA will pull the video data from the video stream and push it to the front desk for real-time display.
[0098] Step 3.6. Result response: This step is the response to the device attribute operation in step 3.3. The MAPPER component will send the operation to the device through the interface call and report the latest attributes of the device to the Server component.
[0099] Step 3.7. Report to the Cloud. After receiving the registered device information, the Server encapsulates it into an MQTT message and reports it to the Cloud.
[0100] Step 3.8. Persistence: After receiving the device information, the cloud client component saves it in the DB for persistence.
[0101] Figure 6 An example of a physical structure diagram of an electronic device is shown, and the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the device data processing method, and the method includes:
[0102] S11. Use the client component in the cloud to monitor the operation requests sent by the front-end, and distribute services based on the operation type of the operation request;
[0103] S12. When the operation type is a device software attribute, the operation request is passed to the KubeEdge framework, parameters are obtained based on the operation request, and the MQTT message is encapsulated and published. After receiving the MQTT message, the Mapper sends the parameters to the specified device;
[0104] S13. When the operation type is a video-related operation, the operation request is sent to the WVP module by way of an interface call, and the WVP module communicates with the designated device by means of SIP signaling.
[0105] and / or, S21, using a client component in the cloud to receive operation requests reported by the edge end, and distributing services according to the operation type;
[0106] S22. When the operation type is device software attribute, based on the operation request, use Mapper to collect device data and encapsulate it into an MQTT message to report to the edge end, and then report to the cloud end;
[0107] S23. When the operation type is a video operation, signaling negotiation is performed with the designated device by means of SIP signaling. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0108] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0109] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the device data processing method provided by the above methods, the method comprising:
[0110] S11. Use the client component in the cloud to monitor the operation requests sent by the front-end, and distribute services based on the operation type of the operation request;
[0111] S12. When the operation type is a device software attribute, the operation request is passed to the KubeEdge framework, parameters are obtained based on the operation request, and the MQTT message is encapsulated and published. After receiving the MQTT message, the Mapper sends the parameters to the specified device;
[0112] S13. When the operation type is a video-related operation, the operation request is sent to the WVP module by way of an interface call, and the WVP module communicates with the designated device by means of SIP signaling.
[0113] and / or, S21, using a client component in the cloud to receive operation requests reported by the edge end, and distributing services according to the operation type;
[0114] S22. When the operation type is device software attribute, based on the operation request, use Mapper to collect device data and encapsulate it into an MQTT message to report to the edge end, and then report to the cloud end;
[0115] S23. When the operation type is a video operation, signaling negotiation is performed with the designated device by means of SIP signaling. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0116] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the device data processing method provided above is implemented, and the method includes:
[0117] S11. Use the client component in the cloud to monitor the operation requests sent by the front-end, and distribute services based on the operation type of the operation request;
[0118] S12. When the operation type is a device software attribute, the operation request is passed to the KubeEdge framework, parameters are obtained based on the operation request, and the MQTT message is encapsulated and published. After receiving the MQTT message, the Mapper sends the parameters to the specified device;
[0119] S13. When the operation type is a video-related operation, the operation request is sent to the WVP module by way of an interface call, and the WVP module communicates with the designated device by means of SIP signaling.
[0120] and / or, S21, using a client component in the cloud to receive operation requests reported by the edge end, and distributing services according to the operation type;
[0121] S22. When the operation type is device software attribute, based on the operation request, use Mapper to collect device data and encapsulate it into an MQTT message to report to the edge end, and then report to the cloud end;
[0122] S23. When the operation type is a video operation, signaling negotiation is performed with the designated device by means of SIP signaling. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
[0123] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A device data processing method, characterized in that: include: Use the client component in the cloud to monitor the operation requests sent by the front-end, and distribute services based on the operation type of the operation request; When the operation type is device software attributes, the operation request is passed to the KubeEdge framework, parameters are obtained based on the operation request, and the MQTT message is encapsulated and published. After receiving the MQTT message, the Mapper sends the parameters to the specified device; the device software attributes include device brightness and device white balance; When the operation type is a video-related operation, the operation request is sent to the WVP module by way of an interface call, and the WVP module communicates with the designated device through SIP signaling; The performing of service distribution based on the operation type of the operation request includes: Based on the operation type of the operation request, the operation instruction is sent to the edge by calling different interfaces for business distribution.
2. The device data processing method according to claim 1, characterized in that: The operation request includes: Add, delete, modify, query or perform video-related operations on the device, wherein the video-related operations include real-time video, recording or capturing.
3. A device data processing apparatus, characterized in that: include: The business distribution module is used to use the client component in the cloud to monitor the operation requests issued by the foreground and distribute the business based on the operation type of the operation request; The device software attribute delivery processing module is used to pass the operation request to the KubeEdge framework when the operation type is the device software attribute, obtain parameters based on the operation request, encapsulate and publish the MQTT message, and after receiving the MQTT message, the Mapper delivers the parameters to the specified device; the device software attributes include device brightness and device white balance; A video-related operation sending processing module, which is used to send the operation request to the WVP module by interface calling when the operation type is a video-related operation, and the WVP module realizes communication with the designated device through SIP signaling; The performing of service distribution based on the operation type of the operation request includes: Based on the operation type of the operation request, the operation instruction is sent to the edge by calling different interfaces for business distribution.
4. A device data processing method, characterized in that: include: Use the client component in the cloud to receive operation requests reported by the edge end and distribute services according to the operation type; When the operation type is device software attributes, based on the operation request, the device data is collected by Mapper and encapsulated into an MQTT message and reported to the edge end, and then reported to the cloud; the device software attributes include device brightness and device white balance; When the operation type is a video operation, signaling negotiation is performed with the designated device by means of SIP signaling. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
5. The device data processing method according to claim 4, characterized in that: The operation request includes reporting of device data or reporting of video-related data, the device data includes device attributes and device status, and the video-related data includes real-time video, video recording or screenshot.
6. The device data processing method according to claim 4, characterized in that: The reporting to the cloud includes: The received data is persisted in the database using the client component in the cloud for display on the front end.
7. A device data processing apparatus, characterized in that: include: The reporting business distribution module is used to use the client component on the cloud to receive the operation request reported by the edge end and distribute the business according to the operation type; A device software attribute reporting processing module is used to collect device data using Mapper based on the operation request and encapsulate it into an MQTT message to report to the edge end, and then report to the cloud end when the operation type is device software attribute; the device software attribute includes device brightness and device white balance; The video-related operation reporting processing module is used to perform signaling negotiation with the designated device through SIP signaling when the operation type is a video operation. After the signaling negotiation is successful, the video stream is pushed to the foreground for display through the ZLMedia component based on the operation request.
8. 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 steps of the device data processing method according to any one of claims 1 to 2 or 4 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the device data processing method as described in any one of claims 1 to 2 or 4 to 6 are implemented.
