CN111917902B - Method, apparatus and computer readable storage medium for detecting failure of pound room equipment - Google Patents

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

Info

Publication number
CN111917902B
CN111917902B CN202010798390.7A CN202010798390A CN111917902B CN 111917902 B CN111917902 B CN 111917902B CN 202010798390 A CN202010798390 A CN 202010798390A CN 111917902 B CN111917902 B CN 111917902B
Authority
CN
China
Prior art keywords
pound room
address
equipment
pound
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.)
Active
Application number
CN202010798390.7A
Other languages
Chinese (zh)
Other versions
CN111917902A (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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiments of the present application provide a method, apparatus and computer readable storage medium for detecting a failure of a pound room device, the method comprising obtaining an address registered by the 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 the end display equipment and determining the available address of the pound room equipment; and detecting faults of the pound room equipment according to the available addresses of the pound room equipment. According to the method, the address is obtained and self-checking is carried out, so that automatic detection of the pound room equipment is achieved.

Description

Method, apparatus and computer readable storage medium for detecting failure of pound room equipment
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 failure of a pound room apparatus.
Background
Currently, the pound room equipment is gradually applied to the logistics industry, and the fault detection technology of the pound room equipment is developed, but the pound room equipment is mostly dependent on manual investigation, so that a great deal of human resources are wasted.
In order to solve the problem of manual inspection of common equipment, an intelligent detection technology is developed, wherein the intelligent detection technology detects the core functions and components of the equipment through the self-detection function of the equipment, obtains a self-detection result, and reminds a manager to pay attention to and process the equipment with faults subsequently according to the self-detection result of the equipment. However, no suitable automated detection method for pound room equipment currently exists in the prior art.
Therefore, how to implement automatic detection of pound room equipment is a challenge.
Disclosure of Invention
The application provides a method, device and computer readable storage medium for detecting failure of a pound room device, which realize automatic detection of the pound room device.
In a first aspect, the present application provides a method of detecting a failure of a pound room apparatus comprising:
acquiring a registered address of a pound room device and detecting whether the pound room device address is available; under the condition that the pound room equipment address is not available, acquiring all equipment addresses in the same network segment of the end display equipment and determining the available address of the pound room equipment; and detecting faults of the pound room equipment according to the available address of the pound room equipment.
Thus, 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 performing fault detection on the pound room equipment.
With reference to the first aspect, in one possible implementation manner, the acquiring an address registered by the pound room device and detecting whether the pound room device address is available includes: 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, determining the connection state of the pound room equipment through the IP address and the port number, and judging whether the pound room equipment address is available according to the connection state.
Therefore, in the embodiment of the application, by ensuring that the pound room device and the end display device are in the same local area network, the pound room management service is requested, the IP address registered by the pound room device at the server is obtained, the pound room device service is requested through the IP address registered by the pound room device, the fixed port number and the user name, and after the connection state of the pound room device is determined, whether the pound room device address is available or not can be judged.
With reference to the first aspect, in one possible implementation manner, the acquiring all device addresses in the same network segment of the display device at the end and determining the available address of the pound room device includes: transmitting a message broadcast to the same local area network device as the end display device; acquiring the same local area network equipment information of the terminal display equipment; traversing the same local area network equipment information to compare 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.
Thus, in the embodiment of the application, in the case that the address of the pound room equipment is not available, the available address of the pound room equipment is obtained, and the pound room equipment is self-checked according to the obtained available address in the subsequent failure detection of the pound room equipment.
With reference to the first aspect, in a possible implementation manner, the performing self-checking 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 engineering 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 failure of the pound room equipment can be comprehensively detected, a specific link which possibly has the failure is found, the specific link is fed back to the end display, and equipment maintenance personnel maintain the link with the problem.
With reference to the first aspect, in a possible implementation manner, the performing network state detection of the pound room device according to the pound room device address includes: and requesting local area network response and public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to the response result.
Therefore, according to the embodiment, 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 can be judged according to the response result.
With reference to the first aspect, in one possible implementation manner, the performing 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, executing a printer detection command through equipment information returned by the pound room equipment, and acquiring a printer state.
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 manner, the storing state includes an amount of memory and a remaining memory space, and the performing the detecting of the storing state of the current detecting device according to the address of the pound room device includes: and acquiring a storage path of the pound room equipment according to the pound room equipment address, and judging the storage amount and the residual storage space of the current memory according to the storage path of the pound room equipment.
Therefore, according to the embodiment of the present application, by acquiring the storage path of the pound room device, the storage amount and the remaining storage space of the current memory can be determined.
With reference to the first aspect, in one possible implementation manner, the performing, according to the lbs equipment address, the project file detection of the current detection equipment includes: and according to the address of the pound room equipment and the detection command, entering a designated directory of the pound room equipment, checking whether engineering files exist or not, and detecting the integrity of the engineering files when the engineering files exist.
Thus, by the above embodiments, the embodiments of the present application can detect the presence and integrity of an engineering file by accessing a specified directory of the lbs equipment.
With reference to the various possible embodiments of the first aspect, the method further includes: and feeding back the detection result to the end display device.
Therefore, by feeding back the detection result to the end display device, the equipment maintainer can clearly know the part with faults and make a correct judgment.
In a second aspect, the present application provides an apparatus for detecting a failure of a pound room apparatus, comprising:
the system comprises an acquisition unit, a detection unit and a control unit, wherein the acquisition unit is used for acquiring an address registered by the pound room equipment and detecting whether the address of the pound room equipment is available; under the condition that the pound room equipment address is not available, acquiring all equipment addresses in the same network segment of the end display equipment and determining the available address of the pound room equipment;
and the self-checking unit is used for detecting faults of the pound room equipment according to the available address of the pound room equipment.
With reference to the second aspect, in one possible implementation manner, the acquiring unit is specifically configured to acquire an address registered by the pound room device and detect whether the pound room device address is available, and includes: 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, determining the connection state of the pound room equipment through the IP address and the port number, and judging whether the pound room equipment address is available according to the connection state.
With reference to the second aspect, in one possible implementation manner, the acquiring unit is further configured to acquire all device addresses in the same network segment of the display device at the acquiring end and determine an available address of the pound room device, and includes: transmitting a message broadcast to the same local area network device as the end display device; acquiring the same local area network equipment information of the terminal display equipment; traversing the same local area network equipment information to compare 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 one possible implementation manner, the self-checking unit is configured to perform self-checking on the pound room device according to the pound room device address, and includes: performing network state detection of the pound room equipment according to the pound room equipment address; executing the printer state detection of the current detection equipment according to the pound room equipment address; executing the storage state detection of the current detection equipment according to the pound room equipment address; and executing the engineering file detection of the current detection equipment according to the pound room equipment address.
With reference to the second aspect, in one possible implementation manner, the self-checking unit is specifically configured to perform network status detection of the pound room device according to the pound room device address, and includes: and requesting local area network response and public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to the response result.
With reference to the second aspect, in one possible implementation manner, the performing 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, executing a printer detection command through equipment information returned by the pound room equipment, and acquiring a printer state.
With reference to the second aspect, in one possible implementation manner, the self-checking unit is specifically configured to perform storage state detection of the current detection device according to the lbs. room device address, where the storage state includes a storage amount and a remaining storage space, and the self-checking unit includes: and acquiring a storage path of the pound room equipment according to the pound room equipment address, and judging the storage amount 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 one possible implementation manner, the self-checking unit is specifically configured to perform, according to the address of the pound room device, an engineering file detection of the current detection device, including: and according to the address of the pound room equipment and the detection command, entering a designated directory of the pound room equipment, checking whether engineering files exist or not, and detecting the integrity of the engineering files when the engineering files exist.
With reference to the various possible embodiments of the second aspect, the apparatus for detecting a failure of a pound room apparatus further includes: and feeding back the detection result to the end display device.
Accordingly, the second aspect and various embodiments thereof enable pound room equipment fault detection by implementing the methods of the first aspect and various embodiments thereof.
In a third aspect, the present application provides an electronic device, including:
a processor, a memory and a bus, the processor being connected to the memory by the bus, the memory storing computer readable instructions that, when executed by the processor, implement the method of detecting a failure of a pound room device of the first aspect and any of the embodiments of the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a computer implements the method of detecting a failure of a pound room device of the first aspect and any of the embodiments of the first aspect.
In a fifth aspect, the present application provides a computer program product, the code in which, when executed by a computer, implements the method of detecting a failure of a pound room device of the first aspect and any of the embodiments of the first aspect.
In order to make the above 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 failure scenario of a detection lbs chamber device according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method of detecting a failure of a pound room device in accordance with an embodiment of the present application;
FIG. 3 is a block diagram of the internal units of the apparatus for detecting a failure of a lbs chamber apparatus shown in 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
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, 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 apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application based on the embodiments 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 appreciated that the embodiments of the present application may be applied to various scenarios of lbs-chamber device fault detection, and fig. 1 is a schematic diagram of a lbs-chamber device fault detection scenario shown in the embodiments of the present application, where a scenario of a method for detecting a lbs-chamber device fault shown in fig. 1 includes a smart lbs-chamber device 110, an end display device 120, a local area network 130, and a server 140.
In this embodiment of the present application, the pound room device may be a weighing pound room with full-automatic operation, which may be referred to as an intelligent pound room device, or may be a weighing pound room with semi-automatic operation, where both of them may be interconnected with a user device and other pound room devices through a network, such as a local area network. In the embodiment of the application, intelligent pound room equipment is taken as an example, and a technical scheme is described.
In this embodiment of the present application, the end display device is an intelligent device capable of sending diagnostic instructions and receiving feedback, which is a generic term related to user equipment, and may also be referred to as a terminal display device, a user terminal display device, etc., and may communicate with one or more core networks via a radio access network, where 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, etc.
In the embodiment of the application, the local area network is an area network in which the terminal 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.
The server in the embodiment of the application is a device with a function of realizing a method for detecting the failure of the pound room device, 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, and the fault detection technology of the pound room equipment is developed, but the pound room equipment is mostly dependent on manual investigation, so that a large amount of manpower resources are wasted. In order to solve the problem of manual inspection of common equipment, an intelligent detection technology is developed, wherein the intelligent detection technology detects the core functions and components of the equipment through the self-detection function of the equipment, obtains a self-detection result, and reminds a manager to pay attention to and process the equipment with faults subsequently according to the self-detection result of the equipment. However, no suitable automated detection method for pound room equipment currently exists in the prior art. Therefore, how to implement automatic detection of pound room equipment is a challenge.
In view of the foregoing, embodiments of the present application provide a method, apparatus, and computer-readable storage medium for detecting a failure of a pound room device, the method comprising obtaining an address registered by the pound room device and detecting whether the pound room device address is available; under the condition that the pound room equipment address is not available, acquiring all equipment addresses in the same network segment of the 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, realizing automatic detection and solving the problems.
The following describes in detail a 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, and as shown in fig. 2, the method includes:
210, sending a diagnostic instruction.
Specifically, the end display device sends diagnostic instructions to the server when the connection between the pound room device and the end display device is abnormal or fails to function properly due to other faults. For example, it may be that the end display device sends a diagnostic instruction to the server after the user clicks on a pound machine diagnosis in the end display device application. After receiving the diagnosis instruction, the server automatically completes the whole detection flow of the failure detection method of the pound room equipment and feeds back the detection flow to the end display equipment, and the specific steps can be seen as follows in steps 220-260.
220, determining whether the pound room device and the end display device are within the same local area network.
It should be understood that the method for detecting failure of the pound room device in the present application should be in the same lan as the end display device in operation, and the server determines whether the pound room device and the end display device are in the same lan according to the wireless network (Wireless Fidelity, wi-Fi) name.
Specifically, in one implementation manner, the server obtains the network connection state of the front-end display device through an application programming interface (Application Programming Interface, API) of the system of the end display device, obtains a Wi-Fi name when the Wi-Fi of the end display device is started, 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 after the Wi-Fi is started and connected, requests a public network response through the network to confirm that the network can be accessed.
Alternatively, in another implementation manner, the server obtains the network connection state of the front-end display device through the API of the end display device system, when the Wi-Fi of the end display device is not turned on, the Wi-Fi is turned on and connected, then the Wi-Fi name is obtained, the lbs. room device and the end display device are determined to be in the same local area network according to the Wi-Fi name, and after the Wi-Fi is turned on and connected, the end display device requests a public network response through the network, so that the network access is confirmed.
230, obtaining the address registered by the pound room device and detecting whether the pound room device address is available.
It should be appreciated that a pound room management service is requested from the pound room device's local area network address network, an internet protocol (Internet Protocol, IP) address registered by the pound room device is obtained, the pound room device connection status is determined from the IP address and port number, and whether the pound room device address is available is determined from the connection status.
Specifically, the server requests the management service of the pound room according to the media access control (Media Access Control, MAC) address of the current pound room device, obtains the IP address registered by the pound room device in the server, requests the service of the pound room device through the IP address registered by the pound room device, the fixed port number and the user name, and determines the connection state of the pound room device by realizing the Secure Shell (SSH) protocol to connect 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 step 250 is directly executed for self-checking; in the event that the lbs facility address is not available, the lbs facility is not successfully connected and the following 240 steps are performed to find the available address. And executing 250 step to perform self-checking.
And 240, acquiring all equipment addresses in the same network segment of the end display equipment and determining the available addresses of the pound room equipment.
It should be appreciated that the server sends a message broadcast to the end display device and the same lan device; acquiring the same local area network equipment information of the terminal display equipment; traversing the same local area network equipment information to compare 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, in the case that the address of the pound room equipment is not available, the available address of the pound room equipment is obtained, and the self-checking of the pound room equipment is carried out according to the obtained available address in the subsequent failure detection of the pound room equipment.
Specifically, when the SSH connection fails and the address of the pound room device is not available, the application program of the end display device needs to open the network authority first, and obtains the IP of the current end display device through the general packet radio service (General packet radio service, GPRS) and the network interface searching method (network interface).
Optionally, when the SSH connection fails and the address of the pound room device is not available, the application program of the display device at the end needs to open the network authority, and obtains the IP of the display device at the current end through a Wi-Fi management method (WifiManager).
Specifically, socket communication is performed on each IP address in the same network segment as the IP address of the current display device, and message broadcasting is sent to each IP address in a local area network and its corresponding port number. All devices in the same local area network can reply data when receiving the message broadcast, and the server receives the device data and acquires the IP address of the device and the MAC address corresponding to the IP address.
Specifically, the server uses the network diagnostic tool to select an available IP address by reading an address resolution protocol (Address Resolution Protocol, ARP) file, for example: circularly executing a ping command on all IP addresses in the same network segment, selecting an available IP address according to the result of the ping command, judging that the IP address is available if the diagnosis result is that the connection is successful, otherwise, judging that the IP address is not available; and finding all the connectable IP addresses and MAC addresses in the same local area network, traversing all the MAC addresses, finding the same MAC address as the MAC address of the currently detected pound room equipment, and determining the IP address corresponding to the same as the IP address of the current pound room equipment.
Optionally, the server uses the user datagram protocol (User Datagram Protocol, UDP) to broadcast the address resolution protocol (Address Resolution Protocol) file, fixes the IP of the broadcast to 255.255.255, sends a broadcast message to all connected devices through routing, determines the device information according to the received reply message, finds all the connectable IP addresses and MAC addresses in the same local area network, traverses all the MAC addresses, finds the MAC address identical to the MAC address of the currently detected pound room device, and the IP address corresponding to the MAC address is the IP address of the current pound room device.
And 250, performing fault detection on the pound room equipment according to the available address of the pound room equipment.
It should be appreciated that said self-checking said pound room device based on said pound room device 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 performing engineering file detection of the pound room equipment according to the pound room equipment address.
Therefore, by carrying out self-checking on different aspects of the pound room equipment according to the obtained pound room equipment address, the failure of the pound room equipment can be comprehensively detected, a specific link possibly having the failure 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 lbs equipment based on the lbs equipment address includes: and requesting local area network response and public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to the response result.
Therefore, by means of the address of the pound room equipment, the network response test is conducted on the pound room equipment, and whether the network state of the pound room equipment is abnormal can be judged according to the response result.
Specifically, a network request is carried out through the IP address searched in the local area network and the port number fixed by the equipment, whether the pound room equipment is successfully connected or not is checked according to a network request response result (whether the connection is successful or not is judged to be failed), if the connection is successful, a ping command is executed to connect a 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 diagnosis result is that the connection is successful, the network state is judged to be normal, and otherwise, the network state is judged to be abnormal.
It should be appreciated that performing the printer status detection of the current detection device based on the lbs chamber device address includes: and executing a detection command according to the address of the pound room equipment, executing a printer detection command through equipment information returned by the pound room equipment, and acquiring a printer state.
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 stabilizing program operation is executed according to the lbs equipment IP address, for example: checking the running condition of the Docker container through a Docker Ps-a command, verifying whether the Docker runs normally, and executing a command for detecting the printer if the Docker runs normally, for example, executing an lpstat-t command, and acquiring all the states of the printer.
It should be appreciated that the storage state includes storage and remaining storage space, and the performing storage state detection of the current detection device according to the lbs device address includes: and acquiring a storage path of the pound room equipment according to the pound room equipment address, and judging the storage amount 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 amount and the residual storage space of the current memory can be judged.
Specifically, the system memory of the pound room equipment 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, a storage path of the pound room equipment is obtained, and the current memory size and the residual storage space size are obtained through an I/O read-write stream.
It should be appreciated that performing the project file inspection of the current inspection equipment based on the lbs equipment address includes: and according to the address of the pound room equipment and the detection command, entering a designated directory of the pound room equipment, checking whether engineering files exist or not, and detecting the integrity of the engineering files when the engineering files exist.
Thus, by accessing a designated directory of the pound room device, the presence of the project file and its integrity can be detected.
Specifically, executing a Docker related command enters a device designated directory to check whether a working file of the device exists, acquiring the file size 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 of the above steps.
Therefore, by feeding back the detection result to the end display device, the equipment maintainer can clearly know the part with faults and make a correct judgment.
It should be noted that the examples of fig. 1, 2 are merely intended to aid one skilled in the art in understanding the present embodiments, and are not intended to limit the present embodiments to the specific scenarios illustrated. From the examples given for fig. 1, 2, it will be apparent to those skilled in the art that various equivalent modifications or variations may be made, and that 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 processes do not mean the order of execution, and the execution order of the processes should be determined by the functions and internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Having described the method for detecting the failure of the pound room equipment in the embodiment of the present application, the following describes in detail the internal unit of the equipment for detecting the failure of the pound room equipment (hereinafter referred to as detection equipment) in the embodiment of the present application with reference to fig. 3, and describes in detail the computer equipment in the embodiment of the present application with reference to fig. 4.
As shown in fig. 3, fig. 3 shows a schematic block diagram of an apparatus 300 for detecting a failure of a pound room apparatus according to an embodiment of the present application, specifically including an acquisition unit 310, a self-checking unit 320.
Specifically, the acquiring 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 pound room equipment address is not available, acquiring all equipment addresses in the same network segment of the end display equipment and determining the available address of the pound room equipment; and the self-checking unit is used for detecting faults of the pound room equipment according to the available address of the pound room equipment.
The detection device 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 performing fault detection on the pound room equipment according to the available address of the pound room equipment.
In a possible embodiment, 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 embodiment, the acquisition unit is specifically further configured to: transmitting a message broadcast to the same local area network device if it is determined that the IP address of the pound room device is not available; acquiring the same local area network equipment information; and traversing the same local area network equipment information to compare with the current detection equipment.
In another possible embodiment, 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 engineering file of the current detection equipment.
In another possible embodiment, the apparatus for detecting a failure of a pound room apparatus is further configured to: and automatically executing the method for detecting the failure of the pound room equipment, and feeding back the result of each step to the end display equipment.
It will be appreciated that the detection apparatus shown in fig. 3 is capable of carrying out the various processes involved in the detection apparatus in the embodiments of the methods of fig. 1 and 2. The operation and/or function of the individual modules in the detection device are respectively aimed at realizing the corresponding flows in the method embodiments in fig. 1, 2. Reference is specifically made to the description in the above method embodiments, and detailed descriptions are omitted here as appropriate to avoid repetition.
The application also 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, the memory stores computer readable instructions, and the computer readable instructions are used for realizing the method for detecting the failure of the pound room equipment in any one of the above embodiments when the computer readable instructions are 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 to enable direct connection communication of these components. The processor in the embodiment of the application may be an integrated circuit chip, which has a signal processing capability. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks 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, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory has stored therein computer readable instructions which, when executed by the processor, may cause a computer device to perform the steps of the method embodiments of fig. 1 and 2 described above.
It will be appreciated that the configuration shown in fig. 4 is illustrative only, 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.
The embodiments of the present application further provide a computer readable storage medium, on which a computer program is stored, which when executed implements the method of any of the above method embodiments, and specifically reference may be made to the description of the above method embodiments, and detailed descriptions are omitted here as appropriate to avoid redundancy.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, flow diagrams 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, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single 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 this understanding, the technical solution of the present application, or a part contributing to the prior art, or a part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes. It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely 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 think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to 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 (9)

1. A method of detecting a failure of a pound room apparatus comprising:
acquiring an address registered by 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 the end display equipment and determining the available address of the pound room equipment;
performing fault detection on the pound room equipment according to the available address of the pound room equipment;
wherein the obtaining the address registered by the pound room device and detecting whether the address of the pound room device is available comprises:
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, determining the connection state of the pound room equipment through the IP address and the port number, and judging whether the address of the pound room equipment is available according to the connection state.
2. The method of claim 1, wherein the acquiring all device addresses within the same network segment of the end display device and determining the available address of the pound room device comprises:
transmitting a message broadcast to the same local area network device as the end display device;
acquiring the same local area network equipment information of the terminal display equipment;
traversing the same local area network equipment information to compare 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.
3. The method of claim 1, wherein said fault detecting said pound room device based on an available address of said pound room device comprises:
performing network state detection of the pound room equipment according to the address of the pound room equipment;
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 equipment according to the address of the pound room equipment; and, a step of, in the first embodiment,
and executing engineering file detection of the pound room equipment according to the address of the pound room equipment.
4. The method of claim 3, wherein said performing network state detection of said pound room device based on an address of said pound room device comprises:
and requesting local area network response and public network server response through the address of the pound room equipment, and judging the network state of the pound room equipment according to the response result.
5. The method of claim 3, wherein said performing a printer status detection of said pound room device based on an address of said pound room device comprises:
and executing a detection command according to the address of the pound room equipment, executing a printer detection command through equipment information returned by the pound room equipment, and acquiring a printer state.
6. The method of claim 3, wherein said performing storage state detection of said pound room device based on an address of said pound room device comprises:
and acquiring a storage path of the pound room equipment according to the address of the pound room equipment, and judging the storage amount and the residual storage space of the current memory according to the storage path of the pound room equipment.
7. The method of claim 3, wherein said performing an engineering document inspection of said pound room device based on an address of said pound room device comprises:
and according to the address and the detection command of the pound room equipment, entering a designated directory of the pound room equipment, checking whether engineering files exist or not, and detecting the integrity of the engineering files when the engineering files exist.
8. The method according to any one of claims 1-7, further comprising:
and feeding back the fault detection result to the end display device.
9. An apparatus for detecting a failure of a pound room apparatus, comprising:
an acquisition unit, configured to acquire an address registered by a pound room device and detect 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 the end display equipment and determining the available address of the pound room equipment;
the self-checking unit is used for detecting faults of the pound room equipment according to the available addresses of the pound room equipment;
the acquisition unit is further 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, determining the connection state of the pound room equipment through the IP address and the port number, and judging whether the address of the pound room equipment is available according to the connection state.
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 CN111917902A (en) 2020-11-10
CN111917902B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108521437A (en) * 2018-02-28 2018-09-11 深圳市大迈科技有限公司 A kind of searching method and search system of lan device

Family Cites Families (7)

* 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
JP4457261B2 (en) * 2007-09-20 2010-04-28 コニカミノルタビジネステクノロジーズ株式会社 Data transmission apparatus, data transmission system, destination registration method, and program
CN202364251U (en) * 2011-12-16 2012-08-01 南京国之鑫科技有限公司 Intelligent home remote control system based on Internet of Things
KR101988554B1 (en) * 2015-09-24 2019-06-13 한국전자통신연구원 Ip address acquisition method for controlling standby mode of set-top box, set-top box and power management server for performing the method
US20180077113A1 (en) * 2016-09-09 2018-03-15 Hongfujin Precision Electronics (Tianjin) Co.,Ltd. Method for automatic distribution of ip address, system and client using the same
CN107506809A (en) * 2017-08-23 2017-12-22 卡车司机(北京)科技有限公司 A kind of intelligent pound room automatization operation system, method and intelligent pound room interconnected method
CN111343630A (en) * 2020-03-07 2020-06-26 山东浪潮通软信息科技有限公司 Network connection state detection method, computer device, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108521437A (en) * 2018-02-28 2018-09-11 深圳市大迈科技有限公司 A kind of searching method and search system of lan device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Constantin Viorel Marian;等.Proposed method of automatic IP addresses calculation and allocation.《2012 10th International Symposium on Electronics and Telecommunications》.2013,全文. *
赵亮,韩东.一种对IP地址分配的监测管理方法和实现.计算机时代.2005,(10),全文. *

Also Published As

Publication number Publication date
CN111917902A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN106856434B (en) Method and device for converting access request
CN110719199B (en) Network automatic testing and fault positioning method and device
CN113472607B (en) Application program network environment detection method, device, equipment and storage medium
US7131031B2 (en) System and method for on-line diagnosing of network interface cards
CN111130930B (en) Dual-network card detection method and device
CN107948120B (en) Vulnerability detection method and device
CN109218407B (en) Code management and control method based on log monitoring technology and terminal equipment
CN109684155B (en) Monitoring configuration method, device, equipment and readable storage medium
CN110300026A (en) A kind of network connectivity fai_lure processing method and processing device
CN113259183A (en) Network relay control method and device, electronic equipment and storage medium
CN105743725A (en) Method and device for testing application programs
CN110933191B (en) IP address obtaining method and device, upper computer and storage medium
CN111917902B (en) Method, apparatus and computer readable storage medium for detecting failure of pound room equipment
US7975177B2 (en) System and method for testing network performance
CN116170408A (en) Domain name server analysis acceleration method and device
CN113347239B (en) Communication request processing method, device, system, electronic equipment and storage medium
CN110233759B (en) Load abnormity warning method and related device
CN115168215A (en) Service-based arrangement testing method and device
CN113938412A (en) Protocol stack testing method and device, testing system and computer readable storage medium
CN110324179B (en) Load abnormity warning method and related device
CN113938844A (en) Network connection monitoring method, system, computer device and storage medium
CN107317694B (en) Link detection method and terminal for standby machines in cluster
CN110309027B (en) APP fault positioning method and device, server and terminal
CN113691405B (en) Access abnormality diagnosis method and device, storage medium and electronic equipment
CN114143088B (en) Network fault diagnosis method, device, equipment and computer readable storage medium

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