[go: up one dir, main page]

CN115226256A - Data switching method and device, electronic equipment and storage medium - Google Patents

Data switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115226256A
CN115226256A CN202210820092.2A CN202210820092A CN115226256A CN 115226256 A CN115226256 A CN 115226256A CN 202210820092 A CN202210820092 A CN 202210820092A CN 115226256 A CN115226256 A CN 115226256A
Authority
CN
China
Prior art keywords
sim card
data
application program
information
target
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.)
Pending
Application number
CN202210820092.2A
Other languages
Chinese (zh)
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 One Account Technology Co ltd
Original Assignee
Shenzhen One Account Technology 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 One Account Technology Co ltd filed Critical Shenzhen One Account Technology Co ltd
Priority to CN202210820092.2A priority Critical patent/CN115226256A/en
Publication of CN115226256A publication Critical patent/CN115226256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a data analysis technology, and discloses a data switching method, which comprises the following steps: inquiring that the data server address has corresponding program information as target program information in a preset program server address data table; if the query is not received, acquiring program information of a foreground running program of the terminal to obtain target program information; carrying out associated screening on SIM card identifications of all SIM cards in the terminal by using the target program information to obtain a target SIM card identification; and judging whether the target SIM card identification is consistent with the service SIM card identification, and judging whether the SIM card carrying the data service currently in the switching terminal responds to the network data transmission request according to the judgment result. The invention also relates to a block chaining technique, the data server addresses can be stored in block chain link points. The invention also provides a data switching device, equipment and a medium. The invention can improve the efficiency of data switching.

Description

Data switching method and device, electronic equipment and storage medium
Technical Field
The present invention relates to data analysis technologies, and in particular, to a data switching method and apparatus, an electronic device, and a storage medium.
Background
Most mobile phones in the market are dual-card dual-standby, and two different SIM cards are installed on a plurality of mobile phones. At present, SIM cards with different application directional plane flows are released by mobile, telecommunication and Unicom, and users often switch corresponding flow-free SIM cards for data switching according to different applications in order to save mobile phone flow.
However, the current data switching can only be performed according to a fixed rule (for example, switching in a fixed time period), and cannot be matched with the currently used application in time, so that the data switching efficiency is low.
Disclosure of Invention
The invention provides a data switching method, a data switching device, electronic equipment and a storage medium, and mainly aims to improve the efficiency of data switching.
Acquiring a service SIM card identifier of an SIM card currently bearing data service in a terminal and a network data transmission request comprising a data server address, wherein the terminal is at least provided with two SIM cards;
when the data server address has corresponding application program information in a preset application program server address data table, determining the application program information corresponding to the data server address as target application program information;
when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
performing associated screening on the SIM card identifications of all SIM cards in the terminal by using the target application program information and a preset application program networking SIM data table to obtain a target SIM card identification;
when the target SIM card identification is consistent with the service SIM card identification, responding the network data transmission request based on the SIM card bearing the data service currently;
and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card carrying the data service currently in the terminal according to the target SIM card identification, and responding the network data transmission request based on the switched SIM card carrying the data service currently.
Optionally, when the data server address has corresponding application program information in a preset application program server address data table, determining the application program information corresponding to the data server address as target application program information, including:
using the data server address as a query condition to query corresponding application program information in the application program server address data table to obtain a query result;
when the query result is not empty, determining the query result as the target program information.
Optionally, the obtaining application information of the application running on the foreground of the terminal to obtain target application information includes:
acquiring a current display picture of the terminal;
identifying application program information of an application program to which the current display picture belongs based on an image identification algorithm to obtain identified application program information;
similarity calculation is carried out by utilizing the identification application program information and the application program information of each application program in the terminal to obtain corresponding information similarity;
and screening all the application program information according to the information similarity to obtain the target application program information.
Optionally, the screening all the application information according to the information similarity to obtain target application information includes:
selecting the information similarity larger than a preset information similarity threshold value from all the information similarities to obtain initial information similarity;
selecting the maximum value of all the initial information similarities to obtain the target information similarity;
and determining the application program information corresponding to the similarity of the target information as the target application program information.
Optionally, the performing similarity calculation by using the identified application information and the application information of each application in the terminal to obtain corresponding information similarity includes:
converting the identification application program information into a vector to obtain an identification information vector;
converting the application program information into a vector to obtain an information vector;
and calculating the similarity between the identification information vector and the information vector to obtain the information similarity.
Optionally, the switching, according to the target SIM card identifier, the SIM card currently carrying the data service in the terminal includes:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
and switching the SIM card currently bearing the data service in the terminal into the target SIM card.
Optionally, the switching the SIM card currently carrying the data service in the terminal according to the target SIM card identifier includes:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
acquiring a signal intensity parameter of the target SIM card, and judging whether the signal intensity parameter is greater than or equal to a preset intensity threshold value;
and when the signal intensity parameter is greater than or equal to a preset intensity threshold value, switching the SIM card currently bearing the data service in the terminal into the target SIM card.
In order to solve the above problem, the present invention also provides a data switching apparatus, comprising:
the application screening module is used for acquiring a service SIM card identifier of an SIM card currently bearing data service in the terminal and a network data transmission request comprising a data server address, wherein the terminal is provided with at least two SIM cards; when the data server address is inquired in a preset application server address data table to have corresponding application program information, determining the application program information corresponding to the data server address as target application program information; when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
the SIM card screening module is used for carrying out associated screening on the SIM card identifications of all the SIM cards in the terminal by utilizing the target application program information and a preset application program networking SIM data table to obtain target SIM card identifications;
the data switching module is used for responding the network data transmission request based on the SIM card bearing the data service currently when the target SIM card identification is consistent with the service SIM card identification; and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card currently bearing the data service in the terminal according to the target SIM card identification, and responding to the network data transmission request based on the switched SIM card currently bearing the data service.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and the processor executes the computer program stored in the memory to realize the data switching method.
In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the data switching method described above.
In the embodiment of the invention, when the data server address is inquired in a preset application server address data table to have the corresponding application program information, the application program information corresponding to the data server address is determined as the target application program information; when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information; when the target SIM card identification is inconsistent with the service SIM card identification, switching an SIM card currently bearing data services in the terminal according to the target SIM card identification, and responding to the network data transmission request based on the switched SIM card currently bearing data services; the data switching method, the device, the electronic equipment and the readable storage medium provided by the embodiment of the invention improve the data switching efficiency by dynamically judging whether the currently networked SIM card is the SIM card which sends the network data transmission request and is matched with the application program and realizing the dynamic data switching of the SIM card according to the judgment result without switching according to a fixed rule.
Drawings
Fig. 1 is a schematic flow chart of a data handover method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a data switching apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device implementing a data switching method according to an embodiment of the present invention;
the implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a data switching method. The execution subject of the data switching method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the data switching method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: the cloud server can be an independent server, or can be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Referring to fig. 1, a schematic flow chart of a data switching method according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the data switching method includes:
s1, obtaining a service SIM card identification of an SIM card currently bearing data service in a terminal and a network data transmission request comprising a data server address, wherein the terminal is provided with at least two SIM cards.
In the embodiment of the present invention, the terminal is an intelligent terminal that is installed with at least two SIM (Subscriber Identity Module) cards and performs data networking by using a SIM card to carry data services, for example: the network transmission request is a request that an application program running in the terminal needs to perform network data transmission with a server. The SIM card may be an entity SIM card or a virtual SIM card (e.g., eSIM), and the embodiment of the present invention does not limit the specific expression form of the SIM card.
Specifically, in the embodiment of the present invention, the SIM card currently carrying the data service is the SIM card currently performing the networking data service in the terminal, and the service SIM card identifier is the SIM card identifier of the SIM card currently carrying the data service, and is used to distinguish different SIM cards, which may be SIM card IDs.
In another embodiment of the present invention, the address of the data server may be stored in a blockchain node, and the data access efficiency is improved by using the characteristic of high throughput of the blockchain node.
And S2, judging whether application program information corresponding to the address of the data server can be inquired in a preset application program server address data table or not.
Specifically, in the embodiment of the present invention, the application server address includes application information of different applications and corresponding data server addresses, where the application information is identification information of the application, and can be used to distinguish the different applications, for example: the application program name, the range of the application program information is not limited in the embodiment of the invention; the data server addresses are server addresses of different application programs, and the addresses of the servers corresponding to the application programs are different, so that the application program information of the corresponding application programs can be inquired through the data server addresses.
Further, in order to better select the SIM to respond to the network data transmission request for data transmission, the embodiment of the present invention needs to determine which application data server address the data server address is. Therefore, the application information corresponding to the data server address needs to be queried in a preset application server address data table.
In detail, in the embodiment of the present invention, the data server address is used as a query condition to query the corresponding application information in the application server address data table, so as to obtain a query result; and judging whether the application program information corresponding to the data server address can be inquired in a preset application program server address data table or not by judging whether the inquiry result is empty or not.
And S3, when the data server address has corresponding application program information in a preset application program server address data table, determining the application program information corresponding to the data server address as target application program information.
In detail, in the embodiment of the present invention, when the query result is not empty, the query result is determined as the target program information.
And S4, when the application program information corresponding to the address of the data server cannot be inquired in a preset application program server address data table, acquiring the application program information of the application program operated by the terminal foreground, and acquiring the target application program information.
In detail, in the embodiment of the present invention, when the query result is null, it indicates that the application information corresponding to the data server address is not queried in the application server address data table, and it is necessary to search for the application information corresponding to the data server address by using other methods.
Optionally, since the network transmission request is generally sent by an application running in the foreground of the terminal, in the embodiment of the present invention, the application information of the application running in the foreground of the terminal is used as the application information corresponding to the address of the data server, so that the application information of the application running in the foreground of the terminal is obtained, and the target application information is obtained.
In the embodiment of the present invention, acquiring application information of the application running on the foreground of the terminal to obtain target application information includes:
step A: acquiring a current display picture of the terminal;
in the embodiment of the invention, the current display interface in the terminal is a program interface of the foreground running application program of the terminal.
And B: identifying application program information of an application program to which the current display picture belongs based on an image identification algorithm to obtain identified application program information;
optionally, the image recognition algorithm in the embodiment of the present invention may be a deep learning model (such as a convolutional neural network model) or an image recognition algorithm (such as an OCR algorithm), and the embodiment of the present invention does not limit the specific form and scope of the image recognition algorithm.
Step C: similarity calculation is carried out by utilizing the identification application program information and the application program information of each application program in the terminal to obtain corresponding information similarity;
step D: and screening all the application program information according to the information similarity to obtain target application program information.
Further, in the embodiment of the present invention, performing similarity calculation using the identification application information and the application information of each application in the terminal to obtain corresponding information similarity includes:
step a: converting the identification application program information into a vector to obtain an identification information vector;
step b: converting the application program information into a vector to obtain an information vector;
in the embodiment of the invention, the word2vec model and onehot algorithm can be used for converting the application information into the vector, and the method for converting the application information into the vector is not limited by the scope of the embodiment of the invention.
Step c: and calculating the similarity between the identification information vector and the information vector to obtain the information similarity.
Specifically, in the embodiment of the present invention, the screening all the application information according to the information similarity to obtain the target application information includes:
step I: selecting the information similarity larger than a preset information similarity threshold value from all the information similarities to obtain initial information similarity;
step II: selecting the maximum value of all the initial information similarities to obtain the target information similarity;
step III: and determining the application program information corresponding to the similarity of the target information as the target application program information.
Another embodiment of the present invention is an embodiment of acquiring application information of an application running on a foreground of a terminal to obtain target program information, where the method includes:
calling a pre-constructed operation program information acquisition interface function in the terminal to obtain an operation program information sequence;
optionally, in the embodiment of the present invention, the terminal is an android system terminal, the running program information acquiring interface function is getruning name (), a sequence of application program information of all successively running application programs in the terminal can be obtained by calling a running program information acquiring interface function pre-constructed in the terminal, and an application program running at the front end is an application program running at the latest running time as the running time of the application program is earlier and the application program information corresponding to the sequence is later in the month, that is, the first application program information in the running program information series is the application program information of the application program running at the foreground of the terminal.
And selecting the first application program information in the running program information sequence to obtain the target program information.
For example: the run program information sequence is [ application B, application a ], and then the target program information is "application B".
And S5, carrying out associated screening on the SIM card identifications of all the SIM cards in the terminal by using the target application program information and a preset application program networking SIM data table to obtain the target SIM card identifications.
In detail, the application program networking SIM card data table in the embodiment of the present invention is a data table containing SIM card identifiers of recommended networking SIM cards corresponding to application program information of different application programs. Such as: and recommending the SIM card A to be used for networking the application program A, wherein the application program information 'application program A' in the SIM card networking data table corresponds to the SIM card identifier 'SIM card A'.
In the embodiment of the invention, an SIM card identifier corresponding to the target application program information is inquired in a preset application program networking SIM data table to obtain a target SIM card identifier;
and S6, judging whether the target SIM card identification is consistent with the service SIM card identification.
In order to determine whether the SIM card networked in the terminal is the SIM card matched with the application program sending the network data transmission request, it is necessary to determine whether the target SIM card identifier is consistent with the service SIM card identifier.
And S7, when the target SIM card identification is consistent with the service SIM card identification, responding the network data transmission request based on the SIM card bearing the data service currently.
In the embodiment of the invention, the SIM card bearing the data service currently is used for bearing the data service connection network to respond to the network data request, and the server corresponding to the address of the data server carries out data transmission.
S8, when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card carrying the data service currently in the terminal according to the target SIM card identification, and responding the network data transmission request based on the switched SIM card carrying the data service currently.
In the embodiment of the present invention, switching the SIM card currently carrying the data service in the terminal according to the target SIM card identifier includes:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
and switching the SIM card currently bearing the data service in the terminal into the target SIM card.
Further, in another embodiment of the present invention, switching the SIM card currently carrying the data service in the terminal according to the target SIM card identifier includes:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
acquiring a signal intensity parameter of the target SIM card, and judging whether the signal intensity parameter is greater than or equal to a preset intensity threshold value;
and when the signal intensity parameter is greater than or equal to a preset intensity threshold value, switching the SIM card currently carrying the data service in the terminal into the target SIM card.
And when the signal intensity parameter is smaller than the intensity threshold value, not switching the SIM card currently bearing the data service in the terminal.
In another embodiment of the present invention, switching the SIM card currently carrying the data service in the terminal according to the target SIM card identifier includes:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
acquiring a signal intensity parameter of the target SIM card, and judging whether the signal intensity parameter is within a preset intensity threshold interval;
in the embodiment of the present invention, the signal strength parameter is a parameter representing the strength of the target SIM signal, and the expression form of the signal strength parameter is not limited in the embodiment of the present invention.
Further, in order to avoid that the target SIM signal strength cannot meet the networking requirement (e.g. no signal), the signal strength needs to be detected, so that it is determined whether the signal strength parameter is within a preset strength threshold interval, where the strength threshold interval is a threshold interval representing the signal strength.
And when the signal intensity parameter is within a preset intensity threshold value interval, switching the SIM card currently bearing the data service in the terminal into the target SIM card.
And when the signal intensity parameter is not in the preset intensity threshold value interval, not switching the SIM card currently carrying the data service in the terminal.
Further, the embodiment of the present invention utilizes the switched SIM card carrying data service to connect the network to respond to the network data request, and performs data transmission with the server corresponding to the data server address.
Fig. 2 is a functional block diagram of the data switching apparatus according to the present invention.
The data switching apparatus 100 of the present invention may be installed in an electronic device. According to the implemented functions, the data switching device may include an application screening module 101, a SIM card screening module 102, and a data switching module 103, which may also be referred to as a unit, and refer to a series of computer program segments that can be executed by a processor of the electronic device and can perform fixed functions, and are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the application screening module 101 is configured to obtain a service SIM card identifier of an SIM card currently carrying a data service in a terminal and a network data transmission request including a data server address, where the terminal is equipped with at least two SIM cards; when the data server address is inquired in a preset application server address data table to have corresponding application program information, determining the application program information corresponding to the data server address as target application program information; when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
the SIM card screening module 102 is configured to perform associated screening on SIM card identifiers of all SIM cards in the terminal by using the target application information and a preset application networking SIM data table, so as to obtain a target SIM card identifier;
the data switching module 103 is configured to respond to the network data transmission request based on the current data service-bearing SIM card when the target SIM card identifier is consistent with the service SIM card identifier; and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card currently bearing the data service in the terminal according to the target SIM card identification, and responding to the network data transmission request based on the switched SIM card currently bearing the data service.
In detail, when the modules in the data switching apparatus 100 according to the embodiment of the present invention are used, the same technical means as the data switching method described in fig. 1 are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 3 is a schematic structural diagram of an electronic device implementing the data switching method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a data switching program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a data switching program, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., data switching programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
Fig. 3 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 3 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions such as charge management, discharge management, and power consumption management are implemented through the power management device. The power source may also include any component of one or more dc or ac power sources, recharging devices, power failure classification circuits, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Optionally, the communication interface 13 may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), and optionally, a standard wired interface, or a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The data switching program stored in the memory 11 of the electronic device is a combination of a plurality of computer programs, and when running in the processor 10, can realize:
acquiring a service SIM card identifier of an SIM card currently bearing data service in a terminal and a network data transmission request comprising a data server address, wherein the terminal is at least provided with two SIM cards;
when the data server address is inquired in a preset application server address data table to have corresponding application program information, determining the application program information corresponding to the data server address as target application program information;
when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
carrying out associated screening on SIM card identifications of all SIM cards in the terminal by using the target application program information and a preset application program networking SIM data table to obtain a target SIM card identification;
when the target SIM card identification is consistent with the service SIM card identification, responding the network data transmission request based on the SIM card bearing the data service currently;
and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card carrying the data service currently in the terminal according to the target SIM card identification, and responding the network data transmission request based on the switched SIM card carrying the data service currently.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
acquiring a service SIM card identifier of an SIM card currently bearing data service in a terminal and a network data transmission request comprising a data server address, wherein the terminal is at least provided with two SIM cards;
when the data server address is inquired in a preset application server address data table to have corresponding application program information, determining the application program information corresponding to the data server address as target application program information;
when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
carrying out associated screening on SIM card identifications of all SIM cards in the terminal by using the target application program information and a preset application program networking SIM data table to obtain a target SIM card identification;
when the target SIM card identification is consistent with the service SIM card identification, responding the network data transmission request based on the SIM card bearing the data service currently;
and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card currently bearing the data service in the terminal according to the target SIM card identification, and responding to the network data transmission request based on the switched SIM card currently bearing the data service.
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method of data handover, the method comprising:
acquiring a service SIM card identifier of an SIM card currently bearing data service in a terminal and a network data transmission request comprising a data server address, wherein the terminal is at least provided with two SIM cards;
when the data server address is inquired in a preset application server address data table to have corresponding application program information, determining the application program information corresponding to the data server address as target application program information;
when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
carrying out associated screening on SIM card identifications of all SIM cards in the terminal by using the target application program information and a preset application program networking SIM data table to obtain a target SIM card identification;
when the target SIM card identification is consistent with the service SIM card identification, responding the network data transmission request based on the SIM card bearing the data service currently;
and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card carrying the data service currently in the terminal according to the target SIM card identification, and responding the network data transmission request based on the switched SIM card carrying the data service currently.
2. The data switching method according to claim 1, wherein when it is found in a data table of a preset application server address that the data server address has corresponding application information, determining the application information corresponding to the data server address as target application information, includes:
using the data server address as a query condition to query corresponding application program information in the application program server address data table to obtain a query result;
when the query result is not empty, determining the query result as the target program information.
3. The data switching method according to claim 1, wherein the obtaining application information of the application running in the foreground of the terminal to obtain target application information comprises:
acquiring a current display picture of the terminal;
identifying application program information of an application program to which the current display picture belongs based on an image identification algorithm to obtain identified application program information;
performing similarity calculation by using the identification application program information and the application program information of each application program in the terminal to obtain corresponding information similarity;
and screening all the application program information according to the information similarity to obtain the target application program information.
4. The data switching method according to claim 3, wherein the screening all the application information according to the information similarity to obtain target application information comprises:
selecting the information similarity larger than a preset information similarity threshold value from all the information similarities to obtain initial information similarity;
selecting the maximum value of all the initial information similarities to obtain the target information similarity;
and determining the application program information corresponding to the target information similarity as the target application program information.
5. The data switching method according to claim 3, wherein the obtaining of the corresponding information similarity by performing similarity calculation between the identified application information and the application information of each application in the terminal comprises:
converting the identification application program information into a vector to obtain an identification information vector;
converting the application program information into a vector to obtain an information vector;
and calculating the similarity between the identification information vector and the information vector to obtain the information similarity.
6. The data switching method according to claim 1, wherein the switching the SIM card currently carrying the data service in the terminal according to the target SIM card identifier comprises:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
and switching the SIM card currently bearing the data service in the terminal into the target SIM card.
7. The data switching method according to any one of claims 1 to 6, wherein the switching the SIM card currently carrying the data service in the terminal according to the target SIM card identifier includes:
selecting an SIM card corresponding to the target SIM identification in the terminal to obtain a target SIM card;
acquiring a signal intensity parameter of the target SIM card, and judging whether the signal intensity parameter is greater than or equal to a preset intensity threshold value;
and when the signal intensity parameter is greater than or equal to a preset intensity threshold value, switching the SIM card currently carrying the data service in the terminal into the target SIM card.
8. A data switching apparatus, comprising:
the application screening module is used for acquiring a service SIM card identifier of an SIM card currently bearing data service in the terminal and a network data transmission request comprising a data server address, wherein the terminal is provided with at least two SIM cards; when the data server address is inquired in a preset application server address data table to have corresponding application program information, determining the application program information corresponding to the data server address as target application program information; when the application program information corresponding to the data server address cannot be inquired in the application program server address data table, acquiring the application program information of the application program operated by the terminal foreground to obtain target application program information;
the SIM card screening module is used for performing associated screening on the SIM card identifications of all SIM cards in the terminal by using the target application program information and a preset application program networking SIM data table to obtain a target SIM card identification;
the data switching module is used for responding the network data transmission request based on the SIM card bearing the data service currently when the target SIM card identification is consistent with the service SIM card identification; and when the target SIM card identification is inconsistent with the service SIM card identification, switching the SIM card carrying the data service currently in the terminal according to the target SIM card identification, and responding the network data transmission request based on the switched SIM card carrying the data service currently.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the data handover method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the data switching method according to any one of claims 1 to 7.
CN202210820092.2A 2022-07-12 2022-07-12 Data switching method and device, electronic equipment and storage medium Pending CN115226256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820092.2A CN115226256A (en) 2022-07-12 2022-07-12 Data switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820092.2A CN115226256A (en) 2022-07-12 2022-07-12 Data switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115226256A true CN115226256A (en) 2022-10-21

Family

ID=83611656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820092.2A Pending CN115226256A (en) 2022-07-12 2022-07-12 Data switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115226256A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166678A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for monitoring mobile data usage amount, mobile phone, and electronic device
WO2019011169A1 (en) * 2017-07-10 2019-01-17 深圳市优克联新技术有限公司 Sim card state determining method and apparatus
CN109951841A (en) * 2019-03-19 2019-06-28 北京金山安全软件有限公司 Data card switching method and device and electronic equipment
CN110072228A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 A kind of method for switching network, terminal and computer readable storage medium
CN114584608A (en) * 2022-02-09 2022-06-03 北信源系统集成有限公司 Network switching method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166678A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for monitoring mobile data usage amount, mobile phone, and electronic device
WO2019011169A1 (en) * 2017-07-10 2019-01-17 深圳市优克联新技术有限公司 Sim card state determining method and apparatus
CN109951841A (en) * 2019-03-19 2019-06-28 北京金山安全软件有限公司 Data card switching method and device and electronic equipment
CN110072228A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 A kind of method for switching network, terminal and computer readable storage medium
CN114584608A (en) * 2022-02-09 2022-06-03 北信源系统集成有限公司 Network switching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112396005A (en) Biological characteristic image recognition method and device, electronic equipment and readable storage medium
CN113435308A (en) Text multi-label classification method, device, equipment and storage medium
CN113806434A (en) Big data processing method, device, equipment and medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN113704616A (en) Information pushing method and device, electronic equipment and readable storage medium
CN115102770A (en) Resource access method, device and equipment based on user permission and storage medium
CN114398194A (en) Data collection method and device, electronic equipment and readable storage medium
CN113452703B (en) Combined communication request response method and device, electronic equipment and readable storage medium
CN113672482A (en) Log message transmission method, device, equipment and medium of terminal equipment
CN114125024A (en) Audio transmission method, electronic device and readable storage medium
CN115238204B (en) Data reporting method, device, electronic equipment and storage medium
CN113918305B (en) Node scheduling method, node scheduling device, electronic equipment and readable storage medium
CN113452785B (en) Service access method and device based on offline resources, electronic equipment and medium
CN114640707A (en) Message asynchronous processing method and device, electronic equipment and storage medium
CN114723400B (en) Service authorization management method, device, equipment and storage medium
CN116339882B (en) Office system collaborative display method, device, equipment and medium based on Internet of things
CN115174698B (en) Market data decoding method, device, equipment and medium based on table entry index
CN115226256A (en) Data switching method and device, electronic equipment and storage medium
CN115204158B (en) Data isolation application method and device, electronic equipment and storage medium
CN114745280B (en) Asset information management method, device, equipment and readable storage medium
CN117041354A (en) Method, device, equipment and storage medium for routing request of micro-service
CN113191456A (en) Document generation method, device, equipment and medium based on text recognition technology
CN115033510A (en) Component communication method, device, electronic device and storage medium
CN114996386A (en) Service role identification method, device, device and storage medium
CN114936780A (en) Activity resource pre-estimation method and device, electronic equipment and readable 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20221021