CN117973421A - Control method, device and system of electronic tag and storage medium - Google Patents

Control method, device and system of electronic tag and storage medium Download PDF

Info

Publication number
CN117973421A
CN117973421A CN202410166472.8A CN202410166472A CN117973421A CN 117973421 A CN117973421 A CN 117973421A CN 202410166472 A CN202410166472 A CN 202410166472A CN 117973421 A CN117973421 A CN 117973421A
Authority
CN
China
Prior art keywords
task
data
task data
electronic
electronic tag
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
CN202410166472.8A
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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202410166472.8A priority Critical patent/CN117973421A/en
Publication of CN117973421A publication Critical patent/CN117973421A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a control method, a device, a system and a storage medium of an electronic tag, and belongs to the technical field of Internet of things. And the gateway equipment responds to a transaction starting instruction sent by the server and starts to receive and buffer task data sent by the server. And the gateway equipment responds to a transaction ending instruction sent by the server, ends receiving task data sent by the server, and wakes up a plurality of electronic tags according to the cached plurality of task data. The gateway equipment simultaneously sends the task data to the electronic tags so that each electronic tag in the electronic tags performs task processing according to the task data corresponding to each electronic tag. Because the gateway equipment simultaneously controls the plurality of electronic tags to perform task processing, the gateway equipment has higher efficiency of controlling the plurality of electronic tags to perform task processing.

Description

Control method, device and system of electronic tag and storage medium
Technical Field
The application relates to the technical field of the internet of things, in particular to a control method, a device, a system and a storage medium of an electronic tag.
Background
An electronic tag is also called an electronic shelf tag or an electronic price tag, and is a device for displaying information such as a name and price of a commodity. With the development of the internet of things technology, the electronic tag can be controlled by using the internet of things technology. For example, the internet of things technology is applied to control the electronic tag to display information, control the electronic tag to perform system upgrading and the like.
In large commercial establishments, electronic shelves typically include multiple electronic tags that may display information for the same item or for different items. Currently, in a scheme of controlling the plurality of electronic tags by using the internet of things technology, a server sequentially controls the plurality of electronic tags through gateway equipment. The server sequentially sends a plurality of pieces of task data corresponding to the plurality of electronic tags one by one to the gateway device, and the gateway device sequentially controls the plurality of electronic tags to perform task processing according to the plurality of pieces of task data.
However, the current scheme for controlling the electronic tags has low efficiency in controlling a plurality of electronic tags.
Disclosure of Invention
The application provides a control method, a control device and a storage medium for electronic tags, which can improve the efficiency of controlling a plurality of electronic tags. The technical scheme is as follows.
In a first aspect, a control method of an electronic tag is provided, where the method includes:
Responding to a transaction starting instruction sent by a server, starting to receive and cache task data sent by the server, wherein the transaction starting instruction is used for indicating gateway equipment to start receiving the task data;
Responding to a transaction ending instruction sent by the server, ending receiving task data sent by the server, waking up a plurality of electronic tags according to a plurality of cached task data, wherein the plurality of task data correspond to the plurality of electronic tags, each piece of task data is used for controlling the corresponding electronic tag to process tasks, and the transaction ending instruction is used for indicating the gateway equipment to stop receiving the task data;
And simultaneously sending the plurality of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag.
Optionally, the waking up a plurality of electronic tags according to the cached plurality of task data includes:
Determining the plurality of electronic tags according to the plurality of task data;
Determining a broadcast frequency band according to the working frequency bands of the plurality of electronic tags, wherein the broadcast frequency band comprises the working frequency band of each electronic tag in the plurality of electronic tags;
broadcasting a wake-up instruction in the broadcast frequency band to wake up the plurality of electronic tags.
Optionally, each piece of task data in the plurality of pieces of task data includes identification information and data content, the identification information includes a data identification and a tag identification, and the data content is used for performing task processing on an electronic tag corresponding to each piece of task data;
the receiving the task data sent by the server comprises the following steps: receiving identification information of task data sent by the server;
the step of caching task data sent by the server comprises the following steps:
Identification information for each piece of task data sent by the server:
Transmitting a data acquisition request to the server to acquire the data content of the task data and caching the identification information and the acquired data content of the task data under the condition that the cache space of the gateway equipment does not contain the data identification in the identification information;
and caching the identification information of the task data under the condition that the cache space of the gateway equipment comprises the data identification in the identification information.
Optionally, after the plurality of task data are simultaneously sent to the plurality of electronic tags, the method further includes:
Receiving task processing results sent by the plurality of electronic tags, wherein the task processing results sent by each electronic tag in the plurality of electronic tags are results obtained by performing task processing on each electronic tag according to task data corresponding to each electronic tag;
when a task processing result of at least one electronic tag in the plurality of electronic tags is used for indicating that task processing fails, a task cancel instruction is sent to the plurality of electronic tags so as to enable the plurality of electronic tags to be restored to an initial mode, wherein the initial mode of each electronic tag in the plurality of electronic tags is a mode before the task processing is carried out according to corresponding task data by each electronic tag;
And under the condition that the task processing results of the plurality of electronic tags are used for indicating that the task processing is successful, sending a transaction processing result to the server, wherein the transaction processing result is used for indicating that the plurality of electronic tags successfully complete the task processing according to the plurality of task data.
Optionally, before starting to receive the task data sent by the server, the method further includes: responding to the transaction starting instruction, and starting a data receiving thread;
The starting to receive and buffer the task data sent by the server comprises the following steps: and starting to receive task data sent by the server through the data receiving thread.
In a second aspect, a control method of an electronic tag is provided, where the method includes:
a transaction starting instruction is sent to gateway equipment, and the transaction starting instruction is used for indicating the gateway equipment to start receiving task data;
after the transaction starting instruction is sent, a plurality of pieces of task data are sent to the gateway equipment, the task data correspond to a plurality of electronic tags, and each piece of task data is used for controlling the corresponding electronic tag to process tasks;
After the plurality of pieces of task data are sent, a transaction ending instruction is sent to the gateway equipment, wherein the transaction ending instruction is used for indicating the gateway equipment to stop receiving the task data, the gateway equipment is used for responding to the transaction ending instruction, waking up the plurality of electronic tags according to the plurality of pieces of task data, and simultaneously sending the plurality of pieces of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags carries out task processing according to the task data corresponding to each electronic tag.
Optionally, the sending a plurality of task data to the gateway device includes: and sequentially sending the plurality of pieces of task data to the gateway equipment.
In a third aspect, a control method of an electronic tag is provided, where the method includes:
Under the control of gateway equipment, the state of the first electronic tag is adjusted from a dormant state to an awake state;
Receiving first task data sent by the gateway device, wherein the first task data is task data corresponding to the first electronic tag in task data sent to a plurality of electronic tags after the gateway device wakes up the plurality of electronic tags according to the plurality of task data, the plurality of task data corresponds to the plurality of electronic tags, and the plurality of electronic tags comprise the first electronic tag;
and performing task processing according to the first task data.
Optionally, the method further comprises:
The method comprises the steps that a task processing result is sent to gateway equipment, wherein the task processing result is obtained by performing task processing on first task data according to the first electronic tag;
Receiving a task revocation instruction sent by the gateway device, wherein the task revocation instruction is sent by the gateway device under the condition that a task processing result of at least one electronic tag in the plurality of electronic tags is used for indicating task processing failure;
And controlling the first electronic tag to recover to an initial mode according to the task cancel instruction, wherein the initial mode is a mode before the first electronic tag performs task processing according to the first task data.
Optionally, the task processing according to the first task data includes:
checking the first task data;
And under the condition that the first task data is successfully checked, performing task processing according to the first task data.
In a fourth aspect, there is provided a control device for an electronic tag, the control device including:
the receiving module is used for responding to a transaction starting instruction sent by the server, starting to receive task data sent by the server, wherein the transaction starting instruction is used for indicating gateway equipment to start receiving the task data;
The caching module is used for caching task data sent by the server;
The wake-up module is used for responding to a transaction end instruction sent by the server, ending receiving task data sent by the server, waking up a plurality of electronic tags according to a plurality of cached task data, wherein the plurality of task data correspond to the plurality of electronic tags, each task data is used for controlling the corresponding electronic tag to perform task processing, and the transaction end instruction is used for indicating the gateway equipment to stop receiving the task data;
And the sending module is used for sending the plurality of pieces of task data to the plurality of electronic tags at the same time so that each electronic tag in the plurality of electronic tags can perform task processing according to the task data corresponding to each electronic tag.
Optionally, the wake-up module is configured to:
Determining the plurality of electronic tags according to the plurality of task data;
Determining a broadcast frequency band according to the working frequency bands of the plurality of electronic tags, wherein the broadcast frequency band comprises the working frequency band of each electronic tag in the plurality of electronic tags;
broadcasting a wake-up instruction in the broadcast frequency band to wake up the plurality of electronic tags.
Optionally, each piece of task data in the plurality of pieces of task data includes identification information and data content, the identification information includes a data identification and a tag identification, and the data content is used for performing task processing on an electronic tag corresponding to each piece of task data;
the receiving module is used for receiving the identification information of the task data sent by the server;
The cache module is used for:
Identification information for each piece of task data sent by the server:
Transmitting a data acquisition request to the server to acquire the data content of the task data and caching the identification information and the acquired data content of the task data under the condition that the cache space of the gateway equipment does not contain the data identification in the identification information;
and caching the identification information of the task data under the condition that the cache space of the gateway equipment comprises the data identification in the identification information.
Optionally, the receiving module is further configured to receive a task processing result sent by the plurality of electronic tags after the sending module sends the plurality of task data to the plurality of electronic tags at the same time, where the task processing result sent by each electronic tag in the plurality of electronic tags is a result obtained by performing task processing on each electronic tag according to the task data corresponding to each electronic tag;
The sending module is further configured to send a task cancel instruction to the plurality of electronic tags to restore the plurality of electronic tags to an initial mode when a task processing result of at least one electronic tag in the plurality of electronic tags is used to indicate that task processing fails, where the initial mode of each electronic tag in the plurality of electronic tags is a mode before the task processing is performed by each electronic tag according to corresponding task data;
The sending module is further configured to send a transaction result to the server when the task processing results of the plurality of electronic tags are all used for indicating that task processing is successful, where the transaction result is used for indicating that the plurality of electronic tags successfully complete task processing according to the plurality of task data.
Optionally, the control device further includes:
The starting module is used for responding to the transaction starting instruction and starting a task data receiving thread before the receiving module starts to receive the task data sent by the server;
and the receiving module is used for starting to receive the task data sent by the server through the data receiving thread.
In a fifth aspect, there is provided a control device for an electronic tag, the control device including:
The first sending module is used for sending a transaction starting instruction to the gateway equipment, wherein the transaction starting instruction is used for indicating the gateway equipment to start receiving task data;
The second sending module is used for sending a plurality of pieces of task data to the gateway equipment after the first sending module sends the transaction starting instruction, the plurality of pieces of task data correspond to a plurality of electronic tags, and each piece of task data is used for controlling the corresponding electronic tag to process tasks;
And the third sending module is used for sending a transaction ending instruction to the gateway equipment after the second sending module sends the plurality of pieces of task data, wherein the transaction ending instruction is used for indicating the gateway equipment to stop receiving the task data, the gateway equipment is used for responding to the transaction ending instruction, waking up the plurality of electronic tags according to the plurality of pieces of task data and sending the plurality of pieces of task data to the plurality of electronic tags at the same time, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag.
Optionally, the second sending module is configured to: and sequentially sending the plurality of pieces of task data to the gateway equipment.
In a sixth aspect, there is provided a control device for an electronic tag, the control device comprising:
The wake-up module is used for adjusting the state of the first electronic tag from the dormant state to the wake-up state under the control of the gateway equipment;
The gateway device comprises a receiving module, a first receiving module and a second receiving module, wherein the receiving module is used for receiving first task data sent by the gateway device, the first task data is task data corresponding to the first electronic tag in task data sent to a plurality of electronic tags at the same time after the gateway device wakes up the plurality of electronic tags according to the plurality of task data, the plurality of task data corresponds to the plurality of electronic tags, and the plurality of electronic tags comprise the first electronic tag;
And the processing module is used for performing task processing according to the first task data.
Optionally, the control device further includes: the sending module is used for sending a task processing result to the gateway equipment, wherein the task processing result is obtained by performing task processing on the first electronic tag according to the first task data;
The receiving module is further configured to receive a task cancellation instruction sent by the gateway device, where the task cancellation instruction is sent by the gateway device when a task processing result of at least one electronic tag in the plurality of electronic tags is used to indicate that task processing fails;
The control device further includes: and the control module is used for controlling the first electronic tag to recover to an initial mode according to the task cancel instruction, wherein the initial mode is a mode before the first electronic tag performs task processing according to the first task data.
Optionally, the processing module is configured to: checking the first task data; and under the condition that the first task data is successfully checked, performing task processing according to the first task data.
In a seventh aspect, there is provided a control device for an electronic tag, the control device comprising a memory for storing a computer program and a processor for executing the computer program stored on the memory to cause the control device to perform the method as provided by the above first aspect or any of the alternative implementations of the first aspect, or to perform the method as provided by the above second aspect or any of the alternative implementations of the second aspect, or to perform the method as provided by the above third aspect or any of the alternative implementations of the third aspect.
In an eighth aspect, there is provided a control system for electronic tags, the control system including a server, a gateway device, and a plurality of electronic tags; the server comprises a control device as provided in the fourth aspect, any optional implementation manner of the fourth aspect or the seventh aspect; the gateway device comprises the control apparatus as provided in the fifth or seventh aspect above; at least one of the plurality of electronic price tags comprises a control device as provided in the sixth aspect, any optional implementation of the sixth aspect or the seventh aspect.
A ninth aspect provides a computer readable storage medium having stored thereon a computer program which when executed performs a method as provided by the above first aspect or any of the alternative implementations of the first aspect, or a method as provided by the above second aspect, or a method as provided by the above third aspect or any of the alternative implementations of the third aspect.
In a tenth aspect, there is provided a computer program product comprising instructions which when run implement a method as provided by the above first aspect or any of the alternative implementations of the first aspect, or implement a method as provided by the above second aspect, or implement a method as provided by the above third aspect or any of the alternative implementations of the third aspect.
According to the control method, the device, the system and the storage medium of the electronic tag, the gateway equipment starts to receive and buffer task data sent by the server after receiving the transaction starting instruction sent by the server. And the gateway equipment finishes receiving the task data sent by the server after receiving the transaction ending instruction sent by the server, and wakes up a plurality of electronic tags according to the cached plurality of task data. And then, the gateway equipment simultaneously transmits the plurality of pieces of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag. The gateway equipment wakes up the plurality of electronic tags according to the plurality of task data corresponding to the plurality of electronic tags, and simultaneously controls the plurality of electronic tags to perform task processing according to the plurality of task data, so that the efficiency of controlling the plurality of electronic tags is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, 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 these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a control system of an electronic tag according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another control system for an electronic tag according to an embodiment of the present application;
Fig. 3 is a flowchart of a control method of an electronic tag according to an embodiment of the present application;
fig. 4 is a flowchart of another control method of an electronic tag according to an embodiment of the present application;
Fig. 5 is a schematic diagram of a control device of an electronic tag according to an embodiment of the present application;
fig. 6 is a schematic diagram of another control device for an electronic tag according to an embodiment of the present application;
fig. 7 is a schematic diagram of a control device of another electronic tag according to an embodiment of the present application;
Fig. 8 is a schematic diagram of a control device of another electronic tag according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
Along with the rapid development of the internet of things technology, more and more industries apply the internet of things technology to control internet of things equipment. The electronic tag is also called an electronic shelf tag or an electronic price tag, is internet of things equipment for displaying information such as names and prices of goods, has an information receiving and transmitting function, and can be controlled by using the internet of things technology. For example, control the electronic tag to display information, control the electronic tag to perform system upgrade, and the like.
In large commercial establishments, electronic shelves typically include multiple electronic tags that may display information for the same item or for different items. In the scheme of controlling the plurality of electronic tags by using the internet of things technology, the plurality of electronic tags are accessed to a server (for example, an internet of things server) through gateway equipment (for example, an internet of things gateway), and the server controls the plurality of electronic tags through the gateway equipment.
In the related art, a server sequentially controls the plurality of electronic tags through a gateway device. That is, the server controls only one electronic tag at a time, and after the control of one electronic tag is ended, the server controls the next electronic tag. For example, the server wakes up a plurality of electronic tags in turn, and each time the server wakes up one electronic tag, the server sends task data to the electronic tag through the gateway device, so that the electronic tag performs task processing according to the task data, thereby realizing control of the electronic tag. However, the efficiency of controlling a plurality of electronic tags by the server in the related art is low.
The embodiment of the application provides a control method, a device, a system and a storage medium of an electronic tag. Before the server sends a plurality of pieces of task data corresponding to the plurality of electronic tags to the gateway device, the server sends a transaction start instruction to the gateway device so as to instruct the gateway device to start receiving the task data. The gateway device starts to receive and buffer task data sent by the server after receiving the transaction start instruction. After the server sends the plurality of task data to the gateway device, the server sends a transaction end instruction to the gateway device to instruct the gateway device to end receiving the task data. And the gateway equipment finishes receiving the task data sent by the server after receiving the transaction ending instruction, and wakes up a plurality of electronic tags according to the cached plurality of task data. And then, the gateway equipment simultaneously transmits the plurality of pieces of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag. The gateway equipment simultaneously controls the plurality of electronic tags to perform task processing according to the plurality of pieces of task data corresponding to the plurality of electronic tags, so that the efficiency of controlling the plurality of electronic tags is improved.
The technical scheme of the embodiment of the application is described below. First, an application scenario of the embodiment of the present application is described.
Please refer to fig. 1, which illustrates a schematic diagram of an application scenario provided in an embodiment of the present application. The application scene provides a control system of the electronic tag. As shown in fig. 1, the control system includes a gateway apparatus 101, a server 20, and a plurality of electronic tags 301 to 303. The gateway device 101 is connected to the server 20 and the electronic tags 301 to 303, respectively. For example, the gateway device 101 is communicatively connected to the server 20 via a wireless network or a wired network, and the gateway device 101 is communicatively connected to the electronic tags 301 to 303 via a wireless network.
Wherein the server 20 is configured to control the electronic tags 301 to 303 through the gateway device 101. For example, the server 20 transmits task data to the electronic tags 301 to 303 through the gateway apparatus 101 to control the electronic tags 301 to 303 to perform task processing. In the embodiment of the present application, before the server 20 sends the task data corresponding to the electronic tags 301 to 303 to the gateway device 101, the server 20 sends a transaction start instruction to the gateway device 101 to instruct the gateway device 101 to start receiving the task data, and after the gateway device 101 receives the transaction start instruction, the server 20 starts to receive the task data sent by the server 20, and caches the task data sent by the server 20. After the server 20 transmits the task data corresponding to the electronic tags 301 to 303 to the gateway apparatus 101, the server 20 transmits a transaction end instruction to instruct the gateway apparatus 101 to end receiving the task data. After receiving the transaction end instruction, gateway device 101 ends receiving task data, and wakes up electronic tags 301 to 303 according to the cached pieces of task data corresponding to electronic tags 301 to 303. Then, the gateway device 101 simultaneously transmits the plurality of pieces of task data to the electronic tags 301 to 303 (for example, the gateway device 101 transmits the task data corresponding to each of the electronic tags 301 to 303 to each of the electronic tags, and the gateway device 101 simultaneously transmits the task data to the electronic tags 301 to 303), so that each of the electronic tags 301 to 303 performs task processing according to the task data corresponding to each of the electronic tags.
The application scenario shown in fig. 1 is illustrated by taking a gateway device as an example of the control system of the electronic tag. In some embodiments, the control system includes a plurality of gateway devices, and the server controls the plurality of electronic tags through all or part of the plurality of gateway devices. As an example, please refer to fig. 2, which illustrates a schematic diagram of another application scenario provided by an embodiment of the present application. The control system of the electronic tag provided by the application scene comprises gateway equipment 101-102, a server 20 and a plurality of electronic tags 301-306. Gateway device 101 is connected to server 20 and electronic tags 301 to 303, and gateway device 102 is connected to server 20 and electronic tags 304 to 306. For example, the gateway devices 101 to 102 are communicatively connected to the server 20 via a wireless network or a wired network, the gateway device 101 is communicatively connected to the electronic tags 301 to 303 via a wireless network, and the gateway device 102 is communicatively connected to the electronic tags 304 to 306 via a wireless network.
The server 20 is used for controlling the electronic tags 301 to 303 through the gateway device 101, and the server 20 is used for controlling the electronic tags 304 to 306 through the gateway device 102. Description of the control of the electronic tags 301 to 303 by the server 20 through the gateway device 101 and description of the control of the electronic tags 304 to 306 by the server 20 through the gateway device 102 refer to the application scenario shown in fig. 1, and will not be described here.
It should be noted that, the electronic tags 301 to 306 are internet of things devices, the gateway devices 101 to 102 are internet of things gateways, and the server 20 may be an internet of things server. The server 20 may be a server, or a server cluster composed of a plurality of servers, or a cloud computing service center. Wireless networks include, but are not limited to, the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, or bluetooth networks, among others. Wired networks include, but are not limited to, twisted pair, optical fiber, and the like.
It should be noted that, the application scenarios shown in fig. 1 and fig. 2 are only for example, and are not used for limiting the technical solution of the embodiment of the present application. The number of electronic tags, the number of gateway devices and the number of servers included in the application scenario may be set according to actual situations, which is not limited in the embodiment of the present application.
The above is an introduction to the application scenario of the present application, and the following describes the method embodiment of the present application.
Referring to fig. 3, a flowchart of a control method of an electronic tag according to an embodiment of the present application is shown. The control method may be applied to a control system as shown in fig. 1 or fig. 2. Referring to fig. 3, the method flow includes the following steps S301 to S309.
S301, the server sends a transaction start instruction to the gateway device, wherein the transaction start instruction is used for instructing the gateway device to start receiving task data.
The server sends a transaction start instruction to the gateway device via a communication connection between the server and the gateway device. The gateway device is any gateway device communicatively coupled to the server. The transaction start instruction includes the number of the plurality of electronic tags that the server needs to control this time. The plurality of electronic tags are all electronic tags hung under the gateway equipment. In one example, the server is the server 20 in the control system shown in fig. 1, the gateway device is the gateway device 101 in the control system shown in fig. 1, and the plurality of electronic tags are all or part of the electronic tags 301-303 in the control system shown in fig. 1. In another example, the server is the server 20 in the control system shown in fig. 2, the gateway device is the gateway device 101 in the control system shown in fig. 2, and the plurality of electronic tags are all or part of the electronic tags 301-303 in the control system shown in fig. 2. In yet another example, the server is the server 20 in the control system shown in FIG. 2, the gateway device is the gateway device 102 in the control system shown in FIG. 2, and the plurality of electronic tags are all or part of the electronic tags 304-306 in the control system shown in FIG. 2.
In alternative embodiments, the transaction start instruction may include a command identification code, a transaction execution code, a transaction duration, and the like. The command identification code is used to identify the transaction start instructions to distinguish between the different transaction start instructions. The command identification code may be an Identification (ID) of the command. The transaction execution code is used to identify transactions to distinguish between different transactions. The transaction execution code may be an identification of the transaction. The transaction duration is the maximum duration of the transaction, in particular the maximum duration from the start of the transaction to the end of the transaction. In the embodiment of the present application, after receiving the transaction start instruction, the gateway device starts executing the transaction corresponding to the transaction start instruction (for example, the transaction is referred to as a target transaction), where executing the target transaction by the gateway device specifically includes the gateway device starting to receive and buffer task data sent by the server, and after receiving the transaction start instruction, the gateway device starts a countdown function according to a transaction duration in the transaction start instruction, and if the countdown is finished, the gateway device determines that the task data is buffered, and the gateway device stops buffering the task data sent by the server, and further, reports a buffer exception response to the server. The embodiment of the application sets the transaction starting instruction to comprise the transaction duration, and can avoid the gateway equipment from generating the abnormality caused by occupying the cache space for a long time when the gateway equipment generates the abnormality due to caching a plurality of task data corresponding to the target transaction.
In an alternative embodiment, a server obtains a task list, generates a transaction start instruction according to the server, and sends the transaction start instruction to a gateway device. In one embodiment, a user selects a plurality of electronic tags based on a display interface of a server, and data content corresponding to each of the plurality of electronic tags. The server acquires tag identifications of a plurality of electronic tags, data content corresponding to each electronic tag and data identifications corresponding to each data content. The server generates a task list corresponding to the gateway device according to the tag identifications of the plurality of electronic tags, the data content corresponding to each electronic tag in the plurality of electronic tags and the data identifications corresponding to the data content. Each action in the task list is task data corresponding to one electronic tag, and the task list is shown in table 1 by way of example.
TABLE 1
And the server counts the number of the tag identifications in the task list according to the task list so as to determine the number of the electronic tags. The server determines the transaction duration corresponding to the number of the electronic tags according to the relation between the number of the pre-established electronic tags and the transaction duration. The server randomly generates a transaction execution code and a command identification code. The server generates a transaction start instruction according to the command identification code, the identification of a transaction transmitting end (such as the server described in the embodiment of the application), the number of electronic tags, the transaction name, the transaction duration and the transaction execution code, and transmits the transaction start instruction to the gateway device. For example, the command identification code is "20230713001", the identifier of the transaction transmitting end is "iot", the number of electronic tags is "3", the transaction name is "StartTransaction", the transaction duration is "60s", the transaction execution code is "20230713115500001", wherein "iot" is used for referring to a server, and the transaction starting instruction is as follows:
S302, the server sends a plurality of pieces of task data to the gateway equipment, the plurality of pieces of task data correspond to a plurality of electronic tags, and each piece of task data is used for controlling the corresponding electronic tag to process tasks.
After the server sends the transaction start instruction to the gateway device, the server starts executing the transaction (i.e., the target transaction) corresponding to the transaction start instruction, and specifically, the server sends multiple pieces of task data to the gateway device. For example, the plurality of task data corresponds to the plurality of electronic tags one by one, and the electronic tags corresponding to different task data are different. Each piece of task data in the plurality of pieces of task data is used for controlling the corresponding electronic tag to process tasks.
In an alternative embodiment, the server sequentially sends the plurality of task data to the gateway device, or the server simultaneously sends the plurality of task data to the gateway device. For example, the server packages the plurality of task data and transmits the packaged task data to the gateway device. In one embodiment, the server transmits the plurality of pieces of task data to the gateway device after a preset time period after transmitting the transaction start instruction to the gateway device. For example, after the server sends the transaction start instruction to the gateway device, the server counts down a preset time period, and the server sends the plurality of pieces of task data to the gateway device when the count down is finished. In another embodiment, after receiving the transaction start instruction sent by the server, the gateway device sends a response instruction to the server, and after receiving the response instruction, the server sends the plurality of task data to the gateway device. Wherein the response instruction is for indicating that the gateway device is ready to receive task data. Illustratively, the response instruction includes: command identification code, identification of transaction sender, transaction name and response information. For example, the command identification code is "20230713001", the identification of the transaction transmitting end is "iot", the transaction name is "StartTransaction", and the response information is "ok". The response instruction is as follows:
{
"id":20230713001,
"from":"iot",
"command":"StartTransaction",
"status":"ok"
}
In an alternative embodiment, each piece of task data in the plurality of pieces of task data includes identification information and data content. The identification information includes a tag identification and a data identification. For the server to send each piece of task data to the gateway device: the server transmits identification information of the task data to the gateway device. After receiving the identification information of the task data, the gateway equipment compares the data identification stored in the cache space with the data identification in the identification information. If the cache space of the gateway device does not include the data identifier in the identifier information, the gateway device sends a data acquisition request to the server to acquire the data content of the task data. After the server receives the data acquisition request, the server sends the data content corresponding to the data identifier to the gateway device according to the data identifier carried in the data acquisition request. The data identifier is used for identifying the data content, and the tag identifier is used for identifying the electronic tag corresponding to each piece of task data. The data content is used for carrying out task processing on the electronic tag corresponding to each piece of task data. The data content of the data identification identical task data is identical. The data identifier and the tag identifier may be identifiers such as characters, graphics, and the like. The data content comprises any one of image data, software upgrading data and control data of a warning lamp on the electronic tag.
In an alternative embodiment, before the server sends the plurality of pieces of task data to the gateway device, the server generates identification information of each piece of task data in the plurality of pieces of task data. In one embodiment, the server traverses each row of data in the task list as shown in table 1 in turn, uses the tag identifier and the data identifier in each row of data as the identifier information of the task data corresponding to one electronic tag, and sends the identifier information of the task data corresponding to the electronic tag to the gateway device.
After receiving the identification information of each piece of task data, the gateway device compares the data identification stored in the cache space with the data identification in the identification information. If the cache space of the gateway device does not include the data identifier in the identifier information, the gateway device sends a data acquisition request to the server to acquire the data content of the task data. After the server receives the data acquisition request, the server searches the data content corresponding to the data identifier in the task list according to the data identifier carried in the data acquisition request, and sends the data content corresponding to the data identifier to the gateway equipment. The data acquisition request is used for indicating the server to send the data content corresponding to the data identifier. The gateway device may send a data acquisition request to the server via a communication protocol. The specific communication protocol may be the hypertext transfer protocol (hypertext transfer protocol, HTTP) or the hypertext transfer security protocol (hypertext transfer protocol secure, HTTPs).
For example, the server sends the identification information 1 of the task data 1 to the gateway device, and after the gateway device receives the identification information 1, the gateway device compares the data identification "1" in the identification information 1 with the data identification in the cache space of the gateway device to determine whether the cache space of the gateway device includes the data identification "1". If the cache space of the gateway device does not include the data identifier "1", the gateway device sends a data acquisition request 1 to the server. After receiving the data acquisition request 1, the server searches the data content "01010011" corresponding to the data identifier "1" in table 1 according to the data acquisition request 1, and sends the data content "01010011" to the gateway device.
In an optional embodiment, the identification information of each piece of task data sent by the server to the gateway device further includes a task identifier, a task sender identifier, a task name, and an execution mode identifier. Wherein the task identification is used to distinguish between different tasks. The execution mode identifier is used for indicating the execution mode of the task. The task sender is identified as the name of the different task senders. In the embodiment of the application, the server sequentially sends the identification information of a plurality of pieces of task data to the gateway equipment. For example, the server transmits identification information 1 of task data 1, identification information 2 of task data 2, identification information 3 of task data 3 to the gateway device.
The task identifier is "20230713002", the tag identifier is "esl001", the task transmitting end is "iot", the task name is "shadow", the execution mode is "set", and the data identifier is "1". Wherein, "iot" is used to refer to a server. "shadow" is used to indicate an image refresh. "set" is used to indicate a setting. For example, the identification information 1 of the task data 1 is as follows:
{
"id":20230713002,
"from":"iot",
"to":"esl001",
"command":"shadow",
"method":"set",
"d":{
"taskId":1,
}
}
The task identifier is "20230713003", the tag identifier is "esl002", the task transmitting end is "iot", the task name is "shadow", the execution mode is "set", and the data identifier is "1". By way of example, the identification information 2 of the task data 2 is as follows:
{
"id":20230713003,
"from":"iot",
"to":"esl002",
"command":"shadow",
"method":"set",
"d":{
"taskId":1,
}
}
The task identifier is "20230713004", the tag identifier is "esl003", the task transmitting end is "iot", the task name is "shadow", the execution mode is "set", and the data identifier is "1". By way of example, the identification information 3 of the task data 3 is as follows:
{
"id":20230713004,
"from":"iot",
"to":"esl003",
"command":"shadow",
"method":"set",
"d":{
"taskId":1
}
}
S303, the gateway equipment responds to a transaction starting instruction sent by the server to start receiving and caching task data sent by the server.
After receiving the transaction start instruction sent by the server, the gateway device starts to receive the task data sent by the server, and caches the task data sent by the server. For example, the gateway device stores task data sent by the server in a buffer space of the gateway device.
In an alternative embodiment, the gateway device includes a data receiving thread, after the gateway device receives a transaction starting instruction sent by the server, the gateway device starts the data receiving thread, the gateway device starts to receive task data sent by the server through the data receiving thread, and the gateway device stores the task data sent by the server in a cache space of the gateway device through the data receiving thread. In one embodiment, the gateway device starts a data receiving thread of the gateway device, and the gateway device sequentially receives a plurality of task data sent by the server through the data receiving thread. In another embodiment, the gateway device starts a plurality of data receiving threads of the gateway device, and the gateway device receives a plurality of task data sent by the server through the plurality of data receiving threads. The embodiment of the present application is not limited thereto.
In an alternative embodiment, the server sends identification information of each piece of task data to the gateway device. The gateway device receives the identification information of the task data. Identification information for each piece of task data sent by the server to the gateway device: and the gateway equipment sends a data acquisition request to the server to acquire the data content of the task data under the condition that the cache space of the gateway equipment does not comprise the data identification in the identification information. The server transmits the data content of the task data to the gateway device. After the gateway device receives the data content of the task data, the gateway device caches the identification information and the acquired data content of the task data, that is, the gateway device caches the data identifier in the identification information, the tag identifier in the identification information and the data content of the task data. And under the condition that the cache space of the gateway equipment comprises the data identifier in the identifier information, caching the identifier information of the task data, and associating the data identifier in the identifier information with the data content corresponding to the data identifier in the cache space of the gateway equipment. That is, in the case where the data identifier in the identifier information is not included in the cache space of the gateway device, the gateway device transmits a data acquisition request to the server to acquire the data content of the task data, and caches the complete content of the task data. Under the condition that the cache space of the gateway equipment comprises the data identifier in the identifier information, the gateway equipment caches part of the content of the task data without sending a data acquisition request to a server, so that the gateway equipment reduces the request times, can avoid caching repeated data content and reduces the occupation of the cache space of the gateway equipment.
For example, after receiving the identification information 1 of the task data 1, the gateway device compares the data identification "1" in the identification information 1 with the data identification in the cache space of the gateway device to determine whether the cache space of the gateway device includes the data identification "1". If the cache space of the gateway device does not include the data identifier "1", the gateway device sends a data acquisition request 1 to the server. After the server receives the data acquisition request 1, the server searches the data content "01010011" corresponding to the data identifier "1" in table 1 according to the data identifier "1" carried in the data acquisition request 1. The server sends the found data content "01010011" to the gateway device. The gateway device caches data identification "1", tag identification "esl001" and data content "01010011". If the cache space of the gateway device includes a data identifier "1", the gateway device caches the data identifier "1" and the tag identifier "esl" in the identifier information 1. After the gateway device receives the identification information 2 of the task data 2, the gateway device compares the data identification "1" in the identification information 2 with the data identification in the cache space in the gateway device to determine whether the cache space in the gateway device includes the data identification "1". If the cache space of the gateway device does not include the data identifier "1", the gateway device sends a data acquisition request 2 to the server. After the server receives the data acquisition request 2 sent by the gateway device, the server searches the data content "01010011" corresponding to the data identifier "1" in table 1 according to the data identifier "1" carried in the data acquisition request 2. The server sends the found data content "01010011" to the gateway device. The gateway device caches data identification "1", tag identification "esl002" and data content "01010011". If the cache space in the gateway device includes a data identifier "1", the gateway device caches the data identifier "1" and the tag identifier "esl002" in the identifier information 2. After the gateway device receives the identification information 3 of the task data 3, the gateway device compares the data identification "1" in the identification information 3 with the data identification in the cache space in the gateway device to determine whether the cache space in the gateway device includes the data identification "1". If the cache space in the gateway device includes a data identifier "1", the gateway device caches the data identifier "1" and the tag identifier "esl" 003 "in the identifier information 3. If the cache space of the gateway device does not include the data identifier "1", the gateway device sends a data acquisition request 3 to the server. After the server receives the data acquisition request 3 sent by the gateway device, the server searches the data content "01010011" corresponding to the data identifier "1" in table 1 according to the data identifier "1" carried in the data acquisition request 3. The server sends the found data content "01010011" to the gateway device. The gateway device caches data identification "1", tag identification "esl" 003 "and data content" 01010011".
S304, the server sends a transaction ending instruction to the gateway equipment, wherein the transaction ending instruction is used for indicating the gateway equipment to stop receiving task data.
The server sends a transaction end instruction to the gateway device via a communication connection between the server and the gateway device. The transaction end instruction is used for indicating the server to send a plurality of pieces of task data to the gateway device to complete. And after the gateway equipment receives the transaction ending instruction, the gateway equipment stops receiving the task data. The transaction end instruction includes: command identification code, identification of transaction sender, transaction name, transaction identification code. For example, the ID of the transaction is "20230713001", the identification of the transaction sender "iot", the transaction name "EndTransaction", and the transaction identification code "20230713115500001". By way of example, the transaction end instruction is as follows:
S305, the gateway equipment responds to a transaction ending instruction sent by the server, ends receiving task data sent by the server, wakes up a plurality of electronic tags according to a plurality of cached task data, the plurality of task data correspond to the plurality of electronic tags, and each piece of task data is used for controlling the corresponding electronic tag to process tasks.
In an alternative embodiment, after receiving the transaction end instruction sent by the server, the gateway device closes the data receiving thread to end receiving the task data sent by the server.
After the gateway equipment finishes receiving the task data sent by the server, the gateway equipment wakes up a plurality of electronic tags according to a plurality of pieces of task data cached by the gateway equipment, the plurality of pieces of task data correspond to the plurality of electronic tags, and each piece of task data is used for controlling the corresponding electronic tag to process tasks. Optionally, the gateway device determines the plurality of electronic tags according to the plurality of task data, the gateway device determines a broadcast frequency band according to the working frequency bands of the plurality of electronic tags, and the gateway device broadcasts a wake-up instruction in the broadcast frequency band to wake up the plurality of electronic tags. The broadcast frequency band comprises a working frequency band of each electronic tag in the plurality of electronic tags, and the wake-up instruction comprises a tag identifier of each electronic tag in the plurality of electronic tags. For example, each electronic tag that receives the wake-up instruction parses the wake-up instruction to determine whether the wake-up instruction includes its own tag identification; the electronic tag adjusts the state of the electronic tag from a dormant state to a wake-up state under the condition that the wake-up instruction comprises the tag identification of the electronic tag; and under the condition that the electronic tag determines that the wake-up instruction does not comprise the tag identification of the electronic tag, the electronic tag keeps a dormant state.
In an alternative embodiment, the gateway device obtains a tag identifier in each piece of task data in the plurality of pieces of task data, and the gateway device determines the plurality of electronic tags according to the tag identifier in the plurality of pieces of task data. The gateway equipment determines the working frequency band of each electronic tag according to the tag identification and the first corresponding relation of each electronic tag in the plurality of electronic tags, takes the minimum value of the working frequency bands of the plurality of electronic tags as the minimum value of the broadcasting frequency band, and takes the maximum value of the working frequency bands of the plurality of electronic tags as the maximum value of the broadcasting frequency band so as to determine the broadcasting frequency band. The first corresponding relation comprises the label identifications of the plurality of electronic labels and the corresponding relation of the working frequency bands of the plurality of electronic labels.
S306, under the control of gateway equipment, the first electronic tag adjusts the state of the first electronic tag from a dormant state to an awake state.
The first electronic tag is any electronic tag of a plurality of electronic tags. The first electronic tag can adjust the state of the first electronic tag from the sleep state to the wake state under the control of the gateway device.
In an optional embodiment, the first electronic tag receives a wake-up instruction sent by the gateway device, and the first electronic tag parses the wake-up instruction to determine whether the wake-up instruction includes a tag identifier of the first electronic tag. And under the condition that the first electronic tag determines that the awakening instruction comprises the tag identification of the first electronic tag, the first electronic tag adjusts the state of the electronic tag from the dormant state to the awakening state. Optionally, the first electronic tag keeps a sleep state under the condition that the wake-up instruction does not include the tag identification of the first electronic tag. The embodiment of the application is illustrated by taking the label mark of the wake-up instruction including the first electronic label as an example.
In one example, the first electronic tag is electronic tag 301 in the control system shown in FIG. 1. After the electronic tag 301 receives the wake-up instruction sent by the gateway device, the wake-up instruction is parsed to determine whether the wake-up instruction includes the tag identifier "esl001" of the electronic tag 301. When detecting that the wake-up instruction includes a tag identifier "esl" in the wake-up instruction, the electronic tag 301 adjusts the state of the electronic tag 301 from the sleep state to the wake-up state.
In the embodiment of the present application, the first electronic tag wakes up under the control of the gateway device, and the implementation process of waking up each electronic tag in the plurality of electronic tags under the control of the gateway device is similar to the above, which is not described herein again.
S307, the gateway equipment simultaneously sends a plurality of pieces of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags performs task processing according to the corresponding task data.
In an alternative embodiment, the gateway device sends the plurality of task data to the plurality of electronic tags through a communication connection between the gateway device and the plurality of electronic tags. Each of the plurality of pieces of task data includes identification information and data content. Transmitting task data to each of the plurality of electronic tags for the gateway device: the gateway device simultaneously transmits tag information and data content in the task data to the electronic tag. That is, the gateway device sends the tag information and the data content as a complete piece of task data to the electronic tag corresponding to the task data.
The gateway device detects whether each piece of task data includes data content before the gateway device transmits the task data to each of the plurality of electronic tags. If the task data comprises data content, the gateway equipment directly sends the task data to an electronic tag corresponding to a tag identifier in the task data, so that the electronic tag performs task processing according to the task data corresponding to the electronic tag. If the task data does not include the data content, the gateway device searches the data content associated with the data identifier in the cache space in the gateway device according to the data identifier in the task data, and adds the data content to the task data to obtain complete task data. The gateway equipment sends the complete task data to an electronic tag corresponding to the tag identification in the task data, so that the electronic tag performs task processing according to the complete task data.
It should be noted that, the gateway device sending the plurality of pieces of task data to the plurality of electronic tags simultaneously means: and in a preset time period, the gateway equipment transmits the plurality of pieces of task data to the plurality of electronic tags. The duration of the preset time period is smaller than a preset threshold value. The gateway device may also send the plurality of pieces of task data to the plurality of electronic tags at the same time, as the performance of the gateway device allows.
S308, the first electronic tag receives first task data sent by gateway equipment, wherein the first task data is task data corresponding to the first electronic tag.
The first task data is one of a plurality of task data transmitted to the plurality of electronic tags by the gateway device, and the first task data is the task data corresponding to the first electronic tag. And the first electronic tag receives the first task data sent by the gateway equipment.
S309, the first electronic tag performs task processing according to the first task data.
In an optional embodiment, the first electronic tag obtains data content in the first task data, and performs task processing according to the data content in the first task data. The task processing comprises any one of image refreshing processing of the electronic tag, software upgrading processing of the electronic tag and control processing of a warning lamp of the electronic tag. Referring to fig. 1, in one embodiment, the data content 1 is "01010011", the display image corresponding to the data content 1 is the image b, the electronic tag 301 performs the image refreshing process according to the task name "shadow" in the task data 1, and refreshes the display image a of the electronic tag 301 to the image b corresponding to the data content 1. In another embodiment, the data content 2 is software upgrade data, the electronic tag 302 performs a software upgrade process according to the task name "upgrade" in the task data 2, and the electronic tag 302 updates the software version 1 to the software version 2 according to the software upgrade data. In yet another embodiment, the data content 3 is control data of light flashing, and the electronic tag 303 performs light control processing on the warning light on the electronic tag 303 according to the task name "light control" in the task data 3. The electronic tag 303 updates the warning lamp on the electronic tag 303 from the off state to the flashing state according to the control data of the flashing of the light.
In an alternative embodiment, before the first electronic tag performs task processing according to the first task data, the first electronic tag performs verification on the first task data to verify whether the first task data is tampered with or lost. And under the condition that the first electronic tag successfully checks the first task data, the first electronic tag performs task processing according to the first task data. The task data is usually binary data, and preset check bit data is included in the task data. The check bit data may be provided at a designated location of the task data. Specifically, after the first electronic tag receives the first task data, the first electronic tag obtains check bit data of a designated position in the first task data, and checks the check bit data. If the check bit data is different from the preset check bit data, the first electronic tag determines that the check of the first task data fails. And under the condition that the verification of the first task data fails, the first electronic tag sends a verification result of the verification failure to the gateway equipment. If the check bit data is the same as the preset check bit data, the first electronic tag determines that the first task data is successfully checked. And if the first task data is successfully checked, the first electronic tag performs task processing on the first task data and generates a task processing result. The task processing result comprises success or failure of task processing.
In one embodiment, referring to fig. 1 or fig. 2, the gateway device 101 sends task data 1 to the electronic tag 301, the electronic tag 301 performs image refreshing of the electronic tag 301 according to the task data 1, and successfully refreshes the displayed image a into an image b, so as to generate a task processing result 1 for indicating that task processing is successful. In another embodiment, gateway device 101 sends task data 3 to electronic tag 303. The electronic tag 303 refreshes the image of the electronic tag 303 according to the task data 3, and the electronic tag 303 generates a task processing result 3 for indicating that the task processing has failed, without successfully refreshing the displayed image a to the image b and refreshing the image a to the image c.
In an alternative embodiment, after each electronic tag in the plurality of electronic tags performs task processing, a task processing result of each electronic tag is sent to the gateway device. The gateway device receives the task processing results of the plurality of electronic tags. And the gateway equipment sends a transaction processing result to the server under the condition that the task processing results of the plurality of electronic tags are used for indicating that the task processing is successful, wherein the transaction processing result is used for indicating that the plurality of electronic tags successfully complete the task processing according to the plurality of pieces of task data.
In one embodiment, referring to fig. 1, the gateway device 101 sends task data 1 to the electronic tag 301, and the electronic tag 1 performs image refreshing of the electronic tag according to the task data 1, and successfully refreshes the displayed image a into an image b, and generates a task processing result 1. The gateway device 101 sends the task data 2 to the electronic tag 302, the electronic tag 302 performs image refreshing of the electronic tag according to the task data 2, and successfully refreshes the displayed image a into the image b, so as to generate a task processing result 2. The gateway device 101 transmits the task data 3 to the electronic tag 303, and the electronic tag 303 performs image refreshing of the electronic tag based on the task data 3, refreshes the displayed image a to an image b, and generates a task processing result 4. The task processing result 1, the task processing result 2 and the task processing result 4 are all used for indicating that the task processing is successful.
In summary, in the method for controlling an electronic tag according to the embodiment of the present application, before the server sends a plurality of pieces of task data corresponding to a plurality of electronic tags to the gateway device, the server sends a transaction start instruction to the gateway device to instruct the gateway device to start receiving the task data. The gateway device starts to receive and buffer task data sent by the server after receiving the transaction start instruction. After the server sends the plurality of task data to the gateway device, the server sends a transaction end instruction to the gateway device to instruct the gateway device to end receiving the task data. And the gateway equipment finishes receiving the task data sent by the server after receiving the transaction ending instruction, and wakes up a plurality of electronic tags according to the cached plurality of task data. And then, the gateway equipment simultaneously transmits the plurality of pieces of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag. The gateway equipment simultaneously controls the plurality of electronic tags to perform task processing according to the plurality of pieces of task data corresponding to the plurality of electronic tags, so that the efficiency of controlling the plurality of electronic tags is improved.
After the plurality of electronic tags perform task processing according to the corresponding task data, a task processing result may be generated, and each electronic tag in the plurality of electronic tags may send the task processing result of each electronic tag to the gateway device. The gateway device may send the transaction result or cancel the task processing result of the plurality of electronic tags to the server according to the task processing results of the plurality of electronic tags.
In an alternative embodiment, please refer to fig. 4, which illustrates a flowchart of another control method of an electronic tag according to an embodiment of the present application. The control method shown in fig. 4 may further include the following steps S310 to S315 on the basis of the embodiment shown in fig. 3.
S310, the first electronic tag sends a task processing result to the gateway device, wherein the task processing result is obtained by the first electronic tag performing task processing according to the first task data.
The first electronic tag is one electronic tag of a plurality of electronic tags. And after the first electronic tag performs task processing according to the first task data, generating a task processing result of the first electronic tag, and sending the task processing result to the gateway equipment by the first electronic tag.
For example, referring to fig. 1 or 2, the electronic tag 301 generates a task processing result 1 after performing task processing based on the task data 1. The electronic tag 301 transmits the task processing result 1 to the gateway apparatus 101. After the task processing is successful according to the task data 2, the electronic tag 302 generates a task processing result 2. The electronic tag 302 transmits the task processing result 2 to the gateway apparatus 101. The electronic tag 303 generates a task processing result 3 after successful task processing according to the task data 3. The electronic tag 303 transmits the task processing result 3 to the gateway apparatus 101.
S311, the gateway equipment receives task processing results sent by a plurality of electronic tags, wherein the task processing results sent by each electronic tag in the plurality of electronic tags are results obtained by performing task processing on each electronic tag according to task data corresponding to each electronic tag.
For example, referring to fig. 1 or 2, gateway device 101 receives task result 1 sent by electronic tag 301, task result 2 sent by electronic tag 302, and task result 3 sent by electronic tag 303.
S312, the gateway device sends a task cancel instruction to the plurality of electronic tags to enable the plurality of electronic tags to restore to an initial mode when a task processing result of at least one electronic tag in the plurality of electronic tags is used for indicating task processing failure, wherein the initial mode of each electronic tag in the plurality of electronic tags is a mode before the task processing is carried out according to corresponding task data.
In an alternative embodiment, the task processing result is represented by a preset character. After the gateway equipment receives the task processing results of the plurality of electronic tags, the gateway equipment sequentially determines whether the task processing results of the plurality of electronic tags indicate that the task processing is successful. And the gateway equipment sends a task cancel instruction to the plurality of electronic tags under the condition that the task processing result of at least one electronic tag in the plurality of electronic tags is determined to be used for indicating the task processing failure. For example, referring to fig. 1, gateway device 101 receives task processing result 1 sent by electronic tag 301, task processing result 2 sent by electronic tag 302, and task processing result 3 sent by electronic tag 303. The gateway device analyzes the task processing result 1 and the task processing result 2 to indicate that the task processing is successful, and the gateway device analyzes the task processing result 3 to indicate that the task processing is failed. The gateway device 101 transmits a task cancel instruction to the electronic tag 301 to cause the electronic tag 301 to restore the displayed image b to the image a. The gateway device 101 transmits a task deactivation instruction to the electronic tag 302 to cause the electronic tag 302 to restore the displayed image b to the image a. The gateway device 101 transmits a task deactivation instruction to the electronic tag 303 to cause the electronic tag 303 to restore the currently displayed image c to the image a.
S313, the first electronic tag receives a task revocation instruction sent by the gateway equipment.
For example, referring to fig. 1, the first electronic tag may be any one of electronic tags 301 to 303. For example, the electronic tag 301 receives a task revocation instruction transmitted by the gateway apparatus 101.
S314, the first electronic tag controls the first electronic tag to recover to the initial mode according to the task revocation instruction.
Specifically, after receiving the task cancel instruction, the first electronic tag responds to the task cancel instruction to restore the first electronic tag to the initial mode. For example, referring to fig. 1 or fig. 2, taking an image refreshing process in which a task process is an electronic tag as an example, after the electronic tag 301 receives a task cancel instruction, the electronic tag 301 restores an image b displayed by the electronic tag 301 to an image a in response to the task cancel instruction.
S315, the gateway device sends a transaction processing result to the server under the condition that the task processing results of the plurality of electronic tags are used for indicating that task processing is successful, wherein the transaction processing result is used for indicating that the plurality of electronic tags successfully complete task processing according to the plurality of task data.
After the gateway equipment receives the task processing results of the plurality of electronic tags, the gateway equipment sequentially determines whether the task processing results of the plurality of electronic tags indicate that the task processing is successful. And the gateway equipment sends a transaction processing result to the server under the condition that the task processing result of each electronic tag in the plurality of electronic tags is used for indicating that the task processing is successful. For example, referring to fig. 1, the gateway device 101 receives the task processing result 1 of the electronic tag 301, the task processing result 2 of the electronic tag 302, and the task processing result 3 of the electronic tag 303, which are all used to indicate that the task processing is successful, and the gateway device 101 sends the transaction processing result to the server 20, so that the server 20 displays the transaction processing result.
In summary, according to the control method of the electronic tag provided by the application, after the first electronic tag performs task processing on the first task data, the task processing result is sent to the gateway device. And the gateway equipment sends a task cancel instruction to the plurality of electronic tags under the condition that the task processing result of at least one electronic tag in the plurality of electronic tags is used for indicating the task processing failure so as to control the plurality of electronic tags to restore to the initial mode, thereby ensuring the uniformity of the plurality of electronic tag modes.
An embodiment of the apparatus of the application for performing the method of the application is described below. For details not disclosed in the device embodiments, please refer to the method embodiments.
Fig. 5 is a schematic diagram of a control device 50 of an electronic tag according to an embodiment of the present application. The control device 50 is applied to the gateway apparatus. For example, the control device 50 is a gateway apparatus or a functional component in a gateway apparatus. The gateway device may be the gateway device 101 in the application scenario shown in fig. 1, or may be the gateway device 101 or the gateway device 102 in the application scenario shown in fig. 2. The control means 50 is arranged to perform the relevant operations performed by the gateway device in the method provided by the embodiments shown in fig. 3 or fig. 4. Referring to fig. 5, the control device 50 includes: a receiving module 501, a buffering module 502, a waking module 503 and a sending module 504.
A receiving module 501, configured to respond to a transaction start instruction sent by a server, and start receiving task data sent by the server, where the transaction start instruction is used to instruct a gateway device to start receiving task data;
The caching module 502 is configured to cache task data sent by the server;
A wake-up module 503, configured to respond to a transaction end instruction sent by the server, end receiving task data sent by the server, and wake up a plurality of electronic tags according to a plurality of cached task data, where the plurality of task data corresponds to the plurality of electronic tags, each task data is used to control the corresponding electronic tag to perform task processing, and the transaction end instruction is used to instruct the gateway device to stop receiving task data;
and the sending module 504 is configured to send the plurality of task data to the plurality of electronic tags at the same time, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag.
Optionally, the wake-up module 503 is configured to:
Determining the plurality of electronic tags according to the plurality of task data;
determining a broadcast frequency band according to the working frequency bands of the plurality of electronic tags, wherein the broadcast frequency band comprises the working frequency band of each electronic tag in the plurality of electronic tags;
Broadcasting a wake-up instruction in the broadcast frequency band to wake up the plurality of electronic tags.
Optionally, each piece of task data in the plurality of pieces of task data comprises identification information and data content, wherein the identification information comprises a data identification and a tag identification, and the data content is used for performing task processing on an electronic tag corresponding to each piece of task data;
A receiving module 501, configured to receive identification information of task data sent by the server;
A caching module 502, configured to:
identification information for each piece of task data transmitted by the server:
Transmitting a data acquisition request to the server to acquire the data content of the task data and caching the identification information and the acquired data content of the task data under the condition that the cache space of the gateway device does not include the data identification in the identification information;
And caching the identification information of the task data under the condition that the cache space of the gateway device comprises the data identification in the identification information.
Optionally, the receiving module 501 is further configured to receive a task processing result sent by the plurality of electronic tags after the sending module 504 sends the plurality of task data to the plurality of electronic tags at the same time, where the task processing result sent by each electronic tag in the plurality of electronic tags is a result obtained by performing task processing by each electronic tag according to the task data corresponding to each electronic tag;
The sending module 504 is further configured to send a task cancel instruction to the plurality of electronic tags to restore the plurality of electronic tags to an initial mode when a task processing result of at least one electronic tag in the plurality of electronic tags is used to indicate that task processing fails, where the initial mode of each electronic tag in the plurality of electronic tags is a mode before the task processing is performed by the each electronic tag according to the corresponding task data;
the sending module 504 is further configured to send a transaction result to the server when the task processing results of the plurality of electronic tags are all used to indicate that the task processing is successful, where the transaction result is used to indicate that the plurality of electronic tags successfully complete the task processing according to the plurality of task data.
Optionally, referring to fig. 5, the control device 50 further includes:
an opening module 505, configured to, before the receiving module 501 starts receiving task data sent by the server, respond to the transaction start instruction sent by the server, and open a task data receiving thread; correspondingly, the receiving module 501 is configured to start receiving, by the data receiving thread, task data sent by the server.
The control device 50 provided in the embodiment shown in fig. 5 is the same concept as the control method provided in the embodiment shown in fig. 3 or fig. 4, and the specific implementation process and the beneficial effects of the control device 50 provided in the embodiment shown in fig. 5 are detailed in the method embodiment shown in fig. 3 or fig. 4, which are not repeated here.
Fig. 6 is a schematic diagram of another control device 60 for an electronic tag according to an embodiment of the present application. The control device 60 is applied to a server. For example, the control device 60 is a server or a functional component in a server. The server may be the server 20 in the application scenario shown in fig. 1 or fig. 2. The control device 60 is configured to perform the relevant operations performed by the server in the method provided by the embodiment shown in fig. 3 or fig. 4. Referring to fig. 6, the control device 60 includes: a first transmission module 601, a second transmission module 602, and a third transmission module 603.
A first sending module 601, configured to send a transaction start instruction to a gateway device, where the transaction start instruction is used to instruct the gateway device to start receiving task data;
The second sending module 602 is configured to send, after the first sending module 601 sends the transaction start instruction, a plurality of pieces of task data to the gateway device, where the plurality of pieces of task data correspond to a plurality of electronic tags, and each piece of task data is used to control the corresponding electronic tag to perform task processing;
And a third sending module 603, configured to send, after the second sending module 602 sends the plurality of task data, a transaction end instruction to the gateway device, where the transaction end instruction is used to instruct the gateway device to stop receiving the task data, and the gateway device is configured to wake up the plurality of electronic tags according to the plurality of task data and send the plurality of task data to the plurality of electronic tags at the same time, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag.
Optionally, the second sending module 602 is configured to: and sequentially sending the plurality of pieces of task data to the gateway equipment.
The control device 60 provided in the embodiment shown in fig. 6 is the same concept as the control method provided in the embodiment shown in fig. 3 or fig. 4, and the specific implementation process and the beneficial effects of the control device 60 provided in the embodiment shown in fig. 6 are detailed in the method embodiment shown in fig. 3 or fig. 4, which are not repeated here.
Fig. 7 is a schematic diagram of a control device 70 of another electronic tag according to an embodiment of the present application. The control device 70 is applied to the first electronic tag. For example, the control device 70 is a first electronic tag or a functional component of the first electronic tag. The first electronic tag may be any electronic tag in the application scenario shown in fig. 1 or fig. 2. The control device 70 is configured to perform the related operations performed by the first electronic tag in the method provided in the embodiment shown in fig. 3 or fig. 4. Referring to fig. 7, the control device 70 includes: a wake-up module 701, a receive module 702 and a processing module 703.
A wake-up module 701, configured to adjust, under control of the gateway device, a state of the first electronic tag from a sleep state to a wake-up state;
the receiving module 702 is configured to receive first task data sent by the gateway device, where the first task data is task data corresponding to a first electronic tag in task data sent to a plurality of electronic tags simultaneously after the gateway device wakes up the plurality of electronic tags according to a plurality of task data, and the plurality of task data corresponds to the plurality of electronic tags, where the plurality of electronic tags includes the first electronic tag;
The processing module 703 is configured to perform task processing according to the first task data.
Optionally, referring to fig. 7, the control device 70 further includes: a sending module 704, configured to send a task processing result to the gateway device, where the task processing result is a result obtained by performing task processing on the first electronic tag according to the first task data;
The receiving module 702 is further configured to receive a task cancellation instruction sent by the gateway device, where the task cancellation instruction is sent by the gateway device when a task processing result of at least one electronic tag of the plurality of electronic tags is used to indicate that task processing fails;
The control device 70 further includes: the control module 705 is configured to control, according to the task cancellation instruction, the first electronic tag to resume to an initial mode, where the initial mode is a mode before the first electronic tag performs task processing according to the first task data.
Optionally, the processing module 703 is configured to: checking the first task data; and under the condition that the first task data is successfully checked, performing task processing according to the first task data.
The control device 70 provided in the embodiment shown in fig. 7 is the same concept as the control method provided in the embodiment shown in fig. 3 or fig. 4, and the specific implementation process and the beneficial effects of the control device 70 provided in the embodiment shown in fig. 7 are detailed in the method embodiment shown in fig. 3 or fig. 4, which are not repeated here.
Based on the same inventive concept, the embodiment of the application provides a control device of an electronic tag. The control device includes a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute a computer program stored in the memory to cause the control device to perform all or part of the steps of the control method provided by the method embodiment shown in fig. 3 or fig. 4.
For example, please refer to fig. 8, which illustrates a schematic diagram of a control device 800 of another electronic tag according to an embodiment of the present application. The control apparatus 800 is a gateway device, a functional component in a gateway device, a server or a functional component in a server, an electronic tag or a functional component of an electronic tag. The control apparatus 800 comprises a processor 801, a memory 802, a bus 803, a network interface 804 and an input output device 805. The processor 801, memory 802, network interface 804, and input output device 805 are connected by a bus 803. Fig. 8 illustrates the processor 801 and the memory 802 independently of each other. The processor 801 and the memory 802 may also be integrated.
The memory 802 is used to store, among other things, a computer program that includes an operating system and program code. The Memory 802 is a variety of types of storage media, such as, for example, the Memory 802 is a random access Memory (random access Memory, RAM), a read-only Memory (ROM), a non-volatile random access Memory (non-volatile random access Memory, NVRAM), a programmable read-only Memory (programmable read-only Memory, PROM), an erasable programmable read-only Memory (erasable programmable read-only Memory, EPROM), an electrically erasable programmable read-only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-only Memory, EEPROM), a read-only disk (compact disc read-only Memory, CD-ROM), a flash Memory, a register, an optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk, or other magnetic storage device.
Optionally, the control device 800 is a gateway apparatus, a functional component in a gateway apparatus, a server or a functional component in a server. The processor 801 is a general-purpose processor or a special-purpose processor. A general-purpose processor is a processor that performs certain steps and/or operations by reading and executing computer programs stored in memory, which may be used by the general-purpose processor in performing the steps and/or operations described above. The computer program is for example executed to realize the relevant functions of the processing modules in the embodiment of the apparatus shown in fig. 7 described above. A general purpose processor such as, but not limited to, a central processing unit (central processing unit, CPU). A special purpose processor is a specially designed processor for performing certain steps and/or operations, such as, but not limited to, a digital signal processor (DIGITAL SIGNAL processor, DSP), application-specific integrated circuit (ASIC), complex program logic device (complex programmable logical device, CPLD), field-programmable gate array (FPGA) GATE ARRAY, general array logic (GENERIC ARRAY logic, GAL), or any combination thereof. The processor 801 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor 801 comprises at least one circuit to perform some of the steps provided by the method embodiments described above as shown in fig. 3 or fig. 4.
Optionally, the control device 800 of the electronic tag is the electronic tag or a functional component of the electronic tag. The processor 801 comprises at least one processing circuit to perform some of the steps provided by the method embodiments described above as shown in fig. 3 or fig. 4.
Wherein the network interface 804 is used to control the apparatus 800 to communicate with other devices. Network interface 804 includes both physical and logical interfaces. The physical interface may be an ethernet interface for implementing interconnection of the control apparatus 800 with other devices, and the logical interface is an interface inside the control apparatus 800 for implementing interconnection of devices inside the control apparatus 800. It is to be readily appreciated that the network interface 804 may be used to control the apparatus 800 to communicate with other devices, for example, the network interface 804 may be used to control the transmission and reception of data and/or instructions between the apparatus 800 and other devices, and the network interface 804 may implement the functions associated with the receiving module and the transmitting module in any of the apparatus embodiments shown in fig. 5-7.
The input/output device 805 includes an input/output (I/O) interface, a device such as a keyboard, a mouse, a display, etc. connected to the control apparatus 800 through the I/O interface, and a device such as a display connected to the processor 801 through a bus, and the processor 801 can receive an input command or data through the input/output device 805 and output the processed data. For example, the input output device 805 may include a display that can be used to display intermediate and/or final results, etc., produced by the processor 801 executing the control methods provided by the embodiments of fig. 3 or fig. 4 described above.
Bus 803 is any type of communication bus used to interconnect the internal devices of control apparatus 800. Such as a system bus. The embodiment of the present application is described by taking the interconnection of the devices inside the control device 800 through the bus 803 as an example, the devices inside the control device 800 are connected to each other by other connection manners, for example, the devices inside the control device 800 are interconnected through a logic interface inside the control device 800.
The control device 800 shown in fig. 8 is merely exemplary, and in implementation, the control device 800 may include other components, which are not listed herein. The control device 800 shown in fig. 8 controls the electronic tag by performing all or part of the steps of the control method provided by the embodiment shown in fig. 3 or fig. 4.
Based on the same inventive concept, the embodiment of the application provides a control system of an electronic tag, which comprises gateway equipment, a server and a plurality of electronic tags.
In an embodiment the gateway device comprises control means 50 as provided in the embodiment of fig. 5 and the server comprises control means 60 as provided in the embodiment of fig. 6. At least one of the plurality of electronic tags includes a control device 70 as provided in the embodiment shown in fig. 7.
In another embodiment, the gateway device, the server and at least one of the plurality of electronic tags comprise a control apparatus 800 of the electronic tag as provided in the embodiment shown in fig. 8.
By way of example, the control system is shown in fig. 1 or fig. 2.
Based on the same inventive concept, the embodiments of the present application also provide a computer-readable storage medium having stored therein a computer program which, when executed (e.g., by a processor, a control device of an electronic tag, etc.), implements all or part of the steps of the control method of an electronic tag provided by the embodiments shown in fig. 3 or fig. 4. For example, the computer readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. The computer readable storage medium may be a non-volatile storage medium, in other words, a non-transitory storage medium.
Based on the same inventive concept, the embodiments of the present application also provide a computer program product comprising instructions that when executed implement all or part of the steps of the control method of an electronic tag as provided in the embodiments shown in fig. 3 or fig. 4. For example, when the instruction is executed on the processor or the control device of the electronic tag, all or part of the steps of the control method of the electronic tag provided in the embodiment shown in fig. 3 or fig. 4 are implemented.
It should be understood that all or part of the steps to implement the above-described embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
It should be understood that references herein to "at least one" mean one or more, and "a plurality" means two or more. In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the embodiment of the present application, the embodiment of the present application uses words such as "first", "second", etc. to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Different types of embodiments, such as a method embodiment and a device embodiment, provided by the embodiment of the present application may be referred to each other, and the embodiment of the present application is not limited to this. The sequence of the operations of the method embodiment provided by the embodiment of the application can be properly adjusted, the operations can also be increased or decreased according to the situation, and any method which is easily conceivable to be changed by a person skilled in the art within the technical scope of the disclosure of the application is covered in the protection scope of the application, so that the description is omitted.
In the corresponding embodiments provided in the present application, it should be understood that the disclosed apparatus and the like may be implemented by other structural means. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical functional division, and other manners of division may be implemented in practice.
The modules illustrated as separate components may or may not be physically separate, and the components described as modules may or may not be physical modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above-described exemplary embodiments of the present application are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present application should be included in the scope of the present application.

Claims (12)

1. A control method of an electronic tag, the method comprising:
Responding to a transaction starting instruction sent by a server, starting to receive and cache task data sent by the server, wherein the transaction starting instruction is used for indicating gateway equipment to start receiving the task data;
Responding to a transaction ending instruction sent by the server, ending receiving task data sent by the server, waking up a plurality of electronic tags according to a plurality of cached task data, wherein the plurality of task data correspond to the plurality of electronic tags, each piece of task data is used for controlling the corresponding electronic tag to process tasks, and the transaction ending instruction is used for indicating the gateway equipment to stop receiving the task data;
And simultaneously sending the plurality of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags performs task processing according to the task data corresponding to each electronic tag.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The waking up a plurality of electronic tags according to the cached plurality of task data includes:
Determining the plurality of electronic tags according to the plurality of task data;
Determining a broadcast frequency band according to the working frequency bands of the plurality of electronic tags, wherein the broadcast frequency band comprises the working frequency band of each electronic tag in the plurality of electronic tags;
broadcasting a wake-up instruction in the broadcast frequency band to wake up the plurality of electronic tags.
3. A method according to claim 1 or 2, characterized in that,
Each piece of task data in the plurality of pieces of task data comprises identification information and data content, wherein the identification information comprises a data identification and a tag identification, and the data content is used for performing task processing on an electronic tag corresponding to each piece of task data;
the receiving the task data sent by the server comprises the following steps: receiving identification information of task data sent by the server;
the step of caching task data sent by the server comprises the following steps:
Identification information for each piece of task data sent by the server:
Transmitting a data acquisition request to the server to acquire the data content of the task data and caching the identification information and the acquired data content of the task data under the condition that the cache space of the gateway equipment does not contain the data identification in the identification information;
and caching the identification information of the task data under the condition that the cache space of the gateway equipment comprises the data identification in the identification information.
4. The method according to claim 1 or 2, wherein after simultaneously transmitting the plurality of pieces of task data to the plurality of electronic tags, the method further comprises:
Receiving task processing results sent by the plurality of electronic tags, wherein the task processing results sent by each electronic tag in the plurality of electronic tags are results obtained by performing task processing on the task data corresponding to each electronic tag;
When a task processing result of at least one electronic tag in the plurality of electronic tags is used for indicating that task processing fails, a task cancel instruction is sent to the plurality of electronic tags so as to enable the plurality of electronic tags to be restored to an initial mode, wherein the initial mode of each electronic tag in the plurality of electronic tags is a mode before the task processing is carried out by each electronic tag according to the corresponding task data;
And under the condition that the task processing results of the plurality of electronic tags are used for indicating that the task processing is successful, sending a transaction processing result to the server, wherein the transaction processing result is used for indicating that the plurality of electronic tags successfully complete the task processing according to the plurality of task data.
5. A control method of an electronic tag, the method comprising:
a transaction starting instruction is sent to gateway equipment, and the transaction starting instruction is used for indicating the gateway equipment to start receiving task data;
after the transaction starting instruction is sent, a plurality of pieces of task data are sent to the gateway equipment, the task data correspond to a plurality of electronic tags, and each piece of task data is used for controlling the corresponding electronic tag to process tasks;
After the plurality of pieces of task data are sent, a transaction ending instruction is sent to the gateway equipment, wherein the transaction ending instruction is used for indicating the gateway equipment to stop receiving the task data, the gateway equipment is used for responding to the transaction ending instruction, waking up the plurality of electronic tags according to the plurality of pieces of task data, and simultaneously sending the plurality of pieces of task data to the plurality of electronic tags, so that each electronic tag in the plurality of electronic tags carries out task processing according to the task data corresponding to each electronic tag.
6. A control method of an electronic tag, the method comprising:
Under the control of gateway equipment, the state of the first electronic tag is adjusted from a dormant state to an awake state;
Receiving first task data sent by the gateway device, wherein the first task data is task data corresponding to the first electronic tag in task data sent to a plurality of electronic tags after the gateway device wakes up the plurality of electronic tags according to the plurality of task data, the plurality of task data corresponds to the plurality of electronic tags, and the plurality of electronic tags comprise the first electronic tag;
and performing task processing according to the first task data.
7. The method of claim 6, wherein the method further comprises:
The method comprises the steps that a task processing result is sent to gateway equipment, wherein the task processing result is obtained by performing task processing on first task data according to the first electronic tag;
Receiving a task revocation instruction sent by the gateway device, wherein the task revocation instruction is sent by the gateway device under the condition that a task processing result of at least one electronic tag in the plurality of electronic tags is used for indicating task processing failure;
And controlling the first electronic tag to recover to an initial mode according to the task cancel instruction, wherein the initial mode is a mode before the first electronic tag performs task processing according to the first task data.
8. Control device of an electronic label, characterized by comprising at least one functional module for performing the method according to any of claims 1 to 4.
9. A control device of an electronic label, characterized by comprising at least one functional module for performing the method according to claim 5.
10. Control device of an electronic label, characterized by comprising at least one functional module for performing the method according to claim 6 or 7.
11. A control system for an electronic label, the control system comprising: the system comprises a server, gateway equipment and a plurality of electronic tags;
The gateway device comprising the control apparatus of claim 8;
The server comprising the control device according to claim 9;
at least one of the plurality of electronic price tags comprises the control device of claim 10.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed, implements the method of any of claims 1 to 7.
CN202410166472.8A 2024-02-05 2024-02-05 Control method, device and system of electronic tag and storage medium Pending CN117973421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410166472.8A CN117973421A (en) 2024-02-05 2024-02-05 Control method, device and system of electronic tag and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410166472.8A CN117973421A (en) 2024-02-05 2024-02-05 Control method, device and system of electronic tag and storage medium

Publications (1)

Publication Number Publication Date
CN117973421A true CN117973421A (en) 2024-05-03

Family

ID=90865730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410166472.8A Pending CN117973421A (en) 2024-02-05 2024-02-05 Control method, device and system of electronic tag and storage medium

Country Status (1)

Country Link
CN (1) CN117973421A (en)

Similar Documents

Publication Publication Date Title
US10417062B2 (en) Method and apparatus of unloading out of memory processing flow to user space
CN113163345B (en) Broadcast communication method, system, gateway equipment and electronic price tag
US20160043897A1 (en) Method and configuration center server for configuring server cluster
CN110097157B (en) Electronic shelf label awakening method and system and related components
CN109358882A (en) A kind of television terminal carries out the method and device of firmware upgrade
CN112835616A (en) Version upgrading method and device, electronic equipment and storage medium
CN112351479B (en) Electronic price tag communication system, method and device
CN112445147A (en) Awakening method, system and device of intelligent equipment, electronic equipment and storage medium
CN111143165A (en) Monitoring method and device
CN112882939B (en) Automatic testing method and device, electronic equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
US11977947B2 (en) Electronic shelf label communication system, method and apparatus
CN113849238A (en) Data communication method, device, electronic equipment and readable storage medium
CN117973421A (en) Control method, device and system of electronic tag and storage medium
CN114758715B (en) Method, device and equipment for lighting hard disk fault lamp and readable storage medium
CN103530125A (en) Data sharing method and system and window control units
CN114880115A (en) Data source returning scheduling method and device, electronic equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN114124835A (en) Interface-based data transmission method, device, equipment and medium
CN113141280B (en) Inspection method of electronic price tag system, server and computer readable storage medium
CN112464090A (en) Electronic price tag information updating method, electronic price tag and computer readable storage medium
CN112764957A (en) Application fault delimiting method and device
US20240220751A1 (en) Electronic shelf label communication system and method
CN115328670B (en) Asynchronous task processing method, system and server
CN113141603B (en) Data communication method, system, master terminal device and slave terminal 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