CN113141280B - Inspection method of electronic price tag system, server and computer readable storage medium - Google Patents

Inspection method of electronic price tag system, server and computer readable storage medium Download PDF

Info

Publication number
CN113141280B
CN113141280B CN202110432014.0A CN202110432014A CN113141280B CN 113141280 B CN113141280 B CN 113141280B CN 202110432014 A CN202110432014 A CN 202110432014A CN 113141280 B CN113141280 B CN 113141280B
Authority
CN
China
Prior art keywords
price tag
electronic price
inspection
server
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110432014.0A
Other languages
Chinese (zh)
Other versions
CN113141280A (en
Inventor
盛宏伟
庄严
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Minew Technologies Co ltd
Original Assignee
Shenzhen Minew Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Minew Technologies Co ltd filed Critical Shenzhen Minew Technologies Co ltd
Priority to CN202110432014.0A priority Critical patent/CN113141280B/en
Publication of CN113141280A publication Critical patent/CN113141280A/en
Application granted granted Critical
Publication of CN113141280B publication Critical patent/CN113141280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/20Checking timed patrols, e.g. of watchman

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application is applicable to the technical field of communication application, and provides a polling method, a server and a computer readable storage medium of an electronic price tag system, wherein the method comprises the following steps: acquiring preset inspection data aiming at the object to be detected in the electronic price tag system; and executing inspection operation on the object to be detected according to the inspection data to obtain an inspection result. The method and the device can solve the problems that the electronic price tag system is difficult to avoid the defects of disconnection, server operation faults and the like in the wireless communication process, and the working reliability and efficiency of the electronic price tag system are influenced; the working reliability of the electronic price tag system is ensured.

Description

Inspection method of electronic price tag system, server and computer readable storage medium
Technical Field
The application belongs to the technical field of communication application, and particularly relates to a polling method, a server and a computer readable storage medium of an electronic price tag system.
Background
An Electronic price tag is also called an Electronic Shelf Label (ESL), is an Electronic display device with an information receiving and sending function, and is mainly applied to Electronic tags for displaying commodity information in supermarkets, convenience stores, pharmacies and the like. The traditional electronic price tag system mainly completes the display function of commodity information, and information to be displayed is pushed to the electronic price tag by the platform to be displayed.
At present, the electronic price tag system works in a mode that equipment with a low-power-consumption Bluetooth wireless communication function communicates with the electronic price tag of each type of commodity by using a low-power-consumption Bluetooth technology, and due to the fact that the types of commodities in a market or a supermarket are various and complex, the electronic price tag system is difficult to avoid the defects of disconnection, server operation failure and the like in the wireless communication process; therefore, how to ensure the reliability of the operation of the electronic price tag system is a critical issue at present.
Disclosure of Invention
The embodiment of the application provides a polling method of an electronic price tag system, a server and a computer readable storage medium, which can solve the problem that the working reliability and efficiency of the electronic price tag system are influenced by the inevitable defects of disconnection, server operation failure and the like of the electronic price tag system in the wireless communication process.
In a first aspect, an embodiment of the present application provides a method for polling an electronic price tag system, where the method includes:
acquiring preset inspection data aiming at the object to be detected in the electronic price tag system; and executing inspection operation on the object to be detected according to the inspection data to obtain an inspection result.
In a possible implementation manner of the first aspect, the object to be detected includes a server, a gateway device, and an electronic price tag; according to the inspection data, the inspection operation is executed on the object to be detected to obtain an inspection result, and the method comprises the following steps:
and executing inspection operation on the server, the gateway equipment and the electronic price tag according to the inspection times and the execution time in the inspection data to obtain an inspection result.
In a possible implementation manner of the first aspect, the performing, according to the inspection data, an inspection operation on the object to be detected to obtain an inspection result further includes:
sending a detection instruction with a preset format to gateway equipment in the electronic price tag system; and if a first response instruction fed back by the gateway equipment based on the detection instruction is received within a preset time period, obtaining a polling result which is normally connected with the gateway equipment.
In a possible implementation manner of the first aspect, the performing, according to the inspection data, an inspection operation on the object to be detected to obtain an inspection result includes:
sending a test instruction to the gateway equipment, wherein the test instruction is used for indicating the gateway equipment to send a wake-up instruction to the electronic price tag; if a second response instruction fed back by the gateway equipment is received within a preset time period, obtaining a normal routing inspection result of a link between the gateway equipment and the electronic price tag; the second response instruction is an instruction generated by the gateway device based on the awakened message fed back by the electronic price tag, and the awakened message fed back by the electronic price tag is a message generated by the electronic price tag based on the awakening instruction.
In a possible implementation manner of the first aspect, the performing, according to the inspection data, an inspection operation on the object to be detected to obtain an inspection result further includes:
sending a data transmission instruction to a virtual gateway, wherein the data transmission instruction is used for indicating the virtual gateway to send a task instruction to a virtual electronic price tag, and the task instruction is used for indicating the virtual electronic price tag to execute an operation task; receiving execution result information sent by the virtual gateway, wherein the execution result information is response information sent by the virtual electronic price tag after the virtual electronic price tag executes the task instruction; and obtaining a polling result aiming at the virtual electronic price tag task execution process according to the execution result information.
In a possible implementation manner of the first aspect, the performing, according to the inspection data, an inspection operation on the object to be detected to obtain an inspection result further includes:
sending a test message to a virtual client through a message middleware of a server according to a preset communication protocol, and receiving a response message returned by the virtual client;
and obtaining the polling result of the server communication mechanism according to the response message.
In a possible implementation manner of the first aspect, the method further includes:
generating a polling report of the electronic price tag system according to the polling result; and pushing the routing inspection report to a client in a preset form.
In a second aspect, an embodiment of the present application provides an inspection device for an electronic price tag system, the device includes:
the acquisition unit is used for acquiring routing inspection data preset for the object to be detected in the electronic price tag system;
and the execution unit is used for executing inspection operation on the object to be detected according to the inspection data to obtain an inspection result.
In a third aspect, an embodiment of the present application provides a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the method described in any one of the above first aspects.
It is to be understood that, the beneficial effects of the second to fifth aspects mentioned above may refer to the relevant description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: according to the embodiment of the application, the server acquires the routing inspection data preset for the object to be detected in the electronic price tag system; according to the polling data, performing polling operation on the object to be detected to obtain a polling result; according to the embodiment of the application, the server dynamically detects the equipment in the electronic price tag system according to the preset inspection data, so that the defects of communication disconnection, server operation faults and the like of the electronic price tag system in the wireless communication process can be detected in time, and the fault type is determined according to the inspection result, so that the communication reliability of the electronic price tag system is ensured, and the working efficiency of the electronic price tag system is improved; has strong usability and practicability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a system architecture diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a polling method of the electronic price tag system according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a polling method of the electronic price tag system according to another embodiment of the present application;
FIG. 4 is a schematic diagram of an interface for routing inspection reports provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an inspection device of the electronic price tag system provided by the embodiment of the application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The electronic price tag is a brand new generation multistable electronic display device which is placed on a goods shelf, can replace the traditional paper price tag and is provided with a liquid crystal display screen, and the working state of the electronic price tag comprises the operation tasks of establishing connection, communicating data, executing picture brushing, changing price and the like. The electronic price tag is used as an intelligent tag and can dynamically display the content issued by the server platform.
The traditional electronic price tag system mainly completes the function of displaying commodity information, and information to be displayed is pushed to an electronic price tag terminal by a server to be displayed; there is no self-timing check function, and there is no function that can generate and push a detection report of the electronic price tag system based on a customized manner. Due to the fact that goods in a market or a supermarket are various and complex, the defects of communication link disconnection, server operation faults, electronic price tag task processing flow faults and the like are prone to occurring in the wireless communication process of the electronic price tag system, the working reliability of the electronic price tag system is affected, and the working efficiency of the electronic price tag system is reduced.
Referring to fig. 1, a system architecture diagram of an application scenario provided in the embodiment of the present application is shown. The electronic price tag system comprises a server 10, a gateway device 11 and at least one electronic price tag 12. The server 10 sends a data transmission instruction to the gateway device, and the network management device 11 wakes up the corresponding one or more electronic price tags 12 according to the data transmission instruction, establishes communication connection with the one or more electronic price tags 12, and sends a task instruction to the one or more electronic price tags 12; the task instructions may include instructions for flashing, lighting, and changing prices.
In the process of polling the electronic price tag system, the server serves as an execution main body and sends a command for executing polling operation to the gateway equipment and the electronic price tag; and the server obtains the inspection result of the electronic price tag system according to the response information of the gateway equipment and the electronic price tag and the running parameters of the server. The server can also set a function of executing polling at regular time, further generates a polling report according to a polling result obtained by polling at regular time, and pushes the polling report to a client associated with the server in a specific mode. Therefore, a user can know the working operation condition of the electronic price tag system in time, and when a fault occurs in the working process of the electronic price tag system, the user can check the fault in time, the electronic price tag system is convenient to manage and maintain, and the working efficiency of the electronic price tag system is improved.
The following describes the flow steps of the polling method of the electronic price tag system according to the present application by using a specific embodiment.
Referring to fig. 2, a schematic flow chart of a polling method of the electronic price tag system according to an embodiment of the present application is provided. The execution subject of the method is a server in the electronic price tag system, and the method can comprise the following steps:
step S201, a server acquires routing inspection data preset for an object to be detected in the electronic price tag system.
In some embodiments, an electronic price tag system includes a server, a gateway device, and an electronic price tag. The object to be detected is entity hardware corresponding to the gateway equipment and the electronic price tag respectively and the running condition of the server. The polling data is data set by the server for different objects to be detected, for example, data such as time for performing detection every day and the number of times for performing detection every day set for the gateway device, and the server can initialize the polling data according to the actual working state of the electronic price tag system and the different objects to be detected, and dynamically set the polling data.
Illustratively, a corresponding heartbeat detection execution process, and routing inspection data such as execution time and execution times corresponding to the heartbeat detection process are set for the gateway device in the electronic price tag system. The method comprises the steps that a server firstly obtains routing inspection data corresponding to gateway equipment; and executing a heartbeat detection process for the gateway equipment at a corresponding execution time according to the routing inspection data, and sequentially detecting the gateway equipment according to the times required to be executed.
And S202, the server executes inspection operation on the object to be detected according to the inspection data to obtain an inspection result.
In some embodiments, the server starts to execute the inspection operation flow for each object to be inspected according to the inspection time set for the object to be inspected in the inspection data.
It should be noted that, in the process of executing the polling operation by the server, the server sends corresponding detection instructions to the gateway device and the electronic price tag of the entity aiming at the communication connection and the link state of the hardware facilities such as the gateway device and the electronic price tag, and tests the entity hardware of the gateway device and the electronic price tag; and the process of issuing the task instruction to the electronic price tag is the process of executing detection aiming at the set virtual gateway and the set virtual electronic price tag, so that the normal work of the gateway equipment and the electronic price tag of an entity can not be delayed, and the operation process of detection can be executed on a server platform.
In addition, the Message receiving and sending of the Message middleware of the server is detected based on a Message Queue Telemetry Transport (MQTT), and the detection result can also be obtained by detecting through the communication logic between the server and the virtual client.
In some embodiments, the object to be detected comprises a server, a gateway device and an electronic price tag; as shown in fig. 3, an overall flow diagram of the inspection of the electronic price tag system provided by the embodiment of the present application is shown.
In some embodiments, the server performs inspection operation on the object to be detected according to the inspection data to obtain an inspection result, including:
and S302, the server executes inspection operation on the server, the gateway equipment and the electronic price tag according to the inspection times and the execution time in the inspection data to obtain an inspection result.
In some embodiments, the inspection data may be set according to different objects to be detected, and parameters such as inspection times corresponding to the objects to be detected and time for performing inspection operation are set. And different objects to be detected correspond to different inspection operations.
In some embodiments, the server performs inspection operation on the object to be detected according to the inspection data to obtain an inspection result, including:
s3121, the server acquires server operation parameters in the electronic price tag system within a preset time period;
and S3122, comparing the server operation parameters with preset operation parameter thresholds to obtain a polling result of the server operation state.
In some embodiments, the operating parameters of the server include a maximum processor utilization and a maximum memory utilization, each in percentage; for example, if the preset operation parameter threshold corresponding to the maximum utilization rate of the processor is 85% and the preset operation parameter threshold corresponding to the maximum utilization rate of the memory is 80%, and if the maximum utilization rate of the processor is 70% and the maximum utilization rate of the memory is 60%, which are respectively within the range of the preset operation parameter threshold, the inspection result that the operation state of the server is normal is obtained.
It should be noted that, the term "polling server resource" refers to whether the CPU and the memory of the server exceed a maximum set threshold within 24 hours. The polling data comprises polling time and times of the operation parameters of the server, the server reads the maximum utilization rate of the processor and the memory according to the polling time and times, and determines the polling result of the monitoring use condition of the server resources by combining the comparison of preset operation parameter thresholds.
Illustratively, if the maximum utilization rate of a processor and the maximum utilization rate of a memory of the server exceed a preset operation parameter threshold, an inspection result with abnormal operation indexes of the server is generated and is timely pushed to a bound client, so that reference and maintenance and management of the server are facilitated.
In some embodiments, the server performs an inspection operation on the object to be detected according to the inspection data to obtain an inspection result, and further includes:
step S3221, the server sends a detection instruction in a preset format to the gateway device in the electronic price tag system;
step S3222, if the server receives a first response instruction fed back by the gateway device based on the detection instruction within the preset time period, obtaining an inspection result that is normally connected to the gateway device.
In some embodiments, the server performs heartbeat detection on the gateway device by sending a detection instruction to the gateway device, and determines the communication connection state with the gateway device entity hardware. The preset time period may be set to several seconds, for example, five seconds; and after the server sends a detection instruction to the gateway equipment, timing is started, and if the server receives a first response instruction fed back by the gateway equipment within five seconds, the heartbeat detection of the current gateway equipment is determined to be normal.
The detection instruction in the preset format may include an instruction packet header and instruction data, where the instruction packet header is provided with an identifier of the detection instruction, and the instruction data may include an address or an identity of the detection object. The command packet header is used for identifying the type of the received command by the gateway equipment, and the command data is used for verifying and determining the identity by the gateway equipment. The first response instruction is used for informing the server gateway equipment of receiving the detection instruction. Therefore, the server can obtain the inspection result that the communication connection with the gateway equipment is normal and the heartbeat detection of the gateway equipment is successful.
It should be noted that the gateway device may be an entity hardware randomly selected by the server to establish a communication connection with the server, and the detection instruction includes address information or an identity of the selected gateway device; after receiving the detection instruction, the gateway equipment analyzes the detection instruction, and feeds back a first response instruction to the server after determining that the detection instruction is the address information or the identity of the gateway equipment; and if the gateway equipment receiving the detection instruction analyzes the detection instruction, and the content of the detection instruction is not consistent with the information of the gateway equipment, no response instruction is sent.
In some embodiments, the server performs an inspection operation on the object to be detected according to the inspection data to obtain an inspection result, and further includes:
step S3321, the server sends a test instruction to the gateway equipment, wherein the test instruction is used for indicating the gateway equipment to send a wake-up instruction to the electronic price tag;
step S3322, if the server receives the second response instruction fed back by the gateway device within the preset time period, obtaining the inspection result that the link with the gateway device and the electronic price tag is normal.
The second response instruction is an instruction generated by the gateway device based on the awakened message fed back by the electronic price tag, and the awakened message fed back by the electronic price tag is a message generated by the electronic price tag based on the awakening instruction.
In some embodiments, the server issues a test instruction to the gateway device, and the gateway device sends a wake-up instruction to the specified electronic price tag, so as to detect whether a communication link established between the server and the gateway device and the electronic price tag is normal. The preset time period may be a determination time set according to an actual application scenario, for example, set to 5 seconds; and after the server issues the test instruction, timing is started, and if a second response instruction uploaded by the gateway equipment is received within 5 seconds, a routing inspection result that the communication link between the server and the gateway equipment and the communication link between the server and the electronic price tag are successfully established or the communication link is normal is determined.
It should be noted that the test instruction issued by the server includes address information or identity information of a designated electronic price tag, after the gateway device sends a wake-up instruction to the electronic price tag, the electronic price tag analyzes the wake-up instruction, if the address information or identity information obtained by analysis matches with the address information or identity information of the gateway device, the gateway device is fed back with a message that the gateway device has been wakened up to notify the gateway device to be wakened up, and the gateway device is switched to a bluetooth communication working state, so that communication connection and data communication can be established with the gateway device, the gateway device notifies the server of the message that the electronic price tag has been wakened up, and the server receives a second response instruction sent by the gateway.
In some embodiments, the server performs an inspection operation on the object to be detected according to the inspection data to obtain an inspection result, and further includes:
step S3421, the server sends a data transmission instruction to the virtual gateway, the data transmission instruction is used for indicating the virtual gateway to send a task instruction to the virtual electronic price tag, and the task instruction is used for indicating the virtual electronic price tag to execute an operation task;
step S3422, the server receives the execution result information sent by the virtual gateway, and the execution result information is response information sent after the virtual electronic price tag executes the task instruction;
step S3423, the server obtains a polling result aiming at the virtual electronic price tag execution task process according to the execution result information.
In some embodiments, when the server inspects the flow of the operation task executed by the electronic price tag system, in order to avoid influencing the normal work of the actual electronic price tag, a virtual gateway and a virtual electronic price tag are arranged. Based on the virtual gateway and the virtual electronic price tag, the server executes logic of virtual image brushing of the tag, sends a data transmission instruction to the virtual gateway, instructs the virtual gateway to transmit a task instruction to the virtual electronic price tag through the data transmission instruction, and instructs the virtual electronic price tag to execute operation tasks such as virtual image brushing, virtual price changing, lighting and the like through the task instruction. After the virtual electronic price tag executes the operation task, the information of the execution result, such as the information of completion of drawing, success in price changing or completion of lighting, is fed back to the virtual gateway. After receiving the execution result information, the virtual gateway reports the execution result information to the server; and the server determines whether the logic for executing the operation task is feasible to be the inspection result according to the execution result information.
It should be noted that, because heartbeat detection, wake-up detection and communication link detection are performed on actual gateway devices and hardware of the electronic price tag, when a process of executing an operation task by the electronic price tag system is patrolled, the server only needs to execute polling of virtual image brushing of the tag, wherein detected data does not need to be recorded as production data, and it is ensured that the current logic of executing the operation task of the whole electronic price tag system is smooth and has no fault.
In some embodiments, the server performs an inspection operation on the object to be detected according to the inspection data to obtain an inspection result, and further includes:
step S3521, the server sends a test message to the virtual client through the message middleware of the server according to a preset communication protocol, and receives a response message returned by the virtual client;
and S3522, obtaining a polling result of the server communication mechanism according to the response message.
In some embodiments, the predetermined communication protocol may be a Message Queue Telemetry Transport (MQTT). Based on a Message Queue Telemetry Transport (MQTT), through communication between the server and the virtual client, information reception and transmission of a Message middleware of the server are detected, and a routing inspection result of the server in communication according to a preset protocol is obtained.
In some embodiments, the method further comprises:
step S303, the server generates a polling report of the electronic price tag system according to a polling result; and pushing the polling report to the client in a preset form.
In some embodiments, the patrol inspection report generated by the server is notified to the operation and maintenance related personnel in a certain manner, such as short message notification, mail notification, enterprise WeChat notification, nailing notification, and the like; therefore, the server can be actively pushed to the associated client side through the mobile phone short message, the small program interface, the nail interface and the like.
For example, referring to fig. 4, the schematic interface diagram for generating the inspection report provided in the embodiment of the present application may be a report interface displayed at the server side, or may also be an interface diagram pushed to the client side through another application interface for display, for example, the interface diagram is pushed to the client side in the form of a short message, a small program, a nail, or another APP.
As shown in fig. 4, the electronic price tag polling report generated by the server executing polling operation 4 th time in day 22/3 month includes polling operations such as detection of server resource usage, detection of heartbeat of randomly selected on-line gateway device (AC23100001), detection of wake-up function of currently designated tag (a23100001), detection of connection establishment with gateway device and tag, and detection of message transmission and reception based on MQTT protocol. The detection of the service condition of the corresponding server resource gives the current service condition of the server, for example, the maximum utilization rate of a processor CPU is 70%, the maximum utilization rate of a memory is 60%, and the result of the inspection of the service index of the server resource is normal under the condition that the maximum utilization rate of the processor CPU is not more than a preset operation parameter threshold value. Other polling items also correspondingly give out whether the polling is successful or normal; for example, the heartbeat detection of the gateway device is successful, the label awakening is successful, the connection between the gateway and the label is successfully established, and the MQTT message is normally sent and received.
It should be noted that the dates and the polling times in the above-mentioned figures are only exemplary, and may be other polling data that is set, and may be specifically set according to an actual application scenario, and are not limited specifically here.
According to the embodiment of the application, the server acquires the routing inspection data preset for the object to be detected in the electronic price tag system; according to the polling data, performing polling operation on the object to be detected to obtain a polling result; the method comprises the steps of detecting gateway heartbeat of an electronic price tag system, monitoring resources of a server of the electronic price tag system, simulating a drawing brushing process of an electronic tag, and generating and automatically pushing a routing inspection report; the running state of the automatic inspection equipment of the multi-electronic tag system is realized, the electronic price tag system is dynamically monitored at regular time, and the reliability of the system is improved. According to the embodiment of the application, the server dynamically detects the equipment in the electronic price tag system according to the preset inspection data, so that the defects of communication disconnection, server operation faults and the like of the electronic price tag system in the wireless communication process can be detected in time, the fault type is determined through the inspection result, the reliability of communication of the electronic price tag system is guaranteed, and the working efficiency of the electronic price tag system is improved.
Corresponding to the polling method of the electronic price tag system in the above embodiment, referring to fig. 5, the embodiment of the present application further provides a polling device of the electronic price tag system, the device including:
the acquiring unit 51 is used for acquiring routing inspection data preset for an object to be detected in the electronic price tag system;
and the execution unit 52 is configured to execute the inspection operation on the object to be detected according to the inspection data to obtain an inspection result.
According to the embodiment of the application, the server acquires the routing inspection data preset for the object to be detected in the electronic price tag system; according to the polling data, performing polling operation on the object to be detected to obtain a polling result; according to the embodiment of the application, the server dynamically detects the equipment in the electronic price tag system according to the preset inspection data, so that the defects of communication disconnection, server operation faults and the like of the electronic price tag system in the wireless communication process can be detected in time, the fault type is determined through the inspection result, the reliability of communication of the electronic price tag system is guaranteed, and the working efficiency of the electronic price tag system is improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
Fig. 6 is a schematic structural diagram of the server 6 according to an embodiment of the present application. As shown in fig. 6, the server 6 of this embodiment includes: at least one processor 60 (only one shown in FIG. 6), a memory 61, and a computer program 62 stored in the memory 61 and operable on the at least one processor 60, the processor 60 implementing the steps in the patrol method embodiments of any of the various electronic price tag systems described above when the computer program 62 is executed by the processor.
The server 6 may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of the server 6, and does not constitute a limitation on the server 6, and may include more or less components than those shown, or some components in combination, or different components, such as input output devices, network access devices, etc.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 61 may in some embodiments be an internal storage unit of the server 6, such as a hard disk or a memory of the server 6. The memory 61 may also be an external storage device of the server 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the server 6. Further, the memory 61 may also include both an internal storage unit of the server 6 and an external storage device. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other ways. For example, the above-described apparatus/server embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (9)

1. A method for polling an electronic price tag system, the method comprising:
acquiring preset inspection data aiming at an object to be detected in the electronic price tag system;
according to the inspection data, performing inspection operation on the object to be detected to obtain an inspection result;
according to the inspection data, the inspection operation is executed on the object to be detected to obtain an inspection result, and the method further comprises the following steps:
sending a data transmission instruction to a virtual gateway, wherein the data transmission instruction is used for indicating the virtual gateway to send a task instruction to a virtual electronic price tag, and the task instruction is used for indicating the virtual electronic price tag to execute an operation task;
receiving execution result information sent by the virtual gateway, wherein the execution result information is response information sent by the virtual electronic price tag after the virtual electronic price tag executes the task instruction;
and obtaining a polling result aiming at the virtual electronic price tag task execution process according to the execution result information.
2. The method of claim 1, wherein the objects to be detected comprise a server, a gateway device and an electronic price tag;
according to the inspection data, the inspection operation is executed on the object to be detected to obtain an inspection result, and the method comprises the following steps:
and executing inspection operation on the server, the gateway equipment and the electronic price tag according to the inspection times and the execution time in the inspection data to obtain an inspection result.
3. The method according to claim 2, wherein the performing inspection operation on the object to be detected according to the inspection data to obtain an inspection result comprises:
acquiring server operation parameters in an electronic price tag system within a preset time period;
and comparing the server operation parameter with a preset operation parameter threshold value to obtain a polling result of the server operation state.
4. The method according to claim 2, wherein the performing inspection operation on the object to be inspected according to the inspection data to obtain an inspection result, further comprises:
sending a detection instruction with a preset format to gateway equipment in the electronic price tag system;
and if a first response instruction fed back by the gateway equipment based on the detection instruction is received within a preset time period, obtaining a routing inspection result which is normally connected with the gateway equipment.
5. The method according to claim 2, wherein the performing inspection operation on the object to be detected according to the inspection data to obtain an inspection result comprises:
sending a test instruction to the gateway equipment, wherein the test instruction is used for indicating the gateway equipment to send a wake-up instruction to the electronic price tag;
if a second response instruction fed back by the gateway equipment is received within a preset time period, obtaining a normal routing inspection result of a link between the gateway equipment and the electronic price tag;
the second response instruction is an instruction generated by the gateway device based on the awakened message fed back by the electronic price tag, and the awakened message fed back by the electronic price tag is a message generated by the electronic price tag based on the awakening instruction.
6. The method according to claim 1, wherein the performing inspection operation on the object to be inspected according to the inspection data to obtain an inspection result, further comprises:
sending a test message to a virtual client through a message middleware of a server according to a preset communication protocol, and receiving a response message returned by the virtual client;
and obtaining the polling result of the server communication mechanism according to the response message.
7. The method of any of claims 1 to 6, further comprising:
generating a polling report of the electronic price tag system according to the polling result;
and pushing the routing inspection report to a client in a preset form.
8. A server, characterized in that the server comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202110432014.0A 2021-04-21 2021-04-21 Inspection method of electronic price tag system, server and computer readable storage medium Active CN113141280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110432014.0A CN113141280B (en) 2021-04-21 2021-04-21 Inspection method of electronic price tag system, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110432014.0A CN113141280B (en) 2021-04-21 2021-04-21 Inspection method of electronic price tag system, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113141280A CN113141280A (en) 2021-07-20
CN113141280B true CN113141280B (en) 2022-05-03

Family

ID=76813584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110432014.0A Active CN113141280B (en) 2021-04-21 2021-04-21 Inspection method of electronic price tag system, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113141280B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835584A (en) * 2020-06-19 2020-10-27 深圳奇迹智慧网络有限公司 Inspection method and device for products of Internet of things, computer equipment and storage medium
CN112672369A (en) * 2020-12-22 2021-04-16 努比亚技术有限公司 Electronic price tag management method, server and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001291164A (en) * 2000-04-06 2001-10-19 Toshiba Tec Corp Radio shelf labeling system
KR20160012267A (en) * 2014-07-23 2016-02-03 삼성전기주식회사 Electronic shelf label tag, electronic shelf label system and operation method thereof
US10275301B2 (en) * 2015-09-29 2019-04-30 International Business Machines Corporation Detecting and analyzing performance anomalies of client-server based applications
CN110048507B (en) * 2019-03-29 2023-04-11 国网山东省电力公司邹城市供电公司 Automatic inspection method and system for power distribution automation system
CN112288071B (en) * 2020-10-29 2024-03-19 努比亚技术有限公司 Electronic price tag display method, electronic price tag, and computer-readable storage medium
CN112464090A (en) * 2020-11-27 2021-03-09 努比亚技术有限公司 Electronic price tag information updating method, electronic price tag and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835584A (en) * 2020-06-19 2020-10-27 深圳奇迹智慧网络有限公司 Inspection method and device for products of Internet of things, computer equipment and storage medium
CN112672369A (en) * 2020-12-22 2021-04-16 努比亚技术有限公司 Electronic price tag management method, server and computer readable storage medium

Also Published As

Publication number Publication date
CN113141280A (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN110568838B (en) Vehicle quiescent current acquisition method and system, electronic device and storage medium
CN110213068A (en) A kind of monitoring method and relevant device of message-oriented middleware
US20130055271A1 (en) Apparatus and method for controlling polling
CA2588007A1 (en) System and method for monitoring mobile units in a wireless network
CN109191674A (en) Vending machine people replenishing method and system
CN105100138A (en) Electronic waste recycling system based on internet of things
CN113163345A (en) Broadcast communication method, system, gateway equipment and electronic price tag
CN111625418A (en) Process monitoring method and device
CN114490272A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111131418A (en) Vulnerable part monitoring and managing method, device and system
CN113141280B (en) Inspection method of electronic price tag system, server and computer readable storage medium
CN114092082A (en) Consumption method and system of intelligent consumption machine based on multiple consumption situations
CN111652681A (en) Receipt processing method, server and computer readable storage medium
CN113190516A (en) Data synchronization monitoring method and device
CN109245927A (en) Warning system and method in cloud data system
US20210241202A1 (en) Tracking of equipment utilization via distributed ledger
CN114500316A (en) Method and system for inspecting equipment of Internet of things
CN115604089A (en) Network fault positioning method and device
CN114372551A (en) Server positioning system, method and computer readable storage medium
CN113012343A (en) Automatic vending machine delivery method and related equipment
CN110009420A (en) The ticket system and ticket drawing method of value-added service
CN212341899U (en) Visual operation and maintenance management system
CN113421080B (en) Supermarket transaction checking method, transaction server and collaboration server
CN117973421A (en) Control method, device and system of electronic tag and storage medium
CN111756834B (en) Code scanning delay processing method and device

Legal Events

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