A price tag gateway channel switching method, device, and computer-readable storage medium

By counting the number of verification failures and calculating the probability of failure of data packets, autonomous fast channel switching of electronic price tags in a strong interference environment is achieved, and the problem of untimely channel switching in the prior art is solved, which improves the success rate and saves power consumption.

CN113573374BActive Publication Date: 2025-07-11NUBIA TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110818034.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-20
Publication Date
2025-07-11
Estimated Expiration
2041-07-20

AI Technical Summary

Technical Problem

In the prior art, wireless transmission between the electronic price tag and the base station is susceptible to interference, resulting in untimely channel switching and failure in drawing push. The existing optimization method is difficult to succeed under strong interference.

Method used

By counting the number of verification failures of the data packet, the failure probability is calculated, and channel switching is performed within the preset range, and a continuous failure rate is introduced to accurately determine the strong interference scenario, realizing autonomous and fast channel switching.

Benefits of technology

This improves the channel switching success rate between electronic price tags and base stations, reduces power consumption, and improves productivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113573374B_ABST
    Figure CN113573374B_ABST
Patent Text Reader

Abstract

The present invention discloses a price tag gateway channel switching method, device and computer-readable storage medium. The method includes: when an electronic price tag receives a data packet, counting the number of check failures of each of the data packets in a packet group, and determining whether the number of check failures exceeds a preset threshold; calculating the failure probability of each of the packet groups in real time according to the cumulative failure times and cumulative success times of the packet groups, and determining whether a preset ratio of the failure probability is equal to the preset threshold; when it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, performing a channel switching once according to a preset channel switching order. An efficient gateway channel switching scheme is realized, enabling the price tag to autonomously and quickly enter the secondary switching of the channel base station, improving the success rate of the first launch, and without the need for the price tag to perform a secondary network search to switch to a new base station, saving power consumption and enhancing productivity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile communications, and particularly to a price tag gateway channel switching method, device, and computer-readable storage medium. Background Art

[0002] Electronic Shelf Label (ESL for short) has become a trend for replacing traditional paper price tags. It has currently become a standard configuration in the new retail industry, and some large supermarkets and hypermarkets have adopted ESLs. The use of ESLs improves the work efficiency of stores, frees employees' hands, and can save a large amount of labor and time costs for merchants in the long run.

[0003] However, currently, since the transmission between the price tag and the base station is wireless, it is greatly affected by interference, resulting in the easy failure of the base station to push images to the price tag. In the prior art, the general optimization method is to resend. In the case of strong interference, even if resending, it is still very likely that the transmission will not succeed. At the same time, the interference situation of the air interface often occurs with changes in time and the layout of the store.

[0004] Therefore, in the prior art, there is an urgent need to perform fast channel switching for some scenarios to enable the smooth completion of the push service. That is, how to use a mechanism to analyze and determine whether the channel used by the price tag and the base station are strongly interfered, so as to avoid the situation of untimely replacement of the base station and channel, and avoid the problem that it is difficult to succeed in the second or multiple image pushes. Summary of the Invention

[0005] To solve the above technical deficiencies in the prior art, the present invention proposes a price tag gateway channel switching method, which includes:

[0006] When the electronic price tag receives a data packet, count the number of check failures of each of the data packets in a packet group, and determine whether the number of check failures exceeds a preset threshold, where the packet group contains a continuous first number of the data packets.

[0007] Calculate the failure probability of the packet group in real time according to the cumulative failure times and cumulative success times of each of the packet groups, and determine whether a preset ratio of the failure probability is equal to the preset threshold. Wherein, if the number of check failures exceeds the preset threshold, record that the packet group fails once; if the number of check failures does not exceed the preset threshold, record that the packet group succeeds once.

[0008] When the preset ratio obtained by real-time calculation is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio obtained by real-time calculation is equal to the preset threshold, after sending the current packet group, perform a channel switching once according to the preset channel switching order.

[0009] Optionally, when the electronic price tag receives a data packet, count the number of times of check failures of each data packet in a packet group, and determine whether the number of check failures exceeds a preset threshold, where the packet group contains a continuous first number of the data packets, including:

[0010] When the electronic price tag receives the data packet, perform packet check and overall check on the data packet, and regard both the packet check failure and the overall check failure as one check failure.

[0011] Determine the first number according to the total amount of data packets in one task. For each packet group, count and determine whether the number of check failures exceeds the preset threshold.

[0012] Optionally, calculate the failure probability of each packet group in real time according to the cumulative failure times and cumulative success times of each packet group, and determine whether the preset ratio of the failure probability is equal to the preset threshold. Wherein, if the number of check failures exceeds the preset threshold, record that the packet group fails once. If the number of check failures does not exceed the preset threshold, record that the packet group succeeds once, including:

[0013] Record the cumulative failure times of each packet group as N and the cumulative success times as M.

[0014] Record the failure probability as x, and calculate the failure probability according to the formula N / (N + M)=x.

[0015] Optionally, calculate the failure probability of each packet group in real time according to the cumulative failure times and cumulative success times of each packet group, and determine whether the preset ratio of the failure probability is equal to the preset threshold. Wherein, if the number of check failures exceeds the preset threshold, record that the packet group fails once. If the number of check failures does not exceed the preset threshold, record that the packet group succeeds once, and further include:

[0016] Round the ten-fold value of the failure probability to obtain the preset ratio.

[0017] Judge the size relationship between the preset ratio and the preset threshold.

[0018] Optionally, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order, including:

[0019] Taking the preset threshold as the upper limit value and a preset value lower than the preset threshold as the lower limit value, determine the preset range from the lower limit value and the upper limit value.

[0020] When the preset ratio calculated in real time is within the preset range, the electronic price tag receives the data packet containing the current preset ratio sent by the base station.

[0021] Optionally, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order, further including:

[0022] When the preset ratio calculated in real time is equal to the preset threshold, determine that the current environment is a strong interference environment.

[0023] Before the channel switching, send all the data packets with the first quantity included in the current packet group.

[0024] Optionally, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order, further including:

[0025] Detect whether all the data packets with the first quantity included in the current packet group have been sent.

[0026] If so, after the electronic price tag performs a channel switching according to the channel switching order, receive the subsequent data packets sent by the base station. Among them, before the base station sends the subsequent data packets, perform a channel switching according to the channel switching order.

[0027] Optionally, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order. After that, it includes:

[0028] Circularly execute the determination step of the preset threshold for the subsequent data packets until all the data packets of the total amount of data packets of one task are sent.

[0029] Adjust the preset channel switching order according to the switching and usage frequency of the channel.

[0030] The present invention also provides a price tag gateway channel switching device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it realizes the steps of the price tag gateway channel switching method described in any one of the above.

[0031] The present invention also provides a computer-readable storage medium, on which a price tag gateway channel switching program is stored. When the price tag gateway channel switching program is executed by a processor, it realizes the steps of the price tag gateway channel switching method described in any one of the above.

[0032] Implementing the price tag gateway channel switching method, device and computer-readable storage medium of the present invention, by when the electronic price tag receives a data packet, counting the number of verification failures of each data packet in a packet group, and determining whether the number of verification failures exceeds a preset threshold, where the packet group contains a continuous first number of data packets; calculating the failure probability of the packet group in real time according to the cumulative failure times and cumulative success times of each packet group, and determining whether the preset ratio of the failure probability is equal to the preset threshold, where if the number of verification failures exceeds the preset threshold, record that the packet group fails once, and if the number of verification failures does not exceed the preset threshold, record that the packet group succeeds once; when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order. An efficient gateway channel switching scheme is realized, the continuous failure rate is introduced, the strong interference scenario can be accurately determined, so that the price tag can autonomously and quickly enter the secondary switching of the channel base station, improve the success rate of the first transmission, and there is no need for the price tag to perform a secondary network search to switch to a new base station, saving power consumption and improving productivity. Description of the Drawings

[0033] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. In the accompanying drawings:

[0034] Figure 1 is a schematic diagram of the hardware structure of a mobile terminal related to the present invention;

[0035] Figure 2 is an architecture diagram of a communication network system provided by an embodiment of the present invention;

[0036] Figure 3 is a flowchart of the first embodiment of the price tag gateway channel switching method of the present invention;

[0037] Figure 4 is a flowchart of the second embodiment of the price tag gateway channel switching method of the present invention;

[0038] Figure 5 is a flowchart of the third embodiment of the price tag gateway channel switching method of the present invention;

[0039] Figure 6 is a flowchart of the fourth embodiment of the price tag gateway channel switching method of the present invention;

[0040] Figure 7 is a flowchart of the fifth embodiment of the price tag gateway channel switching method of the present invention;

[0041] Figure 8 is a flowchart of the sixth embodiment of the price tag gateway channel switching method of the present invention;

[0042] Figure 9 is a flowchart of the seventh embodiment of the price tag gateway channel switching method of the present invention;

[0043] Figure 10 is a flowchart of the eighth embodiment of the price tag gateway channel switching method of the present invention. Detailed implementation manners

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0045] In the following description, suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of describing the present invention, and they have no specific meaning themselves. Therefore, "module", "component", or "unit" can be used interchangeably.

[0046] The terminal can be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, palmtop computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs, desktop computers, etc.

[0047] In the following description, a mobile terminal will be taken as an example for illustration. Those skilled in the art will understand that, except for elements specifically for mobile purposes, the structure according to the embodiments of the present invention can also be applied to fixed-type terminals.

[0048] Please refer to Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art can understand that Figure 1 the mobile terminal structure shown in does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0049] Next, in conjunction with Figure 1 each component of the mobile terminal will be specifically introduced:

[0050] The radio frequency unit 101 can be used for receiving and transmitting information or signals during a call. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0051] WiFi belongs to short-distance wireless transmission technology. The mobile terminal can help users send and receive emails, browse the web, and access streaming media through the WiFi module 102, which provides users with wireless broadband Internet access. Although Figure 1 the WiFi module 102 is shown, it can be understood that it does not belong to an essential component of the mobile terminal and can be omitted entirely within the scope of not changing the essence of the invention according to needs.

[0052] The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide an audio output related to a specific function executed by the mobile terminal 100 (such as a call signal reception sound, a message reception sound, etc.). The audio output unit 103 can include a speaker, a buzzer, etc.

[0053] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes the image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage media) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in operation modes such as a phone call mode, a recording mode, a voice recognition mode, etc., and can process such sounds into audio data. The processed audio (voice) data can be output in a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in the case of the phone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) the noise or interference generated during the reception and transmission of audio signals.

[0054] The mobile terminal 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. Among them, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as a pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be elaborated here.

[0055] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), etc.

[0056] The user input unit 107 can be used to receive input numerical or character information and generate key signal inputs related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 can include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect touch operations of the user on or near it (such as operations of the user using any suitable object or accessory such as a finger or a stylus on or near the touch panel 1071), and drive corresponding connection devices according to a preset program. The touch panel 1071 can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 110, and can receive and execute the commands sent by the processor 110. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 can also include other input devices 1072. Specifically, the other input devices 1072 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc., and specific details are not limited here.

[0057] Furthermore, the touch panel 1071 can cover the display panel 1061. After the touch panel 1071 detects a touch operation on or near it, it transmits the operation to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 according to the type of touch event. Although in Figure 1 the touch panel 1071 and the display panel 1061 are implemented as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, and specific details are not limited here.

[0058] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device can include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headset port, and so on. The interface unit 108 can be used to receive inputs from external devices (such as data information, power, etc.) and transmit the received inputs to one or more components within the mobile terminal 100 or can be used to transmit data between the mobile terminal 100 and external devices.

[0059] The memory 109 can be used to store software programs and various data. The memory 109 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory 109 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0060] The processor 110 is the control center of the mobile terminal, connecting various parts of the entire mobile terminal through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling the data stored in the memory 109, it executes various functions of the mobile terminal and processes data, thereby monitoring the mobile terminal as a whole. The processor 110 can include one or more processing units; preferably, the processor 110 can integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110.

[0061] The mobile terminal 100 can also include a power supply 111 (such as a battery) for supplying power to each component. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system.

[0062] Although Figure 1 not shown, the mobile terminal 100 can also include a Bluetooth module, etc., which will not be elaborated here.

[0063] To facilitate the understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based will be described below.

[0064] Please refer to Figure 2 , Figure 2 which is an architecture diagram of a communication network system provided by an embodiment of the present invention. This communication network system is an LTE system of the general mobile communication technology. This LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP service 204 that are sequentially communicatively connected.

[0065] Specifically, the UE 201 may be the above-mentioned terminal 100, which will not be elaborated here.

[0066] The E-UTRAN 202 includes an eNodeB 2021 and other eNodeBs 2022, etc. Among them, the eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (such as the X2 interface), the eNodeB 2021 is connected to the EPC 203, and the eNodeB 2021 can provide access for the UE 201 to the EPC 203.

[0067] The EPC 203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving Gate Way) 2034, a PGW (PDN Gate Way) 2035, a PCRF (Policy and Charging Rules Function) 2036, etc. Among them, the MME 2031 is a control node that processes the signaling between the UE 201 and the EPC 203 and provides bearer and connection management. The HSS 2032 is used to provide some registers to manage functions such as a home location register (not shown in the figure) and stores some user-specific information such as service characteristics and data rates. All user data can be sent through the SGW 2034. The PGW 2035 can provide IP address allocation for the UE 201 and other functions. The PCRF 2036 is a policy and charging control policy decision point for service data flows and IP bearer resources, and it selects and provides available policy and charging control decisions for a policy and charging enforcement functional unit (not shown in the figure).

[0068] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services, etc.

[0069] Although the above has been introduced by taking the LTE system as an example, those skilled in the art should be aware that the present invention is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.

[0070] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0071] Embodiment 1

[0072] Figure 3 It is a flowchart of the first embodiment of the price tag gateway channel switching method of the present invention. A price tag gateway channel switching method, the method includes:

[0073] S1. When the electronic price tag receives a data packet, count the number of check failures of each of the data packets in a packet group, and determine whether the number of check failures exceeds a preset threshold, wherein the packet group contains a continuous first number of the data packets.

[0074] S2. Calculate the failure probability of the packet group in real time according to the cumulative failure times and cumulative success times of each of the packet groups, and determine whether a preset ratio of the failure probability is equal to the preset threshold, wherein if the number of check failures exceeds the preset threshold, record that the packet group fails once, and if the number of check failures does not exceed the preset threshold, record that the packet group succeeds once.

[0075] S3. When it is calculated in real time that the preset ratio is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, perform a channel switching in accordance with a preset channel switching order.

[0076] Optionally, in this embodiment, considering that in the prior art, when the electronic price tag information reception fails, the base station will unconditionally resend. Sometimes, in order to ensure that the price tag is updated in time, the resending of information is generally set multiple times, or even infinitely. Under such strong interference conditions, the base station will repeat the roll call, and the price tag will be frequently awakened, resulting in a decrease in the push map success rate, and at the same time introducing a large power consumption, and the button battery of the price tag will also be quickly exhausted. Therefore, this embodiment introduces the concepts of a failure threshold and a continuous failure rate, which can efficiently judge the existence of strong interference, perform switching in time during the push map task, and ensure the success of the push map. Optionally, in this embodiment, the preset threshold for the failure situation is L = 7, which can be understood as a failure probability of 70%.

[0077] Optionally, in this embodiment, record N as the continuous failure count and M as the continuous success count.

[0078] Optionally, in this embodiment, take an example where a task contains 1000 transmission packets for illustration.

[0079] For packets 1 - 10, with 5 failures and 5 successes, record the continuous success M1 = 1.

[0080] For packets 11 - 20, with 7 failures and 3 successes, record the continuous failure N1 = 1.

[0081] For 21 - 30 packages, with 4 failures and 6 successes, it is recorded as consecutive successes M2 = M1 + 1 = 2.

[0082] For 31 - 40 packages, with 8 failures and 2 successes, it is recorded as consecutive failures N2 = N1 + 1 = 2.

[0083] By analogy:

[0084] For 41 - 50 packages, with 6 failures and 4 successes, it is recorded as consecutive successes M = M2 + 1 = 3.

[0085] For 51 - 60 packages, with 8 failures and 2 successes, it is recorded as consecutive failures N = N2 + 1 = 3.

[0086] By analogy:

[0087] For 61 - 70 packages, with 7 failures and 3 successes, it is recorded as consecutive successes N = 4.

[0088] For 71 - 80 packages, with 8 failures and 2 successes, it is recorded as consecutive failures N = 5.

[0089] For 81 - 90 packages, with 2 failures and 8 successes, it is recorded as consecutive successes M = 4.

[0090] For 91 - 100 packages, with 10 failures and 0 successes, it is recorded as consecutive failures N = 6.

[0091] At this time, it can be seen that N >= 6, N + M >= 7.

[0092] N / (N + M) = x = 6 / 10 = 0.6.

[0093] 10 * x = 6 = L < 7.

[0094] At this time, start to notify the price tag, and the base station sending gateway and channel have not reached the handover time.

[0095] For 101 - 110 packages, with 7 failures and 3 successes, it is recorded as consecutive failures N = 7.

[0096] At this time, N >= 6, N + M >= 7.

[0097] N / (N + M) = x = 7 / 11 = 0.63.

[0098] 10 * x = L = 6 < 7.

[0099] At this time, the base station sending gateway and channel have not reached the handover time

[0100] Continue to send:

[0101] For 111 - 120 packages, with 9 failures and 1 success, it is recorded as consecutive failures N = 8.

[0102] At this time, N >= 6 and N + M >= 7.

[0103] N / (N + M) = x = 8 / 12 = 0.66.

[0104] 10 * x = L = 7.

[0105] At this time, the preset threshold is reached. After the current 10 packets are sent, the base station sends the gateway, and the channel also reaches the handover timing and performs a handover.

[0106] The beneficial effect of this embodiment is that when the electronic price tag receives a data packet, the number of check failures of each data packet in a packet group is counted, and it is determined whether the number of check failures exceeds a preset threshold, where the packet group contains a continuous first number of the data packets; the failure probability of the packet group is calculated in real time according to the cumulative failure times and cumulative success times of each packet group, and it is determined whether a preset ratio of the failure probability is equal to the preset threshold, where if the number of check failures exceeds the preset threshold, the packet group is recorded as a failure once, and if the number of check failures does not exceed the preset threshold, the packet group is recorded as a success once; when the preset ratio calculated in real time is within a preset range lower than the preset threshold, the data packet containing the preset ratio sent by the base station is received, and when the preset ratio calculated in real time is equal to the preset threshold, after the current packet group is sent, a channel handover is performed once according to the preset channel handover order. An efficient gateway channel handover scheme is realized, the continuous failure rate is introduced, the strong interference scenario can be accurately determined, so that the price tag can autonomously and quickly enter the secondary handover of the channel base station, improve the success rate of the first transmission, and there is no need for the price tag to perform a secondary network search to switch to a new base station, saving power consumption and improving productivity.

[0107] Embodiment 2

[0108] Figure 4 It is a flowchart of the second embodiment of the price tag gateway channel handover method of the present invention. Based on the above embodiment, when the electronic price tag receives a data packet, the number of check failures of each data packet in a packet group is counted, and it is determined whether the number of check failures exceeds a preset threshold, where the packet group contains a continuous first number of the data packets, including:

[0109] S11. When the electronic price tag receives the data packet, perform packet check and overall check on the data packet, and regard both packet check failure and overall check failure as one check failure.

[0110] S12. Determine the first number according to the total amount of data packets in one task. For each packet group, count and determine whether the number of check failures exceeds the preset threshold.

[0111] Optionally, in this embodiment, each time the electronic price tag receives information, it performs CRC cyclic redundancy check and MD5 message digest algorithm check. Specifically, it includes two parts: packet check and overall check. In this embodiment, the failure of the check in each case is defined as the failure of sending a packet.

[0112] Optionally, in this embodiment, the number of check failures and the continuous failure rate are statistically counted. The various types of failure situations are classified. For example, when performing single-packet reception check, it is statistically counted every 10 packets. If the number of failures in 10 packets is n, and when n reaches or exceeds the threshold L (L = 7), it is defined as the continuous failure exceeding the upper limit. At this time, this situation is defined as one continuous failure.

[0113] The beneficial effect of this embodiment is that when the electronic price tag receives the data packet, it performs packet check and overall check on the data packet, and regards both the packet check failure and the overall check failure as one check failure; the first quantity is determined according to the total amount of data packets in one task. For each packet group, it statistically counts and determines whether the number of check failures exceeds the preset threshold. It provides an identification mechanism for continuous failure for implementing an efficient gateway channel switching scheme, introduces the continuous failure rate, enables accurate determination of strong interference scenarios, enables the price tag to autonomously and quickly enter the secondary switching of the channel base station, improves the success rate of the first transmission, and does not require the price tag to perform secondary network search to switch to a new base station, saves power consumption, and improves productivity.

[0114] Embodiment III

[0115] Figure 5 It is a flowchart of the third embodiment of the price tag gateway channel switching method of the present invention. Based on the above embodiment, the failure probability of each packet group is calculated in real time according to the cumulative number of failures and the cumulative number of successes of each packet group, and it is determined whether the preset ratio of the failure probability is equal to the preset threshold. Among them, if the number of check failures exceeds the preset threshold, the packet group is recorded as a failure once; if the number of check failures does not exceed the preset threshold, the packet group is recorded as a success once, including:

[0116] S21. Record the cumulative number of failures of each packet group as N and the cumulative number of successes as M.

[0117] S22. Record the failure probability as x, and calculate the failure probability according to the formula N / (N + M)=x.

[0118] Optionally, in this embodiment, in combination with the above definition of continuous failure, it is statistically counted every 10 packets, and the cumulative number of continuous failures is recorded as N; similarly, continue to statistically count the sending situation of the next 10 packets. If the number of failures in 10 packets does not reach n, it is defined as continuous success, and the cumulative number of continuous successes is statistically counted segment by segment and recorded as M.

[0119] Optionally, in this embodiment, the base station generally has hundreds of packets in each transmission task. According to the preset transmission requirements and historical data statistics, the values of N and M will gradually increase to a relatively large ratio; when N >= 6 and N + M >= 7, calculate the value of N / (N + M) = x, and use this value as the failure probability of this embodiment.

[0120] The beneficial effect of this embodiment is that by recording the cumulative failure times of each packet group as N, the cumulative success times as M; recording the failure probability as x, and calculating the failure probability according to the formula N / (N + M) = x. It provides a calculation method for the failure probability for implementing an efficient gateway channel switching scheme, introduces the continuous failure rate, enables accurate determination of strong interference scenarios, allows the price tag to autonomously and quickly enter the secondary switching of the channel base station, improves the success rate of the first transmission, and does not require the price tag to perform a secondary network search to switch to a new base station, saving power consumption and enhancing productivity.

[0121] Embodiment 4

[0122] Figure 6 It is a flowchart of the fourth embodiment of the price tag gateway channel switching method of the present invention. Based on the above embodiment, the failure probability of the packet group is calculated in real time according to the cumulative failure times and cumulative success times of each packet group, and it is determined whether the preset ratio of the failure probability is equal to the preset threshold. Among them, if the number of verification failures exceeds the preset threshold, the packet group is recorded as a failure once; if the number of verification failures does not exceed the preset threshold, the packet group is recorded as a success once. It further includes:

[0123] S23. Round the ten-fold value of the failure probability to obtain the preset ratio.

[0124] S24. Determine the magnitude relationship between the preset ratio and the preset threshold.

[0125] Optionally, in this embodiment, calculate 10 * x = L value. For the convenience of calculation, the L value is obtained by rounding.

[0126] The beneficial effect of this embodiment is that by rounding the ten-fold value of the failure probability to obtain the preset ratio; determining the magnitude relationship between the preset ratio and the preset threshold. It provides a rounding and determination method for the failure probability for implementing an efficient gateway channel switching scheme, introduces the continuous failure rate, enables accurate determination of strong interference scenarios, allows the price tag to autonomously and quickly enter the secondary switching of the channel base station, improves the success rate of the first transmission, and does not require the price tag to perform a secondary network search to switch to a new base station, saving power consumption and enhancing productivity.

[0127] Embodiment 5

[0128] Figure 7 It is a flowchart of the fifth embodiment of the price tag gateway channel switching method of the present invention. Based on the above embodiment, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching once according to the preset channel switching order, including:

[0129] S31: Take the preset threshold as the upper limit value, and a preset value lower than the preset threshold as the lower limit value, and determine the preset range by the lower limit value and the upper limit value.

[0130] S32: When the preset ratio calculated in real time is within the preset range, the electronic price tag receives the data packet containing the current preset ratio sent by the base station.

[0131] Optionally, in this embodiment, based on the above 10*x = L, it is defined as the failure threshold L. For example, when the lower limit value corresponding to L is set to 6, the preset range determined by the lower limit value 6 and the upper limit value 7 is [6, 7].

[0132] Optionally, in this embodiment, as described in the above example, when L reaches 6, the base station starts to automatically carry the L value into the data packet in the next consecutive 10 packets and notify the electronic price tag accordingly.

[0133] The beneficial effect of this embodiment is that by taking the preset threshold as the upper limit value and a preset value lower than the preset threshold as the lower limit value, the preset range is determined by the lower limit value and the upper limit value; when the preset ratio calculated in real time is within the preset range, the electronic price tag receives the data packet containing the current preset ratio sent by the base station. It provides a basis for the base station and the price tag to synchronously switch the gateway channel for implementing an efficient gateway channel switching scheme, introduces the continuous failure rate, enables accurate determination of the strong interference scenario, enables the price tag to autonomously and quickly enter the secondary switching of the channel base station, improves the success rate of the first launch, and there is no need for the price tag to perform a secondary network search to switch to a new base station, saving power consumption and improving productivity.

[0134] Embodiment Six

[0135] Figure 8It is a flowchart of the sixth embodiment of the price tag gateway channel switching method of the present invention. Based on the above embodiment, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order, and further include:

[0136] S33. When the preset ratio calculated in real time is equal to the preset threshold, determine that the current environment is a strong interference environment.

[0137] S34. Before channel switching, send all the data packets of the first quantity included in the current packet group.

[0138] Optionally, in this embodiment, when x >= 70%, according to the 3σ criterion of statistical normal distribution, it is determined that the current environment is strong interference, and the next retransmission on the original channel will also fail. At this time, if L = 7, after 10 packets are sent, the base station automatically performs channel switching and reselects a new gateway and its dedicated channel to retransmit in an increasing manner. Similarly, the electronic price tag synchronization will also automatically switch to a gateway for reception after 10 packet cycles according to the received L situation.

[0139] The beneficial effect of this embodiment is that when the preset ratio calculated in real time is equal to the preset threshold, it is determined that the current environment is a strong interference environment; before channel switching, all the data packets of the first quantity included in the current packet group are sent. It provides a synchronous determination method for the channel switching opportunity for implementing an efficient gateway channel switching scheme, introduces the continuous failure rate, and the strong interference scenario can be accurately determined, enabling the price tag to autonomously and quickly enter the secondary switching of the channel base station, improving the success rate of the first transmission, and without the price tag having to perform a secondary network search to switch to a new base station, saving power consumption and improving productivity.

[0140] Embodiment Seven

[0141] Figure 9 It is a flowchart of the seventh embodiment of the price tag gateway channel switching method of the present invention. Based on the above embodiment, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order, and further include:

[0142] S35. Detect whether all the data packets of the first quantity included in the current packet group have been sent.

[0143] S36. If so, after the electronic price tag performs a channel switch in accordance with the channel switch order, it receives the subsequent data packets sent by the base station. Before the base station sends the subsequent data packets, a channel switch is performed in accordance with the channel switch order.

[0144] Optionally, in this embodiment, considering that 3. the designed gateway number and channel number of each base station are also fixed. Therefore, it is assumed that there are three data sending gateways, labeled as gateway No. 1-3. The distribution task of the information sent by the base station is carried out in the order of 1-2-3-1-2-3. At the same time, the sending channels bound to each gateway are also fixed. Therefore, the price tags will also receive tasks according to the registration information and the allocated channel gateways. Based on this, this embodiment stipulates that when an abnormality occurs, the channel switch is sequentially executed, such as an increasing +1 sequence. Suppose price tag A starts to send and receive picture tasks using gateway No. 1 and the channel. When an abnormality and failure occur, it sequentially increases by +1 and then switches to gateway No. 2 to work; similarly, price tag B starts to work on gateway No. 2 and the channel. When the diagnosis fails, it sequentially switches to gateway No. 3 and the channel to work; similarly, price tag C works on gateway No. 3. When the diagnosis fails, it increases and switches to gateway No. 1 to work.

[0145] The beneficial effect of this embodiment is that by detecting whether all the data packets included in the current packet group have been completely sent; if so, after the electronic price tag performs a channel switch in accordance with the channel switch order, it receives the subsequent data packets sent by the base station. Before the base station sends the subsequent data packets, a channel switch is performed in accordance with the channel switch order. It provides a switching method for gateway channels for an efficient gateway channel switching scheme, introduces a continuous failure rate, enables accurate determination of strong interference scenarios, enables the price tag to autonomously and quickly enter the secondary switch of the channel base station, improves the success rate of the first transmission, and does not require the price tag to perform a secondary network search to switch to a new base station, saving power consumption and improving productivity.

[0146] Embodiment Eight

[0147] Figure 10 It is a flowchart of the eighth embodiment of the price tag gateway channel switching method of the present invention. Based on the above embodiment, when the preset ratio calculated in real time is within a preset range lower than the preset threshold, it receives the data packet containing the preset ratio sent by the base station. When the preset ratio calculated in real time is equal to the preset threshold, after the current packet group is sent, a channel switch is performed in accordance with the preset channel switch order. After that, it includes:

[0148] S41. The determination step of the preset threshold is cyclically executed for the subsequent data packets until all the data packets of the total amount of data packets of one task are completely sent.

[0149] S42. Adjust the preset channel switching order according to the switching of the said channel and the used frequency.

[0150] Optionally, in this embodiment, since the base station and the price tag independently perform gateway and channel switching, the switching actions of the gateway and the channel can be completed immediately and effectively, so that the reception success rate of subsequent data packets can be improved in a timely manner.

[0151] Optionally, in this embodiment, the receiving and sending situations of the new gateway and channel will be re - counted until a map - pushing task is completed.

[0152] The beneficial effect of this embodiment is that by repeatedly executing the determination step of the preset threshold for the subsequent data packets until all the data packets of the total amount of data packets of one said task are sent; adjusting the preset channel switching order according to the switching of the said channel and the used frequency. It provides loop determination and autonomous switching for implementing an efficient gateway channel switching scheme, introduces the continuous failure rate, accurately determines the strong interference scenario, enables the price tag to autonomously and quickly enter the secondary switching of the channel base station, improves the success rate of the first transmission, and does not require the price tag to perform a second network search to switch to a new base station, saving power consumption and improving productivity.

[0153] Embodiment Nine

[0154] Based on the above - mentioned embodiment, the present invention also proposes a price - tag gateway channel switching device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the price - tag gateway channel switching method described in any one of the above.

[0155] It should be noted that the above - mentioned device embodiment and the method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are all correspondingly applicable in the device embodiment, so they will not be elaborated here.

[0156] Embodiment Ten

[0157] Based on the above - mentioned embodiment, the present invention also proposes a computer - readable storage medium, on which a price - tag gateway channel switching program is stored. When the price - tag gateway channel switching program is executed by a processor, it implements the steps of the price - tag gateway channel switching method described in any one of the above.

[0158] It should be noted that the above - mentioned medium embodiment and the method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are all correspondingly applicable in the medium embodiment, so they will not be elaborated here.

[0159] It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or device comprising such element.

[0160] The serial numbers of the above embodiments of the present invention are only for description and do not represent the superiority or inferiority of the embodiments.

[0161] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0162] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the purpose of the present invention and the scope protected by the claims. All of these are within the protection scope of the present invention.

Claims

1. A price tag gateway channel switching method, characterized in that, The method includes: When the electronic price tag receives a data packet, count the number of check failures of each of the data packets in a packet group, and determine whether the number of check failures exceeds a preset threshold, where the packet group contains a consecutive first number of the data packets; Calculate the failure probability of the packet group in real time according to the cumulative failure times and cumulative success times of each of the packet groups, and determine whether a preset ratio of the failure probability is equal to the preset threshold, where if the number of check failures exceeds the preset threshold, record that the packet group fails once, and if the number of check failures does not exceed the preset threshold, record that the packet group succeeds once; When it is calculated in real time that the preset ratio is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, perform a channel switching in accordance with a preset channel switching order; Wherein, When the electronic price tag receives the data packet, perform packet check and overall check on the data packet, and regard both the packet check failure and the overall check failure as one check failure; Determine the first number according to the total amount of data packets in a task. For each packet group, count and determine whether the number of check failures exceeds the preset threshold; Record the cumulative failure times of each of the packet groups as N and the cumulative success times as M; Record the failure probability as x, and calculate the failure probability according to the formula N / (N + M)=x; Round the ten-fold value of the failure probability to obtain the preset ratio; Judge the magnitude relationship between the preset ratio and the preset threshold.

2. The price tag gateway channel switching method according to claim 1, characterized in that The step of when it is calculated in real time that the preset ratio is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, perform a channel switching in accordance with a preset channel switching order includes: Taking the preset threshold as the upper limit value and a preset value lower than the preset threshold as the lower limit value, determine the preset range from the lower limit value and the upper limit value; When it is calculated in real time that the preset ratio is within the preset range, the electronic price tag receives the data packet containing the current preset ratio sent by the base station.

3. The price tag gateway channel switching method according to claim 2, wherein The step of when it is calculated in real time that the preset ratio is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, perform a channel switching in accordance with a preset channel switching order further includes: When it is calculated in real time that the preset ratio is equal to the preset threshold, determine that the current environment is a strong interference environment; Before channel switching, send all the first number of data packets included in the current packet group.

4. The price tag gateway channel switching method according to claim 3, characterized in that, When it is calculated in real time that the preset ratio is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order, and further include: Detect whether all the data packets with the first quantity included in the current packet group have been sent; If so, after the electronic price tag performs a channel switching according to the channel switching order, receive the subsequent data packets sent by the base station. Before the base station sends the subsequent data packets, perform a channel switching according to the channel switching order.

5. The price tag gateway channel switching method according to claim 4, wherein When it is calculated in real time that the preset ratio is within a preset range lower than the preset threshold, receive the data packet containing the preset ratio sent by the base station. When it is calculated in real time that the preset ratio is equal to the preset threshold, after sending the current packet group, perform a channel switching according to the preset channel switching order. After that, include: Circularly execute the determination step of the preset threshold for the subsequent data packets until all the data packets with the total quantity of data packets for one task have been sent; Adjust the preset channel switching order according to the switching and usage frequency of the channel.

6. A price tag gateway channel switching device, characterized in that, The device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the price tag gateway channel switching method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that, A price tag gateway channel switching program is stored on the computer-readable storage medium. When the price tag gateway channel switching program is executed by the processor, it implements the steps of the price tag gateway channel switching method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • A method for handling the radio link, a communication method and device after the radio link failing

    WO2009089782A1

  • Communication method and apparatus

    WO2020199992A1