Method for quickly positioning mobile network fault of POS (Point Of Sale) machine

By converting the exception code obtained by the MODEM module into instructions recognized by the operating system in the POS machine, classification and matching, the problem of fault location of the POS machine mobile network is solved, and rapid and automated fault processing and log generation are achieved.

CN119728406APending Publication Date: 2025-03-28FUJIAN NEWLAND PAYMENT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411926522.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The prior art is difficult to quickly locate POS machine mobile network failures, especially in the case of difficulty in obtaining network logs, which leads to maintenance personnel needing to perform log grabbing on site to locate problems.

Method used

The exception code feedback from the base station or operator is obtained through the MODEM module, and convert it into exception instructions according to the preset communication protocol. The operating system classifies the exception instructions, matches preset scheduling instructions, and executes it to realize timely prompts and processing of exception codes.

Benefits of technology

It realizes the rapid acquisition of the exception codes generated by the MODEM module of the POS machine, locates the properties and categories of faults, automatically handles abnormalities, shortens the fault repair time, improves the operation reliability of the POS machine, and generates detailed fault log files for subsequent analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728406A_ABST
    Figure CN119728406A_ABST
Patent Text Reader

Abstract

The invention discloses a method for quickly positioning a mobile network fault of a POS machine, which can quickly obtain an abnormal code generated by a MODEM module of the POS machine and convert the abnormal code into an instruction which can be identified by an operating system. And the operating system performs classification and matching according to the specific condition of the first abnormal code, so that the property and category of the fault can be quickly positioned. For some obvious abnormities, the operating system can automatically repair and process according to the preset scheduling instruction, and manual intervention is not needed. The automatic processing is helpful for shortening the fault repair time and improving the operation reliability of the POS machine. For different types of abnormal codes, the operating system generates corresponding prompt information and sends the prompt information to the terminal equipment. The prompt information can help the user to know the fault condition and provide targeted processing suggestions, so that the user experience is enhanced. And the log file can be used for subsequent analysis and diagnosis, so that the POS machine system can be continuously optimized and improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of mobile communications, and in particular to a method for quickly locating a mobile network failure of a POS machine. Background Art

[0002] In the Android system, when an abnormality occurs when a device interacts with a base station, the MODEM will report the abnormality to the Android system. These abnormalities are mainly based on the specifications of the 3GPP protocol. For example, when the device is ATTACHing to the base station, if the SIM card used by the device is bound to the IMEI of another device, the operator's core network will reply to the device through the base station with a rejection code of "#6ILLEGAL ME", which is also the abnormality code. After receiving the abnormality code, the MODEM will report the abnormality to the Android system, and the Android system will handle the abnormality accordingly. For example, disconnecting the network, not re-initiating the network access application in a short period of time, etc. For device maintainers, when a mobile network abnormality occurs and the problem needs to be troubleshooted, it is often necessary to capture the device log and analyze the device log to locate the cause of the abnormality. This process is often extremely inconvenient because it is difficult to obtain the network log of the device, especially for POS machines, whose usage scenarios have high security requirements and generally do not allow background log capture. Therefore, when network maintenance personnel troubleshoot problems, they often need technicians to go to the POS machine site to capture logs before they can finally locate the problem.

[0003] Although the Android system has reserved relevant software interfaces to receive exceptions received by the MODEM side, most manufacturers do not report the exception information completely to the Android system side on the MODEM side, and the reported exceptions are only used to manage the internal network status of the system, and do not give users a good feedback. Based on the existing solutions, users cannot know the specific cause of the mobile network failure. Therefore, the current common technical solution, mobile network exception reporting is not only incomplete, but also cannot be used by users, and it is not convenient for users to take relevant measures to deal with mobile network exceptions in a targeted manner.

[0004] In addition, POS devices are different from general Android devices. For example, mobile phones generally have sufficient data flow and are often connected to WIFI, which makes it easier for network anomaly logs to be sent to the developer backend, making it easier for developers to locate network problems. However, in the use scenarios of POS machines, data flow is often limited and the network is private. It is not only extremely inconvenient to send anomaly logs to the developer backend, but also involves financial risks. Therefore, it is basically impossible to obtain network logs in the backend. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a method for quickly locating a mobile network failure of a POS machine.

[0006] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:

[0007] In a first aspect, the present invention provides a method for quickly locating a mobile network failure of a POS machine, which is applicable to a MODEM module of a POS machine, and the method comprises:

[0008] Obtaining a first abnormal code, where the first abnormal code is generated through feedback from a base station or an operator;

[0009] Converting the first exception code into a first exception instruction according to a preset communication protocol, where the preset communication protocol is a communication protocol specified by the CPU system;

[0010] The first abnormal instruction is transparently transmitted to the operating system.

[0011] In some embodiments, the method further comprises:

[0012] receiving a first scheduling instruction made by the operating system according to the first abnormal instruction;

[0013] Performing network access interaction with a base station or an operator according to the first scheduling instruction;

[0014] Obtaining the return result of the network access interaction, if the return result is failure, obtaining a second exception code corresponding to the current return result, and converting the second exception code into a second exception instruction according to a preset communication protocol;

[0015] The second abnormal instruction is transparently transmitted to the operating system.

[0016] In some embodiments, the preset communication protocol is the QMI protocol; and / or, the first abnormal instruction is an AT command.

[0017] In a second aspect, the present invention also provides a method for quickly locating a mobile network failure of a POS machine, which is applicable to an operating system of a POS machine, and the method comprises:

[0018] Receiving a first abnormal instruction sent by the MODEM module;

[0019] Constructing first exception information according to the first exception instruction;

[0020] Classify the first abnormal information according to the preset classification condition to obtain a first abnormal category, where the first abnormal category is one of the first preset category, the second preset category, and the third preset category, the first preset category is a first obvious abnormality that can be repaired by the current operating system, the second preset category is a second obvious abnormality that can be handled by the current user, and the third preset category is a non-obvious abnormality;

[0021] Matching a preset scheduling instruction according to the first abnormal category, recording the successfully matched preset scheduling instruction as a first instruction and executing it, the preset scheduling instruction including a first scheduling instruction, a second scheduling instruction and a third scheduling instruction, the first scheduling instruction being configured to adjust the network access interaction according to the first preset category, and the first scheduling instruction being further configured to generate a first prompt message according to the first preset category and send it to the terminal, the second scheduling instruction being configured to generate a second prompt message according to the second preset category and send it to the terminal, and the third scheduling instruction being configured to generate a third prompt message according to the third preset category and send it to the terminal;

[0022] And, a first log file is generated according to the first exception information, the first exception code and the first instruction and stored in the terminal, and the first log file is configured to allow the application on the terminal to call it.

[0023] In some embodiments, the first abnormal information is classified according to a preset classification condition, and before obtaining the first abnormal category, the method further includes:

[0024] Obtain a sending timestamp of the first abnormal information, and record it as a first sending timestamp;

[0025] And, obtaining a second sending timestamp of the previous historical abnormal information;

[0026] Calculate the time interval between the first sending timestamp and the second sending timestamp;

[0027] Determine whether the time interval is within a preset interval threshold;

[0028] If yes, then the first abnormal information is not classified;

[0029] If not, the first abnormal information is classified according to a preset classification condition to obtain a first abnormal category.

[0030] In some embodiments, the first scheduling instruction is configured to adjust the network entry interaction according to the first preset category, including:

[0031] Acquire multiple preset adjustment strategies required for network access interaction adjustment corresponding to the first preset category;

[0032] Any preset adjustment strategy is selected as the first adjustment strategy, the unselected preset adjustment strategy is recorded as the second adjustment strategy, and the first scheduling instruction is generated according to the first adjustment strategy.

[0033] In some embodiments, if the first instruction is a first scheduling instruction, the method further includes:

[0034] Sending the first scheduling instruction to the MODEM module;

[0035] and receiving a second abnormal instruction sent by the MODEM module within a preset time period;

[0036] Acquire multiple second adjustment strategies required for network access interaction adjustment corresponding to the first preset category according to the second abnormal instruction;

[0037] Selecting any second adjustment strategy and updating it to the first adjustment strategy, and generating and executing a first scheduling instruction according to the updated first adjustment strategy;

[0038] Repeat the above steps until the return result of the MODEM module is success, or repeat the above steps until all preset adjustment strategies are traversed.

[0039] In some embodiments, the operating system is any one of Android system, IOS system and Linux system.

[0040] In a third aspect, the present invention also provides a method for quickly locating a mobile network failure of a POS machine, which is applicable to a POS machine, wherein the POS machine includes an operating system and a MODEM module, and the method includes:

[0041] The MODEM module obtains a first abnormal code, which is generated through feedback from a base station or an operator, and converts the first abnormal code into a first abnormal instruction according to a preset communication protocol, where the preset communication protocol is a communication protocol specified by the CPU system;

[0042] The MODEM module transparently transmits the first abnormal instruction to the operating system;

[0043] The operating system receives the first abnormal instruction sent by the MODEM module, and constructs first abnormal information according to the first abnormal instruction;

[0044] The operating system classifies the first abnormal information according to a preset classification condition to obtain a first abnormal category, where the first abnormal category is one of a first preset category, a second preset category, and a third preset category, where the first preset category is a first obvious abnormality that can be repaired by the current operating system, the second preset category is a second obvious abnormality that can be handled by the current user, and the third preset category is a non-obvious abnormality;

[0045] The operating system matches the preset scheduling instruction according to the first exception category, records the preset scheduling instruction that matches successfully as the first instruction and executes it, the preset scheduling instruction includes a first scheduling instruction, a second scheduling instruction and a third scheduling instruction, the first scheduling instruction is configured to adjust the network access interaction according to the first preset category, and the first scheduling instruction is also configured to generate a first prompt message according to the first preset category and send it to the terminal, the second scheduling instruction is configured to generate a second prompt message according to the second preset category and send it to the terminal, and the third scheduling instruction is configured to generate a third prompt message according to the third preset category and send it to the terminal;

[0046] Furthermore, the operating system generates a first log file according to the first exception information, the first exception code and the first instruction and stores the first log file in the terminal, and the first log file is configured to allow the application on the terminal to call it.

[0047] In some embodiments, the first scheduling instruction is configured to adjust the network entry interaction according to the first preset category, including:

[0048] The operating system obtains a plurality of preset adjustment strategies required for network access interaction adjustment corresponding to the first preset category;

[0049] The operating system selects any one of the preset adjustment strategies as the first adjustment strategy, records the unselected preset adjustment strategies as the second adjustment strategy, and generates a first scheduling instruction according to the first adjustment strategy;

[0050] If the first instruction is a first scheduling instruction, the method further includes:

[0051] The operating system sends the first scheduling instruction to the MODEM module;

[0052] The MODEM module receives a first scheduling instruction made by the operating system according to the first abnormal instruction, and performs network access interaction with the base station or the operator according to the first scheduling instruction;

[0053] The MODEM module obtains the return result of the network interaction. If the return result is failure, the module obtains the second exception code corresponding to the current return result, converts the second exception code into a second exception instruction according to a preset communication protocol, and transparently transmits the second exception instruction to the operating system.

[0054] The operating system receives a second abnormal instruction within a preset time period;

[0055] The operating system obtains, according to the second abnormal instruction, a plurality of second adjustment strategies required for network access interaction adjustment corresponding to the first preset category;

[0056] The operating system selects any second adjustment strategy and updates it to the first adjustment strategy, and generates and executes a first scheduling instruction according to the updated first adjustment strategy;

[0057] The operating system repeats the above steps until the return result of the MODEM module is success, or the operating system repeats the above steps until all preset adjustment strategies are traversed.

[0058] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:

[0059] Different from the prior art, in the above technical solution, when the POS machine network cannot be connected, the MODEM module will convert the first abnormal code fed back by the base station or the operator according to the preset communication protocol and then transmit it to the operating system. The operating system classifies according to the first abnormal instruction, obtains the first abnormal category, matches the preset scheduling instruction for the first abnormal category, obtains the first instruction and executes it, so as to realize timely prompting and processing of abnormal codes of different categories. The technical solution can quickly obtain the abnormal code generated by the POS machine MODEM module and convert it into an instruction recognizable by the operating system. The operating system classifies and matches according to the specific situation of the first abnormal code, and can quickly locate the nature and category of the fault. For some obvious abnormalities, the operating system can automatically repair and process according to the preset scheduling instruction without manual intervention. This automated processing helps to shorten the fault repair time and improve the operational reliability of the POS machine. For different types of abnormal codes, the operating system will generate corresponding prompt information and send it to the terminal device. These prompt information can help users understand the fault situation and provide targeted processing suggestions, thereby enhancing the user experience. The operating system will generate detailed fault log files and store them on the terminal device. These log files can be used for subsequent analysis and diagnosis, which helps to continuously optimize and improve the POS machine system. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 is a flow chart of the steps of the MODEM module described in the first embodiment;

[0062] Figure 2 is a flowchart of the steps of the operating system described in the second embodiment;

[0063] Figure 3 is a flowchart of the steps of the POS machine described in the third embodiment;

[0064] Figure 4 is a first process principle diagram of the POS machine described in the fourth embodiment;

[0065] Figure 5 It is a second process principle diagram of the POS machine described in the fourth embodiment. DETAILED DESCRIPTION

[0066] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.

[0067] See also Figure 1 In a first aspect, this embodiment provides a method for quickly locating a mobile network failure of a POS machine, which is applicable to a MODEM module of a POS machine, and the method includes:

[0068] S101, obtaining a first abnormal code, where the first abnormal code is generated through feedback from a base station or an operator;

[0069] S102, converting the first exception code into a first exception instruction according to a preset communication protocol, where the preset communication protocol is a communication protocol specified by the CPU system;

[0070] S103: transparently transmit the first abnormal instruction to the operating system.

[0071] In step S101, the first exception code can be understood as an exception code generated by the base station or operator when the MODEM module establishes a communication connection with the base station or the operator due to the state that the connection cannot be established. It should be noted that the exception codes in this embodiment and those described later are pre-defined exception code data, which belong to the recognized regulations in the communication field. For example, the exception code #27 corresponds to a specific network abnormal state.

[0072] In step S102, the first exception code is converted into a first exception instruction. It should be noted that the format of the first exception instruction is specified according to a preset communication protocol, for example, in a processor produced by Qualcomm, the preset communication protocol is the QMI protocol.

[0073] In step S103, after the first exception code is successfully converted, the MODEM module directly transparently transmits the first exception instruction to the operating system.

[0074] The steps shown in this embodiment can realize the transparent transmission function between the MODEM module and the operating system without the help of data traffic. This method solves the limitation that the existing abnormal status needs to use data traffic for feedback, and this method allows the abnormal code data to be directly transparently transmitted, that is, this method realizes the interface opening function of transferring the internally transmitted abnormal code to the outside for processing by third-party application software.

[0075] Furthermore, in some embodiments, the method further comprises:

[0076] receiving a first scheduling instruction made by the operating system according to the first abnormal instruction;

[0077] Performing network access interaction with a base station or an operator according to the first scheduling instruction;

[0078] Obtaining the return result of the network access interaction, if the return result is failure, obtaining a second exception code corresponding to the current return result, and converting the second exception code into a second exception instruction according to a preset communication protocol;

[0079] The second abnormal instruction is transparently transmitted to the operating system.

[0080] In this embodiment, the MODEM module can also be used to receive a first scheduling instruction made by the operating system based on the first abnormal instruction, wherein the first scheduling instruction can be understood in conjunction with the following text. The first scheduling instruction is an abnormal repair instruction automatically initiated by the operating system, generally including re-dial, change of dial-up IP, adjustment of dial-up parameters, etc. This method requires re-interaction with the base station or operator through the MODEM module.

[0081] Furthermore, the return result of the network interaction is obtained. The return result can also be understood as feedback on the network connection status. When the network connection is abnormal, the return result is failure, and an exception code corresponding to the network exception that caused the failure will be attached. If the return result is success, it means that the first scheduling instruction made by the current operating system has solved the problem of network connection failure.

[0082] In this embodiment, when the returned result is failure, the MODEM module converts the second exception code corresponding to the current returned result into a second exception instruction again, and transparently transmits the second exception instruction to the operating system.

[0083] It can be understood that the difference between the first exception instruction and the second exception instruction is that the second exception instruction is received again after the operating system performs automatic repair, so the first exception code and the second exception code may be the same or different. This embodiment distinguishes between the two only for the purpose of describing the difference in the process.

[0084] This embodiment gives full play to the cooperation between the MODEM module and the operating system, realizes a more intelligent and automated network fault handling capability, and further improves the overall performance and reliability of the POS system.

[0085] In some embodiments, the preset communication protocol is the QMI protocol; and / or, the first abnormal instruction is an AT command.

[0086] See also Figure 2 In a second aspect, this embodiment further provides a method for quickly locating a mobile network failure of a POS machine, which is applicable to an operating system of a POS machine, and the method includes:

[0087] S201, receiving a first abnormal instruction sent by a MODEM module;

[0088] S202, constructing first exception information according to the first exception instruction;

[0089] S203, classifying the first abnormal information according to a preset classification condition to obtain a first abnormal category, where the first abnormal category is one of a first preset category, a second preset category, and a third preset category, where the first preset category is a first obvious abnormality that can be repaired by the current operating system, the second preset category is a second obvious abnormality that can be handled by the current user, and the third preset category is a non-obvious abnormality;

[0090] S204. Match the preset scheduling instruction according to the first exception category, record the successfully matched preset scheduling instruction as the first instruction and execute it, the preset scheduling instruction includes a first scheduling instruction, a second scheduling instruction and a third scheduling instruction, the first scheduling instruction is configured to adjust the network access interaction according to the first preset category, and the first scheduling instruction is also configured to generate a first prompt message according to the first preset category and send it to the terminal, the second scheduling instruction is configured to generate a second prompt message according to the second preset category and send it to the terminal, and the third scheduling instruction is configured to generate a third prompt message according to the third preset category and send it to the terminal; and, generate a first log file according to the first exception information, the first exception code and the first instruction and store it in the terminal, and the first log file is configured to allow the application on the terminal to call it.

[0091] In step S201, a first exception instruction sent by the MODEM module is received, and in step S202, first exception information is constructed according to the first exception instruction. It should be noted that the first exception instruction can parse out a first exception code, which is a code and can also be understood as identification information of an abnormal state. The construction of the first exception information by the first exception instruction can be understood as follows: the abnormal state corresponding to the first exception code is obtained according to the first exception code, and the abnormal state is filled in or generated in a required format to form the first exception information.

[0092] In step S203, the first abnormal information is classified according to preset classification conditions, which are pre-set. In this embodiment, the preset classification conditions are obtained based on different processing methods of the abnormal information. For example, some abnormal information can be directly solved by automatic repair through the operating system, some abnormal information belongs to the problem of user arrears, etc., which requires the user to recharge and solve it by himself, and some problems belong to hardware damage, etc., which require professional personnel to conduct on-site inspection and measurement. According to this idea, the first abnormal category determined according to the first abnormal information may include one of the first preset category, the second preset category and the third preset category, and the first preset category belongs to the first obvious abnormality that can be automatically repaired by the current operating system, the second preset category belongs to the second obvious abnormality that can be handled and solved by the user, and the third preset category belongs to the non-obvious abnormality, that is, the abnormality that requires on-site maintenance or detailed measurement by professional technicians.

[0093] In step S204, the preset scheduling instruction is matched according to the obtained first abnormal category. For each preset category, the present embodiment provides a preset scheduling instruction. Specifically, for the first preset category, the first scheduling instruction corresponds, for the second preset category, the second scheduling instruction corresponds, and for the third preset category, the third scheduling instruction corresponds. For the convenience of distinction, the preset scheduling instruction after the first abnormal category is matched is recorded as the first instruction.

[0094] It should be noted that there are differences in the generation of the first scheduling instruction, the second scheduling instruction, and the third scheduling instruction. The first scheduling instruction includes a control signal made by the operating system for repair and a first prompt message output to the terminal. The second scheduling instruction includes a second prompt message output to the terminal, and the third scheduling instruction includes a third prompt message output to the terminal. The content contained in different prompt messages varies due to the different first exception categories. For example, the first prompt message may be: There is currently an exception and the system has automatically repaired it. The second prompt message may be: There is currently an arrears and the user needs to recharge manually. The account number is xxx. The third prompt message may be: There is currently an exception and you need to contact the staff.

[0095] Furthermore, in this embodiment, after executing the aforementioned steps, the data stream generated by the aforementioned steps will be stored in the form of a log, that is, a first log file, which will be stored in a terminal, such as a POS machine or a user's mobile phone. The first log file is in a state that allows third-party applications on the terminal to call it, or allows users to manually call it for review. This makes it easy for users to conduct a detailed review of the entire POS machine mobile network failure, thereby improving the efficiency of subsequent exception handling.

[0096] In some embodiments, the first abnormal information is classified according to a preset classification condition, and before obtaining the first abnormal category, the method further includes:

[0097] Obtain a sending timestamp of the first abnormal information, and record it as a first sending timestamp;

[0098] And, obtaining a second sending timestamp of the previous historical abnormal information;

[0099] Calculate the time interval between the first sending timestamp and the second sending timestamp;

[0100] Determine whether the time interval is within a preset interval threshold;

[0101] If yes, then the first abnormal information is not classified;

[0102] If not, the first abnormal information is classified according to a preset classification condition to obtain a first abnormal category.

[0103] In this embodiment, the above steps are to avoid multiple judgment processes caused by repeated data transmission, and determine whether the current first abnormal information and the historical abnormal information are repeated by judging the time interval between the first sending timestamp and the second sending timestamp.

[0104] In some embodiments, the first scheduling instruction is configured to adjust the network entry interaction according to the first preset category, including:

[0105] Acquire multiple preset adjustment strategies required for network access interaction adjustment corresponding to the first preset category;

[0106] Any preset adjustment strategy is selected as the first adjustment strategy, the unselected preset adjustment strategy is recorded as the second adjustment strategy, and the first scheduling instruction is generated according to the first adjustment strategy.

[0107] In this embodiment, the first preset category is the automatic repair category of the operating system. Therefore, it is necessary to build multiple feasible operation control instruction sets into the operating system to facilitate the calling of the operating system. For the convenience of expression, multiple feasible operation control instruction sets are recorded as preset adjustment strategies. There are multiple preset adjustment strategies. When the operating system determines that the current first abnormal category is the first preset category, one of the preset adjustment strategies is called to generate the first scheduling instruction, so as to adjust the relevant parameters of other modules. Generally speaking, the current preset adjustment strategy is a set of operation control instructions for self-regulation of several systems with a higher probability of success set by the operation and maintenance personnel according to the actual situation. This embodiment does not limit this.

[0108] In this embodiment, for easy distinction, the selected preset adjustment strategy is recorded as the first adjustment strategy, and the remaining preset adjustment strategies are the second adjustment strategies. When the current first adjustment strategy fails, the remaining second adjustment strategies will be tried.

[0109] Further, in some embodiments, if the first instruction is a first scheduling instruction, the method further includes:

[0110] Sending the first scheduling instruction to the MODEM module;

[0111] and receiving a second abnormal instruction sent by the MODEM module within a preset time period;

[0112] Acquire multiple second adjustment strategies required for network access interaction adjustment corresponding to the first preset category according to the second abnormal instruction;

[0113] Selecting any second adjustment strategy and updating it to the first adjustment strategy, and generating and executing a first scheduling instruction according to the updated first adjustment strategy;

[0114] Repeat the above steps until the return result of the MODEM module is success, or repeat the above steps until all preset adjustment strategies are traversed.

[0115] In this embodiment, when the MODEM module sends the second abnormal instruction, it indicates that the current operation plan of the first adjustment strategy has failed and cannot solve the mobile network failure problem of the POS machine. Based on this, the operating system will select one of the second adjustment strategies from multiple second adjustment strategies according to the second abnormal instruction as the new first adjustment strategy, and repeat the above steps.

[0116] In this embodiment, if the mobile network failure problem of the POS machine is finally successfully repaired after trying multiple preset adjustment strategies, the MODEM module stops sending abnormal instructions, and the operating system will no longer perform autonomous repairs according to the abnormal instructions. If the mobile network failure problem of the POS machine still exists after trying multiple preset adjustment strategies, the current operating system is no longer able to perform autonomous repairs, that is, repeating the above steps until all preset adjustment strategies are traversed and the problem still cannot be solved, then the user can make manual adjustments or seek help from professionals.

[0117] Optionally, when this situation occurs, the operating system may change the first abnormality category of the current first abnormality information from the first preset category to a third preset category.

[0118] In some embodiments, the operating system is any one of Android system, IOS system and Linux system.

[0119] See also Figure 3 In a third aspect, this embodiment further provides a method for quickly locating a mobile network failure of a POS machine, which is applicable to a POS machine, wherein the POS machine includes an operating system and a MODEM module, and the method includes:

[0120] S301, the MODEM module obtains a first exception code, the first exception code is generated through feedback from a base station or an operator, and converts the first exception code into a first exception instruction according to a preset communication protocol, the preset communication protocol is a communication protocol specified by the CPU system;

[0121] S302, the MODEM module transparently transmits the first abnormal instruction to the operating system;

[0122] S303, the operating system receives a first abnormal instruction sent by the MODEM module, and constructs first abnormal information according to the first abnormal instruction;

[0123] S304: The operating system classifies the first abnormal information according to a preset classification condition to obtain a first abnormal category, where the first abnormal category is one of a first preset category, a second preset category, and a third preset category. The first preset category is a first obvious abnormality that can be repaired by the current operating system, the second preset category is a second obvious abnormality that can be handled by the current user, and the third preset category is a non-obvious abnormality.

[0124] S305. The operating system matches the preset scheduling instruction according to the first exception category, records the successfully matched preset scheduling instruction as the first instruction and executes it, the preset scheduling instruction includes a first scheduling instruction, a second scheduling instruction and a third scheduling instruction, the first scheduling instruction is configured to adjust the network access interaction according to the first preset category, and the first scheduling instruction is also configured to generate a first prompt message according to the first preset category and send it to the terminal, the second scheduling instruction is configured to generate a second prompt message according to the second preset category and send it to the terminal, and the third scheduling instruction is configured to generate a third prompt message according to the third preset category and send it to the terminal; and the operating system generates a first log file according to the first exception information, the first exception code and the first instruction and stores it in the terminal, and the first log file is configured to allow the application on the terminal to call it.

[0125] In some embodiments, the first scheduling instruction is configured to adjust the network entry interaction according to the first preset category, including:

[0126] The operating system obtains a plurality of preset adjustment strategies required for network access interaction adjustment corresponding to the first preset category;

[0127] The operating system selects any one of the preset adjustment strategies as the first adjustment strategy, records the unselected preset adjustment strategies as the second adjustment strategy, and generates a first scheduling instruction according to the first adjustment strategy;

[0128] If the first instruction is a first scheduling instruction, the method further includes:

[0129] The operating system sends the first scheduling instruction to the MODEM module;

[0130] The MODEM module receives a first scheduling instruction made by the operating system according to the first abnormal instruction, and performs network access interaction with the base station or the operator according to the first scheduling instruction;

[0131] The MODEM module obtains the return result of the network interaction. If the return result is failure, the module obtains the second exception code corresponding to the current return result, converts the second exception code into a second exception instruction according to a preset communication protocol, and transparently transmits the second exception instruction to the operating system.

[0132] The operating system receives a second abnormal instruction within a preset time period;

[0133] The operating system obtains, according to the second abnormal instruction, a plurality of second adjustment strategies required for network access interaction adjustment corresponding to the first preset category;

[0134] The operating system selects any second adjustment strategy and updates it to the first adjustment strategy, and generates and executes a first scheduling instruction according to the updated first adjustment strategy;

[0135] The operating system repeats the above steps until the return result of the MODEM module is success, or the operating system repeats the above steps until all preset adjustment strategies are traversed.

[0136] The above steps and contents can be understood by referring to the steps and contents described above.

[0137] Furthermore, in order to facilitate understanding of the technical solutions shown in the above embodiments, the following application examples are provided:

[0138] When the device accesses the mobile network, it will interact with the operator's base station and core network according to the 3GPP protocol. Whether the network access is successful or failed, the device will receive reply signaling from the core network and base station. These signaling are defined in the 3GPP protocol and represented by relevant numbers. When the device fails to access the network, the device will receive corresponding abnormal signaling. Based on the abnormality, the device will make a corresponding response according to the 3GPP protocol.

[0139] Based on the above technical background, this example uses these exception codes as an important means to self-repair when the device's mobile network is abnormal, prompt users with solutions, and assist technicians in locating problems. This example implements the above functions based on the Android system. Figure 4 , Figure 4 The following figure shows the general operation process inside the POS machine:

[0140] 1. The MODEM side reports the abnormal code received from the interaction with the base station to the Android system through instructions;

[0141] 2. After receiving the exception code reported by MODEM, the com.android.phone process sends the exception code to ConnectivityService for further processing, mainly saving the exception record to a file, notifying the application that monitors the exception code, performing self-repair based on the exception code, and reporting suggestions for exception handling to the application layer.

[0142] 3. The self-check application, third-party application, and built-in application in the system can monitor exception codes and query historical exception records.

[0143] In the prior art, the original processing flow is directly executed without being prompted by the mobile phone or UI;

[0144] For further information, see Figure 5 , which is a specific design process step diagram for the code layer:

[0145] S1, MODEM side will receive abnormal signaling from the core network and base station during ATTACH, PDN CONNECT REQUEST, etc., such as #2 (IMSI Unknown in HSS), #6 (Illegal ME), #27 (Unknown or Missing Access Point Name

[0146] ) and other exception codes are transmitted to the Android system through custom instructions;

[0147] S2, through the system process, such as the com.android.phone process of the Android system, monitors and obtains the instructions and exception codes reported in S1;

[0148] S3, storing the exception code into an exception object MobileNetErrInfo according to a specific data structure, and sending it to the Android system network connection management service ConnectivityService;

[0149] S4. ConnectivityService passes the exception object MobileNetErrInfo to the network exception manager NetErrManager for corresponding processing;

[0150] S5. NetErrManager performs classification processing according to the exception code contained in the exception object;

[0151] S51, add a judgment on the transmission time interval of the abnormal code, and if the time difference of the same abnormal code is within 5s, no processing is performed;

[0152] S52. Exception codes are divided into three categories under the normal processing flow. Category A: Exceptions that are clear and can be fixed by the system (e.g. #27, APN exception, the system can update the APN and try to access the network again). Category B: Exceptions that are clear but cannot be fixed by the system, the system will give a solution prompt (e.g. #5, #6, both indicate that the IMEI does not meet the core network requirements, which means that this SIM card needs to be used on devices with other IMEIs). Category C: General exceptions, the system can only give prompts as is, to help managers and technicians quickly locate the problem;

[0153] S53, recording all the exception codes into a file to facilitate other applications to query the historical records;

[0154] S54, notifying the monitoring application and the system application of the exception code so that the application can make corresponding processing.

[0155] In the prior art, there is an abnormal code reporting mechanism, but only part of the abnormal code is reported to the Android system, so that the Android system can manage the network status. Third-party applications, system applications, and users can only obtain whether the network is abnormal or not, but cannot confirm the specific abnormality.

[0156] The steps shown in this example completely transparently transmit the exception codes of the ATTACH process and PDN CONNECT REQUEST process defined by the 3GPP protocol to the Android side. The Android side classifies and manages these exception codes and handles different exceptions differently. The core is still that the system will give an exception prompt and provide an interface to the application, so that other applications can also monitor the specific exceptions of the mobile network, thereby quickly providing a basis for troubleshooting and repairing exceptions. Classify and manage these exception codes reported by the MODEM side, and handle different exceptions differently. The core is still that the system gives an exception prompt; provide a software interface for third-party applications to query historical exceptions and monitor current exceptions in real time, thereby quickly providing a basis for troubleshooting and repairing exceptions.

[0157] It also has the following advantages:

[0158] 1. Convert the abnormal status into the corresponding abnormal code according to the 3GPP protocol, and directly transmit the abnormal code from the MODEM side to the Android system side;

[0159] 2. Display the specific exception code on the system UI and reserve a software interface to notify third-party applications;

[0160] 3. For some exceptions, such as APN errors, the Android system can switch to other APNs to ensure network connection;

[0161] 4. Provide processing suggestions for some anomalies, such as prompting users to recharge and pay fees, bind SIM cards to devices, etc.;

[0162] 5. For exceptions that other systems cannot handle on their own and cannot directly provide users with solutions, the system will directly prompt the exception code to facilitate users and problem location personnel to conduct exception troubleshooting;

[0163] From the perspective of POS machine usage scenarios, the mobile network is mostly limited in traffic and cannot access the external network. Therefore, if a mobile network anomaly occurs, it is extremely inconvenient to rely on the traditional method of obtaining device logs to locate the problem. After using this example solution, users or managers only need to query the current exception code in the relevant applications in the system and feedback to the developers or maintenance personnel. In this way, the mobile network failure of the device can be quickly identified in a short time, and corresponding measures can be taken to solve the mobile network failure.

[0164] Different from the prior art, in the above technical solution, when the POS machine network cannot be connected, the MODEM module will convert the first abnormal code fed back by the base station or the operator according to the preset communication protocol and then transmit it to the operating system. The operating system classifies according to the first abnormal instruction, obtains the first abnormal category, matches the preset scheduling instruction for the first abnormal category, obtains the first instruction and executes it, so as to realize timely prompting and processing of abnormal codes of different categories. The technical solution can quickly obtain the abnormal code generated by the POS machine MODEM module and convert it into an instruction recognizable by the operating system. The operating system classifies and matches according to the specific situation of the first abnormal code, and can quickly locate the nature and category of the fault. For some obvious abnormalities, the operating system can automatically repair and process according to the preset scheduling instruction without manual intervention. This automated processing helps to shorten the fault repair time and improve the operational reliability of the POS machine. For different types of abnormal codes, the operating system will generate corresponding prompt information and send it to the terminal device. These prompt information can help users understand the fault situation and provide targeted processing suggestions, thereby enhancing the user experience. The operating system will generate detailed fault log files and store them on the terminal device. These log files can be used for subsequent analysis and diagnosis, which helps to continuously optimize and improve the POS machine system.

[0165] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0166] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0167] The above descriptions are only some embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any equivalent device or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for quickly locating a POS mobile network failure, characterized in that: A MODEM module applicable to a POS machine, the method comprising: Obtaining a first exception code, where the first exception code is generated through feedback from a base station or an operator; Converting the first exception code into a first exception instruction according to a preset communication protocol, wherein the preset communication protocol is a communication protocol specified by the CPU system; The first abnormal instruction is transparently transmitted to the operating system.

2. The method for quickly locating a POS machine mobile network failure according to claim 1, characterized in that: The method further comprises: receiving a first scheduling instruction made by the operating system according to the first abnormal instruction; Performing network access interaction with the base station or the operator according to the first scheduling instruction; Obtaining a return result of the network access interaction, and if the return result is a failure, obtaining a second exception code corresponding to the current return result, and converting the second exception code into a second exception instruction according to a preset communication protocol; The second abnormal instruction is transparently transmitted to the operating system.

3. The method for quickly locating a POS machine mobile network failure according to claim 1, characterized in that: The preset communication protocol is the QMI protocol; And / or, the first abnormal instruction is an AT command.

4. A method for quickly locating a POS mobile network failure, characterized in that: The method is applicable to an operating system of a POS machine, and comprises: Receiving a first abnormal instruction sent by the MODEM module; Constructing first exception information according to the first exception instruction; Classify the first abnormal information according to a preset classification condition to obtain a first abnormal category, where the first abnormal category is one of a first preset category, a second preset category, and a third preset category, where the first preset category is a first obvious abnormality that can be repaired by the current operating system, the second preset category is a second obvious abnormality that can be handled by the current user, and the third preset category is a non-obvious abnormality; Matching a preset scheduling instruction according to the first abnormal category, recording the successfully matched preset scheduling instruction as a first instruction and executing it, the preset scheduling instruction including a first scheduling instruction, a second scheduling instruction and a third scheduling instruction, the first scheduling instruction being configured to adjust the network access interaction according to the first preset category, and the first scheduling instruction being further configured to generate a first prompt message according to the first preset category and send it to the terminal, the second scheduling instruction being configured to generate a second prompt message according to the second preset category and send it to the terminal, and the third scheduling instruction being configured to generate a third prompt message according to the third preset category and send it to the terminal; And, a first log file is generated according to the first exception information, the first exception code and the first instruction and stored in the terminal, wherein the first log file is configured to allow an application on the terminal to call it.

5. The method for quickly locating a POS machine mobile network failure according to claim 4, characterized in that: Classifying the first abnormal information according to a preset classification condition to obtain a first abnormal category also includes: Obtain a sending timestamp of the first abnormal information, recorded as a first sending timestamp; And, obtaining a second sending timestamp of the previous historical abnormal information; Calculating a time interval between the first sending timestamp and the second sending timestamp; Determining whether the time interval is within a preset interval threshold; If yes, then the first abnormal information is not classified; If not, the first abnormal information is classified according to a preset classification condition to obtain a first abnormal category.

6. The method for quickly locating a POS machine mobile network failure according to claim 4, characterized in that: The first scheduling instruction is configured to adjust the network entry interaction according to the first preset category, including: Acquire multiple preset adjustment strategies required for network access interaction adjustment corresponding to the first preset category; Any one of the preset adjustment strategies is selected as the first adjustment strategy, the unselected preset adjustment strategies are recorded as the second adjustment strategies, and the first scheduling instruction is generated according to the first adjustment strategy.

7. The method for quickly locating a POS machine mobile network failure according to claim 6, characterized in that: If the first instruction is a first scheduling instruction, the method further includes: Sending the first scheduling instruction to the MODEM module; and receiving a second abnormal instruction sent by the MODEM module within a preset time period; Acquire, according to the second abnormal instruction, a plurality of second adjustment strategies required for network access interaction adjustment corresponding to the first preset category; Selecting any second adjustment strategy and updating it to the first adjustment strategy, and generating and executing the first scheduling instruction according to the updated first adjustment strategy; Repeat the above steps until the return result of the MODEM module is success, or repeat the above steps until all the preset adjustment strategies are traversed.

8. The method for quickly locating a POS machine mobile network failure according to claim 4, characterized in that: The operating system is any one of Android system, IOS system and Linux system.

9. A method for quickly locating a POS mobile network failure, characterized in that: Applicable to a POS machine, the POS machine includes an operating system and a MODEM module, and the method includes: The MODEM module obtains a first exception code, which is generated by feedback from a base station or an operator, and converts the first exception code into a first exception instruction according to a preset communication protocol, where the preset communication protocol is a communication protocol specified by the CPU system; The MODEM module transparently transmits the first abnormal instruction to the operating system; The operating system receives a first abnormal instruction sent by the MODEM module, and constructs first abnormal information according to the first abnormal instruction; The operating system classifies the first abnormal information according to a preset classification condition to obtain a first abnormality category, where the first abnormality category is one of a first preset category, a second preset category, and a third preset category, where the first preset category is a first obvious abnormality that the current operating system can repair by itself, the second preset category is a second obvious abnormality that the current user can handle by himself, and the third preset category is a non-obvious abnormality; The operating system matches a preset scheduling instruction according to the first exception category, records the successfully matched preset scheduling instruction as a first instruction and executes it, the preset scheduling instruction includes a first scheduling instruction, a second scheduling instruction and a third scheduling instruction, the first scheduling instruction is configured to adjust the network access interaction according to the first preset category, and the first scheduling instruction is also configured to generate a first prompt message according to the first preset category and send it to the terminal, the second scheduling instruction is configured to generate a second prompt message according to the second preset category and send it to the terminal, and the third scheduling instruction is configured to generate a third prompt message according to the third preset category and send it to the terminal; Furthermore, the operating system generates a first log file according to the first exception information, the first exception code and the first instruction and stores the first log file in the terminal, wherein the first log file is configured to allow an application on the terminal to call the first log file.

10. The method for quickly locating a POS machine mobile network failure according to claim 9, characterized in that: The first scheduling instruction is configured to adjust the network entry interaction according to the first preset category, including: The operating system obtains a plurality of preset adjustment strategies required for network access interaction adjustment corresponding to the first preset category; The operating system selects any one of the preset adjustment strategies as the first adjustment strategy, records the unselected preset adjustment strategies as the second adjustment strategies, and generates the first scheduling instruction according to the first adjustment strategy; If the first instruction is a first scheduling instruction, the method further includes: The operating system sends the first scheduling instruction to the MODEM module; The MODEM module receives a first scheduling instruction made by the operating system according to the first abnormal instruction, and performs network access interaction with the base station or the operator according to the first scheduling instruction; The MODEM module obtains the return result of the network access interaction, and if the return result is failure, obtains a second exception code corresponding to the current return result, converts the second exception code into a second exception instruction according to a preset communication protocol, and transparently transmits the second exception instruction to the operating system; The operating system receives the second abnormal instruction within a preset time period; The operating system acquires, according to the second abnormal instruction, a plurality of second adjustment strategies required for network access interaction adjustment corresponding to the first preset category; The operating system selects any second adjustment strategy and updates it to the first adjustment strategy, and generates and executes the first scheduling instruction according to the updated first adjustment strategy; The operating system repeats the above steps until the return result of the MODEM module is success, or the operating system repeats the above steps until all the preset adjustment strategies are traversed.