CN115278649A - Telephone number acquisition method, equipment, system and medium based on machine learning - Google Patents

Telephone number acquisition method, equipment, system and medium based on machine learning Download PDF

Info

Publication number
CN115278649A
CN115278649A CN202211171128.5A CN202211171128A CN115278649A CN 115278649 A CN115278649 A CN 115278649A CN 202211171128 A CN202211171128 A CN 202211171128A CN 115278649 A CN115278649 A CN 115278649A
Authority
CN
China
Prior art keywords
sim card
module
telephone number
identification code
integrated circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211171128.5A
Other languages
Chinese (zh)
Other versions
CN115278649B (en
Inventor
任永红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guanghetong Wireless Communication Software Co ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Guanghetong Wireless Communication Software Co ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority to CN202211171128.5A priority Critical patent/CN115278649B/en
Publication of CN115278649A publication Critical patent/CN115278649A/en
Application granted granted Critical
Publication of CN115278649B publication Critical patent/CN115278649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a telephone number acquisition method, equipment, a system and a medium based on machine learning. Wherein, the method comprises the following steps: acquiring an integrated circuit card identification code of an SIM card in a module to be tested; and based on the integrated circuit card identification code of the SIM card, acquiring the telephone number of the SIM card from the service end, updating a local configuration file of the testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file. The method automatically acquires the telephone number of the SIM card from the server based on the integrated circuit identification code of the SIM card, and comprises the steps that the server acquires the telephone number of the SIM card from a database, and/or the server acquires the telephone number of the SIM card through a known SIM card number module and a module to be tested in a machine learning mode, so that the information of the SIM card does not need to be acquired manually before testing, and a configuration file does not need to be updated manually, thereby saving the manual operation in a testing link and improving the testing efficiency of the module.

Description

Telephone number acquisition method, equipment, system and medium based on machine learning
Technical Field
The present application relates to the field of machine learning technologies, and in particular, to a method, device, system, and medium for obtaining a phone number based on machine learning.
Background
When testing network characteristics (such as making/receiving calls, sending/receiving short messages) of a module, the main flow is generally as follows:
preparing two modules, inserting an SIM card into each module, and respectively using the modules as a main test module and an auxiliary module; respectively using a main test module and an auxiliary module to dial a call for equipment with a known number and manually recording an incoming call number, wherein the incoming call number is the SIM card number of the module (namely the phone number of the SIM card); manually allocating SIM card numbers of main equipment and auxiliary equipment to major-SIM card number (SIM card number of main test module) and minor-SIM card number (SIM card number of auxiliary module) in a tester-iot-conf (configuration file), wherein the SIM card numbers in the configuration file are required to be correct corresponding to the module ports; and the automatic script reads the tester _ iot.conf and tests the network characteristics of the module.
However, before each test, a user needs to manually dial a telephone to obtain the SIM card number in the module and manually configure the obtained SIM card number into the corresponding configuration parameter item, which is too complicated to manually operate and affects the test efficiency.
Disclosure of Invention
The application provides a telephone number obtaining method, equipment, a system and a medium based on machine learning, which are used for solving the problem that the telephone number of an SIM card needs to be manually configured in the module testing process.
In a first aspect, an embodiment of the present application provides a phone number obtaining method based on machine learning, which is applied to a test end, and includes:
acquiring an integrated circuit card identification code of an SIM card in a module to be tested;
acquiring the telephone number of the SIM card from a service end based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file;
the server side acquires the telephone number of the SIM card from a database and/or acquires the telephone number of the SIM card from the database through a known SIM card number module and the module to be tested; the known SIM card number module is in communication connection with the server;
optionally, obtaining the phone number of the SIM card from the service end includes:
sending a configuration query request to the server, wherein the configuration query request carries the integrated circuit card identification code;
acquiring a response result returned by the server based on the configuration query request and a preset mapping relation; the mapping relation is the mapping relation between the integrated circuit card identification code and the telephone number;
if the response result carries a telephone number, determining that the telephone number is the telephone number of the SIM card;
if the response result does not carry the telephone number, acquiring the telephone number of the SIM card according to the module to be tested and the known SIM card number module, and taking the telephone number of the SIM card as the telephone number of the SIM card acquired from a server;
optionally, the obtaining an integrated circuit card identification code of the SIM card in the module to be tested includes:
acquiring a USB port number of the module to be tested;
sending an identification code acquisition instruction through the USB port number;
acquiring an integrated circuit card identification code of the SIM card returned by the module to be tested based on the identification code acquisition instruction;
optionally, obtaining the phone number of the SIM card according to the module to be tested and the known SIM card number module includes:
controlling the module to be tested to send a communication message to a known SIM card number in the known SIM card number module through the USB port number of the module to be tested; the communication message carries an integrated circuit card identification code of the SIM card and a telephone number of the SIM card;
and acquiring the telephone number of the SIM card through the known SIM card number module.
In a second aspect, an embodiment of the present application provides a phone number obtaining method based on machine learning, which is applied to a server and includes:
acquiring an integrated circuit card identification code of an SIM card in a module to be tested, which is sent by a testing end;
according to the integrated circuit card identification code of the SIM card, the telephone number corresponding to the integrated circuit card identification code is obtained from a database, and/or, acquiring a telephone number corresponding to the integrated circuit card identification code through a known SIM card number module and the module to be tested;
sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the testing end so that the testing end updates a local configuration file of the testing end according to the telephone number and tests the module to be tested according to the configuration file;
optionally, obtaining the phone number corresponding to the integrated circuit card identification code through the known SIM card number module and the module to be tested includes:
acquiring a communication message sent by the module to be tested through a known SIM card number module; the communication message carries the integrated circuit card identification code of the SIM card and the telephone number of the SIM card; taking the telephone number of the SIM card as the telephone number corresponding to the integrated circuit card identification code;
optionally, after obtaining the communication message sent by the module to be tested by the known SIM card number module, the method further includes:
and updating the database according to the telephone number of the SIM card and the integrated circuit card identification code of the SIM card.
In a third aspect, an embodiment of the present application provides a phone number obtaining device based on machine learning, which is applied to a test end, and the device includes:
the first acquisition module is used for acquiring an integrated circuit card identification code of the SIM card in the module to be tested;
the second acquisition module is used for acquiring the telephone number of the SIM card from a server based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing terminal according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file; the telephone number of the SIM card is acquired by the server from a database and/or acquired by the server through a known SIM card number module and the module to be tested; and the known SIM card number module is in communication connection with the server.
In a fourth aspect, an embodiment of the present application provides a phone number obtaining device based on machine learning, which is applied to a server and includes:
the third acquisition module is used for acquiring the integrated circuit card identification code of the SIM card in the module to be tested, which is sent by the test end;
a fourth obtaining module, configured to obtain, according to the integrated circuit card identification code of the SIM card, a phone number corresponding to the integrated circuit card identification code from a database, and/or obtain, through a known SIM card number module and the module to be tested, a phone number corresponding to the integrated circuit card identification code;
and the sending module is used for sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the testing end so that the testing end updates a local configuration file of the testing end according to the telephone number and tests the module to be tested according to the configuration file.
In a fifth aspect, an embodiment of the present application provides a phone number obtaining system based on machine learning, where the system includes: a test end and a service end;
the test terminal is used for acquiring an integrated circuit card identification code of the SIM card in the module to be tested; acquiring the telephone number of the SIM card from a service end based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file; the telephone number of the SIM card is acquired by the server from a database and/or acquired by the server through a known SIM card number module and the module to be tested; the known SIM card number module is in communication connection with the server;
the server is used for acquiring an integrated circuit card identification code of the SIM card in the module to be tested, which is sent by the test terminal; according to the integrated circuit card identification code of the SIM card, acquiring a telephone number corresponding to the integrated circuit card identification code from a database, and/or acquiring the telephone number corresponding to the integrated circuit card identification code through a known SIM card number module and the module to be tested; and sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the test end.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the telephone number obtaining method based on machine learning according to any one of the first aspect and the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for obtaining a phone number based on machine learning according to any one of the first aspect and the second aspect is implemented.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the method provided by the embodiment of the application acquires an integrated circuit card identification code of an SIM card in a module to be tested; acquiring the telephone number of the SIM card from a service end based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file; the telephone number of the SIM card is acquired by the server from a database and/or acquired by the server through a known SIM card number module and the module to be tested; and the known SIM card number module is in communication connection with the server. The method automatically acquires the telephone number of the SIM card from the server based on the integrated circuit identification code of the SIM card, comprises the steps that the server acquires the telephone number of the SIM card from a database and/or acquires the telephone number of the SIM card through a known SIM card number module and a module to be tested in a machine learning mode, manual acquisition of SIM card information is not needed before testing, manual updating of a configuration file is also not needed, manual operation in a testing link is saved, and the testing efficiency of the module is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a system architecture diagram of a phone number obtaining method based on machine learning according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a phone number obtaining method based on machine learning according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a phone number obtaining method based on machine learning according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a phone number obtaining method based on machine learning according to another embodiment of the present application;
fig. 5 is a schematic flowchart of a phone number obtaining method based on machine learning according to another embodiment of the present application;
fig. 6 is a schematic flowchart illustrating an exemplary process for automatically acquiring a SIM card number in a module according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a phone number obtaining device based on machine learning according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a phone number obtaining device based on machine learning according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The method provided in the embodiment of the application can be applied to electronic equipment, the electronic equipment can be specifically a module capable of realizing a communication function or terminal equipment containing the module, and the terminal equipment can be a mobile terminal or an intelligent terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a notebook computer and the like; the intelligent terminal can be a terminal containing a wireless communication module, such as an intelligent automobile, an intelligent watch, a shared bicycle, an intelligent cabinet and the like; the module may be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and an NB-IOT communication module.
The method provided by the embodiment of the present application can also be applied to a system architecture as shown in fig. 1 or fig. 2, where the system architecture at least includes a test end 101 and a service end 102, where the test end 101 can be an industrial personal computer, a PC (such as a desktop computer, a notebook computer), and the like for testing a module, the test end 101 is connected to the module to be tested 100, and the service end 102 can be connected to the database server 103 and the known SIM card number module 104. The SIM card number module 104 is used for receiving communication messages (such as short messages) of the module to be tested 100, and the database server 103 is used for managing configuration information (the configuration information includes phone numbers, etc.) of the SIM card.
The number of the to-be-tested modules 100 is not limited, and may be one, two or more, and when two, the to-be-tested modules 100 may be embodied as a main test module and an auxiliary module. The server 102 may be a server (for distinction from the database server 103, this server is called server # 1). The database server 103 may be a separate server, or may be a part of the server # 1 for storing the database.
Taking the testing terminal 101 as the PC for example, after the module 100 to be tested is connected to the PC, the PC sends a request to the server 102, where the request is used to obtain the SIM card number in the module 100 to be tested, if the relevant information of the SIM card exists in the database server 103, the server # 1 normally responds to the SIM card number to the PC, if the relevant information of the SIM card does not exist in the database server 103, the SIM card is a new card, the database learns by itself to obtain the information of the new card, and then sends the SIM card number of the new SIM card to the PC, so that the PC can use when testing the module 100 to be tested.
Next, the method is described in detail based on the system architecture, and a phone number obtaining method based on machine learning is applied to a testing end, as shown in fig. 3, and the method includes:
step 301, obtaining an integrated circuit card identification code of the SIM card in the module to be tested.
The ic Card identification code, i.e. integrated Circuit Card Identity, abbreviated as ICCID, is equivalent to an Identity Card of a SIM Card number, and the ICCID is an identification number of a SIM Card and is composed of 20 characters in total.
In one embodiment, obtaining an integrated circuit card identification code of a SIM card in a module to be tested includes: and acquiring a USB port number of the module to be tested, sending an identification code acquisition instruction through the USB port number, and acquiring an integrated circuit card identification code of the SIM card returned by the module to be tested based on the identification code acquisition instruction.
In this embodiment, when it is detected that the module to be tested 100 is connected to the testing terminal 101, the testing terminal 101 obtains a USB port number of the module to be tested 100, for example, COM1 or COM2 of a PC is connected to the module to be tested 100, and sends an identification code obtaining instruction to the module to be tested through the USB port number, where the identification code obtaining instruction may be in a fixed format agreed in advance with the module to be tested 100, for example, "AT + CCID" is sent, and after receiving the identification code obtaining instruction, the module to be tested 100 sends an ICCID of a carried SIM card to the PC.
It should be noted that the USB port number is mainly obtained to distinguish different modules 100 to be tested, so that the SIM card number corresponds to the modules 100 to be tested one by one, thereby improving the accuracy of obtaining the phone number, and the ICCID of the SIM card is automatically obtained through the identification code obtaining instruction, thereby avoiding the error that may occur when the user manually operates, and improving the efficiency.
And 302, acquiring the telephone number of the SIM card from the server based on the integrated circuit card identification code of the SIM card, updating a local configuration file of the testing terminal according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file, wherein the telephone number of the SIM card is acquired from a database by the server and/or acquired by the server through a known SIM card number module and the module to be tested, and the known SIM card number module is in communication connection with the server.
In this embodiment, before the test, it is no longer necessary to manually obtain the information of the SIM card, and the test end can automatically obtain the phone number of the SIM card from the service end based on the integrated circuit identification code of the SIM card, and it is also not necessary to manually update the configuration file, so that the manual operation in the test link is saved, and the test efficiency of the module is improved.
In one embodiment, obtaining the phone number of the SIM card from the server includes:
sending a configuration query request to a server, wherein the configuration query request carries an integrated circuit card identification code;
acquiring a response result returned by the server based on the configuration query request and a preset mapping relation; the mapping relation is the mapping relation between the integrated circuit card identification code and the telephone number;
if the response result carries the telephone number, determining that the telephone number is the telephone number of the SIM card;
and if the response result does not carry the telephone number, acquiring the telephone number of the SIM card according to the module to be tested and the known SIM card number module, and taking the telephone number of the SIM card as the telephone number of the SIM card acquired from the server.
In this embodiment, the phone number of the SIM card may be obtained from the service end according to the configuration query request, a mapping relationship between the ICCID and the phone number is preset in the service end or the database server 103 that can communicate with the service end, and the phone number corresponding to the ICCID may be obtained by configuring the ICCID carried in the query request. Of course, the response result of the query may include the following two cases.
In the first case, the response result indicates that the query is successful, that is, the ICCID and the phone number corresponding to the ICCID are stored in the mapping relationship, and at this time, the response result carries the phone number, which is used as the phone number of the SIM card acquired from the service end.
In the second case, the response result indicates that the query is failed, that is, the mapping relation does not include the information of the ICCID, and the phone number corresponding to the ICCID cannot be queried, at this time, the phone number of the SIM card needs to be obtained according to the module to be tested and the known SM card number module which establishes communication connection with the server. The specific process is as follows:
the USB port number of the module to be tested controls the module to be tested to send a communication message to a known SIM card number in a known SIM card number module, the communication message carries an integrated circuit card identification code of the SIM card and a telephone number of the SIM card, the telephone number of the SIM card is obtained through the known SIM card number module, for example, a service terminal can extract the telephone number of the SIM card from the communication message, and a test terminal obtains the telephone number of the SIM card from the service terminal.
In this embodiment, the communication message may be a message that the module to be tested and the known SIM card number module can communicate, such as a short message (sms) or a multimedia message, or may be a message that mutually communicates through third-party software, without limitation.
In this embodiment, as illustrated by a short message, when the testing end controls the module to be tested to send a short message to the known SIM card number module through the USB port number of the module to be tested, the known SIM card number module can read the SIM card number of the module to be tested (i.e. the phone number of the SIM card), and when sending the short message, the testing end can also carry the ICCID of the SIM card.
Based on the same technical concept, a second embodiment of the present application provides a phone number obtaining method based on machine learning, applied to a server, as shown in fig. 4, including:
step 401, obtaining an integrated circuit card identification code of an SIM card in a module to be tested, which is sent by a testing end;
step 402, according to the integrated circuit card identification code of the SIM card, obtaining the telephone number corresponding to the integrated circuit card identification code from a database, and/or obtaining the telephone number corresponding to the integrated circuit card identification code through a known SIM card number module and a module to be tested;
and 403, sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the test terminal, so that the test terminal updates the local configuration file of the test terminal according to the telephone number and tests the module to be tested according to the configuration file.
In this embodiment, after obtaining the ICCID of the testing end, the service end may obtain the phone number corresponding to the ICCID in multiple ways, may query from the database, or may obtain the phone number from the communication message of the module to be tested received by the known SIM card number module, or may adopt the above two ways at the same time, when adopting the above two ways at the same time, compare the phone numbers respectively obtained, if the two are the same, determine that the phone number is the phone number corresponding to the ICCID, if the two are different, it needs to verify again to ensure the correctness of the phone number, further ensure the accuracy during testing.
In the embodiment, the SIM card information does not need to be manually acquired before the test, and the configuration file does not need to be manually updated, so that the manual operation in the test link is saved, and the test efficiency of the module is improved.
In one embodiment, when the step 402 includes obtaining the phone number from the database and obtaining the phone number through the known SIM card number module and the module to be tested, the step may first query a mapping relationship preset in the database, and if the mapping relationship is not queried, then obtain the phone number through the known SIM card number module and the module to be tested, which specifically includes:
inquiring the telephone number corresponding to the integrated circuit card identification code from a preset mapping relation of a database, wherein the mapping relation is the mapping relation between the integrated circuit card identification code and the telephone number;
if the mapping relation does not contain the integrated circuit card identification code, the communication message sent by the module to be tested is obtained through the known SIM card number module, the communication message carries the integrated circuit card identification code of the SIM card and the telephone number of the SIM card, and the telephone number of the SIM card is used as the telephone number corresponding to the integrated circuit card identification code.
In this embodiment, if the mapping relationship preset in the database does not include the ICCID, the communication message (for example, a short message) sent by the module to be tested is obtained through the known SIM card number module, the phone number of the SIM card is extracted from the short message, and the phone number is used as the phone number corresponding to the ICCID. The method can automatically acquire the SIM card number of the SIM card in the module to be tested without manual input, thereby not only reducing the risk of errors in manual input, but also improving the working efficiency of testing.
When the telephone number corresponding to the integrated circuit card identification code is obtained only through the known SIM card number module and the module to be tested, the telephone number is obtained by specifically obtaining a communication message sent by the module to be tested through the known SIM card number module, wherein the communication message carries the integrated circuit card identification code of the SIM card and the telephone number of the SIM card; and taking the telephone number of the SIM card as the telephone number corresponding to the integrated circuit card identification code.
In one embodiment, after the phone number of the SIM card is used as the phone number corresponding to the integrated circuit card identification code, the phone number and the integrated circuit card identification code corresponding to the phone number may be updated to the mapping relationship in the database, so that the phone number corresponding to the ICCID is directly queried through the mapping relationship when the next query is performed, thereby improving the efficiency of querying the phone number.
In one embodiment, as shown in fig. 5, a phone number obtaining method based on machine learning includes:
step 501, preparing 2 modules to be inserted into SIM cards and connected with a PC;
step 502, automatically obtaining the SIM card number in the module, and filling the configuration file;
step 503, the automation script reads the configuration file for testing.
In the embodiment, the SIM card information does not need to be manually acquired before the test, and the configuration file does not need to be manually updated, so that the manual operation in the test link is saved, and the test efficiency of the module is improved.
The specific steps of automatically obtaining the SIM card number in the module and filling the configuration file in step 502 can be as shown in fig. 6, (two modules to be tested are shown, i.e. the main test module and the auxiliary module for example), and include:
601, prompting a user to input 2 parameters by a PC script, namely USB port numbers of a main test module and an auxiliary module;
step 602, the PC uses the USB port of the module to send AT + CCID, and obtains the ICCID of the SIM card;
603, the PC takes the ICCID as a reference, initiates a request to the server 1# and acquires a telephone number;
step 604, the server 1# receives the request, queries the database server table, and responds the request to the PC;
605, the PC judges the response result of the previous step; if the response result indicates normal, go to step 606, if the response result indicates abnormal, go to step 607;
step 606, if the response information is the SIM card configuration information (phone number), the configuration file is automatically updated;
step 607, the PC sends a short message to the known SIM card number module mounted on the server 1# by using the USB port;
step 608, when the server 1# detects the short message of the module, the short message number and the short message content are obtained and inserted into the database server table.
In this embodiment, the server # 1 functions as: manage the database server table (which can be queried or added) and manage the known SIM card number module.
The database server is used for storing the configuration information of the SIM card, and the mapping relation between the ICCID and the telephone number of the SIM card is stored in the database server.
The module with the known SIM card number is used for receiving the short message and acquiring newly-added SIM card configuration information.
The PC comprises a script which has the functions as follows: obtaining the SIM card configuration information of the appointed port, and updating the port and the telephone number in the configuration file.
The method specifically comprises the following steps:
step 1, the PC script prompts the user to input 2 parameters (a main test module USB port and an auxiliary module USB port), such as: COM1, COM2;
step 2, the PC uses the USB port of the module to send AT + CCID to obtain the ICCID of the SIM card;
step 3, the PC takes the ICCID as a reference, and initiates a request to the server 1# to acquire a telephone number;
step 4, the server 1# receives the request, queries a database server table and then responds the request to the PC (the SIM card matched with the ICCID is configured or empty);
step 5, after receiving the response, the PC judges the response result;
step 6, if the response information is the SIM card configuration, automatically updating the response information into a local configuration file, and ending the process;
step 7, if the response information is empty, executing the subsequent steps (self-learning of the new card database);
step 8, the PC sends a short message to the known SIM card number module mounted on the server 1# by using the USB port, and encryption can be adopted for safety;
and 9, when the server 1# detects the short message of the module, acquiring a short message number and short message content, wherein the short message number is the SIM card number of the module, the short message content comprises the ICCID, inserting the ICCID and the SIM card number into a database server table, and then continuing to perform the steps 3 to 9.
According to the method, the phone number of the SIM card is automatically acquired from the server based on the integrated circuit identification code of the SIM card, the SIM card information does not need to be acquired manually before testing, the configuration file does not need to be updated manually, manual operation in a testing link is saved, and the testing efficiency of the module is improved.
The core improvement point of the method is as follows: the PC requests the server 1#, the information of the module SIM card is automatically acquired, if the SIM card is a new card, the database automatically learns, namely the information of the new card is automatically acquired and inserted into the database, and the information of the SIM card is automatically filled into the corresponding parameter item in the configuration file, so that all manual operations can be saved, and the test efficiency is improved.
Based on the same concept, a phone number obtaining device based on machine learning is provided in the third embodiment of the present application, and for specific implementation of the device, reference may be made to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 7, the apparatus mainly includes:
a first obtaining module 1101, configured to obtain an integrated circuit card identification code of an SIM card in a module to be tested;
a second obtaining module 1102, configured to obtain, from a server, a phone number of the SIM card based on an integrated circuit card identification code of the SIM card, update a local configuration file of a testing terminal according to the phone number of the SIM card, and test the to-be-tested module corresponding to the SIM card according to the configuration file; the telephone number of the SIM card is acquired by the server from a database and/or acquired by the server through a known SIM card number module and the module to be tested; and the known SIM card number module is in communication connection with the server.
The equipment automatically acquires the telephone number of the SIM card from the server based on the integrated circuit identification code of the SIM card, does not need to manually acquire the information of the SIM card before testing, does not need to manually update a configuration file, saves manual operation in a testing link, and improves the testing efficiency of the module.
Based on the same concept, a phone number obtaining device based on machine learning is provided in the fourth embodiment of the present application, and for specific implementation of the device, reference may be made to the description of the method embodiment, repeated details are not repeated, and as shown in fig. 8, the apparatus mainly includes:
a third obtaining module 1201, configured to obtain an integrated circuit card identification code of the SIM card in the module to be tested, where the integrated circuit card identification code is sent by the testing end;
a fourth obtaining module 1202, configured to obtain, according to the integrated circuit card identifier of the SIM card, a phone number corresponding to the integrated circuit card identifier from a database, and/or obtain, through a known SIM card number module and the module to be tested, a phone number corresponding to the integrated circuit card identifier;
a sending module 1203, configured to send the phone number to the testing end as the phone number of the SIM card corresponding to the integrated circuit card identification code, so that the testing end updates a local configuration file of the testing end according to the phone number and tests the module to be tested according to the configuration file.
After the ICCID of the testing end is obtained, the device can obtain the telephone number corresponding to the ICCID in various modes, can inquire the telephone number from a database, can also obtain the telephone number from the communication message of the module to be tested, which is received by the known SIM card number module, or can also adopt the two modes simultaneously, so that the correctness of the telephone number can be ensured, the accuracy in the testing process can be ensured, in addition, the SIM card information does not need to be obtained manually before the testing, the configuration file does not need to be updated manually, the manual operation in the testing link is saved, and the testing efficiency of the module is improved.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 9, the electronic device mainly includes: the system comprises a processor 1301, a memory 1302 and a communication bus 1303, wherein the processor 1301 and the memory 1302 complete communication with each other through the communication bus 1303. Wherein, the memory 1302 stores programs executable by the processor 1301, and the processor 1301 executes the programs stored in the memory 1302 to realize the steps of the telephone number obtaining method based on machine learning.
The communication bus 1303 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1303 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The Memory 1302 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor 1301.
The Processor 1301 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In still another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the machine learning-based telephone number acquisition method described in the above-described embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is merely illustrative of particular embodiments of the invention that enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A telephone number acquisition method based on machine learning is characterized in that the method is applied to a test end and comprises the following steps:
acquiring an integrated circuit card identification code of an SIM card in a module to be tested;
acquiring the telephone number of the SIM card from a service end based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file;
the telephone number of the SIM card is acquired by the server from a database and/or acquired by the server through a known SIM card number module and the module to be tested; and the known SIM card number module is in communication connection with the server.
2. The method of claim 1, wherein obtaining the phone number of the SIM card from the server comprises:
sending a configuration query request to the server, wherein the configuration query request carries the integrated circuit card identification code;
acquiring a response result returned by the server based on the configuration query request and a preset mapping relation; the mapping relation is the mapping relation between the integrated circuit card identification code and the telephone number;
if the response result carries a telephone number, determining that the telephone number is the telephone number of the SIM card;
and if the response result does not carry the telephone number, acquiring the telephone number of the SIM card according to the module to be tested and the known SIM card number module, and taking the telephone number of the SIM card as the telephone number of the SIM card acquired from a server.
3. The method of claim 1, wherein obtaining an integrated circuit card identification number of the SIM card in the module under test comprises:
acquiring a USB port number of the module to be tested;
sending an identification code acquisition instruction through the USB port number;
and acquiring the integrated circuit card identification code of the SIM card returned by the module to be tested based on the identification code acquisition instruction.
4. The method of claim 2, wherein obtaining the phone number of the SIM card from the module under test and the known SIM card number module comprises:
controlling the module to be tested to send a communication message to a known SIM card number in the known SIM card number module through the USB port number of the module to be tested; the communication message carries an integrated circuit card identification code of the SIM card and a telephone number of the SIM card;
and acquiring the telephone number of the SIM card through the known SIM card number module.
5. A telephone number obtaining method based on machine learning is characterized in that the method is applied to a server side and comprises the following steps:
acquiring an integrated circuit card identification code of an SIM card in a module to be tested, which is sent by a testing end;
according to the integrated circuit card identification code of the SIM card, acquiring a telephone number corresponding to the integrated circuit card identification code from a database, and/or acquiring the telephone number corresponding to the integrated circuit card identification code through a known SIM card number module and the module to be tested;
and sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the test end so that the test end updates a local configuration file of the test end according to the telephone number and tests the module to be tested according to the configuration file.
6. The method of claim 5, wherein obtaining the phone number corresponding to the IC card identifier via the known SIM card number module and the module to be tested comprises:
acquiring a communication message sent by the module to be tested through a known SIM card number module; the communication message carries the integrated circuit card identification code of the SIM card and the telephone number of the SIM card; and taking the telephone number of the SIM card as the telephone number corresponding to the integrated circuit card identification code.
7. The method of claim 6, wherein after the communication message sent by the module to be tested is obtained by the known SIM card number module, the method further comprises:
and updating the database according to the telephone number of the SIM card and the integrated circuit card identification code of the SIM card.
8. A telephone number acquisition device based on machine learning is characterized in that the device is applied to a test end and comprises:
the first acquisition module is used for acquiring an integrated circuit card identification code of the SIM card in the module to be tested;
the second acquisition module is used for acquiring the telephone number of the SIM card from a service end based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file; the server side acquires the telephone number of the SIM card from a database and/or acquires the telephone number of the SIM card from the database through a known SIM card number module and the module to be tested; and the known SIM card number module is in communication connection with the server.
9. A telephone number acquisition device based on machine learning is characterized in that, applied to a server, the device comprises:
the third acquisition module is used for acquiring the integrated circuit card identification code of the SIM card in the module to be tested, which is sent by the test end;
a fourth obtaining module, configured to obtain, according to the integrated circuit card identification code of the SIM card, a phone number corresponding to the integrated circuit card identification code from a database, and/or obtain, through a known SIM card number module and the module to be tested, a phone number corresponding to the integrated circuit card identification code;
and the sending module is used for sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the testing end so that the testing end updates a local configuration file of the testing end according to the telephone number and tests the module to be tested according to the configuration file.
10. A telephone number acquisition system based on machine learning, the system comprising: a test terminal and a service terminal;
the test terminal is used for acquiring an integrated circuit card identification code of the SIM card in the module to be tested; acquiring the telephone number of the SIM card from a service end based on the integrated circuit card identification code of the SIM card, updating a local configuration file of a testing end according to the telephone number of the SIM card, and testing the module to be tested corresponding to the SIM card according to the configuration file; the telephone number of the SIM card is acquired by the server from a database and/or acquired by the server through a known SIM card number module and the module to be tested; the known SIM card number module is in communication connection with the server;
the server is used for acquiring an integrated circuit card identification code of the SIM card in the module to be tested, which is sent by the test end; according to the integrated circuit card identification code of the SIM card, acquiring a telephone number corresponding to the integrated circuit card identification code from a database, and/or acquiring the telephone number corresponding to the integrated circuit card identification code through a known SIM card number module and the module to be tested; and sending the telephone number as the telephone number of the SIM card corresponding to the integrated circuit card identification code to the test end.
11. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, and implement the telephone number obtaining method based on machine learning according to any one of claims 1 to 7.
12. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for obtaining a phone number based on machine learning according to any one of claims 1 to 7.
CN202211171128.5A 2022-09-26 2022-09-26 Telephone number acquisition method, equipment, system and medium based on machine learning Active CN115278649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211171128.5A CN115278649B (en) 2022-09-26 2022-09-26 Telephone number acquisition method, equipment, system and medium based on machine learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211171128.5A CN115278649B (en) 2022-09-26 2022-09-26 Telephone number acquisition method, equipment, system and medium based on machine learning

Publications (2)

Publication Number Publication Date
CN115278649A true CN115278649A (en) 2022-11-01
CN115278649B CN115278649B (en) 2022-12-09

Family

ID=83757246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211171128.5A Active CN115278649B (en) 2022-09-26 2022-09-26 Telephone number acquisition method, equipment, system and medium based on machine learning

Country Status (1)

Country Link
CN (1) CN115278649B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484469A (en) * 2002-08-13 2004-03-24 �����ɷ� Collection of internal infor mation of mobile communication terminal by external module
CN2788496Y (en) * 2005-05-12 2006-06-14 宁波普天通信技术有限公司 Mobile communication network multi-service auto dialing and detecting device
CN101895641A (en) * 2010-07-07 2010-11-24 华为技术有限公司 Network line testing device and method
US20120269346A1 (en) * 2011-04-19 2012-10-25 Apriva, Llc Device and system for facilitating communication and networking within a secure mobile environment
CN106899959A (en) * 2017-01-16 2017-06-27 腾讯科技(深圳)有限公司 A kind of method for obtaining SIM card information, device, terminal and system
CN107682219A (en) * 2017-09-14 2018-02-09 厦门集微科技有限公司 A kind of method of testing and device of the testing number based on Android system
WO2018058737A1 (en) * 2016-09-27 2018-04-05 华为技术有限公司 Data connection establishment method and terminal device
US20180270612A1 (en) * 2017-03-17 2018-09-20 SCRRD, Inc. Wireless Device Detection, Tracking, and Authentication Platform and Techniques
CN111132043A (en) * 2019-12-31 2020-05-08 北京指掌易科技有限公司 Method for automatically acquiring current mobile phone SIM card telephone number
CN111328068A (en) * 2020-01-19 2020-06-23 深圳市广和通无线股份有限公司 Card writing method and device, computer equipment and storage medium
TW202029789A (en) * 2019-01-16 2020-08-01 立新 陳 A system and method for intelligent call
CN112105025A (en) * 2020-11-17 2020-12-18 深圳杰睿联科技有限公司 eSIM-based operator network test system and method
CN114615696A (en) * 2020-12-08 2022-06-10 中国联合网络通信集团有限公司 Automatic dial testing method, device, system, server and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484469A (en) * 2002-08-13 2004-03-24 �����ɷ� Collection of internal infor mation of mobile communication terminal by external module
CN2788496Y (en) * 2005-05-12 2006-06-14 宁波普天通信技术有限公司 Mobile communication network multi-service auto dialing and detecting device
CN101895641A (en) * 2010-07-07 2010-11-24 华为技术有限公司 Network line testing device and method
US20120269346A1 (en) * 2011-04-19 2012-10-25 Apriva, Llc Device and system for facilitating communication and networking within a secure mobile environment
WO2018058737A1 (en) * 2016-09-27 2018-04-05 华为技术有限公司 Data connection establishment method and terminal device
CN106899959A (en) * 2017-01-16 2017-06-27 腾讯科技(深圳)有限公司 A kind of method for obtaining SIM card information, device, terminal and system
US20180270612A1 (en) * 2017-03-17 2018-09-20 SCRRD, Inc. Wireless Device Detection, Tracking, and Authentication Platform and Techniques
CN107682219A (en) * 2017-09-14 2018-02-09 厦门集微科技有限公司 A kind of method of testing and device of the testing number based on Android system
TW202029789A (en) * 2019-01-16 2020-08-01 立新 陳 A system and method for intelligent call
CN111132043A (en) * 2019-12-31 2020-05-08 北京指掌易科技有限公司 Method for automatically acquiring current mobile phone SIM card telephone number
CN111328068A (en) * 2020-01-19 2020-06-23 深圳市广和通无线股份有限公司 Card writing method and device, computer equipment and storage medium
CN112105025A (en) * 2020-11-17 2020-12-18 深圳杰睿联科技有限公司 eSIM-based operator network test system and method
CN114615696A (en) * 2020-12-08 2022-06-10 中国联合网络通信集团有限公司 Automatic dial testing method, device, system, server and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ZHITAO H E ET AL: "Software testing evolution process model and growth of software testing quality", 《SCIENCE CHINA INFORMATION SCIENCES》 *
刘建红: "移动数据业务自动拨测***设计及实现", 《中国优秀硕士学位论文全文数据库》 *
彦庆鑫: "电信综合业务自动拨测***设计与实现", 《中国优秀硕士学位论文全文数据库》 *
曾新民: "增值业务拨测***的研究与发现", 《广东通信技术》 *

Also Published As

Publication number Publication date
CN115278649B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN110809255B (en) Card information activation method and device and storage medium
CN111050310A (en) Network switching method, device, terminal equipment and medium
CN110475229B (en) Method and device for accessing service data, computer equipment and storage medium
US20110111750A1 (en) Method for the diagnostic testing of a mobile telephone terminal including contactless applications
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN114727275B (en) Method and related device for processing active command
CN112738046B (en) One-key login method, terminal and system server
CN108990047A (en) Test method, device and the medium of contract signing relationship management data preparation platform
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN111159269A (en) Data processing method, device and system
CN111372224A (en) Method, device and equipment for sharing seed code number by eSIM (embedded subscriber identity Module)
CN109862083B (en) Method, device and equipment for activating Internet of things equipment
CN114401065B (en) Local time calibration method, device, equipment and storage medium
CN115278649B (en) Telephone number acquisition method, equipment, system and medium based on machine learning
CN110213795B (en) Method for simultaneously communicating double SIM cards, mobile terminal and storage medium
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
CN115985382A (en) Flash memory test method, device, equipment and storage medium
CN109600738A (en) Updating method of user information, device, equipment and storage medium
CN113780496B (en) NFC tag data processing method and device
CN115408298A (en) Test method, device and system
CN109446462B (en) Page-based data monitoring processing method, device, equipment and storage medium
CN112995900A (en) SIM card distribution method, device, server and computer readable storage medium
CN105207980A (en) Information processing method and electronic equipment
CN112235784B (en) vSIM-based code number management method, device and equipment
CN113408845B (en) Processing method and device of production flow, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant