CN111917902A - Method, apparatus and computer readable storage medium for detecting a failure of a pound room device - Google Patents

Method, apparatus and computer readable storage medium for detecting a failure of a pound room device Download PDF

Info

Publication number
CN111917902A
CN111917902A CN202010798390.7A CN202010798390A CN111917902A CN 111917902 A CN111917902 A CN 111917902A CN 202010798390 A CN202010798390 A CN 202010798390A CN 111917902 A CN111917902 A CN 111917902A
Authority
CN
China
Prior art keywords
address
pound room
pound
equipment
room equipment
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.)
Granted
Application number
CN202010798390.7A
Other languages
Chinese (zh)
Other versions
CN111917902B (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.)
Trucker Beijing Technology Co ltd
Original Assignee
Trucker Beijing Technology 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 Trucker Beijing Technology Co ltd filed Critical Trucker Beijing Technology Co ltd
Priority to CN202010798390.7A priority Critical patent/CN111917902B/en
Publication of CN111917902A publication Critical patent/CN111917902A/en
Application granted granted Critical
Publication of CN111917902B publication Critical patent/CN111917902B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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 embodiment of the application provides a method, equipment and a computer readable storage medium for detecting the failure of pound room equipment, wherein the method comprises the steps of obtaining the registered address of the pound room equipment and detecting whether the address of the pound room equipment is available; under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment; and carrying out fault detection on the pound room equipment according to the available address of the pound room equipment. According to the method, the automatic detection of the pound room equipment is realized by obtaining the address and carrying out self-detection.

Description

Method, apparatus and computer readable storage medium for detecting a failure of a pound room device
Technical Field
The present application relates to the field of intelligent detection, and in particular, to a method, apparatus, and computer-readable storage medium for detecting a pound room equipment failure.
Background
At present, pound room equipment is gradually applied to the logistics industry, and the fault detection technology of pound room equipment is developed, but most of pound room equipment depends on manual investigation, and a large amount of human resources are wasted.
In order to solve the problem of manual inspection of general equipment, an intelligent detection technology is developed, the intelligent detection technology detects core functions and components of the equipment and obtains a self-detection result through an equipment self-detection function, and a manager is reminded to pay attention to equipment with faults and perform subsequent processing according to the equipment self-detection result. However, there is no suitable automated inspection method for the pound chamber equipment in the prior art.
Therefore, how to realize the automatic detection of the pound room equipment becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a method, equipment and a computer readable storage medium for detecting the failure of pound room equipment, which realizes the automatic detection of pound room equipment.
In a first aspect, the present application provides a method of detecting a failure in a pound room device, comprising:
acquiring a registered address of the pound room equipment and detecting whether the address of the pound room equipment is available; under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment; and carrying out fault detection on the pound room equipment according to the available address of the pound room equipment.
Therefore, the method of the embodiment of the application realizes automatic detection of the pound room equipment by acquiring and detecting the address of the pound room equipment, determining the available address of the pound room equipment and carrying out fault detection on the pound room equipment.
With reference to the first aspect, in one possible implementation, the obtaining an address registered by a pound room device and detecting whether the pound room device address is available includes: requesting a pound room management service according to the local area network address network of the pound room equipment, acquiring an Internet Protocol (IP) address registered by the pound room equipment, determining the connection state of the pound room equipment according to the IP address and a port number, and judging whether the pound room equipment address is available according to the connection state.
Therefore, according to the embodiment of the application, the pound room management service is requested by ensuring that the pound room equipment and the end display equipment are in the same local area network, the IP address registered by the pound room equipment in the server is obtained, the pound room equipment service is requested through the registered IP address, the fixed port number and the user name of the pound room equipment, and after the connection state of the pound room equipment is determined, whether the pound room equipment address is available or not can be judged.
With reference to the first aspect, in one possible implementation manner, the acquiring end displays addresses of all devices in the same network segment of the device and determines an available address of the pound room device, including: sending a message broadcast to the same local area network device of the end display device; acquiring the information of the same local area network device of the end display device; traversing the same local area network equipment information and comparing the same local area network equipment information with the local area network address of the pound room equipment; and determining the available address of the pound room equipment according to the comparison result.
Therefore, in the embodiment of the application, through the implementation manner, when the address of the equipment in the weighing room is unavailable, the available address of the equipment in the weighing room is obtained, and in the subsequent fault detection of the equipment in the weighing room, the self-test of the equipment in the weighing room is performed according to the obtained available address.
With reference to the first aspect, in one possible implementation manner, the performing self-test on the pound room device according to the pound room device address includes: performing network state detection of the pound room equipment according to the pound room equipment address; performing printer status detection of the pound room device according to the pound room device address; performing storage state detection of the pound room equipment according to the pound room equipment address; and executing project file detection of the pound room equipment according to the pound room equipment address.
Therefore, according to the embodiment of the application, through the self-checking of different aspects of the pound room equipment according to the obtained pound room equipment address, the faults of the pound room equipment can be comprehensively detected, the specific link with the possible faults is found and fed back to the end display, and the links with the problems are maintained by the equipment maintainer.
With reference to the first aspect, in one possible implementation manner, the performing network status detection of the pound room device according to the pound room device address includes: and requesting a local area network response and a public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to a response result.
Therefore, in the embodiment of the application, through the implementation manner, the network response test is performed on the pound room equipment according to the address of the pound room equipment, and whether the network state of the pound room equipment is abnormal or not can be judged according to the response result.
With reference to the first aspect, in one possible implementation, the performing of the printer status detection of the current detection device according to the pound room device address includes: and executing a detection command according to the address of the pound room equipment, and executing a printer detection command through equipment information returned by the pound room equipment to acquire the state of the printer.
Therefore, by executing the printer status detection instruction, it is possible to detect whether the printer has failed.
With reference to the first aspect, in one possible implementation, the storage state includes a storage amount and a remaining storage space, and the performing the storage state detection of the current detection device according to the pound room device address includes: and acquiring a storage path of the pound room equipment according to the pound room equipment address, and judging the storage capacity and the residual storage space of the current memory according to the storage path of the pound room equipment.
Therefore, in the embodiment of the application, through the implementation manner, the storage path of the pound room device is obtained, so that the current storage amount and the remaining storage space of the memory can be judged.
With reference to the first aspect, in one possible implementation, performing engineering document detection of the current detection device according to the pound room device address includes: and entering a specified directory of the pound room equipment according to the pound room equipment address and the detection command, checking whether engineering files exist, and detecting the integrity of the engineering files when the engineering files exist.
Thus, embodiments of the present application, through the above-described implementation, are able to detect the presence and integrity of engineering documents by accessing a designated directory of the pound room equipment.
In various possible embodiments combined with the first aspect, the method further includes: and feeding back the detection result to the end display equipment.
Therefore, the detection result is fed back to the end display device, so that the equipment maintainer can clearly know the fault part and make correct judgment.
In a second aspect, the present application provides an apparatus for detecting a failure in a pound chamber apparatus, comprising:
the system comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring the registered address of the pound room equipment and detecting whether the address of the pound room equipment is available; under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment;
and the self-checking unit is used for carrying out fault detection on the pound room equipment according to the available address of the pound room equipment.
With reference to the second aspect, in a possible implementation manner, the obtaining unit is specifically configured to obtain an address registered by a pound room device and detect whether the pound room device address is available, and includes: requesting a pound room management service according to the local area network address network of the pound room equipment, acquiring an Internet Protocol (IP) address registered by the pound room equipment, determining the connection state of the pound room equipment according to the IP address and a port number, and judging whether the pound room equipment address is available according to the connection state.
With reference to the second aspect, in a possible implementation manner, the obtaining unit is further configured to display addresses of all devices in a same network segment of the devices and determine available addresses of the pound room device, and includes: sending a message broadcast to the same local area network device of the end display device; acquiring the information of the same local area network device of the end display device; traversing the same local area network equipment information and comparing the same local area network equipment information with the local area network address of the pound room equipment; and determining the available address of the pound room equipment according to the comparison result.
With reference to the second aspect, in a possible implementation manner, the self-test unit is configured to perform a self-test on the pound room equipment according to the pound room equipment address, and includes: performing network state detection of the pound room equipment according to the pound room equipment address; executing printer state detection of the current detection equipment according to the pound room equipment address; executing storage state detection of the current detection equipment according to the pound room equipment address; and executing engineering file detection of the current detection equipment according to the pound room equipment address.
With reference to the second aspect, in a possible implementation manner, the self-checking unit is specifically configured to perform the network status detection of the pound room device according to the pound room device address, and includes: and requesting a local area network response and a public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to a response result.
With reference to the second aspect, in one possible implementation, the performing of the printer status detection of the current detection device according to the pound room device address includes: and executing a detection command according to the address of the pound room equipment, and executing a printer detection command through equipment information returned by the pound room equipment to acquire the state of the printer.
With reference to the second aspect, in a possible implementation manner, the self-test unit is specifically configured to, where the storage status includes a storage amount and a remaining storage space, and the performing the storage status test of the current test device according to the pound room device address includes: and acquiring a storage path of the pound room equipment according to the pound room equipment address, and judging the storage capacity and the residual storage space of the current memory according to the storage path of the pound room equipment.
With reference to the second aspect, in a possible implementation manner, the self-checking unit is specifically configured to perform engineering document detection of the current detection device according to the pound room device address, and includes: and entering a specified directory of the pound room equipment according to the pound room equipment address and the detection command, checking whether engineering files exist, and detecting the integrity of the engineering files when the engineering files exist.
In various possible embodiments combined with the second aspect, the apparatus for detecting a failure of the pound chamber apparatus further comprises: and feeding back the detection result to the end display equipment.
Thus, the second aspect and its various embodiments, by implementing the method of the first aspect and its various embodiments, can enable pound room equipment failure detection.
In a third aspect, the present application provides an electronic device, comprising:
a processor, a memory and a bus, the processor being connected to the memory through the bus, the memory storing computer readable instructions for implementing the method for detecting a failure of a pound chamber device according to the first aspect and any of all embodiments of the first aspect when the computer readable instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a computer, implements the method for detecting failure of a pound chamber device according to the first aspect and any one of all the embodiments of the first aspect.
In a fifth aspect, the present application provides a computer program product, wherein code in the computer program product, when executed by a computer, implements the method for detecting a failure in a pound chamber device according to the first aspect and any one of all the embodiments of the first aspect.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
FIG. 1 is a diagram illustrating a scenario for detecting a failure of a pound room device according to an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating the interaction of a method for detecting a failure in a pound room device according to an embodiment of the present application;
FIG. 3 is a block diagram of the internal components of the apparatus for detecting a failure in a pound room apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 a part of the embodiments of the present application, and not all the embodiments. The components of embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
It should be understood that the embodiments of the present application can be applied to various scenarios of detecting a failure of a pound room device, fig. 1 is a diagram illustrating a scenario of detecting a failure of a pound room device according to the embodiments of the present application, and a scenario of a method for detecting a failure of a pound room device, as illustrated in fig. 1, includes an intelligent pound room device 110, an end display device 120, a local area network 130, and a server 140.
In the embodiment of the application, the weighing chamber equipment can be a weighing chamber for full-automatic operation, and can be called as intelligent weighing chamber equipment, and can also be a weighing chamber for semi-automatic operation, and the weighing chamber can be interconnected with user equipment and other weighing chamber equipment through a network, such as local area network interconnection. The embodiment of the application takes intelligent pound room equipment as an example, and describes the technical scheme.
In the embodiment of the present application, the end display device is an intelligent device capable of sending a diagnosis instruction and receiving feedback, and is a general term related to user equipment, and may also be referred to as a terminal display device, a user terminal display device, and the like, and may communicate with one or more core networks through a radio access network, and the end display device may be a mobile terminal, such as a mobile phone (or referred to as a "cellular" phone), a portable computer, a tablet computer, and the like.
The local area network in the embodiment of the application is a local area network in which the end display equipment and the pound room equipment are placed in the same communication network environment, and has the characteristics of high transmission speed, stable performance and the like.
In the embodiment of the application, the server is a device with a function of realizing the method for detecting the failure of the equipment in the pound room, and the server can also be a background server, a processor and the like.
In the existing scheme, the pound room equipment is gradually applied to the logistics industry, the fault detection technology of the pound room equipment is developed, but most of the pound room equipment depends on manual investigation, and a large amount of human resources are wasted. In order to solve the problem of manual inspection of general equipment, an intelligent detection technology is developed, the intelligent detection technology detects core functions and components of the equipment and obtains a self-detection result through an equipment self-detection function, and a manager is reminded to pay attention to equipment with faults and perform subsequent processing according to the equipment self-detection result. However, there is no suitable automated inspection method for the pound chamber equipment in the prior art. Therefore, how to realize the automatic detection of the pound room equipment becomes a problem to be solved urgently.
In view of the foregoing, embodiments of the present application provide a method, device, and computer-readable storage medium for detecting a failure of a pound room device, the method including obtaining a registered address of the pound room device and detecting whether the pound room device address is available; under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment; and fault detection is carried out on the pound room equipment according to the available address of the pound room equipment, automatic detection is realized, and the problems are solved.
The following describes in detail the method for detecting a failure of a pound room device according to an embodiment of the present application with reference to a specific example of fig. 2, and is applied to the scenario shown in fig. 1, as shown in fig. 2, including:
and 210, sending a diagnosis instruction.
Specifically, when the pound room equipment and the end display equipment are abnormally connected or cannot normally work due to other faults, the end display equipment sends a diagnosis instruction to the server. For example, after the user diagnoses the point-and-click machine in the application of the end display device, the end display device sends a diagnosis instruction to the server. After receiving the diagnosis instruction, the server automatically completes the whole detection process of the method for detecting the failure of the equipment in the weighing room and feeds the detection process back to the end display equipment, which can be specifically referred to as the following step 220 and step 260.
And 220, judging whether the pound room device and the end display device are in the same local area network or not.
It should be understood that, in operation, the method for detecting the failure of the pound room device in the present application should be in the same lan as the end display device, and the server determines whether the pound room device and the end display device are in the same lan according to a Wireless Fidelity (Wi-Fi) name.
Specifically, in an implementation manner, the server obtains a network connection state of the current end display device through an Application Programming Interface (API) of the end display device system, obtains a Wi-Fi name when a Wi-Fi of the end display device is turned on, determines that the pound room device and the end display device are in the same local area network according to the Wi-Fi name, and confirms that the network can be accessed through a network request public network response after the end display device is turned on and connected to the Wi-Fi.
Alternatively, in another implementation manner, the server obtains the network connection state of the front-end display device through an API of the front-end display device system, when the Wi-Fi of the front-end display device is not started, the front-end display device is started and connected with the Wi-Fi system first, then obtains the Wi-Fi name, determines that the pound room device and the front-end display device are in the same local area network according to the Wi-Fi name, and confirms that the network can be accessed through a network request public network response after the front-end display device is started and connected with the Wi-Fi system.
And 230, acquiring the registered address of the pound room equipment and detecting whether the address of the pound room equipment is available.
It should be understood that, according to the local area network address network request of the pound room equipment, the pound room management service is obtained, the Internet Protocol (IP) address registered by the pound room equipment is obtained, the connection state of the pound room equipment is determined through the IP address and the port number, and whether the pound room equipment address is available or not is judged according to the connection state.
Specifically, it is ensured that the pound room device and the end display device are in the same local area network, the server requests a pound room management service according to a Media Access Control (MAC) address of the current pound room device, acquires an IP address registered by the pound room device in the server, requests the pound room device service through the registered IP address, a fixed port number and a user name of the pound room device, connects the pound room device by implementing a Secure Shell (SSH) protocol, and determines a connection state of the pound room device.
Specifically, under the condition that the address of the pound room equipment is available, the pound room equipment is successfully connected, and the following 250 steps are directly executed for self-checking; in the event that the pound room device address is not available, the pound room device is not successfully connected and the following 240 steps are performed to find an available address. Then, step 250 is performed for self-test.
And 240, acquiring all device addresses in the same network segment of the end display device and determining the available addresses of the pound room devices.
It should be understood that the server sends a message broadcast to the same local area network device as the end display device; acquiring the information of the same local area network device of the end display device; traversing the same local area network equipment information and comparing the same local area network equipment information with the local area network address of the pound room equipment; and determining the available address of the pound room equipment according to the comparison result.
Specifically, when the address of the weighing room equipment is unavailable, the available address of the weighing room equipment is obtained, and the weighing room equipment is subjected to self-inspection according to the obtained available address in the subsequent fault detection of the weighing room equipment.
Specifically, when the SSH connection fails and the address of the pound room device is unavailable, the application program of the end display device needs to open the network authority first, and the IP of the current end display device is obtained through a General Packet Radio Service (GPRS) and a network interface search method (network interface).
Optionally, when the SSH connection fails and the address of the pound room device is unavailable, the application program of the end display device first needs to open the network authority, and the IP of the current end display device is obtained by a Wi-Fi management method (WifiManager).
Specifically, socket communication is performed on each IP address in the same network segment as the current-end display device IP address, and message broadcasting is sent to each IP address in a local area network and a port number corresponding to the IP address. All the devices in the same local area network reply data when receiving the message broadcast, and the server also acquires the IP address of the device and the MAC address corresponding to the IP address while receiving the device data.
Specifically, the server reads an Address Resolution Protocol (ARP) file, and selects an available IP Address using a network diagnostic tool, for example: circularly executing ping commands on all IP addresses in the same network segment, selecting available IP addresses according to the result of the ping commands, judging that the IP addresses are available if the diagnosis result is successful in connection, and otherwise, judging that the IP addresses are unavailable; and finding all IP addresses and MAC addresses which can be connected in the same local area network, traversing all the MAC addresses, finding the MAC address which is the same as the MAC address of the pound room equipment currently detected, and determining the IP address corresponding to the MAC address as the IP address of the current pound room equipment.
Optionally, the server reads an Address Resolution Protocol (Address Resolution Protocol) file, uses a User Datagram Protocol (UDP) single broadcast, fixes an IP for sending the broadcast to 255.255.255.255, sends a broadcast message to all connected devices through a route, determines device information according to a received reply message, finds all connectable IP addresses and MAC addresses in the same local area network, traverses all MAC addresses, finds an MAC Address the same as an MAC Address of the current pound room device being detected, and finds an IP Address corresponding to the MAC Address, which is an IP Address of the current pound room device.
And 250, carrying out fault detection on the pound room equipment according to the available address of the pound room equipment.
It should be understood that the self-testing of the pound room equipment according to the pound room equipment address comprises: performing network state detection of the pound room equipment according to the pound room equipment address; performing printer status detection of the pound room device according to the pound room device address; performing storage state detection of the pound room equipment according to the pound room equipment address; and executing project file detection of the pound room equipment according to the pound room equipment address.
Therefore, the pound room equipment is subjected to self-checking in different aspects according to the obtained pound room equipment address, so that the fault of the pound room equipment can be comprehensively detected, a specific link with possible fault is found and fed back to the end display, and equipment maintenance personnel can maintain the link with the problem.
It should be appreciated that performing network status detection of the pound room device based on the pound room device address includes: and requesting a local area network response and a public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to a response result.
Therefore, the network response test is carried out on the pound room equipment through the address of the pound room equipment, and whether the network state of the pound room equipment is abnormal or not can be judged according to the response result.
Specifically, a network request is carried out through an IP address and a fixed port number of the equipment which are searched in the local area network, whether the pound room equipment is successfully connected or not is verified according to a network request response result (if the pound room equipment is not successfully connected, the detection is judged to be failed), if the pound room equipment is successfully connected, a ping command is executed to connect the public network server according to the IP address of the current pound room equipment, the network state of the pound room equipment is judged according to a diagnosis result, if the pound room equipment is successfully connected, the network state is judged to be normal, and if the pound room equipment is not successfully connected.
It should be appreciated that performing the printer status check of the current test device based on the pound room device address includes: and executing a detection command according to the address of the pound room equipment, and executing a printer detection command through equipment information returned by the pound room equipment to acquire the state of the printer.
Therefore, by executing the printer status detection instruction, it is possible to detect whether the printer has failed.
Specifically, a command to detect an application container engine (Docker) for stable program execution is executed according to the pound room device IP address, for example: checking the operating condition of the Docker container through a Docker Ps-a command, verifying whether the Docker operates normally, and if the Docker operates normally, executing a command for detecting the printer, for example, executing an lpstat-t command to acquire all states of the printer.
It should be understood that the storage state includes storage and remaining storage, and the performing of the storage state detection of the current detection device according to the pound room device address includes: and acquiring a storage path of the pound room equipment according to the pound room equipment address, and judging the storage capacity and the residual storage space of the current memory according to the storage path of the pound room equipment.
Therefore, by acquiring the storage path of the pound room device, the storage capacity of the current memory and the remaining storage space can be judged.
Specifically, the memory of the pound room equipment system is fixed, some data can be generated in the running process of the pound room equipment and stored in the memory, when the memory is insufficient, the pound room equipment cannot work normally, the storage path of the pound room equipment is obtained, and the current memory size and the residual storage space size are obtained through I/O read-write flow.
It should be appreciated that performing project file inspection of the current inspection equipment based on the pound room equipment address includes: and entering a specified directory of the pound room equipment according to the pound room equipment address and the detection command, checking whether engineering files exist, and detecting the integrity of the engineering files when the engineering files exist.
Thus, by entering the designated directory of the pound room equipment, the presence and integrity of the project file can be detected.
Specifically, executing a Docker related command to enter a device specified directory to check whether a device working file exists, acquiring the size of the file through an I/O read-write stream, and detecting whether the engineering file is complete.
260, feeding back the detection result to the end display device
It should be understood that the server feeds back the detection result to the end display device when executing any one of the above steps.
Therefore, the detection result is fed back to the end display device, so that the equipment maintainer can clearly know the fault part and make correct judgment.
It should be noted that the examples of fig. 1 and 2 are only for assisting the skilled person in understanding the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific scenarios illustrated. It will be apparent to those skilled in the art that various equivalent modifications or variations can be made in the examples given in fig. 1 and 2, and such modifications or variations also fall within the scope of the embodiments of the present application.
It should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The method for detecting the failure of the pound room device according to the embodiment of the present application is described above, the internal units of the device for detecting the failure of the pound room device (hereinafter referred to as a detection device) according to the embodiment of the present application are described in detail below with reference to fig. 3, and the computer device according to the embodiment of the present application is described in detail with reference to fig. 4.
As shown in fig. 3, fig. 3 is a schematic block diagram of an apparatus 300 for detecting a failure of a pound room device according to an embodiment of the present application, and specifically includes an obtaining unit 310 and a self-checking unit 320.
Specifically, the obtaining unit is used for obtaining a registered address of the pound room equipment and detecting whether the address of the pound room equipment is available; under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment; and the self-checking unit is used for carrying out fault detection on the pound room equipment according to the available address of the pound room equipment.
The detection equipment is used for achieving the functions of acquiring and detecting whether the address of the pound room equipment is available, determining the available address of the pound room equipment and detecting the fault of the pound room equipment according to the available address of the pound room equipment.
In a possible implementation manner, the obtaining unit is specifically configured to: and requesting a pound room management service according to the local area network address network of the pound room equipment, acquiring an Internet Protocol (IP) address registered by the pound room equipment, detecting a connection state by the IP address and a port number, and judging whether the pound room equipment address is available.
In another possible implementation, the obtaining unit is further specifically configured to: sending a message broadcast to the same local area network device if it is determined that the IP address of the pound room device is unavailable; acquiring the same local area network equipment information; and traversing the same local area network equipment information and comparing the same local area network equipment information with the current detection equipment.
In another possible implementation, the self-test unit is specifically configured to: detecting the network state of the current detection equipment; detecting the printer state of the current detection equipment; detecting the storage state of the current detection equipment; and detecting the project file of the current detection equipment.
In another possible embodiment, the device for detecting a failure of the pound chamber device is further configured to: the method for detecting the failure of the pound room equipment is automatically executed, and the result of each step is fed back to the end display equipment.
It should be understood that the detection device shown in fig. 3 can implement various processes involving the detection device in the method embodiments of fig. 1 and 2. The operation and/or function of each module in the detection device is respectively to implement the corresponding flow in the method embodiments in fig. 1 and fig. 2. Reference may be made specifically to the description of the above method embodiments, and a detailed description is appropriately omitted herein to avoid redundancy.
The present application further provides an electronic device, comprising: the system comprises a processor, a memory and a bus, wherein the processor is connected with the memory through the bus, and the memory stores computer readable instructions which are used for realizing the method for detecting the failure of the weighing chamber equipment in any one of the above embodiments when being executed by the processor.
Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present application, as shown in fig. 4. Electronic device 400 may include a processor 410, a memory 420, and at least one bus 430. Wherein the bus is used for realizing direct connection communication of the components. The processor in the embodiment of the present application may be an integrated circuit chip having signal processing capability. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like. The memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the computer device can execute the steps of the method embodiments of fig. 1 and 2.
It will be appreciated that the configuration shown in fig. 4 is merely illustrative and that the computer device may also include more or fewer components than shown in fig. 4 or have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the method of any one of the above method embodiments is implemented, in particular, refer to the description in the above method embodiments, and in order to avoid repetition, the detailed description is appropriately omitted here.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of detecting a failure in a pound chamber device, comprising:
acquiring a registered address of a pound room device and detecting whether the address of the pound room device is available;
under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment;
and carrying out fault detection on the pound room equipment according to the available address of the pound room equipment.
2. The method of claim 1, wherein said obtaining an address registered with a pound room device and detecting whether the address of the pound room device is available comprises:
requesting a pound room management service according to the local area network address network of the pound room equipment, acquiring an Internet Protocol (IP) address registered by the pound room equipment, determining the connection state of the pound room equipment according to the IP address and the port number, and judging whether the address of the pound room equipment is available according to the connection state.
3. The method of claim 1, wherein said obtaining end displays all device addresses in the same network segment of devices and determines available addresses of said pound room device, comprising:
sending a message broadcast to the same local area network device of the end display device;
acquiring the information of the same local area network device of the end display device;
traversing the same local area network equipment information and comparing the same local area network equipment information with the local area network address of the pound room equipment;
and determining the available address of the pound room equipment according to the comparison result.
4. The method of claim 1, wherein said detecting a failure of said pound chamber device based on an available address of said pound chamber device comprises:
performing network state detection of the pound room device according to the address of the pound room device;
performing printer status detection of the pound room device according to the address of the pound room device;
performing storage state detection of the pound room device according to the address of the pound room device; and the combination of (a) and (b),
and executing engineering file detection of the pound room equipment according to the address of the pound room equipment.
5. The method of claim 4, wherein said performing a network status detection of the pound room device based on the address of the pound room device comprises:
and requesting a local area network response and a public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to a response result.
6. The method of claim 4, wherein said performing a printer status check of the pound chamber device based on the address of the pound chamber device comprises:
and executing a detection command according to the address of the pound room equipment, and executing a printer detection command through equipment information returned by the pound room equipment to acquire the state of the printer.
7. The method of claim 4, wherein said performing a storage status check of the pound chamber device based on the address of the pound chamber device comprises:
and obtaining a storage path of the pound room equipment according to the address of the pound room equipment, and judging the storage capacity and the residual storage space of the current memory according to the storage path of the pound room equipment.
8. The method of claim 4, wherein said performing a project file check of the pound room device based on the address of the pound room device comprises:
and entering a specified directory of the pound room equipment according to the address of the pound room equipment and the detection command, checking whether engineering files exist, and detecting the integrity of the engineering files when the engineering files exist.
9. The method according to any one of claims 1-8, further comprising:
and feeding back the fault detection result to the end display equipment.
10. An apparatus for detecting a failure in a pound chamber apparatus, comprising:
the system comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring the registered address of the pound room equipment and detecting whether the address of the pound room equipment is available; under the condition that the address of the pound room equipment is unavailable, acquiring all equipment addresses in the same network segment of end display equipment and determining the available address of the pound room equipment;
and the self-checking unit is used for carrying out fault detection on the pound room equipment according to the available address of the pound room equipment.
CN202010798390.7A 2020-08-10 2020-08-10 Method, apparatus and computer readable storage medium for detecting failure of pound room equipment Active CN111917902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010798390.7A CN111917902B (en) 2020-08-10 2020-08-10 Method, apparatus and computer readable storage medium for detecting failure of pound room equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010798390.7A CN111917902B (en) 2020-08-10 2020-08-10 Method, apparatus and computer readable storage medium for detecting failure of pound room equipment

Publications (2)

Publication Number Publication Date
CN111917902A true CN111917902A (en) 2020-11-10
CN111917902B CN111917902B (en) 2023-05-09

Family

ID=73283707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010798390.7A Active CN111917902B (en) 2020-08-10 2020-08-10 Method, apparatus and computer readable storage medium for detecting failure of pound room equipment

Country Status (1)

Country Link
CN (1) CN111917902B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070070962A1 (en) * 2005-09-29 2007-03-29 Sony Ericsson Mobile Communications Ab Communication networks for establishing communication sessions between a registered internet protocol (IP) device and one or more subscribing IP devices and methods and computer program products for operating the same
US20090083439A1 (en) * 2007-09-20 2009-03-26 Konica Minolta Business Technologies, Inc. Data transmission device, data transmission system and address registration method
CN202364251U (en) * 2011-12-16 2012-08-01 南京国之鑫科技有限公司 Intelligent home remote control system based on Internet of Things
CN105939403A (en) * 2016-03-31 2016-09-14 杭州迪普科技有限公司 Address conflict detection method and device
CN106131235A (en) * 2016-06-28 2016-11-16 上海斐讯数据通信技术有限公司 A kind of IP address configuration method
US20170094348A1 (en) * 2015-09-24 2017-03-30 Electronics And Telecommunications Research Institute Ip address acquisition method for controlling standby mode of set-top box, and set-top box and power management server performing the method
CN107506809A (en) * 2017-08-23 2017-12-22 卡车司机(北京)科技有限公司 A kind of intelligent pound room automatization operation system, method and intelligent pound room interconnected method
CN107835264A (en) * 2016-09-09 2018-03-23 鸿富锦精密电子(天津)有限公司 IP address automatic distribution system, method and client
CN108521437A (en) * 2018-02-28 2018-09-11 深圳市大迈科技有限公司 A kind of searching method and search system of lan device
CN111343630A (en) * 2020-03-07 2020-06-26 山东浪潮通软信息科技有限公司 Network connection state detection method, computer device, and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070070962A1 (en) * 2005-09-29 2007-03-29 Sony Ericsson Mobile Communications Ab Communication networks for establishing communication sessions between a registered internet protocol (IP) device and one or more subscribing IP devices and methods and computer program products for operating the same
US20090083439A1 (en) * 2007-09-20 2009-03-26 Konica Minolta Business Technologies, Inc. Data transmission device, data transmission system and address registration method
CN202364251U (en) * 2011-12-16 2012-08-01 南京国之鑫科技有限公司 Intelligent home remote control system based on Internet of Things
US20170094348A1 (en) * 2015-09-24 2017-03-30 Electronics And Telecommunications Research Institute Ip address acquisition method for controlling standby mode of set-top box, and set-top box and power management server performing the method
CN105939403A (en) * 2016-03-31 2016-09-14 杭州迪普科技有限公司 Address conflict detection method and device
CN106131235A (en) * 2016-06-28 2016-11-16 上海斐讯数据通信技术有限公司 A kind of IP address configuration method
CN107835264A (en) * 2016-09-09 2018-03-23 鸿富锦精密电子(天津)有限公司 IP address automatic distribution system, method and client
CN107506809A (en) * 2017-08-23 2017-12-22 卡车司机(北京)科技有限公司 A kind of intelligent pound room automatization operation system, method and intelligent pound room interconnected method
CN108521437A (en) * 2018-02-28 2018-09-11 深圳市大迈科技有限公司 A kind of searching method and search system of lan device
CN111343630A (en) * 2020-03-07 2020-06-26 山东浪潮通软信息科技有限公司 Network connection state detection method, computer device, and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CONSTANTIN VIOREL MARIAN;等: "Proposed method of automatic IP addresses calculation and allocation" *
赵亮,韩东: "一种对IP地址分配的监测管理方法和实现" *

Also Published As

Publication number Publication date
CN111917902B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
JP4805912B2 (en) Anomaly management method for multi-agent systems
CN110719199B (en) Network automatic testing and fault positioning method and device
CN109684155B (en) Monitoring configuration method, device, equipment and readable storage medium
CN114884838B (en) Monitoring method and server of Kubernetes component
CN111030873A (en) Fault diagnosis method and device
CN113259183B (en) Network relay control method and device, electronic equipment and storage medium
CN110674028A (en) Fault injection method and device and business service system thereof
CN114363151A (en) Fault detection method and device, electronic equipment and storage medium
CN113364852B (en) File transmission method and device and server
CN111917902B (en) Method, apparatus and computer readable storage medium for detecting failure of pound room equipment
CN110474821B (en) Node fault detection method and device
CN108304402A (en) Exterior chain availability monitor method and monitoring device
CN106844073B (en) Method for diagnosing application, diagnosis client and system
CN107959595B (en) Method, device and system for anomaly detection
CN113596195B (en) Public IP address management method, device, main node and storage medium
CN112104513B (en) Visual software load method, device, equipment and storage medium
CN110233759B (en) Load abnormity warning method and related device
CN107919980B (en) Evaluation method and device for clustered system
JP2012129664A (en) Network communication state monitoring device
CN107317694B (en) Link detection method and terminal for standby machines in cluster
CN114143088B (en) Network fault diagnosis method, device, equipment and computer readable storage medium
CN116743990B (en) Video stream testing method and video stream testing processing method of embedded equipment
CN116938781A (en) Interface testing method and device, electronic equipment and storage medium
CN113835942A (en) Server fault diagnosis method and device
CN117424834A (en) Vehicle-mounted communication diagnosis method, device and system based on SOA and DDS

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