CN114244950B - Data switching method, device, electronic equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN114244950B
CN114244950B CN202111533381.6A CN202111533381A CN114244950B CN 114244950 B CN114244950 B CN 114244950B CN 202111533381 A CN202111533381 A CN 202111533381A CN 114244950 B CN114244950 B CN 114244950B
Authority
CN
China
Prior art keywords
data
data card
mobile terminal
card
identification information
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.)
Active
Application number
CN202111533381.6A
Other languages
Chinese (zh)
Other versions
CN114244950A (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.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu 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 TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202111533381.6A priority Critical patent/CN114244950B/en
Publication of CN114244950A publication Critical patent/CN114244950A/en
Application granted granted Critical
Publication of CN114244950B publication Critical patent/CN114244950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72421User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a data switching method, a data switching device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: determining a data card interface generated after the mobile terminal is inserted into the data card, wherein the data card interface is used for realizing data interaction between the mobile terminal and the data card; determining the data switch type of the data card interface according to the equipment identification information of the mobile terminal; and according to the data switch type, performing data switch adjustment on the data card interface. Different equipment identification information can be correspondingly set according to different data switch requirements, so that after the mobile terminal is inserted into the data card, the data switch type of the data card can be automatically determined according to the equipment identification information, the data switch of the data card is automatically adjusted according to the data switch type, and the accuracy of setting of the data switch of the mobile terminal is improved.

Description

Data switching method, device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a data switching method, a data switching device, electronic equipment and a computer readable storage medium.
Background
With rapid development of computer technology, the types of mobile terminals are increasing, and the state of a data switch of a mobile terminal (such as a smart phone) can be set by default when leaving a factory, but due to different demands of users, accurate setting of the data switch is difficult.
Disclosure of Invention
The embodiment of the application provides a data switching method, a data switching device, electronic equipment and a computer readable storage medium, which can improve the accuracy of mobile terminal data switching setting.
In a first aspect, an embodiment of the present application provides a data switching method, which is applied to a mobile terminal, including:
determining a data card interface generated after the mobile terminal is inserted into a data card, wherein the data card interface is used for realizing data interaction between the mobile terminal and the data card;
determining the data switch type of the data card interface according to the equipment identification information of the mobile terminal;
and according to the data switch type, performing data switch adjustment on the data card interface.
In a second aspect, an embodiment of the present application further provides a data switching device, which is applied to a mobile terminal, including:
the interface determining module is used for determining a data card interface generated after the mobile terminal is inserted into a data card, and the data card interface is used for realizing data interaction between the mobile terminal and the data card;
the type determining module is used for determining the data switch type of the data card interface according to the equipment identification information of the mobile terminal;
and the adjusting module is used for adjusting the data switch of the data card interface according to the data switch type.
Wherein, in some embodiments of the application, the apparatus further comprises an identification information determining module, the identification information determining module comprising:
a first identifier determining unit, configured to determine server information of the mobile terminal, and determine device identifier information of the mobile terminal according to the server information;
or alternatively, the first and second heat exchangers may be,
and the second identification determining unit is used for determining target pin location information of the mobile terminal and determining equipment identification information of the mobile terminal according to the target pin location information.
Wherein, in some embodiments of the application, the type determination module comprises:
the system comprises a set acquisition unit, a data switch type acquisition unit and a data switch type acquisition unit, wherein the set acquisition unit is used for acquiring a mapping relation set which comprises mapping relation between preset equipment identification information and preset data switch types;
and the type determining unit is used for determining the data switch type corresponding to the equipment identification information according to the mapping relation set.
Wherein, in some embodiments of the application, the adjustment module comprises:
the attribute determining unit is used for determining a default attribute of the data switch of the data card interface;
the first adjusting unit is used for directly adjusting the default attribute of the data switch to be closed when the data switch type is closed;
the second adjusting unit is used for determining the actual number of the data cards in the mobile terminal when the data switch type is on, and respectively carrying out data switch adjustment on the data card interfaces corresponding to the data cards according to the actual number;
and the third adjusting unit is used for adjusting the default attribute of the data switch to be closed when the data switch type is closed under the condition that the data card interface meets the preset condition.
Wherein, in some embodiments of the application, the second adjusting unit comprises:
the first opening adjustment subunit is used for directly adjusting the default attribute of the data switch of the data card to be opened when the data card is one;
and the second opening adjustment subunit is used for determining the first data card and the second data card of the mobile terminal when the number of the data cards is two, adjusting the default attribute of the data switch of the first data card to be on, and adjusting the default attribute of the data switch of the second data card to be off.
Wherein, in some embodiments of the application, the third adjusting unit comprises:
a default identification determining subunit, configured to determine a default data card of the mobile terminal before the data card is inserted, and default identification information of the default data card;
an actual identification determining subunit, configured to determine at least one data card of the mobile terminal after the data card is inserted, and actual identification information of each data card;
the first closing adjustment subunit is used for adjusting the default attribute of the data switch corresponding to each data card to be closed when the actual identification information does not contain the default identification information;
and the second closing adjustment subunit is used for keeping the data switch state of the data card corresponding to the default identification information when the default identification information is contained in each piece of actual identification information, and simultaneously adjusting the default attribute of the data switch of the data card corresponding to the rest of the actual identification information to be closed.
Wherein, in some embodiments of the application, the apparatus further comprises a response unit comprising:
and the user adjustment subunit is used for receiving a data switch starting instruction generated after the touch screen operation by a user, and performing data switch adjustment on the data card interface according to the data switch starting instruction.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps in the data switching method described above when executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps in the data switching method described above.
After the mobile terminal is inserted into the data card, the data switch type of the data card is determined through the equipment identification information of the mobile terminal, and the data switch of the data card is adjusted according to the data switch type, so that the automatic adjustment of the data switch inserted into the data card is realized. Different device identification information can be correspondingly set according to different data switch requirements, so that after the mobile terminal is inserted into the data card, the data switch type of the data card can be automatically determined according to the device identification information, and the accuracy of setting of the data switch of the mobile terminal is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a scenario of a data switching method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data switching method according to an embodiment of the present application;
FIG. 3 is another flow chart of a data switching method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data switching device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a data switching method, a data switching device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the application provides a data switching device suitable for a mobile terminal, wherein the mobile terminal can comprise a mobile phone.
Referring to fig. 1, taking a method of executing data switching by a mobile phone as an example, the specific execution process is as follows:
after the mobile phone 10 is inserted into the data card 11, a data card interface corresponding to the data card 11 is formed in the mobile phone 10, where the data card interface is used to implement data interaction between the mobile phone 10 and the data card 11, for example, implement data traffic in the mobile phone using the data card 11 through the data card interface, where the data card 11 includes a mobile phone card (Sim).
After the data card interface is generated in the mobile phone 10, the data switch type corresponding to the mobile phone is determined according to the device identification information of the mobile phone 10, and the data switch adjustment is automatically performed on the data card interface according to the data switch type.
The device identification information of the mobile phone can be determined in advance according to requirements, for example, corresponding device identification information is determined in advance according to requirements of the data switch, and after the mobile phone is inserted into the data card, the data switch type of the data card can be automatically determined according to the device identification information, so that the data switch of the data card can be adjusted.
After the mobile terminal is inserted into the data card, the data switch type of the data card is determined through the equipment identification information of the mobile terminal, and the data switch of the data card is adjusted according to the data switch type, so that automatic adjustment of the data switch inserted into the data card is realized. Different device identification information can be correspondingly set according to different data switch requirements, so that after the mobile terminal is inserted into the data card, the data switch type of the data card can be automatically determined according to the device identification information, and the accuracy of setting of the data switch of the mobile terminal is improved.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
Referring to fig. 2, fig. 2 is a flow chart of a data switching method according to an embodiment of the application. The data switching method is applied to the mobile terminal, and the specific flow can be as follows:
101. and determining a data card interface generated after the mobile terminal is inserted into the data card, wherein the data card interface is used for realizing data interaction between the mobile terminal and the data card.
After the mobile terminal is inserted into the data card, interface information corresponding to the data card is formed on the mobile terminal, for example, operator information, flow information and the like of the data card are displayed in the setting of the mobile phone, the interface information is a view representation of the interface of the data card, and a user can select a default data flow card, operate a network switch and the like through the interface information.
In the embodiment of the application, the mobile terminal comprises a mobile phone, and the data card comprises a mobile phone card or a flow card.
102. And determining the data switch type of the data card interface according to the equipment identification information of the mobile terminal.
Wherein in the embodiment of the application, the device identification information comprises a device code (ECID), wherein the device code is a special identification of an operator or an area, and different operators or different areas have different device codes, which is a system attribute value.
Wherein, the data switch type of the data card interface is determined by the device code, so that the setting of the data switch can be matched with the requirements of operators (service providers) or areas.
Wherein, in order to make the data switch of the mobile terminal meet the requirement of the user, the determining and setting of the device identification information of the mobile terminal may be performed according to the requirement of the operator or the area, that is, optionally, before the step of determining the data switch type of the data card interface according to the device identification information of the mobile terminal in some embodiments of the present application, the method further includes:
determining service provider information of the mobile terminal, and determining equipment identification information of the mobile terminal according to the service provider information;
or alternatively, the first and second heat exchangers may be,
and determining target pin location information of the mobile terminal, and determining equipment identification information of the mobile terminal according to the target pin location information.
The device identification information of the mobile terminal is determined through the information of an operator (service provider) or the information of a target selling place, so that the data switch of the mobile terminal can meet or meet the data switch requirement of the operator or the selling place.
In the embodiments of the present application, the data switch type corresponding to the mobile terminal may be determined according to a mapping relationship between device identification information and a data switch type, that is, optionally, in some embodiments of the present application, the step of determining, according to device identification information of the mobile terminal, the data switch type of the data card interface includes:
obtaining a mapping relation set, wherein the mapping relation set comprises mapping relation between preset equipment identification information and preset data switch types;
and determining the data switch type corresponding to the equipment identification information according to the mapping relation set.
The mapping relation set includes mapping relation between equipment identification information and data switch types, namely, the data switch types corresponding to the equipment identification information are recorded, and the data switch type corresponding to the equipment identification information of the current mobile terminal can be selected in the mapping relation.
In the embodiment of the application, the equipment identification information corresponding to the data switch type of the operator or the selling place can be determined according to the mapping relation set, and the equipment identification information of the mobile terminal can be determined and set.
In the embodiment of the present application, the mapping relation set may be designed according to actual needs, for example, according to statistics of data switch requirements of each area or operator, to obtain the mapping relation set.
103. And according to the data switch type, performing data switch adjustment on the data card interface.
The data switch adjustment is performed on the data card interface according to the data switch type, so that the data switch state of the data card interface can correspond to the equipment identification information, namely, the requirements of operators or the use place requirements of the mobile terminal are met.
In the embodiment of the application, the control of the data switch of the data card interface can be realized by adjusting the default attribute of the data switch of the data card interface, for example, the attribute of the data switch is adjusted from off to on or from on to off.
Specifically, in embodiments of the present application, the data switch types include on, off, or conditional off, so for different data switch types, the default attribute of the data switch of the data card interface may be adjusted accordingly, that is, optionally, in some embodiments of the present application, the step of "performing data switch adjustment on the data card interface according to the data switch type" includes:
determining a default attribute of a data switch of the data card interface;
when the data switch type is closed, directly adjusting the default attribute of the data switch to be closed; or alternatively, the first and second heat exchangers may be,
when the data switch type is on, determining the actual number of the data cards in the mobile terminal, and respectively carrying out data switch adjustment on the data card interfaces corresponding to the data cards according to the actual number; or alternatively, the first and second heat exchangers may be,
and when the data switch type is closed under the condition, when the data card interface meets the preset condition, the default attribute of the data switch is adjusted to be closed.
And adjusting the default attribute of the data switch according to different data switch types, so that the data switch state of the adjusted data card interface can meet the requirements of users.
The attribute adjustment process can automatically adjust according to the data switch type, for example, after a user inserts a data card into a mobile terminal, the data switch type of the data card can be determined according to the equipment identification information in the mobile terminal, and the default attribute of the data switch of the data card interface can be automatically adjusted according to the data switch type, so that the data switch state of the inserted data card can meet the preset requirement.
When the data switch type is closed, the data switch of the data card is directly adjusted to be closed.
However, when the data switch type is on, since the number of data cards in the mobile terminal may be more than one, the selection of the data switch needs to be performed among the plurality of data cards, that is, optionally, in some embodiments of the present application, the step of "performing data switch adjustment on the data card interfaces corresponding to the respective data cards according to the actual number" includes:
when the number of the data cards is one, the default attribute of the data switch of the data card is directly adjusted to be on;
and when the number of the data cards is two, determining a first data card and a second data card of the mobile terminal, adjusting the default attribute of the data switch of the first data card to be on, and adjusting the default attribute of the data switch of the second data card to be off.
When the data switch type is on and the data card in the mobile terminal is one, the data switch of the data card can be directly adjusted to be on.
When two or more data cards are used, a default data card (i.e., a first data card) is selected from the plurality of data cards, a data switch of the default data card is turned on, and a data switch of a non-default data card is adjusted to be turned off, i.e., one data card is selected from the plurality of data cards to turn on the data switch. The default data card is a data card of the mobile terminal which defaults to use data or flow, for example, a dual-card dual-standby single-pass mobile phone, and only one card can use data, and the card is the default data card.
In the embodiment of the present application, the conditional closing includes closing the data of the data card when a certain condition is satisfied, for example, in the embodiment of the present application, after the data card is pulled out, the data switch of the newly inserted data card may be set to be closed by default to close the data requirement; or firstly identifying the default data card, judging whether the default data card is pulled out, and setting the newly inserted data card as data to be closed after the default data card is pulled out.
In the embodiment of the present application, whether the default data card is pulled out may be obtained by detecting the identification information of the default data card, and whether the default data card is still in the mobile phone is determined by monitoring whether the identification information corresponding to the default data card is still in the mobile phone, that is, optionally, in some embodiments of the present application, the step of "when the data card interface meets the preset condition, adjusting the default attribute of the data switch to be closed" includes:
determining a default data card of the mobile terminal before the data card is inserted and default identification information of the default data card;
determining at least one data card of the mobile terminal after the data card is inserted, and the actual identification information of each data card;
when the actual identification information does not contain the default identification information, the default attribute of the data switch corresponding to each data card is adjusted to be closed;
when each piece of actual identification information contains the default identification information, the data switch state of the data card corresponding to the default identification information is maintained, and meanwhile, the default attribute of the data switch of the data card corresponding to the rest pieces of actual identification information is adjusted to be closed.
The detection of the identification information of the default data card before and after the insertion of the data card can determine whether the default data card is removed, and the specific requirement of a user (after the default data card is pulled out, the data switch of the data card is closed) is realized through the setting of data closing after the removal of the default data card.
When the default data card is not pulled out, the data switch state of the default data card can be maintained.
In this embodiment of the present application, whether the card is the default data card that was pulled out before insertion or not may be determined according to the identification information of the data card, and when the data card is the same as the identification information of the default data card, the data card is set as the default data card, and the data switch state of the data card is adjusted to the data switch state of the previous default data card.
In the embodiment of the application, the identification information of the data card comprises identification codes (Iccid) of the data card, wherein the identification codes (Iccid) are identification codes of Sim cards, the identification codes are unique, and the iccids of different Sim cards are different.
In the embodiment of the present application, after the mobile terminal is inserted into the data card, the data switch of each data card may be further selected by the user, that is, optionally, in some embodiments of the present application, the step of "performing data switch adjustment on the data card interface according to the data switch type" includes:
and receiving a data switch starting instruction generated after the touch screen operation by a user, and performing data switch adjustment on the data card interface according to the data switch starting instruction.
The data switch state of the data card can be flexibly adjusted according to the requirements of customers through the selection of the conditions for data switch by the user.
When the mobile terminal only comprises one data card, the data card is directly determined to be a default data card, when two data cards are inserted into the mobile terminal, a certain data card can be selected as the default data card according to the requirement of a user, for example, when the mobile terminal detects that two data cards exist, the user is reminded to select in a popup window mode, and under the condition that the user does not select, the first data card is determined to be the default data card by default.
After the mobile terminal is inserted into the data card, the data switch type of the data card is determined through the equipment identification information of the mobile terminal, and the data switch of the data card is adjusted according to the data switch type, so that the automatic adjustment of the data switch inserted into the data card is realized. Different device identification information can be correspondingly set according to different data switch requirements, so that after the mobile terminal is inserted into the data card, the data switch type of the data card can be automatically determined according to the device identification information, and the accuracy of setting of the data switch of the mobile terminal is improved.
Referring to fig. 3, the method for switching data is described with reference to a specific scenario, where the mobile terminal includes a mobile phone, and the mobile phone is a dual-card dual-standby single-pass mobile phone, and specifically includes:
201. a mobile phone user inserts or replaces a data card in the mobile phone;
202. after the data card is inserted, displaying the data card interface information of the data card in the mobile phone;
203. the mobile phone acquires the self equipment identification information, judges the data switch type of the data card, and executes step 204 when the data switch type is closed, executes step 207 when the data switch type is open, and executes step 210 when the data switch type is closed after the card is pulled out;
204. judging whether the inserted data card is a single card or a double card, executing step 205 when the inserted data card is a single card, and executing step 206 when the inserted data card is a double card;
205. directly adjusting the data switch of the data card to be closed;
206. the data switches of the two data cards are all adjusted to be closed, a double-card selection frame is popped up for a user to select a default data card or a data card to be opened, and under the condition that the user does not select, the first card is set as the default data card, and the data switch of the default data card is closed;
207. judging whether the inserted data card is a single card or a double card, executing step 208 when the inserted data card is a single card, and executing step 209 when the inserted data card is a double card;
208. selecting a default data card from the inserted data card and other data cards in the mobile phone, and adjusting a data switch of the default data card to be on;
209. and determining a default data card from the two inserted data cards, adjusting the data switch of the default data card to be in an on state, adjusting the data switches of other cards to be in an off state, then popping up a double-card selection frame for a user to select the default data card or the data card to be opened, setting the first card as the default data card under the condition that the user does not select the data card, and closing the data switch of the default data card.
210. Judging whether the inserted data card is a single card or a double card, executing step 211 when the inserted data card is a single card, and executing step 214 when the inserted data card is a double card;
211. judging whether the identification information (Iccid) of the last default data card is still in the mobile phone, if so, executing step 212, otherwise, executing step 213;
212. maintaining the data switch state of the default data card, and simultaneously storing the Iccid of the current default data card so as to be used in the next judgment;
213. closing the data switch of each data card in the mobile phone, and simultaneously, storing the Iccid of the current default data card so as to be used in the next judgment;
214. judging whether the identification information (Iccid) of the last default data card is still in the mobile phone, if so, executing step 215, otherwise, executing step 216;
215. ejecting a double-card selection frame for a user to select a default data card or a data card to be opened, and setting a first card as the default data card under the condition that the user does not select, wherein the default data card can adjust a data switch to be opened or closed as required (the data switch state of the default data card can be continuously maintained based on the reinsertion condition of the default data card), and simultaneously, the Iccid of the current default data card is stored for use in next judgment;
216. and closing the data switches of all the data cards in the current mobile phone, popping up a double-card selection frame for a user to select a default data card or a data card to be opened, setting the first card as the default data card under the condition that the user does not select the default data card, keeping the data switch state of the default data card to be closed, and simultaneously, storing the Iccid of the current default data card so as to be used in the next judgment.
Wherein, the double card select box: the data processing system comprises a data processing system, a data processing system and a data processing method, wherein the data processing system is a data option list and comprises three options, namely a first data card, a second data card and closing data, wherein if the first data card is selected, the first data card is a default data card, and data is opened by default, if the second data card is selected, the second data card is a default data card, and the data is opened by default, and if the data is selected to be closed, the first data card is a default data card, and the data is adjusted to be closed.
The embodiment of the application ensures that the data switch state of the data card can be consistent with the equipment identification information of the mobile phone through adjusting the data switch inserted into the data card, wherein the data of the data card is more accurately opened or closed through analyzing and setting different conditions of inserting a single card or a double card.
In order to facilitate better implementation of the data switching method, the application also provides a data switching device based on the data switching method. Where the meaning of the terms is the same as in the data switching method described above, specific implementation details may be referred to in the description of the method embodiments.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data switching device provided by the present application, where the data switching device is applied to a mobile terminal, and may specifically include:
the interface determining module 301 is configured to determine a data card interface generated after the mobile terminal is inserted into a data card, where the data card interface is used to implement data interaction between the mobile terminal and the data card.
Wherein, in some embodiments of the application, the apparatus further comprises an identification information determining module, the identification information determining module comprising:
a first identifier determining unit, configured to determine server information of the mobile terminal, and determine device identifier information of the mobile terminal according to the server information;
or alternatively, the first and second heat exchangers may be,
and the second identification determining unit is used for determining target pin location information of the mobile terminal and determining equipment identification information of the mobile terminal according to the target pin location information.
And the type determining module 302 is configured to determine a data switch type of the data card interface according to the device identification information of the mobile terminal.
Wherein, in some embodiments of the application, the type determination module 302 comprises:
the system comprises a set acquisition unit, a data switch type acquisition unit and a data switch type acquisition unit, wherein the set acquisition unit is used for acquiring a mapping relation set which comprises mapping relation between preset equipment identification information and preset data switch types;
and the type determining unit is used for determining the data switch type corresponding to the equipment identification information according to the mapping relation set.
And the adjusting module 303 is configured to perform data switch adjustment on the data card interface according to the data switch type.
Wherein, in some embodiments of the application, the adjustment module 303 comprises:
the attribute determining unit is used for determining a default attribute of the data switch of the data card interface;
the first adjusting unit is used for directly adjusting the default attribute of the data switch to be closed when the data switch type is closed;
the second adjusting unit is used for determining the actual number of the data cards in the mobile terminal when the data switch type is on, and respectively carrying out data switch adjustment on the data card interfaces corresponding to the data cards according to the actual number;
and the third adjusting unit is used for adjusting the default attribute of the data switch to be closed when the data switch type is closed under the condition that the data card interface meets the preset condition.
Wherein, in some embodiments of the application, the second adjusting unit comprises:
the first opening adjustment subunit is used for directly adjusting the default attribute of the data switch of the data card to be opened when the data card is one;
and the second opening adjustment subunit is used for determining the first data card and the second data card of the mobile terminal when the number of the data cards is two, adjusting the default attribute of the data switch of the first data card to be on, and adjusting the default attribute of the data switch of the second data card to be off.
Wherein, in some embodiments of the application, the third adjusting unit comprises:
a default identification determining subunit, configured to determine a default data card of the mobile terminal before the data card is inserted, and default identification information of the default data card;
an actual identification determining subunit, configured to determine at least one data card of the mobile terminal after the data card is inserted, and actual identification information of each data card;
the first closing adjustment subunit is used for adjusting the default attribute of the data switch corresponding to each data card to be closed when the actual identification information does not contain the default identification information;
and the second closing adjustment subunit is used for keeping the data switch state of the data card corresponding to the default identification information when the default identification information is contained in each piece of actual identification information, and simultaneously adjusting the default attribute of the data switch of the data card corresponding to the rest of the actual identification information to be closed.
Wherein, in some embodiments of the application, the apparatus further comprises a response unit comprising:
and the user adjustment subunit is used for receiving a data switch starting instruction generated after the touch screen operation by a user, and performing data switch adjustment on the data card interface according to the data switch starting instruction.
In the embodiment of the application, the interface determining module 301 determines the data card interface generated after the data card is inserted, then the type determining module 302 determines the data switch type of the data card interface according to the equipment identification information, and then the adjusting module 303 performs data switch adjustment on the data card interface according to the data switch type.
After the mobile terminal is inserted into the data card, the data switch type of the data card is determined through the equipment identification information of the mobile terminal, and the data switch of the data card is adjusted according to the data switch type, so that the automatic adjustment of the data switch inserted into the data card is realized. Different device identification information can be correspondingly set according to different data switch requirements, so that after the mobile terminal is inserted into the data card, the data switch type of the data card can be automatically determined according to the device identification information, and the accuracy of setting of the data switch of the mobile terminal is improved.
In addition, the application further provides an electronic device, as shown in fig. 5, which shows a schematic structural diagram of the electronic device according to the application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement the steps in any data switching method provided by the present application.
After the mobile terminal is inserted into the data card, the data switch type of the data card is determined through the equipment identification information of the mobile terminal, and the data switch of the data card is adjusted according to the data switch type, so that the automatic adjustment of the data switch inserted into the data card is realized. Different device identification information can be correspondingly set according to different data switch requirements, so that after the mobile terminal is inserted into the data card, the data switch type of the data card can be automatically determined according to the device identification information, and the accuracy of setting of the data switch of the mobile terminal is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium having stored thereon a computer program that can be loaded by a processor to perform the steps of any of the data switching methods provided by the present application.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute any of the steps in the data processing provided by the present application, the beneficial effects that can be achieved by any of the data switching methods provided by the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
The above description of the data switching method, the device, the electronic equipment and the storage medium provided by the application applies specific examples to illustrate the principle and the implementation of the application, and the above examples are only used for helping to understand the method and the core idea of the application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (8)

1. A data switching method, applied to a mobile terminal, comprising:
determining a data card interface generated after the mobile terminal is inserted into a data card, wherein the data card interface is used for realizing data interaction between the mobile terminal and the data card;
determining the data switch type of the data card interface according to the equipment identification information of the mobile terminal;
determining a default attribute of a data switch of the data card interface;
when the data switch type is closed, directly adjusting the default attribute of the data switch to be closed; or alternatively, the first and second heat exchangers may be,
when the data switch types are on, determining the actual number of the data cards in the mobile terminal, when one data card is used, directly adjusting the default attribute of the data switch of the data card to be on, when two data cards are used, determining a first data card and a second data card of the mobile terminal, adjusting the default attribute of the data switch of the first data card to be on, and adjusting the default attribute of the data switch of the second data card to be off;
or alternatively, the first and second heat exchangers may be,
and when the data switch type is closed under the condition, when the data card interface meets the preset condition, the default attribute of the data switch is adjusted to be closed.
2. The method of claim 1, wherein prior to determining the data switch type of the data card interface based on the device identification information of the mobile terminal, the method further comprises:
determining service provider information of the mobile terminal, and determining equipment identification information of the mobile terminal according to the service provider information;
or alternatively, the first and second heat exchangers may be,
and determining target pin location information of the mobile terminal, and determining equipment identification information of the mobile terminal according to the target pin location information.
3. The method of claim 1, wherein determining the data switch type of the data card interface according to the device identification information of the mobile terminal comprises:
obtaining a mapping relation set, wherein the mapping relation set comprises mapping relation between preset equipment identification information and preset data switch types;
and determining the data switch type corresponding to the equipment identification information according to the mapping relation set.
4. The method of claim 1, wherein adjusting the default attribute of the data switch to off when the data card interface satisfies a preset condition comprises:
determining a default data card of the mobile terminal before the data card is inserted and default identification information of the default data card;
determining at least one data card of the mobile terminal after the data card is inserted, and the actual identification information of each data card;
when the actual identification information does not contain the default identification information, the default attribute of the data switch corresponding to each data card is adjusted to be closed;
when each piece of actual identification information contains the default identification information, the data switch state of the data card corresponding to the default identification information is maintained, and meanwhile, the default attribute of the data switch of the data card corresponding to the rest pieces of actual identification information is adjusted to be closed.
5. The method of claim 1, wherein after the data switch adjustment is performed on the data card interface according to the data switch type, the method further comprises:
and receiving a data switch starting instruction generated after the touch screen operation by a user, and performing data switch adjustment on the data card interface according to the data switch starting instruction.
6. A data switching device, characterized in that it is applied to a mobile terminal, comprising:
the interface determining module is used for determining a data card interface generated after the mobile terminal is inserted into a data card, and the data card interface is used for realizing data interaction between the mobile terminal and the data card;
the type determining module is used for determining the data switch type of the data card interface according to the equipment identification information of the mobile terminal;
the adjusting module is used for determining the default attribute of the data switch of the data card interface;
when the data switch type is closed, directly adjusting the default attribute of the data switch to be closed; or alternatively, the first and second heat exchangers may be,
when the data switch types are on, determining the actual number of the data cards in the mobile terminal, when one data card is used, directly adjusting the default attribute of the data switch of the data card to be on, when two data cards are used, determining a first data card and a second data card of the mobile terminal, adjusting the default attribute of the data switch of the first data card to be on, and adjusting the default attribute of the data switch of the second data card to be off;
or alternatively, the first and second heat exchangers may be,
and when the data switch type is closed under the condition, when the data card interface meets the preset condition, the default attribute of the data switch is adjusted to be closed.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data switching method according to any one of claims 1-5 when the computer program is executed.
8. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the data switching method according to any of claims 1-5.
CN202111533381.6A 2021-12-15 2021-12-15 Data switching method, device, electronic equipment and computer readable storage medium Active CN114244950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111533381.6A CN114244950B (en) 2021-12-15 2021-12-15 Data switching method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111533381.6A CN114244950B (en) 2021-12-15 2021-12-15 Data switching method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114244950A CN114244950A (en) 2022-03-25
CN114244950B true CN114244950B (en) 2023-09-19

Family

ID=80756229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111533381.6A Active CN114244950B (en) 2021-12-15 2021-12-15 Data switching method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114244950B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697148A (en) * 2009-10-12 2010-04-21 中兴通讯股份有限公司 Method and system for raising interface rate of computer memory cards
CN108064038A (en) * 2017-12-06 2018-05-22 广东欧珀移动通信有限公司 Method, electronic device and the readable storage medium storing program for executing of unified custom terminal software version
CN109660666A (en) * 2018-12-24 2019-04-19 努比亚技术有限公司 Data card switching method, mobile terminal and computer readable storage medium
CN111935705A (en) * 2020-07-28 2020-11-13 Oppo广东移动通信有限公司 Data service management method and device, computer readable medium and terminal equipment
CN113038556A (en) * 2021-03-09 2021-06-25 中国联合网络通信集团有限公司 Method for accessing dual-card dual-standby terminal to network, dual-card dual-standby terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102869125B (en) * 2012-08-21 2018-04-27 中兴通讯股份有限公司 Data card and its communication means, system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697148A (en) * 2009-10-12 2010-04-21 中兴通讯股份有限公司 Method and system for raising interface rate of computer memory cards
CN108064038A (en) * 2017-12-06 2018-05-22 广东欧珀移动通信有限公司 Method, electronic device and the readable storage medium storing program for executing of unified custom terminal software version
CN109660666A (en) * 2018-12-24 2019-04-19 努比亚技术有限公司 Data card switching method, mobile terminal and computer readable storage medium
CN111935705A (en) * 2020-07-28 2020-11-13 Oppo广东移动通信有限公司 Data service management method and device, computer readable medium and terminal equipment
CN113038556A (en) * 2021-03-09 2021-06-25 中国联合网络通信集团有限公司 Method for accessing dual-card dual-standby terminal to network, dual-card dual-standby terminal and storage medium

Also Published As

Publication number Publication date
CN114244950A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
CN109063082B (en) Page skipping method and terminal equipment
CN112286667A (en) Application program control method and device, electronic equipment and medium
MX2014009068A (en) Electronic book file processing method, terminal, and electronic device.
CN113933581B (en) Power consumption testing method of mobile equipment and mobile equipment
CN110968508B (en) Method, device, terminal and storage medium for determining loading time of applet
EP3352048A1 (en) Mobile terminal and working method thereof
CN110856161A (en) SIM card setting method, terminal and computer storage medium
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
CN110737322A (en) Information processing method and electronic equipment
CN110351432A (en) Communicate the display methods and mobile terminal of card information
CN114244950B (en) Data switching method, device, electronic equipment and computer readable storage medium
CN103986950A (en) Descrambling mode control method, device and equipment
CN108616870B (en) Method and device for identifying terminal customized preferentially
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN109765986A (en) Power-saving control method, terminal device and computer readable storage medium
CN114125139A (en) Information processing method and electronic device
CN109683944B (en) Application function switch management method, device, equipment and readable storage medium
CN110458550B (en) Payment method, device, terminal and storage medium
CN112290964A (en) Auxiliary installation method and device for user identification card
CN111767102A (en) Application program display method, information processing method and device and electronic equipment
CN111010692B (en) Method, device, storage medium and terminal for customizing STK (SIM tool kit) identification
CN110970950B (en) Charging control method and device, storage medium and split type electronic equipment
US20210349516A1 (en) Energy saving device and method for saving energy in data center
CN108228307A (en) Display methods, device, storage medium and the electronic equipment of application

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