A tag two-dimensional addressing method based on 2.4G private protocol

By adopting a tag two-dimensional addressing method based on a 2.4G proprietary protocol, the problem of caching limitation in existing technologies is solved, enabling efficient updating and control of large batches of electronic tags, which is suitable for complex scenarios such as large supermarkets and warehouses.

CN116074925BActive Publication Date: 2026-04-14SUZHOU ETAG TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUZHOU ETAG TECHNOLOGY CO LTD
Filing Date
2022-12-30
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing Bluetooth and 2.4G electronic tag protocols are limited by the cache size during addressing, which cannot meet the needs of large-scale electronic tag updates, especially in complex scenarios such as large supermarkets and warehouses where effective control is difficult to achieve.

Method used

A tag two-dimensional addressing method based on a 2.4G proprietary protocol is adopted. The server establishes a two-dimensional addressing map, the base station AP broadcasts updated data, and the tags automatically index and request connections, thereby achieving precise control of a small number or a large number of tags.

Benefits of technology

It enables efficient updating and control of electronic tags in complex scenarios, meets the management needs of large-scale tags, and improves the flexibility and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074925B_ABST
    Figure CN116074925B_ABST
Patent Text Reader

Abstract

The application discloses a label two-dimensional addressing method based on a 2.4G private protocol, and comprises the following steps: a server establishes a two-dimensional addressing graph according to label MAC addresses in a system, and saves corresponding two-dimensional addresses in each label through a base station AP; the server accesses a database, and sends a number array graph information and label data to be updated to the base station AP, so that the base station AP sends the updated two-dimensional addressing graph and the label data to be updated to the label through a 2.4G broadcast signal; after receiving the broadcast signal of the base station AP, the label automatically indexes the number array graph information of the label, and sends request connection information to the base station AP; the base station AP queries a label MAC address corresponding to the two-dimensional addressing graph, connects the label, and sends the label data to be updated to the label, so that the label enters corresponding updating actions. The application can call a few or a large number of electronic labels according to requirements each time, and meets control requirements of the electronic labels in complex scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of 2.4G communication technology, and more specifically to a tag two-dimensional addressing method based on a 2.4G proprietary protocol. Background Technology

[0002] Currently, the addressing methods of Bluetooth or 2.4G electronic tag protocols on the market are limited by the Bluetooth chip cache, which prevents the large-scale updating of electronic tags. For example, in the Bluetooth BEACON protocol, the maximum RF cache is only 31 bytes, while 2.4G can only have 244 bytes. Based on the 6-byte MAC address processing, Bluetooth can only process 5 tag addresses at a time, and 2.4G can only process 40.

[0003] The aforementioned electronic tag addressing method is clearly no longer suitable for the control requirements of large-scale tag applications (such as large supermarkets and large warehouses). Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a two-dimensional tag addressing method based on a 2.4G proprietary protocol. This method addresses only the 2.4G proprietary broadcast protocol and can name a few or a large number of electronic tags each time as needed, thus meeting the control requirements of electronic tags in complex scenarios.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] A tag two-dimensional addressing method based on a 2.4G proprietary protocol, the tag two-dimensional addressing method comprising the following steps:

[0007] S1, the server builds a two-dimensional addressing map based on the MAC address of the tag in the system, and sends the corresponding two-dimensional address to each tag for storage through the base station AP;

[0008] S2, the server accesses the database. If there is tag data that needs to be updated, proceed to step S3; otherwise, repeat step S2.

[0009] S3, set the two-dimensional addressing map bit corresponding to the tag to be updated to 1, and set the two-dimensional addressing map bit of other tags to 0, to obtain the data matrix information of the tag to be updated in this round. The data matrix information and the tag data to be updated are sent to the base station AP, so that the base station AP can send the updated two-dimensional addressing map and the tag data to be updated to the tag through the 2.4G broadcast signal. After receiving the broadcast signal from the base station AP, the tag automatically indexes the tag's data matrix information and determines whether it needs to establish a connection to receive the updated data. If so, it sends a connection request information to the base station AP.

[0010] S4, the base station AP receives the connection request information sent by the tag, queries the tag MAC address corresponding to the two-dimensional addressing map, and if the tag MAC address exists, it connects to the tag and sends the tag data to be updated to the tag, so that the tag enters the corresponding update action. At the same time, the base station AP sets the position of the two-dimensional addressing map corresponding to the tag to 0 and clears the image area corresponding to the tag MAC address.

[0011] To optimize the above technical solution, the specific measures also include:

[0012] Furthermore, in step S1, the process by which the server establishes a two-dimensional addressing map based on the MAC addresses of the tags in the system includes the following steps:

[0013] Set the number of rows X and the number of columns M, X + M = V, where V is the maximum data length;

[0014] For each tag, set up a number matrix (L(x, y), R(m, n)); where L(x, y) represents the column position of the tag, x represents the byte count of the tag column, and y represents the bit count of the byte; R(m, n) represents the row position of the tag, m represents the byte count of the tag row, and n represents the bit count of the byte; x = 0, 1, ..., X-1, y = 0, 1, ..., 7, in bits; m = 0, 1, ..., M-1, n = 0, 1, ..., 7.

[0015] Furthermore, in step S3, the process of the base station AP sending the updated two-dimensional addressing map and the tag data to be updated to the tag via a 2.4G broadcast signal includes the following steps:

[0016] A31, Base Station AP initializes 2.4G protocol stack; clears cache;

[0017] A32, listen for network data to be received; if so, proceed to step A33; otherwise, repeat the listening action in step A32.

[0018] A33, extract the updated 2D addressing graph and generate broadcast data packets, extract the MAC address and tag data of each tag; set the broadcast timeout threshold;

[0019] A34, broadcast data packets are sent to the tag via 2.4G broadcast signal; if a tag requests a connection and the broadcast time has not reached the broadcast timeout threshold, query the MAC address of the two-dimensional addressing map returned by the requesting tag. If the MAC address exists, connect to the tag and send tag data to the tag, then proceed to step A35; otherwise, return to step A33.

[0020] A35, update the label results, update the 2D addressing graph and data area;

[0021] A36. Determine if all tags have been updated. If so, generate the update results and output them to the service area via the network, then end the process. Otherwise, proceed to step A32.

[0022] Furthermore, in step S3, after receiving the broadcast signal from the base station AP, the tag automatically indexes the tag's data matrix information and determines whether a connection needs to be established to receive updated data. This process includes the following steps:

[0023] B31, Tag Initialization: Extract the MAC address and two-dimensional addressing map sent by the base station, and initialize the 2.4G protocol stack;

[0024] B32, initiate Bluetooth scanning to listen for broadcast signals sent by the base station AP; if the broadcast signal sent by the base station AP is detected, extract the two-dimensional addressing map in the broadcast and compare it with its own data array information; if the comparison is successful, proceed to step B34; otherwise, proceed to step B33; if no broadcast signal is detected, proceed to step B33.

[0025] B33, after sleeping for N seconds, proceed to step B32;

[0026] B34 requests to establish a connection with the base station AP, and after the connection is established, it exchanges data with the base station AP and sends a message indicating that the data reception is complete back to the base station AP.

[0027] Furthermore, in step S4, the tag update action includes updating the two-dimensional addressing map and performing tag image region data update.

[0028] The beneficial effects of this invention are:

[0029] The tag two-dimensional addressing method based on the 2.4G private protocol of the present invention only addresses the 2.4G private broadcast protocol, and can name a few or a large number of electronic tags each time as needed, so as to meet the control requirements of electronic tags in complex scenarios. Attached Figure Description

[0030] Figure 1 This is a flowchart of a tag two-dimensional addressing method based on a 2.4G proprietary protocol according to an embodiment of the present invention.

[0031] Figure 2 This is a flowchart of the operation of a base station AP according to an embodiment of the present invention.

[0032] Figure 3 This is a flowchart illustrating the process of labeling according to an embodiment of the present invention. Detailed Implementation

[0033] The invention will now be described in further detail with reference to the accompanying drawings.

[0034] It should be noted that the terms such as "upper", "lower", "left", "right", "front", and "back" used in the invention are only for clarity of description and are not intended to limit the scope of the invention. Changes or adjustments to their relative relationships, without substantially altering the technical content, should also be considered within the scope of the invention.

[0035] Figure 1 This is a flowchart of a tag two-dimensional addressing method based on a 2.4G proprietary protocol according to an embodiment of the present invention. The tag two-dimensional addressing method includes the following steps:

[0036] S1, the server builds a two-dimensional addressing map based on the MAC address of the tag in the system, and sends the corresponding two-dimensional address to each tag for storage through the base station AP;

[0037] S2, the server accesses the database. If there is tag data that needs to be updated, proceed to step S3; otherwise, repeat step S2.

[0038] S3, set the two-dimensional addressing map bit corresponding to the tag to be updated to 1, and set the two-dimensional addressing map bit of other tags to 0, to obtain the data matrix information of the tag to be updated in this round. The data matrix information and the tag data to be updated are sent to the base station AP, so that the base station AP can send the updated two-dimensional addressing map and the tag data to be updated to the tag through the 2.4G broadcast signal. After receiving the broadcast signal from the base station AP, the tag automatically indexes the tag's data matrix information and determines whether it needs to establish a connection to receive the updated data. If so, it sends a connection request information to the base station AP.

[0039] S4, the base station AP receives the connection request information sent by the tag, queries the tag MAC address corresponding to the two-dimensional addressing map, and if the tag MAC address exists, it connects to the tag and sends the tag data to be updated to the tag, so that the tag enters the corresponding update action. At the same time, the base station AP sets the position of the two-dimensional addressing map corresponding to the tag to 0 and clears the image area corresponding to the tag MAC address.

[0040] As a preferred example, in step S1, the process of the server establishing a two-dimensional addressing map based on the MAC addresses of the tags in the system includes the following steps:

[0041] Set the number of rows X and the number of columns M, X + M = V, where V is the maximum data length;

[0042] For each tag, set up a number matrix (L(x, y), R(m, n)); where L(x, y) represents the column position of the tag, x represents the byte count of the tag column, and y represents the bit count of the byte; R(m, n) represents the row position of the tag, m represents the byte count of the tag row, and n represents the bit count of the byte; x = 0, 1, ..., X-1, y = 0, 1, ..., 7, in bits; m = 0, 1, ..., M-1, n = 0, 1, ..., 7.

[0043] The 2.4G data format is shown in Table 1. The broadcast data length can be 1 to 244 bytes. To ensure the short transmission time of the broadcast signal, this embodiment only uses 31 bytes (other values ​​are similar). After removing length, type, checksum, etc., the usable data length is 1 to 29 bytes. This embodiment only performs two-dimensional addressing for 26 bytes; the method for other byte content is similar.

[0044] Table 1 Bluetooth communication data format

[0045]

[0046] In this embodiment, a number matrix (L(x, y), R(m, n)) is defined for each label. x represents the row position of the label (bit-wise calculation), and y represents the column position of the label (bit-wise calculation).

[0047] 26-byte two-dimensional addressing can be selected as 1*25, 2*24, 13*13, etc., as long as the number of rows plus the number of columns equals 26.

[0048] The 26-byte two-dimensional addressing diagram is defined as Table 2. Columns are defined as L(x,y), where x represents the column byte count (0-12) and y represents the byte bit count (bit7-0). Rows are defined as R(m,n), where m represents the row byte count (0-12) and n represents the byte bit count (bit7-0).

[0049] Table 2 Two-dimensional addressing diagram

[0050]

[0051] Based on this, the server backend builds a two-dimensional addressing map according to the tag MAC addresses in the system. For example, for tag MAC address 360000000001: [L(0,7),R(0,7)]. This map is then sent to each tag via the base station AP for storage. The server periodically determines whether tags need to be updated. When the server needs to update a specific tag or a batch of tags, the corresponding two-dimensional addressing map bit is set to 1, and other bits are set to 0. The two-dimensional addressing map and tag data are then sent to the base station AP.

[0052] The base station AP broadcasts a 2.4G signal to the tag, simultaneously setting a broadcast timeout. The base station AP continues broadcasting until the timeout expires, and if no tag connection signal is received or some tags have not yet been updated. If the timeout occurs or all tags are updated, an update result is generated and sent to the server. Upon receiving the update information, the server determines that the update is complete. After receiving the AP broadcast signal, the tag automatically indexes its data map information to determine if a connection needs to be established to receive update data. If an update is needed, it connects to the base station AP. Upon receiving the connection information, the base station AP queries the MAC address corresponding to the 2D addressing map. If the MAC address exists, it connects and sends data to the tag. After the tag and AP establish a connection, they exchange data until communication ends. The tag then performs the corresponding action, and the AP sets the corresponding MAC address in the 2D addressing map to 0 and clears the image area of ​​that MAC address.

[0053] like Figure 2 As shown, in step S3, the process of the base station AP sending the updated two-dimensional addressing map and the tag data to be updated to the tag via a 2.4G broadcast signal includes the following steps:

[0054] A31, Base Station AP initializes 2.4G protocol stack; clears cache;

[0055] A32, listen for network data to be received; if so, proceed to step A33; otherwise, repeat the listening action in step A32.

[0056] A33, extract the updated 2D addressing graph and generate broadcast data packets, extract the MAC address and tag data of each tag; set the broadcast timeout threshold;

[0057] A34, broadcast data packets are sent to the tag via 2.4G broadcast signal; if a tag requests a connection and the broadcast time has not reached the broadcast timeout threshold, query the MAC address of the two-dimensional addressing map returned by the requesting tag. If the MAC address exists, connect to the tag and send tag data to the tag, then proceed to step A35; otherwise, return to step A33.

[0058] A35, update the label results, update the 2D addressing graph and data area;

[0059] A36. Determine if all tags have been updated. If so, generate the update results and output them to the service area via the network, then end the process. Otherwise, proceed to step A32.

[0060] like Figure 3 As shown, in step S3, after receiving the broadcast signal from the base station AP, the tag automatically indexes the tag's data matrix information and determines whether a connection needs to be established to receive updated data. This process includes the following steps:

[0061] B31, Tag Initialization: Extract the MAC address and two-dimensional addressing map sent by the base station, and initialize the 2.4G protocol stack;

[0062] B32, initiate Bluetooth scanning to listen for broadcast signals sent by the base station AP; if the broadcast signal sent by the base station AP is detected, extract the two-dimensional addressing map in the broadcast and compare it with its own data array information; if the comparison is successful, proceed to step B34; otherwise, proceed to step B33; if no broadcast signal is detected, proceed to step B33.

[0063] B33, after sleeping for N seconds, proceed to step B32;

[0064] B34 requests to establish a connection with the base station AP, and after the connection is established, it exchanges data with the base station AP and sends a message indicating that the data reception is complete back to the base station AP.

[0065] In step S4, the tag update action includes updating the two-dimensional addressing map and performing tag image region data update.

[0066] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principle of the present invention should be considered within the scope of protection of the present invention.

Claims

1. A tag two-dimensional addressing method based on a 2.4G proprietary protocol, characterized in that, The tag two-dimensional addressing method includes the following steps: S1, the server builds a two-dimensional addressing map based on the MAC address of the tag in the system, and sends the corresponding two-dimensional address to each tag for storage through the base station AP; S2, the server accesses the database. If there is tag data that needs to be updated, proceed to step S3; otherwise, repeat step S2. S3, set the two-dimensional addressing map bit corresponding to the tag to be updated to 1, and set the two-dimensional addressing map bit of other tags to 0, to obtain the data matrix information of the tag to be updated in this round. The data matrix information and the tag data to be updated are sent to the base station AP, so that the base station AP can send the updated two-dimensional addressing map and the tag data to be updated to the tag through the 2.4G broadcast signal. After receiving the broadcast signal from the base station AP, the tag automatically indexes the tag's data matrix information and determines whether it needs to establish a connection to receive the updated data. If so, it sends a connection request information to the base station AP. S4, the base station AP receives the connection request information sent by the tag, queries the tag MAC address corresponding to the two-dimensional addressing map, if the tag MAC address exists, connects to the tag and sends the tag data to be updated to the tag, so that the tag enters the corresponding update action. At the same time, the base station AP sets the position of the two-dimensional addressing map corresponding to the tag to 0 and clears the image area corresponding to the tag MAC address. In step S1, the process of the server establishing a two-dimensional addressing map based on the MAC addresses of the tags in the system includes the following steps: Set the number of rows X and the number of columns M, X + M = V, where V is the maximum data length; For each tag, set up a number matrix (L(x, y), R(m, n)); where L(x, y) represents the column position of the tag, x represents the byte count of the tag column, and y represents the bit count of the byte; R(m, n) represents the row position of the tag, m represents the byte count of the tag row, and n represents the bit count of the byte; x = 0, 1, ..., X-1, y = 0, 1, ..., 7, in bits; m = 0, 1, ..., M-1, n = 0, 1, ..., 7.

2. The tag two-dimensional addressing method based on a 2.4G proprietary protocol according to claim 1, characterized in that, In step S3, the process of the base station AP sending the updated two-dimensional addressing map and the tag data to be updated to the tags via a 2.4G broadcast signal includes the following steps: A31, Base Station AP initializes 2.4G protocol stack; clears cache; A32, listen for network data to be received; if so, proceed to step A33; otherwise, repeat the listening action in step A32. A33, extract the updated 2D addressing graph and generate broadcast data packets, extract the MAC address and tag data of each tag; set the broadcast timeout threshold; A34, broadcast data packets are sent to the tag via 2.4G broadcast signal; if a tag requests a connection and the broadcast time has not reached the broadcast timeout threshold, query the MAC address of the two-dimensional addressing map returned by the requesting tag. If the MAC address exists, connect to the tag and send tag data to the tag, then proceed to step A35; otherwise, return to step A33. A35, update the label results, update the 2D addressing graph and data area; A36, determine whether all labels have been updated. If so, generate the update results and output them to the service area via the network, and end the process. Otherwise, proceed to step A32.

3. The tag two-dimensional addressing method based on a 2.4G proprietary protocol according to claim 1, characterized in that, In step S3, after receiving the broadcast signal from the base station AP, the tag automatically indexes the tag's data matrix information and determines whether a connection needs to be established to receive updated data. This process includes the following steps: B31, Tag Initialization: Extract the MAC address and two-dimensional addressing map sent by the base station, and initialize the 2.4G protocol stack; B32, initiate Bluetooth scanning to listen for broadcast signals sent by the base station AP; if the broadcast signal sent by the base station AP is detected, extract the two-dimensional addressing map in the broadcast and compare it with its own data array information; if the comparison is successful, proceed to step B34; otherwise, proceed to step B33; if no broadcast signal is detected, proceed to step B33. B33, after sleeping for N seconds, proceed to step B32; B34 requests to establish a connection with the base station AP, and after the connection is established, it exchanges data with the base station AP and sends a message indicating that the data reception is complete back to the base station AP.

4. The tag two-dimensional addressing method based on a 2.4G proprietary protocol according to claim 1, characterized in that, In step S4, the tag update action includes updating the two-dimensional addressing map and performing tag image region data update.

Citation Information

Patent Citations

  • Multi-base-station electronic tag system based on batch paging

    CN112351413A

  • Data processing apparatus, image processing apparatus, and method therefor

    US20030158608A1