Production line equipment upgrading method and related equipment
By acquiring the operating status of external devices on the production line, and automatically obtaining data packets from the cloud platform to update applications, the problem of low flexibility in production line equipment upgrades is solved, and automatic upgrades without the need for specific time scheduling are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-05
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, the application upgrades for production line equipment have low flexibility, requiring a specific time to be agreed upon for upgrades, which cannot be flexibly scheduled.
By acquiring the operating status of external devices on the production line and determining when the devices are idle, the system retrieves data packets for tasks to be executed from the cloud platform and automatically updates or installs the target application.
It enables automatic application updates or installations on production line equipment when it is idle and meets the prerequisites, improving the flexibility of upgrades and reducing the need for manual intervention and downtime maintenance.
Smart Images

Figure CN121658031A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method for upgrading production line equipment and related equipment. Background Technology
[0002] With the rapid development of intelligent manufacturing, production line equipment is playing an increasingly important role in industrial production.
[0003] Intelligent production line equipment is equipped with applications. When an application needs upgrading, technicians bring the application installation package and configuration to the site, transfer the package to the production line equipment via physical connection or remote file transfer, and then manually perform the software installation or configuration. Some smart factories, however, use IoT technology to collect data from the production line equipment to enable application upgrades.
[0004] Whether upgrading the application manually or through IoT technology, it requires agreeing on a specific time for upgrading the application on the production line equipment, resulting in low flexibility in application upgrades on production line equipment. Summary of the Invention
[0005] This application provides a method and related equipment for upgrading production line equipment, which solves the problem of low flexibility in upgrading application programs in production line equipment.
[0006] Firstly, this application provides a method for upgrading production line equipment, including: The first operating status of each external device connected to the production line equipment is obtained, and the second operating status of the production line equipment is determined based on each of the first operating statuses. When the second running state is an idle state, retrieve the task to be executed from the target task queue and obtain the preconditions of the task to be executed; If the production line equipment meets the aforementioned prerequisites, the data packet corresponding to the task to be executed is obtained from the cloud platform. Update or install the target application in the production line equipment according to the data packet.
[0007] In some embodiments, before obtaining the first operating status of each external device connected to the production line equipment, the method further includes: Obtain the version information of the target application and send the version information to the cloud platform; The system receives an upgrade task for the target application issued by the cloud platform based on the version information, and adds the upgrade task as a task to be executed to the target task queue.
[0008] In some embodiments, adding the upgrade task as a task to be executed to the target task queue includes: The upgrade task is parsed to obtain the first task requirement, and the task queue that matches the first task requirement is determined as the target task queue. Based on the first task requirements of the upgrade task and the second task requirements of the tasks in the target task queue, determine the queue position of the upgrade task in the target task queue; Add the upgrade task to the queue position in the target task queue as a task to be executed in the target task queue.
[0009] In some embodiments, before obtaining the version information of the target application, the method further includes: Determine the production line identifier where the equipment is located; Based on the production line identifier, a communication connection is established between the production line equipment and the cloud platform.
[0010] In some embodiments, obtaining the task to be executed from the target task queue includes: Each currently executing task is identified, and the first task type of each of the currently executing tasks is different; Based on the first task type of each currently executed task, a target task queue is determined in each task queue, wherein the second task type corresponding to the tasks arranged in the target task queue is different from each of the first task types; Extract the task at the head of the target task queue as the task to be executed.
[0011] In some embodiments, determining each currently executing task includes: If both the currently executing task and the task to be executed in the production line equipment are periodic tasks, then each currently running task will be considered as the currently executing task.
[0012] Secondly, this application provides a production line equipment, comprising: The first acquisition module is used to acquire the first operating status of each external device connected to the production line equipment, and determine the second operating status of the production line equipment based on each of the first operating statuses. The second acquisition module is used to acquire a task to be executed from the target task queue and acquire the preconditions of the task to be executed when the second running state is an idle state. The third acquisition module is used to acquire the data packet corresponding to the task to be executed from the cloud platform when the production line equipment meets the preconditions. The update module is used to update or install the target application in the production line equipment according to the data packet.
[0013] Thirdly, this application provides a production line apparatus, including: a processor, and a memory and a communication interface communicatively connected to the processor; The communication interface is used to communicate with other communication devices; The memory is used to store computer-executed instructions; The processor is used to execute computer execution instructions stored in the memory to implement the production line equipment upgrade method described above.
[0014] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the production line equipment upgrade method provided in the first aspect.
[0015] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the production line equipment upgrade method as provided in the first aspect.
[0016] The production line equipment upgrade method and related equipment provided in this application obtain the first operating status of each external device connected to the production line equipment, and determine the second operating status of the production line equipment based on each first operating status. If the second operating status is an idle state, a task to be executed is obtained from the target task queue, and the preconditions of the task to be executed are also obtained. If the production line equipment meets the preconditions, the data packet corresponding to the task to be executed is obtained from the cloud platform, thereby updating or installing the target application in the production line equipment based on the data packet. In this application, when the production line equipment is idle and the preconditions are met, the target application in the production line equipment can be automatically updated or installed, without the need for technicians to set the upgrade time of the production line equipment, thus improving the upgrade flexibility of the application in the production line equipment. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] Figure 1 This is a schematic diagram illustrating a scenario for the production line equipment upgrade method described in this application. Figure 2 This is a flowchart illustrating the steps of the production line equipment upgrade method provided in the embodiments of this application. Figure 1 ; Figure 3 This is a flowchart illustrating the steps of the production line equipment upgrade method provided in the embodiments of this application. Figure 2 ; Figure 4 This is a flowchart illustrating the steps of the production line equipment upgrade method provided in the embodiments of this application. Figure 3 ; Figure 5 This is a schematic diagram of the cloud platform involved in the embodiments of this application; Figure 6 This is a schematic diagram illustrating the connection between production line equipment and the equipment management cloud platform involved in an embodiment of this application; Figure 7 This is an input diagram illustrating the network topology of various production line devices involved in the embodiments of this application; Figure 8 This is a schematic diagram of the network configuration of the production line equipment involved in the embodiments of this application; Figure 9 This is a schematic diagram of the software installation of the production line equipment involved in the embodiments of this application; Figure 10 This is a schematic diagram of the software configuration of the production line equipment involved in the embodiments of this application; Figure 11 This is a schematic diagram of system resource monitoring involved in an embodiment of this application; Figure 12 This is a schematic diagram illustrating the application health management involved in the embodiments of this application; Figure 13 This is a schematic diagram illustrating the application software upgrade of the production line equipment involved in the embodiments of this application; Figure 14 This is a schematic diagram illustrating the changes to production line peripherals involved in the embodiments of this application; Figure 15 This is a flowchart illustrating the steps of the production line equipment upgrade method provided in the embodiments of this application. Figure 4 ; Figure 16 This is a schematic diagram illustrating the task states and task execution involved in the embodiments of this application; Figure 17 This is a flowchart illustrating the steps of the production line equipment upgrade method provided in the embodiments of this application. Figure 5 ; Figure 18 This is a schematic diagram of the program modules of a production line equipment provided in the embodiments of this application; Figure 19 This is a schematic diagram of the hardware structure of a production line device provided in an embodiment of this application.
[0019] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Furthermore, although the disclosure in this application is described according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete implementation method on its own.
[0021] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0022] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.
[0023] The term "module" as used in the embodiments of this application refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code capable of performing the functions associated with that element.
[0024] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0025] With the rapid development of intelligent manufacturing, production line equipment is playing an increasingly important role in industrial production.
[0026] Intelligent production line equipment is equipped with applications. When an application needs upgrading, technicians bring the application installation package and configuration to the site, transfer the package to the production line equipment via physical connection or remote file transfer, and then manually perform the software installation or configuration. Some smart factories, however, use IoT technology to collect data from the production line equipment to enable application upgrades.
[0027] The inventors of this application have discovered that, regardless of whether the application is upgraded manually or through IoT technology, a specific timeframe must be agreed upon for the application upgrade on the production line equipment, resulting in low flexibility in application upgrades on the production line equipment.
[0028] The inventors of this application therefore conceived of obtaining the first operating state of each external device connected to the production line equipment, and determining the second operating state of the production line equipment based on each first operating state. If the second operating state is an idle state, a task to be executed is obtained from the target task queue, along with the preconditions for the task to be executed. If the production line equipment meets the preconditions, the data packet corresponding to the task to be executed is obtained from the cloud platform, thereby updating or installing the target application in the production line equipment based on the data packet. In this application, when the production line equipment is idle and the preconditions are met, the target application in the production line equipment can be automatically updated or installed without the need for technicians to set the upgrade time of the production line equipment, thus improving the upgrade flexibility of the application in the production line equipment.
[0029] The following is for reference Figure 1 The following provides a detailed description of the scenario diagram illustrating the production line equipment upgrade method of this application. For example... Figure 1 As shown, the production line equipment 100 is connected to multiple external devices 110, such as robotic arms, glue supply systems, cameras, and safety gates. The production line equipment 100 can connect to each external device 110 via physical connection or network connection. The production line equipment 100 communicates with the cloud platform 200. The cloud platform 200 sends tasks to be executed to the production line equipment 100, which adds these tasks to a queue. The production line equipment 100 obtains the first operating status of each external device 110, determines its second operating status based on these first operating statuses, and if the second operating status indicates that the production line equipment 100 is idle, it retrieves the task to be executed from the queue and obtains the preconditions for the task. If the preconditions are met, the production line equipment 100 obtains the data packet corresponding to the task from the cloud platform 200, thereby updating or installing the target application in the production line equipment via the data packet.
[0030] The following is passed Figure 1 The technical solutions shown in this application will be described in detail with reference to specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other, and the same or similar content will not be described again in different embodiments.
[0031] Reference Figure 2 , Figure 2 This is a flowchart illustrating the production line equipment upgrade method provided in the embodiments of this application. Figure 1 Production line equipment upgrade methods include: Step S201: Obtain the first operating status of each external device connected to the production line equipment, and determine the second operating status of the production line equipment based on each first operating status.
[0032] In this embodiment, the execution entity is the production line equipment. The production line equipment is connected to multiple external devices, such as robotic arms, glue supply systems, cameras, safety gates, etc.
[0033] Reference Figure 3 The production line equipment is equipped with application management middleware, which communicates with a manager application. The manager application, in turn, communicates with multiple control applications, which control multiple external devices. The control applications acquire the first operating status of each external device and transmit this status to the manager application. Based on these first operating statuses, the manager application determines the second operating status of the production line equipment.
[0034] For example, if the first operating state of each external device is an idle state, then the second operating state of the production line equipment can be determined to be an idle state. Further, the first operating state includes the tasks to be executed and the currently executed tasks of the external devices. If both the currently executed task and the tasks to be executed are data processing tasks, and the external devices have no important tasks to execute, then the first operating state can be determined to be an idle state. Data processing tasks include, for example, data modification. If the currently executed task or the tasks to be executed involve data acquisition or action execution, then the first operating state is a working state. Action execution includes, for example, a robotic arm gripping an item, a safety gate opening, or a camera turning to track a target object.
[0035] Step S202: When the second running state is an idle state, retrieve the task to be executed from the target task queue and retrieve the preconditions of the task to be executed.
[0036] When the second running state is the idle state, the production line equipment is idle, and therefore the application on the production line equipment can be updated. The production line equipment has a target task queue, which stores multiple tasks—application installation or update tasks that cannot be executed because the production line equipment is in a running state. The production line equipment retrieves the task at the head of the target task queue as the task to be executed.
[0037] The production line equipment will perform strategy checks on the tasks to be executed, that is, obtain the preconditions of the tasks to be executed and perform pattern detection, which is to detect whether the production line equipment can execute the tasks to be executed.
[0038] Prerequisites include whether the production line equipment has newly assigned tasks to external equipment and whether it has obtained upgrade approval from production line management personnel. If the production line equipment has not newly assigned tasks to external equipment and has obtained upgrade approval from production line management personnel, then the production line equipment can be considered to have met the prerequisites.
[0039] Step S203: If the production line equipment meets the prerequisites, obtain the data packet corresponding to the task to be executed from the cloud platform.
[0040] When the production line equipment meets the prerequisites, the production line equipment retrieves the data packet corresponding to the task to be executed from the cloud platform. This data packet is an upgrade package or installation package of the application that the task to be executed needs to update or install.
[0041] The production line equipment sends the identifier of the application corresponding to the task to be executed to the cloud platform, and the cloud platform then sends the data packet associated with the identifier to the production line equipment.
[0042] Step S204: Update or install the target application in the production line equipment according to the data package.
[0043] After obtaining the data packet, update or install the target application in the production line equipment using the data packet.
[0044] In this embodiment, the first operating state of each external device connected to the production line equipment is obtained, and a second operating state of the production line equipment is determined based on each first operating state. If the second operating state is an idle state, a task to be executed is obtained from the target task queue, and the preconditions of the task to be executed are also obtained. If the production line equipment meets the preconditions, the data packet corresponding to the task to be executed is obtained from the cloud platform, thereby updating or installing the target application in the production line equipment based on the data packet. In this application, when the production line equipment is idle and the preconditions are met, the target application in the production line equipment can be automatically updated or installed without the need for technicians to set the upgrade time of the production line equipment, thus improving the upgrade flexibility of the application in the production line equipment.
[0045] Reference Figure 4 , Figure 4 This is a flowchart illustrating the production line equipment upgrade method of this application. Figure 2 ,based on Figure 2 In the embodiment shown, prior to step S201, the method further includes: Step S401: Obtain the version information of the target application and send the version information to the cloud platform.
[0046] In this embodiment, the production line equipment periodically queries its own application version information to determine whether an upgrade is needed. For example, the production line equipment obtains the version information of the target application and sends the version information to the cloud platform.
[0047] Reference Figure 5 The cloud platform supports remote deployment and remote operation and maintenance. Remote deployment capabilities are primarily used after production line equipment setup, for application installation, deployment, and resource configuration. Remote operation and maintenance capabilities are used during subsequent maintenance after deployment, allowing for monitoring and display of application status, resource settings, and other information. It also supports operations on application and device resources, such as application installation, network card configuration, and file deletion. Furthermore, the cloud platform supports various task types, including real-time, periodic, and event-driven tasks. By issuing these tasks to devices, management functions such as application management, network resource management, and device resource management are achieved.
[0048] The production line equipment consists of an MQ Client (Message Queuing Client), a Manager App, application management middleware, and the managed applications. The MQ Client primarily communicates with the cloud platform, accepts tasks from the cloud platform, and reports task status. The Manager App mainly manages the overall process, processes cloud tasks, and collects task status notifications to the MQ Client for reporting. The application management middleware provides application-related management capabilities such as application installation, uninstallation, activation, and application version retrieval.
[0049] Users can easily manage devices remotely through the cloud platform interface, which includes three main modules: application management, network resources, and device resources. Each management module implements both monitoring and control functions. The monitoring function can monitor information such as application running status, network latency, and disk usage. The cloud platform's powerful data processing capabilities can perform real-time analysis of this information to provide users with decision support.
[0050] The application management module supports direct downloading and installation of applications from the cloud platform onto production line equipment. Users can select the appropriate application version on the cloud platform, and the system will automatically complete the download and installation process. For applications no longer needed, users can also remotely uninstall them through the cloud platform, enabling flexible resource configuration and optimization. The version information management module records the application version information on the production line equipment and compares it with the upgrade path on the cloud platform. If an outdated software version or security vulnerability is detected on the production line equipment, an update process will be triggered to ensure that the production line equipment always runs the latest and most secure software version. Version information management also supports historical version query and rollback functions, providing users with greater flexibility and security.
[0051] The network and device resource management module periodically collects network status and device resource information through tasks, processes and displays it in real time. It also provides operations such as network card configuration, network card on / off, disk file upload, and file deletion to ensure controllable and secure resource status, providing users with comprehensive resource management capabilities and guaranteeing the safety and stability of the production line.
[0052] Understandably, after receiving the version information, the cloud platform uses the version information management module to determine whether the target application needs to be upgraded. If an update is required, an upgrade task is generated for the target application. The cloud platform then sends the upgrade task to the production line equipment.
[0053] Step S402: Receive the upgrade task of the target application issued by the cloud platform based on the version information, and add the upgrade task as a task to be executed to the target task queue.
[0054] After receiving the upgrade task sent by the cloud platform, the production line equipment cannot perform the upgrade task because it is currently in working mode. Therefore, the upgrade task is added to the target task queue as a task to be executed.
[0055] In this embodiment, the production line equipment obtains the version information of the target application and sends the version information to the cloud platform, thereby receiving the upgrade task issued by the cloud platform based on the version information, and adding the upgrade task to the target task queue, so that the production line equipment can execute the upgrade task when idle.
[0056] In one embodiment, before obtaining the version information of the target application, the production line equipment determines the production line identifier of the production line equipment, thereby establishing a communication connection between the production line equipment and the cloud platform associated with the production line identifier.
[0057] Reference Figure 6 Production line equipment forms the infrastructure, comprising an Operating System (OS), application management middleware, and the Mannager App (management application). Each piece of equipment is installed on a different production line, and all equipment connects to the cloud platform (equipment management platform) online to complete its deployment. (Refer to...) Figure 7 Technicians will establish physical connections between production line equipment based on the network topology input, thus completing the physical connections between the equipment and connecting peripheral devices. Further deployment work will then be carried out on the production line equipment, such as network configuration, software installation, and software configuration.
[0058] Reference Figure 8Network configuration is a crucial step in connecting external devices to the production line equipment. The Control App is the control application. Network interface cards (NICs) can be configured through the cloud platform to ensure stable and secure network access for production line equipment. The cloud platform also periodically performs network health checks; if any network anomalies are detected, it immediately issues an alarm and performs automatic repairs to ensure continuous communication on the production line.
[0059] The cloud platform enables remote software installation and configuration on production line equipment. Software installation, for example... Figure 9 As shown, the software configuration is as follows: Figure 10 As shown, quickly deploying software and the required configurations on production line equipment to meet the specific needs of different production line equipment and ensure that the production line equipment can operate as expected is a key process in the production line deployment phase. After the software is installed and configured, the production line functions can be tested.
[0060] After the production line equipment is deployed, the operation and maintenance (O&M) phase begins. This phase offers a wealth of functionalities, including system resource monitoring, application health management, application version upgrades, and production line peripheral changes. System resource monitoring periodically collects the usage of critical resources such as CPU, memory, and disk on the production line equipment, while application health management periodically collects the running status of applications. Monitoring the equipment's operational status allows for timely detection and handling of application faults, ensuring continuous service provision by the production line applications. System resource monitoring and application health management are detailed below. Figure 11 and 12 As shown Reference Figure 13 Application upgrades are achieved by remotely pushing the latest version of the application, addressing scenarios such as adding new features, performance optimization, and bug fixes. The "Mode" module is for switching operating modes.
[0061] Changes to production lines, such as Figure 14 As shown, changes to the production line involve the remote configuration and management of external devices such as sensors and cameras on the production line equipment. This can also be achieved through a cloud platform using remote technology. In other words, the cloud platform can be used to remotely add, delete, and configure external devices to ensure that the external devices of the production line equipment can stably and efficiently support the operation of the production line.
[0062] The cloud platform receives the production line identifier sent by the production line equipment, determines whether the production line identifier is in the whitelist, and if the production line equipment is in the whitelist, establishes a communication connection between the production line equipment and the cloud platform.
[0063] In this embodiment, a communication connection is established between the production line equipment and the cloud platform, enabling the cloud platform to remotely control the production line equipment to update applications.
[0064] Reference Figure 15 , Figure 15 This is a flowchart illustrating the production line equipment upgrade method of this application. Figure 3 ,based on Figure 4 In the embodiment shown, step S402 includes: Step S1501: Parse the upgrade task to obtain the first task requirement, and determine the task queue that matches the first task requirement as the target task queue.
[0065] In this embodiment, refer to Figure 16 The production line equipment includes a task timing state machine and a task execution state machine. The timing state machine divides the task flow into four stages: waiting to trigger, waiting to execute, processing, and task completion. The waiting stage triggers task reception, meaning the production line equipment receives upgrade tasks sent by the cloud platform. The waiting-to-execute stage involves task parsing and then queuing tasks based on the parsed information. The task execution state machine executes tasks in processing, which are further subdivided into: idle, strategy detection, pattern detection, executing, and completed tasks. Upon task completion, the task execution result is reported.
[0066] The safety of task execution is ensured through strategy and pattern checks in the task processing flow, preventing production line safety issues caused by the production line not meeting the conditions for task execution. Furthermore, it automatically makes full use of idle production line windows, significantly improving production efficiency and reducing manual maintenance costs. The specific details of strategy and pattern checks are explained above and will not be repeated here.
[0067] After receiving an upgrade task, the production line equipment enters the waiting execution phase. The equipment then parses the upgrade task to obtain its requirements, which are defined as the first task requirement. The first task requirement can be, for example, the urgency level of the upgrade task, which can be represented by an urgency level; the higher the urgency level, the greater the urgency. The production line equipment has multiple task queues, each used to add upgrade tasks of different urgency levels. The production line equipment selects the task queue that matches the first task requirement as the target task queue. For example, if the urgency level of the upgrade task is 3, then the task queues that handle urgency levels 3 to 5 will be selected as the task queues that match the first task requirement.
[0068] In addition, the first task requirement can also be the time limit for upgrading the task. For example, if the upgrade task needs to be completed within 2 days, then the queue for processing upgrade tasks within 2 days will be the task queue that matches the first upgrade requirement.
[0069] Step S1502: Determine the queue position of the upgrade task in the target task queue based on the first task requirements of the upgrade task and the second task requirements of the tasks in the target task queue.
[0070] After determining the target task queue, the production line equipment needs to add the upgrade tasks to the target task queue. To do this, the production line equipment determines the queue position of the upgrade task in the target task queue based on the first task requirement of the upgrade task and the second task requirement of the tasks in the target task queue.
[0071] For example, if the first task requirement is an urgency level, then the second task requirement is also an urgency level. The production line equipment then sorts the tasks in the upgrade task and target task queues according to their urgency level from highest to lowest, thus obtaining the upgrade task's sorting number. The position corresponding to the sorting number is the queue position. If the first task requirement is a time limit, then the upgrade task and target task queues are sorted according to their time limit from lowest to highest, thus obtaining the upgrade task's sorting number. The position corresponding to the sorting number is the queue position.
[0072] Step S1503: Add an upgrade task to the queue position in the target task queue as a task to be executed in the target task queue.
[0073] After obtaining the queue position, add the upgrade task to the queue position in the target task queue as a task to be executed in the target task queue.
[0074] In this embodiment, the upgrade task is parsed to obtain the task requirements, and the target task queue is determined based on the task requirements, thereby accurately adding the upgrade task to the target task queue.
[0075] Furthermore, by designing a comprehensive remote equipment deployment and operation management strategy, the software updates and management of smart production line equipment were achieved. This method not only improves the intelligence level and operational efficiency of the production line but also reduces maintenance costs and risks. Simultaneously, it possesses excellent scalability and customizability, enabling it to adapt to changes in different production line environments and equipment requirements.
[0076] Reference Figure 17 , Figure 17 This is a flowchart illustrating the production line equipment upgrade method of this application. Figure 4 ,based on Figures 1 to 15 In any of the embodiments shown, step S402 includes: Step S1701: Determine each currently executing task, and the first task type of each currently executing task is different.
[0077] In this embodiment, the production line equipment can perform multiple tasks when idle. Tasks are queued into different task queues based on their task type to prevent one task from blocking and affecting the execution of other tasks. Therefore, the production line equipment can execute tasks of different types simultaneously. The production line equipment determines each currently executing task, and each currently executing task has a different task type; the task type of the currently executing task is defined as the first task type.
[0078] Furthermore, for periodic tasks, the production line equipment provides a concurrent execution mechanism to ensure that multiple periodic tasks can be executed simultaneously, thereby optimizing task execution efficiency. To this end, the production line equipment detects whether the currently executing task is a periodic task. If all currently executing tasks are periodic, and the task to be executed is also periodic, then the currently executing tasks can be used as the current execution task.
[0079] Step S1702: Based on the first task type of each currently executing task, determine the target task queue in each task queue. The second task type of the tasks arranged in the target task queue is different from each first task type.
[0080] Based on the first task type of each currently executing task, the production line equipment determines the target task queue from each task queue. Specifically, the production line equipment uses the task queue that processes the second task type as the target task queue, meaning that the second task type corresponding to the tasks arranged in the target task queue is different from each of the first task types.
[0081] Step S1703: Extract the task at the head of the target task queue as the task to be executed.
[0082] After determining the target task queue, extract the task at the head of the queue as the task to be executed.
[0083] In this embodiment, by upgrading the application in the production line equipment during idle time, production interruptions caused by production line equipment downtime for maintenance are reduced, thus improving production efficiency. It avoids the need to operate the equipment on-site or in coordination with the production line, reducing the involvement of production line equipment software operators and lowering maintenance costs. In addition, it enables the management of production line equipment, can meet the needs of various complex scenarios of production line equipment, and greatly improves the user experience.
[0084] Based on the content described in the above embodiments, this application also provides a production line equipment, with reference to... Figure 18 , Figure 18 This is a schematic diagram of the program modules of a production line equipment provided in an embodiment of this application. In some embodiments, the production line equipment 1800 includes: The first acquisition module 1810 is used to acquire the first operating status of each external device connected to the production line equipment, and determine the second operating status of the production line equipment based on each first operating status. The second acquisition module 1820 is used to acquire tasks to be executed from the target task queue and acquire the preconditions of the tasks to be executed when the second running state is an idle state. The third acquisition module 1830 is used to acquire the data packet corresponding to the task to be executed from the cloud platform when the production line equipment meets the prerequisites. Update module 1840 is used to update or install target applications in production line equipment based on data packages.
[0085] In some embodiments, the production line equipment 1800 is specifically used for: Obtain the version information of the target application and send the version information to the cloud platform; Receive upgrade tasks for the target application issued by the cloud platform based on version information, and add the upgrade tasks as pending tasks to the target task queue.
[0086] In some embodiments, the production line equipment 1800 is specifically used for: The upgrade task is analyzed to obtain the first task requirement, and the task queue that matches the first task requirement is determined as the target task queue. Determine the queue position of the upgrade task in the target task queue based on the first task requirement of the upgrade task and the second task requirement of the tasks in the target task queue. Add an upgrade task to the queue position in the target task queue as a task to be executed in the target task queue.
[0087] In some embodiments, the production line equipment 1800 is specifically used for: Determine the production line identifier where the production line equipment is located; Based on production line identification, establish a communication connection between production line equipment and the cloud platform.
[0088] In some embodiments, the production line equipment 1800 is specifically used for: Each currently executing task is identified, and the primary task type of each currently executing task is different; Based on the first task type of each currently executing task, a target task queue is determined in each task queue. The second task type of the tasks arranged in the target task queue is different from each of the first task types. Extract the task at the head of the target task queue as the task to be executed.
[0089] In some embodiments, the production line equipment 1800 is specifically used for: If both the currently executing task and the task to be executed in the production line equipment are periodic tasks, then each currently running task will be considered as the currently executing task.
[0090] It should be noted that the specific steps in the production line equipment upgrade method are as described in the above embodiments, and will not be repeated here.
[0091] Furthermore, based on the content described in the above embodiments, this application also provides an electronic device, which includes at least one processor, a communication interface and a memory connected to the processor; wherein the communication interface is used to communicate with other communication devices, and the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory to implement the various steps in the production line equipment upgrade method described in the above embodiments.
[0092] To better understand the embodiments of this application, please refer to... Figure 19 , Figure 19 This is a schematic diagram of the hardware structure of a production line device provided in an embodiment of this application.
[0093] like Figure 19 As shown, the production line device 1900 of this embodiment includes: a processor 1901, a memory 1902, and a communication interface 1904; wherein: Memory 1902 is used to store instructions executed by the computer; Communication interface 1904 is used to communicate with other communication devices; Processor 1901 is configured to execute computer execution instructions stored in memory to implement the various steps in the query optimization method described in the above embodiments.
[0094] Alternatively, the memory 1902 can be either standalone or integrated with the processor 1901.
[0095] When the memory 1902 is set up independently, the device also includes a bus 1903 for connecting the memory 1902, the communication interface 1904, and the processor 1901.
[0096] This application provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements the various steps of the production line equipment upgrade method described in the above embodiments.
[0097] This application provides a computer program product, including a computer program that, when executed by a processor, implements the various steps in the production line equipment upgrade method described in the above embodiments.
[0098] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0099] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0100] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.
[0101] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.
[0102] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0103] The memory may include high-speed memory, and may also include non-volatile memory, such as at least one disk storage device, and may also be a USB flash drive, portable hard drive, read-only memory, disk or optical disc, etc.
[0104] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0105] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for upgrading production line equipment, characterized in that, include: The first operating status of each external device connected to the production line equipment is obtained, and the second operating status of the production line equipment is determined based on each of the first operating statuses. When the second running state is an idle state, retrieve the task to be executed from the target task queue and obtain the preconditions of the task to be executed; If the production line equipment meets the aforementioned prerequisites, the data packet corresponding to the task to be executed is obtained from the cloud platform. Update or install the target application in the production line equipment according to the data packet.
2. The method according to claim 1, characterized in that, Before obtaining the first operating status of each external device connected to the production line equipment, the process also includes: Obtain the version information of the target application and send the version information to the cloud platform; The system receives an upgrade task for the target application issued by the cloud platform based on the version information, and adds the upgrade task as a task to be executed to the target task queue.
3. The method according to claim 2, characterized in that, Adding the upgrade task as a task to be executed to the target task queue includes: The upgrade task is parsed to obtain the first task requirement, and the task queue that matches the first task requirement is determined as the target task queue. Based on the first task requirements of the upgrade task and the second task requirements of the tasks in the target task queue, determine the queue position of the upgrade task in the target task queue; Add the upgrade task to the queue position in the target task queue as a task to be executed in the target task queue.
4. The method according to claim 2, characterized in that, Before obtaining the version information of the target application, the process also includes: Determine the production line identifier where the equipment is located; Based on the production line identifier, a communication connection is established between the production line equipment and the cloud platform.
5. The method according to claim 1, characterized in that, The step of retrieving tasks to be executed from the target task queue includes: Each currently executing task is identified, and the first task type of each of the currently executing tasks is different; Based on the first task type of each currently executed task, a target task queue is determined in each task queue, wherein the second task type corresponding to the tasks arranged in the target task queue is different from each of the first task types; Extract the task at the head of the target task queue as the task to be executed.
6. The method according to claim 5, characterized in that, The determination of each currently executing task includes: If both the currently executing task and the task to be executed in the production line equipment are periodic tasks, then each currently running task will be considered as the currently executing task.
7. A production line equipment, characterized in that, include: The first acquisition module is used to acquire the first operating status of each external device connected to the production line equipment, and determine the second operating status of the production line equipment based on each of the first operating statuses. The second acquisition module is used to acquire a task to be executed from the target task queue and acquire the preconditions of the task to be executed when the second running state is an idle state. The third acquisition module is used to acquire the data packet corresponding to the task to be executed from the cloud platform when the production line equipment meets the preconditions. The update module is used to update or install the target application in the production line equipment according to the data packet.
8. A production line apparatus, characterized in that, include: A processor, and a memory and a communication interface communicatively connected to the processor; The communication interface is used to communicate with other communication devices; The memory is used to store computer-executed instructions; The processor is used to execute computer execution instructions stored in the memory to implement the production line equipment upgrade method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the production line equipment upgrade method as described in any one of claims 1-6.
10. A computer program product, characterized in that, The system includes a computer program that, when executed by a processor, implements the production line equipment upgrade method as described in any one of claims 1-6.