CN113225195A - Equipment detection method, device, controller and medium - Google Patents

Equipment detection method, device, controller and medium Download PDF

Info

Publication number
CN113225195A
CN113225195A CN202010071753.7A CN202010071753A CN113225195A CN 113225195 A CN113225195 A CN 113225195A CN 202010071753 A CN202010071753 A CN 202010071753A CN 113225195 A CN113225195 A CN 113225195A
Authority
CN
China
Prior art keywords
offline
equipment
configuration information
network configuration
line
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.)
Pending
Application number
CN202010071753.7A
Other languages
Chinese (zh)
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.)
Superbox Technology Beijing Co ltd
Original Assignee
Wormpex Technology Beijing 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 Wormpex Technology Beijing Co Ltd filed Critical Wormpex Technology Beijing Co Ltd
Priority to CN202010071753.7A priority Critical patent/CN113225195A/en
Publication of CN113225195A publication Critical patent/CN113225195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a device detection method, a device, a controller and a medium, wherein the method comprises the steps of controlling intermediate equipment to establish communication connection with offline equipment when the equipment is detected to be in an offline state, wherein the intermediate equipment is online equipment within a preset range; acquiring current network configuration information of the offline device through the intermediate device; and judging the offline reason of the offline equipment based on the current network configuration information. The invention realizes remote operation and maintenance debugging of the off-line equipment after the equipment is off-line, accelerates the process of searching the off-line reason of the equipment, and improves the efficiency and the accuracy of off-line detection of the equipment.

Description

Equipment detection method, device, controller and medium
Technical Field
The invention relates to the technical field of intelligent equipment control, in particular to an equipment detection method, an equipment detection device, a controller and a medium.
Background
Along with the rapid development of the internet of things technology, more and more intelligent devices are added into the internet of things, the intelligent devices can be controlled to work by using the internet of things technology, and richer intelligent services are provided for users. For example, a large number of intelligent devices are also included in an existing convenience store, many devices need to be kept running for 7 × 24 hours, all running devices can be maintained and controlled by a device platform in a unified manner, the device platform can monitor the running abnormality of the devices in time and send an alarm, and meanwhile, the devices can be operated remotely if necessary.
However, in a real scenario, many factors may cause the device to be in an offline state, and once the device is offline, control and management of the offline device cannot be implemented, so that it is necessary to detect the offline reason of the device as soon as possible and make a corresponding recovery strategy. If the off-line equipment is directly detected by operation and maintenance personnel, the off-line reasons are checked, the detection process is very complicated and inaccurate, the labor cost is high, and the detection efficiency is low.
Disclosure of Invention
The invention aims to provide a device detection method, a device, a controller and a medium, which can remotely operate, maintain and debug off-line devices after the devices are off-line, accelerate the process of searching off-line reasons of the devices and improve the efficiency and accuracy of off-line detection of the devices.
In order to solve the above technical problem, according to a first aspect of the present invention, there is provided an apparatus detection method, including:
when the device is detected to be in an off-line state, controlling an intermediate device to establish communication connection with the off-line device, wherein the intermediate device is an on-line device within a preset range;
acquiring current network configuration information of the offline device through the intermediate device;
and judging the offline reason of the offline equipment based on the current network configuration information.
Further, the method comprises the steps of obtaining operation index information reported by the equipment, and judging that the equipment is in an off-line state when the operation index information is not received after the preset time.
Further, the method also comprises the following steps: and selecting at least one device from the online devices within the preset range as the intermediate device.
And further, when the device is detected to be in an off-line state, inquiring whether the on-line device exists in the preset range, if so, continuing the device detection process, and otherwise, judging the whole network fault in the preset range.
Further, the controlling the intermediate device to establish a communication connection with the offline device includes:
and controlling the intermediate device to wake up the off-line device by adopting a near field communication mode, and establishing near field communication connection with the off-line device, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
Further, the obtaining, by the intermediary device, current network configuration information of the offline device includes:
sending a network configuration information query instruction to the intermediate device;
and receiving the current network configuration information of the offline device sent by the intermediate device.
Further, the determining the offline reason of the offline device based on the current network configuration information includes:
judging whether the Ethernet of the off-line equipment is started or not according to the network configuration information;
if the off-line equipment is started, judging whether the IP address of the off-line equipment is acquired;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline device is not acquired, judging that the DHCP process fails, and controlling to restart the corresponding service process.
Further, the method also comprises the following steps:
if the Ethernet of the off-line equipment is not started and the off-line equipment adopts wifi internet access, judging whether the IP address of the off-line equipment is obtained;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline equipment is not acquired, inquiring whether a network cable is inserted, and if so, judging that the offline equipment fails.
According to a second aspect of the present invention, there is provided a device detection method, comprising:
the method comprises the steps that an intermediate device receives an instruction which is sent by a server and used for establishing communication connection with an offline device, wherein the intermediate device is an online device within a preset range;
establishing a communication connection with the offline device based on the instruction for establishing the communication connection;
and acquiring the current network configuration information of the offline device and sending the current network configuration information to the server to judge the offline reason of the offline device.
Further, the communication connection is established with the off-line equipment based on the instruction for establishing the communication connection; the method comprises the following steps:
and awakening the offline equipment by adopting a near field communication mode based on the instruction for establishing communication connection, and establishing the near field communication connection with the offline equipment, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
Further, the acquiring current network configuration information of the offline device includes:
receiving a network configuration information query instruction sent by the server;
forwarding the network configuration information query instruction to the offline device;
and receiving and analyzing a network configuration information data packet fed back by the offline equipment based on the network configuration information query instruction to obtain the current network configuration information of the offline equipment.
According to a third aspect of the present invention, there is provided a device detection apparatus comprising:
the communication connection establishing module is configured to control an intermediate device to establish communication connection with the offline device when the device is detected to be in the offline state, wherein the intermediate device is an online device within a preset range;
the configuration information acquisition module is configured to acquire the current network configuration information of the offline device through the intermediate device;
and the offline reason judging module is configured to judge the offline reason of the offline device based on the current network configuration information.
The system further comprises an offline state detection module configured to acquire operation index information reported by the device, and determine that the device is in an offline state when the operation index information is not received after a preset time.
Further, the device selection module is configured to select at least one device from the online devices within the preset range as the intermediate device.
Further, the method comprises the following steps:
the device further comprises a fault judgment module which is configured to inquire whether online equipment exists in the preset range or not when the equipment is detected to be in an offline state, if so, the equipment detection is continued, otherwise, the whole network fault in the preset range is judged.
Further, the communication connection establishing module is configured to:
and controlling the intermediate device to wake up the off-line device by adopting a near field communication mode, and establishing near field communication connection with the off-line device, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
Further, the configuration information obtaining module includes:
the query instruction sending unit is configured to send a network configuration information query instruction to the intermediate device;
a network configuration information receiving unit, configured to receive the current network configuration information of the offline device sent by the intermediate device.
Further, the offline reason determining module includes a first determining unit configured to:
judging whether the Ethernet of the off-line equipment is started or not according to the network configuration information;
if the off-line equipment is started, judging whether the IP address of the off-line equipment is acquired;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline equipment is not acquired, inquiring whether a network cable is inserted, if so, judging that the DHCP process fails, and controlling to restart the corresponding service process.
Further, the offline reason determining module further includes a second determining unit configured to:
if the Ethernet of the off-line equipment is not started and the off-line equipment adopts Wi-Fi to surf the Internet, judging whether the IP address of the off-line equipment is obtained;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline equipment is not obtained, judging that the offline equipment has a fault.
According to a fourth aspect of the present invention, there is provided an apparatus for detecting a device, the apparatus being applied to an intermediate device, the intermediate device being an online device within a preset range, the apparatus including:
an instruction receiving module configured to receive an instruction sent by the server to establish a communication connection with the offline device,
the communication connection module is configured to establish communication connection with the offline device based on the instruction for establishing communication connection;
and the information forwarding module is configured to acquire the current network configuration information of the offline device and send the current network configuration information to the server to judge the offline reason of the offline device.
Further, the communication connection module is specifically configured to wake up the offline device by adopting a close-range communication mode based on the instruction for establishing communication connection, and establish close-range communication connection with the offline device, where the close-range communication mode includes one or more of bluetooth, LoRa, EnOcean, ZigBee, Z-Wave, or UWB.
Further, the information forwarding module includes:
the query instruction receiving unit is configured to receive a network configuration information query instruction sent by the server;
the query instruction forwarding unit is configured to forward the network configuration information query instruction to the offline device;
the network configuration information acquisition unit is configured to receive and analyze a network configuration information data packet fed back by the offline device based on the network configuration information query instruction, and obtain current network configuration information of the offline device;
and the network configuration information sending unit is configured to send the current network configuration information of the offline device to the server.
According to a fifth aspect of the invention, there is provided a controller comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, is capable of implementing the steps of the method.
According to a sixth aspect of the invention, there is provided a computer readable storage medium for storing a computer program which, when executed by a computer or processor, performs the steps of the method.
Compared with the prior art, the invention has obvious advantages and beneficial effects. By means of the technical scheme, the equipment detection method, the equipment detection device, the controller and the medium can achieve considerable technical progress and practicability, have industrial wide utilization value and at least have the following advantages:
the invention can establish connection with the off-line equipment through the intermediate equipment after the equipment is off-line, thereby remotely operating, maintaining and debugging the off-line equipment without manually judging and screening one by one, reducing the labor cost, quickening the searching process of the off-line reason of the equipment and improving the efficiency and the accuracy of the off-line detection of the equipment.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Drawings
Fig. 1 is a flowchart of an apparatus detection method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an apparatus detection method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus detection device according to an embodiment of the present invention
FIG. 4 is a schematic diagram of an apparatus detecting device according to another embodiment of the present invention;
FIG. 5 is a block diagram of a controller according to an embodiment of the present invention;
fig. 6 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention.
[ notation ] to show
1: communication connection establishing module
2: configuration information acquisition module
3: offline reason judgment module
4: instruction receiving module
5: communication connection module
6: information forwarding module
100: controller
101: memory device
102: processor with a memory having a plurality of memory cells
200: computer readable storage medium
201: program code
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description will be given to a specific implementation and effects of a device detection method, an apparatus, a controller and a medium according to the present invention, with reference to the accompanying drawings and preferred embodiments.
In a real scene, many factors such as poor physical network line contact of equipment, operator line interruption, poor WIFI signals and the like cause the equipment to be in an offline state, which affects the online rate of the equipment, once the equipment is offline, control and management of the offline equipment cannot be realized, so that the offline equipment needs to be accurately analyzed and positioned, the offline reason of the equipment is detected as soon as possible, a standard solution is provided for operation and maintenance personnel, and the online rate and the online duration of the offline equipment are improved.
Step S1, when the device is detected to be in an off-line state, controlling an intermediate device to establish communication connection with the off-line device, wherein the intermediate device is an on-line device within a preset range;
step S2, obtaining the current network configuration information of the off-line equipment through the intermediate equipment;
step S3, determining an offline reason of the offline device based on the current network configuration information.
The method of the embodiment of the invention can remotely operate, maintain and debug the off-line equipment after the equipment is off-line, quickens the searching process of the off-line reason of the equipment and improves the off-line detection efficiency and accuracy of the equipment.
As an example, the method further includes step S0, obtaining operation index information reported by the device, and determining that the device is in an offline state when the operation index information is not received after a preset time.
The basic service process reports various operation indexes of the equipment at regular time, including chip temperature, network state, disk usage space and the like. The preset time can be specifically set according to the reporting frequency of the operation index, the specific application requirement and other factors, and in the embodiment of the invention, the preset time can be set to be 10 minutes.
When the offline of a certain device is detected, the offline state of the device can be referred to other machines in a preset range, if other devices are found to be in the offline state, the offline alarm of the single device is changed into the offline alarm of a single-range network, and a network work order can be submitted to the network operation and maintenance treatment after the offline alarm. As an example, the method further includes step S10, when it is detected that the device is in an offline state, querying whether an online device exists within the preset range, if so, continuing to step S1-step S3, otherwise, determining that the overall network within the preset range has a failure. By preferentially checking the overall fault, the problem that the fault of a single device is checked again when the overall fault occurs is avoided, the detection time is saved, and the detection efficiency is improved.
The method further includes step S11, selecting at least one device from the online devices within the preset range as the intermediate device.
The preset range depends on different application scenarios, such as a scenario applied to a store, the preset range may be an area in a store, and the store may be an store such as a convenience store or a coffee shop; the method is applied to an intelligent home scene, and the preset range can be a living room area; the method is applied to intelligent office scenes, and the preset range can be an office area and the like. The present invention will be described with reference to an example of a 24-hour convenience store. When detecting that one device in the convenience store is in an off-line state, remotely controlling another on-line device in the convenience store to serve as a trigger, namely the intermediate device, to establish communication connection with the off-line device. The device may be an intelligent vending machine, an intelligent cash register, an intelligent heating machine, an intelligent household appliance, etc., and is determined according to a specific application scenario, which is not limited herein.
As an example, in step S1, the controlling the intermediate device to establish the communication connection with the offline device includes: and controlling the intermediate device to wake up the off-line device by adopting a near field communication mode, and establishing near field communication connection with the off-line device, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB. Bluetooth4 can be used for Bluetooth communication, and ZigBee/802.15.4 can be used for ZigBee communication. The LoRa is one of LPWAN communication technologies, and is an ultra-long-distance wireless transmission scheme based on a spread spectrum technology.
EnOcean is an ultra-low power short-range wireless communication technology based on energy harvesting. The ZigBee technology is a two-way wireless communication technology with short distance, low complexity, low power consumption, low speed and low cost.
Taking the establishment of communication connection through bluetooth as an example, the intermediate device starts bluetooth broadcast to wake up the offline device, the offline device actively establishes connection with the intermediate device through a bluetooth communication channel after receiving a bluetooth signal packet, and the server subsequently can send a bluetooth data packet through the intermediate device to communicate with the offline device.
As an example, the step S2 includes:
step S21, sending a network configuration information query instruction to the intermediate device;
step S22, receiving the current network configuration information of the offline device sent by the intermediate device.
The intermediate device forwards the network configuration information query instruction to the offline device, receives and analyzes a network configuration information data packet fed back by the offline device based on the network configuration information query instruction, obtains current network configuration information of the offline device, and forwards the current network configuration information to the server.
As an example, the step S3 includes the following steps:
step S301, judging whether the Ethernet of the off-line equipment is started or not according to the network configuration information, and if so, executing step S302;
step S302, judging whether the IP address of the offline device is acquired, if so, executing step S303, otherwise, executing step S304;
step S303, determining that the line is in fault,
after the line fault is determined, the server can send the line problem troubleshooting reminding information to remind a clerk to troubleshoot the line problem, wherein the line problem comprises a wrong-plugged equipment network cable and the like.
And step S304, inquiring whether the network cable is inserted, if so, judging that the DHCP process fails, and controlling to restart the corresponding service process, and if the system is a LINUX system, judging that the corresponding service process is DHCPD.
The DHCP is a network protocol of a local area network, which means that a server controls a segment of lP address range, and a client can automatically obtain an lP address and a subnet mask allocated by the server when logging in the server. The DHCPD is a service process of the LINUX system and is used for maintaining the IP address allocation corresponding to the physical network port of the equipment.
As an example, if the ethernet of the offline device is not turned on, and the offline device uses wifi to surf the internet, the step S3 further includes the following steps:
step S311, judging whether the IP address of the offline device is acquired, if the IP address of the offline device is acquired, executing step S312, otherwise, executing step S313;
step S312, judging that the line has a fault;
after the line fault is determined, the server can send the line problem troubleshooting reminding information to remind a clerk to troubleshoot the line problem, wherein the line problem comprises a wrong-plugged equipment network cable and the like.
Step S313 determines that the offline device has failed.
The equipment failure comprises damage of a physical network port of the equipment or damage of a wifi antenna and the like, and offline personnel can be arranged to return the equipment to a factory for maintenance.
Through the step S3, the fault reason of the off-line equipment can be accurately acquired, a corresponding solution strategy can be generated, the accuracy and reliability of off-line equipment detection are improved, the off-line problem is solved in time, the on-line rate of store equipment is improved, the normal operation of the store equipment is ensured, and the user experience is improved.
Still taking a convenience store application scenario as an example, when an online shop detects that the equipment is offline, an offline work order is generated, online remote investigation is performed, if the equipment is a system problem, a network module is tried to be restarted to solve the problem, and if the equipment is a line problem, a store clerk can be reminded to solve the offline problem of an offline work controller. Specifically, as an example, the method further includes step S5, when the device is detected to be in an offline state, generating an offline work order, and if the operation index information reported by the offline device is detected again, canceling the corresponding offline work order.
An embodiment of the present invention further provides an apparatus detection method, applied to an intermediate apparatus, as shown in fig. 2, including:
step S100, an intermediate device receives an instruction which is sent by a server and used for establishing communication connection with an offline device, wherein the intermediate device is an online device within a preset range;
step S101, establishing communication connection with the off-line equipment based on the instruction for establishing communication connection;
and step S102, acquiring the current network configuration information of the offline device and sending the current network configuration information to the server to judge the offline reason of the offline device.
As an example, the step S101 specifically includes: and awakening the offline equipment by adopting a near field communication mode based on the instruction for establishing communication connection, and establishing the near field communication connection with the offline equipment, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
As an example, in step S102, the obtaining current network configuration information of the offline device includes:
step S1021, receiving a network configuration information query instruction sent by the server;
step S1022, forwarding the network configuration information query instruction to the offline device;
and step S1023, receiving and analyzing a network configuration information data packet fed back by the offline device based on the network configuration information inquiry instruction, and obtaining the current network configuration information of the offline device.
The embodiment of the present invention further provides an apparatus detecting device, which operates in a server, and as shown in fig. 3, the apparatus detecting device includes a communication connection establishing module 1, a configuration information obtaining module 2, and an offline reason determining module 3, where the communication connection establishing module 1 is configured to control an intermediate apparatus to establish a communication connection with an offline apparatus when detecting that the apparatus is in an offline state, and the intermediate apparatus is an online apparatus within a preset range; the configuration information acquisition module 2 is configured to acquire the current network configuration information of the offline device through the intermediate device; the offline reason judgment module 3 is configured to judge the offline reason of the offline device based on the current network configuration information.
The device provided by the embodiment of the invention can remotely operate, maintain and debug the off-line equipment after the equipment is off-line, accelerates the process of searching the off-line reason of the equipment, and improves the efficiency and accuracy of off-line detection of the equipment.
As an example, the apparatus further includes an offline state detection module configured to obtain operation index information reported by the device, and determine that the device is in an offline state when the operation index information is not received after a preset time. The basic service process reports various operation indexes of the equipment at regular time, including chip temperature, network state, disk usage space and the like. The preset time can be specifically set according to the reporting frequency of the operation index, the specific application requirement and other factors, and in the embodiment of the invention, the preset time can be set to be 10 minutes.
The device further comprises a device selection module configured to select at least one device from the online devices within the preset range as the intermediate device.
When the offline of a certain device is detected, the offline state of the device can be referred to other machines in a preset range, if other devices are found to be in the offline state, the offline alarm of the single device is changed into the offline alarm of a single-range network, and a network work order can be submitted to the network operation and maintenance treatment after the offline alarm. As an example, the apparatus further includes a fault determining module configured to, when it is detected that the device is in an offline state, query whether an online device exists within the preset range, if so, continue device detection, and otherwise, determine that the whole network within the preset range has a fault. By preferentially checking the overall fault, the problem that the fault of a single device is checked again when the overall fault occurs is avoided, the detection time is saved, and the detection efficiency is improved.
The preset range depends on different application scenarios, such as a scenario applied to a store, the preset range may be an area in a store, and the store may be an store such as a convenience store or a coffee shop; the method is applied to an intelligent home scene, and the preset range can be a living room area; the method is applied to intelligent office scenes, and the preset range can be an office area and the like. The present invention will be described with reference to an example of a 24-hour convenience store. When detecting that one device in the convenience store is in an off-line state, remotely controlling another on-line device in the convenience store to serve as a trigger, namely the intermediate device, to establish communication connection with the off-line device. The device may be an intelligent vending machine, an intelligent cash register, an intelligent heating machine, an intelligent household appliance, etc., and is determined according to a specific application scenario, which is not limited herein.
As an example, the communication connection establishing module is configured to control the intermediate device to wake up the offline device by adopting a close-range communication manner, and establish a close-range communication connection with the offline device, where the close-range communication manner includes one or more of bluetooth, LoRa, EnOcean, ZigBee, Z-Wave, or UWB. Bluetooth4 can be used for Bluetooth communication, and ZigBee/802.15.4 can be used for ZigBee communication. The LoRa is one of LPWAN communication technologies, and is an ultra-long-distance wireless transmission scheme based on a spread spectrum technology. EnOcean is an ultra-low power short-range wireless communication technology based on energy harvesting. The ZigBee technology is a two-way wireless communication technology with short distance, low complexity, low power consumption, low speed and low cost.
Taking the establishment of communication connection through bluetooth as an example, the intermediate device starts bluetooth broadcast to wake up the offline device, the offline device actively establishes connection with the intermediate device through a bluetooth communication channel after receiving a bluetooth signal packet, and the server subsequently can send a bluetooth data packet through the intermediate device to communicate with the offline device.
As an example, the configuration information obtaining module includes a query instruction sending unit and a network configuration information receiving unit, where the query instruction sending unit is configured to send a network configuration information query instruction to the intermediate device; the network configuration information receiving unit is configured to receive the current network configuration information of the offline device sent by the intermediate device.
As an example, the offline reason determining module 3 includes a first determining unit configured to determine whether the offline device ethernet is turned on according to the network configuration information; if the off-line equipment is started, judging whether the IP address of the off-line equipment is acquired; if the IP address of the offline device is obtained, the offline device is judged to be in line fault, the server can send a line problem troubleshooting reminding message to remind a store clerk to troubleshoot the line problem, and the line problem comprises a wrong-plugged device network cable and the like; and if the IP address of the offline device is not acquired, inquiring whether a network cable is inserted, if so, judging that the DHCP process fails, controlling to restart the corresponding service process, and if the system is an LINUX system, judging that the corresponding service process is DHCPD. The DHCP is a network protocol of a local area network, which means that a server controls a segment of lP address range, and a client can automatically obtain an lP address and a subnet mask allocated by the server when logging in the server. The DHCPD is a service process of the LINUX system and is used for maintaining the IP address allocation corresponding to the physical network port of the equipment.
The offline reason determining module 3 may further include a second determining unit configured to determine whether the IP address of the offline device is obtained if the offline device is not powered on and the offline device is connected to the internet through wifi; if the IP address of the offline device is obtained, the offline device is judged to be in line fault, the server can send a line problem troubleshooting reminding message to remind a store clerk to troubleshoot the line problem, and the line problem comprises a wrong-plugged device network cable and the like; if the IP address of the offline device is not obtained, the offline device is judged to be in fault, the device fault comprises damage of a physical network interface of the device or damage of a wifi antenna and the like, and offline personnel can be arranged to return the device to a factory for maintenance.
The offline reason judgment module 3 can accurately acquire the fault reason of the offline device, can generate a corresponding solution strategy, improves the accuracy and reliability of offline device detection, timely solves the offline problem, improves the online rate of store equipment, ensures the normal operation of the store equipment, and improves the user experience.
Still taking a convenience store application scenario as an example, when an online shop detects that the equipment is offline, an offline work order is generated, online remote investigation is performed, if the equipment is a system problem, a network module is tried to be restarted to solve the problem, and if the equipment is a line problem, a store clerk can be reminded to solve the offline problem of an offline work controller. Specifically, as an example, the apparatus further includes an offline work order maintenance module configured to generate an offline work order when the device is detected to be in an offline state, and cancel the corresponding offline work order if the operation index information reported by the offline device is detected again.
The device comprises an instruction receiving module 4, a communication connection module 5 and an information forwarding module 6, wherein the instruction receiving module 4 is configured to receive an instruction which is sent by a server and used for establishing communication connection with an offline device, and the communication connection module 5 is configured to establish communication connection with the offline device based on the instruction for establishing communication connection; the information forwarding module 6 is configured to acquire current network configuration information of the offline device and send the current network configuration information to the server to determine an offline reason of the offline device.
As an example, the communication connection module 5 is specifically configured to wake up the offline device by adopting a close-range communication manner based on the instruction for establishing communication connection, and establish a close-range communication connection with the offline device, where the close-range communication manner includes one or more of bluetooth, LoRa, EnOcean, ZigBee, Z-Wave, or UWB.
As an example, the information forwarding module 6 includes an inquiry instruction receiving unit, an inquiry instruction forwarding unit, a network configuration information obtaining unit, and a network configuration information sending unit, where the inquiry instruction receiving unit is configured to receive a network configuration information inquiry instruction sent by the server; the query instruction forwarding unit is configured to forward the network configuration information query instruction to the offline device; the network configuration information acquisition unit is configured to receive and analyze a network configuration information data packet fed back by the offline device based on the network configuration information query instruction, and obtain current network configuration information of the offline device; the network configuration information sending unit is configured to send the current network configuration information of the offline device to the server.
The method and the device of the embodiment of the invention can establish connection with the off-line equipment through the intermediate equipment after the equipment is off-line, thereby remotely operating, maintaining and debugging the off-line equipment without manually judging and screening one by one, reducing the labor cost, accelerating the searching process of the off-line reason of the equipment and improving the efficiency and the accuracy of the off-line detection of the equipment.
The embodiment of the present invention further provides a controller 100, which includes a memory 101 and one or more processors 102, and the memory 101 and the processors 102 are connected by a communication line. The memory 101 may be used for storing software programs, such as program instructions corresponding to the methods described in the embodiments of the present application, and the processor 102 executes the software programs stored in the memory 101, thereby executing various functional applications and data processing, such as the methods described in the embodiments of the present invention.
Memory 101 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. It will be appreciated that the configuration shown in fig. 5 is merely illustrative and that server 100 may include more or fewer components than shown in fig. 5 or have a different configuration than shown in fig. 5.
The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
An embodiment of the present invention further provides a computer-readable storage medium, as shown in fig. 6, the computer-readable storage medium 200 stores a program code, and the program code can be called by a processor to execute the method described in the above method embodiment. The computer-readable storage medium 200 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer readable storage medium 200 has storage space for program code 201 for performing any of the method steps of the above-described method. The program code can be read from or written to one or more computer program products. The program code 201 may be compressed, for example, in a suitable form.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (24)

1. A device detection method, comprising:
when the device is detected to be in an off-line state, controlling an intermediate device to establish communication connection with the off-line device, wherein the intermediate device is an on-line device within a preset range;
acquiring current network configuration information of the offline device through the intermediate device;
and judging the offline reason of the offline equipment based on the current network configuration information.
2. The device detection method according to claim 1,
the method further comprises the steps of obtaining operation index information reported by the equipment, and judging that the equipment is in an off-line state when the operation index information is not received after the preset time.
3. The device detection method according to claim 1,
further comprising: and selecting at least one device from the online devices within the preset range as the intermediate device.
4. The device detection method according to claim 1,
and when the equipment is detected to be in an off-line state, inquiring whether the online equipment exists in the preset range, if so, continuing the equipment detection process, and otherwise, judging the whole network fault in the preset range.
5. The device detection method according to any one of claims 1 to 4,
the controlling the intermediate device to establish communication connection with the offline device includes:
and controlling the intermediate device to wake up the off-line device by adopting a near field communication mode, and establishing near field communication connection with the off-line device, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
6. The device detection method according to claim 1,
the obtaining, by the intermediary device, current network configuration information of the offline device includes:
sending a network configuration information query instruction to the intermediate device;
and receiving the current network configuration information of the offline device sent by the intermediate device.
7. The device detection method according to claim 1,
the determining the offline reason of the offline device based on the current network configuration information includes:
judging whether the Ethernet of the off-line equipment is started or not according to the network configuration information;
if the off-line equipment is started, judging whether the IP address of the off-line equipment is acquired;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline device is not acquired, judging that the DHCP process fails, and controlling to restart the corresponding service process.
8. The device detection method according to claim 7,
further comprising:
if the Ethernet of the off-line equipment is not started and the off-line equipment adopts wifi internet access, judging whether the IP address of the off-line equipment is obtained;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline equipment is not acquired, inquiring whether a network cable is inserted, and if so, judging that the offline equipment fails.
9. A device detection method, comprising:
the method comprises the steps that an intermediate device receives an instruction which is sent by a server and used for establishing communication connection with an offline device, wherein the intermediate device is an online device within a preset range;
establishing a communication connection with the offline device based on the instruction for establishing the communication connection;
and acquiring the current network configuration information of the offline device and sending the current network configuration information to the server to judge the offline reason of the offline device.
10. The device detection method according to claim 9,
the establishing of the communication connection with the offline device based on the instruction for establishing the communication connection comprises:
and awakening the offline equipment by adopting a near field communication mode based on the instruction for establishing communication connection, and establishing the near field communication connection with the offline equipment, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
11. The device detection method according to claim 9,
the acquiring the current network configuration information of the offline device includes:
receiving a network configuration information query instruction sent by the server;
forwarding the network configuration information query instruction to the offline device;
and receiving and analyzing a network configuration information data packet fed back by the offline equipment based on the network configuration information query instruction to obtain the current network configuration information of the offline equipment.
12. An apparatus detection device, comprising:
the communication connection establishing module is configured to control an intermediate device to establish communication connection with the offline device when the device is detected to be in the offline state, wherein the intermediate device is an online device within a preset range;
the configuration information acquisition module is configured to acquire the current network configuration information of the offline device through the intermediate device;
and the offline reason judging module is configured to judge the offline reason of the offline device based on the current network configuration information.
13. The device detection apparatus according to claim 12, further comprising an offline state detection module configured to obtain operation index information reported by a device, and determine that the device is in an offline state when the operation index information is not received after a preset time.
14. The device detection apparatus of claim 12,
the device selection module is configured to select at least one device from the online devices within the preset range as the intermediate device.
15. The device detection apparatus of claim 12,
the device further comprises a fault judgment module which is configured to inquire whether online equipment exists in the preset range or not when the equipment is detected to be in an offline state, if so, the equipment detection is continued, otherwise, the whole network fault in the preset range is judged.
16. The device detection apparatus of any one of claims 12-16,
the communication connection establishment module is configured to:
and controlling the intermediate device to wake up the off-line device by adopting a near field communication mode, and establishing near field communication connection with the off-line device, wherein the near field communication mode comprises one or more of Bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
17. The device detection apparatus of claim 12,
the configuration information acquisition module includes:
the query instruction sending unit is configured to send a network configuration information query instruction to the intermediate device;
a network configuration information receiving unit, configured to receive the current network configuration information of the offline device sent by the intermediate device.
18. The device detection apparatus of claim 12,
the offline reason judgment module comprises a first judgment unit configured to:
judging whether the Ethernet of the off-line equipment is started or not according to the network configuration information;
if the off-line equipment is started, judging whether the IP address of the off-line equipment is acquired;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline equipment is not acquired, inquiring whether a network cable is inserted, if so, judging that the DHCP process fails, and controlling to restart the corresponding service process.
19. The device detection apparatus of claim 18,
the offline reason judgment module further includes a second judgment unit configured to:
if the Ethernet of the off-line equipment is not started and the off-line equipment adopts Wi-Fi to surf the Internet, judging whether the IP address of the off-line equipment is obtained;
if the IP address of the offline device is obtained, determining that the line has a fault;
and if the IP address of the offline equipment is not obtained, judging that the offline equipment has a fault.
20. The device detection device is applied to intermediate equipment which is online equipment within a preset range, and comprises:
an instruction receiving module configured to receive an instruction sent by the server to establish a communication connection with the offline device,
the communication connection module is configured to establish communication connection with the offline device based on the instruction for establishing communication connection;
and the information forwarding module is configured to acquire the current network configuration information of the offline device and send the current network configuration information to the server to judge the offline reason of the offline device.
21. The device detection apparatus of claim 20,
the communication connection module is specifically configured to wake up the offline device by adopting a close-range communication mode based on the instruction for establishing communication connection, and establish close-range communication connection with the offline device, wherein the close-range communication mode includes one or more of bluetooth, LoRa, EnOcean, ZigBee, Z-Wave or UWB.
22. The device detection apparatus of claim 20,
the information forwarding module comprises:
the query instruction receiving unit is configured to receive a network configuration information query instruction sent by the server;
the query instruction forwarding unit is configured to forward the network configuration information query instruction to the offline device;
the network configuration information acquisition unit is configured to receive and analyze a network configuration information data packet fed back by the offline device based on the network configuration information query instruction, and obtain current network configuration information of the offline device;
and the network configuration information sending unit is configured to send the current network configuration information of the offline device to the server.
23. A controller comprising a memory and a processor, characterized in that the memory stores a computer program which, when executed by the processor, is capable of carrying out the steps of the method of any one of claims 1 to 11.
24. A computer-readable storage medium for storing a computer program, characterized in that the program realizes the steps of the method according to any one of claims 1 to 11 when executed by a computer or processor.
CN202010071753.7A 2020-01-21 2020-01-21 Equipment detection method, device, controller and medium Pending CN113225195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010071753.7A CN113225195A (en) 2020-01-21 2020-01-21 Equipment detection method, device, controller and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010071753.7A CN113225195A (en) 2020-01-21 2020-01-21 Equipment detection method, device, controller and medium

Publications (1)

Publication Number Publication Date
CN113225195A true CN113225195A (en) 2021-08-06

Family

ID=77085302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010071753.7A Pending CN113225195A (en) 2020-01-21 2020-01-21 Equipment detection method, device, controller and medium

Country Status (1)

Country Link
CN (1) CN113225195A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114641023A (en) * 2022-04-08 2022-06-17 深圳市欧瑞博科技股份有限公司 Method, system, computer device and storage medium for repairing network connection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170034241A1 (en) * 2013-12-20 2017-02-02 Ubiqu B.V. Methods, an online object, a web-based message exchange server, a mobile device, a target offline object, a network and a computer program product
CN108235351A (en) * 2017-12-27 2018-06-29 杭州迪普科技股份有限公司 A kind of method and device that wireless controller is made to obtain wireless access point fault message
CN109474494A (en) * 2018-12-05 2019-03-15 深圳绿米联创科技有限公司 Equipment detection method, device, server and storage medium
CN109714733A (en) * 2017-10-26 2019-05-03 中国电信股份有限公司 The detection restoration methods and Internet of things system of Internet of Things communication failure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170034241A1 (en) * 2013-12-20 2017-02-02 Ubiqu B.V. Methods, an online object, a web-based message exchange server, a mobile device, a target offline object, a network and a computer program product
CN109714733A (en) * 2017-10-26 2019-05-03 中国电信股份有限公司 The detection restoration methods and Internet of things system of Internet of Things communication failure
CN108235351A (en) * 2017-12-27 2018-06-29 杭州迪普科技股份有限公司 A kind of method and device that wireless controller is made to obtain wireless access point fault message
CN109474494A (en) * 2018-12-05 2019-03-15 深圳绿米联创科技有限公司 Equipment detection method, device, server and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114641023A (en) * 2022-04-08 2022-06-17 深圳市欧瑞博科技股份有限公司 Method, system, computer device and storage medium for repairing network connection

Similar Documents

Publication Publication Date Title
CN111031565B (en) Method and device for identifying off-line state of ZigBee device
CN109587018A (en) Method, apparatus, network system and the mobile terminal of device configuration
CN109474494A (en) Equipment detection method, device, server and storage medium
CN107800791B (en) Debugging method and device
CN108092847B (en) A kind of electric power LTE wireless terminal remote on-line monitoring method
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
CN109474692A (en) A kind of intelligent household appliance remote control method, apparatus and system
CN109560993A (en) The method of communication link abnormality detection, device, electronic equipment and network
CN110737203A (en) Intelligent household appliance management system and method and Bluetooth gateway
CN110691398B (en) Network interaction method, system, equipment and storage medium of intelligent equipment
CN114866365B (en) Arbitration machine election method, device, intelligent equipment and computer readable storage medium
CN111245677A (en) Communication abnormity reporting method and device, electronic equipment and storage medium
CN113108362A (en) Multi-split air conditioning system
CN114338464B (en) Fault diagnosis method, device, equipment and computer readable storage medium
CN108353005B (en) Method and device for monitoring a control system
CN103747061A (en) Power environment monitoring system allowing multiple networks to access and operation method thereof
CN113225195A (en) Equipment detection method, device, controller and medium
EP2882216B1 (en) Device and method for controlling, supervising and giving an alarming from a power supply of base station
CN112305926B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN103716377B (en) A kind of method and smart card for realizing UPS remote monitorings
CN116955232A (en) Hardware identification method and device based on control system
CN110166322B (en) Detection method and related device for metering automation terminal
CN111866827A (en) Bluetooth device state detection method and device, electronic device and medium
CN103685178A (en) Industrial wireless network oriented online debugging method and system
JP2020031419A (en) Methods and systems for controlling operation of satellite data units of aircraft

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
TA01 Transfer of patent application right

Effective date of registration: 20220211

Address after: Room 302, third floor, building 20, yard 10, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Applicant after: SUPERBOX TECHNOLOGY (BEIJING) Co.,Ltd.

Address before: 100015 Room 301, 3rd floor, building 20, yard 10, Jiuxianqiao Road, Chaoyang District, Beijing

Applicant before: CHONGJI TECHNOLOGY (BEIJING) Co.,Ltd.

TA01 Transfer of patent application right