CN118312389A - Counter device detection method, computer device and storage medium - Google Patents

Counter device detection method, computer device and storage medium Download PDF

Info

Publication number
CN118312389A
CN118312389A CN202410573732.3A CN202410573732A CN118312389A CN 118312389 A CN118312389 A CN 118312389A CN 202410573732 A CN202410573732 A CN 202410573732A CN 118312389 A CN118312389 A CN 118312389A
Authority
CN
China
Prior art keywords
counter
detection
devices
equipment
counter device
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
CN202410573732.3A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202410573732.3A priority Critical patent/CN118312389A/en
Publication of CN118312389A publication Critical patent/CN118312389A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application relates to a detection method of counter equipment, computer equipment and a storage medium. The method is applied to the computer equipment and comprises the following steps: loading drives corresponding to a plurality of counter devices; based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device; receiving detection results of all the counter devices through state monitoring interfaces in driving of all the counter devices; and determining whether each counter device is available according to the detection result of each counter device. The detection efficiency can be improved by adopting the method.

Description

Counter device detection method, computer device and storage medium
Technical Field
The present application relates to the technical field of financial science and technology or other related fields, and in particular, to a method for detecting counter equipment, computer equipment, and storage medium.
Background
In the current business scene of banks, various counter-surface external devices, including printers, scanners, audio and video equipment and the like, are required to be used for handling various counter-surface businesses. If the external equipment cannot be used normally during business handling, the whole business handling can be directly failed, and the work efficiency of the network points is affected. Therefore, various device manufacturers generally provide relevant interfaces for detecting the connection state of the device in the device driver at present, so that a user can conveniently detect whether the device is available.
The current equipment detection method mainly relies on manpower, requests are sent one by one according to an equipment list, detection interfaces of all the equipment are called, and the return of the detection interfaces is checked, so that whether the connecting equipment of the current host is normally available is judged. The detection method in this way is inefficient.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a counter device detection method, a computer device, a computer-readable storage medium, and a computer program product that can improve detection efficiency.
In a first aspect, the present application provides a method for detecting a counter device, where the method is applied to a computer device, and includes:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
After the drives corresponding to the plurality of counter devices are loaded, the method further comprises the steps of:
Based on the corresponding drive of each counter device, calling an initialization interface in the drive of each counter device to send an initialization instruction to each counter device;
receiving initialization result information of each counter device through a state monitoring interface in driving of each counter device;
In one embodiment, the calling, based on the corresponding driver of each counter device, the status monitoring interface in the driver of each counter device to send the availability detection request to each counter device includes:
And if the initialization result information of each counter device is consistent with the information represented by the initialization instruction, calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device.
In one embodiment, after the initializing interface in the driver of each counter device is called to send an initializing instruction to each counter device based on the driver corresponding to each counter device, the method further includes:
If initialization result information of the target counter equipment is not received after the preset time length, determining that the target counter equipment is unavailable;
Or alternatively, the first and second heat exchangers may be,
And if the initialization result information of the received target counter equipment is inconsistent with the information indicated by the initialization indication, determining that the target counter equipment is not available.
In one embodiment, the loading the drives corresponding to the plurality of counter devices includes:
If the unused time interval of the plurality of counter devices is larger than a preset time threshold, loading the corresponding drives of the plurality of counter devices;
the unused time interval is the time difference between the moment of calling the counter equipment last time and the current moment; the last time the counter equipment is called includes: the moment when the status monitoring interface sends the availability detection request in the driving of the counter equipment is called last time, or the moment when the user directly calls the counter equipment is detected last time.
In one embodiment, before the loading of the drives corresponding to the plurality of counter devices, the method further includes:
Displaying a detection interface, wherein the detection interface comprises: the system comprises a global detection control and independent detection controls, wherein the global detection control is used for triggering and detecting the availability of all counter devices associated with the computer equipment, and different detection controls in the independent detection control are used for triggering and detecting the availability of different counter devices associated with the computer equipment;
If the selection operation of the user for the target detection control is detected, loading the drivers corresponding to the plurality of counter devices;
the target detection control is the global detection control, the plurality of counter devices are all devices associated with the computer device, or the target detection control is a plurality of independent detection controls.
In one embodiment, after determining whether the respective counter devices are available according to the detection results of the respective counter devices, the method further includes:
displaying the detection result of each counter device in a device state interface;
Wherein, the detection result comprises: the available state information or the detection result comprises the following steps: status information of unavailability and reasons for unavailability;
And if the detection result of the target counter equipment comprises the unavailable state information and the unavailable reason, outputting a warning popup window, wherein the warning popup window is used for prompting that the target counter equipment is abnormal.
In a second aspect, the present application also provides a computer device comprising:
The loading module is used for loading the drivers corresponding to the plurality of counter devices;
The detection module is used for calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device; receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
And the determining module is used for determining whether the counter devices are available according to the detection results of the counter devices.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
According to the detection method, the computer equipment, the storage medium and the computer program product of the counter equipment, the drivers corresponding to the counter equipment can be loaded simultaneously, the state monitoring interfaces in the drivers of the counter equipment can be called to send the availability detection requests to the counter equipment based on the drivers corresponding to the counter equipment, so that the availability detection of the counter equipment can be triggered simultaneously, further, whether the counter equipment is available can be determined by receiving the detection result of the counter equipment, and therefore the availability detection of the counter equipment is achieved simultaneously, whether the counter equipment is available or not is timely obtained, and the detection efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a schematic diagram of an apparatus architecture to which a method for detecting counter apparatuses according to an embodiment of the present application is applied;
FIG. 2 is a schematic flow chart of a method for detecting counter equipment;
FIG. 3 is a second flow chart of a method for detecting a counter device;
FIG. 4 is a schematic diagram of a detection interface;
FIG. 5 is a schematic diagram of a device availability detection and monitoring system;
FIG. 6 is a block diagram of a computer device;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The detection method of the counter equipment provided by the embodiment of the application can be applied to computer equipment. The computer devices may include, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and the like.
In the embodiment of the application, the computer equipment is connected with a plurality of counter equipment, and the connection can be wired connection or wireless connection.
The counter equipment can be external equipment used for traversing various counter services in banks, such as audio and video equipment, printers, scanners and the like.
Fig. 1 is a schematic diagram of an apparatus architecture to which a method for detecting counter apparatuses according to an embodiment of the present application is applied. As shown in fig. 1, the architecture includes a computer device 11, and 3 counter devices, namely a counter device 1, a counter device 2 and a counter device 3 in the figure. The detection method of the counter equipment provided by the embodiment of the disclosure can simultaneously detect the availability of the 3 counter equipment to judge whether each counter equipment in the 3 counter equipment is available, so that the detection efficiency can be improved.
In an exemplary embodiment, as shown in fig. 2, fig. 2 is a schematic flow chart of a method for detecting a counter device, and the method includes the following steps 201 to 204.
201. And loading the drives corresponding to the plurality of counter devices.
The driver may be a driver.
The loading of the drives corresponding to the plurality of counter devices may include, but is not limited to: the computer device obtains and loads drivers associated with the plurality of counter devices, which may be software that enables the computer device to communicate and interact with the hardware device.
Step 201 above involves loading a driver corresponding to each of the plurality of counter devices. This is to establish a communication bridge between the system and the counter devices, enabling the system to interact with the respective devices.
In the embodiment of the disclosure, the counter device may refer to a counter device in one website, or may refer to a counter device in a plurality of websites.
In some embodiments, loading the drives corresponding to the plurality of counter devices may include, but is not limited to: if the unused time interval of the plurality of counter devices is larger than the preset time threshold, loading the corresponding drives of the plurality of counter devices.
The unused time interval is the time difference between the last time the counter device was invoked and the current time.
In some embodiments, the last time the counter device was invoked includes: the computer device invokes the in-drive state monitoring interface of the counter device last time, and sends the availability detection request.
In some embodiments, the last time the counter device was invoked includes: the last time the moment the user directly invoked the counter device is detected. The user directly invokes the counter device, i.e. the user directly invokes the counter device by other means than by means of the computer device described above.
In the above embodiment, the availability detection is performed only when the unused time interval is greater than the preset time threshold, so that frequent availability detection in a short time can be avoided, the detection frequency is more reasonable, and the power consumption caused by frequent detection is reduced.
202. And calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device based on the corresponding drive of each counter device.
In the present application, a request may be sent to each counter device using a status monitoring interface provided in the driver to detect their availability.
203. And receiving detection results of the counter devices through a state monitoring interface in the driving of the counter devices.
In the application, the counter equipment returns the detection result of the availability of the counter equipment through the state monitoring interface of the driving program.
204. And determining whether each counter device is available according to the detection result of each counter device.
In some embodiments, the computer device may analyze the received detection results to determine whether each counter device is available. This may involve determining whether the device is functioning properly, whether there is a malfunction or other problem.
In some embodiments, the detection result may include: availability indication information. The availability indication information may include: available status information, or unavailable status information. Wherein the availability indication information may be represented by some coding, e.g. 1 for availability and 0 for unavailability.
In some embodiments, multiple different unavailability conditions may also be represented by different codes, e.g., by different codes for fault types corresponding to multiple unavailability states.
In some embodiments, when the detection result includes the unavailable status information, the detection result may further include an unavailable reason. For example, the unavailable cause may refer to a fault cause corresponding to a fault type corresponding to the current unavailable state.
According to the method for detecting the counter devices, the drivers corresponding to the counter devices can be loaded at the same time, and based on the drivers corresponding to the counter devices, the state monitoring interfaces in the drivers of the counter devices can be called to send the availability detection requests to the counter devices, so that the availability detection of the counter devices can be triggered at the same time, further, whether the counter devices are available can be determined by receiving the detection results of the counter devices, so that the availability detection of the counter devices is achieved at the same time, whether the counter devices are available is timely known, and the detection efficiency is improved.
In an exemplary embodiment, as shown in fig. 3, fig. 3 is a second flowchart of a method for detecting a counter device, where the method may include, but is not limited to, the following steps 301 to 308.
301. And loading the drives corresponding to the plurality of counter devices.
The description of step 301 may refer to the related description of step 201, which is not repeated here.
302. And calling an initialization interface in the drive of each counter device to send an initialization instruction to each counter device based on the corresponding drive of each counter device.
Based on the loaded drivers, an initialization interface in each counter device driver is invoked, sending an initialization indication to each device in order to initiate the device's initialization process.
303. And receiving initialization result information of each counter device through a state monitoring interface in the driving of each counter device.
Wherein the initialization structure information reflects an initialization situation.
304. And judging whether the initialization result information of each counter device is consistent with the information indicated by the initialization indication.
In some embodiments, if the initialization result information of each counter device is consistent with the information represented by the initialization indication, the status monitoring interface in the drive of each counter device is invoked to send an availability detection request to each counter device based on the corresponding drive of each counter device.
In some embodiments, if the initialization result information of the target counter device is not received after the preset time period, determining that the target counter device is not available;
In some embodiments, if the initialization result information of the received target counter device is inconsistent with the information represented by the initialization indication, it is determined that the target counter device is not available.
If the initialization result information of each counter device is consistent with the information represented by the initialization indication, executing the following steps 305 to 307, and further calling the state monitoring interface to send an availability detection request to each device based on the corresponding drive of each counter device so as to determine whether the devices can be normally used; if the initialization result information of each counter device is inconsistent with the information indicated by the initialization indication, it indicates that the device may have a problem, and the following step 308 is performed.
305. And calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device based on the corresponding drive of each counter device.
306. And receiving detection results of the counter devices through a state monitoring interface in the driving of the counter devices.
307. And determining whether each counter device is available according to the detection result of each counter device.
The descriptions of the steps 305 to 307 may refer to the descriptions of the steps 202 to 204, and are not repeated here.
308. It is determined that the target counter device is not available.
If the initialization result information of the target counter device is not received after the preset time length, the device is indicated to have a problem, and therefore the target counter device is determined to be unavailable.
If the received initialization result information of the target counter device is inconsistent with the information indicated by the initialization indication, the device is possibly faulty, and accordingly the device is determined to be unavailable.
In the embodiment of the application, before the availability detection is carried out on a plurality of counter devices at the same time, each counter device is initialized, and the availability detection is carried out on the counter devices consistent with the initialization indication according to the initialization condition, so that part of unusable devices are eliminated through initialization.
In some embodiments, in the method for detecting a counter device, before loading the drives corresponding to the plurality of counter devices, a detection interface may be further displayed. And if the selection operation of the user on the target detection control is detected, loading the drivers corresponding to the plurality of counter devices.
Wherein, the detection interface comprises: the system comprises a global detection control and a plurality of independent detection controls, wherein the global detection control is used for triggering and detecting the availability of all the counter devices associated with the computer equipment, and different independent detection controls are used for triggering and detecting the availability of different counter devices associated with the computer equipment.
In some embodiments, the target detection control is a global detection control and the plurality of counter devices are all devices associated with the computer device.
In some embodiments, the target detection control is a plurality of independent detection controls.
Illustratively, FIG. 4 is a schematic diagram of a detection interface. The detection interface includes a global detection control 41, as shown in fig. 4, and 3 independent detection controls, namely a detection control 42, a detection control 43 and a detection control 44 in fig. 4. Assuming that the detection interface shown in fig. 4 corresponds to the architecture shown in fig. 1, the global detection control 41 may be used to trigger detection of availability of counter device 1, counter device 2, and counter device 3 in fig. 1, while the detection control 42 is used to trigger detection of availability of counter device 1 in fig. 1; the detection control 43 is used to trigger detection of the availability of the counter device 2 in fig. 1; the detection control 44 is used to trigger detection of the availability of the counter device 3 in fig. 1.
In the embodiment of the application, the interface for triggering the availability detection can be visually displayed to the user through the detection interface, so that the user can intuitively see the interface, the availability detection of a plurality of counter devices can be realized through simple selection and triggering operation, and the man-machine interaction performance and the detection efficiency are improved.
In some embodiments, in the method for detecting a counter device, after determining whether each counter device is available according to the detection result of each counter device, the method further includes: and displaying the detection result of each counter device in the device state interface.
Wherein, the detection result comprises: the available state information or the detection result includes: status information of unavailability and reasons for unavailability; if the detection result of the target counter equipment comprises the unavailable state information and the unavailable reason, outputting a warning popup window, wherein the warning popup window is used for prompting that the target counter equipment is abnormal.
In the embodiment of the application, the warning popup window can prompt that the target counter equipment is abnormal, so that maintenance personnel can conveniently and timely handle the equipment abnormality, and timely take maintenance measures to ensure the normal operation of the counter equipment.
The method for detecting the counter equipment provided by the embodiment of the application can be realized through an equipment availability detecting and monitoring system shown in fig. 5, and fig. 5 is a schematic structural diagram of the equipment availability detecting and monitoring system, wherein the system can comprise the following modules:
Device detection module 501: the module is responsible for realizing the calling of the detection interfaces of all types of counter equipment, receiving the return of the detection interfaces, analyzing the return result and judging whether the current state of the equipment is available.
The device monitoring module 502: the module is responsible for continuous availability monitoring for each type of device, given a time threshold, when a device is not invoked by a user or has not detected availability through the device detection interface within this time threshold, the device monitoring module 502 will invoke the device detection method corresponding to the device detection module 501, detect whether the device is still available, and update the last invocation or detection time.
A user interactive Graphical User Interface (GUI) module 503: the module is responsible for receiving the detection results of the device monitoring module 502, displaying the detection results in real time through a GUI interface, and providing a button interface (which may be a control in the interface) for enabling all devices to detect by a user to activate one key and an interface for each individual device to detect independently. Meanwhile, after the device monitoring module 502 detects that a certain device state is abnormal, a warning information window can be popped up through the GUI module, so that the effect of timely reminding a user is achieved.
The user interaction GUI module 503 is responsible for displaying information of the device monitoring module to a user in real time, and meanwhile, can actively accept a command of the user to perform instant state detection on a certain device or all devices, and the functions included in the user interaction GUI module may include, but are not limited to:
(1) The user is presented with current status information of the device (which may be status information indicating whether it is available) that originates from the device monitoring module 502, and when the device monitoring module 502 initiates a device detection instruction, it sends the acquired update information to the GUI interface to complete the real-time update of the GUI interface.
(2) And receiving a user instruction, wherein a plurality of keys are arranged on the GUI, and the user completes the inspection of the corresponding module by clicking the key which initiates the independent detection of a certain counter device. Detection of all devices can also be accomplished by clicking a key that initiates detection for all counter devices, with a single click.
(3) When the abnormal information sent by the device detection module 501 is received, the device state of the corresponding device is set to be abnormal, and the user is notified in a mode of prompting a popup frame, so that the user can know and make processing reaction in time.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include steps or stages that are not necessarily performed at the same time but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, and may be performed in rotation or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a computer device for realizing the detection method of the counter device. The implementation of the solution provided by the computer device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the computer device provided below may refer to the limitation of the detection method of the counter device in the above description, and will not be repeated here.
In one exemplary embodiment, as shown in fig. 6, fig. 6 is a block diagram of a computer device comprising:
The loading module 601 is configured to load drivers corresponding to the plurality of counter devices;
The detection module 602 is configured to invoke a state monitoring interface in a driver of each counter device to send an availability detection request to each counter device based on the driver corresponding to the counter device; receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
And the determining module 603 is configured to determine whether each of the counter devices is available according to a detection result of each of the counter devices.
In some embodiments, after the loading of the drives corresponding to the plurality of counter devices, the detection module 602 is further configured to:
Based on the corresponding drive of each counter device, calling an initialization interface in the drive of each counter device to send an initialization instruction to each counter device;
receiving initialization result information of each counter device through a state monitoring interface in driving of each counter device;
The detection module 602 is specifically configured to:
based on the corresponding drive of each counter device, invoking a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device, including:
And if the initialization result information of each counter device is consistent with the information represented by the initialization instruction, calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device.
In some embodiments, the detection module 602 is further configured to:
After the initialization interfaces in the drivers of the counter devices are called to send initialization instructions to the counter devices based on the drivers corresponding to the counter devices, if initialization result information of the target counter devices is not received after a preset time length, determining that the target counter devices are unavailable; or if the initialization result information of the received target counter equipment is inconsistent with the information indicated by the initialization indication, determining that the target counter equipment is not available.
In some embodiments, the loading module 601 is specifically configured to: the loading of the drives corresponding to the plurality of counter devices comprises the following steps:
If the unused time interval of the plurality of counter devices is larger than a preset time threshold, loading the corresponding drives of the plurality of counter devices;
the unused time interval is the time difference between the moment of calling the counter equipment last time and the current moment; the last time the counter equipment is called includes: the moment when the status monitoring interface sends the availability detection request in the driving of the counter equipment is called last time, or the moment when the user directly calls the counter equipment is detected last time.
In some embodiments, the computer device further comprises:
the display module 604 is configured to display a detection interface before the loading module 601 loads the drives corresponding to the plurality of counter devices, where the detection interface includes: the system comprises a global detection control and a plurality of independent detection controls, wherein the global detection control is used for triggering and detecting the availability of all counter devices associated with the computer equipment, and different independent detection controls are used for triggering and detecting the availability of different counter devices associated with the computer equipment;
The loading module 601 is specifically configured to: if the selection operation of the user for the target detection control is detected, loading the drivers corresponding to the plurality of counter devices;
The target detection control is the global detection control, the plurality of counter devices are all devices associated with the computer device, or the target detection control is a plurality of independent detection controls.
In some embodiments, the display module 604 is further configured to display, after the determining module 603 determines whether the respective counter device is available according to the detection result of the respective counter device, the detection result of the respective counter device in a device status interface;
Wherein, the detection result comprises: the available state information or the detection result comprises the following steps: status information of unavailability and reasons for unavailability;
the computer device further comprises: the prompting module 605 is configured to output a warning pop-up window if the detection result of the target counter device includes the unavailable status information and the unavailable reason, where the warning pop-up window is used to prompt that the target counter device is abnormal.
The various modules in the computer devices described above may be implemented in whole or in part in software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 7. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a method of detecting a counter device. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
In one embodiment, the processor when executing the computer program further performs the steps of:
After the drivers corresponding to the plurality of counter devices are loaded, based on the drivers corresponding to the counter devices, an initialization interface in the drivers of the counter devices is called to send an initialization instruction to the counter devices;
receiving initialization result information of each counter device through a state monitoring interface in driving of each counter device;
in one embodiment, the processor when executing the computer program further performs the steps of:
The step of calling the state monitoring interface in the drive of each counter device to send an availability detection request to each counter device based on the corresponding drive of each counter device comprises the following steps:
And if the initialization result information of each counter device is consistent with the information represented by the initialization instruction, calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device.
In one embodiment, the processor when executing the computer program further performs the steps of:
After the initialization interfaces in the drivers of the counter devices are called to send initialization instructions to the counter devices based on the drivers corresponding to the counter devices, if initialization result information of the target counter devices is not received after a preset time length, determining that the target counter devices are unavailable;
Or alternatively, the first and second heat exchangers may be,
And if the initialization result information of the received target counter equipment is inconsistent with the information indicated by the initialization indication, determining that the target counter equipment is not available.
In one embodiment, the processor when executing the computer program further performs the steps of:
The loading of the drives corresponding to the plurality of counter devices comprises the following steps:
If the unused time interval of the plurality of counter devices is larger than a preset time threshold, loading the corresponding drives of the plurality of counter devices;
the unused time interval is the time difference between the moment of calling the counter equipment last time and the current moment; the last time the counter equipment is called includes: the moment when the status monitoring interface sends the availability detection request in the driving of the counter equipment is called last time, or the moment when the user directly calls the counter equipment is detected last time.
In one embodiment, the processor when executing the computer program further performs the steps of:
Before loading the drivers corresponding to the plurality of counter devices, displaying a detection interface, wherein the detection interface comprises: the system comprises a global detection control and independent detection controls, wherein the global detection control is used for triggering and detecting the availability of all counter devices associated with the computer equipment, and different detection controls in the independent detection control are used for triggering and detecting the availability of different counter devices associated with the computer equipment;
If the selection operation of the user for the target detection control is detected, loading the drivers corresponding to the plurality of counter devices;
the target detection control is the global detection control, the plurality of counter devices are all devices associated with the computer device, or the target detection control is a plurality of independent detection controls.
In one embodiment, the processor when executing the computer program further performs the steps of:
After determining whether the counter devices are available according to the detection results of the counter devices, displaying the detection results of the counter devices in a device state interface;
Wherein, the detection result comprises: the available state information or the detection result comprises the following steps: status information of unavailability and reasons for unavailability;
And if the detection result of the target counter equipment comprises the unavailable state information and the unavailable reason, outputting a warning popup window, wherein the warning popup window is used for prompting that the target counter equipment is abnormal.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
In one embodiment, the processor when executing the computer program further performs the steps of:
After the drivers corresponding to the plurality of counter devices are loaded, based on the drivers corresponding to the counter devices, an initialization interface in the drivers of the counter devices is called to send an initialization instruction to the counter devices;
receiving initialization result information of each counter device through a state monitoring interface in driving of each counter device;
in one embodiment, the processor when executing the computer program further performs the steps of:
The step of calling the state monitoring interface in the drive of each counter device to send an availability detection request to each counter device based on the corresponding drive of each counter device comprises the following steps:
And if the initialization result information of each counter device is consistent with the information represented by the initialization instruction, calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device.
In one embodiment, the processor when executing the computer program further performs the steps of:
After the initialization interfaces in the drivers of the counter devices are called to send initialization instructions to the counter devices based on the drivers corresponding to the counter devices, if initialization result information of the target counter devices is not received after a preset time length, determining that the target counter devices are unavailable;
Or alternatively, the first and second heat exchangers may be,
And if the initialization result information of the received target counter equipment is inconsistent with the information indicated by the initialization indication, determining that the target counter equipment is not available.
In one embodiment, the processor when executing the computer program further performs the steps of:
The loading of the drives corresponding to the plurality of counter devices comprises the following steps:
If the unused time interval of the plurality of counter devices is larger than a preset time threshold, loading the corresponding drives of the plurality of counter devices;
the unused time interval is the time difference between the moment of calling the counter equipment last time and the current moment; the last time the counter equipment is called includes: the moment when the status monitoring interface sends the availability detection request in the driving of the counter equipment is called last time, or the moment when the user directly calls the counter equipment is detected last time.
In one embodiment, the processor when executing the computer program further performs the steps of:
Before loading the drivers corresponding to the plurality of counter devices, displaying a detection interface, wherein the detection interface comprises: the system comprises a global detection control and independent detection controls, wherein the global detection control is used for triggering and detecting the availability of all counter devices associated with the computer equipment, and different detection controls in the independent detection control are used for triggering and detecting the availability of different counter devices associated with the computer equipment;
If the selection operation of the user for the target detection control is detected, loading the drivers corresponding to the plurality of counter devices;
the target detection control is the global detection control, the plurality of counter devices are all devices associated with the computer device, or the target detection control is a plurality of independent detection controls.
In one embodiment, the processor when executing the computer program further performs the steps of:
After determining whether the counter devices are available according to the detection results of the counter devices, displaying the detection results of the counter devices in a device state interface;
Wherein, the detection result comprises: the available state information or the detection result comprises the following steps: status information of unavailability and reasons for unavailability;
And if the detection result of the target counter equipment comprises the unavailable state information and the unavailable reason, outputting a warning popup window, wherein the warning popup window is used for prompting that the target counter equipment is abnormal.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method as shown in the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for detecting a counter device, the method being applied to a computer device and comprising:
loading drives corresponding to a plurality of counter devices;
Based on the corresponding drive of each counter device, calling a state monitoring interface in the drive of each counter device to send an availability detection request to each counter device;
receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
and determining whether the counter devices are available according to the detection results of the counter devices.
2. The method of claim 1, wherein after loading the drives corresponding to the plurality of counter devices, the method further comprises:
Based on the corresponding drive of each counter device, calling an initialization interface in the drive of each counter device to send an initialization instruction to each counter device;
receiving initialization result information of each counter device through a state monitoring interface in driving of each counter device;
The step of calling the state monitoring interface in the drive of each counter device to send an availability detection request to each counter device based on the corresponding drive of each counter device comprises the following steps:
And if the initialization result information of each counter device is consistent with the information represented by the initialization instruction, calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device.
3. The method of claim 1, wherein the method further comprises, after the invoking the initializing interface in the driver of each counter device to send an initializing indication to each counter device based on the driver corresponding to each counter device:
If initialization result information of the target counter equipment is not received after the preset time length, determining that the target counter equipment is unavailable;
Or alternatively, the first and second heat exchangers may be,
And if the initialization result information of the received target counter equipment is inconsistent with the information indicated by the initialization indication, determining that the target counter equipment is not available.
4. The method of claim 1, wherein loading the corresponding drives of the plurality of counter devices comprises:
If the unused time interval of the plurality of counter devices is larger than a preset time threshold, loading the corresponding drives of the plurality of counter devices;
the unused time interval is the time difference between the moment of calling the counter equipment last time and the current moment; the last time the counter equipment is called includes: the moment when the status monitoring interface sends the availability detection request in the driving of the counter equipment is called last time, or the moment when the user directly calls the counter equipment is detected last time.
5. The method of claim 1, wherein prior to loading the drives corresponding to the plurality of counter devices, the method further comprises:
Displaying a detection interface, wherein the detection interface comprises: the system comprises a global detection control and a plurality of independent detection controls, wherein the global detection control is used for triggering and detecting the availability of all counter devices associated with the computer equipment, and different independent detection controls are used for triggering and detecting the availability of different counter devices associated with the computer equipment;
If the selection operation of the user for the target detection control is detected, loading the drivers corresponding to the plurality of counter devices;
The target detection control is the global detection control, the plurality of counter devices are all devices associated with the computer device, or the target detection control is a plurality of independent detection controls.
6. The method according to claim 1, wherein after determining whether the respective counter devices are available according to the detection results of the respective counter devices, the method further comprises:
displaying the detection result of each counter device in a device state interface;
Wherein, the detection result comprises: the available state information or the detection result comprises the following steps: status information of unavailability and reasons for unavailability;
And if the detection result of the target counter equipment comprises the unavailable state information and the unavailable reason, outputting a warning popup window, wherein the warning popup window is used for prompting that the target counter equipment is abnormal.
7. A computer device, comprising:
The loading module is used for loading the drivers corresponding to the plurality of counter devices;
The detection module is used for calling a state monitoring interface in the driving of each counter device to send an availability detection request to each counter device based on the driving corresponding to each counter device; receiving detection results of all the counter devices through a state monitoring interface in the driving of the counter devices;
And the determining module is used for determining whether the counter devices are available according to the detection results of the counter devices.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410573732.3A 2024-05-10 2024-05-10 Counter device detection method, computer device and storage medium Pending CN118312389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410573732.3A CN118312389A (en) 2024-05-10 2024-05-10 Counter device detection method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410573732.3A CN118312389A (en) 2024-05-10 2024-05-10 Counter device detection method, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN118312389A true CN118312389A (en) 2024-07-09

Family

ID=91733631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410573732.3A Pending CN118312389A (en) 2024-05-10 2024-05-10 Counter device detection method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN118312389A (en)

Similar Documents

Publication Publication Date Title
US9213625B1 (en) Method and apparatus for performing automated user-interface layout testing
US20100238123A1 (en) Input Device Gesture To Generate Full Screen Change
US8683169B2 (en) Selecting an auxiliary storage medium for writing data of real storage pages
CN118312389A (en) Counter device detection method, computer device and storage medium
CN116860614A (en) Performance test method, apparatus, device, storage medium, and program product
CN115098359A (en) Project research and development test method, device, equipment, storage medium and program product
CN117453513B (en) Log acquisition method and related equipment
CN112000568B (en) Technical code testing method, device, computer equipment and storage medium
CN109960769B (en) Webpage view display method and device, computer equipment and storage medium
CN117319335A (en) Communication client construction method and device adapting to financial operation system
CN117370051A (en) System fault detection method, device, equipment, storage medium and program product
CN110633087B (en) Client installation method, device and storage medium
CN118276977A (en) Program function enabling method and device of application program and computer equipment
CN118377516A (en) Firmware refreshing method, device, computer equipment and storage medium
CN115718689A (en) Method and device for monitoring service state
CN117539773A (en) Vehicle-mounted data acquisition method and device
CN118260117A (en) Method, apparatus, computer device, readable storage medium and program product for processing master-slave database switching abnormality
CN116416670A (en) Big data control method and system based on face recognition
CN116954820A (en) Dump file management method, device, computer equipment and storage medium
CN116757677A (en) Linkage processing method and device for abnormal power grid equipment and computer equipment
CN116909705A (en) Batch task processing method and system
CN116775284A (en) Task processing method, device, computer equipment and storage medium
CN118113391A (en) Display adaptation method, device, computer equipment and storage medium
CN116932392A (en) Interface test method, apparatus, device, storage medium and computer program product
CN117453513A (en) Log acquisition method and related equipment

Legal Events

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