Search

CN-122028103-A - Network diagnosis method, device, equipment and storage medium of SIM card

CN122028103ACN 122028103 ACN122028103 ACN 122028103ACN-122028103-A

Abstract

The disclosure relates to the technical field of communication, and in particular relates to a network diagnosis method, device, equipment and storage medium of a SIM card. The method comprises the steps of responding to a diagnosis instruction aiming at the SIM card, obtaining a life state and a public network switch state of the SIM card, wherein the diagnosis instruction comprises an SIM card identifier of the SIM card, the life state is used for representing availability and service attribute states of the SIM card, the public network switch state is used for representing whether the SIM card is allowed to access public network data service, when determining that a diagnosis result cannot be called from a cache of the SIM card according to the life state, the public network switch state and the SIM card identifier, obtaining a real-name state and a flow state of the SIM card, wherein the flow state is used for representing flow use condition of the SIM card, and determining the diagnosis result of the SIM card according to the real-name state, the flow state, the life state and the public network switch state of the SIM card. According to the embodiment of the disclosure, manual intervention and experience dependence can be reduced, the diagnosis flow is simplified, and the diagnosis efficiency and accuracy are improved.

Inventors

  • ZHENG QI

Assignees

  • 上海优咔网络科技有限公司

Dates

Publication Date
20260512
Application Date
20260108

Claims (11)

  1. 1. A method for network diagnosis of a SIM card, comprising: The method comprises the steps of responding to a diagnosis instruction aiming at a SIM card, acquiring a life state and a public network switch state of the SIM card, wherein the diagnosis instruction comprises an SIM card identifier of the SIM card, the life state is used for representing the availability and service attribute state of the SIM card, and the public network switch state is used for representing whether the SIM card is allowed to access public network data service or not; when determining that the diagnosis result can not be called from the cache of the SIM card according to the life state, the public network switch state and the SIM card identification, acquiring a real-name state and a flow state of the SIM card, wherein the flow state is used for representing the flow service condition of the SIM card; And determining a diagnosis result of the SIM card according to the real-name state, the flow state, the life state and the public network switch state of the SIM card.
  2. 2. The network diagnosis method of the SIM card according to claim 1, wherein the determining that the diagnosis result cannot be called from the cache of the SIM card according to the life state, the public network switch state, and the SIM card identifier includes: Generating a first signature according to the life state and the public network switch state; inquiring target cache data corresponding to the SIM card from a cache according to the SIM card identifier; Acquiring a second signature of the target cache data when the target cache data is queried and the target cache data is within the survival time; And determining that the diagnosis result cannot be called from the cache of the SIM card under the condition that the target cache data of the SIM card is not queried from the cache according to the SIM card identification or the second signature is different from the first signature.
  3. 3. The network diagnosis method of a SIM card according to claim 2, wherein the method further comprises: And under the condition that the second signature is the same as the first signature, extracting the diagnosis result of the SIM card from the target cache data.
  4. 4. The network diagnosis method of a SIM card according to claim 1, wherein after determining the diagnosis result of the SIM card, the method further comprises: Generating a target signature according to the life state, the public network switch state and the traffic state; And storing the target signature and the diagnosis result into a cache corresponding to the SIM card, and configuring survival time for the target signature and the diagnosis result.
  5. 5. The method according to claim 1, wherein the life state includes an inactive standby state, a maintenance state, a normal use state, and other states, and wherein the acquiring the real-name state of the SIM card includes: when the life state of the SIM card is any one of an inactive state to be occupied, a maintenance state and a normal use state, and the real name section corresponding to the SIM card displays the real name, determining that the real name state of the SIM card is the real name; When the life state of the SIM card is any one of an inactive state to be occupied, a maintenance state and a normal use state, but the real name section corresponding to the SIM card displays an unauthenticated name, determining that the real name state of the SIM card is the unauthenticated name; and when the life state of the SIM card is other, determining that the real-name state of the SIM card is not real-name.
  6. 6. The network diagnosis method of the SIM card according to claim 1, wherein determining the diagnosis result of the SIM card according to the real-name status, the traffic status, the life status, and the public network switch status of the SIM card comprises: When a target result is matched from a preset corresponding relation according to the real-name state, the flow state, the life state and the public network switch state of the SIM card, the target result is determined to be a diagnosis result of the SIM card; And generating a diagnosis result according to the real-name state, the flow state, the life state, the public network switch state and a pre-trained large language model when the target result is not matched from the preset corresponding relation according to the real-name state, the flow state, the life state, the public network switch state of the SIM card.
  7. 7. The network diagnosis method of the SIM card according to claim 6, wherein the real-name status includes a real name and an unauthenticated name, the public network switch status includes an on state and an off state, the life state includes an inactive standby state, a maintenance state, and a normal use state, the traffic state includes whether traffic is exhausted or not, and a traffic array, the traffic array is used for characterizing traffic usage corresponding to each time window in a historical time period, and the preset correspondence includes: Determining that the diagnosis result is a first diagnosis result when the traffic state is not exhausted, but the life state is an inactive state to be occupied or a maintenance state, or the public network switch state is a closed state; When the life state is a normal use state, but the real-name state is not real-name, or the public network switch state is a closed state, determining the diagnosis result as a second diagnosis result; Determining that the diagnosis result is a third diagnosis result under the condition that the flow state is exhausted or the public network switch state is closed; and under the condition that the life state is a normal use state and the elements in the flow array are all 0, determining the diagnosis result as a fourth diagnosis result.
  8. 8. The method of claim 6, wherein generating the diagnosis result according to the real name state, the traffic state, the life state, the public network switch state, and a pre-trained large language model comprises: constructing prompt words and abstract texts according to the real name state, the flow state, the life state and the public network switch state; The prompt word and the abstract text are input into a pre-trained large language model to obtain a diagnosis result, wherein the diagnosis result comprises diagnosis suggestions, and the diagnosis suggestions comprise at least one of real name authentication, public network data opening, recharging or renewing, current use maintaining, physical connection checking, life state information supplementing and manual review covering.
  9. 9. A network diagnosis device of a SIM card, comprising: The system comprises an acquisition module, a diagnosis module and a public network switch state, wherein the acquisition module is used for responding to a diagnosis instruction aiming at an SIM card, and acquiring a life state and a public network switch state of the SIM card, wherein the diagnosis instruction comprises an SIM card identifier of the SIM card, the life state is used for representing the availability and service attribute state of the SIM card, and the public network switch state is used for representing whether the SIM card is allowed to be accessed to a public network data service or not; The judging module is used for acquiring the real-name state and the flow state of the SIM card when determining that the diagnosis result cannot be called from the cache of the SIM card according to the life state, the public network switch state and the SIM card identifier, wherein the flow state is used for representing the flow service condition of the SIM card; and the processing module is used for determining the diagnosis result of the SIM card according to the real name state, the flow state, the life state and the public network switch state of the SIM card.
  10. 10. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the network diagnostic method of a SIM card as claimed in any one of claims 1 to 8 when executed by the processor.
  11. 11. A computer readable storage medium, characterized in that it comprises a computer program stored thereon, which, when being executed by a processor, implements the steps of the network diagnosis method of a SIM card according to any one of claims 1 to 8.

Description

Network diagnosis method, device, equipment and storage medium of SIM card Technical Field The disclosure relates to the technical field of communication, and in particular relates to a network diagnosis method, device, equipment and storage medium of a SIM card. Background With the continuous expansion of service scales of the Internet of vehicles, the Internet of things and the like, the number of terminal equipment is continuously increased, the operation and maintenance complexity of the user identity modules (Subscriber Identity Module, SIM) is remarkably improved, and an operation and maintenance team needs to rapidly and accurately judge the abnormal types of the SIM cards in a mass of terminals so as to take targeted treatment measures in time. For example, the lack of a real name may result in the inability to open data, poor patch contact, or network coverage problems that may result in the user being unavailable. Currently, network diagnosis of a SIM card is generally performed by an operation and maintenance person to query various information related to the SIM card in a plurality of service systems, and manually analyze and judge based on the query result to determine a diagnosis result. However, the diagnosis process involves a large number of service systems, the operation process is scattered, and the experience of operation and maintenance personnel is highly relied on, so that the diagnosis process is complicated, and the diagnosis efficiency and the accuracy of the diagnosis result are low. Disclosure of Invention In order to solve the technical problems, the present disclosure provides a network diagnosis method, device, equipment and storage medium for a SIM card, which can improve the network diagnosis efficiency of the SIM card. The network diagnosis method of the SIM card comprises the steps of responding to a diagnosis instruction aiming at the SIM card, obtaining a life state and a public network switch state of the SIM card, wherein the life state is used for representing availability and service attribute states of the SIM card, the public network switch state is used for representing whether the SIM card is allowed to access public network data service, obtaining a real name state and a flow state of the SIM card when determining that a diagnosis result cannot be called from a cache of the SIM card according to the life state, the public network switch state and the SIM card identification, the flow state is used for representing flow use condition of the SIM card, and determining the diagnosis result of the SIM card according to the real name state, the flow state, the life state and the public network switch state of the SIM card. The network diagnosis device of the SIM card comprises an acquisition module, a judgment module and a processing module, wherein the acquisition module is used for responding to a diagnosis instruction aiming at the SIM card to acquire a life state and a public network switch state of the SIM card, the diagnosis instruction comprises a SIM card identifier of the SIM card, the life state is used for representing availability and service attribute states of the SIM card, the public network switch state is used for representing whether the SIM card is allowed to be accessed to public network data service, the judgment module is used for acquiring a real name state and a flow state of the SIM card when determining that a diagnosis result cannot be called from a cache of the SIM card according to the life state, the public network switch state and the SIM card identifier, the flow state is used for representing flow use condition of the SIM card, and the processing module is used for determining the diagnosis result of the SIM card according to the real name state, the flow state, the life state and the public network switch state of the SIM card. In a third aspect, the present disclosure provides an electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program implementing a network diagnostic method as the SIM card of the first aspect when executed by the processor. In a fourth aspect, the present disclosure provides a computer readable storage medium, comprising a computer program stored thereon, which when executed by a processor implements a network diagnosis method as the SIM card of the first aspect. In a fifth aspect, the present disclosure provides a computer program product which, when run on a computer, causes the computer to perform the above-mentioned related steps to implement a network diagnosis method as the SIM card of the first aspect. Compared with the prior art, the technical scheme provided by the disclosure has the advantages that firstly, the life state of the SIM card and the public network switch state are acquired in response to the diagnosis instruction aiming at the SIM card. The diagnosis instruction comprises an SIM card identifier of the