Point location scheduling processing method and device and edge computing controller

A scheduling processing and edge computing technology, applied in computing, multi-program device, program control design, etc., can solve the problem that points are not prioritized for monitoring and processing

Pending Publication Date: 2021-12-31
GREE ELECTRIC APPLIANCES INC OF ZHUHAI
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0004] To this end, this application provides point scheduling processing methods, devices and edge computing controllers, whi...
View more

Method used

In the present application, downlink monitoring process is divided into scheduling thread and monitoring service thread according to the function of business thread, how scheduling thread determines p...
View more

Abstract

The invention relates to a point location scheduling processing method and device and an edge computing controller, and belongs to the technical field of point location scheduling processing, and the method comprises the steps that for a specific process, the service quality information configuration condition of point locations under the specific process is determined, and one monitoring object of one device corresponds to one point location; and based on the service quality information configuration condition of the point locations, the threads under the specific process are utilized to schedule the point locations. According to the method and the device, the problem that point locations with high response real-time requirements are not preferentially monitored and processed can be solved.

Application Domain

Program initiation/switchingInterprogram communication

Technology Topic

Point locationService quality +5

Image

  • Point location scheduling processing method and device and edge computing controller
  • Point location scheduling processing method and device and edge computing controller
  • Point location scheduling processing method and device and edge computing controller

Examples

  • Experimental program(1)

Example Embodiment

[0047] In order to make the objects, technical solutions and advantages of the present application, the technical solutions of the present application will be described in detail below. Obviously, the described embodiments are merely the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained without making creative labor without making creative labor.
[0048] See figure 1 , figure 1 It is a flow chart of a point scheduling processing method according to an exemplary embodiment, including the following steps:
[0049] Step S11, for the specific process, determine the service quality information configuration of the specific process under the specific process, where one monitoring object of one device corresponds to one of the points.
[0050] For specific processes, you can divide independent process tasks by controller interface function, such as the controller has RS485-1, RS485-2, CAN-1, and CAN-2 interface, each of which separately uses separate service processes respectively. Treatment, each of the specific processes is independent, and each specific process is processed by multi-threading.
[0051] A monitoring object of a device corresponds to a point, such as one monitoring temperature of the device can be used as a point, and the monitoring humidity of the device can be used as a point position, and the device has a switch state. As a point, wait. The point can be represented by configuring the ID number. If the monitoring temperature of the device can be used as a point, it can be configured as a point 1; the monitoring humidity of the device can be used as a point, configurable as point bit 2; one switch state of the device can be used as a point position It can be configured to point bit 3.
[0052] For the quality of service information (Qos, Quality of Service), you can query related technical content in this application, configuration for each point and the quality of service information, may be some of the points configured with the service quality information, while others point is not configured there are real-time demand of quality of service information, point of quality of service information configuration may be characterized by point response, the quality of service point information is not arranged, it can indicate low real-time response requirements or not, and for configuring quality of service point of information, which can indicate the real-time response to high demand, priority needs to be monitoring process.
[0053] Step S12, based on the quality of service configuration information of the point, the use of specific threads in the process, the scheduling process point.
[0054] Create multiple threads under each specific process, point by the thread scheduling processes under specific process.
[0055] Real-time demand response point of the quality of service configuration information can characterize point, therefore, the quality of service information based on the configuration of the points, the use of thread in a specific process, to the point scheduling process, helps make response high demand for real-time monitoring of priority points to be processed.
[0056] For the particular process monitoring process can be divided into downlink and uplink service process, wherein a downlink apparatus for the monitoring process to monitor the uplink service process for interacting with the host computer. Each of which has set the monitoring process at the downstream and upstream service process has multiple threads, see figure 2 , figure 2 Is a diagram illustrating the monitoring process shown downlink and an uplink data transmission service process thread relationship in accordance with an exemplary embodiment.
[0057] In one embodiment, see image 3 , image 3 It is a flowchart illustrating the monitoring process shown downlink to an exemplary embodiment of the scheduling processing point for step S12, the monitoring process in the downlink case, comprising the steps of:
[0058] Step S121, the point with the quality of service is configured with the information bits in the message queue to determine mode of addition of the point, the manner of adding comprises: adding or inserting a stack added;
[0059] Step S122, the adding method based on the point by the downlink scheduling threads in the monitoring process, adding the points to the message queue;
[0060] Step S123, the thread scheduling using the sorting based on the message queue of the point of the thread to the monitoring service to monitor the process of advancing said downlink point, so the monitor service thread is received every time when push trigger to obtain the corresponding point information.
[0061] In this application, the downstream division of the monitoring process in accordance with the business function thread for thread scheduling and monitoring service thread, the thread scheduling to determine how to point and push scheduling, monitoring service thread by pushing the trigger point position information of the implementation of access points, in order to achieve synergy cooperate to improve processing efficiency.
[0062] In practical applications, the scheduled thread to obtain from the controller Sqlite point configuration information, including an ID number and quality of service information points, the use point is configured with the quality of service information, determining the point in the message queue mode of addition, the manner of adding comprises: adding or inserting a stack added. Specifically, if the points are not disposed on the quality of service information, it is determined that bit in the message queue of the manner of addition is to add the point stack, indicating a low point in response to real-time requirement or not, there is not configured for the quality of service information points, using the stack Add added to the message queue. And if the point is configured with the quality of service information, it is determined that bit in the message queue of the manner of adding the insertion point is added, indicating that the high point of the real-time response requirements, the use of added insert, made dispatch priority, priority is to be scheduled.
[0063] In practical applications, according to point Qos information and the ID number, hash linked list is formed, as a message queue of a hash list. The thread scheduling message queue sorted sequentially with pushing point to the monitoring service threads, the monitoring service on a per-thread thread scheduling push, every time the push is received, triggering acquisition of the corresponding point information as the monitoring scheduling threads 1 thread push service point (temperature monitoring), the monitoring service thread receives a push of a point, corresponding to the trigger to monitor the temperature information acquisition apparatus 1 point. Each thread monitoring service can be acquired point information stored in the Redis database.
[0064] In one embodiment, step for step S122, the comprising:
[0065] If the point is added Add the stack through the thread scheduling, the point in a stacked manner to add the message queue.
[0066] Specifically, point mode of addition is to add the stack, indicating a low point of response or no real-time requirement, for this point, thread scheduling, sequential manner using stack added to the message queue.
[0067] In one embodiment, step for step S122, the further comprising:
[0068] If the mode of addition of the point of insertion is added, by the thread scheduling, using the quality of service information of the point, determining the point in the message queue insertion position, based on the determined said insertion position, adding the points to the message queue.
[0069] Specifically, the manner of adding the point of insertion is added, indicates that the high point of the real-time response requirements for that level, through the thread scheduling, quality of service using the point information, determining the point in the message queue insertion position, the quality of service quality of service information may be in the form of value, the greater the quality of service may be specified value, the higher the points of the real-time response requirements. See Figure 4 , Figure 4 It is a schematic diagram of a queue according to the insertion point to add messages to an illustrated exemplary embodiment, Figure 4 In 1101,1010,1001 and 1005 respectively represent the four points, wherein, Key values ​​represent the corresponding sequence of a push message queue in the order 1,2,3 push, the value represented by dashed blocks in each push point bit number. Point 1101 and point 1010 is not configured quality of service information to the message queue by a stack manner, point 1001 and point 1005 is configured with quality of service information, Add to insert in the message queue. exist Figure 4 The illustrated case, both are simultaneously inserted in the message queue of the first team, point 1001 may indicate 1005, and quality of service point of both the same value. In practice, if the point 1001 and point 1005 the two values ​​are different quality of service, quality of service if the predetermined value is larger, the higher the point of real-time response requirements, both point 1001 and point 1005, a service quality value larger point is inserted in the first team, the quality of service small value point is inserted immediately following the first team's second position.
[0070] In one embodiment, the method also includes:
[0071] Point if the present embodiment is added by insertion into the message queue, the message queue to determine whether the point is within a predetermined period can be pushed out to push all, if not, determining that the message queue is not push out the point, and the point is not pushed out of position in the message queue position be adjusted forward processing.
[0072] Specifically, in a period of push, push between the two points, having a time interval is set, see Figure 4 , The absence of point 1001 and point 1005 of the two insertion points, in a push period, schedules threads for point 1101 and point 1010 may be pushed twice, and when the point 1001 and point 1005 two when a point tied into the message queue of the first team, in the period to push content, you need to have three times the push, it is possible that, due to the 1001 and 1005 two points inserted into the message queue of the first team, resulting in a push push not complete cycle of 1101, 1101 which led to this point could not be detected. Through this application the above scheme, you can solve the problem, see Figure 5 , Figure 5 In accordance with another exemplary embodiment is an exemplary embodiment of message queue shown a schematic view of the insertion point is added, wherein Figure 5 Referring to the illustrated identification Figure 4 The illustrated identification described. By application of the present embodiment, when the point 1001 and point 1005 is inserted into the two parallel points team first message queue, the message queue if it is determined that the point can not be all of the bit push push out within a predetermined period, Figure 5 Determining the points shown can not be pushed out of the 1101 points, 1101 points to the message queue adjusted forward by one position, adjust the point where the bit position 1010, 1010 in parallel with the push point, and schedule threads for Figure 5 Message queue in a push period, push made twice, the first parallel push point 1001 and point 1005, point 1101 and then pushing parallel and point 1010, to ensure that in this period all push messages in the queue push out all the points.
[0073] In one embodiment, for step S12, the monitoring process in the case of uplink, the uplink service process for interacting with the host computer, may include the steps of:
[0074] Using said point is configured with the quality of service information, determining the uplink service process target thread at the point of use, point of the scheduling process performed by the target thread is determined.
[0075] For the controller, it may further have a PC, through the program, the host computer requests an uplink data service provided by the process, through the program, according to which the point is configured quality of service information is determined with the service process in the upstream corresponding to the target thread can be achieved with quality services for information and are not equipped with two types of point of service quality information in the uplink service process, were scheduled to perform points by their corresponding target thread, enabling real-time response make high demand points are preferentially separate monitoring process.
[0076] See figure 2 , The process is provided with an uplink service request thread and thread control services, based on the two threads, application of the present embodiment given in the following examples, comprising:
[0077] If the point is not configured with the quality of service information, it is determined that the target point of the thread used for the request thread, the requesting thread periodically by the database to store information of the point, the point acquiring bits of information points;
[0078] If the point is configured with the quality of service information, it is determined that the target point of the thread used to control the service thread, with the thread control service, the downlink by the scheduling of threads in the monitoring process , the scheduling processing point.
[0079] In practice, the requesting thread is not arranged corresponding to the service quality information point, such point is a cyclical business point, is not sensitive to delay, the database can be requested directly by the requesting thread Redis periodic data, the data is returned to the host computer.
[0080] The controller requires cooperative control command issued by the host computer, a control command for the corresponding point, high delay requirements, priority handling, control service corresponding to the thread of the service point arranged quality information, the host computer sends a control instruction corresponding to point belongs to the class points, practical applications, can be configured with its quality of service information. This will be handled by the scheduling priority control service processing thread, thread by thread scheduling control services under downward monitoring process, to achieve that type of point.
[0081] See Image 6 ,Image 6 A block diagram schematic diagram of a point scheduling processing apparatus according to an exemplary embodiment, the point scheduling processing device 6, includes:
[0082] Determine the module 61 for determining the service quality information configuration of the specific process under the specific process, where a monitoring object of one device corresponds to one of the points;
[0083] Processing module 62 is configured to scheduling the point in the specific process based on the service quality information configuration of the point bit.
[0084] Further, processing module 62, including:
[0085] Downstream processing unit, for: If the specific process is a downlink monitoring process, the downlink monitoring process is used to monitor the device; use the point to configure the service quality information to determine the point in the message Adding mode in the queue includes: stack addition or insertion addition; based on the add-on, the scheduling thread is added to the message queue by the scheduling thread under the downlink monitoring process. Using the schedule thread, the point is pushed to the monitoring service thread under the downlink monitoring process based on the sort of the dot bit in the message queue, so that the monitoring service thread is received once. Trigger to get the corresponding point information.
[0086] Further, in the downlink processing unit, if the service quality information is not configured, it is determined that the add-on mode is added in the message queue; if the point is configured, the service quality is configured. Information, determine that the point of adding is added in the message queue.
[0087] Further, in the downstream processing unit, if the add-to-point adding mode is inserted, the service quality information of the point bit is determined by the service quality information of the point bit in the message queue. The insertion position is added to the message queue based on the determined insertion position.
[0088] Further, the downstream processing unit is also used to: if there is a point in which the point is added to the message queue by insertion, it is determined whether the point in the message queue can be fully pushed in the preset push period. If it is not possible, it is determined that the dot bit cannot be pushed out in the message queue, and the point of the point that cannot be pushed out is forward adjustment processing in the message queue.
[0089] Further, in the downstream processing unit, if the adding method of the point is added, the point bit is added to the message queue in a stack manner by the scheduled thread.
[0090] Further, processing module 62, including:
[0091] Upstream processing unit, for: If the specific process is an uplink service process, the uplink service process is used to interact with the host computer; the service quality information is configured to determine whether the point is used. The target thread under the uplink service process is scheduled by determining the target threads.
[0092] Further, uplink processing units, specific for:
[0093] If the service quality information is not configured, the target thread used by the point bit is determined to request the thread, and the point is periodically transmitted to the database of the storage point information through the request thread. Bit point information;
[0094] If the service quality information is configured with the service quality information, it is determined that the target thread used by the point bit is the control service thread, and the control service thread is utilized by the control service thread, through the schedule thread under the downlink monitoring process. , Schedule processing for the point position.
[0095] The point-level scheduling processing apparatus 6 in the above embodiment, wherein the various modules perform a detailed description thereof will be described in detail in the embodiment of the above-described correlation method, which will not be described in detail herein.
[0096] See Figure 7 , Figure 7 It is a block diagram diagram diagram showing an edge computing controller according to an exemplary embodiment, and the edge computing controller 7 includes:
[0097] Memory 701, which stores an executable program;
[0098] The processor 702 is configured to perform the executable of the memory 701 to achieve the steps of any of the methods described above.
[0099] Regarding the edge calculation controller 7 in the above embodiment, the processor 702 performs a detailed description of the procedure of the program in the memory 701, which will be described in detail herein, which will not be described in detail herein.
[0100] In one embodiment, the edge computing controller can be applied to a mobile experiment vehicle emergency management system.
[0101] In practical applications, the edge computing controller 7 can be applied to the mobile laboratory vehicle emergency management system. With the improvement of the medical system and the development of science and technology, the demand for mobile biomedical research experiment has become higher and higher. The amount of equipment that the mobile laboratory vehicle intelligent system needs to be accessed is getting larger, and the centralized control platform cannot meet the data real-time requirements. The edge computator is used as an emerging controller mode. It is not necessary to determine the centralized control platform logic. The data can be processed in time near the device, which can effectively reduce network bandwidth, delayed bottleneck and platform server load pressure. Mobile Laboratory Auto Emergency Management System Application This application edge calculation controller scheme Scheduling processing.
[0102] It will be appreciated that the same or similar portions in the above embodiments can be referred to with each other, and those not described in some embodiments can be found in the same or similar content in other embodiments.
[0103] It should be noted that in the description of the present application, the term "first", "second" or the like is used only for the purpose of describing, and cannot be understood as an indication or implies relative importance. Further, in the description of the present application, the meaning of "multiple", "more" is referred to by at least two unless otherwise stated.
[0104] It should be understood that when the element is referred to as "fixed to" or "set to" another element, it can directly in another element or may exist in the middle element; when a component is called "connected" another element, it Can be directly connected to another element or may simultaneously exist in the centering element, and "connection" as used herein can include a wireless connection; use of the wording "and / or" including one or more associated listed items One unit and all combinations.
[0105] Any process or method described in the flowchart or herein can be understood as: a module, a segment or part of a code including one or more executable instructions for implementing the steps of a particular logic function or process. And the range of preferred embodiments of the present application includes additional implementation, wherein the function can be performed without pressing or discussed, including the basically simultaneous or in reverse order, according to the sequence of the functions, which should be performed. It is understood by those skilled in the art of the present invention.
[0106] It should be understood that the part of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiment, the plurality of steps or methods can be implemented in a memory or firmware stored in the memory and executed by the appropriate instructions. For example, if you are implemented using hardware, as in another embodiment, it is possible to implement any one or their combinations in the art well known in the art: having logic gate circuits for realizing logic functions for data signals. Discrete logic circuit, a dedicated integrated circuit with a suitable combined logic door circuit, a programmable gate array (PGA), field programmable gate array (FPGA), and the like.
[0107] One of ordinary skill in the art will appreciate that all or some of the steps that implement the above-described embodiment method are to be completed by the hardware that can be done by the program, and the program can be stored in a computer readable storage medium. When executed, one of the steps of the method embodiment or a combination thereof.
[0108] Further, each functional unit in the various embodiments of the present application may be integrated in one processing module 62, or may be generated separately in each unit, or two or more units can be integrated in one module. The above-described integrated modules can be implemented in the form of hardware, or may be implemented in the form of a software function module. The integrated module can be stored in a computer-readable storage medium if implemented in the form of a software functional module and is used as a separate product.
[0109] The storage medium mentioned above can be read only memory, disk, or optical disc.
[0110] In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some example", etc., meant to conjunction with the specific characteristics described in connection with this embodiment. , Structures, materials or features are included in at least one embodiment or example of the present application. In the present specification, the meaning of the above term is not necessarily referred to as the same embodiments or examples. Moreover, the specific features, structures, materials or features described may be combined in any one or more embodiments or examples.
[0111] Although the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are exemplary and cannot be understood as limiting the present application, and those of ordinary skill in the art can be described in the scope of the present application. EXAMPLES Change, modify, replace, and variations.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products