CN107124718A - Data transmission method, mobile terminal and storage medium - Google Patents

Data transmission method, mobile terminal and storage medium Download PDF

Info

Publication number
CN107124718A
CN107124718A CN201710362627.5A CN201710362627A CN107124718A CN 107124718 A CN107124718 A CN 107124718A CN 201710362627 A CN201710362627 A CN 201710362627A CN 107124718 A CN107124718 A CN 107124718A
Authority
CN
China
Prior art keywords
network
mobile device
data transmission
described mobile
data
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
CN201710362627.5A
Other languages
Chinese (zh)
Other versions
CN107124718B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710362627.5A priority Critical patent/CN107124718B/en
Publication of CN107124718A publication Critical patent/CN107124718A/en
Application granted granted Critical
Publication of CN107124718B publication Critical patent/CN107124718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

This application discloses a kind of data transmission method, mobile terminal and storage medium.This method specifically includes following steps:The data transmission exception that detection passes through first network with least one mobile device;Open the corresponding communication module of the second network;The communication connection of the second network is set up with least one mobile device;By the communication connection of the second network, with least one mobile device resume data transmission.The application avoids the data transmission fails caused by the data exception transmission of first network, meanwhile, in the case where not influenceing user to use other application, it is attached automatically with the second network, it is ensured that the validity of data transfer, preferably improves Consumer's Experience.

Description

Data transmission method, mobile terminal and storage medium
Technical field
The application is related to communication technical field, more particularly to data transmission method, mobile terminal and storage medium.
Background technology
As mobile terminal of mobile telephone is developed rapidly to intelligentized, the function of smart mobile phone is stronger and stronger.People use Application program on mobile phone carries out the data transfer between two mobile phones, such as transmits picture, address list, chat record etc.. When the Documents Comparison of transmission is more, than it is larger when, user may be applied to slowly transmits in backstage, and in the background transfer time Long, such as:One hour, the transmission time of two hours, this is just it is easy to forget that just in the file of background transfer, Yong Huhui Careless is opened other applications and produces data on flows, and this results in the Transmission on backstage, file bust this. That is, in the prior art, user is in large file transmission, it is impossible to normally using mobile phone, until end of file transfer, This brings bad usage experience to user.
The content of the invention
The main purpose of the application is to propose a kind of data transmission method, mobile terminal and storage medium, passed in data When defeated abnormal, it can continue to transmission file, improve Consumer's Experience.
To achieve the above object, a kind of data transmission method that the application is provided, methods described includes step:
The data transmission exception that detection passes through first network with least one mobile device;
Open the corresponding communication module of the second network;
The communication connection of the second network is set up with least one described mobile device;
By the communication connection of second network, with least one described mobile device resume data transmission.
Optionally, before the data transmission exception of detection and at least one mobile device, methods described also includes:
Log-on data transmits application program;
Carried out data transmission with least one described mobile device by first network.
Optionally, carried out data transmission with least one described mobile device by first network, including:
The accounts information of first network focus is set;
Receive the request for the connection first network focus that at least one described mobile device is sent;
When passing through to the request authentication, set up first network with least one described mobile device and be connected;
By the first network, carry out data transmission with least one described mobile device.
Optionally, carried out data transmission with least one described mobile device by first network, including:
The request of connection first network focus is sent at least one described mobile device;
When at least one described mobile device passes through to the request authentication, set up with least one described mobile device First network is connected;
By the first network, carry out data transmission with least one described mobile device.
Optionally, detection and data transmission exception of at least one mobile device by first network, including:
Detect the data transmission applications program in running background;
Judge whether to run other applications;
If so, then judging whether the other applications produce data traffic;
If so, the then data transmission exception with least one mobile device.
Optionally, detection and the data transmission exception of at least one mobile device, including:
Judgement is connected with whether at least one described mobile device disconnects first network;
If so, the then data transmission exception with least one mobile device.
Optionally, methods described also includes:
Detection recovers first network with least one described mobile device and is connected;
Disconnect the communication connection of second network;
Carried out data transmission with least one described mobile device by first network.
Optionally, before detection is connected with least one described mobile device recovery wireless network, including:
Detect that the data transmission applications program exits running background in real time, and recover front stage operation;
Or, no other applications operation is detected in real time;
Or, detection other applications do not produce data traffic in real time.
In addition, to achieve the above object, the application also proposes a kind of mobile terminal, the mobile terminal include processor, Memory, the processor is used to perform the data distributing program stored in memory, to realize above-mentioned method.
In addition, to achieve the above object, the application also proposes a kind of computer-readable recording medium, described computer-readable Storage medium is stored with one or more program, and one or more of programs can be held by one or more processor OK, to realize above-mentioned method.
Data transmission method, mobile terminal and storage medium that the application is proposed, when detection and at least one mobile device During by the data transmission exception of first network, then the corresponding communication module of the second network is opened, and set with least one movement The standby communication connection for setting up the second network, so that by the communication connection of the second network, data are recovered with least one mobile device Transmission, so as to avoid the data transmission fails caused by the data exception transmission of first network, is not influenceing user to use it In the case that he applies, it is attached automatically with the second network, it is ensured that the validity of data transfer, preferably improves user Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing the application one optional mobile terminal of each embodiment;
Fig. 2 is the communications network system schematic diagram of mobile terminal as shown in Figure 1;
The schematic flow sheet for the data transmission method that Fig. 3 provides for the application first embodiment;
The another schematic flow sheet for the data transmission method that Fig. 4 provides for the application first embodiment;
The sub-process schematic diagram one for the data transmission method that Fig. 5 provides for the application first embodiment;
The sub-process schematic diagram two for the data transmission method that Fig. 6 provides for the application first embodiment;
The schematic flow sheet for the data transmission method that Fig. 7 provides for the application second embodiment;
The schematic flow sheet for the data transmission method that Fig. 8 provides for the application fourth embodiment;
The structured flowchart for the mobile terminal that Fig. 9 provides for the embodiment of the application the 5th.
Realization, functional characteristics and the advantage of the application purpose will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that specific embodiment described herein is not used to limit the application only to explain the application.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be conducive to the explanation of the application, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed Ground is used.
Terminal can be implemented in a variety of manners.For example, terminal described in this application can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, the terminal of fixed type can also apply to according to the construction of presently filed embodiment.
Referring to Fig. 1, it is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the application, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code DivisionMultiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera) Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present application, the communications network system that the mobile terminal of the application is based on is entered below Row description.
Referring to Fig. 2, a kind of communications network system Organization Chart that Fig. 2 provides for the embodiment of the present application, the communication network system Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the application not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the application method is proposed.
First embodiment
As shown in figure 3, the data transmission method provided in the embodiment of the application one, including:
Step 301, the data transmission exception that detection passes through first network with least one mobile device.
Communicated to connect specifically, mobile terminal is set up with least one mobile device by first network in advance, in this reality Apply in example, first network can be wireless network.Mobile device can have same hardware structure and communication with mobile terminal The equipment of network system, is not repeated to introduce herein.
In practical application scene, relatively common is the mobile terminal correspondence one of the data transfer of one-to-one formula, i.e., one Individual mobile device carries out the transmission of data.With the development of mobile communication technology, more users to share data, go out for convenience Showed set up group chatted and sharing data function, and then generate a pair of multimodal data transfers, i.e., one shifting Dynamic terminal-pair answers multiple mobile devices to carry out data transmission.
In the present embodiment, data transmission exception can be that mobile terminal communicates with the separated of at least one mobile device Connection, such as, network signal is weaker or disappears, the distance between mobile terminal and mobile device exceed preset distance, user Maloperation causes first network to be closed;Can also be one of mobile terminal and mobile device connect other networks cause data transfer It is abnormal.
Optionally, as shown in figure 4, before step 301, in addition to step:
Step 401, log-on data transmission application program.
Mobile terminal elder generation log-on data transmission application program, such as dodging and pass application program.Opening the application program Meanwhile, the mobile device of mobile terminal and data to be transmitted opens the corresponding communication module of first network, is with first network Exemplified by wireless network, then mobile terminal and mobile device is needed to open respective wifi module.
Step 402, carried out data transmission with least one mobile device by first network.
The initiator of first network data cube computation or at least one shifting are used as specifically, can be mobile terminal Equipment is moved as the initiator of first network data cube computation.Accordingly, can be mobile terminal as data sender, at least one Individual mobile device is used as data receiver;Can also be mobile terminal as data receiver, at least one mobile device conduct Data sender.
As initiator of the mobile terminal as first network data cube computation, as shown in figure 5, step 402 is specifically included:
Step 501, the accounts information of first network focus is set.
Specifically, accounts information at least includes device name and password based on first network, make at least one movement eventually End is by searching device name, to find mobile terminal.
Step 502, the request for the connection first network focus that at least one described mobile device is sent is received.
Specifically, at least one mobile device is by searching the device name of first network, to confirm movement to be connected Terminal, and receive the connection request that mobile device is sent.
Step 503, when passing through to request authentication, set up first network with least one described mobile device and be connected.
Specifically, when the connection password for judging that the first mobile terminal is sent is identical with default password, then it is assumed that authentication Succeed, and first network is set up with mobile device and be connected.
Step 504, by first network, carry out data transmission with least one mobile device.
Specifically, the first network focus based on mobile terminal foundation is (such as:Hotspot), with least one mobile device Network connection is realized, and is carried out data transmission in certain distance.
As initiator of at least one mobile device as first network data cube computation, as shown in fig. 6, step 402 has Body includes:
Step 601, the request for connecting first network focus is sent at least one mobile device.
If specifically, the quantity of mobile device is one, first network focus can be set up by mobile device, and pass through Search device name to determine mobile device, and the request for connecting first network focus is sent after input password.
If the quantity of mobile device is multiple, the request includes the facility information and authentication password of mobile terminal, make to A few mobile device finds mobile terminal by searching device name.
Step 602, when at least one mobile device passes through to the request authentication, set up with least one mobile device First network is connected.
Step 603, by the first network, carry out data transmission with least one mobile device.
For example, if terminal A sets up first network with equipment B, equipment C when being connected, terminal A can be respectively to equipment B, equipment C send identical data, and terminal A can also be while the different pieces of information that receiving device B, equipment C are sent.
Step 302, the corresponding communication module of the second network is opened.
Specifically, when occurring abnormal by the data transfer of first network, then mobile terminal and at least one movement is set It is standby to be separately turned on the corresponding communication module of the second network.In the present embodiment, the second network can be bluetooth module, closely without Line communication (Near Field Communication, NFC) module etc..The corresponding communication module of second network of the present embodiment can To be the instruction according to user, it is being opened together with communication module corresponding with first network or when detection pass through first Automatically turned on during the data transmission exception of network.
Step 303, the communication connection of the second network is set up with least one mobile device.
Specifically, can be the initiator or at least one shifting that mobile terminal is connected as the second network data The initiator that dynamic equipment is connected as the second network data.
If the initiator that mobile terminal is connected as the second network data, by searching setting at least one mobile device Standby title identical equipment, then it is the mobile device connected before to assert the equipment, and sends connection closely to the mobile device The instruction of field communication, when mobile device receives, then succeeding to be matched and communicated by the second network with mobile device is connected. For example, the device name of the first network focus set is alphabetical " Nubia-na ", then when opening bluetooth module, at least one Mobile device searches near-field communication equipment title and is then considered mobile terminal comprising alphabetical " Nubia-na ".
If the initiator that at least one mobile device is connected as the second network data, at least one described movement is received The connection near-field communication instruction that equipment is sent, and the accounts information identical accounts information with first network is set up, in order to move Dynamic equipment is matched and communicated by the second network with mobile terminal and be connected by searching account information.
Step 304, by the communication connection of the second network, with least one mobile device resume data transmission.
Specifically, mobile terminal passes through the communication connection of the second network, resume data transmission with least one mobile device.
Further, as the improvement to the embodiment of the present application, after the step 304, step can also be included:
Detection disconnects the communication connection of the second network with least one described mobile device;
Authorize first mobile device to set up with least one described second mobile device to communicate to connect.
It is connected for example, terminal A disconnects Bluetooth communication with equipment B, equipment C, then terminal A authorisation devices B and equipment C is built Vertical bluetooth connection, makes to carry out data transmission between equipment B and equipment C.
The data transmission method of the embodiment of the present application, the data for passing through first network when detection and at least one mobile device During transmission abnormality, then the corresponding communication module of the second network is opened, and the logical of the second network is set up with least one mobile device Letter connection, with by the communication connection of the second network, and at least one mobile device resume data transmission, so as to avoid because of the Data transmission fails caused by the data exception transmission of one network, in the case where not influenceing user to use other application, automatically It is attached with the second network, it is ensured that the validity of data transfer, preferably improves Consumer's Experience.
Second embodiment
As shown in fig. 7, the data transmission method that another embodiment of the application is provided.In a second embodiment, the data Transmission method is made further improvement on the basis of first embodiment, is differed only in, step 301 specifically include as Lower step:
Step 701, detect the data transmission applications program in running background.
In practical application scene, because the data of transmission are larger, application program may be placed in backstage and slowly passed by user It is defeated, operated without influenceing user to carry out other using mobile terminal, for example:Phone, information, wechat, QQ, browser etc..
Step 702, judge whether to run other applications.If so, then entering step 703, if it is not, then flow terminates.
In this step, other applications refer to the program in addition to data transmission applications program.
Step 703, judge whether other applications produce data traffic.If so, then entering step 704, if it is not, then flowing Journey terminates.
Step 704, with the data transmission exception of at least one mobile device.
The data transmission method of the embodiment of the present application, when data transmission applications program is transported in running background, and mobile terminal Row other applications and when producing flow, then judge that the data transfer appearance of mobile terminal and at least one mobile device is different Often.
3rd embodiment
The data transmission method that another embodiment of the application is provided.In the third embodiment, the data transmission method is Made further improvement, is differed only in, step 301 specifically includes following steps on the basis of first embodiment:
Judgement is connected with whether at least one described mobile device disconnects first network;
If so, the then data transmission exception with least one mobile device.
The data transmission method of the embodiment of the present application, it is probably that user misoperation to close net to disconnect first network connection Network is switched, it is also possible to which network signal is weak or even no signal, it is also possible to which the distance between mobile terminal and mobile device exceed Preset range.
Fourth embodiment
As shown in figure 8, the data transmission method that another embodiment of the application is provided, methods described comprises the following steps:
Step 801, the data transmission exception that detection passes through first network with least one mobile device.
Step 802, the corresponding communication module of the second network is opened.
Step 803, the communication connection of the second network is set up with least one mobile device.
Step 804, by the communication connection of the second network, with least one mobile device resume data transmission.
Above-mentioned steps 801-804 content is identical with the content of the step 301-304 in first embodiment, for identical Content, the present embodiment is repeated no more.
Step 805, detection is connected with least one mobile device recovery first network.
Optionally, before this step, whether running background can be exited with real-time detector data transmission application program, and Recover front stage operation.
Optionally, before this step, no other applications operation can also be detected in real time.
Optionally, before this step, it can also detect that other applications do not produce data traffic in real time.
Step 806, the communication connection of the second network is disconnected.
Step 807, carried out data transmission with least one mobile device by first network.
The data transmission method of the embodiment of the present application, is connected when detection and at least one mobile device recover first network When, the automatic communication connection for disconnecting the second network makes mobile terminal enter line number by first network with least one mobile device According to transmission, so as to the use state according to first network, switch communication network freely, and no matter ensure that any logical In the case of communication network, the transmission of data can be carried out, Consumer's Experience is improved.
5th embodiment
The embodiment of the application one additionally provides a kind of mobile terminal, as shown in figure 9, the mobile terminal includes processor 901 And memory 902:
The processor 901 is used to perform the data distributing program stored in memory 902, to realize following steps:
The data transmission exception that detection passes through first network with least one mobile device.
Open the corresponding communication module of the second network.
The communication connection of the second network is set up with least one mobile device.
By the communication connection of the second network, with least one mobile device resume data transmission.
Communicated to connect specifically, mobile terminal is set up with least one mobile device by first network in advance, in this reality Apply in example, first network can be wireless network.Mobile device can have same hardware structure and communication with mobile terminal The equipment of network system, is not repeated to introduce herein.
In practical application scene, relatively common is the mobile terminal correspondence one of the data transfer of one-to-one formula, i.e., one Individual mobile device carries out the transmission of data.With the development of mobile communication technology, more users to share data, go out for convenience Showed set up group chatted and sharing data function, and then generate a pair of multimodal data transfers, i.e., one shifting Dynamic terminal-pair answers multiple mobile devices to carry out data transmission.
In the present embodiment, data transmission exception can be that mobile terminal communicates with the separated of at least one mobile device Connection, such as, network signal is weaker or disappears, the distance between mobile terminal and mobile device exceed preset distance, user Maloperation causes first network to be closed;Can also be one of mobile terminal and mobile device connect other networks cause data transfer It is abnormal.
When occurring abnormal by the data transfer of first network, then mobile terminal and at least one mobile device are opened respectively Open the corresponding communication module of the second network.In the present embodiment, the second network can be bluetooth module, wireless near field communication (Near Field Communication, NFC) module etc..The corresponding communication module of second network of the present embodiment can be root It is being opened together with communication module corresponding with first network or when detection is by first network according to the instruction of user Automatically turned on during data transmission exception.
Further, can be initiator that mobile terminal is connected as the second network data or at least one The initiator that mobile device is connected as the second network data.
If the initiator that mobile terminal is connected as the second network data, by searching setting at least one mobile device Standby title identical equipment, then it is the mobile device connected before to assert the equipment, and sends connection closely to the mobile device The instruction of field communication, when mobile device receives, then succeeding to be matched and communicated by the second network with mobile device is connected. For example, the device name of the first network focus set is alphabetical " Nubia-na ", then when opening bluetooth module, at least one Mobile device searches near-field communication equipment title and is then considered mobile terminal comprising alphabetical " Nubia-na ".
If the initiator that at least one mobile device is connected as the second network data, at least one described movement is received The connection near-field communication instruction that equipment is sent, and the accounts information identical accounts information with first network is set up, in order to move Dynamic equipment is matched and communicated by the second network with mobile terminal and be connected by searching account information.
Optionally, processor 901 is additionally operable to perform the data distributing program stored in memory 902, to realize following step Suddenly:
Log-on data transmits application program.
Carried out data transmission with least one mobile device by first network.
Mobile terminal elder generation log-on data transmission application program, such as dodging and pass application program.Opening the application program Meanwhile, the mobile device of mobile terminal and data to be transmitted opens the corresponding communication module of first network, is with first network Exemplified by wireless network, then mobile terminal and mobile device is needed to open respective wifi module.
Can be that mobile terminal is made as the initiator of first network data cube computation or at least one mobile device For the initiator of first network data cube computation.Accordingly, can be mobile terminal as data sender, at least one movement is set It is standby to be used as data receiver;Can also be mobile terminal as data receiver, at least one mobile device is sent as data Side.
As initiator of the mobile terminal as first network data cube computation, processor 901 is additionally operable to perform memory 902 The data distributing program of middle storage, to realize following steps:
The accounts information of first network focus is set.
Receive the request for the connection first network focus that at least one described mobile device is sent.
When passing through to request authentication, set up first network with least one described mobile device and be connected.
By first network, carry out data transmission with least one mobile device.
Specifically, accounts information at least includes device name and password based on first network, make at least one movement eventually End is by searching device name, to find mobile terminal.
At least one mobile device is by searching the device name of first network, to confirm mobile terminal to be connected, and Receive the connection request that mobile device is sent.
When the connection password for judging that the first mobile terminal is sent is identical with default password, then it is assumed that authenticate successfully, and First network is set up with mobile device to be connected.
First network focus based on mobile terminal foundation is (such as:Hotspot), realize net with least one mobile device Network is connected, and is carried out data transmission in certain distance.
As initiator of at least one mobile device as first network data cube computation, processor 901 is additionally operable to perform The data distributing program stored in memory 902, to realize following steps:
The request of connection first network focus is sent at least one mobile device.
When at least one mobile device passes through to the request authentication, first network is set up with least one mobile device Connection.
By the first network, carry out data transmission with least one mobile device.
If specifically, the quantity of mobile device is one, first network focus can be set up by mobile device, and pass through Search device name to determine mobile device, and the request for connecting first network focus is sent after input password.
If the quantity of mobile device is multiple, the request includes the facility information and authentication password of mobile terminal, make to A few mobile device finds mobile terminal by searching device name.
For example, if terminal A sets up first network with equipment B, equipment C when being connected, terminal A can be respectively to equipment B, equipment C send identical data, and terminal A can also be while the different pieces of information that receiving device B, equipment C are sent.
Optionally, processor 901 is additionally operable to perform the data distributing program stored in memory 902, to realize following step Suddenly:
Detection disconnects the communication connection of the second network with least one described mobile device;
Authorize first mobile device to set up with least one described second mobile device to communicate to connect.
It is connected for example, terminal A disconnects Bluetooth communication with equipment B, equipment C, then terminal A authorisation devices B and equipment C is built Vertical bluetooth connection, makes to carry out data transmission between equipment B and equipment C.
Optionally, processor 901 is additionally operable to perform the data distributing program stored in memory 902, to realize following step Suddenly:
Detect the data transmission applications program in running background;
Judge whether to run other applications;If so, then judging whether the other applications produce data traffic. If so, then judging the data transmission exception with least one mobile device.
In practical application scene, because the data of transmission are larger, application program may be placed in backstage and slowly passed by user It is defeated, operated without influenceing user to carry out other using mobile terminal, for example:Phone, information, wechat, QQ, browser etc..
Optionally, processor 901 is additionally operable to perform the data distributing program stored in memory 902, to realize following step Suddenly:
Judgement is connected with whether at least one described mobile device disconnects first network;
If so, the then data transmission exception with least one mobile device.
Optionally, processor 901 is additionally operable to perform the data distributing program stored in memory 902, to realize following step Suddenly:
Detection recovers first network with least one mobile device and is connected.
Disconnect the communication connection of second network.
Carried out data transmission with least one mobile device by first network.
Optionally, processor 901 is additionally operable to perform the data distributing program stored in memory 902, to realize:Inspection in real time Survey whether data transmission applications program exits running background, and recover front stage operation;Or, detection in real time does not have other application journey Sort run;Or, detection other applications do not produce data traffic in real time.
The mobile terminal of the embodiment of the present application, the data transfer for passing through first network when detection and at least one mobile device When abnormal, then the corresponding communication module of the second network is opened, and set up with least one mobile device the communication link of the second network Connect, with by the communication connection of the second network, and at least one mobile device resume data transmission, so as to avoid because of the first net Data transmission fails caused by the data exception transmission of network, in the case where not influenceing user to use other application, automatically with the Two networks are attached, it is ensured that the validity of data transfer, preferably improve Consumer's Experience.
Sixth embodiment
The embodiment of the present application additionally provides a kind of computer-readable recording medium.Here computer-readable recording medium is deposited Contain one or more program.Wherein, computer-readable recording medium can include volatile memory, such as arbitrary access Memory;Memory can also include nonvolatile memory, and such as read-only storage, flash memory, hard disk or solid-state are hard Disk;Memory can also include the combination of the memory of mentioned kind.When one or more in computer-readable recording medium Program can be by one or more computing device, to realize that above-mentioned first embodiment to fourth embodiment any embodiment is carried The data transmission method of confession.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
Above-mentioned the embodiment of the present application sequence number is for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, the technical scheme of the application is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in the application each embodiment.
Embodiments herein is described above in conjunction with accompanying drawing, but the application be not limited to it is above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the application, in the case of the application objective and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the application.

Claims (10)

1. a kind of data transmission method, it is characterised in that methods described includes step:
The data transmission exception that detection passes through first network with least one mobile device;
Open the corresponding communication module of the second network;
The communication connection of the second network is set up with least one described mobile device;
By the communication connection of second network, with least one described mobile device resume data transmission.
2. data transmission method according to claim 1, it is characterised in that in detection and the number of at least one mobile device Before transmission abnormality, methods described also includes:
Log-on data transmits application program;
Carried out data transmission with least one described mobile device by first network.
3. data transmission method according to claim 2, it is characterised in that pass through with least one described mobile device One network carries out data transmission, including:
The accounts information of first network focus is set;
Receive the request for the connection first network focus that at least one described mobile device is sent;
When passing through to the request authentication, set up first network with least one described mobile device and be connected;
By the first network, carry out data transmission with least one described mobile device.
4. data transmission method according to claim 2, it is characterised in that pass through with least one described mobile device One network carries out data transmission, including:
The request of connection first network focus is sent at least one described mobile device;
When at least one described mobile device passes through to the request authentication, first is set up with least one described mobile device Network connection;
By the first network, carry out data transmission with least one described mobile device.
5. the data transmission method according to claim 3 or 4, it is characterised in that detection is led to at least one mobile device The data transmission exception of first network is crossed, including:
Detect the data transmission applications program in running background;
Judge whether to run other applications;
If so, then judging whether the other applications produce data traffic;
If so, the then data transmission exception with least one mobile device.
6. the data transmission method according to claim 3 or 4, it is characterised in that detection and at least one mobile device Data transmission exception, including:
Judgement is connected with whether at least one described mobile device disconnects first network;
If so, the then data transmission exception with least one mobile device.
7. data transmission method according to claim 2, it is characterised in that methods described also includes:
Detection recovers first network with least one described mobile device and is connected;
Disconnect the communication connection of second network;
Carried out data transmission with least one described mobile device by first network.
8. data transmission method according to claim 7, it is characterised in that detection is extensive with least one described mobile device Before multiple wireless network connection, including:
Detect that the data transmission applications program exits running background in real time, and recover front stage operation;
Or, no other applications operation is detected in real time;
Or, detection other applications do not produce data traffic in real time.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes processor, memory, the processor is used to hold The data distributing program stored in line storage, to realize the method as described in claim any one of 1-8.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing device, to realize claim 1~8 times Method described in one.
CN201710362627.5A 2017-05-22 2017-05-22 Data transmission method, mobile terminal and storage medium Active CN107124718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710362627.5A CN107124718B (en) 2017-05-22 2017-05-22 Data transmission method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710362627.5A CN107124718B (en) 2017-05-22 2017-05-22 Data transmission method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107124718A true CN107124718A (en) 2017-09-01
CN107124718B CN107124718B (en) 2020-03-27

Family

ID=59727446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710362627.5A Active CN107124718B (en) 2017-05-22 2017-05-22 Data transmission method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107124718B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450773A (en) * 2018-11-30 2019-03-08 努比亚技术有限公司 Instant communicating method, mobile terminal and computer storage medium under no net state
CN112055377A (en) * 2020-09-16 2020-12-08 威海新北洋数码科技有限公司 Self-service equipment and networking control method thereof
CN112954823A (en) * 2021-01-29 2021-06-11 Oppo广东移动通信有限公司 Method for reestablishing data connection, terminal device and storage medium
CN113415208A (en) * 2021-08-23 2021-09-21 中国华能集团清洁能源技术研究院有限公司 Power exchange control assembly
CN115334139A (en) * 2022-06-24 2022-11-11 百果园技术(新加坡)有限公司 Communication connection control method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781057A (en) * 2014-01-08 2014-05-07 北京奇虎科技有限公司 Method and device for silently downloading upgrade package
CN105451372A (en) * 2014-09-01 2016-03-30 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, and wireless network access method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781057A (en) * 2014-01-08 2014-05-07 北京奇虎科技有限公司 Method and device for silently downloading upgrade package
CN105451372A (en) * 2014-09-01 2016-03-30 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, and wireless network access method and apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450773A (en) * 2018-11-30 2019-03-08 努比亚技术有限公司 Instant communicating method, mobile terminal and computer storage medium under no net state
CN112055377A (en) * 2020-09-16 2020-12-08 威海新北洋数码科技有限公司 Self-service equipment and networking control method thereof
CN112954823A (en) * 2021-01-29 2021-06-11 Oppo广东移动通信有限公司 Method for reestablishing data connection, terminal device and storage medium
CN112954823B (en) * 2021-01-29 2023-06-27 Oppo广东移动通信有限公司 Method for reestablishing data connection, terminal equipment and storage medium
CN113415208A (en) * 2021-08-23 2021-09-21 中国华能集团清洁能源技术研究院有限公司 Power exchange control assembly
CN115334139A (en) * 2022-06-24 2022-11-11 百果园技术(新加坡)有限公司 Communication connection control method and device
CN115334139B (en) * 2022-06-24 2023-12-26 百果园技术(新加坡)有限公司 Communication connection control method and device

Also Published As

Publication number Publication date
CN107124718B (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN107977152A (en) A kind of picture sharing method, terminal and storage medium based on dual-screen mobile terminal
CN107027114A (en) A kind of SIM card switching method, equipment and computer-readable recording medium
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107124718A (en) Data transmission method, mobile terminal and storage medium
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107145385A (en) A kind of multitask interface display methods, mobile terminal and computer-readable storage medium
CN107729160A (en) Application control method, mobile terminal and computer-readable recording medium
CN107273730A (en) Unlocked by fingerprint method, mobile terminal and computer-readable recording medium
CN107272906A (en) Using many account display control methods and mobile terminal
CN107517321A (en) Terminal pattern switching method, mobile terminal and computer-readable recording medium
CN106953684A (en) A kind of method for searching star, mobile terminal and computer-readable recording medium
CN107818459A (en) Red packet sending method, terminal and storage medium based on augmented reality
CN107347011A (en) A kind of group message processing method, equipment and computer-readable recording medium
CN107122817A (en) Processing method and Quick Response Code terminal based on Quick Response Code
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107517208A (en) Apparatus control method, device and computer-readable recording medium
CN108040170A (en) A kind of unlocked by fingerprint method, terminal device and computer-readable storage medium
CN107635232A (en) A kind of network share method, terminal and computer-readable recording medium
CN107172605A (en) A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107239193A (en) A kind of contact person's adding method, mobile terminal and computer-readable recording medium
CN107483556A (en) A kind of remote configuring method, equipment and computer-readable recording medium
CN107613206A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107368241A (en) A kind of information processing method, equipment and computer-readable recording medium
CN107666538A (en) A kind of connection method and terminal
CN107360297A (en) A kind of contact searching method, terminal and computer-readable recording medium

Legal Events

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