Business data recovery transmission method, device, system and storage medium
By skipping inapplicable steps and blocking abnormal cells in the network recovery mechanism of the smart POS terminal, the problem of excessively long recovery time when the LTE network is abnormal is solved, and faster business data recovery is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN XINGUODU TECH
- Filing Date
- 2022-12-28
- Publication Date
- 2026-06-16
Smart Images

Figure CN115967970B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, device, system and storage medium for recovering and transmitting business data. Background Technology
[0002] In related technologies, with the popularization of mobile payment, payment devices are increasingly needed in various scenarios. Smart point-of-sale (POS) terminals, as multi-functional payment devices, are widely used in scenarios such as public transportation, sightseeing vehicles, canteens, scenic spots, and self-service payment machines. Their multiple payment functions (such as Alipay, WeChat Pay, UnionPay QuickPass, and UnionPay QR code) diversify payment methods. To achieve payment functionality, smart POS terminals need to connect to a corresponding network for data interaction. When a smart POS terminal interacts with data via a network, for example, an LTE network, and the smart POS terminal can only send data but cannot receive the corresponding data, then the LTE network is abnormal and data recovery is required. Current business data recovery methods rely on data recovery mechanisms with multiple recovery steps. Each time a network anomaly occurs, these steps are executed, without determining which steps are unsuitable for the LTE network anomaly scenario. If all steps need to be executed, it will take more time to restore the LTE network, thus increasing the business data recovery time. Therefore, how to reduce the recovery time of business data has become an urgent technical problem to be solved. Summary of the Invention
[0003] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a service data recovery transmission method, device, system, and storage medium, which can jump between steps in the network recovery mechanism during network recovery, saving network recovery time and thus reducing service data recovery time.
[0004] The service data recovery transmission method according to a first aspect of this application, applied to a terminal, includes:
[0005] When an abnormality in the transmission of service data is detected, a network connection is requested to be restored from the cell in the serving network through a preset network recovery mechanism. The network recovery mechanism includes multiple recovery steps, including target steps that can be skipped.
[0006] If, during the process of restoring network connectivity according to the recovery steps, the network type of the service network is determined to be the target network type, then the target step is skipped.
[0007] According to some embodiments of this application, after the step of skipping the target step if the network type of the service network is determined to be the target network type, the method further includes:
[0008] If it is determined that restoring the network connection fails, the abnormal cells in the service network will be blocked according to the preset blocking rules.
[0009] The service network that has completed the blocking operation requests the restoration of network connectivity in order to resume the transmission of the service data.
[0010] According to some embodiments of this application, if it is determined that restoring the network connection fails, then blocking abnormal cells in the serving network according to preset blocking rules includes:
[0011] If it is determined that restoring the network connection fails, then it is determined that the serviced network has the aforementioned abnormal cell;
[0012] Abnormal cells in the service network are blocked according to preset blocking rules.
[0013] According to some embodiments of this application, the step of blocking abnormal cells in the serving network according to preset blocking rules includes:
[0014] Obtain the pre-stored network information of the abnormal cell;
[0015] The abnormal cell is blocked based on the network information.
[0016] According to some embodiments of this application, the step of shielding the abnormal cell based on the network information includes:
[0017] The network interface of the modem in the terminal is invoked to identify the network information of the abnormal cell, and an identifier for the abnormal cell is obtained and stored. The network information includes frequency point information and ID information, and the identifier corresponds to the frequency point information and the ID information.
[0018] Based on the identifier, network access restrictions are set for the abnormal cell.
[0019] According to some embodiments of this application, the plurality of recovery steps respectively include the following steps:
[0020] Step S300: Obtain the data call list. If the data call corresponding to the service network is not listed in the data call list, initiate a data call request to the service network again.
[0021] Step S310: Clear the connection between the data call and the service network, and initiate a data call request to the service network again;
[0022] Step S320: Re-initiate a registration request to the service network to connect to the service network;
[0023] Step S330: Restart the wireless communication device connected to the service network, and reconnect to the service network through the restarted wireless communication device.
[0024] According to some embodiments of this application, the step of skipping the target step if the network type of the service network is determined to be the target network type includes:
[0025] If the network type of the service network is determined to be the target network type, then it is determined whether the service network corresponding to the data call is disconnected from the modem in the terminal when the connection with the service network corresponding to the data call is cleared.
[0026] If the service network is not disconnected from the modem, then step S310 is determined to be an invalid step;
[0027] Proceed from step S300 to step S320.
[0028] The service data recovery transmission apparatus according to a second aspect embodiment of this application is characterized in that it includes:
[0029] The network recovery module is used to request the restoration of network connection from the cell in the serving network through a preset network recovery mechanism when an abnormal transmission of service data is detected. The network recovery mechanism includes multiple recovery steps, including a target step that can be skipped.
[0030] The step jump module is used to skip the target step if the network type of the service network is determined to be the target network type during the process of restoring network connectivity according to the recovery steps.
[0031] A service data recovery transmission system according to a third aspect embodiment of this application includes:
[0032] At least one memory;
[0033] At least one processor;
[0034] At least one program;
[0035] The program is stored in the memory, and the processor executes at least one of the programs to implement the method as described in the first aspect embodiment.
[0036] A computer-readable storage medium according to a fourth aspect of this application stores computer-executable instructions for causing a computer to perform the method described in the first aspect.
[0037] The service data recovery transmission method according to the embodiments of this application has the following beneficial effects: First, when a service data transmission anomaly is detected, a network connection is requested to be restored from a cell in the serving network through a preset network recovery mechanism. The network recovery mechanism includes multiple recovery steps, including a skippable target step. Then, during the process of restoring the network connection according to the recovery steps, if the network type of the serving network is determined to be the target network type, the target step is skipped. In the service data recovery transmission method of this application, when a network anomaly occurs in the serving network and network recovery is performed through the preset network recovery mechanism, if the serving network experiencing the network anomaly meets the jump rule, some steps executed in the network recovery mechanism will be jumped, thereby saving network recovery time and thus reducing the service data recovery transmission time. Therefore, the service data recovery transmission method of this application can jump the steps in the network recovery mechanism during network recovery, saving network recovery time and thus reducing the service data recovery time.
[0038] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0039] The present application will be further described below with reference to the accompanying drawings and embodiments, wherein:
[0040] Figure 1 A flowchart illustrating a service data recovery transmission method provided in one embodiment of this application;
[0041] Figure 2 This is a schematic diagram illustrating the data service step jump provided in one embodiment of this application;
[0042] Figure 3 A schematic diagram of the structure of a service data recovery transmission device provided in another embodiment of this application;
[0043] Figure 4 This is a schematic diagram of the structure of a service data recovery transmission system provided in one embodiment of this application.
[0044] Figure label:
[0045] Network recovery module 100, step jump module 110, memory 200, processor 300. Detailed Implementation
[0046] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0047] It should be noted that although functional modules are divided in the system diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terminology in the specification, claims, and the foregoing figures is used to distinguish similar objects and is not necessarily used to describe a specific order or sequence.
[0048] In the description of this application, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0049] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0050] In the description of this application, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0051] The following are explanations of some of the terms:
[0052] Point of Sale (POS) terminal is a multi-functional terminal that is installed in credit card merchants and acceptance outlets and connected to a computer network to enable automatic electronic fund transfers. It supports functions such as consumption, pre-authorization, balance inquiry and transfer, and is safe, fast and reliable to use.
[0053] LTE network: LTE (Long Term Evolution) is a wireless data communication technology standard. An LTE network can be understood as a network constructed using this wireless data communication technology standard.
[0054] LTE Cell: In mobile communications, the area covered by wireless signals is called a cell, generally referring to the range that a single base station's signal can cover. Therefore, an LTE cell can be understood as a cell covered by the LTE network.
[0055] In related technologies, POS terminals and transaction systems interact with each other for data services. In cases of data service anomalies—for example, the POS terminal sends data to the transaction system via a wireless network, but the transaction system does not respond or reply—if the sent data packet exceeds 10 bytes (BYTES) within one minute and no data is received back from the transaction system via the wireless network, the wireless network is considered abnormal and requires recovery through a network recovery mechanism. However, for LTE networks within 4G networks, some steps in the network recovery mechanism are ineffective. Since each step requires processing time, insisting on executing these ineffective steps significantly prolongs network recovery time, making it difficult to achieve rapid restoration of data services.
[0056] Based on this, the embodiments of this application provide a method, device, system and storage medium for business data recovery transmission, which can jump to the steps in the network recovery mechanism when performing network recovery, save network recovery time, and thus achieve the purpose of reducing business data recovery transmission time.
[0057] The following reference Figure 1 This application describes a method for restoring and transmitting business data according to an embodiment.
[0058] Understandably, referring to Figure 1 A method for restoring business data transmission is provided, applied to a terminal. The method includes:
[0059] Step S100: When an abnormality in the transmission of service data is detected, a network connection is requested to be restored from the cell in the serving network through a preset network recovery mechanism. The network recovery mechanism includes multiple recovery steps, including a target step that can be skipped.
[0060] Step S110: During the process of restoring network connectivity according to the recovery steps, if it is determined that the network type of the service network is the target network type, then skip the target step.
[0061] Understandably, based on the rules for judging network anomalies, it is determined whether the currently connected service network has experienced a connection anomaly, including:
[0062] If the cumulative storage value of continuously sent data packets exceeds the preset storage value, and no response data is received within the preset time, then there is an anomaly in the service network.
[0063] Understandably, if the network type of the service network is determined to be the target network type, after skipping the target step, the method also includes:
[0064] If it is determined that restoring the network connection fails, the abnormal cells in the service network will be blocked according to the preset blocking rules.
[0065] Request the service network that has completed the shielding operation to restore network connectivity in order to resume the transmission of business data.
[0066] Understandably, if it is determined that restoring network connectivity fails, abnormal cells in the serving network will be blocked according to preset blocking rules, including:
[0067] If it is determined that restoring the network connection fails, then it is determined that there is an abnormal cell in the network being served;
[0068] Abnormal cells in the service network are blocked according to preset blocking rules.
[0069] Understandably, blocking abnormal cells in the service network according to preset blocking rules includes:
[0070] Retrieve pre-stored network information of abnormal cells;
[0071] Abnormal cells are blocked based on network information.
[0072] It is understandable that abnormal cells are blocked based on network information, including:
[0073] The network interface of the modem in the terminal is called to identify the network information of the abnormal cell, obtain the identifier of the abnormal cell and store the identifier. The network information includes frequency point information and ID information, and the identifier corresponds to the frequency point information and ID information.
[0074] Network access restrictions can be set for abnormal cells based on identifiers.
[0075] It is understandable that the multiple recovery steps include the following steps:
[0076] Step S300: Obtain the data call list. If the data call corresponding to the service network is not listed in the data call list, initiate a data call request to the service network again.
[0077] Step S310: Clear the connection between the data call and the service network, and re-initiate the data call request to the service network;
[0078] Step S320: Resend the registration request to the service network to connect to the service network;
[0079] Step S330: Restart the wireless communication device connected to the service network, and reconnect to the service network through the restarted wireless communication device.
[0080] According to some embodiments of this application, if the network type of the serving network is determined to be the target network type, the target step is skipped, including:
[0081] If the network type of the service network is determined to be the target network type, then determine whether the service network corresponding to the data call is disconnected from the modem in the terminal when clearing the connection with the service network corresponding to the data call.
[0082] If the service network is not disconnected from the modem, then step S310 is determined to be an invalid step;
[0083] Proceed from step S300 to step S320.
[0084] It should be noted that, as Figure 2 As shown, when the abnormal network is an LTE network, the process will jump to the next step.
[0085] It should be noted that the network recovery mechanism includes four steps:
[0086] Step 1: GET DATA CALL LIST (Query data connection status);
[0087] Step 2: Clean Up Connection (Disconnect and reactivate the current data connection);
[0088] Step 3: REREGISTER (reattach);
[0089] Step 4: RADIO RESTART (restart the protocol stack).
[0090] It should be noted that steps 1-4 above are progressive. If a step fails to restore data service, the process proceeds to the next step until it is restored. Specifically, if the POS terminal's app still cannot connect to the network, it means that data service has not been restored.
[0091] It should be noted that step S310 has a flaw for LTE networks. When CLEAN UPCONNECTION is triggered, the public data network (PDN) connection is not actually disconnected at the modem. For LTE networks, an always-on-line policy is implemented. Therefore, the PDN connection remains active, meaning that step S310 cannot achieve the effect of clearing the connection between the data call and the serving network. However, executing step S310 will delay the process by one minute, ultimately slowing down the time for the terminal's service data to resume transmission.
[0092] First, when an anomaly in the transmission of service data is detected, a network connection restoration request is made to the cells in the serving network through a preset network recovery mechanism. This network recovery mechanism includes multiple recovery steps, including a skippable target step. Then, during the network connection restoration process according to the recovery steps, if the network type of the serving network is determined to be the target network type, the target step is skipped. In this application's service data restoration transmission method, when a network anomaly occurs in the serving network and network restoration is performed through the preset network recovery mechanism, if the serving network experiencing the anomaly meets the jump rules, a jump will be made to some steps executed in the network recovery mechanism, thereby saving network restoration time and reducing the service data restoration transmission time. Therefore, this application's service data restoration transmission method can skip steps in the network recovery mechanism during network restoration, saving network restoration time and thus reducing the service data restoration time.
[0093] The following is based on Figure 3 This application describes a service data recovery transmission device according to an embodiment of the present application.
[0094] It is understood that a business data recovery transmission device is provided, including:
[0095] Network recovery module 100 is used to request network connection restoration from cells in the serving network through a preset network recovery mechanism when an abnormality in the transmission of service data is detected. The network recovery mechanism includes multiple recovery steps, including target steps that can be skipped.
[0096] The step jump module 110 is used to skip the target step if the network type of the service network is determined to be the target network type during the process of restoring network connectivity according to the recovery steps.
[0097] The following reference Figure 4 This application describes a service data recovery transmission system according to an embodiment of the present application.
[0098] It is understandable that, such as Figure 4 As shown, the business data recovery transmission system includes:
[0099] At least one memory 200;
[0100] At least one processor 300;
[0101] At least one program;
[0102] The program is stored in memory 200, and processor 300 executes at least one program to implement the above-described business data recovery transmission method. Figure 4 Take a processor 300 as an example.
[0103] The processor 300 and the memory 200 can be connected via a bus or other means. Figure 4 Take a bus connection as an example.
[0104] The memory 200, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and signals, such as the program instructions / signals corresponding to the business data recovery and transmission system in the embodiments of this application. The processor 300 executes various functional applications and data processing by running the non-transitory software programs, instructions, and signals stored in the memory 200, thereby implementing the business data recovery and transmission method of the above-described method embodiments.
[0105] The memory 200 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data related to the aforementioned business data recovery transmission method. Furthermore, the memory 200 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 200 may optionally include memory remotely located relative to the processor 300, and these remote memories can be connected to the business data recovery transmission system via a network. Examples of such networks include, but are not limited to, the Internet of Things (IoT), software-defined networks, sensor networks, the Internet, enterprise intranets, local area networks (LANs), mobile communication networks, and combinations thereof.
[0106] One or more signals are stored in memory 200. When executed by one or more processors 300, the service data recovery transmission method described in any of the above method embodiments is executed. For example, the above-described... Figure 1 The method in the middle.
[0107] The following reference Figure 4 This application describes a computer-readable storage medium according to embodiments thereof.
[0108] like Figure 4As shown, a computer-readable storage medium stores computer-executable instructions that are executed by one or more processors 300, for example, by... Figure 4 One or more processors 300 can execute the service data recovery transmission method described in the above method embodiments, causing the processors 300 to perform the method described above. For example, executing the method described above... Figure 1 The method in the middle.
[0109] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0110] Based on the above description of the embodiments, those skilled in the art will understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media and communication media. As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital multifunction disk or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable signals, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and can include any information delivery medium.
[0111] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application. Furthermore, unless otherwise specified, the embodiments and features described in the embodiments of this application can be combined with each other.
Claims
1. A method for restoring and transmitting business data, characterized in that, Applied to a terminal, the method includes: When an abnormality in the transmission of service data is detected, a network connection is requested to be restored from the cell in the serving network through a preset network recovery mechanism. The network recovery mechanism includes multiple recovery steps, including target steps that can be skipped. If, during the process of restoring network connectivity according to the recovery steps, the network type of the service network is determined to be the target network type, then the target step is skipped. The multiple recovery steps each include the following steps: Step S300: Obtain the data call list. If the data call corresponding to the service network is not listed in the data call list, initiate a data call request to the service network again. Step S310: Clear the connection between the data call and the service network, and initiate a data call request to the service network again; Step S320: Re-initiate a registration request to the service network to connect to the service network; Step S330: Restart the wireless communication device connected to the service network, and reconnect to the service network through the restarted wireless communication device; If the network type of the service network is determined to be the target network type, then skipping the target step includes: If the network type of the service network is determined to be the target network type, then it is determined whether the service network corresponding to the data call is disconnected from the modem in the terminal when the connection with the service network corresponding to the data call is cleared. If the service network is not disconnected from the modem, then step S310 is determined to be an invalid step; Proceed from step S300 to step S320.
2. The business data recovery transmission method according to claim 1, characterized in that, After determining that the network type of the service network is the target network type, and then skipping the target step, the method further includes: If it is determined that restoring the network connection fails, the abnormal cells in the service network will be blocked according to the preset blocking rules. The service network that has completed the blocking operation requests the restoration of network connectivity in order to resume the transmission of the service data.
3. The business data recovery transmission method according to claim 2, characterized in that, If it is determined that restoring the network connection fails, then the abnormal cells in the serving network are blocked according to preset blocking rules, including: If it is determined that restoring the network connection fails, then it is determined that the serviced network has the aforementioned abnormal cell; Abnormal cells in the service network are blocked according to preset blocking rules.
4. The business data recovery and transmission method according to claim 3, characterized in that, The step of blocking abnormal cells in the service network according to preset blocking rules includes: Obtain the pre-stored network information of the abnormal cell; The abnormal cell is blocked based on the network information.
5. The business data recovery transmission method according to claim 4, characterized in that, The step of blocking the abnormal cell based on the network information includes: The network interface of the modem in the terminal is invoked to identify the network information of the abnormal cell, and an identifier for the abnormal cell is obtained and stored. The network information includes frequency point information and ID information, and the identifier corresponds to the frequency point information and the ID information. Based on the identifier, network access restrictions are set for the abnormal cell.
6. A business data recovery and transmission device, characterized in that, include: The network recovery module is used to request the restoration of network connection from the cell in the serving network through a preset network recovery mechanism when an abnormal transmission of service data is detected. The network recovery mechanism includes multiple recovery steps, including a target step that can be skipped. The step jump module is used to skip the target step if the network type of the service network is determined to be the target network type during the process of restoring the network connection according to the recovery steps. The multiple recovery steps each include the following steps: Step S300: Obtain the data call list. If the data call corresponding to the service network is not listed in the data call list, initiate a data call request to the service network again. Step S310: Clear the connection between the data call and the service network, and initiate a data call request to the service network again; Step S320: Re-initiate a registration request to the service network to connect to the service network; Step S330: Restart the wireless communication device connected to the service network, and reconnect to the service network through the restarted wireless communication device; If the network type of the service network is determined to be the target network type, then skipping the target step includes: If the network type of the service network is determined to be the target network type, then it is determined whether the service network corresponding to the data call is disconnected from the modem in the service data recovery transmission device when the connection between the data call and the service network is cleared. If the service network is not disconnected from the modem, then step S310 is determined to be an invalid step; Proceed from step S300 to step S320.
7. A business data recovery and transmission system, characterized in that, include: At least one memory; At least one processor; At least one program; The program is stored in the memory, and the processor executes at least one of the programs to implement the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the method as described in any one of claims 1 to 5.