Data processing method and device for zero-power-consumption terminal and communication equipment
By executing corresponding data processing strategies in the card reading device according to the data transmission status of the zero-power consumption terminal, the instability problem caused by the power consumption terminal during the data transmission process is solved, and the stability of data transmission is improved.
Patent Information
- Application Number
- CN202310996222.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-08
- Publication Date
- 2025-02-18
AI Technical Summary
During the data transmission process, the zero-power terminal is unstable due to power exhaustion, and the data transmission cannot be completed.
By implementing the data processing method in the card reading device, the data transmission status of the terminal data sent by the zero-power consumption terminal is determined, and corresponding data processing strategies are executed according to the status, including storing data, sending a wake-up signal, etc.
The stability of zero-power terminals during data transmission is improved, and the problem of data transmission interruption and incompleteness caused by power exhaustion is avoided.
Smart Images

Figure CN119485262A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method, apparatus, communication equipment, storage medium and computer program product for a zero-power consumption terminal. Background Art
[0002] In the research of 3GPP R19 (3rd Generation Partnership Project), a new type of terminal, Ambient IOT, was proposed. Such terminals are usually in the form of cards and tags, which have obvious advantages in complex and extreme environments. Based on such characteristics, the application scenarios of zero-power terminals are wide, including industrial manufacturing, warehousing and logistics, power systems, transportation, medical scenarios, agriculture, smart homes, etc.
[0003] For zero-power terminals, it is generally required that their size cannot be too large. Under the size limit, zero-power terminals only carry a small amount of batteries or even no power supply batteries. Therefore, their operating modes are divided into active mode that requires batteries and transmission modules and passive mode that has no batteries and cannot transmit signals independently.
[0004] Since zero-power terminals have low battery or even no power supply, it is easy for the battery to run out but the data to be transmitted incomplete during data transmission, affecting the stability of data transmission. Summary of the invention
[0005] The embodiments of the present application provide a data processing method, apparatus, communication equipment, storage medium and computer program product for a zero-power consumption terminal, which can improve data stability.
[0006] In a first aspect, a data processing method for a zero-power consumption terminal is provided, which is applied to a card reading device, and the method includes:
[0007] Determining a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal;
[0008] According to the data transmission status, a data processing strategy for the zero-power consumption terminal is determined, and the data processing strategy is executed.
[0009] In one embodiment, the data transmission status includes transmission completion, failure, low battery, and data transmission interruption.
[0010] In one of the embodiments, determining the data transmission state of the zero-power consumption terminal according to the terminal data sent by the zero-power consumption terminal includes:
[0011] Parsing a data transmission status identifier of the zero-power consumption terminal from a preset position of the terminal data sent by the zero-power consumption terminal;
[0012] If the data transmission status identifier of the zero-power consumption terminal is obtained by parsing, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier,
[0013] The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
[0014] In one of the embodiments, determining the data transmission state of the zero-power consumption terminal according to the terminal data sent by the zero-power consumption terminal further includes:
[0015] If the data transmission status identifier of the zero-power consumption terminal is not obtained through analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
[0016] In one embodiment, when the data transmission state is insufficient power, the data processing strategy for the zero-power consumption terminal is a first data processing strategy, and executing the data processing strategy includes:
[0017] The terminal data is saved, and a wake-up signal is sent to the zero-power consumption terminal, wherein the energy of the wake-up signal is higher than the energy of a historical wake-up signal, and the historical wake-up signal is a wake-up signal used to wake up the zero-power consumption terminal to feed back the terminal data.
[0018] In one embodiment, when the data transmission state is the data transmission interruption, the data processing strategy for the zero-power consumption terminal is a second data processing strategy, and executing the data processing strategy includes:
[0019] Saving the terminal data and sending a wake-up signal to the zero-power consumption terminal;
[0020] When the terminal data fed back by the wake-up signal at the zero-power consumption terminal indicates that the data transmission status of the zero-power consumption terminal is still the data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
[0021] In one of the embodiments, when the data transmission state is the fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and executing the data processing strategy includes:
[0022] Saving the terminal data and releasing the zero-power consumption terminal;
[0023] Report fault prompt information for the zero-power consumption terminal.
[0024] In one of the embodiments, when the data transmission state is transmission completed, the data processing strategy for the zero-power consumption terminal includes:
[0025] The terminal data is saved.
[0026] In a second aspect, a data processing method for a zero-power consumption terminal is provided, which is applied to the zero-power consumption terminal, and the method includes:
[0027] Determining a data transmission status of the zero-power consumption terminal;
[0028] Determining target data currently to be transmitted from the data to be transmitted;
[0029] According to the data transmission state of the zero-power consumption terminal and the target data, terminal data is sent to the card reading device.
[0030] In one embodiment, determining the data transmission state of the zero-power consumption terminal includes:
[0031] The data transmission state of the zero-power consumption terminal is determined according to the current power of the zero-power consumption terminal and the data to be transmitted.
[0032] In one of the embodiments, determining the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted includes:
[0033] Determine the amount of data that can be transmitted based on the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal;
[0034] When the amount of data supported for transmission by the current power supply is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
[0035] In one of the embodiments, determining the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted further includes:
[0036] When the amount of data supported for transmission by the current power supply is less than the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is insufficient power.
[0037] In one embodiment, determining the data transmission state of the zero-power consumption terminal includes:
[0038] Detect the current transmission between various functional modules in the zero-power terminal;
[0039] When it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
[0040] In one embodiment, sending the terminal data to the card reader device according to the data transmission state of the zero-power consumption terminal and the target data includes:
[0041] Adding a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data;
[0042] The terminal data is sent to a card reader.
[0043] In a third aspect, a data processing device for a zero-power consumption terminal is provided, which is applied to a card reading device, and the device includes:
[0044] A first determining module, configured to determine a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal;
[0045] The second determination module is used to determine a data processing strategy for the zero-power consumption terminal according to the data transmission state, and execute the data processing strategy.
[0046] In one embodiment, the data transmission status includes transmission completion, failure, low battery, and data transmission interruption.
[0047] In one embodiment, the first determining module is further configured to:
[0048] Parsing a data transmission status identifier of the zero-power consumption terminal from a preset position of the terminal data sent by the zero-power consumption terminal;
[0049] If the data transmission status identifier of the zero-power consumption terminal is obtained by parsing, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier,
[0050] The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
[0051] In one embodiment, the first determining module is further configured to:
[0052] If the data transmission status identifier of the zero-power consumption terminal is not obtained through analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
[0053] In one of the embodiments, when the data transmission state is the low power, the data processing strategy for the zero-power consumption terminal is the first data processing strategy, and the second determination module is further used to:
[0054] The terminal data is saved, and a wake-up signal is sent to the zero-power consumption terminal, wherein the energy of the wake-up signal is higher than the energy of a historical wake-up signal, and the historical wake-up signal is a wake-up signal used to wake up the zero-power consumption terminal to feed back the terminal data.
[0055] In one of the embodiments, when the data transmission state is the data transmission interruption, the data processing strategy for the zero-power consumption terminal is a second data processing strategy, and the second determination module is further used to:
[0056] Saving the terminal data and sending a wake-up signal to the zero-power consumption terminal;
[0057] When the terminal data fed back by the wake-up signal at the zero-power consumption terminal indicates that the data transmission status of the zero-power consumption terminal is still the data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
[0058] In one of the embodiments, when the data transmission state is the fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and the second determination module is further used to:
[0059] Saving the terminal data and releasing the zero-power consumption terminal;
[0060] Report fault prompt information for the zero-power consumption terminal.
[0061] In one of the embodiments, when the data transmission state is transmission completion, the data processing strategy for the zero-power consumption terminal includes: saving the terminal data.
[0062] In a fourth aspect, a data processing device for a zero-power consumption terminal is provided, which is applied to the zero-power consumption terminal, and the device includes:
[0063] A first determining module, used to determine the data transmission status of the zero-power consumption terminal;
[0064] A second determining module, used to determine the target data to be transmitted currently from the data to be transmitted;
[0065] The sending module is used to send terminal data to the card reading device according to the data transmission state of the zero-power consumption terminal and the target data.
[0066] In one embodiment, the first determining module is further configured to:
[0067] The data transmission state of the zero-power consumption terminal is determined according to the current power of the zero-power consumption terminal and the data to be transmitted.
[0068] In one embodiment, the first determining module is further configured to:
[0069] Determine the amount of data that can be transmitted based on the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal;
[0070] When the amount of data supported for transmission by the current power supply is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
[0071] In one embodiment, the first determining module is further configured to:
[0072] When the amount of data supported for transmission by the current power supply is less than the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is insufficient power.
[0073] In one embodiment, the first determining module is further configured to:
[0074] Detect the current transmission between various functional modules in the zero-power terminal;
[0075] When it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
[0076] In one embodiment, the sending module is further used for:
[0077] Adding a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data;
[0078] The terminal data is sent to a card reader.
[0079] In a fifth aspect, a card reading device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0080] In a sixth aspect, a zero-power consumption terminal is provided, characterized in that it includes a processor and a transmitter;
[0081] The processor is used to determine the data transmission status of the zero-power consumption terminal;
[0082] The processor is further used to determine the target data to be transmitted currently from the data to be transmitted;
[0083] The transmitter is used to send terminal data to the card reading device according to the data transmission state of the zero-power consumption terminal and the target data.
[0084] In a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0085] In an eighth aspect, a chip is provided, which includes a programmable logic circuit and / or program instructions, and when the chip is running, it can execute the data processing method for the zero-power terminal provided in an embodiment of the present application.
[0086] In a ninth aspect, a computer program product is provided, comprising a computer program, characterized in that when the computer program is executed by a processor, the data processing method for the zero-power consumption terminal provided in an embodiment of the present application is implemented.
[0087] In the above-mentioned data processing method, device, communication device, storage medium and computer program product for zero-power terminal, the card reader device can determine the data transmission status of the zero-power terminal according to the terminal data sent by the zero-power terminal, and determine the data processing strategy for the zero-power terminal according to the data transmission status, and execute the data processing strategy. Since the card reader device can adopt the corresponding data processing strategy based on the data transmission status of the zero-power terminal during the data transmission process, it can alleviate the situation where the power is exhausted but the data is not fully transmitted during the data transmission process, so as to improve the stability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 An application environment diagram of a data processing method for a zero-power consumption terminal in one embodiment;
[0089] Figure 2 It is a flowchart of a data processing method for a zero-power consumption terminal in one embodiment;
[0090] Figure 3 It is a flowchart of a data processing method for a zero-power consumption terminal in one embodiment;
[0091] Figure 4 is a flow chart of a data processing method for a zero-power consumption terminal in another embodiment;
[0092] Figure 5 is a schematic diagram of a zero-power consumption terminal in one embodiment;
[0093] Figure 6is a schematic diagram of a data processing method for a zero-power consumption terminal in one embodiment;
[0094] Figure 7 is a structural block diagram of a data processing device for a zero-power consumption terminal in one embodiment;
[0095] Figure 8 It is a structural block diagram of a data processing device for a zero-power consumption terminal in another embodiment;
[0096] Fig. 9 FIG. 4 is a diagram showing the internal structure of a zero-power consumption terminal in an embodiment. DETAILED DESCRIPTION
[0097] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0098] Figure 1 A schematic diagram of an application scenario of a data processing method for a zero-power consumption terminal provided in an embodiment of the present application. Figure 1 As shown, in this scenario, there are a first zero-power consumption terminal 100, a second zero-power consumption terminal 200 and a card reader 300. The first zero-power consumption terminal 100, the second zero-power consumption terminal 200 and the card reader 300 perform data transmission through a network.
[0099] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0100] In one embodiment, Figure 2 As shown, a data processing method for a zero-power terminal is provided, and the method is applied to Figure 1 The card reader 300 in FIG. 1 is used as an example to illustrate the method, which includes the following steps:
[0101] Step 202, determining the data transmission state of the zero-power consumption terminal according to the terminal data sent by the zero-power consumption terminal;
[0102] Step 204: determine a data processing strategy for the zero-power consumption terminal according to the data transmission state, and execute the data processing strategy.
[0103] In the embodiment of the present disclosure, the terminal data is the data sent from the zero-power terminal to the card reader device, and the card reader can determine the data transmission status of the zero-power terminal by identifying whether the terminal data carries a data transmission status identifier and the type of the data transmission status identifier carried. In one embodiment, the data transmission status may include transmission completion, failure, insufficient power, data transmission interruption, etc.
[0104] After determining the data transmission status of the zero-power terminal, the data processing strategy for the zero-power terminal can be further matched according to the data transmission status, and the data processing strategy can be executed. Exemplarily, when the data transmission status is transmission completed, the terminal data can be saved, or the terminal data can be reported; or when the data status is faulty, the terminal data can be saved and data fault prompt information can be reported.
[0105] In the data processing method for a zero-power terminal provided by the embodiment of the present disclosure, the card reader device can determine the data transmission status of the zero-power terminal according to the terminal data sent by the zero-power terminal, and determine the data processing strategy for the zero-power terminal according to the data transmission status, and execute the data processing strategy. Since the card reader device can adopt the corresponding data processing strategy based on the data transmission status of the zero-power terminal during the data transmission process, the situation in which the power is exhausted but the data is not fully transmitted during the data transmission process can be alleviated, so as to improve the stability of data transmission.
[0106] In an exemplary embodiment, referring to Figure 3 As shown, in the above step 202, determining the data transmission state of the zero-power consumption terminal according to the terminal data sent by the zero-power consumption terminal includes:
[0107] Step 302, parsing the data transmission state identifier of the zero-power consumption terminal from the preset position of the terminal data sent by the zero-power consumption terminal;
[0108] Step 304: if the data transmission status identifier of the zero-power consumption terminal is obtained through analysis, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier.
[0109] The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
[0110] In the disclosed embodiment, when the zero-power terminal sends terminal data, a data state transmission identifier corresponding to the data transmission state of the zero-power terminal can be set at a preset position of the terminal data, for example: a data state transmission identifier corresponding to the data transmission state of the zero-power terminal is set at the end of the terminal data. After obtaining the terminal data sent by the zero-power terminal, the card reader device can parse the zero-power terminal to obtain the data transmission state identifier of the zero-power terminal from the preset position, and after parsing and obtaining the data transmission state identifier of the zero-power terminal, the data transmission state corresponding to the zero-power terminal can be determined according to the data transmission state identifier.
[0111] Among them, the data transmission status identifier may include a first status identifier, a second status identifier and a third status identifier, wherein the first status identifier is used to characterize the completion of the transmission. When the data transmission status identifier is the first status identifier, it can be determined that the data transmission status of the zero-power consumption terminal is the completion of the transmission; the second status identifier is used to characterize a fault. When the data transmission status identifier is the second status identifier, it can be determined that the data transmission status of the zero-power consumption terminal is a fault; the third status identifier is used to characterize insufficient power. When the data transmission status identifier is the third status identifier, it can be determined that the data transmission status of the zero-power consumption terminal is insufficient power.
[0112] The data processing method for zero-power terminals provided in the embodiments of the present disclosure can convey through terminal data the state of the zero-power terminal, such as transmission completion, failure, insufficient power, or data transmission interruption. The card reader device can then adopt a corresponding data processing strategy based on the data transmission state of the zero-power terminal, thereby alleviating the situation in which the power has been exhausted but the data has not been transmitted during the data transmission process, thereby improving the stability of data transmission.
[0113] In an exemplary embodiment, determining the data transmission state of the zero-power consumption terminal according to the terminal data sent by the zero-power consumption terminal further includes:
[0114] If the data transmission status identifier of the zero-power consumption terminal is not obtained through the analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
[0115] In the disclosed embodiment, if the terminal data does not carry the data transmission status identifier of the zero-power terminal, the card reader will not obtain the data transmission status identifier of the zero-power terminal after parsing the terminal data, and it can be determined that the zero-power terminal is in a data transmission interruption state.
[0116] In an exemplary embodiment, when the data transmission state is insufficient power, the data processing strategy for the zero-power consumption terminal is a first data processing strategy, and executing the data processing strategy includes:
[0117] The terminal data is saved, and a wake-up signal is sent to the zero-power terminal. The energy of the wake-up signal is higher than the energy of the historical wake-up signal. The historical wake-up signal is a wake-up signal used to wake up the zero-power terminal to feedback the terminal data.
[0118] In an embodiment of the present disclosure, when the power of the zero-power terminal is insufficient to transmit all the data, the zero-power terminal will be in a state of insufficient power. When the data transmission state of the zero-power terminal is insufficient power, the data processing strategy for the zero-power terminal can be determined to be the first data processing strategy. The first data processing strategy includes: saving the terminal data and continuing to send a higher energy wake-up signal to the zero-power terminal. After receiving the wake-up signal, the zero-power terminal can continue to transmit the remaining untransmitted data based on the wake-up signal. For example: if the wake-up signal sent last time is 2mA, then a 4mA wake-up signal is sent this time.
[0119] The data processing method for zero-power terminals provided in the embodiments of the present disclosure can enable the card reader to send a higher-energy wake-up signal to the zero-power terminal when the terminal is in a data transmission state with insufficient power, so as to replenish power for the terminal. This can alleviate the situation where the power is exhausted but the data is not fully transmitted during the data transmission process, thereby improving the stability of data transmission.
[0120] In an exemplary embodiment, when the data transmission state is data transmission interruption, the data processing strategy for the zero-power consumption terminal is a second data processing strategy, and executing the data processing strategy includes:
[0121] Save terminal data and send a wake-up signal to the zero-power terminal;
[0122] When the terminal data fed back by the wake-up signal indicates that the data transmission status of the zero-power consumption terminal is still data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
[0123] In an embodiment of the present disclosure, when the data transmission state of the zero-power terminal is data transmission interruption, the data processing strategy for the zero-power terminal can be determined to be the second data processing strategy, and the second data processing strategy includes: saving terminal data, and continuing to send a wake-up signal to the zero-power terminal. After the zero-power terminal receives the wake-up signal, it can continue to transmit the remaining untransmitted data based on the wake-up signal. If the card reader device continuously receives terminal data indicating that the zero-power terminal is in a data interruption, and the number of consecutive wake-up signals sent to the zero-power terminal reaches a preset number, the data transmission of the zero-power terminal is determined to be interrupted, and data interruption prompt information indicating that the data transmission of the zero-power terminal is interrupted is reported. Among them, the preset number of times can be a pre-set number of times, and the specific value can be determined by a person skilled in the art according to needs, and the embodiment of the present disclosure does not specifically limit this.
[0124] The data processing method for the zero-power terminal provided by the embodiment of the present disclosure is that the card reading device can repeatedly send a higher wake-up signal to the zero-power terminal when the zero-power terminal is in a data transmission state interrupted by data transmission, so as to wake up the zero-power terminal to continue transmitting data, thereby improving the stability of data transmission.
[0125] In an exemplary embodiment, when the data transmission state is a fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and executing the data processing strategy includes:
[0126] Save terminal data and release zero-power consumption terminals;
[0127] Report fault prompt information for zero-power terminals.
[0128] In the disclosed embodiment, when the zero-power consumption terminal is in a fault state, the data processing strategy for the zero-power consumption terminal can be determined to be the third data processing strategy, and the third data processing strategy includes: saving terminal data, releasing the zero-power consumption terminal, and reporting fault prompt information indicating the zero-power consumption terminal fault. By reporting the zero-power consumption terminal fault through the fault prompt information to prompt the maintenance personnel to repair it, the zero-power consumption terminal can be repaired in time and its utilization rate can be improved.
[0129] In an exemplary embodiment, when the data transmission state is transmission completion, the data processing strategy for the zero-power consumption terminal includes: saving terminal data.
[0130] In the disclosed embodiment, when the zero-power consumption terminal is in the transmission completion state, the data processing strategy for the zero-power consumption terminal may be determined to be to save the terminal data without performing other processing.
[0131] In one embodiment, Figure 4 As shown, a data processing method for a zero-power terminal is provided, and the method is applied to Figure 1 The zero-power terminal in the example is used as an example to illustrate the following steps:
[0132] Step 402, determining the data transmission state of the zero-power consumption terminal;
[0133] Step 404, determining the target data to be transmitted currently from the data to be transmitted;
[0134] Step 406: Send terminal data to the card reader device according to the data transmission state and target data of the zero-power terminal.
[0135] In the embodiments of the present disclosure, the zero-power terminal can determine the current data transmission status (including failure, transmission completion, insufficient power, etc.), and determine the current target data to be transmitted from the data to be transmitted based on the current data transmission status, and carry the data transmission status of the zero-power terminal in the target data. After obtaining the terminal data, the terminal data is sent to the card reader device, so that after the card reader device receives the terminal data, it can obtain the data transmission status of the zero-power terminal from the terminal data, and then adopt the corresponding data processing strategy to process the data. The specific process can refer to the relevant description of the aforementioned embodiment, and the embodiments of the present disclosure will not be repeated here.
[0136] The data processing method for a zero-power terminal provided by the embodiment of the present disclosure is that the zero-power terminal can determine its own data transmission status, and after determining the current target data to be transmitted from the data to be transmitted, send terminal data to the card reader device according to the data transmission status of the zero-power terminal and the target data, so that the card reader device can determine the data transmission status of the zero-power terminal according to the terminal data sent by the zero-power terminal, and determine the data processing strategy for the zero-power terminal according to the data transmission status, and execute the data processing strategy. Since the card reader device can adopt the corresponding data processing strategy based on the data transmission status of the zero-power terminal during the data transmission process, the situation where the power has been exhausted but the data has not been transmitted during the data transmission process can be alleviated, so as to improve the stability of data transmission.
[0137] In an exemplary embodiment, in step 402, determining the data transmission state of the zero-power consumption terminal includes:
[0138] The data transmission state of the zero-power consumption terminal is determined according to the current power of the zero-power consumption terminal and the data to be transmitted.
[0139] In the disclosed embodiment, when the current power of the zero-power terminal is sufficient to transmit the data to be transmitted by the zero-power terminal, the data transmission state of the zero-power terminal can be determined to be transmission completed, and all the data to be transmitted can be determined to be target data. Alternatively, when the current power of the zero-power terminal is insufficient to transmit the data to be transmitted by the zero-power terminal, the data transmission state of the zero-power terminal can be determined to be insufficient power, and the data portion that is sufficient to be transmitted by the current power can be used as the target data.
[0140] In an exemplary embodiment, determining the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted includes:
[0141] Determine the amount of data that can be transmitted based on the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal;
[0142] When the amount of data supported for transmission by the current power consumption is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
[0143] In the disclosed embodiment, a transmission loss mapping table may be stored locally in the zero-power terminal, and the transmission loss mapping table is used to store a mapping relationship between power level and the amount of data supported for transmission by the power level. The amount of data supported for transmission can then be obtained from the mapping table based on the current power level of the zero-power terminal, and the relationship between the amount of data to be transmitted by the zero-power terminal and the amount of data supported for transmission by the current power level can be determined. When the amount of data supported for transmission by the current power level of the zero-power terminal is greater than or equal to the amount of data to be transmitted, the data transmission status of the zero-power terminal can be determined as transmission completed.
[0144] In an exemplary embodiment, determining the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted also includes:
[0145] When the amount of data supported for transmission by the current power supply is less than the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is insufficient power.
[0146] In the embodiment of the present disclosure, when the amount of data supported by the current power of the zero-power terminal for transmission is less than the amount of data to be transmitted, it can be determined that the data transmission state of the zero-power terminal is insufficient power. When the data transmission state of the zero-power terminal is insufficient power, the card reading device can transmit a higher energy wake-up signal to the zero-power terminal to power the zero-power terminal so that the zero-power terminal transmits the remaining data to be transmitted.
[0147] In an exemplary embodiment, determining a data transmission state of a zero-power consumption terminal includes:
[0148] Detect the current transmission between various functional modules in the zero-power terminal;
[0149] When it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
[0150] In the disclosed embodiment, the zero-power terminal can monitor or detect the current transmission between local functional modules. When the current transmission between any two functional modules is abnormal, it can be determined that the zero-power terminal is faulty, and the data transmission state of the zero-power terminal can be determined to be faulty. When the data transmission state of the zero-power terminal is faulty, the card reader can report prompt information of the zero-power terminal fault, so that the zero-power terminal can be repaired in time.
[0151] In the embodiment of the present disclosure, according to the data transmission state and target data of the zero-power consumption terminal, the terminal data is sent to the card reader device, including:
[0152] Add a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data;
[0153] Send terminal data to the card reader.
[0154] In the embodiment of the present disclosure, a data transmission status identifier corresponding to the data transmission status can be added at a preset position of the target data to obtain terminal data. Exemplarily, the preset position can be the tail of the target data, so the data transmission status identifier can be added at the tail of the target data to obtain the terminal data. This allows the card reader to obtain the data transmission status identifier of the zero-power terminal from the preset position of the terminal data, and then determine the data transmission status of the zero-power terminal based on the data transmission status identifier, and use the data transmission strategy corresponding to the data transmission status to perform corresponding data processing.
[0155] In order to enable those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below through specific examples.
[0156] For example, a judgement module can be introduced on the zero-power terminal to judge the data transmission state and convert the state into a corresponding data transmission state identifier and transmit it to the transmitting module, wherein the judgment basis includes a transmission loss mapping table of power and data volume, and each functional module (refer to Figure 5 As shown, the functional module may include a transmitting module, a judgement module, a storage module, a receiving module, a power module, etc.) and the current transmission status, etc. Among them, the data transmission status identifier includes: a first status identifier representing the completion of data transmission, a third status identifier representing insufficient power, and a second status identifier representing a fault. The transmission rule of the transmitting module of the zero-power terminal is: according to the data transmission status, the data transmission status identifier is transmitted at the end of the data transmission.
[0157] The card reader parses the data uploaded by the zero-power terminal, obtains the data transmission status of the zero-power terminal, and uses the data processing strategy corresponding to the data transmission status for corresponding processing. Including: if the data transmission is interrupted, save the received data and upload it, and then wake up the zero-power terminal again; if it is still a data interruption, report the data interruption. If the power of the zero-power terminal is insufficient, save the received data transmission and use more energy to wake up the zero-power terminal. If it is analyzed as a fault, report the terminal fault and release the zero-power terminal.
[0158] In this example, refer to Figure 6As shown, the zero-power terminal is awakened / actively awakened and is ready for data transmission. The judge module predicts whether the existing power meets the transmission according to the power status of the zero-power terminal and the transmission loss mapping table of power and data volume, and checks the current transmission status between each functional module. The judge module determines the current data transmission status based on the judgment result, and sends the data transmission status identifier corresponding to the data transmission status to the transmitting module. The card reader receives and parses the data uploaded by the zero-power terminal, and performs corresponding operations: if the data transmission is interrupted, the received data is saved and uploaded, and then the zero-power terminal is awakened again; if the data is still interrupted, the data interruption is reported; if the energy of the zero-power terminal is insufficient, the received data transmission is saved and a larger energy is used to wake up the zero-power terminal. If it is analyzed as a fault, the terminal fault is reported.
[0159] In one example, it is assumed that the card reading device is a relay terminal and the zero-power consumption terminal 1 is a passive zero-power consumption terminal.
[0160] Step 1: The zero-power terminal 1 is awakened and ready for data transmission, with a data cache of 20M;
[0161] Step 2: The judgement module predicts that the current power only supports 10M transmission according to the power 2mA received by the zero-power terminal 1 and the power and transmission loss mapping table, and checks that the current transmission between the functional modules is normal;
[0162] Step 3: The judgment module determines that the current data transmission state is insufficient power according to the judgment result, and sends the data transmission state identifier (insufficient power identifier) corresponding to the insufficient power to the transmitting module;
[0163] Step 4: The transmitting module places the low power indicator at the end of the data transmission according to the transmission rules;
[0164] Step 5: The card reader parses the data uploaded by the zero-power terminal. If the data is not fully transmitted because the zero-power terminal has insufficient energy, the received data is saved and a larger amount of energy is transmitted to wake up the zero-power terminal.
[0165] Step 6: The zero-power terminal 1 is awakened again and is ready for data transmission, with a data cache of 10M;
[0166] Step 7: The judgement module predicts that the current power supports 20M transmission according to the power 4mA received by the zero-power terminal 1 and the power and transmission loss mapping table, and checks that the current transmission between the functional modules is normal;
[0167] Step 8: The judgement module determines that the current data transmission state is transmission completion according to the judgment result, and sends a data transmission state identifier (transmission completion identifier) corresponding to the transmission completion to the transmission module;
[0168] Step 9: The transmitting module places the transmission completion mark at the end of the data transmission according to the transmission rule;
[0169] Step 10: The card reader has completed parsing the data uploaded by the zero-power terminal, saving the received data and uploading it.
[0170] In an example, it is assumed that the card reading device is a base station, the zero-power consumption terminal 1 is an active zero-power consumption terminal, and the zero-power consumption terminal 2 is an active zero-power consumption terminal.
[0171] Step 1: Zero-power terminal 1 is ready to transmit data, with a data buffer of 20M. Zero-power terminal 2 receives data reporting information sent by the base station;
[0172] Step 2: The judgement module of the zero-power terminal 1 predicts based on the terminal 1 power and transmission loss mapping table, determines that the existing power supports 20M transmission, and checks that the current transmission between the functional modules is normal; the judgement module of the zero-power terminal 2 checks and finds that the current transmission between the functional modules is abnormal;
[0173] Step 3: The judgement module of the zero-power terminal 1 determines that the current data transmission state is transmission completion according to the judgment result, and sends the data transmission state identifier (transmission completion identifier) corresponding to the transmission completion to the transmission module of the terminal 1; the judgment module of the zero-power terminal 2 determines that the current data transmission state is a fault according to the inspection result, and sends the data transmission state identifier (fault identifier) corresponding to the fault to the transmission module of the zero-power terminal 2;
[0174] Step 4: The transmitting module of the zero-power terminal 1 places the transmission completion mark at the end of the data transmission according to the transmission rule; the transmitting module of the zero-power terminal 2 places the transmission failure mark at the end of the data transmission according to the transmission rule;
[0175] Step 5: The base station has completed parsing the data uploaded by zero-power terminal 1 and saved the received data; parsing the data uploaded by zero-power terminal 2 shows that zero-power terminal 2 is faulty, marking the result and releasing the connection of zero-power terminal 2.
[0176] The data processing method of the zero-power terminal provided in the embodiment of the present disclosure defines a method for adding a data transmission status identifier to the zero-power terminal data report. By simply adding the identifier of different data transmissions at the end of the data report, the card reader device can obtain the status of the zero-power terminal data upload and provide quick feedback. The data transmission status identifier defined in the embodiment of the present disclosure can distinguish abnormal situations of terminal data transmission, especially long periods of no feedback due to damage, so as to facilitate the card reader device to identify abnormalities and perform corresponding operations. It is only necessary to divide the judgement module in the module of the zero-power terminal to identify the status of the terminal, and the operation is simple.
[0177] It should be understood that although Figure 1-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-6 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0178] In one embodiment, Figure 7 As shown, a data processing device for a zero-power consumption terminal is provided, including: a first determination module 702 and a second determination module 704, wherein:
[0179] A first determining module 702, configured to determine a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal;
[0180] The second determination module 704 is used to determine a data processing strategy for the zero-power consumption terminal according to the data transmission status, and execute the data processing strategy.
[0181] In the above-mentioned data processing device for zero-power terminals, the card reader device can determine the data transmission status of the zero-power terminal according to the terminal data sent by the zero-power terminal, and determine the data processing strategy for the zero-power terminal according to the data transmission status, and execute the data processing strategy. Since the card reader device can adopt the corresponding data processing strategy based on the data transmission status of the zero-power terminal during the data transmission process, the situation where the power is exhausted but the data is not fully transmitted during the data transmission process can be alleviated, so as to improve the stability of data transmission.
[0182] In one embodiment, the data transmission status includes transmission completion, failure, low battery, and data transmission interruption.
[0183] In one embodiment, the first determining module 702 is further configured to:
[0184] Parsing a data transmission status identifier of the zero-power consumption terminal from a preset position of the terminal data sent by the zero-power consumption terminal;
[0185] If the data transmission status identifier of the zero-power consumption terminal is obtained by parsing, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier,
[0186] The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
[0187] In one embodiment, the first determining module 702 is further configured to:
[0188] If the data transmission status identifier of the zero-power consumption terminal is not obtained through analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
[0189] In one embodiment, when the data transmission state is insufficient power, the data processing strategy for the zero-power consumption terminal is a first data processing strategy, and the second determination module 704 is further configured to:
[0190] The terminal data is saved, and a wake-up signal is sent to the zero-power consumption terminal, wherein the energy of the wake-up signal is higher than the energy of a historical wake-up signal, and the historical wake-up signal is a wake-up signal used to wake up the zero-power consumption terminal to feed back the terminal data.
[0191] In one embodiment, when the data transmission state is the data transmission interruption, the data processing strategy for the zero-power consumption terminal is the second data processing strategy, and the second determination module 704 is further used to:
[0192] Saving the terminal data and sending a wake-up signal to the zero-power consumption terminal;
[0193] When the terminal data fed back by the wake-up signal at the zero-power consumption terminal indicates that the data transmission status of the zero-power consumption terminal is still the data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
[0194] In one embodiment, when the data transmission state is the fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and the second determination module 704 is further configured to:
[0195] Saving the terminal data and releasing the zero-power consumption terminal;
[0196] Report fault prompt information for the zero-power consumption terminal.
[0197] In one of the embodiments, when the data transmission state is transmission completion, the data processing strategy for the zero-power consumption terminal includes: saving the terminal data.
[0198] In one embodiment, Figure 8As shown, a data processing device for a zero-power consumption terminal is provided, including: a first determination module 802, a second determination module 804 and a sending module 806, wherein:
[0199] A first determining module 802 is used to determine the data transmission state of the zero-power consumption terminal;
[0200] A second determining module 804 is used to determine the target data to be transmitted from the data to be transmitted;
[0201] The sending module 806 is used to send terminal data to the card reading device according to the data transmission state of the zero-power consumption terminal and the target data.
[0202] The data processing device for zero-power terminals provided by the embodiments of the present disclosure can determine its own data transmission status, and after determining the current target data to be transmitted from the data to be transmitted, send terminal data to the card reader device according to the data transmission status of the zero-power terminal and the target data, so that the card reader device can determine the data transmission status of the zero-power terminal according to the terminal data sent by the zero-power terminal, and determine the data processing strategy for the zero-power terminal according to the data transmission status, and execute the data processing strategy. Since the card reader device can adopt the corresponding data processing strategy based on the data transmission status of the zero-power terminal during the data transmission process, the situation where the power has been exhausted but the data has not been transmitted during the data transmission process can be alleviated, so as to improve the stability of data transmission.
[0203] In one embodiment, the first determining module 802 is further configured to:
[0204] The data transmission state of the zero-power consumption terminal is determined according to the current power of the zero-power consumption terminal and the data to be transmitted.
[0205] In one embodiment, the first determining module 802 is further configured to:
[0206] Determine the amount of data that can be transmitted based on the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal;
[0207] When the amount of data supported for transmission by the current power supply is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
[0208] In one embodiment, the first determining module 802 is further configured to:
[0209] When the amount of data supported for transmission by the current power supply is less than the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is insufficient power.
[0210] In one embodiment, the first determining module 802 is further configured to:
[0211] Detect the current transmission between various functional modules in the zero-power terminal;
[0212] When it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
[0213] In one embodiment, the sending module 806 is further configured to:
[0214] Adding a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data;
[0215] The terminal data is sent to a card reader.
[0216] For the specific definition of the data processing device for zero-power terminals, please refer to the definition of the data processing method for zero-power terminals above, which will not be repeated here. Each module in the above-mentioned data processing device for zero-power terminals can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0217] In one embodiment, a card reading device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0218] Determining a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal;
[0219] According to the data transmission status, a data processing strategy for the zero-power consumption terminal is determined, and the data processing strategy is executed.
[0220] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0221] Parsing a data transmission status identifier of the zero-power consumption terminal from a preset position of the terminal data sent by the zero-power consumption terminal;
[0222] If the data transmission status identifier of the zero-power consumption terminal is obtained by parsing, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier,
[0223] The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
[0224] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0225] If the data transmission status identifier of the zero-power consumption terminal is not obtained through analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
[0226] In one embodiment, when the data transmission state is insufficient power, the data processing strategy for the zero-power consumption terminal is a first data processing strategy, and the processor further implements the following steps when executing the computer program:
[0227] The terminal data is saved, and a wake-up signal is sent to the zero-power consumption terminal, wherein the energy of the wake-up signal is higher than the energy of a historical wake-up signal, and the historical wake-up signal is a wake-up signal used to wake up the zero-power consumption terminal to feed back the terminal data.
[0228] In one embodiment, when the data transmission state is the data transmission interruption, the data processing strategy for the zero-power consumption terminal is the second data processing strategy, and the processor further implements the following steps when executing the computer program:
[0229] Saving the terminal data and sending a wake-up signal to the zero-power consumption terminal;
[0230] When the terminal data fed back by the wake-up signal at the zero-power consumption terminal indicates that the data transmission status of the zero-power consumption terminal is still the data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
[0231] In one embodiment, when the data transmission state is the fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and the processor further implements the following steps when executing the computer program:
[0232] Saving the terminal data and releasing the zero-power consumption terminal;
[0233] Report fault prompt information for the zero-power consumption terminal.
[0234] In one embodiment, a zero-power consumption terminal is provided. Fig. 9 . Fig. 9 It is a schematic diagram of the structure of a terminal device provided in an embodiment of the present disclosure. Fig. 9The terminal device 900 shown includes: at least one processor 901, a memory 902, at least one network interface 904 and a user interface 903. The various components in the terminal device 900 are coupled together via a bus system 905. It can be understood that the bus system 905 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 905 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 905 is not shown in FIG. Fig. 9 Various buses are labeled as bus system 905. In addition, the embodiment of the present invention also includes a transceiver 906, which can be multiple components, that is, including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium.
[0235] The user interface 903 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0236] It can be understood that the memory 902 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 of the system and method described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0237] In some embodiments, the memory 902 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 9021 and an application program 9022 .
[0238] The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 9022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 9022.
[0239] In an embodiment of the present invention, by calling the program or instructions stored in the memory 902, specifically, the program or instructions stored in the application 9022, the processor is used to determine the data transmission status of the zero-power terminal; determine the current target data to be transmitted from the data to be transmitted; the transmitter is used to send terminal data to the card reader device according to the data transmission status of the zero-power terminal and the target data.
[0240] Part or all of the methods disclosed in the above embodiments of the present invention may also be applied to the processor 901, or implemented by the processor 901, or implemented by the processor 901 in cooperation with other components (such as a transceiver). The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 901 or by instructions in the form of software. The above processor 901 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902 and completes the steps of the above method in combination with its hardware.
[0241] It is to be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0242] For software implementation, the technology described in the embodiments of the present invention can be implemented by a module (such as a process, function, etc.) that performs the functions described in the embodiments of the present disclosure. The software code can be stored in a memory and executed by the processor 901. The memory can be implemented in the processor 901 or outside the processor 901.
[0243] In one embodiment, the processor 901 is specifically configured to determine the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted.
[0244] In one embodiment, the processor 901 is specifically configured to determine the amount of data supported for transmission by the current power according to the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal;
[0245] When the amount of data supported for transmission by the current power supply is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
[0246] In one embodiment, the processor 901 is specifically configured to determine that the data transmission state of the zero-power consumption terminal is insufficient power when the amount of data supported for transmission by the current power is less than the amount of data to be transmitted.
[0247] In one embodiment, the processor 901 is specifically used to detect the current transmission status between the functional modules in the zero-power consumption terminal; when it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
[0248] In one embodiment, the transmitter is specifically configured to add a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data; and send the terminal data to a card reader.
[0249] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are further implemented:
[0250] Determining a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal;
[0251] According to the data transmission status, a data processing strategy for the zero-power consumption terminal is determined, and the data processing strategy is executed.
[0252] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0253] Parsing a data transmission status identifier of the zero-power consumption terminal from a preset position of the terminal data sent by the zero-power consumption terminal;
[0254] If the data transmission status identifier of the zero-power consumption terminal is obtained by parsing, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier,
[0255] The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
[0256] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0257] If the data transmission status identifier of the zero-power consumption terminal is not obtained through analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
[0258] In one embodiment, when the data transmission state is the low power state, the data processing strategy for the zero-power consumption terminal is the first data processing strategy, and the computer program further implements the following steps when executed by the processor:
[0259] The terminal data is saved, and a wake-up signal is sent to the zero-power consumption terminal, wherein the energy of the wake-up signal is higher than the energy of a historical wake-up signal, and the historical wake-up signal is a wake-up signal used to wake up the zero-power consumption terminal to feed back the terminal data.
[0260] In one embodiment, when the data transmission state is the data transmission interruption, the data processing strategy for the zero-power consumption terminal is the second data processing strategy, and the computer program further implements the following steps when executed by the processor:
[0261] Saving the terminal data and sending a wake-up signal to the zero-power consumption terminal;
[0262] When the terminal data fed back by the wake-up signal at the zero-power consumption terminal indicates that the data transmission status of the zero-power consumption terminal is still the data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
[0263] In one embodiment, when the data transmission state is the fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and the computer program further implements the following steps when executed by the processor:
[0264] Saving the terminal data and releasing the zero-power consumption terminal;
[0265] Report fault prompt information for the zero-power consumption terminal.
[0266] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are further implemented:
[0267] Determining a data transmission status of the zero-power consumption terminal;
[0268] Determining target data currently to be transmitted from the data to be transmitted;
[0269] According to the data transmission state of the zero-power consumption terminal and the target data, terminal data is sent to the card reading device.
[0270] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0271] The data transmission state of the zero-power consumption terminal is determined according to the current power of the zero-power consumption terminal and the data to be transmitted.
[0272] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0273] Determine the amount of data that can be transmitted based on the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal;
[0274] When the amount of data supported for transmission by the current power supply is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
[0275] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0276] When the amount of data supported for transmission by the current power supply is less than the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is insufficient power.
[0277] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0278] Detect the current transmission between various functional modules in the zero-power terminal;
[0279] When it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
[0280] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0281] Adding a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data;
[0282] The terminal data is sent to a card reader.
[0283] The present application also provides a computer program product including instructions, which, when executed on a computer, causes the computer to perform the following steps:
[0284] Determining a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal;
[0285] According to the data transmission status, a data processing strategy for the zero-power consumption terminal is determined, and the data processing strategy is executed.
[0286] The present application also provides a computer program product including instructions, which, when executed on a computer, causes the computer to perform the following steps:
[0287] Determining a data transmission status of the zero-power consumption terminal;
[0288] Determining target data currently to be transmitted from the data to be transmitted;
[0289] According to the data transmission state of the zero-power consumption terminal and the target data, terminal data is sent to the card reading device.
[0290] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0291] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0292] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A data processing method for a zero-power consumption terminal, characterized in that: Applied to a card reader, the method comprises: Determining a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal; According to the data transmission status, a data processing strategy for the zero-power consumption terminal is determined, and the data processing strategy is executed.
2. The method according to claim 1, characterized in that: The data transmission status includes transmission completion, failure, insufficient power, and data transmission interruption.
3. The method according to claim 1 or 2, characterized in that: The determining, according to the terminal data sent by the zero-power consumption terminal, the data transmission state of the zero-power consumption terminal includes: Parsing a data transmission status identifier of the zero-power consumption terminal from a preset position of the terminal data sent by the zero-power consumption terminal; If the data transmission status identifier of the zero-power consumption terminal is obtained by parsing, the data transmission status of the zero-power consumption terminal is determined according to the data transmission status identifier, The data transmission status identifier includes a first status identifier for indicating that the transmission is complete, a second status identifier for indicating a fault, and a third status identifier for indicating that the power is insufficient.
4. The method according to claim 3, characterized in that The determining, according to the terminal data sent by the zero-power consumption terminal, the data transmission state of the zero-power consumption terminal further includes: If the data transmission status identifier of the zero-power consumption terminal is not obtained through analysis, it is determined that the data transmission status of the zero-power consumption terminal is data transmission interruption.
5. The method according to claim 2, characterized in that: When the data transmission state is insufficient power, the data processing strategy for the zero-power consumption terminal is a first data processing strategy, and executing the data processing strategy includes: The terminal data is saved, and a wake-up signal is sent to the zero-power consumption terminal, wherein the energy of the wake-up signal is higher than the energy of a historical wake-up signal, and the historical wake-up signal is a wake-up signal used to wake up the zero-power consumption terminal to feed back the terminal data.
6. The method according to claim 4, characterized in that When the data transmission state is the data transmission interruption, the data processing strategy for the zero-power consumption terminal is a second data processing strategy, and the executing the data processing strategy includes: Saving the terminal data and sending a wake-up signal to the zero-power consumption terminal; When the terminal data fed back by the wake-up signal at the zero-power consumption terminal indicates that the data transmission status of the zero-power consumption terminal is still the data transmission interruption, the wake-up signal is repeatedly sent to the zero-power consumption terminal until the number of times the wake-up signal is sent reaches a preset number, and data interruption prompt information is reported to the zero-power consumption terminal.
7. The method according to claim 2, characterized in that: When the data transmission state is the fault, the data processing strategy for the zero-power consumption terminal is a third data processing strategy, and executing the data processing strategy includes: Saving the terminal data and releasing the zero-power consumption terminal; Report fault prompt information for the zero-power consumption terminal.
8. The method according to claim 2, characterized in that: When the data transmission state is transmission completion, the data processing strategy for the zero-power consumption terminal includes: The terminal data is saved.
9. A data processing method for a zero-power consumption terminal, characterized in that: Applied to a zero-power consumption terminal, the method comprises: Determining a data transmission status of the zero-power consumption terminal; Determining target data currently to be transmitted from the data to be transmitted; According to the data transmission state of the zero-power consumption terminal and the target data, terminal data is sent to the card reading device.
10. The method according to claim 9, characterized in that The determining the data transmission state of the zero-power consumption terminal includes: The data transmission state of the zero-power consumption terminal is determined according to the current power of the zero-power consumption terminal and the data to be transmitted.
11. The method according to claim 10, characterized in that The determining the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted includes: Determine the amount of data that can be transmitted based on the current power of the zero-power terminal and the transmission loss mapping table of the zero-power terminal; When the amount of data supported for transmission by the current power supply is greater than or equal to the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is transmission completed.
12. The method according to claim 11, characterized in that The step of determining the data transmission state of the zero-power consumption terminal according to the current power of the zero-power consumption terminal and the data to be transmitted further includes: When the amount of data supported for transmission by the current power supply is less than the amount of data to be transmitted, it is determined that the data transmission state of the zero-power consumption terminal is insufficient power.
13. The method according to claim 9, characterized in that The determining the data transmission state of the zero-power consumption terminal includes: Detect the current transmission between various functional modules in the zero-power terminal; When it is detected that the current transmission status between the functional modules in the zero-power consumption terminal is abnormal, it is determined that the data transmission status of the zero-power consumption terminal is a fault.
14. The method according to claim 9, characterized in that The sending of terminal data to a card reader device according to the data transmission state of the zero-power consumption terminal and the target data includes: Adding a data transmission status identifier corresponding to the data transmission status at a preset position of the target data to obtain terminal data; The terminal data is sent to a card reader.
15. A data processing device for a zero-power consumption terminal, characterized in that: Applied to a card reading device, the device comprises: A first determination module, configured to determine a data transmission state of the zero-power consumption terminal according to terminal data sent by the zero-power consumption terminal; The second determination module is used to determine a data processing strategy for the zero-power consumption terminal according to the data transmission state, and execute the data processing strategy.
16. A data processing device for a zero-power consumption terminal, characterized in that: Applied to a zero-power consumption terminal, the device comprises: A first determining module, used to determine the data transmission status of the zero-power consumption terminal; A second determining module, used to determine the target data to be transmitted currently from the data to be transmitted; The sending module is used to send terminal data to the card reading device according to the data transmission state of the zero-power consumption terminal and the target data.
17. A card reading device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program.
18. A zero-power consumption terminal, characterized in that: including a processor and a transmitter; The processor is used to determine the data transmission status of the zero-power consumption terminal; The processor is further configured to determine target data currently to be transmitted from the data to be transmitted; The transmitter is used to send terminal data to the card reading device according to the data transmission state of the zero-power consumption terminal and the target data.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 or 9 to 14 are implemented.
20. A chip, characterized in that: The chip comprises a programmable logic circuit and / or program instructions, and the steps of the method according to any one of claims 1 to 8 or 9 to 14 are implemented when the chip is run.
21. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 or 9 to 14 are implemented.