Method for giving video capabilities to IoT devices based on IoT operating system
By introducing a universal video device access platform into the IoT operating system, and using plug-ins and device integration to uniformly manage video devices and IoT devices, the problem of differences in video device access in IoT scenarios is solved, and video devices and IoT devices are integrated Unified management and video function empowerment reduce development complexity and cost.
Patent Information
- Application Number
- CN202311768990.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-21
AI Technical Summary
In the Internet of Things scenario, the access methods of video devices are different from those of IoT devices, and they cannot be accessed and managed in a unified way, which results in high development complexity and is not conducive to unified maintenance and management.
Adopt a universal video device access platform based on the Internet of Things operating system, connect to the video platform through plug-ins, synchronize management of video devices as IoT devices, realize video operations through device integration and video configuration, and provide unified interfaces and streaming media services , giving IoT devices video capabilities.
It reduces development complexity, realizes unified management of video devices and IoT devices, saves development costs, and supports functions such as real-time monitoring and historical video playback, simplifying alarm linkage and video linkage.
Smart Images

Figure CN117857653B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to a universal video device access platform based on an Internet of Things operating system, a method for giving video capabilities to IoT devices based on an Internet of Things operating system, and an electronic device. Background Art
[0002] Currently, in the IoT scenario, there is no universal way to access video devices for the following reasons:
[0003] In the IoT scenario, the access method of IOT devices is different from that of video devices. You cannot access video devices by accessing IOT devices:
[0004] The data accessed by IoT devices is discrete data (property information of the device at a certain moment), while the data accessed by video devices is mostly streaming data (video stream);
[0005] The access protocol of IoT devices is mostly MQTT protocol, which provides better support for weak network environments. The protocol of video devices is more extensive, including SIP protocol, Onvif protocol, RTSP protocol, RTMP protocol, HLS protocol, etc.
[0006] Although the protocols of various video platform manufacturers all comply with the national standard (GB / T28181), private protocols still exist, which makes it impossible to connect video devices according to a unified protocol, and it is impossible to uniformly schedule and enable video applications for video devices that support different protocols.
[0007] Therefore, in the field of Internet of Things, IoT devices and video devices are often accessed and processed separately due to differences in protocols, etc. Applications based on device access need to perform differentiated processing when implementing business logic, which will bring complexity to the development of business logic and is not conducive to unified maintenance and management of all IoT video devices. Summary of the invention
[0008] In order to solve the above problems, the present application proposes a universal video device access platform based on an IoT operating system, a method for giving video capabilities to IoT devices based on an IoT operating system, and an electronic device.
[0009] On the one hand, the present application proposes a universal video device access platform based on the Internet of Things operating system, including:
[0010] Video configuration, used to connect different video platforms through plug-ins, synchronize the video devices connected to the video platform as IoT devices to device integration, and bind the device IDs of the plug-in, video platform and IoT devices connected to the video platform;
[0011] Device integration, used to centrally manage the device IDs of various IoT devices;
[0012] A business application is used to call the device ID of the corresponding IoT device from the device integration, and call the plug-in in the video configuration through the device ID of the IoT device, and use the called plug-in to implement the video operation on the corresponding IoT device;
[0013] The video configuration is in integrated communication connection with the device;
[0014] The business application is respectively connected to the video configuration and the device in integrated communication.
[0015] As an optional implementation scheme of the present application, optionally, the video configuration includes:
[0016] Database, cache, and file storage services: provide basic services for system operation;
[0017] Task center: provides scheduled task services;
[0018] Configuration center: provides configuration management, including the number of video downloads, rotation display groups, and monitoring scene configuration services;
[0019] Plugin Center: provides plugin management and dynamic plugin loading;
[0020] Streaming media service: Provides streaming media services including real-time streaming acquisition, historical video acquisition, and historical video download;
[0021] Device management: Provides services for managing video devices and synchronizing video devices to device integration;
[0022] Device-bound video: Provides services to enable video capabilities for IoT devices;
[0023] Message Gateway: Provides a unified service for collecting alarm information from video devices on the platform and synchronizing it with device integration services.
[0024] As an optional implementation scheme of the present application, optionally, the video configuration is also used for:
[0025] Configure the binding of non-video devices and video devices;
[0026] as well as,
[0027] Store bindings in your own database.
[0028] As an optional implementation scheme of the present application, optionally, the video configuration is also used for:
[0029] By means of interface calling, in the device integration, a video tag is added to the IoT device where the non-video device is located, so as to distinguish IoT devices with video capability from those without video capability.
[0030] As an optional implementation scheme of the present application, optionally, the business application is also used for:
[0031] Obtain a device list of all IoT devices from the device integration by calling an interface;
[0032] as well as,
[0033] Traverse the device tags of each IoT device in the device list, and determine whether the device tag contains the video tag:
[0034] If yes, add a video-on-demand button to the IoT device containing the video tag, and use the IoT device as a video-on-demand device;
[0035] Otherwise give up.
[0036] As an optional implementation scheme of the present application, optionally, the business application is also used for:
[0037] When the user places a video on demand, he clicks the video on demand button, and sends a request to the video configuration to place a video on demand on the video device.
[0038] As an optional implementation scheme of the present application, optionally, the video configuration is also used for:
[0039] Respond to the on-demand request issued by the service application:
[0040] According to the device ID of the on-demand video device, associating and identifying the video device ID bound thereto;
[0041] According to the video device ID, the stream address of the corresponding video device is obtained, and the stream address is fed back to the service application.
[0042] As an optional implementation scheme of the present application, optionally, the business application is also used for:
[0043] The stream address is received, and on-demand playback is performed according to the stream address.
[0044] On the other hand, the present application proposes a method for providing video capabilities to IoT devices based on an IoT operating system, which is implemented by relying on a general video device access platform based on an IoT operating system, and includes the following steps:
[0045] To configure the plugin:
[0046] Add corresponding plug-ins connected to each video platform, bind the plug-in to the corresponding video platform, and bind the device ID of each video device connected to each video platform to the plug-in;
[0047] Video devices are connected to the video platform through protocols;
[0048] Video configuration connects different video platforms through plug-ins;
[0049] Video configuration synchronizes video devices through plug-ins, and synchronizes video devices to device integration as IoT devices;
[0050] Business applications obtain all video device information by calling the Open API interface integrated with the device. The information includes the video device ID.
[0051] The business application calls the video configuration plug-in through the video device ID to obtain the real-time video stream address of the corresponding video device and perform playback operations for on-demand configuration:
[0052] Users configure the binding between non-video devices and video devices through video configuration, and store the binding relationship in their own database;
[0053] After the binding is completed, the video configuration adds a video tag to the IoT device where the non-video device is located in the device integration by calling the interface;
[0054] To play on demand:
[0055] Control the business application and obtain a device list of all IoT devices from the device integration by calling an interface;
[0056] Traverse the device tags of each IoT device in the device list, and determine whether the device tag contains the video tag:
[0057] If yes, add a video-on-demand button to the IoT device containing the video tag, and use the IoT device as a video-on-demand device;
[0058] Otherwise give up;
[0059] When the user places an order, the user clicks the order button on the service application, and sends a request to the video configuration to place an order for the on-demand video device;
[0060] The video configuration responds to the on-demand request issued by the service application:
[0061] According to the device ID of the on-demand video device, associating and identifying the video device ID bound thereto;
[0062] According to the video device ID, obtain the stream address of the corresponding video device, and feed the stream address back to the service application;
[0063] The service application receives the stream address and performs on-demand playback according to the stream address.
[0064] In another aspect, the present application further provides an electronic device, comprising:
[0065] processor;
[0066] a memory for storing processor-executable instructions;
[0067] Wherein, the processor is configured to implement the method of giving video capabilities to IoT devices based on the IoT operating system when executing the executable instructions.
[0068] Technical effects of the present invention:
[0069] The business application of this application can be configured for video empowerment through video configuration. After configuration, the application does not need to care whether the device is an iot device or a video device. After empowerment, all enabled Iot devices have video capabilities and can call all video interfaces for real-time monitoring, historical video playback, etc. This function can greatly save the development cost of the application and better realize alarm linkage, video linkage and other functions. By configuring the Iot device where the corresponding video device is located through video configuration, the ability of video configuration is expanded, so that any Iot device can be bound to a video device through configuration, so that it has all the capabilities of a video device. Then the application does not need to distinguish its device type. It only needs to directly use the device ID of the Iot device when the business needs to call the video, and it can easily call the bound video device capability, which greatly reduces the complexity of business development and is more conducive to unified maintenance and management of all devices.
[0070] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0072] Figure 1 It is a schematic diagram showing the technical architecture of a universal video device access platform based on an Internet of Things operating system of the present invention;
[0073] Figure 2 A schematic diagram of the technical architecture of the video configuration of the present invention is shown;
[0074] Figure 3 Shown is a schematic diagram of the implementation process of the method of the present invention;
[0075] Figure 4 It is a schematic diagram showing the application of the electronic device of the present invention. DETAILED DESCRIPTION
[0076] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0077] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0078] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0079] Terminology explanation:
[0080] IPC: Internet Protocol Camera.
[0081] NVR: Network Video Recorder, Network Camera and Network Video Recorder can be collectively referred to as video devices.
[0082] In this solution, the video device can be an IPC or NVR, and each video device can be used as an IoT device and join the IoT network.
[0083] The method of giving video capabilities to IoT devices needs to be implemented based on a universal video device access platform based on an IoT operating system provided in the following Example 1 (which has been applied for separately). Therefore, this article first describes the architecture and principles of a universal video device access platform based on an IoT operating system.
[0084] Example 1
[0085] like Figure 1 As shown, on one hand, the present application proposes a universal video device access platform based on an Internet of Things operating system, including:
[0086] Video configuration, used to connect different video platforms through plug-ins, synchronize the video devices connected to the video platform as IoT devices to device integration, and bind the device IDs of the plug-in, video platform and IoT devices connected to the video platform;
[0087] Device integration, used to centrally manage the device IDs of various IoT devices;
[0088] A business application is used to call the device ID of the corresponding IoT device from the device integration, and call the plug-in in the video configuration through the device ID of the IoT device, and use the called plug-in to implement the video operation on the corresponding IoT device;
[0089] The video configuration is in integrated communication connection with the device;
[0090] The business application is respectively connected to the video configuration and the device in integrated communication.
[0091] In the IoT scenario, the access of video devices has always been unable to achieve a flexible and unified access solution: either, video devices are accessed one by one through drivers in the way of IoT device access, which cannot achieve self-registration of devices; or, video device access is accessed as a separate platform, which cannot achieve the purpose of unified management of video devices and IoT devices.
[0092] For the business, device integration is the entrance to all IoT devices. All devices (including video devices) are queried through device integration, so that they can be unified. Directly querying video configuration will not achieve unification and will weaken the value of the IoT operating system.
[0093] Therefore, the interfaces of each IoT device (including device ID) are synchronized to "Device Integration" instead of directly reporting the "IoT device ID" to the business application through "Video Configuration" (mainly because of protocol mismatch). This is equivalent to device integration providing an interface conversion function to achieve unified query and management of all IoT devices.
[0094] In order to solve the above technical problems, this solution mainly adopts a plug-in method to connect the video platform to the Internet of Things operating system and unify the management with the IoT devices, so as to solve the general method of video device access in the Internet of Things scenario, thereby solving the problem of heterogeneous video device access.
[0095] Connect different heterogeneous video platforms through plug-ins, smooth out the protocol differences of video platforms, provide a unified interface for business applications, unify the processing of video devices and IoT devices, and reduce the development cost of businesses.
[0096] The present invention is developed based on IsyscoreOS (instruction set Internet of Things operating system).
[0097] In the IoT scenario, each video device is targeted at different scenarios. Therefore, the IoT devices used use different IoT protocols. For example, in the office area, in other indoor and outdoor monitoring, different video data needs to be collected, and there may be differences in data formats. Therefore, the connected video devices cannot be uniformly called for the upper obligation due to protocol mismatch.
[0098] This solution completes the interface of video configuration to various video platforms through video configuration plug-ins.
[0099] By deploying device integration and video configuration on the IoT operating system, the interface conversion of each video platform can be realized. Video configuration is connected to each video platform in the form of plug-ins, and the video data streams of each video platform are accessed and uniformly deployed to device integration through plug-ins. Through interface calls, business applications can obtain and play corresponding real-time video streams according to the called interface plug-ins to solve the data inconsistency caused by heterogeneous video access.
[0100] In this solution, the required plug-in can be selected differently according to the protocol of the heterogeneous video device, and needs to be escaped through the plug-in, and can be used according to the plug-in defined and selected by the user.
[0101] The design scheme of the plug-in is solved, designed and applied by the user, and this embodiment does not limit it.
[0102] In terms of operation, the video configuration and the device integration are deployed on the instruction set IoT operating system - IsyscoreOS.
[0103] The video configuration and the device integration both use the Open API interface to communicate with the business application. The system is configured to use the Open API interface to achieve communication with the business application terminal.
[0104] After the plug-in is configured, the plug-in connected to each video platform can bind the plug-in to the corresponding video platform, and can also bind the device ID of each video device connected to each video platform to the plug-in. This is equivalent to associating and binding the configured plug-in with the corresponding video platform and each IOT video device connected to the video platform.
[0105] Subsequent users can call the video configuration plug-in through the business application end through the interface call and the video device ID to perform video device operations such as obtaining the real-time video stream address and playing the corresponding video device.
[0106] The specific operations are as follows:
[0107] The video device is connected to the video platform (national standard platform / private platform) through a protocol (national standard / private protocol);
[0108] Video configuration connects different video platforms through plug-ins;
[0109] Video configuration synchronizes video devices through plug-ins, and synchronizes video devices to device integration as IoT devices;
[0110] The business application obtains the information of all video devices (including video devices) by calling the Open API interface integrated with the device, and the information includes the video device ID;
[0111] Business applications call the video configuration plug-in through the video device ID to obtain the real-time video stream address of the corresponding video device, play and perform other video device operations.
[0112] Video configuration and device integration are all deployed on the instruction set IoT operating system - IsyscoreOS.
[0113] Business applications, which can be APPs, mini-programs, or other terminal applications, can log in to the system and enter the video configuration for configuration and management.
[0114] like Figure 2 As shown, as an optional implementation scheme of the present application, optionally, the video configuration includes:
[0115] Database, cache, and file storage services: provide basic services for system operation;
[0116] Task center: provides scheduled task services;
[0117] Configuration center: provides configuration management, including the number of video downloads, rotation display groups, and monitoring scene configuration services;
[0118] Plugin Center: provides plugin management and dynamic plugin loading;
[0119] Streaming media service: Provides streaming media services including real-time streaming acquisition, historical video acquisition, and historical video download;
[0120] Device management: Provides services for managing video devices and synchronizing video devices to device integration;
[0121] Device-bound video: Provides services to enable video capabilities for IoT devices;
[0122] Message Gateway: Provides a unified service for collecting alarm information from video devices on the platform and synchronizing it with device integration services.
[0123] Video configuration provides storage services, management center services, data connection (API), etc. Storage services mainly provide database cache and file storage, providing basic services for the system. Accessed information and video data can be stored, and various plug-ins can be stored at the same time.
[0124] When connecting and configuring the plug-in, the user can enter the video configuration, select the corresponding plug-in from the stored plug-ins and configure the plug-in.
[0125] For different video platforms, users can select corresponding plug-ins to configure plug-ins and connect to video platforms through the communication protocols and file formats supported by the corresponding video devices. Through the plug-in center, users can select corresponding plug-ins from the plug-ins stored in the database, load the plug-ins dynamically, and use the loaded plug-ins to connect to the corresponding video platform.
[0126] Users can also manage plug-ins based on the operating status of the IoT video device in the future, such as deleting plug-ins to disconnect from the video platform, or adding plug-ins, etc.
[0127] Please understand the various functions of the video configuration in conjunction with the functions in Example 2.
[0128] In this solution, users can also use this platform to enable video capabilities for IoT devices.
[0129] Specific:
[0130] For business applications on the Internet, video empowerment configuration can be performed through video configuration (mainly on-demand video configuration). After configuration, the application does not need to worry about whether the device is an IoT device or a video device. After empowerment, all enabled IoT devices have video capabilities and can call all video interfaces for real-time monitoring and historical video playback. This function can greatly save the development cost of the application and better realize alarm linkage, video linkage and other functions.
[0131] By configuring the IoT device where the corresponding video device is located through video configuration, the capability of video configuration is expanded, so that any IoT device can be bound to a video device through configuration, so that it has all the capabilities of a video device. In this way, the application does not need to distinguish the device type. When the business needs to call the video, it only needs to directly use the device ID of the IoT device to easily call the bound video device capability, which greatly reduces the complexity of business development and is more conducive to unified maintenance and management of all devices.
[0132] The following describes the capabilities of video configuration, business applications, and device integration in specific “video empowerment” work (which can be combined with the attached Figure 3 to understand).
[0133] As an optional implementation scheme of the present application, optionally, the video configuration is also used for:
[0134] Configure the binding of non-video devices and video devices;
[0135] as well as,
[0136] Store bindings in your own database.
[0137] As an optional implementation scheme of the present application, optionally, the video configuration is also used for:
[0138] By means of interface calling, in the device integration, a video tag is added to the IoT device where the non-video device is located, so as to distinguish IoT devices with video capability from those without video capability.
[0139] As an optional implementation scheme of the present application, optionally, the business application is also used for:
[0140] Obtain a device list of all IoT devices from the device integration by calling an interface;
[0141] as well as,
[0142] Traverse the device tags of each IoT device in the device list, and determine whether the device tag contains the video tag:
[0143] If yes, add a video-on-demand button to the IoT device containing the video tag, and use the IoT device as a video-on-demand device;
[0144] Otherwise give up.
[0145] As an optional implementation scheme of the present application, optionally, the business application is also used for:
[0146] When the user places a video on demand, he clicks the video on demand button, and sends a request to the video configuration to place a video on demand on the video device.
[0147] As an optional implementation scheme of the present application, optionally, the video configuration is also used for:
[0148] Responding to the on-demand request issued by the service application:
[0149] According to the device ID of the on-demand video device, associating and identifying the video device ID bound thereto;
[0150] According to the video device ID, the stream address of the corresponding video device is obtained, and the stream address is fed back to the service application.
[0151] As an optional implementation scheme of the present application, optionally, the business application is also used for:
[0152] The stream address is received, and on-demand playback is performed according to the stream address.
[0153] The specific process of on-demand playback using the above-mentioned subjects is as follows:
[0154] 1. Combined with attachment Figure 3 As shown in the figure, when users implement on-demand deployment (video device empowerment) through business applications, they need to bind ordinary devices to cameras in the video configuration (that is, distinguish between non-video devices and video devices: non-video devices refer to specific video devices specified / suspended by users and video devices used to implement special behavior monitoring, such as IoT devices for on-demand viewing; video devices refer to IoT video devices for regular monitoring);
[0155] 2. Video configuration stores the binding relationship in its own database;
[0156] 3. Video configuration At the same time, the bound devices are called through interfaces. In the device integration application, a video tag is added to the IoT devices (mainly non-video devices). The purpose of adding the video tag is to identify which IoT devices have video capabilities (such as IoT devices that need to be played on demand) and which IoT devices do not have the specified video capabilities. It is also for the business application to quickly identify whether the device has video capabilities after obtaining the device information.
[0157] 4. When playing on demand, go to the business application and obtain the information of all IoT devices through interface calls. This information includes labels. Specifically, first obtain the device list of all IoT devices, and traverse the device labels (original factory labels) in the list to determine whether there is an IoT device with a video label. If so, add the device as a video-on-demand device and add a video-on-demand button for subsequent user on-demand. If there are several, add several. Subsequent users can select the required video-on-demand buttons through filtering. If there are multiple required video-on-demand buttons, the user can click these video-on-demand buttons in turn, and allocate and play multiple video-on-demand videos on the large screen of the business application through interface calls. Correspondingly, for video configuration, it is necessary to address the video device IDs of multiple video-on-demand videos at the same time, find the corresponding stream addresses respectively, and send them to the business application to play the video streams of multiple video-on-demand stream addresses. The effect of multi-point on-demand is achieved.
[0158] 5. For business applications, you can use the identification tag to identify whether the device has video capabilities. According to business needs, when business needs arise, you can directly call the video configuration interface of all video capabilities through the device ID of the IoT device.
[0159] 6. Video configuration will provide the capabilities of all bound video devices to business applications based on the device ID of IoT, so that business applications can call them without being aware of the bottom (that is, the upper application can call all video capabilities of the bound video devices through the device ID of IoT device, and the business can call them according to its own needs).
[0160] Therefore, this application can enable IoT devices to be endowed with video capabilities in the IoT scenario.
[0161] Obviously, those skilled in the art should understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0162] Example 2
[0163] Based on the implementation principle of Example 1, on the other hand, the present application proposes a method for giving video capabilities to IoT devices based on an IoT operating system, which is implemented by relying on a general video device access platform based on an IoT operating system, and includes the following steps:
[0164] To configure on-demand:
[0165] Users configure the binding between non-video devices and video devices through video configuration, and store the binding relationship in their own database;
[0166] After the binding is completed, the video configuration adds a video tag to the IoT device where the non-video device is located in the device integration by calling the interface;
[0167] To play on demand:
[0168] Control the business application and obtain a device list of all IoT devices from the device integration by calling an interface;
[0169] Traverse the device tags of each IoT device in the device list, and determine whether the device tag contains the video tag:
[0170] If yes, add a video-on-demand button to the IoT device containing the video tag, and use the IoT device as a video-on-demand device;
[0171] Otherwise give up;
[0172] When the user places an order for a video on demand, the user clicks the order button on the service application, and sends a request to the video configuration to place an order for the video on demand device;
[0173] The video configuration responds to the on-demand request issued by the service application:
[0174] According to the device ID of the on-demand video device, associating and identifying the video device ID bound thereto;
[0175] According to the video device ID, obtain the stream address of the corresponding video device, and feed the stream address back to the service application;
[0176] The service application receives the stream address and performs on-demand playback according to the stream address.
[0177] For the above method, please refer to the description in Example 1.
[0178] The modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0179] Example 3
[0180] As attached Figure 4 As shown, further, in another aspect, the present application also proposes an electronic device, including:
[0181] processor;
[0182] a memory for storing processor-executable instructions;
[0183] Wherein, the processor is configured to implement the method of giving video capabilities to IoT devices based on the IoT operating system when executing the executable instructions.
[0184] The electronic device of the embodiment of the present disclosure includes a processor and a memory for storing processor executable instructions. The processor is configured to implement any of the above-mentioned methods for giving video capabilities to IoT devices based on an IoT operating system when executing the executable instructions.
[0185] Here, it should be noted that the number of processors can be one or more. At the same time, the electronic device in the embodiment of the present disclosure may also include an input device and an output device. Among them, the processor, memory, input device and output device may be connected through a bus or in other ways, which are not specifically limited here.
[0186] As a computer-readable storage medium, the memory can be used to store software programs, computer executable programs and various modules, such as the program or module corresponding to the method of giving video capabilities to IoT devices based on the IoT operating system in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the electronic device by running the software programs or modules stored in the memory.
[0187] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.
[0188] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for providing video capabilities to IoT devices based on an IoT operating system, characterized in that: The implementation is based on a universal video device access platform based on an Internet of Things operating system, and includes the following steps: performing on-demand configuration: the user configures the binding of non-video devices and video devices through video configuration, and stores the binding relationship in his own database; after the binding is completed, the video configuration adds a video tag to the IoT device where the non-video device is located in the device integration by means of an interface call; performing on-demand: controlling the business application, and obtaining a device list of all IoT devices from the device integration by means of an interface call; traversing the device tags of each IoT device in the device list, and determining whether the device tag contains the video tag: if so, adding an on-demand button to the IoT device containing the video tag, and using the IoT device as a video-on-demand device; Otherwise give up; When a user makes a video on demand, he clicks the video on demand button on the business application, and sends a request to the video configuration to make a video on demand for the video device; the video configuration responds to the video on demand request sent by the business application: according to the device ID of the video on demand device, the video device ID bound to it is associated and identified; according to the video device ID, the stream address of the corresponding video device is obtained, and the stream address is fed back to the business application; the business application receives the stream address and makes a video on demand according to the stream address; wherein the universal video device access platform based on the Internet of Things operating system includes: video configuration, which is used to connect different video platforms by means of plug-ins, The video device connected to the video platform is synchronized as an Iot device to the device integration, and the plug-in, video platform and the device ID of the Iot device connected to the video platform are bound; the device integration is used to centrally manage the device ID of each Iot device; the business application is used to call the device ID of the corresponding Iot device from the device integration, and through the device ID of the Iot device, call the plug-in in the video configuration, and use the called plug-in to implement the video operation of the corresponding Iot device; the video configuration is communicatively connected to the device integration; the business application is communicatively connected to the video configuration and the device integration, respectively.
2. According to claim 1, the method for providing video capabilities to IoT devices based on the IoT operating system is characterized in that: Before on-demand viewing, it also includes: plug-in configuration: adding plug-ins connected to each video platform, binding the plug-in to the corresponding video platform, and binding the device ID of each video device connected to each video platform to the plug-in; the video device is connected to the video platform through a protocol; the video configuration connects different video platforms through plug-ins; the video configuration synchronizes the video device through the plug-in, and synchronizes the video device as an IoT device to the device integration; the business application obtains all video device information by calling the OpenAPI interface of the device integration, and the information contains the video device id; the business application calls the video configuration plug-in through the video device id to obtain the real-time video stream address and play the corresponding video device.
3. According to claim 2, the method for providing video capabilities to IoT devices based on the IoT operating system is characterized in that: The video configuration includes: database, cache, and file storage services: providing basic services for system operation; task center: providing scheduled task services; configuration center: providing configuration management, including the number of video downloads, rotation display groups, and configuration services for monitoring scenes; plug-in center: providing management of plug-ins and dynamic loading of plug-ins; streaming media service: providing streaming media services including real-time stream acquisition, historical video acquisition, and historical video download; device management: providing services for managing video devices and synchronizing video devices to device integration; device binding video: providing services for enabling video capabilities for IOT devices; message gateway: providing services for uniformly collecting alarm information of video devices in the platform and synchronizing it to device integration.
4. According to claim 2, the method for providing video capabilities to IoT devices based on the IoT operating system is characterized in that: The video configuration is also used to: add a video tag to the IoT device where the non-video device is located in the device integration by interface calling, so as to distinguish IoT devices with video capabilities from those without video capabilities.
5. An electronic device, characterized in that: include: processor; A memory for storing processor executable instructions; wherein, when the processor is configured to execute the executable instructions, it implements the method of giving video capabilities to IoT devices based on an IoT operating system as described in any one of claims 1-4.
