CN103561414A - Terminal and multi-channel data transmission method - Google Patents

Terminal and multi-channel data transmission method Download PDF

Info

Publication number
CN103561414A
CN103561414A CN201310435881.5A CN201310435881A CN103561414A CN 103561414 A CN103561414 A CN 103561414A CN 201310435881 A CN201310435881 A CN 201310435881A CN 103561414 A CN103561414 A CN 103561414A
Authority
CN
China
Prior art keywords
communication module
task
data
terminal
data transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310435881.5A
Other languages
Chinese (zh)
Other versions
CN103561414B (en
Inventor
侯亚明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coolpad Technologies Co Ltd
Original Assignee
Shenzhen Coolpad Technologies 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 Coolpad Technologies Co Ltd filed Critical Shenzhen Coolpad Technologies Co Ltd
Priority to CN201310435881.5A priority Critical patent/CN103561414B/en
Publication of CN103561414A publication Critical patent/CN103561414A/en
Application granted granted Critical
Publication of CN103561414B publication Critical patent/CN103561414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a terminal which comprises a limit removing unit used for modifying an object code in a connection manager and removing a limit that only one communication module is allowed to have data connection at one moment according to a received limit removal instruction, a communication module allocation unit used for allocating a corresponding communication module for each task in at least one task in a plurality of communication modules respectively when a condition that at least one task in the terminal initials data transmission is identified, and a transmission control unit used for controlling each task to carry out data transmission through the corresponding communication module respectively. The invention also discloses a multi-channel data transmission method. Through the technical scheme of the invention, a plurality of communication modules in the terminal can carry out data transmission at the same time, the data transmission speed when the terminal executes the task is raised, and a bottleneck that only one communication module can carry out data transmission in one moment is broken.

Description

Terminal and multi-channel data transmission method
Technical field
The present invention relates to technical field of data transmission, in particular to a kind of terminal and a kind of multi-channel data transmission method.
Background technology
The conventional method that existing handset processes data connect is, the same time can only exist the data of a card to connect business in mobile phone, connects, such as A is stuck in data when another card will be set up data service connection, such as B card will be set up data connection, the data that must disconnect A card connect.Although many APN technology allows to exist a plurality of data to connect simultaneously, but these data connections are also all based upon on a card, and must support many APN by Modem, and the upper limit of the data transmission bauds of a card, total upper limit of transmission speed while generally simultaneously carrying out transfer of data lower than multiple cards.
Along with popularizing gradually of Internet cell phone, the various online demands of user are also in continuous increase, also more and more higher for the requirement of data transmission bauds.Existing scheme of carrying out transfer of data by a card can not be brought into play multi-card multi-standby type completely in the ability aspect data processing, use browser when browsing larger webpage or carrying out larger file download, another card can only can not be carried out web page browsing or download in idle state simultaneously, cause very large waste, data transmission bauds is caused to considerable restraint.
Therefore, need a kind of new data transmission technology, can make a plurality of communication modules in terminal carry out transfer of data simultaneously, data transmission bauds when raising terminal is executed the task, breaks through under synchronization and can only have a communication module to carry out the bottleneck of transfer of data.
Summary of the invention
The present invention is just based on the problems referred to above, a kind of data transmission technology has been proposed, can make a plurality of communication modules in terminal carry out transfer of data, data transmission bauds when raising terminal is executed the task, breaks through under synchronization and can only have a communication module to carry out the bottleneck of transfer of data simultaneously.
In view of this, the present invention proposes a kind of terminal, comprising: restriction removes unit, for removing instruction according to the restriction receiving, revise the object code in connection manager, the restriction that only allows a communication module to exist data to connect synchronization removes; Communication module allocation units, for when recognizing at least one task initiation transfer of data of described terminal, are that every task in described at least one task is distributed respectively corresponding communication module in described a plurality of communication modules; Transmission control unit, carries out transfer of data by corresponding communication module respectively for controlling described every task.
In this technical scheme, the restriction that exists synchronization only to allow a communication module to exist data to connect in existing terminal, can revise this restriction by connection manager, allow the data of a plurality of communication modules to connect existence simultaneously, make a plurality of communication modules can carry out transfer of data simultaneously, thereby when the multi-task in terminal is initiated transfer of data, can distribute corresponding communication module for every task, make the multi-task by corresponding communication module, to carry out transfer of data respectively, and carry out transfer of data without queuing up singly, brought into play fully the data transmission capabilities of Multi-card multi-standby terminal, greatly improved the data transmission bauds of terminal.
In technique scheme, preferably, described communication module allocation units comprise: judgment sub-unit, for judging whether the quantity of described at least one task task is greater than the quantity of communication module in described a plurality of communication module; Distribute subelement, the in the situation that of being greater than, according to the selection instruction receiving, be that choosing in described at least one task of task is distributed selected communication module for judging in described judgment sub-unit in described a plurality of communication modules; And in the situation that described judgment sub-unit judgement is not more than, in described a plurality of communication modules, for every task in described at least one task is distributed respectively corresponding communication module, and the data of closing unappropriated communication module in described a plurality of communication module connect.
In this technical scheme, when the multi-task is initiated transfer of data simultaneously, if the quantity of task is greater than the quantity of communication module in terminal, can only allow so to the full extent the task corresponding with the quantity of communication module to carry out transfer of data simultaneously, therefore can provide option for user in this case, for user, select which priority of task to carry out transfer of data, and the communication module of selecting to transmit accordingly operation, the unselected task of user is put into waiting list, until there is idle communication module, again the data transmission service that comes the most front task in queue is put into and under this communication module, carried out transfer of data.
If the quantity of task is less than or equal to the quantity of communication module, can distribute a communication module for every task so and carry out transfer of data, thereby realize a plurality of communication modules, carry out transfer of data simultaneously.Certainly, when only having a task to carry out transfer of data, can select a communication module to complete the data transmission service of this task for user.
In technique scheme, preferably, described transmission control unit comprises: connect and set up subelement, for controlling corresponding communication module, set up respectively corresponding data connection; Communication subelement, transfers to respectively the corresponding task of corresponding communication module for the information that corresponding data are connected; Control subelement, for controlling described every task, according to the information of corresponding data connection, carry out transfer of data respectively.
In this technical scheme, for every task, distributing corresponding communication module to come after deal with data transport service, the communication module of distributing is set up data and is connected, and generate the information that corresponding data connect, such as IP address and dns resolution address etc., then the information that communication module connects data is returned to the task of answering in contrast, the information that task connects according to data is carried out transfer of data, such as carrying out transfer of data according to IP address, the IP route of each communication module does not interfere with each other, and carries out transfer of data simultaneously.
In technique scheme, preferably, also comprise: switch element, according to the switch command receiving, controlling in described a plurality of communication module specifies communication module to open or close data transmission service, and at least one work communication module that judges whether exist to open described data transmission service, and judging display reminding information while not existing, wherein, described communication module allocation units, when described switch element judgement exists, are that every task in described at least one task is distributed respectively corresponding communication module in described at least one work communication module.
In this technical scheme, a switch element can be set in terminal, wherein comprise the switch corresponding to the data transmission service of each communication module, open or close the data-transformation facility of each communication module, if the data transmission service of all communication modules is all closed, display reminding information, the data connection of each communication module of prompting user disconnects, if exist at least one communication module to open data transmission service, from this at least one communication module, for task distribution, carry out the communication module of transfer of data.
In above-mentioned arbitrary technical scheme, preferably, also comprise: detecting unit, for detection of the utilization rate of corresponding communication module, and shows described utilization rate.
In this technical scheme, can be when a plurality of communication modules be carried out transfer of data simultaneously, detect the utilization rate of each communication module, so that user understands the current service condition of each communication module, and then when occurring that new task is initiated transfer of data, can the lower communication module of choice for use rate carry out transfer of data, to improve data transmission bauds.
The invention allows for a kind of multi-channel data transmission method, for thering is the terminal of a plurality of communication modules, comprise: step 202, described terminal removes instruction according to the restriction receiving, revise the object code in connection manager, the restriction that only allows a communication module to exist data to connect synchronization removes; Step 204, when in described terminal, at least one task initiated transfer of data, is that every task in described at least one task is distributed respectively corresponding communication module in described a plurality of communication modules; Step 206, controls described every task and by corresponding communication module, carries out transfer of data respectively.
In this technical scheme, the restriction that exists synchronization only to allow a communication module to exist data to connect in existing terminal, can revise this restriction by connection manager, allow the data of a plurality of communication modules to connect existence simultaneously, make a plurality of communication modules can carry out transfer of data simultaneously, thereby when the multi-task in terminal is initiated transfer of data, can distribute corresponding communication module for every task, make the multi-task by corresponding communication module, to carry out transfer of data respectively, and carry out transfer of data without queuing up singly, brought into play fully the data transmission capabilities of Multi-card multi-standby terminal, greatly improved the data transmission bauds of terminal.
In technique scheme, preferably, described step 204 comprises: step 2042, judge that whether the quantity of task in described at least one task is greater than the quantity of communication module in described a plurality of communication module, if be greater than, enters step 2044, if be not more than, enter step 2046; Described step 2044, according to the selection instruction receiving, in described a plurality of communication modules for choosing in described at least one task of task is distributed selected communication module, described in the task of choosing by corresponding communication module, carry out transfer of data respectively; Described step 2046, in described a plurality of communication modules for every task in described at least one task is distributed respectively corresponding communication module, described every task is carried out transfer of data by corresponding communication module respectively, and closes the data connection of unappropriated communication module in described a plurality of communication module.
In this technical scheme, when the multi-task is initiated transfer of data simultaneously, if the quantity of task is greater than the quantity of communication module in terminal, can only allow so to the full extent the task corresponding with the quantity of communication module to carry out transfer of data simultaneously, therefore can provide option for user in this case, for user, select which priority of task to carry out transfer of data, and the communication module of selecting to transmit accordingly operation, the unselected task of user is put into waiting list, until there is idle communication module, again the data transmission service that comes the most front task in queue is put into and under this communication module, carried out transfer of data.
If the quantity of task is less than or equal to the quantity of communication module, can distribute a communication module for every task so and carry out transfer of data, thereby realize a plurality of communication modules, carry out transfer of data simultaneously.Certainly, when only having a task to carry out transfer of data, can select a communication module to complete the data transmission service of this task for user.
In technique scheme, preferably, described step 206 comprises: step 2062, and to control corresponding communication module and set up respectively corresponding data connection, the information that corresponding data are connected transfers to respectively the corresponding task of corresponding communication module; Step 2064, controls described every task and according to the information of corresponding data connection, carries out transfer of data respectively.
In this technical scheme, for every task, distributing corresponding communication module to come after deal with data transport service, the communication module of distributing is set up data and is connected, and generate the information that corresponding data connect, such as IP address and dns resolution address etc., then the information that communication module connects data is returned to the task of answering in contrast, the information that task connects according to data is carried out transfer of data, such as carrying out transfer of data according to IP address, the IP route of each communication module does not interfere with each other, and carries out transfer of data simultaneously.
In technique scheme, preferably, before described step 204, also comprise: according to the switch command receiving, controlling in described a plurality of communication module specifies communication module to open or close data transmission service, and at least one work communication module that judges whether exist to open described data transmission service, if exist, described step 204 comprises, in described at least one work communication module for every task in described at least one task is distributed respectively corresponding communication module, if do not exist, display reminding information.
In this technical scheme, can a switch that control the data transmission service of this communication module be set for each communication module, open or close the data-transformation facility of each communication module, if the data transmission service of all communication modules is all closed, display reminding information, the data connection of each communication module of prompting user disconnects, if exist at least one communication module to open data transmission service, from this at least one communication module, for task distribution, carry out the communication module of transfer of data.
In above-mentioned arbitrary technical scheme, preferably, also comprise: detect the utilization rate of corresponding communication module, and show described utilization rate.
In this technical scheme, can be when a plurality of communication modules be carried out transfer of data simultaneously, detect the utilization rate of each communication module, so that user understands the current service condition of each communication module, and then when occurring that new task is initiated transfer of data, can the lower communication module of choice for use rate carry out transfer of data, to improve data transmission bauds.
By above technical scheme, can make a plurality of communication modules in terminal carry out transfer of data simultaneously, improve the data transmission capabilities of terminal, break through under synchronization and can only have a communication module to carry out the bottleneck of transfer of data.
Accompanying drawing explanation
Fig. 1 shows the block diagram of terminal according to an embodiment of the invention;
Fig. 2 shows the flow chart of multi-channel data transmission method according to an embodiment of the invention;
Fig. 3 shows the particular flow sheet of transfer of data according to an embodiment of the invention;
Fig. 4 A shows the switch junctions composition of controlling communication module data transmission service in correlation technique;
Fig. 4 B shows the switch junctions composition of controlling according to an embodiment of the invention communication module data transmission service.
Embodiment
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, in the situation that not conflicting, the application's embodiment and the feature in embodiment can combine mutually.
A lot of details have been set forth in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not subject to the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of terminal according to an embodiment of the invention.
As shown in Figure 1, terminal 100 comprises according to an embodiment of the invention: restriction removes unit 102, for removing instruction according to the restriction receiving, revise the object code in connection manager, the restriction that only allows a communication module to exist data to connect synchronization removes; Communication module allocation units 104, for when recognizing 100 at least one tasks initiation transfer of data of described terminal, are that every task in described at least one task is distributed respectively corresponding communication module in described a plurality of communication modules; Transmission control unit 106, carries out transfer of data by corresponding communication module respectively for controlling described every task.
The restriction that exists synchronization only to allow a communication module to exist data to connect in existing terminal, in the connection manager code DataConnectionTracker.java in Android system, DataConnectionTracker class can derive two examples, and the data of managing respectively two cards connect.Can in terminal, set up the restriction of a multi-channel data transmission or the control switch lifting restrictions, facilitate terminal use whether start the multi-channel data transmission of terminal and return to single channel transfer of data at multi-channel data function on.
Such as having SIM card 1 and SIM card 2 in terminal, so when SIM card 1 has existed data to connect, SIM card 2 will be initiated data and connect, field a: default_data_network in the database of meeting modification connection manager, it is that SIM card 1 or SIM card 2 allow to connect that this field is used for identifying, this field is modified and can notice arrives SIM card 1, SIM card 1 detects this field and has been modified to after card SIM2 permission connection, the data of meeting automatic disconnection self connect, in this case, when SIM card 1 exists data to connect, in terminal, the multi-task is initiated data transmission service, such as having initiated, song is downloaded and two business are downloaded in game, these two business all will be connected and be carried out transfer of data by the data of SIM card 1 so, the preferential business of carrying out can preferentially be used the data connection of SIM card 1 to carry out transfer of data, the medium pending data of thread pool that another business is put into SIM card 1 connects idle, just can carry out transfer of data, be that connection manager is to guarantee that by the way synchronization only allows data to connect and exists.
Can revise this restriction by connection manager, revise DataConnectionTracker.java code, in SIM card 1 and SIM card 2, receive after code revision message, when SIM card 1 exists data to connect, SIM card 2 will be initiated data and connect, SIM card 1 does not disconnect its data connection, the data that simultaneously realize SIM card 2 connect, allow the data of a plurality of communication modules to connect existence simultaneously, make a plurality of communication modules can carry out transfer of data simultaneously, thereby when the multi-task in terminal 100 is initiated transfer of data, can distribute corresponding communication module for every task, make the multi-task by corresponding communication module, to carry out transfer of data respectively, and carry out transfer of data without queuing up singly, brought into play fully the data transmission capabilities of Multi-card multi-standby terminal 100, greatly improved the data transmission bauds of terminal 100.
Such as for upper example, the highest speed of download of supposing SIM card 1 and SIM card 2 is all 200kb/s, when initiating, song is downloaded and game is downloaded after two business, SIM card 1 can be distributed to game downloading service, SIM card 2 is distributed to song downloading service, then carry out transfer of data simultaneously, particularly, first user clicks game and downloads, then select SIM card 1 downloading service of playing, clicking song downloads again, SIM card 1 now detected and carrying out transfer of data, by SIM card 2, set up new data connection (directly using if existed data to connect) and carry out song download, because two cards carry out transfer of data simultaneously, make the whole speed of download of terminal can reach 400kb/s, greatly improved the data transmission bauds of terminal, for user brings downloading experience at a high speed.
Preferably, described communication module allocation units 104 comprise: judgment sub-unit 1042, for judging whether the quantity of described at least one task task is greater than the quantity of communication module in described a plurality of communication module; Distribute subelement 1044, the in the situation that of being greater than, according to the selection instruction receiving, be that choosing in described at least one task of task is distributed selected communication module for judging in described judgment sub-unit 1042 in described a plurality of communication modules; And in the situation that described judgment sub-unit 1042 judgements are not more than, in described a plurality of communication modules, for every task in described at least one task is distributed respectively corresponding communication module, and the data of closing unappropriated communication module in described a plurality of communication module connect.
When the multi-task is initiated transfer of data simultaneously, if the quantity of task is greater than the quantity of communication module in terminal, can only allow so to the full extent the task corresponding with the quantity of communication module to carry out transfer of data simultaneously, therefore can provide option for user in this case, for user, select which priority of task to carry out transfer of data, and the communication module of selecting to transmit accordingly operation, the unselected task of user is put into waiting list, until there is idle communication module, again the data transmission service that comes the most front task in queue is put into and under this communication module, carried out transfer of data.
Such as only there being two communication modules in terminal 100, SIM card 1 and SIM card 2, when 3 tasks (refer to that temporal interval is very little here time simultaneously, in fact can there is sequencing) while initiating transfer of data, through judging that 3 are greater than 2, be user's Show Options, for user, select wherein two preferentially to carry out transfer of data, the surplus next one is put into the thread pool of terminal 100 and is waited for that the data of SIM card 1 or SIM card 2 connect the free time.
If the quantity of task is less than or equal to the quantity of communication module, can distribute a communication module for every task so and carry out transfer of data, thereby realize a plurality of communication modules, carry out transfer of data simultaneously.Certainly, when only having a task to carry out transfer of data, can select a communication module to complete the data transmission service of this task for user.If the communication module that exists built vertical data to connect, and be not assigned with for carrying out transfer of data, the data that can close this communication module connect, to reduce power consumption and the heating of terminal 100.
Preferably, described transmission control unit 106 comprises: connect and set up subelement 1062, for controlling corresponding communication module, set up respectively corresponding data connection; Communication subelement 1064, transfers to respectively the corresponding task of corresponding communication module for the information that corresponding data are connected; Control subelement 1066, for controlling described every task, according to the information of corresponding data connection, carry out transfer of data respectively.
For every task, distributing corresponding communication module to come after deal with data transport service, the communication module of distributing is set up data and is connected, and generate the information that corresponding data connect, such as IP address and dns resolution address etc., then the information that communication module connects data is returned to the task of answering in contrast, the information that task connects according to data is carried out transfer of data, such as carrying out transfer of data according to IP address, the IP route of each communication module does not interfere with each other, carry out transfer of data, terminal 100 is safeguarded two cover IP route tables simultaneously simultaneously.
Preferably, also comprise: switch element 108, according to the switch command receiving, controlling in described a plurality of communication module specifies communication module to open or close data transmission service, and at least one work communication module that judges whether exist to open described data transmission service, and judging display reminding information while not existing, wherein, described communication module allocation units 104, when described switch element 108 judgements exist, are that every task in described at least one task is distributed respectively corresponding communication module in described at least one work communication module.
A switch element 108 can be set in terminal 100, wherein comprise the switch corresponding to the data transmission service of each communication module, open or close the data-transformation facility of each communication module, if the data transmission service of all communication modules is all closed, display reminding information, the data connection of each communication module of prompting user disconnects, if exist at least one communication module to open data transmission service, from this at least one communication module, for task distribution, carry out the communication module of transfer of data.
Preferably, also comprise: detecting unit 110, for detection of the utilization rate of corresponding communication module, and shows described utilization rate.
Can be when a plurality of communication modules be carried out transfer of data simultaneously, detect the utilization rate of each communication module, so that user understands the current service condition of each communication module, and then when occurring that new task is initiated transfer of data, can the lower communication module of choice for use rate carry out transfer of data, to improve data transmission bauds.
Fig. 2 shows the flow chart of multi-channel data transmission method according to an embodiment of the invention.
As shown in Figure 2, multi-channel data transmission method comprises according to an embodiment of the invention: step 202, terminal removes instruction according to the restriction receiving, and revises the object code in connection manager, and the restriction that only allows a communication module to exist data to connect synchronization removes; Step 204, when in described terminal, at least one task initiated transfer of data, is that every task in described at least one task is distributed respectively corresponding communication module in described a plurality of communication modules; Step 206, controls described every task and by corresponding communication module, carries out transfer of data respectively.
The restriction that exists synchronization only to allow a communication module to exist data to connect in existing terminal, in the connection manager code DataConnectionTracker.java in Android system, DataConnectionTracker class can derive two examples, and the data of managing respectively two cards connect.
Such as having SIM card 1 and SIM card 2 in terminal, so when SIM card 1 has existed data to connect, SIM card 2 will be initiated data and connect, field a: default_data_network in the database of meeting modification connection manager, it is that SIM card 1 or SIM card 2 allow to connect that this field is used for identifying, this field is modified and can notice arrives SIM card 1, SIM card 1 detects this field and has been modified to after card SIM2 permission connection, the data of meeting automatic disconnection self connect, in this case, when SIM card 1 exists data to connect, in terminal, the multi-task is initiated data transmission service, such as having initiated, song is downloaded and two business are downloaded in game, these two business all will be connected and be carried out transfer of data by the data of SIM card 1 so, the preferential business of carrying out can preferentially be used the data connection of SIM card 1 to carry out transfer of data, the medium pending data of thread pool that another business is put into SIM card 1 connects idle, just can carry out transfer of data, be that connection manager is to guarantee that by the way synchronization only allows data to connect and exists.
Can revise this restriction by connection manager, revise DataConnectionTracker.java code, in SIM card 1 and SIM card 2, receive after code revision message, when SIM card 1 exists data to connect, SIM card 2 will be initiated data and connect, SIM card 1 does not disconnect its data connection, the data that simultaneously realize SIM card 2 connect, allow the data of a plurality of communication modules to connect existence simultaneously, make a plurality of communication modules can carry out transfer of data simultaneously, thereby when the multi-task in terminal is initiated transfer of data, can distribute corresponding communication module for every task, make the multi-task by corresponding communication module, to carry out transfer of data respectively, and carry out transfer of data without queuing up singly, brought into play fully the data transmission capabilities of Multi-card multi-standby terminal, greatly improved the data transmission bauds of terminal.
Such as for upper example, the highest speed of download of supposing SIM card 1 and SIM card 2 is all 200kb/s, when initiating, song is downloaded and game is downloaded after two business, SIM card 1 can be distributed to game downloading service, SIM card 2 is distributed to song downloading service, then carry out transfer of data simultaneously, particularly, first user clicks game and downloads, then select SIM card 1 downloading service of playing, then clicking song downloads, SIM card 1 now detected and carrying out transfer of data, by SIM card 2, set up new data connection (directly using if existed data to connect) and carry out song download, because two cards carry out transfer of data simultaneously, make the whole speed of download of terminal can reach 400kb/s, greatly improved the data transmission bauds of terminal, for user brings downloading experience at a high speed.
Preferably, described step 204 comprises: step 2042, judges whether the quantity of task in described at least one task is greater than the quantity of communication module in described a plurality of communication module, if be greater than, enters step 2044, if be not more than, enters step 2046; Described step 2044, according to the selection instruction receiving, in described a plurality of communication modules for choosing in described at least one task of task is distributed selected communication module, described in the task of choosing by corresponding communication module, carry out transfer of data respectively; Described step 2046, in described a plurality of communication modules for every task in described at least one task is distributed respectively corresponding communication module, described every task is carried out transfer of data by corresponding communication module respectively, and closes the data connection of unappropriated communication module in described a plurality of communication module.
When the multi-task is initiated transfer of data simultaneously, if the quantity of task is greater than the quantity of communication module in terminal, can only allow so to the full extent the task corresponding with the quantity of communication module to carry out transfer of data simultaneously, therefore can provide option for user in this case, for user, select which priority of task to carry out transfer of data, and the communication module of selecting to transmit accordingly operation, the unselected task of user is put into waiting list, until there is idle communication module, again the data transmission service that comes the most front task in queue is put into and under this communication module, carried out transfer of data.
Such as only there being two communication modules in terminal, SIM card 1 and SIM card 2, when 3 tasks (refer to that temporal interval is very little here time simultaneously, in fact can there is sequencing) while initiating transfer of data, through judging that 3 are greater than 2, be user's Show Options, for user, select wherein two preferentially to carry out transfer of data, the surplus next one is put into the thread pool of terminal and is waited for that the data of SIM card 1 or SIM card 2 connect the free time.
If the quantity of task is less than or equal to the quantity of communication module, can distribute a communication module for every task so and carry out transfer of data, thereby realize a plurality of communication modules, carry out transfer of data simultaneously.Certainly, when only having a task to carry out transfer of data, can select a communication module to complete the data transmission service of this task for user.If the communication module that exists built vertical data to connect, and be not assigned with for carrying out transfer of data, the data that can close this communication module connect, to reduce power consumption and the heating of terminal.
Preferably, described step 206 comprises: step 2062, and to control corresponding communication module and set up respectively corresponding data connection, the information that corresponding data are connected transfers to respectively the corresponding task of corresponding communication module; Step 2064, controls described every task and according to the information of corresponding data connection, carries out transfer of data respectively.
For every task, distributing corresponding communication module to come after deal with data transport service, the communication module of distributing is set up data and is connected, and generate the information that corresponding data connect, such as IP address and dns resolution address etc., then the information that communication module connects data is returned to the task of answering in contrast, the information that task connects according to data is carried out transfer of data, such as carrying out transfer of data according to IP address, the IP route of each communication module does not interfere with each other, carry out transfer of data, terminal is safeguarded two cover IP route tables simultaneously simultaneously.
Preferably, before described step 204, also comprise: according to the switch command receiving, controlling in described a plurality of communication module specifies communication module to open or close data transmission service, and at least one work communication module that judges whether exist to open described data transmission service, if exist, described step 204 comprises, is that every task in described at least one task is distributed respectively corresponding communication module in described at least one work communication module, if do not exist, display reminding information.
Can a switch that control the data transmission service of this communication module be set for each communication module, open or close the data-transformation facility of each communication module, if the data transmission service of all communication modules is all closed, display reminding information, the data connection of each communication module of prompting user disconnects, if exist at least one communication module to open data transmission service, from this at least one communication module, for task distribution, carry out the communication module of transfer of data.
Preferably, also comprise: detect the utilization rate of corresponding communication module, and show described utilization rate.
Can be when a plurality of communication modules be carried out transfer of data simultaneously, detect the utilization rate of each communication module, so that user understands the current service condition of each communication module, and then when occurring that new task is initiated transfer of data, can the lower communication module of choice for use rate carry out transfer of data, to improve data transmission bauds.
More than said process can expand to, the multichannel of card and Wifi is concurrent, and Wifi is also equivalent to a communication module, can carry out transfer of data by wireless network.
Fig. 3 shows the particular flow sheet of transfer of data according to an embodiment of the invention.
As shown in Figure 3, for the terminal 100 that has two SIM cards, when user uses a task to carry out transfer of data, the flow process that terminal 100 is carried out transfer of data can comprise:
Step 302, a task in terminal 100 is initiated transfer of data;
Step 304, whether the SIM card 1 detecting in two SIM cards exists data to connect, if do not exist, enters step 312, if exist, enters step 306;
Step 306, whether the SIM card 2 detecting in two SIM cards exists data to connect, if exist, enters step 308, if do not exist, enters step 318;
Step 308, prompting user selects a SIM card to carry out transfer of data;
Step 310, user selects after a SIM card, and such as choosing SIM card 1, the information such as IP address that data of SIM card 1 connected are sent to above-mentioned task, make task carry out transfer of data according to the information such as IP address that receive;
Whether step 312, detect SIM card 2 and exist data to connect, if exist, enters step 314, if do not exist, enters step 316;
Step 314, connects the data of SIM card 2 information such as IP address and is sent to above-mentioned task, makes task carry out transfer of data (now SIM card 1 is countless according to connection, and SIM card 2 has data to connect) according to the information such as IP address that receive;
Step 316, prompting user is current countless according to connection;
Step 318, the information such as IP address that the data of SIM card 1 are connected are sent to above-mentioned task, make task carry out transfer of data (now SIM card 2 is countless according to connection, and SIM card 1 has data to connect) according to the information such as IP address that receive.
It should be noted that, more than said process can expand to, the multichannel of card and Wifi is concurrent, and Wifi is also equivalent to a communication module, can carry out transfer of data by wireless network.
Fig. 4 A shows the switch junctions composition of controlling communication module data transmission service in correlation technique.
As shown in Figure 4 A, in existing terminal 400, only have a switch 402 to control On/Off data transmission service, owing to can only there being a card to have data transmission service under synchronization in existing terminal 400, so for the terminal that has SIM card 1 and SIM card 2, when there is data transmission service in terminal 400, may be only that SIM card 1 exists data transmission service, or there is data transmission service in SIM card 2, when switch 402 closures, terminal 400 is carried out transfer of data by SIM card 1 or SIM card 2, when switch 402 disconnects, disconnected the data transmission service of arbitrary card in two cards, thereby disconnected the data transmission service of terminal 400.
Fig. 4 B shows the switch junctions composition of controlling according to an embodiment of the invention communication module data transmission service.
As shown in Figure 4 B, for the terminal 100 that has two communication modules (SIM card 1 and SIM card 2), switch element 108 wherein can comprise two switches that correspond respectively to SIM card 1 and SIM card 2, i.e. the first switch 1082 and second switch 1084, when the first switch 1082 closures, the data transmission service of SIM card 1 is opened, when the first switch 1082 disconnects, the data transmission service of SIM card 1 is closed, in like manner, along with the closed and disconnected of second switch 1084, the data transmission service of SIM card 2 is correspondingly opening and closing also.
User is closed the first switch 1082 and second switch 1084 simultaneously, thereby use SIM card 1 and SIM card 2 to carry out transfer of data simultaneously, to make full use of the transfer of data advantage of multimode terminal, only closed the first switch 1082 or second switch 1084, thereby only by a communication module, carry out transfer of data, if disconnect the first switch 1082 and second switch 1084 simultaneously, terminal 100 cannot be carried out transfer of data, display reminding information indicating user.
For the terminal that comprises more communication modules, such as the terminal that comprises three SIM cards or Wifi, can adjust as required the quantity of switch in switch element 108, thereby realize the control to each communication module.
More than be described with reference to the accompanying drawings technical scheme of the present invention, consider in correlation technique, multimode terminal is when deal with data business, can only carry out transfer of data by a card, cannot carry out transfer of data by multiple cards simultaneously, cause existing the communication module of idle state, cause very large waste.By the application's technical scheme, can make a plurality of communication modules in terminal carry out transfer of data simultaneously, data transmission bauds when raising terminal is executed the task, breaks through under synchronization and can only have a communication module to carry out the bottleneck of transfer of data.
In the present invention, term " first ", " second " be only for describing object, and can not be interpreted as indication or hint relative importance.Term " a plurality of " refers to two or more, unless separately there is clear and definite restriction.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a terminal, is characterized in that, comprising:
Restriction removes unit, for removing instruction according to the restriction receiving, revises the object code in connection manager, and the restriction that only allows a communication module to exist data to connect synchronization removes;
Communication module allocation units, for when recognizing at least one task initiation transfer of data of described terminal, are that every task in described at least one task is distributed respectively corresponding communication module in described a plurality of communication modules;
Transmission control unit, carries out transfer of data by corresponding communication module respectively for controlling described every task.
2. terminal according to claim 1, is characterized in that, described communication module allocation units comprise:
Judgment sub-unit, for judging whether the quantity of described at least one task task is greater than the quantity of communication module in described a plurality of communication module;
Distribute subelement, the in the situation that of being greater than, according to the selection instruction receiving, be that choosing in described at least one task of task is distributed selected communication module for judging in described judgment sub-unit in described a plurality of communication modules; And in the situation that described judgment sub-unit judgement is not more than, in described a plurality of communication modules, for every task in described at least one task is distributed respectively corresponding communication module, and the data of closing unappropriated communication module in described a plurality of communication module connect.
3. terminal according to claim 1, is characterized in that, described transmission control unit comprises:
Connect and set up subelement, for controlling corresponding communication module, set up respectively corresponding data connection;
Communication subelement, transfers to respectively the corresponding task of corresponding communication module for the information that corresponding data are connected;
Control subelement, for controlling described every task, according to the information of corresponding data connection, carry out transfer of data respectively.
4. terminal according to claim 1, is characterized in that, also comprises:
Switch element, according to the switch command receiving, control in described a plurality of communication module and specify communication module open or close data transmission service, and judge whether to exist at least one work communication module of opening described data transmission service, and judging display reminding information while not existing
Wherein, described communication module allocation units, when described switch element judgement exists, are that every task in described at least one task is distributed respectively corresponding communication module in described at least one work communication module.
5. according to the terminal described in any one in claim 1 to 4, it is characterized in that, also comprise:
Detecting unit, for detection of the utilization rate of corresponding communication module, and shows described utilization rate.
6. a multi-channel data transmission method, for having the terminal of a plurality of communication modules, is characterized in that, comprising:
Step 202, described terminal removes instruction according to the restriction receiving, and revises the object code in connection manager, and the restriction that only allows a communication module to exist data to connect synchronization removes;
Step 204, when described terminal is carried out at least one task, is that every task in described at least one task is distributed respectively corresponding communication module in described a plurality of communication modules;
Step 206, controls described every task and by corresponding communication module, carries out transfer of data respectively.
7. multi-channel data transmission method according to claim 6, is characterized in that, described step 204 comprises:
Step 2042, judges whether the quantity of task in described at least one task is greater than the quantity of communication module in described a plurality of communication module, if be greater than, enters step 2044, if be not more than, enters step 2046;
Described step 2044, according to the selection instruction receiving, in described a plurality of communication modules for choosing in described at least one task of task is distributed selected communication module, described in the task of choosing by corresponding communication module, carry out transfer of data respectively;
Described step 2046, in described a plurality of communication modules for every task in described at least one task is distributed respectively corresponding communication module, described every task is carried out transfer of data by corresponding communication module respectively, and closes the data connection of unappropriated communication module in described a plurality of communication module.
8. multi-channel data transmission method according to claim 6, is characterized in that, described step 206 comprises:
Step 2062, controls corresponding communication module and sets up respectively corresponding data connection, and the information that corresponding data are connected transfers to respectively the corresponding task of corresponding communication module;
Step 2064, controls described every task and according to the information of corresponding data connection, carries out transfer of data respectively.
9. multi-channel data transmission method according to claim 6, it is characterized in that, before described step 204, also comprise: according to the switch command receiving, controlling in described a plurality of communication module specifies communication module to open or close data transmission service, and at least one work communication module that judges whether exist to open described data transmission service, if exist, described step 204 comprises, in described at least one work communication module for every task in described at least one task is distributed respectively corresponding communication module, if do not exist, display reminding information.
10. according to the multi-channel data transmission method described in any one in claim 6 to 9, it is characterized in that, also comprise: detect the utilization rate of corresponding communication module, and show described utilization rate.
CN201310435881.5A 2013-09-23 2013-09-23 terminal and multi-channel data transmission method Active CN103561414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310435881.5A CN103561414B (en) 2013-09-23 2013-09-23 terminal and multi-channel data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310435881.5A CN103561414B (en) 2013-09-23 2013-09-23 terminal and multi-channel data transmission method

Publications (2)

Publication Number Publication Date
CN103561414A true CN103561414A (en) 2014-02-05
CN103561414B CN103561414B (en) 2015-11-04

Family

ID=50015532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310435881.5A Active CN103561414B (en) 2013-09-23 2013-09-23 terminal and multi-channel data transmission method

Country Status (1)

Country Link
CN (1) CN103561414B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333455A (en) * 2014-11-26 2015-02-04 肖龙旭 Secrete communication system and method for smart phone
CN104683452A (en) * 2015-02-09 2015-06-03 深圳酷派技术有限公司 Data downloading method, server and multi-system mobile terminal
WO2015123817A1 (en) * 2014-02-19 2015-08-27 宇龙计算机通信科技(深圳)有限公司 Network data channel allocation method and allocation device, and terminal
CN105577775A (en) * 2015-12-17 2016-05-11 小米科技有限责任公司 Dual-channel downloading method and device
CN105722246A (en) * 2016-01-29 2016-06-29 努比亚技术有限公司 Network speed superposition device and method
CN105722247A (en) * 2016-01-29 2016-06-29 努比亚技术有限公司 Network speed superposition device and method
CN105759937A (en) * 2016-02-03 2016-07-13 努比亚技术有限公司 Method for lowering terminal power consumption and terminal
WO2016141588A1 (en) * 2015-03-12 2016-09-15 华为技术有限公司 Data transmission method and apparatus, processor and mobile terminal
CN110575119A (en) * 2019-09-12 2019-12-17 安翰科技(武汉)股份有限公司 Control method and control system of capsule endoscope based on multiple radio frequency modules
CN112925751A (en) * 2021-02-20 2021-06-08 浙江大华技术股份有限公司 Multi-channel application processing method and device
CN112990911A (en) * 2021-02-08 2021-06-18 北京智芯微电子科技有限公司 Transaction method of gray lock and security chip

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635978A (en) * 2009-05-31 2010-01-27 南京中兴特种软件有限责任公司 Multimode multiplexing wireless video route signal transmission method
CN101715209A (en) * 2009-11-11 2010-05-26 中兴通讯股份有限公司 Method and system for multilink transmission data
CN103281797A (en) * 2013-05-22 2013-09-04 青岛海信移动通信技术股份有限公司 Mobile terminal and method of transmitting business data by same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635978A (en) * 2009-05-31 2010-01-27 南京中兴特种软件有限责任公司 Multimode multiplexing wireless video route signal transmission method
CN101715209A (en) * 2009-11-11 2010-05-26 中兴通讯股份有限公司 Method and system for multilink transmission data
CN103281797A (en) * 2013-05-22 2013-09-04 青岛海信移动通信技术股份有限公司 Mobile terminal and method of transmitting business data by same

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105934970A (en) * 2014-02-19 2016-09-07 宇龙计算机通信科技(深圳)有限公司 Network data channel allocation method and allocation device, and terminal
WO2015123817A1 (en) * 2014-02-19 2015-08-27 宇龙计算机通信科技(深圳)有限公司 Network data channel allocation method and allocation device, and terminal
CN105934970B (en) * 2014-02-19 2019-08-02 宇龙计算机通信科技(深圳)有限公司 Distribution method and distributor, the terminal of network data channels
CN104333455A (en) * 2014-11-26 2015-02-04 肖龙旭 Secrete communication system and method for smart phone
CN104333455B (en) * 2014-11-26 2018-03-13 连山管控(北京)信息技术有限公司 A kind of smart mobile phone secret signalling and method
CN104683452A (en) * 2015-02-09 2015-06-03 深圳酷派技术有限公司 Data downloading method, server and multi-system mobile terminal
CN104683452B (en) * 2015-02-09 2018-11-06 深圳酷派技术有限公司 A kind of data download method, server and multisystem mobile terminal
CN107431688B (en) * 2015-03-12 2021-02-26 华为技术有限公司 Data transmission method, device, processor and mobile terminal
WO2016141588A1 (en) * 2015-03-12 2016-09-15 华为技术有限公司 Data transmission method and apparatus, processor and mobile terminal
US11582821B2 (en) 2015-03-12 2023-02-14 Honor Device Co., Ltd. Data transmission method, data transmission apparatus, processor, and mobile terminal
CN107431688A (en) * 2015-03-12 2017-12-01 华为技术有限公司 Data transmission method, device, processor and mobile terminal
US10314096B2 (en) 2015-03-12 2019-06-04 Huawei Technologies Co., Ltd. Data transmission method, data transmission apparatus, processor, and mobile terminal
US10827550B2 (en) 2015-03-12 2020-11-03 Huawei Technologies Co., Ltd. Data transmission method, data transmission apparatus, processor, and mobile terminal
CN105577775A (en) * 2015-12-17 2016-05-11 小米科技有限责任公司 Dual-channel downloading method and device
CN105722247A (en) * 2016-01-29 2016-06-29 努比亚技术有限公司 Network speed superposition device and method
CN105722246A (en) * 2016-01-29 2016-06-29 努比亚技术有限公司 Network speed superposition device and method
CN105759937B (en) * 2016-02-03 2020-07-28 努比亚技术有限公司 Method for reducing power consumption of terminal and terminal
CN105759937A (en) * 2016-02-03 2016-07-13 努比亚技术有限公司 Method for lowering terminal power consumption and terminal
WO2017133253A1 (en) * 2016-02-03 2017-08-10 努比亚技术有限公司 Method of reducing power consumption of terminal, and terminal
CN110575119A (en) * 2019-09-12 2019-12-17 安翰科技(武汉)股份有限公司 Control method and control system of capsule endoscope based on multiple radio frequency modules
CN112990911A (en) * 2021-02-08 2021-06-18 北京智芯微电子科技有限公司 Transaction method of gray lock and security chip
CN112990911B (en) * 2021-02-08 2024-05-28 北京智芯微电子科技有限公司 Ash lock transaction method and security chip
CN112925751A (en) * 2021-02-20 2021-06-08 浙江大华技术股份有限公司 Multi-channel application processing method and device
CN112925751B (en) * 2021-02-20 2022-08-16 浙江大华技术股份有限公司 Multi-channel application processing method and device

Also Published As

Publication number Publication date
CN103561414B (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN103561414B (en) terminal and multi-channel data transmission method
CN102999251B (en) Terminal and equipment connection management method
CN101325769B (en) Terminal and method for automatically switching network channel
CN107943650B (en) Application program control method and device, storage medium and terminal
CN105828317A (en) ESIM-card-based operator service selection method and selection apparatus, and terminal
US10135923B2 (en) Data transfer method and system
CN104219653A (en) Method and device for controlling double-card Internet access
CN103064925B (en) The square law device of Timing Processing webpage
CN103561435B (en) Multi-mode terminal and communication method
US9258672B2 (en) Short-range wireless communication device
CN103533499A (en) Communication service processing method and terminal
CN102722551A (en) Intelligent switching method and system for browser kernels
CN103024192A (en) Festival wallpaper switching method of cellphone
CN110290278A (en) Data transmission method, device, storage medium and terminal based on bluetooth
CN101977410A (en) Method and device for dual-network and dual-standby terminal to perform communication
CN104954855A (en) Intelligent television control method based on Android system
CN104219391A (en) Communication request responding method and device and mobile terminal based on double card
CN106332208A (en) Multi-card resource management method and device, and multi-card terminal
CN105848235A (en) Communication control method and device
CN103781122A (en) Flow management device and method
CN108882319A (en) Mobile network's switching method, mobile terminal and computer readable storage medium
CN106060280B (en) Data service management method, device and terminal
CN110536389A (en) A kind of method, apparatus and terminal device reducing terminal device power consumption
CN101466130B (en) Control method and device for network connection
CN106793063A (en) The control method and device of data attachment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant