CN116155957B - Operation method and device of sorting machine control program and electronic equipment - Google Patents

Operation method and device of sorting machine control program and electronic equipment Download PDF

Info

Publication number
CN116155957B
CN116155957B CN202310417196.3A CN202310417196A CN116155957B CN 116155957 B CN116155957 B CN 116155957B CN 202310417196 A CN202310417196 A CN 202310417196A CN 116155957 B CN116155957 B CN 116155957B
Authority
CN
China
Prior art keywords
server
sorter
service module
sorting machine
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310417196.3A
Other languages
Chinese (zh)
Other versions
CN116155957A (en
Inventor
王瑞骥
龚昱
余君山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaxin Jiaxing Intelligent Equipment Co ltd
Original Assignee
Huaxin Jiaxing Intelligent Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaxin Jiaxing Intelligent Equipment Co ltd filed Critical Huaxin Jiaxing Intelligent Equipment Co ltd
Priority to CN202310417196.3A priority Critical patent/CN116155957B/en
Publication of CN116155957A publication Critical patent/CN116155957A/en
Application granted granted Critical
Publication of CN116155957B publication Critical patent/CN116155957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides an operation method, a device and electronic equipment of a sorter control program, wherein the method is applied to a double-machine framework formed by a first server and a second server, and comprises the following steps: the first server and the second server provide unified IP addresses through the switching layer to provide services for the upper computer and the sorting machine UI module; splitting a control program of the sorter into a plurality of independently operated sorter service modules, and respectively installing each sorter service module in two servers; mirror image disk synchronous partitions are arranged in both servers; setting two servers to respectively acquire a plurality of IP addresses to be tested in real time; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; the sorter service module in the non-operational state is started at the local server. The method can realize that any service module switches the control server when operation faults occur or updating and upgrading occur, so that the integral operation of a control program of the sorting machine is not influenced, and the sorting efficiency of the sorting machine is improved.

Description

Operation method and device of sorting machine control program and electronic equipment
Technical Field
The application relates to the field of sorters, in particular to an operation method and device of a sorter control program and electronic equipment.
Background
The semiconductor sorting machine refers to a special conveying device designed for completing sorting and conveying of semiconductor products. The upper computer comprises a communication interface module, a control module, a data management module, a log module, a permission module and other modules; the functions of intelligent control, data management, log recording, authority management and the like of the sorting machine can be realized respectively.
The control system in the host computer of current sorter realizes an overall service, closes when a module in the host computer, can lead to whole control system's closing, has caused the whole shut down of sorter, uses inconveniently, influences the sorting efficiency of sorter.
Meanwhile, when each functional module in the upper computer is upgraded or patched, the whole control system is required to be closed for operation, and as the related functional modules are more and the production line in the actual production process cannot be suspended at any time and randomly, the control system of the upper computer is inconvenient to upgrade, and the sorting efficiency of the sorting machine is affected.
Disclosure of Invention
An object of the embodiment of the application is to provide an operation method, an operation device and electronic equipment of a control program of a sorting machine, which are used for solving the problems existing in the prior art and improving the sorting efficiency of the sorting machine.
In a first aspect, a method for operating a sorter control program is provided, where the method is applied to a dual-server architecture formed by a first server and a second server interconnected by a local area network, and includes:
setting a transfer layer so that the first server and the second server provide unified IP addresses through the transfer layer to provide services for an upper computer and a sorting machine UI module;
splitting a control program of the sorter into a plurality of independently operated sorter service modules, and respectively installing each sorter service module in the first server and the second server; the sorter service modules of different functions bind different IP addresses; binding the same IP address in the first server and the second server by the sorter service module with the same function;
mirror image disk synchronization partitions are arranged in the first server and the second server and used for synchronizing the data operated by the sorting machine service modules; the first server and the second server are opposite-end servers;
setting the first server and the second server to respectively acquire a plurality of IP addresses to be detected in real time, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorting machine service modules which are not operated in a local server; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; and when determining that any sorting machine service module corresponding to the IP address to be detected is in an unoperated state in the opposite-end server, starting the sorting machine service module corresponding to the unoperated state in the local server.
The same function of the plurality of independently operated sorter service modules can only be operated in one of the first server and the second server at the same time.
The first server and the second server respectively display the running states of the service modules of the sorters to a user through the UI modules of the sorters;
and the sorter UI module receives an exit instruction triggered by a user to a target service module so as to stop the local server from operating the target service module, wherein the target service module is any sorter service module which operates on the local server and needs to be updated or updated.
The sorting machine UI module or the upper computer sends a starting instruction of the target service module through the switching layer; the switching layer sends the starting instruction to the first server or the second server based on the hardware address of the first server and the hardware address of the second server;
and the server receiving the starting instruction acquires the running state of the target service module in the opposite-end server, and further determines whether to start the target service module in the local server.
The method for acquiring the running state of the target service module in the opposite-end server comprises the following steps:
periodically sending a PING command to the opposite-end server according to the IP address of the target service module in the starting instruction, and determining the running state of the target service module in the opposite-end server according to the feedback data of the PING command sent by the IP address;
and when feedback data for sending out the PING command according to the IP address is not received, determining that the target service module does not operate in the opposite-end server.
Determining whether to launch the target service module in a local server includes:
and when the target service module is determined not to run in the opposite-end server, starting the running of the target service module in the local server.
In a second aspect, there is provided an apparatus for operating a sorter control program, the apparatus may include:
the first setting unit is used for setting a transfer layer so that the first server and the second server provide unified IP addresses for providing services for the upper computer and the sorting machine UI module through the transfer layer;
the splitting unit is used for splitting a control program of the sorter into a plurality of independently-operated sorter service modules and respectively installing the sorter service modules in the first server and the second server;
a binding unit, configured to bind the sorter service modules with different functions to different IP addresses; binding the same IP address in the first server and the second server by the sorter service module with the same function;
the second setting unit is used for setting mirror image disk synchronous partitions in the first server and the second server so as to synchronize the data operated by the service modules of the sorting machines; the first server and the second server are opposite-end servers;
the acquisition unit is used for respectively acquiring a plurality of IP addresses to be detected in real time by the first server and the second server, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorter service modules which are not operated in a local server;
the determining unit is used for determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; and when determining that any sorting machine service module corresponding to the IP address to be detected is in an unoperated state in the opposite-end server, starting the sorting machine service module corresponding to the unoperated state in the local server.
In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory are in communication with each other via the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of the above first aspects when executing a program stored on a memory.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any of the first aspects.
The application provides an operation method, a device and electronic equipment of a sorter control program, wherein the method is applied to a double-machine framework formed by a first server and a second server which are interconnected through a local area network, and comprises the following steps: setting a transfer layer so that the first server and the second server provide unified IP addresses to provide services for the upper computer and the sorting machine UI module through the transfer layer; splitting a control program of the sorter into a plurality of independently operated sorter service modules, and respectively installing each sorter service module in a first server and a second server; the sorter service modules with different functions bind different IP addresses, and the sorter service modules with the same functions bind the same IP addresses in the first server and the second server; mirror image disk synchronous partitions are arranged in the first server and the second server and used for synchronizing the data operated by the service modules of the sorters; the first server and the second server are opposite-end servers; setting a first server and a second server to respectively acquire a plurality of IP addresses to be detected in real time, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorting machine service modules which are not operated in a local server; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; when the sorter service module corresponding to any IP address to be tested is determined to be in an unoperated state in the opposite-end server, the sorter service module corresponding to the unoperated state is started in the local server. The method can realize that any sorting machine service module switches the control server when operation faults occur or updating and upgrading occur, so that the integral operation of a sorting machine control program is not influenced, and the sorting efficiency of the sorting machine is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a system architecture diagram of an operation method of a control program of a sorter according to an embodiment of the present application;
fig. 2 is a flowchart of an operation method of a sorter control program according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an operation device of a control program of a sorting machine according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
The method for running the sorter control program provided in the embodiment of the present application may be applied to a system architecture shown in fig. 1, where, as shown in fig. 1, the system architecture may include: the system comprises an upper computer, a server component, a sorter UI module and a sorter.
The server component is respectively in communication connection with the upper computer and the sorter UI module, and the sorter is respectively in communication connection with the server component and the sorter UI module.
Sorting machines are used for sorting and transporting semiconductor products.
The sorter UI module displays the running state of the sorter control program to the user, and the server component acquires a running state change instruction triggered by the user through the sorter UI module.
The upper computer is used for acquiring control instructions of the sorting machine of the user, and the control instructions are sent to the sorting machine through the server component.
The server component is used as a communication bridge between the upper computer and the sorting machine, so that the sorting machine works according to a control instruction sent by the upper computer; the upper computer can also obtain the working condition of the sorting machine through the server.
The server component may include a first server and a second server, each of which is provided with a respective IP address; mirror image disk synchronous partitions are arranged between the first server and the second server, so that data of a sorting machine control program running between the two servers can be stored respectively; the continuity of data can be ensured, and the operation of the sorting machine is further ensured.
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are for illustration and explanation only, and are not intended to limit the present application, and embodiments and features of embodiments of the present application may be combined with each other without conflict.
Fig. 2 is a flow chart of an operation method of a control program of a sorting machine according to an embodiment of the present application. As shown in fig. 2, the operation method is applied to a dual-computer architecture formed by a first server and a second server interconnected by a local area network, and the method may include:
in step S210, a forwarding layer is set, so that the first server and the second server provide a unified IP address to provide services for the upper computer and the sorter UI module through the forwarding layer.
Specifically, in configuring a dual-machine system architecture, a switching layer is provided.
The transit layer provides the unified IP addresses of the first server and the second server.
The upper computer and the sorter UI module are respectively connected with the server component through unified IP addresses.
That is, the first server and the second server in the server component have respective IP addresses, and the first server and the second server provide services to the outside as unified virtual IP addresses.
Step S220, the control program of the sorting machine is split into a plurality of sorting machine service modules which are independently operated, and the sorting machine service modules are respectively installed in the first server and the second server.
The sorter service modules of different functions bind different IP addresses.
The sorter service module of the same function binds the same IP address in the first server and the second server.
The same function of the plurality of independently operated sorter service modules can only be operated in one of the first server and the second server at the same time.
For example: the control program of the splitting and sorting machine is as follows: the system comprises a communication interface module, a control module, a data management module, a log module and a permission module.
The communication interface module, the control module, the data management module, the log module and the permission module are respectively installed in the first server and the second server.
The communication interface module, the control module, the data management module, the log module and the permission module are sorting machine service modules with different functions, and the sorting machine service modules are respectively bound with different IP addresses.
The IP addresses of the communication interface module, the control module, the data management module, the log module and the authority module in the first server and the second server are the same; for example: the communication interface module is the same IP address in the first server and the second server.
When the communication interface module, the control module, the data management module, the log module and the permission module are operated, the same service module can not be operated in the first server and the second server at the same time.
Step S230, mirror image disk synchronization partitions are arranged in the first server and the second server and used for synchronizing the data operated by the service modules of the sorting machines; the first server and the second server are opposite end servers.
Specifically, a mirror disk synchronization partition is set in the first server.
And setting a mirror image disk synchronous partition in the second server.
This way, the data run by the sorter service modules in the servers can be synchronized.
And setting a mirror image disk synchronous partition between the first server and the second server.
This way, the data run by the sorter service modules between the servers can be synchronized.
Step S240, a first server and a second server are set to respectively acquire a plurality of IP addresses to be detected in real time, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorter service modules which are not operated in a local server; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; when the sorter service module corresponding to any IP address to be tested is determined to be in an unoperated state in the opposite-end server, the sorter service module corresponding to the unoperated state is started in the local server.
For example: the first server is not provided with a log module and a control module, and the second server is not provided with a data management module.
At the moment, the first server respectively acquires the running states of the log module and the control module in the second server in real time; the second server acquires the running state of the data management module in the first server in real time.
The first server acquires the log module at a certain moment and changes the running state into the non-running state in the second server, and the first server determines the running log module.
The first server acquires that the control module is in an operating state in the second server at a certain moment, and the first server determines that the control module does not need to be operated.
The second server acquires the data management module at a certain moment, the running state of the data management module in the first server is changed into the non-running state, and the second server determines to run the data management module.
In some embodiments, the method may further comprise:
the first server and the second server respectively display the running states of the sorting machine service modules to a user through the sorting machine UI modules;
and the sorter UI module receives an exit instruction triggered by a user to the target service module so as to stop the local server from running the target service module.
The target service module may be any sorter service module that runs on a local server and that needs to be upgraded or updated.
Specifically, the first server displays a sorter service module running in the first server to a user through a sorter UI module; the second server displays a sorter service module running in the second server to a user through the sorter UI module;
and receiving an exit instruction to the target module triggered by the user. The target module is any sorter service module operating in the first server or the second server.
The method can avoid repeatedly exiting the functional module which is not operated in the local server as a target module.
The sorting machine UI module or the upper computer sends a starting instruction of the target service module through the switching layer;
the switching layer sends a starting instruction to the first server or the second server based on the hardware address of the first server and the hardware address of the second server;
and the server receiving the starting instruction acquires the running state of the target service module in the opposite-end server, and further determines whether to start the target service module in the local server.
Periodically sending a PING command to the opposite-end server according to the IP address of the target service module in the starting instruction, and determining the running state of the target service module in the opposite-end server according to the feedback data of the PING command sent by the IP address;
and when feedback data for sending out the PING command according to the IP address is not received, determining that the target service module does not operate in the opposite-end server.
And when receiving feedback data of the PING command sent according to the IP address, determining that the target service module runs in the opposite-end server.
Determining whether to launch the target service module in the local server may include:
and when the target service module is determined not to run in the opposite-end server, starting the running of the target service module in the local server.
When the target service module is determined to run in the opposite-end server, the running of the target service module in the local server is not required to be started.
Specifically, any one of the sorting machine service modules can be selected according to actual needs, operations such as updating or replacement and/or deletion of partial functional service modification are performed, the corresponding sorting machine service module is transferred to another server to operate, the operation of the whole control program of the sorting machine is not affected, and the sorting efficiency of the sorting machine is further improved.
In some embodiments, the first server used for controlling the system to operate exists as a main server, the second server exists as a standby server, and data is synchronously exchanged between the main server and the standby server so as to realize dual-machine backup of the data.
The data transmission between the main server and the standby server is as follows: the method is combined and executed by a main server responsible for one and a standby server responsible for storing backup; this way, the data can be kept synchronized.
When any server between the main server and the standby server has faults such as load, abnormal operation or power failure, the main server and the standby server respectively set respective IP addresses, so that the server for controlling the system operation can be rapidly switched.
The data between the main server and the standby server are synchronously exchanged, and when the servers for controlling the system operation are switched, the data for the system operation are also synchronized to the server for controlling the system operation at present; the mode can ensure the normal operation of the system.
The application provides an operation method, a device and electronic equipment of a sorter control program, wherein the method is applied to a double-machine framework formed by a first server and a second server which are interconnected through a local area network, and comprises the following steps: setting a transfer layer so that the first server and the second server provide unified IP addresses to provide services for the upper computer and the sorting machine UI module through the transfer layer; splitting a control program of the sorter into a plurality of independently operated sorter service modules, and respectively installing each sorter service module in a first server and a second server; the sorter service modules with different functions bind different IP addresses, and the sorter service modules with the same functions bind the same IP addresses in the first server and the second server; mirror image disk synchronous partitions are arranged in the first server and the second server and used for synchronizing the data operated by the service modules of the sorters; the first server and the second server are opposite-end servers; setting a first server and a second server to respectively acquire a plurality of IP addresses to be detected in real time, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorting machine service modules which are not operated in a local server; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; when the sorter service module corresponding to any IP address to be tested is determined to be in an unoperated state in the opposite-end server, the sorter service module corresponding to the unoperated state is started in the local server. The method can realize that any sorting machine service module switches the control server when operation faults occur or updating and upgrading occur, so that the integral operation of a sorting machine control program is not influenced, and the sorting efficiency of the sorting machine is further improved.
Corresponding to the method, the embodiment of the application also provides an operation device of the sorting machine control program, as shown in fig. 3, the device comprises:
a first setting unit 310, configured to set a transit layer, so that the first server and the second server provide a unified IP address to provide services for the upper computer and the sorter UI module through the transit layer;
a splitting unit 320, configured to split a control program of the sorter into a plurality of sorter service modules that operate independently, and install each sorter service module in the first server and the second server respectively;
a binding unit 330 for binding the sorter service modules of different functions to different IP addresses; the sorter service module with the same function binds the same IP address in the first server and the second server;
a second setting unit 340, configured to set mirror image disk synchronization partitions in the first server and the second server, so as to synchronize data running on the service modules of the sorters; the first server and the second server are opposite-end servers;
an obtaining unit 350, configured to obtain, in real time, a plurality of IP addresses to be tested, where the IP addresses to be tested are IP addresses bound by a plurality of sorter service modules that are not running on the local server, respectively;
a determining unit 360, configured to determine, in real time, an operation state of the corresponding sorter service module in the peer server based on the IP address to be tested; when the sorter service module corresponding to any IP address to be tested is determined to be in an unoperated state in the opposite-end server, the sorter service module corresponding to the unoperated state is started in the local server.
The functions of each functional unit of the operation device of the sorting machine control program provided in the foregoing embodiments of the present application may be implemented through the foregoing method steps, so that the specific working process and beneficial effects of each unit in the operation device of the sorting machine control program are provided in the embodiments of the present application, and are not repeated herein.
The embodiment of the present application further provides an electronic device, as shown in fig. 4, including a processor 410, a communication interface 420, a memory 430, and a communication bus 440, where the processor 410, the communication interface 420, and the memory 430 complete communication with each other through the communication bus 440.
A memory 430 for storing a computer program;
the processor 410 is configured to execute the program stored in the memory 430, and implement the following steps:
setting a transfer layer so that the first server and the second server provide unified IP addresses to provide services for the upper computer and the sorting machine UI module through the transfer layer;
splitting a control program of the sorter into a plurality of independently operated sorter service modules, and respectively installing each sorter service module in a first server and a second server; the sorting machine service modules with different functions bind different IP addresses; the sorter service module with the same function binds the same IP address in the first server and the second server;
mirror image disk synchronous partitions are arranged in the first server and the second server and used for synchronizing the data operated by the service modules of the sorters; the first server and the second server are opposite-end servers;
setting a first server and a second server to respectively acquire a plurality of IP addresses to be detected in real time, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorting machine service modules which are not operated in a local server; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; when the sorter service module corresponding to any IP address to be tested is determined to be in an unoperated state in the opposite-end server, the sorter service module corresponding to the unoperated state is started in the local server.
The communication bus mentioned above may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Since the implementation manner and the beneficial effects of the solution to the problem of each device of the electronic apparatus in the foregoing embodiment may be implemented by referring to each step in the embodiment shown in fig. 2, the specific working process and the beneficial effects of the electronic apparatus provided in the embodiment of the present application are not repeated herein.
In yet another embodiment provided herein, a computer readable storage medium is provided, where instructions are stored, when the computer readable storage medium runs on a computer, to cause the computer to execute a control method of the upper computer based on the sorting machine according to any one of the above embodiments.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform a control method of the upper computer of the sorter-based machine of any of the above embodiments.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted to embrace the preferred embodiments and all such variations and modifications as fall within the scope of the embodiments herein.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments in the present application fall within the scope of the claims and the equivalents thereof in the embodiments of the present application, such modifications and variations are also intended to be included in the embodiments of the present application.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.

Claims (9)

1. The operation method of the sorting machine control program is characterized in that the operation method is applied to a double-machine framework formed by a first server and a second server which are interconnected through a local area network, and comprises the following steps:
setting a transfer layer so that the first server and the second server provide unified IP addresses through the transfer layer to provide services for an upper computer and a sorting machine UI module;
splitting a control program of the sorter into a plurality of independently operated sorter service modules, and respectively installing each sorter service module in the first server and the second server; the sorter service modules of different functions bind different IP addresses; binding the same IP address in the first server and the second server by the sorter service module with the same function;
mirror image disk synchronization partitions are arranged in the first server and the second server and used for synchronizing the data operated by the sorting machine service modules; the first server and the second server are opposite-end servers;
setting the first server and the second server to respectively acquire a plurality of IP addresses to be detected in real time, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorting machine service modules which are not operated in a local server; determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; and when determining that any sorting machine service module corresponding to the IP address to be detected is in an unoperated state in the opposite-end server, starting the sorting machine service module corresponding to the unoperated state in the local server.
2. The method as recited in claim 1, further comprising:
the same function of the plurality of independently operated sorter service modules can only be operated in one of the first server and the second server at the same time.
3. The method as recited in claim 2, further comprising:
the first server and the second server respectively display the running states of the service modules of the sorters to a user through the UI modules of the sorters;
and the sorter UI module receives an exit instruction triggered by a user to a target service module so as to stop the local server from operating the target service module, wherein the target service module is any sorter service module which operates on the local server and needs to be updated or updated.
4. A method as claimed in claim 3, comprising:
the sorting machine UI module or the upper computer sends a starting instruction of the target service module through the switching layer; the switching layer sends the starting instruction to the first server or the second server based on the hardware address of the first server and the hardware address of the second server;
and the server receiving the starting instruction acquires the running state of the target service module in the opposite-end server, and further determines whether to start the target service module in the local server.
5. The method of claim 4, wherein obtaining the operational status of the target service module in the peer server comprises:
periodically sending a PING command to the opposite-end server according to the IP address of the target service module in the starting instruction, and determining the running state of the target service module in the opposite-end server according to the feedback data of the PING command sent by the IP address;
and when feedback data for sending out the PING command according to the IP address is not received, determining that the target service module does not operate in the opposite-end server.
6. The method of claim 5, wherein determining whether to launch the target service module in a local server comprises:
and when the target service module is determined not to run in the opposite-end server, starting the running of the target service module in the local server.
7. An apparatus for operating a sorter control program, the apparatus comprising:
the first setting unit is used for setting a transfer layer so that the first server and the second server provide unified IP addresses for providing services for the upper computer and the sorting machine UI module through the transfer layer;
the splitting unit is used for splitting a control program of the sorter into a plurality of independently-operated sorter service modules and respectively installing the sorter service modules in the first server and the second server;
a binding unit, configured to bind the sorter service modules with different functions to different IP addresses; binding the same IP address in the first server and the second server by the sorter service module with the same function;
the second setting unit is used for setting mirror image disk synchronous partitions in the first server and the second server so as to synchronize the data operated by the service modules of the sorting machines; the first server and the second server are opposite-end servers;
the acquisition unit is used for respectively acquiring a plurality of IP addresses to be detected in real time by the first server and the second server, wherein the IP addresses to be detected are the IP addresses bound by a plurality of sorter service modules which are not operated in a local server;
the determining unit is used for determining the running state of the corresponding sorting machine service module in the opposite-end server in real time based on the IP address to be detected; and when determining that any sorting machine service module corresponding to the IP address to be detected is in an unoperated state in the opposite-end server, starting the sorting machine service module corresponding to the unoperated state in the local server.
8. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored on a memory.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN202310417196.3A 2023-04-19 2023-04-19 Operation method and device of sorting machine control program and electronic equipment Active CN116155957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310417196.3A CN116155957B (en) 2023-04-19 2023-04-19 Operation method and device of sorting machine control program and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310417196.3A CN116155957B (en) 2023-04-19 2023-04-19 Operation method and device of sorting machine control program and electronic equipment

Publications (2)

Publication Number Publication Date
CN116155957A CN116155957A (en) 2023-05-23
CN116155957B true CN116155957B (en) 2023-07-14

Family

ID=86358537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310417196.3A Active CN116155957B (en) 2023-04-19 2023-04-19 Operation method and device of sorting machine control program and electronic equipment

Country Status (1)

Country Link
CN (1) CN116155957B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7263537B1 (en) * 2004-02-09 2007-08-28 Unisys Corporation System and method for creating multiple QUIESCE database copies at a single server
CN106201527A (en) * 2016-07-15 2016-12-07 北京首都在线科技股份有限公司 A kind of Application Container framework of logic-based subregion

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205604A1 (en) * 2009-02-09 2010-08-12 Resilience Corporation Systems and methods for efficiently running multiple instances of multiple applications
CN104468221B (en) * 2014-12-12 2018-09-18 北京国双科技有限公司 Server failure hot change-over method, device and system
CN107016312A (en) * 2017-03-31 2017-08-04 贝分科技(杭州)有限公司 A kind of dcs for halved belt sorting line
CN107919994B (en) * 2017-12-13 2021-06-08 南京熊猫电子股份有限公司 Method and server for realizing hot standby of network service dual-computer
CN108880866A (en) * 2018-05-31 2018-11-23 郑州云海信息技术有限公司 A kind of network service system
US11912509B2 (en) * 2019-02-08 2024-02-27 Advanced Technology & Research Corp. Modular package sorting system
DE102019117954A1 (en) * 2019-07-03 2021-01-07 Beckhoff Automation Gmbh Runtime server for the simultaneous execution of several runtime systems of an automation system
CN112286503A (en) * 2020-10-28 2021-01-29 平安科技(深圳)有限公司 Multi-registration center micro-service unified management method, device, equipment and medium
CN113055539B (en) * 2021-03-09 2022-07-05 南京莱斯电子设备有限公司 Communication system based on VoIP dual-redundancy exchange server
US20220404811A1 (en) * 2021-06-16 2022-12-22 Fisher-Rosemount Systems, Inc. Systems and Methods for Dynamically Maintained Redundancy and Load Balancing in Software Defined Control Systems for Industrial Process Plants
CN113760311A (en) * 2021-08-25 2021-12-07 山东浪潮通软信息科技有限公司 Micro-service deployment method, device and medium
CN115202839A (en) * 2022-06-29 2022-10-18 国电南瑞科技股份有限公司 Task scheduling method and system based on container

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7263537B1 (en) * 2004-02-09 2007-08-28 Unisys Corporation System and method for creating multiple QUIESCE database copies at a single server
CN106201527A (en) * 2016-07-15 2016-12-07 北京首都在线科技股份有限公司 A kind of Application Container framework of logic-based subregion

Also Published As

Publication number Publication date
CN116155957A (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN107526659B (en) Method and apparatus for failover
US9960963B2 (en) Dynamic client fail-over during a rolling patch installation based on temporal server conditions
CN102708018B (en) Method and system for exception handling, proxy equipment and control device
CN108200124B (en) High-availability application program architecture and construction method
CN101968744B (en) Intelligent resilient framework (IRF) system-based method and system for upgrading box type equipment
US8880690B1 (en) Network change management
CN110474792B (en) Network configuration method, equipment and system
JP2004062535A (en) Method of dealing with failure for multiprocessor system, multiprocessor system and node
CN107070731B (en) Master-slave arbitration method and system
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
US11080404B2 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
EP3522449B1 (en) Service state transition method and device
CN108319492B (en) Method, device and system for resetting physical machine
CN113656147B (en) Cluster deployment method, device, equipment and storage medium
CN106911597B (en) Cross-board forwarding method and device
CN106406980B (en) A kind of dispositions method and device of virtual machine
CN104503861A (en) Abnormality handling method and system, agency device and control device
CN106470121B (en) Upgrade method, device and the VSU system of virtual switch unit VSU system
US11860776B2 (en) Concurrent memory recycling for collection of servers
CN107950013B (en) Backup communication scheme in computer network
US20180189120A1 (en) Method for the communication between software components in a motor vehicle
CN116155957B (en) Operation method and device of sorting machine control program and electronic equipment
CN112596371A (en) Control card switching method and device, electronic equipment and storage medium
CN111045616A (en) Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium
US20190306012A1 (en) System and method for automatically repairing a network element

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant