Efficient business light effect management method and system

Through the combination of operating system abstraction layer, platform abstraction layer, hardware abstraction layer and logic layer, the problem of insufficient multi-platform adaptation and flexibility in the existing technology is solved, efficient and flexible lighting efficiency management is achieved, and efficiency and Flexibility, supports real-time feedback and fast debugging.

CN119047787APending Publication Date: 2024-11-29SHENZHEN ADDX INNOVATION TECH CO LTD

Patent Information

Application Number
CN202411515496.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing lighting efficiency management system has problems such as difficulty in adaptation, high cost of confirmation of results, high coupling, high management difficulty and insufficient flexibility in multi-platform hardware equipment, complex lighting efficiency and diversified business scenarios, resulting in low development efficiency and flexibility. Insufficient sex.

Method used

Adopting an efficient business lighting management method, through the combination of operating system abstraction layer, platform abstraction layer, hardware abstraction layer and logic layer, a variety of hardware device parameter configurations and business lighting configurations are provided, supporting multi-platform adaptation, and achieving cross-operating systems. and efficient lighting management across hardware device platforms, providing flexible lighting configuration and debugging tools.

Benefits of technology

It significantly improves the efficiency and flexibility of lighting efficiency management, supports rapid adjustment and configuration, reduces development cycle, realizes real-time feedback and debugging, avoids code changes, and improves development efficiency and market response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047787A_ABST
    Figure CN119047787A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of lamp effect management, and relates to an efficient business lamp effect management method and system, which comprises an operating system abstraction layer, a platform abstraction layer, a hardware abstraction layer, a lamp effect management layer and a logic layer, the logic layer is used for receiving and forwarding data between a user and the lamp effect management layer; the lamp effect management layer can provide various hardware equipment parameter configurations and business lamp effect configurations into the hardware abstraction layer; the hardware abstraction layer is matched with the lamp effect management layer through a hardware equipment control interface, and the hardware abstraction layer can provide various driving programs for driving related hardware equipment and hardware equipment interface address information into the platform abstraction layer. A multi-platform adaptive lamp effect control mechanism and flexible lamp effect configuration and management are realized, flexible lamp effect configuration, a real-time lamp effect feedback and debugging method and an efficient lamp effect demand import and verification mechanism are supported, and lamp effect configuration with rapid verification and zero code change is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of lighting effect management, and in particular to an efficient business lighting effect management method and system. Background Art

[0002] In the field of smart devices and the Internet of Things, LED lighting effects have become an important means to improve user experience and device interaction. However, existing lighting effect management systems often face many challenges when dealing with multi-platform hardware devices, complex lighting effects, diverse business scenarios, and a large number of lighting effect requirements.

[0003] The existing technical solutions are mainly open source lighting effect management frameworks, such as FastLED. This framework provides flexible lighting effect management functions and can adapt to different hardware device platforms, but it also has many problems, such as high development and maintenance costs, high technical investment, insufficient stability and compatibility guarantees, and complex configuration. It is not friendly enough to complex lighting effects and multi-platform adaptation, which increases the difficulty of configuration and integration.

[0004] The existing business lighting effect management technology has the following shortcomings when dealing with complex lighting effects and changing business scenarios: 1. Hardware device platform changes and adaptations are difficult. After changing the hardware device platform, adjusting the light pins, or increasing the number of lights, the existing system requires a lot of code adjustments and re-adaptation. These changes not only increase the workload of developers, but may also cause errors and delays, affecting project progress and the accuracy of lighting effects.

[0005] 2. The cost of effect confirmation and communication is high. The lighting effect requirements proposed by the product team cannot be directly seen in the actual board effect during the development stage. Usually, the development team needs to confirm whether the parameters meet expectations after debugging. This repeated communication and confirmation process increases the development cycle and cost, and reduces the efficiency and timeliness of achieving lighting effect requirements.

[0006] 3. High coupling between business requirements and lighting effect management module: The customization requirements of product business for lighting effect functions are tightly coupled with the lighting effect management module. For example, if you want to add a new upgrade function lighting effect or alarm function lighting effect, these should be customization requirements of the upper layer of the product, but in fact they require code modification and adaptation of the lighting effect management module. This high degree of coupling makes the expansion and customization of lighting effect functions complicated and time-consuming, limiting the ability of the lighting effect management system to flexibly respond to different business scenarios and changes in requirements.

[0007] 4. Difficult to manage. The configuration and management of lighting effects are relatively complicated. The lack of a unified management interface increases the complexity and cost of system maintenance.

[0008] 5. Lack of flexibility. The existing system cannot quickly respond to changes in business needs. Lighting effect adjustment and configuration take a long time and cannot meet the needs of flexibility.

[0009] Therefore, how to achieve efficient, flexible and scalable management is a problem that needs to be solved. Summary of the invention

[0010] The purpose of this application is to provide an efficient business lighting effect management method and system to solve the problems of poor accuracy, low efficiency and low degree of freedom in existing lighting effect management.

[0011] The technical solution of the present application is: an efficient business lighting effect management method, including an operating system abstraction layer, a platform abstraction layer, a hardware abstraction layer, a lighting effect management layer and a logic layer; the logic layer is used to receive and forward data between the user and the lighting effect management layer; the lighting effect management layer can provide a variety of hardware device parameter configurations and business lighting effect configurations to the hardware abstraction layer; the hardware abstraction layer and the lighting effect management layer cooperate through a hardware device control interface, and the hardware abstraction layer can provide a variety of driver programs and hardware device interface address information for driving related hardware devices to the platform abstraction layer; the platform abstraction layer can provide a variety of different interface functions to the operating system abstraction layer; the operating system abstraction layer can call different operating systems to drive hardware devices according to the hardware device interface address information.

[0012] Preferably, an initialization configuration module, a hardware device parameter configuration module and a business lighting effect configuration module are provided in the lighting effect management layer. A variety of lighting effect services are stored in the business lighting effect configuration module. Each lighting effect service corresponds to a different lighting effect. Each lighting effect service corresponds to a single lamp or a group of lamps composed of several lamps. After the design of each lighting effect service is completed, it is stored in the business lighting effect configuration module through the initialization interface design and the configuration of various lighting effect service information is performed.

[0013] Preferably, the configuration of the lighting effect service information specifically includes: the number of service lighting effects, lighting effect service ID, lighting effect ID, service lighting effect duration, lighting effect mode, service lighting effect mode, lighting effect configuration when entering the service lighting effect, lighting effect configuration when maintaining the service lighting effect, and lighting effect when exiting the service lighting effect; each lighting effect service ID corresponds to one or more lighting effect IDs; the lighting effect modes include flashing, constant, and breathing lights.

[0014] Preferably, the hardware device parameter configuration module stores a plurality of different hardware device configuration schemes, wherein the hardware device configuration schemes include the number of lights, the colors of lights, the pins of lights, and the control methods of lights.

[0015] Preferably, a small-granularity lighting effect configuration module is set in the lighting effect management layer, and the small-granularity lighting effect configuration module includes: further disassembling the hardware equipment associated with each lighting effect business to obtain a number of lighting effect tasks sorted by time, each lighting effect task corresponds to a lighting effect ID and a lighting effect and each lighting effect task corresponds to a hardware device configuration in a specific hardware device platform, thereby obtaining a small-granularity lighting effect configuration.

[0016] Preferably, a lighting effect service switching unit is also provided in the service lighting effect configuration module, and the lighting effect service switching unit can receive a lighting effect service ID issued by a user, obtain specific lighting effect effects according to the lighting effect service ID, including lighting effects of successful binding, lighting effects of failed binding, upgraded lighting effects and alarm lighting effects, and replace the current lighting effect service ID.

[0017] Preferably, a lighting effect tool debugging interface is set in the lighting effect management layer. When the user terminal requests related lighting effects, the lighting effect management layer converts the request information of the user terminal into a corresponding lighting effect ID, and then sends the task corresponding to the lighting effect ID to the hardware abstraction layer. The hardware abstraction layer sends it to the corresponding hardware device according to the task, and then transmits the lighting effect after the hardware device is working back to the user terminal.

[0018] Preferably, the logic layer includes a data transceiver module and a data conversion module; a plurality of different API interfaces are arranged in the data transceiver module, and lighting effect start requests sent by different user terminals are received through different API interfaces; the data conversion module converts the lighting effect start request information sent by different user terminals into a universal request to start the lighting effect information, and sends it to the lighting effect management layer through the data transceiver module; at the same time, the data transceiver module can receive the lighting effect start status feedback information sent by the lighting effect management layer.

[0019] Preferably, the hardware abstraction layer includes a driver storage module and a driver search module. The driver storage module stores the driver programs and hardware device interface address information required by different hardware device platforms. The driver program sets the number of lights, the color of lights, the pins of lights and the control mode of lights. The hardware device interface address information is used to access related hardware devices. The driver search module can receive the hardware device configuration scheme of the lighting effect management layer, and then find the corresponding driver program and hardware device interface address information in the driver storage module according to the hardware device configuration scheme, and transmit it to the platform abstraction layer. The platform abstraction layer includes an interface function storage module and an interface function search module; the interface function storage module stores interface functions corresponding to different hardware devices, and the interface function is specifically an SDK hardware device control interface; the interface function search module can receive the driver and hardware device interface address information uploaded by the hardware abstraction layer, and search for the corresponding interface function and send it to the operating platform abstraction layer; The operating system abstraction layer includes an operating system storage module and an operating system calling module; the operating system storage module stores multiple operating systems; the operating system calling module selects an adaptive operating system according to different interface functions, and then calls the corresponding operating system to access the hardware device.

[0020] As a specific implementation method, an efficient business lighting effect management method includes: The logic layer receives the lighting effect start request from the user through the API interface, obtains the configuration information of the lighting effect service, and forwards the lighting effect start request to the lighting effect management layer; The lighting effect management layer determines the required lighting effect service information according to the lighting effect start request sent by the user end, and then sends the configuration of the corresponding lighting effect service information, the lighting effect service ID and the lighting effect ID to the corresponding hardware device control interface; The hardware abstraction layer receives the lighting effect service information sent by the lighting effect management layer, and then calls the required driver and hardware device interface address information to the platform abstraction layer according to the lighting effect service information; The platform abstraction layer calls the corresponding interface function according to the corresponding driver and hardware device interface address information and sends it to the operating system abstraction layer. The operating system abstraction layer selects the appropriate operating system according to the corresponding interface function, connects the driver and lighting effect service information to the hardware device through the hardware device interface, and operates the hardware device through the operating system. After the hardware device executes the corresponding lighting effect service, it feeds back the hardware device status to the operating system abstraction layer. The operating system abstraction layer updates the execution status of the hardware device and sends it to the platform abstraction layer. The platform abstraction layer updates the lighting effect status according to the execution status of the hardware device and sends it to the hardware abstraction layer. The hardware abstraction layer feeds back the lighting effect execution status to the lighting effect management layer. The lighting effect management layer sends feedback and response information of the lighting effect startup status to the logic layer. The logic layer determines whether there is feedback and response information of the lighting effect startup status. If so, the user end is notified of the successful lighting effect startup information.

[0021] The efficient business lighting effect management method and system of the present application has the following advantages: 1. Multi-platform adaptive lighting effect control mechanism provides a multi-platform adaptive lighting effect control mechanism, supports a variety of hardware device platforms and lighting effect devices, and improves the compatibility of the system. By introducing the system abstraction layer (OSAL), platform interface abstraction layer (PAL), and hardware abstraction layer (HAL), efficient lighting effect management across operating systems and hardware device platforms is achieved, and flexible lighting effect configuration and debugging tools are provided, which solves the shortcomings of existing technologies and significantly improves the efficiency and flexibility of lighting effect management.

[0022] 2. Flexible lighting effect configuration and management. It supports flexible lighting effect configuration. Users can quickly adjust the lighting effect configuration according to their needs. It supports multiple lighting effect modes and effects. By using lighting effect configuration files, users can easily configure and manage different lighting effect schemes, which greatly simplifies the lighting effect management process and makes lighting effect configuration more flexible and adaptable.

[0023] 3. Real-time lighting effect feedback and debugging methods provide real-time lighting effect feedback and debugging methods, so that product or developers can directly view the lighting effect during the configuration stage, reducing the development and debugging cycle. Through visual configuration tools and real-time simulation technology, real-time feedback and rapid adjustment of lighting effects are achieved, making lighting effect debugging more efficient and intuitive.

[0024] 4. Efficient lighting effect requirement import and verification mechanism, supports fast verification and lighting effect configuration with zero code changes. The product only needs to use the lighting effect debugging tool to output the corresponding lighting effect requirement configuration, and R&D can directly import the configuration to quickly achieve the lighting effect. This method avoids errors in code changes and debugging, can fully match user needs, and greatly improves development efficiency and product market response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solution provided by the present application, the following is a brief introduction to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present application.

[0026] Figure 1 This is a schematic diagram of the overall structure of this application; Figure 2 This is the lighting effect management flow chart for this application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0028] An efficient business lighting effect management system decouples the operating system, platform interfaces, hardware devices and lighting effect configuration functions, and then calls corresponding resources in a targeted manner according to user needs to achieve efficient and accurate function configuration with a high degree of freedom.

[0029] like Figure 1As shown, it includes an operating system abstraction layer, a platform abstraction layer, a hardware abstraction layer, a lighting effect management layer, and a logic layer. The logic layer is used to receive and forward data between the user and the lighting effect management layer to achieve data docking; the lighting effect management layer can provide a variety of hardware device parameter configurations and business lighting effect configurations to the hardware abstraction layer; the hardware abstraction layer and the lighting effect management layer cooperate through the hardware device control interface, and the hardware abstraction layer can provide a variety of driver programs and hardware device interface address information for related hardware devices to the platform abstraction layer to provide a unified interface package. Different hardware device platforms are docked through corresponding driver modules to shield hardware device differences; the platform abstraction layer can provide a variety of different interface functions to the operating system abstraction layer, and isolate the control differences of different main control platforms on the hardware device operating system according to different interface functions, so as to realize the control of the lighting effect manager across main control platforms; the operating system abstraction layer can call different operating systems to drive hardware devices according to the hardware device interface address information, so as to isolate the function differences of different operating systems and realize the cross-operating system work of the lighting effect manager.

[0030] The lighting effect management layer is equipped with an initialization configuration module, a hardware device parameter configuration module, and a business lighting effect configuration module. The business lighting effect configuration module stores a variety of lighting effect services. Each lighting effect service corresponds to a different lighting effect. Each lighting effect service corresponds to a single light or a light group composed of several lights. For example, a lighting effect service controls a light group to form a fixed cloud pattern, or a lighting effect service controls a light group to form a changing pattern of cows, sheep, dogs, etc. After the design of each lighting effect service is completed, it is stored in the business lighting effect configuration module through the initialization interface design and multiple lighting effect service information is configured.

[0031] In order to improve flexibility, each lighting effect service is not directly associated with the corresponding hardware device and driver device, but is indirectly controlled, so that any combination of various lighting effect services and hardware devices can be achieved.

[0032] Preferably, the configuration of the lighting effect service information specifically includes: the number of service lighting effects, lighting effect service ID, lighting effect ID, service lighting effect duration, lighting effect mode, service lighting effect mode (periodic mode, single mode), lighting effect configuration when the service lighting effect enters, lighting effect configuration when the service lighting effect is maintained, and lighting effect when the service lighting effect exits. Each lighting effect service ID corresponds to one or more lighting effect IDs. The lighting effect modes include flashing, constant, and breathing. In the flashing mode, the flashing effect of the lighting effect can be set, in the constant light mode, the constant light effect of the lighting effect can be set, and in the breathing mode, the breathing effect of the lighting effect can be set.

[0033] The hardware device parameter configuration module stores a variety of different hardware device configuration schemes. Each hardware device weighting scheme corresponds to a business lighting effect. The hardware device configuration scheme specifically includes the number of lights, the color of the lights (expressed by common RGB values, using some RGB general macros to simplify color configuration), the pins of the lights, and the control method of the lights (supporting common light hardware device control interfaces such as GPIO, I2C, SPI, PWM, and UART).

[0034] The initialization configuration module is used to eliminate the hardware device interface address information of the associated hardware device and software device after using a lighting effect service, so as to facilitate the generation of subsequent lighting effect services.

[0035] Preferably, in order to achieve more flexible lighting effect configuration and various subsequent lighting effect requirements, a small-grained lighting effect configuration module is set in the lighting effect management layer, and the small-grained lighting effect configuration module includes: further disassembling the hardware equipment associated with each lighting effect business to obtain a number of lighting effect tasks sorted by time, each lighting effect task corresponds to a lighting effect ID and lighting effect, and each lighting effect task corresponds to a hardware device configuration in a specific hardware device platform, thereby obtaining a small-grained lighting effect configuration. The small-grained lighting effect configuration does not require any changes when used, and can directly import the product lighting effect hardware device configuration and lighting effect configuration of the hardware device platform to quickly realize the lighting effect requirements of the product.

[0036] Preferably, a lighting effect service switching unit is also provided in the service lighting effect configuration module, and the lighting effect service switching unit can receive the lighting effect service ID issued by the user, obtain specific lighting effect effects according to the lighting effect service ID, such as binding success lighting effect, binding failure lighting effect, upgrade lighting effect, alarm lighting effect, etc., and replace the current lighting effect service ID.

[0037] Preferably, a universal interface is also provided in the hardware device parameter configuration module, and the universal interface includes a unified lighting effect switch interface, a unified lighting effect brightness setting interface, a current lighting effect service ID query interface, etc. The operating status of the current lighting effect service can be obtained through the universal interface.

[0038] Preferably, due to some lighting effect requirements of the product, after defining the lighting effect business requirements, you want to confirm the effect on the terminal. For most of the design processing of this part, the debugging version is developed first, and the product effect of the debugging version is determined. Then, confirmation is repeated in the middle before the final lighting effect requirements can be output, which is inefficient. Based on this problem, a lighting effect tool debugging interface is set in the lighting effect management layer. When the user requests related lighting effects, the lighting effect management layer converts the request information of the user into the corresponding lighting effect ID, and then sends the task corresponding to the lighting effect ID to the hardware abstraction layer. The hardware abstraction layer sends it to the corresponding hardware device according to the task, and then transmits the lighting effect of the hardware device after working to the user end, so as to realize the debugging requirements of the user end, which is easy to use. It can save the communication cost of product and R&D lighting effect requirements. At the same time, after the product confirms the lighting effect configuration, the device is directly imported, which can achieve zero code changes and no errors, perfectly matching product requirements, and greatly saving the development time of R&D lighting effect requirements.

[0039] The logic layer is set between the lighting effect management layer and the user, and the user sends a lighting effect start request through the user terminal. Specifically: the user terminal stores all current lighting effect service information, and the user sends a specified lighting effect start request by clicking the corresponding lighting effect service.

[0040] The logic layer includes a data transceiver module and a data conversion module. The data transceiver module is provided with a variety of different API interfaces, and receives light effect start requests sent by different user terminals through different API interfaces. The data conversion module converts the light effect start request information sent by different user terminals into a universal request to start the light effect information, and sends it to the light effect management layer through the data transceiver module. At the same time, the data transceiver module can receive the light effect start status feedback information sent by the light effect management layer, and the data conversion module can convert the light effect start status feedback information into a format that can be received by the corresponding user terminal, and send it to the corresponding user terminal through the API interface.

[0041] The hardware abstraction layer includes a driver storage module and a driver search module. The driver storage module stores the driver programs and hardware device interface address information required by different hardware device platforms. The driver program sets the number of lights, the color of the lights (represented by common RGB values, and uses some RGB general macros to simplify color configuration), the pins of the lights, and the control method of the lights (supporting GPIO, I2C, SPI, PWM, UART and other common light hardware device control interfaces), etc., which are the same as the corresponding lighting effect management module and are used to drive the corresponding hardware devices; the hardware device interface address information is used to access related hardware devices; the driver search module can receive the hardware device configuration plan of the lighting effect management layer, and then find the corresponding driver program and hardware device interface address information in the driver storage module according to the hardware device configuration plan, and transmit it to the platform abstraction layer.

[0042] Preferably, the specific method of searching for the corresponding driver program and hardware device interface address information through the driver search module is: each driver program and hardware device interface address information is marked as a lighting effect function ID, and each lighting effect function ID corresponds to the lighting effect business ID in the business lighting effect configuration module to facilitate search.

[0043] By setting up a hardware abstraction layer, the design differences of hardware devices can be isolated and controlled by the upper-level configuration of the product application, making it more flexible and scalable.

[0044] Preferably, a task polling monitoring module is also provided in the hardware abstraction layer, and an access interface with the platform abstraction layer is provided in the task polling monitoring module, and the current task execution status of the lighting effect service is obtained through the access interface, so as to monitor the lighting effect service, and issue an alarm when the current task execution status does not match the design status. And by setting the task monitoring of the lighting effect service at the upper layer of the lighting effect management layer, it is ensured that the lighting effect management layer can run on the bare metal, making the lighting effect management layer more flexible.

[0045] The platform abstraction layer includes an interface function storage module and an interface function search module. The interface function storage module stores interface functions corresponding to different hardware devices, which are specifically SDK hardware device control interfaces; the interface function search module can receive the driver and hardware device interface address information uploaded by the hardware abstraction layer, search for the corresponding interface function, and send it to the operating platform abstraction layer.

[0046] Preferably, the specific method for the interface function search module to search for the corresponding interface function is: each driver program and hardware device interface address information stored in the driver storage module is marked with its adapted main control platform information, and the interface function search module searches for the corresponding interface function in the interface function storage module according to the adapted main control platform information, and transfers the driver function and the driver program to the corresponding operating platform abstract layer.

[0047] By setting up the platform abstraction layer, cross-platform master control of lighting effect management is realized. No matter what model is used to control the corresponding hardware abstraction layer, it only needs to adapt to the corresponding SDK hardware device control interface to run normally.

[0048] The operating system abstraction layer includes an operating system storage module and an operating system call module. The operating system storage module stores the operating system, and the available operating systems include Linux, FreeRTOS, LiteOS, etc. The operating system call module selects the appropriate operating system according to different interface functions, and then calls the corresponding operating system to access the hardware device.

[0049] Through the above design, this application has the following advantages: 1. Multi-platform adaptive lighting effect control mechanism provides a multi-platform adaptive lighting effect control mechanism, supports a variety of hardware device platforms and lighting effect devices, and improves the compatibility of the system. By introducing the system abstraction layer (OSAL), platform interface abstraction layer (PAL), and hardware abstraction layer (HAL), efficient lighting effect management across operating systems and hardware device platforms is achieved, and flexible lighting effect configuration and debugging tools are provided, which solves the shortcomings of existing technologies and significantly improves the efficiency and flexibility of lighting effect management.

[0050] 2. Flexible lighting effect configuration and management. It supports flexible lighting effect configuration. Users can quickly adjust the lighting effect configuration according to their needs. It supports multiple lighting effect modes and effects. By using lighting effect configuration files, users can easily configure and manage different lighting effect schemes, which greatly simplifies the lighting effect management process and makes lighting effect configuration more flexible and adaptable.

[0051] 3. Real-time lighting effect feedback and debugging methods provide real-time lighting effect feedback and debugging methods, so that product or developers can directly view the lighting effect during the configuration stage, reducing the development and debugging cycle. Through visual configuration tools and real-time simulation technology, real-time feedback and rapid adjustment of lighting effects are achieved, making lighting effect debugging more efficient and intuitive.

[0052] 4. Efficient lighting effect requirement import and verification mechanism, supports fast verification and lighting effect configuration with zero code changes. The product only needs to use the lighting effect debugging tool to output the corresponding lighting effect requirement configuration, and R&D can directly import the configuration to quickly achieve the lighting effect. This method avoids errors in code changes and debugging, can fully match user needs, and greatly improves development efficiency and product market response speed.

[0053] As a specific implementation method, it also includes an efficient business lighting effect management method, combined with Figure 2 ,include: Step S100, the logic layer receives a lighting effect start request from the user end through an API interface, obtains configuration information of the lighting effect service therein, and forwards the lighting effect start request to the lighting effect management layer; In step S200, the lighting effect management layer determines the required lighting effect service information according to the lighting effect start request sent by the user end, and then sends the configuration of the corresponding lighting effect service information, the lighting effect service ID and the lighting effect ID to the corresponding hardware device control interface.

[0054] Step S300, the hardware abstraction layer receives the lighting effect service information sent by the lighting effect management layer, and then calls the required driver and hardware device interface address information to the platform abstraction layer according to the lighting effect service information; In step S400, the platform abstraction layer retrieves the corresponding interface function according to the corresponding driver and hardware device interface address information and sends it to the operating system abstraction layer. The operating system abstraction layer selects an adapted operating system according to the corresponding interface function, and connects the driver and lighting effect service information to the hardware device through the hardware device interface, and operates the hardware device through the operating system.

[0055] Step S500, after the hardware device executes the corresponding lighting effect service, it feeds back the hardware device status to the operating system abstraction layer, the operating system abstraction layer updates the execution status of the hardware device and sends it to the platform abstraction layer, the platform abstraction layer updates the lighting effect status according to the execution status of the hardware device and sends it to the hardware abstraction layer, the hardware abstraction layer feeds back the lighting effect execution status to the lighting effect management layer, the lighting effect management layer sends feedback and response information of the lighting effect start-up status to the logic layer, the logic layer determines whether there is feedback and response information of the lighting effect start-up status, and if so, notifies the user end of the lighting effect start-up success information.

[0056] Finally, it should be noted that: the drawings of the embodiments disclosed in the present invention only involve structures related to the embodiments disclosed in the present invention, and other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of the present invention can be combined with each other; Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An efficient business lighting effect management system, characterized by: It includes an operating system abstraction layer, a platform abstraction layer, a hardware abstraction layer, a lighting effect management layer and a logic layer; the logic layer is used to receive and forward data between the user and the lighting effect management layer; the lighting effect management layer can provide a variety of hardware device parameter configurations and business lighting effect configurations to the hardware abstraction layer; the hardware abstraction layer and the lighting effect management layer cooperate through the hardware device control interface, and the hardware abstraction layer can provide a variety of driver programs for related hardware devices and hardware device interface address information to the platform abstraction layer; the platform abstraction layer can provide a variety of different interface functions to the operating system abstraction layer; the operating system abstraction layer can call different operating systems to drive hardware devices according to the hardware device interface address information.

2. The efficient business lighting effect management system according to claim 1, characterized in that: The lighting effect management layer is provided with an initialization configuration module, a hardware device parameter configuration module and a business lighting effect configuration module. The business lighting effect configuration module stores a variety of lighting effect services, each lighting effect service corresponds to a different lighting effect, and each lighting effect service corresponds to a single lamp or a group of lamps composed of several lamps. After the design of each lighting effect service is completed, it is stored in the business lighting effect configuration module through the initialization interface design and the configuration of various lighting effect service information is performed.

3. The efficient business lighting effect management system as claimed in claim 2, characterized in that: The configuration of the lighting effect service information specifically includes: the number of service lighting effects, lighting effect service ID, lighting effect ID, service lighting effect duration, lighting effect mode, service lighting effect mode, lighting effect configuration when entering the service lighting effect, lighting effect configuration when maintaining the service lighting effect, and lighting effect when exiting the service lighting effect; each lighting effect service ID corresponds to one or more lighting effect IDs; the lighting effect modes include flashing, constant, and breathing lights.

4. The efficient business lighting effect management system as claimed in claim 3, characterized in that: The hardware device parameter configuration module stores a variety of different hardware device configuration schemes, and the hardware device configuration schemes include the number of lights, the colors of lights, the pins of lights, and the control methods of lights.

5. The efficient business lighting effect management system as claimed in claim 3, characterized in that: A small-granularity lighting effect configuration module is set in the lighting effect management layer, and the small-granularity lighting effect configuration module includes: further disassembling the hardware equipment associated with each lighting effect business to obtain a number of lighting effect tasks sorted by time, each lighting effect task corresponds to a lighting effect ID and a lighting effect, and each lighting effect task corresponds to a hardware device configuration in a specific hardware device platform, thereby obtaining a small-granularity lighting effect configuration.

6. The efficient business lighting effect management system as claimed in claim 3, characterized in that: The business lighting effect configuration module is also provided with a lighting effect business switching unit, which can receive a lighting effect business ID issued by a user, obtain specific lighting effect effects according to the lighting effect business ID, including lighting effects for successful binding, lighting effects for failed binding, upgraded lighting effects and alarm lighting effects, and replace the current lighting effect business ID.

7. The efficient business lighting effect management system as claimed in claim 3, characterized in that: A lighting effect tool debugging interface is set in the lighting effect management layer. When the user terminal requests related lighting effects, the lighting effect management layer converts the request information of the user terminal into a corresponding lighting effect ID, and then sends the task corresponding to the lighting effect ID to the hardware abstraction layer. The hardware abstraction layer sends it to the corresponding hardware device according to the task, and then transmits the lighting effect after the hardware device is working back to the user terminal.

8. The efficient business lighting effect management system according to claim 1, characterized in that: The logic layer includes a data transceiver module and a data conversion module; the data transceiver module is provided with a plurality of different API interfaces, and receives lighting effect start requests sent by different user terminals through different API interfaces; the data conversion module converts the lighting effect start request information sent by different user terminals into a universal request to start the lighting effect information, and sends it to the lighting effect management layer through the data transceiver module; at the same time, the data transceiver module can receive the lighting effect start status feedback information sent by the lighting effect management layer.

9. The efficient business lighting effect management system according to claim 1, characterized in that: The hardware abstraction layer includes a driver storage module and a driver search module. The driver storage module stores the driver programs and hardware device interface address information required by different hardware device platforms. The driver program sets the number of lights, the color of lights, the pins of lights and the control mode of lights. The hardware device interface address information is used to access related hardware devices. The driver search module can receive the hardware device configuration scheme of the lighting effect management layer, and then find the corresponding driver program and hardware device interface address information in the driver storage module according to the hardware device configuration scheme, and transmit it to the platform abstraction layer. The platform abstraction layer includes an interface function storage module and an interface function search module; the interface function storage module stores interface functions corresponding to different hardware devices, and the interface function is specifically an SDK hardware device control interface; the interface function search module can receive the driver and hardware device interface address information uploaded by the hardware abstraction layer, and search for the corresponding interface function and send it to the operating platform abstraction layer; The operating system abstraction layer includes an operating system storage module and an operating system calling module; the operating system storage module stores multiple operating systems; the operating system calling module selects an adaptive operating system according to different interface functions, and then calls the corresponding operating system to access the hardware device.

10. An efficient business lighting effect management method, using the system as described in any one of claims 1-9, characterized in that: include: The logic layer receives the lighting effect start request from the user through the API interface, obtains the configuration information of the lighting effect service, and forwards the lighting effect start request to the lighting effect management layer; The lighting effect management layer determines the required lighting effect service information according to the lighting effect start request sent by the user end, and then sends the configuration of the corresponding lighting effect service information, the lighting effect service ID and the lighting effect ID to the corresponding hardware device control interface; The hardware abstraction layer receives the lighting effect service information sent by the lighting effect management layer, and then calls the required driver and hardware device interface address information to the platform abstraction layer according to the lighting effect service information; The platform abstraction layer calls the corresponding interface function according to the corresponding driver and hardware device interface address information and sends it to the operating system abstraction layer. The operating system abstraction layer selects the appropriate operating system according to the corresponding interface function, connects the driver and lighting effect service information to the hardware device through the hardware device interface, and operates the hardware device through the operating system. After the hardware device executes the corresponding lighting effect service, it feeds back the hardware device status to the operating system abstraction layer. The operating system abstraction layer updates the execution status of the hardware device and sends it to the platform abstraction layer. The platform abstraction layer updates the lighting effect status according to the execution status of the hardware device and sends it to the hardware abstraction layer. The hardware abstraction layer feeds back the lighting effect execution status to the lighting effect management layer. The lighting effect management layer sends feedback and response information of the lighting effect startup status to the logic layer. The logic layer determines whether there is feedback and response information of the lighting effect startup status. If so, the user end is notified of the successful lighting effect startup information.

Citation Information

Patent Citations

  • Lamp effect control method, control unit, intelligent terminal and computer readable storage medium

    CN109451150A

  • Display equipment and lamp effect control method

    CN112566336A

Cited By

  • Flash lamp control method and device, medium and program product

    CN121586131A

  • Flash control method, device, medium and program product

    CN121586131B