WO2024051112A1 - 设备查找方法、装置、设备及存储介质 - Google Patents

设备查找方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2024051112A1
WO2024051112A1 PCT/CN2023/078815 CN2023078815W WO2024051112A1 WO 2024051112 A1 WO2024051112 A1 WO 2024051112A1 CN 2023078815 W CN2023078815 W CN 2023078815W WO 2024051112 A1 WO2024051112 A1 WO 2024051112A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
found
status
broadcast
trigger
Prior art date
Application number
PCT/CN2023/078815
Other languages
English (en)
French (fr)
Inventor
刘世君
张超
栗鹏飞
王英华
汪福全
刘明
Original Assignee
声龙(新加坡)私人有限公司
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 声龙(新加坡)私人有限公司 filed Critical 声龙(新加坡)私人有限公司
Publication of WO2024051112A1 publication Critical patent/WO2024051112A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Definitions

  • the present application belongs to the technical field of equipment management, and in particular relates to an equipment search method, device, equipment and storage medium.
  • IP Internet Protocol
  • Some embodiments of the present application provide device search methods, devices, equipment and storage media that can at least partially solve the above problems existing in the prior art.
  • a device search method including: obtaining trigger information; based on the trigger information, obtaining operation information of the device to be found; wherein the operation information at least includes status information of the device to be found; Address information; the status information includes at least one status identification code; each status identification code is generated based on any status parameter of the device to be found; broadcasting the operation information.
  • the obtaining of trigger information includes: obtaining the posture information of a trigger button; wherein the device to be found is equipped with the trigger button; the posture information of the trigger button includes a reset posture and a pressing posture. ; Based on the posture information of the trigger button, determine the posture of the trigger button; when the trigger button is in the pressing posture, obtain the trigger information; or obtain the trigger password, and based on the trigger The trigger information is obtained by using a password; wherein the trigger password is obtained based on the trigger button or the device management interface.
  • obtaining the operation information of the device to be found based on the trigger information includes: parsing the IP address and MAC address of the device to be found based on the trigger information, and obtaining the device to be found. Search the address information of the device; at the same time, identify the operating status of the device to be found, and obtain the status information of the device to be found; the status information at least includes the network connection status of the device to be found, Any one of the cooling fan speed and real-time temperature; obtain at least one status parameter of the device to be found based on the status information; compare each status parameter with the status parameter threshold to obtain a comparison compare the results; according to the comparison results, obtain the state identification code that matches each of the state parameters; based on the state identification code that matches each of the state parameters and the address information, obtain the The operating information of the device to be found.
  • broadcasting the operation information includes: processing the status information and address information to obtain a data packet to be broadcast; wherein the status information includes at least one parameter related to the status The status identification code string that the identification code matches; the address information includes an IP address string that matches the IP address and a MAC address string that matches the MAC address; for the IP address string, MAC address string, and each The status identification code string is subjected to interval processing to obtain the data packet to be broadcast; and the data packet to be broadcast is broadcast.
  • this application provides a device search method, which includes: monitoring the data packets to be broadcast, and obtaining at least one of the data packets to be broadcast; parsing each of the data packets to be broadcast, and obtaining information related to each data packet to be broadcast.
  • the operation information of the device to be found that matches the data packet to be broadcast is displayed on a window-based basis; wherein the operation information at least includes each of the devices to be found.
  • the operation information determines the device to be controlled; and based on the operation information of the device to be controlled, the device to be controlled is controlled.
  • determining the device to be controlled based on the operating information of each device to be found includes: determining the number of devices to be found and obtaining a total number; and combining the total number with The quantity threshold is compared; if the total quantity is greater than the quantity threshold, the status information of each of the devices to be found is grouped to obtain multiple device sets to be found; wherein, each of the status information The identification code is generated based on any one of the network connection status, cooling fan speed and real-time temperature of the device to be found; the device to be controlled is determined based on multiple sets of devices to be found.
  • the present application provides an equipment search device, including: a first acquisition module, used to obtain trigger information; a second acquisition module, used to obtain operation information of the device to be searched based on the trigger information; wherein, The running information at least includes status information and address information of the device to be found; the status information includes at least one status identification code; each status identification code is generated based on any status parameter of the device to be found; a broadcast module , used to broadcast the operation information.
  • this application provides a device search device, including: a monitoring module, used to monitor the data packets to be broadcast, and obtain at least one of the data packets to be broadcast; and an analysis module, used to analyze each of the data packets to be broadcast.
  • the packet is parsed to obtain the operation information of the device to be found that matches each of the data packets to be broadcast, and the operation information of the device to be found that matches each of the data packets to be broadcast is displayed based on the window; wherein, The operation information at least includes status information and address information of each device to be found; the status information includes at least one status identification code; each status identification code is generated based on any status parameter of the device to be found;
  • the determination module is used to determine the device to be controlled based on the operating information of each device to be found; the control module is used to control the device to be controlled based on the operating information of the device to be controlled.
  • Yet another aspect of the present application provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor.
  • the processor executes the computer program, the above is implemented. the method described.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute as described above. method described.
  • Figure 1 is a schematic structural diagram of a device search system provided by an embodiment of the present application.
  • Figure 2 is a schematic flow chart of a device search method provided by an embodiment of the present application.
  • Figure 3 is another schematic flowchart of a device search method provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a display interface of a window provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a device search device provided by an embodiment of the present application.
  • Figure 6 is another schematic structural diagram of a device search device provided by an embodiment of the present application.
  • MAC address Media Access Control Address, media access control address.
  • an embodiment of the present application provides a device search system, including:
  • the local area network there are multiple devices to be found in the local area network, which may specifically include: the first device to be found, the second device to be found...the Nth device to be found; N is a positive integer;
  • N devices to be found realize data interaction with the server based on the network. Specifically, the device to be found actively reports its own operating information to the server based on triggers, so that the server can quickly find itself and obtain its own relevant operating information. ;
  • the running information may include status information and address information;
  • the first device to be found For example, if the first device to be found is triggered, then after the first device to be found recognizes that it has been triggered, it will actively report its own current operating information, that is, the first device to be found, to the server;
  • At least one trigger button can be set on the device to be found
  • a device management lock in order to successfully trigger a certain device to be found, can also be set outside the device to be found, and the device management lock can be triggered based on a key that matches the device management lock.
  • a certain device to be found in order to realize that a certain device to be found is successfully triggered, a certain device to be found can also be remotely triggered and controlled based on the network.
  • a certain device to be found obtains the trigger password, Check whether the trigger password is correct and determine whether a device to be found has been successfully triggered.
  • a communication unit can be provided on the trigger button or key; wherein, the communication unit can implement a communication connection with the server based on the network; when the server receives a certain data packet to be broadcast, and After the broadcast data packet is parsed successfully, a confirmation message containing the parsing success will be sent to the communication unit;
  • the waiting time can be preset. If the communication module does not obtain the confirmation information sent by the server during the waiting time, the device to be found can prompt the server that the confirmation information has not been obtained through the reminder light carried; or The device to be found can also directly start the communication unit and resend the data packet to be broadcast to the server.
  • the Mth device to be found When a device to be found, for example, the Mth device to be found, confirms that it has been successfully triggered, the Mth device to be found will proactively report its current running information to the server;
  • the server After the server obtains the running information of the Mth device to be found, it parses the running information. After the parsing is successful, the Mth device to be found is quickly found and the current information of the Mth device to be found is obtained. Operating status (including normal operation/abnormal operation/abnormality of a certain component, etc.); where M is a positive integer, and M ⁇ N.
  • the server can be implemented based on a computer or a smartphone or other device with the above functions.
  • the embodiments of the present application do not specifically limit this.
  • the device to be found can proactively report its own operation information to the server based on a trigger, which allows the server to quickly and conveniently search for the device to be found in the local area network and obtain the operation information of the device to be found.
  • the embodiment of the present application provides a device search method, including:
  • Step S21 Obtain trigger information
  • the device to be found in order to quickly find the device to be found in the local area network, so as to facilitate the management of each device to be found, the device to be found takes the initiative to report its current operating information, so as to avoid searching the devices to be found one by one. Search, easy and fast.
  • obtaining trigger information includes:
  • the posture information of the trigger button wherein the device to be found is provided with the trigger button; the posture information of the trigger button includes a reset posture and a pressing posture; based on the posture information of the trigger button, the trigger The posture of the button is judged; when the trigger button is in the pressing posture, the trigger information is obtained; or
  • Obtain a trigger password and obtain the trigger information based on the trigger password; wherein the trigger password is obtained based on the trigger button or the device management interface.
  • An exemplary embodiment of the present application obtains the posture information of its own trigger button, analyzes the posture information, and obtains the posture of the current trigger button.
  • the device to be searched obtains the trigger information; specifically , the trigger information includes trigger success or success failure;
  • the device to be searched obtains the trigger information of successful triggering.
  • the detection interval can be preset, for example, detection is performed every 2 seconds. Specifically, the posture of the trigger button of the device to be found is detected. Correspondingly, the trigger button can be pressed based on the detection interval.
  • the device to be searched when the device to be searched obtains the trigger password, the device to be searched will compare the acquired trigger password with the reference password (correct password). If the trigger password is consistent with the reference password, the device to be searched will The device obtains the trigger information indicating that the trigger is successful; if the trigger password is inconsistent with the reference password, the device to be searched for will obtain the trigger information. Send failure trigger information.
  • the above-mentioned trigger password can be obtained based on the trigger button, or can also be obtained based on the device management interface connected to the device to be searched through the network, which is used to reduce the restrictions of the device structure on the implementation of the embodiments of the present application and expand the implementation of the embodiments of the present application. Scope of application.
  • the trigger password can be obtained every other detection interval. If the device to be searched does not obtain the trigger password, the device to be searched for obtains the trigger information of the trigger failure, and the above process is continuously cycled.
  • Step S22 Based on the trigger information, obtain the operation information of the device to be found; wherein the operation information at least includes status information and address information of the device to be found; the status information at least includes a status identification code; each The status identification code is generated based on any status parameter of the device to be found;
  • obtaining the operating information of the device to be found based on the trigger information includes:
  • the operating status of the device to be found is identified to obtain the status information of the device to be found; the status information at least includes the network connection status, cooling fan speed and real-time temperature of the device to be found. Any one; Obtain at least one state parameter of the device to be found based on the state information; Compare each state parameter with the state parameter threshold to obtain a comparison result; According to the comparison As a result, the state identification code matching each of the state parameters is obtained;
  • the operating information of the device to be found is obtained.
  • the device to be searched when the device to be searched obtains the trigger information of a successful trigger, it parses its own IP address and MAC address to obtain the parsing result; and obtains the address information of the device to be searched based on the parsing result;
  • the device to be searched obtains its current status information, which includes but is not limited to network connection status, cooling fan speed and real-time temperature;
  • the status information is parsed to obtain at least one status parameter of the device to be found;
  • the status parameters corresponding to the network connection status are: the specific value of the network speed;
  • the status parameters corresponding to the cooling fan speed are: the specific value of the speed
  • the status parameters corresponding to the real-time temperature are: the specific value of the temperature
  • preset status parameter thresholds such as: temperature threshold, rotational speed threshold and network speed threshold; wherein, the temperature threshold, rotational speed threshold and network speed threshold can each be an interval;
  • the device to be found After the device to be found obtains its own status parameters, it compares each status parameter with the preset status parameter threshold and obtains the comparison result;
  • the status parameter includes a specific value of temperature
  • the status identification code corresponding to the real-time temperature is 1.
  • the status parameter includes the specific value of the cooling fan
  • the status identification code corresponding to the cooling fan speed is 1.
  • the status parameter includes the specific value of the network speed
  • the status identification code corresponding to the network connection status is 1.
  • the specific value or representation method corresponding to the status identification code can be set or adjusted according to actual needs
  • the status information includes different types of status parameters depending on the structure or working principle of the device to be searched.
  • the embodiments of the present application characterize the status of the device to be searched based on the status identification code, which greatly reduces the network resources required to transmit the original status data of the device to be searched.
  • the running information of the device to be found also includes the device name, device type, serial number, etc. of the device to be found.
  • Step S23 Broadcast the operation information.
  • An exemplary embodiment of this application broadcasts the operating information, including:
  • the status information includes at least one status identification code string matching the status identification code
  • the address information includes a string that matches the IP address. IP address string and MAC address string matching the MAC address; perform interval processing on the IP address string, MAC address string and each status identification code string to obtain the data packet to be broadcast;
  • the IP address string, the MAC address string and each of the status identification code strings are separated based on commas;
  • the running information includes an IP address string, a MAC address string, a first status identification code string, a second status identification code string, a third status identification code string, a device type string, and a device name character.
  • String and serial number string ;
  • IP address string IP address string, MAC address string, first status identification code string, second status identification code string, third status identification code string, device type string, device name string, sequence Hao Zi String;
  • IP address string IP address string
  • MAC address string third status identification string
  • device type string device name string
  • serial number string first status identification string
  • first status identification string second status identification code string
  • the final sequential position of the string in the data packet to be broadcast is random.
  • the embodiments of the present application do not specifically limit this.
  • 0x5A is filled in the frame header of the data packet to be broadcast
  • 0x0D is filled in the frame tail of the data packet to be broadcast
  • Packets are broadcast within the LAN based on UDP.
  • a data packet to be broadcast can be:
  • 0x5A serial number string, first status identification code string, second status identification code string, IP address string, MAC address string, third status identification code string, device type string, device Name string, 0x0D.
  • the device to be found when the data packet to be broadcast broadcast by the device to be found is received, the device to be found stops broadcasting its own data packet to be broadcast to the wide area network to save network resources; or when the device to be found is being replaced. After the working location is determined, repeat the above steps. After the trigger is successful, it will actively broadcast its own operating information to the local area network in the form of data packets to be broadcast, which is used to enable the new server to quickly find the device to be found. There is no need for the server to detect the updates of the devices on the local area network in real time.
  • an embodiment of the present application also provides a device search method, including:
  • Step S31 Monitor the data packets to be broadcast and obtain at least one data packet to be broadcast;
  • the server can monitor the data packets to be broadcast in real time and receive the monitored data packets to be broadcast.
  • Step S32 Analyze each of the data packets to be broadcast, obtain the operating information of the device to be found that matches each of the data packets to be broadcast, and compare the devices to be found that match each of the data packets to be broadcast.
  • the running information is displayed based on the window; wherein the running information at least includes status information and address information of each device to be found; the status information includes at least one status identification code; each status identification code is based on the Generate any status parameter of the device to be found;
  • the server parses the received data packet to be broadcast to obtain the operation information of the device to be found that matches the data packet to be broadcast; because the operation information at least includes the address information and status information of the device to be found. , therefore, after the server completes the analysis of the broadcast data, it can obtain the IP address, MAC address and status identification code of the device to be found;
  • the status identification code corresponding to the real-time temperature of the device to be searched is 1;
  • the status identification code corresponding to the cooling fan speed of the device to be searched is 1;
  • the status identification code corresponding to the network connection status of the device to be found is 1;
  • the server can confirm that the device to be found is in normal operation.
  • the status identification code corresponding to the real-time temperature of the device to be searched is 1;
  • the status identification code corresponding to the cooling fan speed of the device to be searched is 2;
  • the status identification code corresponding to the network connection status of the device to be found is 1;
  • the server can confirm that the cooling fan of the device to be found is running abnormally.
  • the status identification code corresponding to the real-time temperature of the device to be searched is 1;
  • the status identification code corresponding to the cooling fan speed of the device to be searched is 2;
  • the status identification code corresponding to the network connection status of the device to be found is 2;
  • the server can confirm that the cooling fan and network connection of the device to be found are operating abnormally.
  • the server After the server completes the analysis of the operation information of the device to be searched, it can obtain whether the device to be searched is running normally. If an abnormality occurs, it can also quickly determine the abnormal component based on the abnormal status identification code. , in order to facilitate the maintenance and management of multiple devices to be found in the local area network based on the server.
  • the server after the server obtains a data packet to be broadcast, it can feedback to the device to be found that matches the data packet to be broadcast that it has received the data to be broadcast based on the IP address and MAC address obtained through analysis. Packet success information notifies the device to be found that it can stop broadcasting data packets containing its own operating information to the local area network to save resources.
  • the server is provided with a window, and the window can be set with control keys for communicating with the device to be found based on the network.
  • the analysis result can be The display is based on the window. Therefore, the user can quickly obtain the operating information such as the address information and status information of each device to be found in the current LAN based on the window.
  • the window can be used for device query. Specifically, the window can The time to obtain the running information is displayed, and the model (device type), IP address and MAC address of the device to be searched can also be displayed.
  • the control key can be activated to establish a data transmission channel between the server window and the device to be found.
  • the device to be found can transmit data based on the established data transmission.
  • the channel feeds back its own status parameters to the window of the server, thereby realizing that the server can obtain the real-time running status parameters of any device to be found in real time, and based on the window, it can obtain the real-time running status parameters of any device to be found. to display.
  • the server's window interface can set a filter key.
  • the window interface pops up a filter interface.
  • the filter interface at least includes a good status key and an abnormal status key for the user to choose;
  • the server determines the running status of each device to be found based on the obtained status identification code of each device to be found, and based on the determination result, determines the device to be found that is currently running in good condition. , and then sends the IP address of each device to be found in good condition to the window for display, enabling the user to perform multiple IP addresses of the devices to be found on the server based on the current operating status of each device to be found. Filter and perform subsequent control and other operations.
  • Step S33 Determine the device to be controlled based on the operating information of each device to be found;
  • determining the device to be controlled based on the operating information of each device to be found includes:
  • each device to be found group the status information of each device to be found to obtain multiple device sets to be found; wherein each status identification code is based on the device to be found. Find any one of the device's network connection status, cooling fan speed and real-time temperature;
  • the device to be controlled is determined based on a plurality of device sets to be found.
  • the server monitors the multiple devices to be found based on the status information contained in the data packets to be broadcast.
  • the devices to be found are classified to obtain multiple sets of devices to be found, where each set of devices to be found includes at least one device to be found.
  • the server can filter the multiple device sets to be found according to the actual needs of the user, select any one or more of them for control, and then based on any one or multiple device sets to be found, Determine the device to be controlled.
  • embodiments of the present application can group multiple devices to be found based on preset rules.
  • the preset rules can be to determine the set of devices to be found to which each device to be found belongs based on the MAC address; or the preset rules The set of devices to be found for each device to be found may be determined based on the address range of the IP address, etc.
  • Step S34 Control the device to be controlled based on the operating information of the device to be controlled.
  • the server can obtain the IP address of each device to be found based on the data packets to be broadcast. Therefore, when the server needs to obtain the IP address of a device to be found, When searching for a device for management or control, the IP address of the device to be controlled is obtained, and then the IP address of the device to be controlled is input into the browser of the server, and the WEB management control interface is logged in, which is used to implement various operations on the device to be controlled. Control (including temperature control, etc.).
  • the server can determine the operating status of each device to be found based on the status information of each device to be found, such as: normal or Exception; further, the server can control or manage each device to be found based on the operating status of each device to be found, for example, it can obtain the status identification code of the device to be found. For example, the server can control or manage the device to be found as follows based on the status identification code of the device to be found:
  • the status identification code corresponding to the network connection status in the device to be found is 2, then the server can notify the user of the The network of the device to be found is maintained and restored to normal, reducing the transmission of a large amount of redundant information and saving network resources.
  • the device to be found when there are multiple devices to be found in the local area network, the device to be found actively reports its own operation information to the server, so that the server can quickly find all the devices to be found in the current local area network. , and manage and control each device to be found; and during the search process, there is no need to confirm the operating status of the device to be found multiple times.
  • the embodiment of the present application also provides a device search device 50, which includes:
  • the first acquisition module 51 is used to acquire trigger information
  • the second acquisition module 52 is used to obtain the operation information of the device to be found based on the trigger information; wherein the operation information at least includes status information and address information of the device to be found; the status information includes at least one status Identification code; each status identification code is generated based on any status parameter of the device to be found;
  • Broadcast module 53 is used to broadcast the operation information.
  • the obtaining trigger information includes:
  • the posture information of the trigger button wherein the device to be found is provided with the trigger button; the posture information of the trigger button includes a reset posture and a pressing posture; based on the posture information of the trigger button, the trigger The posture of the button is judged; when the trigger button is in the pressing posture, the trigger information is obtained; or
  • Obtain a trigger password and obtain the trigger information based on the trigger password; wherein the trigger password is obtained based on the trigger button or the device management interface.
  • obtaining the operating information of the device to be found based on the trigger information includes:
  • the operating status of the device to be found is identified to obtain the status information of the device to be found; the status information at least includes the network connection status, cooling fan speed and real-time temperature of the device to be found. Any one; Obtain at least one state parameter of the device to be found based on the state information; Compare each state parameter with the state parameter threshold to obtain a comparison result; According to the comparison As a result, the state identification code matching each of the state parameters is obtained;
  • the operating information of the device to be found is obtained.
  • the broadcasting of the running information includes:
  • the status information includes at least one status identification code string matching the status identification code
  • the address information includes a string that matches the IP address. IP address string and MAC address string matching the MAC address; perform interval processing on the IP address string, MAC address string and each status identification code string to obtain the data packet to be broadcast;
  • the embodiment of the present application also provides a device search device 60, which includes:
  • the listening module 61 is used to monitor the data packets to be broadcast and obtain at least one of the data packets to be broadcast;
  • the parsing module 62 is used to parse each of the data packets to be broadcast, obtain the operating information of the device to be found that matches each of the data packets to be broadcast, and analyze the data packets that match each of the data packets to be broadcast.
  • the operation information of the device to be found is displayed based on the window; wherein the operation information at least includes status information and address information of each device to be found; the status information includes at least one status identification code; each status identification code The code is generated based on any status parameter of the device to be found;
  • Determining module 63 configured to determine the device to be controlled based on the operating information of each device to be found
  • the control module 64 is configured to control the device to be controlled based on the operating information of the device to be controlled.
  • determining the device to be controlled based on the operating information of each device to be found includes:
  • each device to be found group the status information of each device to be found to obtain multiple device sets to be found; wherein each status identification code is based on the device to be found. Find any one of the device's network connection status, cooling fan speed and real-time temperature;
  • the device to be controlled is determined based on a plurality of device sets to be found.
  • Embodiments of the present application also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor.
  • a processor executes the computer program, the above is implemented. the method described.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute as described above. method described.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Non-exhaustive list of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as this may be performed, for example, by optical scanning of the paper or other medium, followed by editing, interpretation, or in other suitable manner if necessary Process to obtain the program electronically and then store it in computer memory.
  • various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof.
  • various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal.
  • Discrete logic circuits application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

Abstract

本申请公开了一种设备查找方法、装置、设备及存储介质,其中,所述方法包括:获取触发信息;基于所述触发信息,获取待查找设备的运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;对所述运行信息进行广播。

Description

设备查找方法、装置、设备及存储介质
相关申请的交叉引用
本申请要求于2022年09月08日提交的,申请名称为“设备查找方法、装置、设备及存储介质”的中国专利申请号为“202211092315.4”的优先权,该中国专利申请的全部内容通过引用结合在本申请中。
技术领域
本申请属于设备管理技术领域,尤其涉及一种设备查找方法、装置、设备及存储介质。
背景技术
目前,许多设备的控制,是由设备的网站(website,WEB)管理来实现的,在日常维护多台集群设备的场景中,需要快速准确地知道要控制设备的网际互联协议(Internet Protocol,IP)地址,通过在浏览器中输入IP地址连接设备的WEB控制端,实现设备的操作和控制。因此设备的IP地址快速获取显得尤为重要。
但是,为了方便快速部署管理,目前,很多设备在局域网中通过自动获得IP地址,选择设备;如果设备有串口,则需要一台一台的串口连接设备,使用指令查看,并且好多设备都没有外置串口,甚至需要拆机连接串口;如果没有串口,则需要反复插拔网线,在路由器中排查;此外,在获得设备的IP地址后,还需要与设备多次通信以确认设备的状态,过程相对繁琐;因此,自动获取设备的IP地址,或者根据IP地址查找设备,非常不便。
技术解决方案
本申请的一些实施方式提供了可至少部分解决现有技术中存在的上述问题的设备查找方法、装置、设备及存储介质。
根据本申请的一个方面,提供一种设备查找方法,包括:获取触发信息;基于所述触发信息,获取待查找设备运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;对所述运行信息进行广播。
在本申请一个实施方式中,所述获取触发信息,包括:获取触发按键的姿态信息;其中,所述待查找设备设有所述触发按键;所述触发按键的姿态信息包括复位姿态以及按压姿态;基于所述触发按键的所述姿态信息,对所述触发按键的姿态进行判断;当所述触发按键处于所述按压姿态,则获取所述触发信息;或获取触发密码,并基于所述触发密码获取所述触发信息;其中,所述触发密码基于所述触发按键获取或设备管理界面获取。
在本申请一个实施方式中,所述基于所述触发信息,获取待查找设备的运行信息,包括:基于所述触发信息,解析所述待查找设备的IP地址以及MAC地址,并获取所述待查找设备的所述地址信息;同时,对所述待查找设备的运行状态进行识别,获得所述待查找设备的所述状态信息;所述状态信息至少包括所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项;基于所述状态信息获得所述待查找设备的至少一个所述状态参数;将每个所述状态参数与所述状态参数阈值进行比对,获得比对结果;根据所述比对结果,获得与每个所述状态参数匹配的所述状态识别码;基于与每个所述状态参数匹配的所述状态识别码以及所述地址信息,获得所述待查找设备的所述运行信息。
在本申请一个实施方式中,所述对所述运行信息进行广播,包括:对所述状态信息以及地址信息进行处理,获得待广播数据包;其中,所述状态信息至少包括一个与所述状态识别码匹配的状态识别码字符串;所述地址信息包括与IP地址匹配的IP地址字符串以及与MAC地址匹配的MAC地址字符串;对所述IP地址字符串、MAC地址字符串以及每个所述状态识别码字符串进行间隔处理,获得所述待广播数据包;对所述待广播数据包进行广播。
本申请另一方面提供了一种设备查找方法,包括:对待广播数据包进行监听,并获取至少一个所述待广播数据包;对每个所述待广播数据包进行解析,获取与每个所述待广播数据包匹配的待查找设备的运行信息,并对与每个所述待广播数据包匹配的待查找设备的运行信息基于窗口进行显示;其中,所述运行信息至少包括每个所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;根据每个所述待查找设备的所述运行信息,确定待控制设备;基于所述待控制设备的所述运行信息,对所述待控制设备进行控制。
在本申请一个实施方式中,所述根据每个所述待查找设备的所述运行信息,确定待控制设备,包括:确定所述待查找设备的数量,获得总数量;将所述总数量与数量阈值进行比对;若所述总数量大于所述数量阈值,则对每个所述待查找设备的所述状态信息,进行分组,获得多个待查找设备集;其中,每个所述状态识别码基于所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项生成;基于多个所述待查找设备集,确定所述待控制设备。
本申请另一方面提供了一种设备查找装置,包括:第一获取模块,用于获取触发信息;第二获取模块,用于基于所述触发信息,获取待查找设备的运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;广播模块,用于对所述运行信息进行广播。
本申请另一方面提供了一种设备查找装置,包括:监听模块,用于对待广播数据包进行监听,并获取至少一个所述待广播数据包;解析模块,用于对每个所述待广播数据 包进行解析,获取与每个所述待广播数据包匹配的待查找设备的运行信息,并对与每个所述待广播数据包匹配的待查找设备的运行信息基于窗口进行显示;其中,所述运行信息至少包括每个所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;确定模块,用于根据每个所述待查找设备的所述运行信息,确定待控制设备;控制模块,用于基于所述待控制设备的所述运行信息,对所述待控制设备进行控制。
本申请再一方面提供了一种电子设备,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的方法。
本申请又一方面提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上所述的方法。
附图说明
结合附图,通过以下非限制性实施方式的详细描述,本申请的其它特征、目的和优点将变得更加明显。在附图中:
图1是本申请实施例提供的一种设备查找系统的结构示意图;
图2是本申请实施例提供的一种设备查找方法的一种流程示意图;
图3是本申请实施例提供的一种设备查找方法的另一种流程示意图;
图4是本申请实施例提供的一种窗口的显示界面示意图;
图5是本申请实施例提供的一种设备查找装置的一种结构示意图;
图6是本申请实施例提供的一种设备查找装置的另一种结构示意图。
具体实施方式
为了更好地理解本申请,将参考附图对本申请的每个方面做出更详细的说明。应理解,这些详细说明只是对本申请的示例性实施方式的描述,而非以任何方式限制本申请的范围。在说明书全文中,相同的附图标号指代相同的元件。表述“和/或”包括相关联的所列项目中的一个或多个的任何和全部组合。
应注意,在本说明书中,第一、第二、第三等的表述仅用于将一个特征与另一个特征区分开来,而不表示对特征的任何限制。
还应理解的是,用语“包括”、“包括有”、“具有”、“包含”和/或“包含有”,当在本说明书中使用时表示存在所陈述的特征、元件和/或部件,但不排除存在或附加有一个或多个其它特征、元件、部件和/或它们的组合。此外,当诸如“...中的至少一个”的表述出现在所列特征的列表之后时,修饰整个所列特征,而不是修饰列表中的单独元件。此外,当描述本申请的实施方式时,使用“可”表示“本申请的一个或多个实施方式”。并且,用语“示例性的”旨在指代示例或举例说明。
除非另外限定,否则本文中使用的所有用语(包括技术用语和科学用语)均具有与本申请所属领域普通技术人员的通常理解相同的含义。还应理解的是,用语(例如在常用词典中定义的用语)应被解释为具有与它们在相关技术的上下文中的含义一致的含义,并且将不被以理想化或过度形式化解释,除非本文中明确如此限定。
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。
以下对本申请的特征、原理和其它方面进行详细描述。
为了便于本领域的技术人员对实施例的理解,对部分用语进行解释:
(1)MAC地址:Media Access Control Address,媒体存取控制地址。
(2)UDP:User Datagram Protocol,用户数据报协议。
如图1所示,本申请的实施例提供一种设备查找系统,包括:
多个待查找设备;
服务端;
其中,在局域网内设有多个待查找设备,具体可以包括:第一待查找设备、第二待查找设备……第N查找设备;N为正整数;
N个待查找设备基于网络与服务端实现数据交互,具体的,待查找设备基于触发,主动将自身的运行信息上报至服务端,使得服务端可以快速查找到自己并获得自己的相关的运行信息;其中,运行信息可以包括状态信息以及地址信息;
例如,第一待查找设备被触发,则第一待查找设备识别到自己被触发之后,则主动将自身,也即第一待查找设备自身的当前的运行信息上报至服务端;
本申请一示例性实施例,为了实现某个待查找设备被成功触发,可以在待查找设备上设置至少一个触发按键;
当仅仅设置一个触发按键的时候,则可以基于触发按键的姿态判断,某个待查找设备是否被成功地触发;当触发按键设有多个的时候,则可以判断基于触发按键获得的触发密码是否正确,判断某个待查找设备是否被成功触发。
进一步地,还可以设置一个控制按键,并预设延迟时间/周期时间,也即在控制按键被按压以后,等待一个延迟时间/周期时间,再对触发按键进行按压,实现了待查找设备基于延迟或周期循环的形式,主动向服务端发送待广播数据包。
本申请一示例性实施例,为了实现某个待查找设备被成功触发,还可以在待查找设备的外侧设置设备管理锁,并基于与设备管理锁匹配的钥匙,对设备管理锁进行触发。
本申请一示例性实施例,为了实现某个待查找设备被成功触发,还可以基于网络对某个待查找设备进行远程触发控制,当某个待查找设备获取到触发密码之后,根据获取到的触发密码是否正确,判断,某个待查找设备是否被成功触发。
本申请一示例性实施例,可以在触发按键或者钥匙上设有通信单元;其中,通信单元可以与服务端基于网络实现通信连接;当服务端接收到某个待广播数据包,并对该待广播数据包解析成功之后,则将包含解析成功的确认信息发送至通信单元;
具体的,可以预设等待时间,若在等待时间内,通信模块未获取到服务端发送至的确认信息,则待查找设备可以通过携带的提示灯,对服务端进行提示未获得确认信息;或者待查找设备也可以直接启动通信单元,将待广播数据包重新发送至服务端。
当某个待查找设备,例如,第M个待查找设备,确认自身被成功触发,则第M个待查找设备将自身当前的运行信息主动上报至服务端;
服务端在获取第M个待查找设备的运行信息之后,对运行信息进行解析,在解析成功后,即实现了快速查找到第M个待查找设备,并可以获得第M个待查找设备当前的运行状态(包括,运行正常/异常/某个部件出现异常等);其中,M为正整数,且M≤N。
本申请的实施例,服务端可以基于电脑或者智能手机等具备上述功能的设备实现,本申请的实施例对此不做具体的限定。
本申请的实施例,待查找设备可以基于触发,主动向服务端上报自身的运行信息,可以实现服务端快速便捷地对局域网内的待查找设备进行查找,并获得待查找设备的运行信息。
如图2所示,本申请的实施例提供一种设备查找方法,包括:
步骤S21:获取触发信息;
本申请的实施例,为了实现快速查找到局域网内的待查找设备,以便于对每个待查找设备进行管理,待查找设备主动将自身当前的运行信息,并进行上报,避免对待查找设备逐一进行查找,简单快速。
本申请一示例性实施例,所述获取触发信息,包括:
获取触发按键的姿态信息;其中,所述待查找设备设有所述触发按键;所述触发按键的姿态信息包括复位姿态以及按压姿态;基于所述触发按键的所述姿态信息,对所述触发按键的姿态进行判断;当所述触发按键处于所述按压姿态,则获取所述触发信息;或
获取触发密码,并基于所述触发密码获取所述触发信息;其中,所述触发密码基于所述触发按键获取或设备管理界面获取。
本申请一示例性实施例,获取自身的触发按键的姿态信息,并对姿态信息进行解析,获得当前触发按键所处的姿态,当触发按键处于按压姿态,则待查找设备获取触发信息;具体的,触发信息包括触发成功或者成功失败;
也即,当触发按键处于按压姿态,则待查找设备获取触发成功的触发信息。
进一步地,根据实际需要,可以预设检测间隔,例如,每2s进行一次检测,具体的,对待查找设备的触发按键所处的姿态进行检测,对应的,可以基于检测间隔对触发按键进行按压。
本申请一示例性实施例,当待查找设备获取到触发密码,则待查找设备将获取到的触发密码与参考密码(正确的密码)进行比对,若触发密码与参考密码一致,则待查找设备获得触发成功的触发信息;若触发密码与参考密码不一致,则待查找设备获得触 发失败的触发信息。
进一步地,上述触发密码可以基于触发按键获得,也可以基于与待查找设备通过网络连接的设备管理界面获得,用于减少设备结构对本申请的实施例的实现的限制,扩大本申请的实施例的适用范围。
进一步地,还可以每隔一个检测间隔,获取一次触发密码,若待查找设备未获取到触发密码,则待查找设备获取触发失败的触发信息,并不断地循环上述过程。
步骤S22:基于所述触发信息,获取待查找设备的运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
本申请一示例性实施例,所述基于所述触发信息,获取待查找设备的运行信息,包括:
基于所述触发信息,解析所述待查找设备的IP地址以及MAC地址,并获取所述待查找设备的所述地址信息;
同时,对所述待查找设备的运行状态进行识别,获得所述待查找设备的所述状态信息;所述状态信息至少包括所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项;基于所述状态信息获得所述待查找设备的至少一个所述状态参数;将每个所述状态参数与所述状态参数阈值进行比对,获得比对结果;根据所述比对结果,获得与每个所述状态参数匹配的所述状态识别码;
基于与每个所述状态参数匹配的所述状态识别码以及所述地址信息,获得所述待查找设备的所述运行信息。
本申请的实施例,当待查找设备获取到触发成功的触发信息之后,则解析自身的IP地址以及MAC地址,获得解析结果;基于解析结果获得待查找设备自身的地址信息;
同时,待查找设备获得自身的当前状态信息,状态信息包括但不限于网络连接状态、散热风扇转速以及实时温度;
在待查找设备获得自身的当前状态信息之后,则对状态信息进行解析,获得待查找设备的至少一个状态参数;
其中,网络连接状态对应的状态参数为:网速的具体值;
散热风扇转速对应的状态参数为:转速的具体值;
实时温度对应的状态参数为:温度的具体值;
进一步地,根据实际需要,预设状态参数阈值,例如:温度阈值、转速阈值以及网速阈值;其中,温度阈值、转速阈值以及网速阈值,均可以为一个区间;
待查找设备在获得自身的状态参数之后,则将每个状态参数与预设的状态参数阈值进行比对,并获得比对结果;
例如:1)当状态参数包括温度的具体值,则将获得的温度的具体值与温度阈值进行比对,若温度的具体值未落入温度阈值范围内,则表明待查找设备当前的温度过高或过低,因此,实时温度对应的状态识别码为2;
若温度的具体值落入温度阈值的范围内,则表明待查找设备当前的温度正常,因此,实时温度对应的状态识别码为1。
2)当状态参数包括散热风扇的具体值,则将获得的散热风扇转速的具体值与转速阈值进行比对,若散热风扇转速的具体值未落入转速阈值范围内,则表明待查找设备当前的转速过高或过低,因此,散热风扇转速对应的状态识别码为2;
若散热风扇转速的具体值落入温度阈值的范围内,则表明待查找设备当前的转速正常,因此,散热风扇转速对应的状态识别码为1。
3)当状态参数包括网速的具体值,则将获得的网速的具体值与网速阈值进行比对,若网速的具体值未落入网速阈值范围内,则表明待查找设备当前的转速过高或过低,因此,网络连接状态对应的状态识别码为2;
若网速的具体值落入网速阈值的范围内,则表明待查找设备当前的网络连接状态正常,因此,网络连接状态对应的状态识别码为1。
其中,状态识别码对应的具体值或者表征方式,可以根据实际需要进行设定或者调整;
进一步地,状态信息根据待查找设备的结构或者工作原理的不同,所包括的状态参数的种类也不相同。
本申请的实施例,基于状态识别码对待查找设备的状态进行表征,大大减少了传输待查找设备的原始状态数据所需的网络资源。
本申请一示例性实施例,为了便于后续算法的调用,以及对待查找设备的查找和控制,待查找设备的运行信息还包括待查找设备的设备名称、设备类型以及序列号等。
步骤S23:对所述运行信息进行广播。
本申请一示例性实施例,对所述运行信息进行广播,包括:
对所述状态信息以及地址信息进行处理,获得待广播数据包;其中,所述状态信息至少包括一个与所述状态识别码匹配的状态识别码字符串;所述地址信息包括与IP地址匹配的IP地址字符串以及与MAC地址匹配的MAC地址字符串;对所述IP地址字符串、MAC地址字符串以及每个所述状态识别码字符串进行间隔处理,获得所述待广播数据包;
对所述待广播数据包进行广播。
本申请的实施例,对所述IP地址字符串、MAC地址字符串以及每个所述状态识别码字符串,基于逗号进行间隔处理;
例如,运行信息包括IP地址字符串、MAC地址字符串、第一个状态识别码字符串、第二个状态识别码字符串、第三个状态识别码字符串、设备类型字符串、设备名称字符串以及序列号字符串;
则可以获得如下待广播数据包:
1)IP地址字符串,MAC地址字符串,第一个状态识别码字符串,第二个状态识别码字符串,第三个状态识别码字符串,设备类型字符串,设备名称字符串,序列号字 符串;
2)IP地址字符串,MAC地址字符串,第三个状态识别码字符串,设备类型字符串,设备名称字符串,序列号字符串,第一个状态识别码字符串,第二个状态识别码字符串;
3)序列号字符串,第一个状态识别码字符串,第二个状态识别码字符串,IP地址字符串,MAC地址字符串,第三个状态识别码字符串,设备类型字符串,设备名称字符串;
也即,本申请的实施例,对于运行信息所包括的多个不同类型的字符串,在进行待广播数据包组装的时候,字符串最终在待广播数据包中所处的顺序位置为随机的,本申请的实施例对此不做具体的限定。
进一步地,为了实现待广播数据包可以正常上报,在待广播数据包的帧头填充0x5A,在待广播数据包的帧尾填充0x0D,拼接成一个完整数据包,并对拼接获得的待广播数据包基于UDP在局域网内进行广播。
例如:一个待广播数据包可以为:
0x5A,序列号字符串,第一个状态识别码字符串,第二个状态识别码字符串,IP地址字符串,MAC地址字符串,第三个状态识别码字符串,设备类型字符串,设备名称字符串,0x0D。
本申请一示例性实施例,当待查找设备广播的待广播数据包被接收,则待查找设备停止向广域网内广播自身的待广播数据包,用于节省网络资源;或者当待查找设备在更换了工作位置之后,则重复上述步骤,在触发成功后,主动将自身的运行信息以待广播数据包的形式向所处的局域网进行广播,用于实现新的服务端快速查找到待查找设备,无需服务端实时检测所处局域网的设备的更新情况。
如图3所示,本申请的实施例还提供一种设备查找方法,包括:
步骤S31:对待广播数据包进行监听,并获取至少一个所述待广播数据包;
本申请的实施例,根据对局域网内的多个设备的管理的需要,服务端可以实时对待广播数据包进行监听,并对监听到的待广播数据包进行接收。
步骤S32:对每个所述待广播数据包进行解析,获取与每个所述待广播数据包匹配的待查找设备的运行信息,并对与每个所述待广播数据包匹配的待查找设备的运行信息基于窗口进行显示;其中,所述运行信息至少包括每个所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
本申请的实施例,服务端对接收到的待广播数据包进行解析,用于获得与待广播数据包匹配的待查找设备的运行信息;由于运行信息至少包括待查找设备的地址信息以及状态信息,因此,服务端在完成对广播数据的解析之后,则可以获得待查找设备的IP地址、MAC地址以及状态识别码;
例如:1)待查找设备的实时温度对应的状态识别码为1;
待查找设备的散热风扇转速对应的状态识别码为1;
待查找设备的网络连接状态对应的状态识别码为1;
则服务端可以确认该待查找设备处于正常运行状态。
2)待查找设备的实时温度对应的状态识别码为1;
待查找设备的散热风扇转速对应的状态识别码为2;
待查找设备的网络连接状态对应的状态识别码为1;
则服务端可以确认该待查找设备的散热风扇运行异常。
3)待查找设备的实时温度对应的状态识别码为1;
待查找设备的散热风扇转速对应的状态识别码为2;
待查找设备的网络连接状态对应的状态识别码为2;
则服务端可以确认该待查找设备的散热风扇以及网络连接均运行异常。
依次类推,本申请的实施例,服务端在完成对待查找设备的运行信息的解析之后,可以获得待查找设备是否正常运行,若出现异常,也可以根据异常的状态识别码,快速确定异常的部件,以便于基于服务端对局域网中的多个待查找设备进行维护与管理。
本申请一示例性实施例,服务端在获取一个待广播数据包之后,则可以基于解析获得的IP地址以及MAC地址,并向与待广播数据包匹配的待查找设备反馈已收到待广播数据包成功的信息,通知待查找设备可以停止向局域网内广播包含自身的运行信息的待广播数据包,用于节省资源。
本申请一示例性实施例,服务端设有窗口,窗口可以设置用于与待查找设备基于网络进行通信的控制键,当服务端完成对获取的待广播数据包的解析之后,可以将解析结果基于窗口进行显示,因此,用户可以基于窗口快速获得当前局域网内,每个待查找设备的地址信息以及状态信息等运行信息;如图4所示,窗口可以用于设备查询,具体的,窗口可以对获取运行信息的时间进行显示,还可以对待查找设备的机型(设备类型)、IP地址以及MAC地址进行显示。
进一步地,当用户需要基于服务端获取某个待查找设备的状态参数的时候,则可以启动控制键,建立服务端的窗口与该待查找设备进行数据传输的通道,待查找设备基于建立的数据传输的通道,将自身的状态参数,反馈至服务端的窗口,进而实现了服务端可以实时获得任意一个待查找设备的实时运行的状态参数,并基于窗口对任意一个待查找设备的实时运行的状态参数进行显示。
进一步地,服务端的窗口界面可以设置筛选键,当用户基于服务端的窗口界面触发筛选键,则窗口界面弹出筛选界面,筛选界面至少包括状态良好键以及状态异常键,以供用户选择;
具体的,当用户触发状态良好键,则服务端基于获得的每个待查找设备的状态识别码,确定每个待查找设备的运行状态,并基于确定结果,确定当前运行状态良好的待查找设备,然后将每个状态良好的待查找设备的IP地址发送至窗口,进行显示,实现了用户基于每个待查找设备的当前运行状态对服务端的多个待查找设备的IP地址进行 筛选,并进行后续的控制等操作。
步骤S33:根据每个所述待查找设备的所述运行信息,确定待控制设备;
本申请一示例性实施例,所述根据每个所述待查找设备的所述运行信息,确定待控制设备,包括:
确定所述待查找设备的数量,获得总数量;
将所述总数量与数量阈值进行比对;
若所述总数量大于所述数量阈值,则对每个所述待查找设备的所述状态信息,进行分组,获得多个待查找设备集;其中,每个所述状态识别码基于所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项生成;
基于多个所述待查找设备集,确定所述待控制设备。
本申请的实施例,当服务端监听并获取了多个待查找设备的待广播数据包之后,为了便于对多个待查找设备进行管理,则基于待广播数据包所包含的状态信息对多个待查找设备进行分类,获得多个待查找设备集;其中,每个待查找设备集包括至少一个待查找设备。
在获得多个待查找设备集之后,则服务端可以根据用户实际需求对多个待查找设备集进行筛选,选择其中任意一个或者多个进行控制,进而基于任意一个或者多个待查找设备集,确定待控制设备。
进一步地,本申请的实施例,可以基于预设规则对多个待查找设备进行分组,例如,预设规则可以为根据MAC地址确定每个待查找设备所属的待查找设备集;或者预设规则可以为根据IP地址所述的地址范围确定每个待查找设备所述的待查找设备集等。
步骤S34:基于所述待控制设备的所述运行信息,对所述待控制设备进行控制。
本申请一示例性实施例,服务端在获得多个待查找设备的待广播数据包之后,基于待广播数据包可以获得每个待查找设备的IP地址,因此,当服务端需要对某个待查找设备进行管理或者控制的时候,则获得待控制设备的IP地址,然后将待控制设备的IP地址输入至服务端的浏览器中,并登录WEB管理控制界面,用于实现对待控制设备进行各类控制(包括温度控制等)。
本申请一示例性实施例,服务端在获得多个待查找设备的待广播数据包之后,可以实现基于每个待查找设备的状态信息,确定每个待查找设备的运行状态,例如:正常或异常;进一步地,服务端可以根据每个待查找设备的运行状态,例如,可以获取待查找设备的状态识别码,对每个待查找设备进行控制或管理。示例性地,服务端可以基于待查找设备的状态识别码对待查找的设备进行如下的控制或管理:
1)待查找设备中的散热风扇转速对应的状态识别码为2,则服务端调整控制待查找设备的散热风扇转速,使得待查找设备的散热风扇转速对应的状态识别码为1;
2)待查找设备中的实时温度对应的状态识别码为2,则服务端调整控制待查找设备的散热风扇转速,使得待查找设备的实时温度对应的状态识别码为1;
3)待查找设备中的网络连接状态对应的状态识别码为2,则服务端可通知用户对 待查找设备的网络进行维护,并使其恢复正常,减少了大量冗余信息的传输,节省网络资源。
本申请的实施例,当局域网内设有多个待查找设备的时候,基于待查找设备主动将自身的运行信息上报至服务端,可以实现服务端快速查找到当前局域网内的所有的待查找设备,并对每个待查找设备进行管理和控制;且在查找的过程中,无需多次确认待查找设备的运行状态。
如图5所示,本申请的实施例还提供一种设备查找装置50,包括:
第一获取模块51,用于获取触发信息;
第二获取模块52,用于基于所述触发信息,获取待查找设备的运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
广播模块53,用于对所述运行信息进行广播。
示例性,所述获取触发信息,包括:
获取触发按键的姿态信息;其中,所述待查找设备设有所述触发按键;所述触发按键的姿态信息包括复位姿态以及按压姿态;基于所述触发按键的所述姿态信息,对所述触发按键的姿态进行判断;当所述触发按键处于所述按压姿态,则获取所述触发信息;或
获取触发密码,并基于所述触发密码获取所述触发信息;其中,所述触发密码基于所述触发按键获取或设备管理界面获取。
示例性,所述基于所述触发信息,获取待查找设备的运行信息,包括:
基于所述触发信息,解析所述待查找设备的IP地址以及MAC地址,并获取所述待查找设备的所述地址信息;
同时,对所述待查找设备的运行状态进行识别,获得所述待查找设备的所述状态信息;所述状态信息至少包括所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项;基于所述状态信息获得所述待查找设备的至少一个所述状态参数;将每个所述状态参数与所述状态参数阈值进行比对,获得比对结果;根据所述比对结果,获得与每个所述状态参数匹配的所述状态识别码;
基于与每个所述状态参数匹配的所述状态识别码以及所述地址信息,获得所述待查找设备的所述运行信息。
示例性,所述对所述运行信息进行广播,包括:
对所述状态信息以及地址信息进行处理,获得待广播数据包;其中,所述状态信息至少包括一个与所述状态识别码匹配的状态识别码字符串;所述地址信息包括与IP地址匹配的IP地址字符串以及与MAC地址匹配的MAC地址字符串;对所述IP地址字符串、MAC地址字符串以及每个所述状态识别码字符串进行间隔处理,获得所述待广播数据包;
对所述待广播数据包进行广播。
如图6所示,本申请的实施例还提供一种设备查找装置60,包括:
监听模块61,用于对待广播数据包进行监听,并获取至少一个所述待广播数据包;
解析模块62,用于对每个所述待广播数据包进行解析,获取与每个所述待广播数据包匹配的待查找设备的运行信息,并对与每个所述待广播数据包匹配的待查找设备的运行信息基于窗口进行显示;其中,所述运行信息至少包括每个所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
确定模块63,用于根据每个所述待查找设备的所述运行信息,确定待控制设备;
控制模块64,用于基于所述待控制设备的所述运行信息,对所述待控制设备进行控制。
示例性,所述根据每个所述待查找设备的所述运行信息,确定待控制设备,包括:
确定所述待查找设备的数量,获得总数量;
将所述总数量与数量阈值进行比对;
若所述总数量大于所述数量阈值,则对每个所述待查找设备的所述状态信息,进行分组,获得多个待查找设备集;其中,每个所述状态识别码基于所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项生成;
基于多个所述待查找设备集,确定所述待控制设备。
本申请的实施例还提供一种电子设备,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的方法。
本申请的实施例还提供一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上所述的方法。
另外,本申请实施例的装置的其他构成及作用对本领域的技术人员来说是已知的,为减少冗余,此处不做赘述。
需要说明的是,在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外, 计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的申请范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离申请构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (10)

  1. 一种设备查找方法,包括:
    获取触发信息;
    基于所述触发信息,获取待查找设备的运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
    对所述运行信息进行广播。
  2. 根据权利要求1所述的方法,其中,所述获取触发信息,包括:
    获取触发按键的姿态信息;其中,所述待查找设备设有所述触发按键;所述触发按键的姿态信息包括复位姿态以及按压姿态;基于所述触发按键的所述姿态信息,对所述触发按键的姿态进行判断;当所述触发按键处于所述按压姿态,则获取所述触发信息;或
    获取触发密码,并基于所述触发密码获取所述触发信息;其中,所述触发密码基于所述触发按键获取或设备管理界面获取。
  3. 根据权利要求1所述的方法,其中,所述基于所述触发信息,获取待查找设备的运行信息,包括:
    基于所述触发信息,解析所述待查找设备的IP地址以及MAC地址,并获取所述待查找设备的所述地址信息;
    同时,对所述待查找设备的运行状态进行识别,获得所述待查找设备的所述状态信息;所述状态信息至少包括所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项;基于所述状态信息获得所述待查找设备的至少一个所述状态参数;将每个所述状态参数与所述状态参数阈值进行比对,获得比对结果;根据所述比对结果,获得与每个所述状态参数匹配的所述状态识别码;
    基于与每个所述状态参数匹配的所述状态识别码以及所述地址信息,获得所述待查找设备的所述运行信息。
  4. 根据权利要求1所述的方法,其中,所述对所述运行信息进行广播,包括:
    对所述状态信息以及地址信息进行处理,获得待广播数据包;其中,所述状态信息至少包括一个与所述状态识别码匹配的状态识别码字符串;所述地址信息包括与IP地址匹配的IP地址字符串以及与MAC地址匹配的MAC地址字符串;对所述IP地址字符串、MAC地址字符串以及每个所述状态识别码字符串进行间隔处理,获得所述待广播数据包;
    对所述运行信息进行广播。
  5. 一种设备查找方法,包括:
    对待广播数据包进行监听,并获取至少一个所述待广播数据包;
    对每个所述待广播数据包进行解析,获取与每个所述待广播数据包匹配的待查找设备的运行信息,并对与每个所述待广播数据包匹配的待查找设备的运行信息基于窗口进行显示;其中,所述运行信息至少包括每个所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
    根据每个所述待查找设备的所述运行信息,确定待控制设备;
    基于所述待控制设备的所述运行信息,对所述待控制设备进行控制。
  6. 根据权利要求5所述的方法,其中,所述根据每个所述待查找设备的所述运行信息,确定待控制设备,包括:
    确定所述待查找设备的数量,获得总数量;
    将所述总数量与数量阈值进行比对;
    若所述总数量大于所述数量阈值,则对每个所述待查找设备的所述状态信息,进行分组,获得多个待查找设备集;其中,每个所述状态识别码基于所述待查找设备的网络连接状态、散热风扇转速以及实时温度中的任意一项生成;
    基于多个所述待查找设备集,确定所述待控制设备。
  7. 一种设备查找装置,包括:
    第一获取模块,用于获取触发信息;
    第二获取模块,用于基于所述触发信息,获取待查找设备的运行信息;其中,所述运行信息至少包括所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
    广播模块,用于对所述运行信息进行广播。
  8. 一种设备查找装置,包括:
    监听模块,用于对待广播数据包进行监听,并获取至少一个所述待广播数据包;
    解析模块,用于对每个所述待广播数据包进行解析,获取与每个所述待广播数据包匹配的待查找设备的运行信息,并对与每个所述待广播数据包匹配的待查找设备的运行信息基于窗口进行显示;其中,所述运行信息至少包括每个所述待查找设备的状态信息以及地址信息;所述状态信息至少包括一个状态识别码;每个所述状态识别码基于所述待查找设备的任意一个状态参数生成;
    确定模块,用于根据每个所述待查找设备的所述运行信息,确定待控制设备;
    控制模块,用于基于所述待控制设备的所述运行信息,对所述待控制设备进行控制。
  9. 一种电子设备,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至4或5至6中任意一项所述的方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求1至4或5至6中任意一项所述的方法。
PCT/CN2023/078815 2022-09-08 2023-02-28 设备查找方法、装置、设备及存储介质 WO2024051112A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211092315.4 2022-09-08
CN202211092315.4A CN115168427B (zh) 2022-09-08 2022-09-08 设备查找方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024051112A1 true WO2024051112A1 (zh) 2024-03-14

Family

ID=83481751

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/078815 WO2024051112A1 (zh) 2022-09-08 2023-02-28 设备查找方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN115168427B (zh)
WO (1) WO2024051112A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115168427B (zh) * 2022-09-08 2022-11-25 中科声龙科技发展(北京)有限公司 设备查找方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243482A (zh) * 2014-09-24 2014-12-24 海信集团有限公司 一种智能设备控制方法及设备
CN104656531A (zh) * 2015-01-16 2015-05-27 张泽 一种智能设备的监控方法和装置
CN108156059A (zh) * 2018-02-09 2018-06-12 宁夏慧百通赢科技有限公司 智能家居设备的即时通信方法、装置和智能家居系统
CN108390795A (zh) * 2018-02-08 2018-08-10 广东美的制冷设备有限公司 家电设备及其监控方法、智慧家居系统及可读存储介质
CN110635977A (zh) * 2019-09-18 2019-12-31 青岛海信智慧家居系统股份有限公司 一种设备自检的方法及装置
CN115168427A (zh) * 2022-09-08 2022-10-11 中科声龙科技发展(北京)有限公司 设备查找方法、装置、设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392101B (zh) * 2014-10-29 2017-07-25 小米科技有限责任公司 数据共享方法及装置
CN106375979A (zh) * 2016-05-30 2017-02-01 深圳市美贝壳科技有限公司 快速发现局域网内智能设备状态的方法
CN113396561A (zh) * 2018-11-27 2021-09-14 区块链联合香港有限公司 运算设备维护方法及装置、存储介质和程序产品
EP3739915B1 (en) * 2019-05-16 2022-09-07 ABB Schweiz AG Sharing status data of a device
CN110673502B (zh) * 2019-10-14 2021-01-22 珠海格力电器股份有限公司 智能设备的快速响应方法及系统、存储介质和网络侧设备
CN112596406A (zh) * 2020-12-18 2021-04-02 深圳市欧瑞博科技股份有限公司 智能设备的控制方法、装置、控制面板以及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243482A (zh) * 2014-09-24 2014-12-24 海信集团有限公司 一种智能设备控制方法及设备
CN104656531A (zh) * 2015-01-16 2015-05-27 张泽 一种智能设备的监控方法和装置
CN108390795A (zh) * 2018-02-08 2018-08-10 广东美的制冷设备有限公司 家电设备及其监控方法、智慧家居系统及可读存储介质
CN108156059A (zh) * 2018-02-09 2018-06-12 宁夏慧百通赢科技有限公司 智能家居设备的即时通信方法、装置和智能家居系统
CN110635977A (zh) * 2019-09-18 2019-12-31 青岛海信智慧家居系统股份有限公司 一种设备自检的方法及装置
CN115168427A (zh) * 2022-09-08 2022-10-11 中科声龙科技发展(北京)有限公司 设备查找方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN115168427B (zh) 2022-11-25
CN115168427A (zh) 2022-10-11

Similar Documents

Publication Publication Date Title
US8879427B2 (en) Methods for updating the configuration of a programmable packet filtering device including a determination as to whether a packet is to be junked
US8619768B2 (en) Method for dynamic sensor network processing
US7516211B1 (en) Methods and apparatus to configure a communication port
WO2020020144A1 (zh) 链路切换方法、链路切换设备、网络通信系统以及计算机可读存储介质
WO2024051112A1 (zh) 设备查找方法、装置、设备及存储介质
US9742639B1 (en) Intelligent network resource discovery and monitoring
US20020080784A1 (en) Methods and systems using PLD-based network communication protocols
US20150319032A1 (en) Method and system for detecting changes in a network using simple network management protocol polling
US7430688B2 (en) Network monitoring method and apparatus
JP2000200232A (ja) インタラクティブネットワ―ク転送プロトコルサ―バを備えた非同期通知を結合するネットワ―ク装置
US20180062940A1 (en) Control of network nodes in computer network systems
CN111866030B (zh) 一种拟态边缘网关的工业协议识别装置及方法
CN110784373B (zh) 虚拟网络收敛方法及装置
WO2018049545A1 (zh) Sdn中数据处理方法、装置、系统、电子设备和计算机程序产品
WO2011153792A1 (zh) 一种运行状态的检测方法及系统
TW201800959A (zh) 用於物聯網的智能設備控制方法、裝置和設備
WO2015188490A1 (zh) 机顶盒修复方法、装置及系统
JP2011077920A (ja) 通信システム、端末装置、通信方法、及び通信プログラム
WO2023155699A1 (zh) 空口协议安全漏洞的挖掘方法、装置、移动终端
WO2016184222A1 (zh) 一种故障检测方法及装置
US11252064B2 (en) System and method for monitoring ingress/egress packets at a network device
CN116418567A (zh) 一种网络协议安全性测试系统
US8339955B2 (en) Out-of-band control of communication protocol in an in-line device
CN106301832B (zh) 一种处理系统日志报文的方法和装置
CN113852487A (zh) 用于促进自愈网络的方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23861820

Country of ref document: EP

Kind code of ref document: A1