[go: up one dir, main page]

CN110072295A - Dual-channels communication method, apparatus, first terminal and medium - Google Patents

Dual-channels communication method, apparatus, first terminal and medium Download PDF

Info

Publication number
CN110072295A
CN110072295A CN201910370427.3A CN201910370427A CN110072295A CN 110072295 A CN110072295 A CN 110072295A CN 201910370427 A CN201910370427 A CN 201910370427A CN 110072295 A CN110072295 A CN 110072295A
Authority
CN
China
Prior art keywords
terminal
data
transmitted
channels
channel
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
CN201910370427.3A
Other languages
Chinese (zh)
Other versions
CN110072295B (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.)
Xi'an Shangding Energy 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 CN201910370427.3A priority Critical patent/CN110072295B/en
Publication of CN110072295A publication Critical patent/CN110072295A/en
Application granted granted Critical
Publication of CN110072295B publication Critical patent/CN110072295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a kind of dual-channels communication method, apparatus, first terminal and medium, the dual-channels communication method includes: the first terminal when detecting data to be transmitted, calculates the data volume of the data to be transmitted;Determined whether to establish twin-channel communication connection with the second terminal according to the data volume, to determine whether the data to be transmitted being sent to the second terminal by the binary channels.The present invention solves the technical issues of single channel is difficult to balance transmission speed requirement and power consumption demand during carrying out data transmission in the prior art.

Description

Dual-channels communication method, apparatus, first terminal and medium
Technical field
The present invention relates to field of terminal technology more particularly to a kind of dual-channels communication method, apparatus, first terminal and Jie Matter.
Background technique
Wearable device is rapidly developed, because of the beautiful convenient feature of its fashion currently, wearable device is usually It needs to be communicatively coupled with mobile phone etc., to carry out the transmission of data, however, carrying out data biography in wearable device and mobile phone etc. In defeated process, often single channel carries out the transmission of data, only passes through bluetooth or only such as between wearable device and terminal The transmission of data is carried out as channel by WIFI, wherein Bluetooth transmission is low in energy consumption but transmission speed is slow, few when being suitable for long Measure data transmission, WiFi transmission speed is fast but power consumption is big, be suitable for mass data in short-term transmission, and in the prior art due to The transmission of data is carried out between wearable device and mobile phone simply by single channel, this will obviously be difficult in equilibrium data transmission process Transmission speed demand and power consumption demand.
Summary of the invention
The main purpose of the present invention is to provide a kind of dual-channels communication method, apparatus, first terminal and media, it is intended to solve The technical issues of certainly single channel is difficult to balance transmission speed requirement and power consumption demand during carrying out data transmission in the prior art.
To achieve the above object, the embodiment of the present invention provides a kind of dual-channels communication method, the dual-channels communication method Applied to first terminal, the first terminal and second terminal are communicated to connect, and the dual-channels communication method includes:
The first terminal calculates the data volume of the data to be transmitted when detecting data to be transmitted;
Determined whether to establish twin-channel communication connection with the second terminal according to the data volume, with determine whether by The data to be transmitted is sent to the second terminal by the binary channels.
Optionally, the binary channels includes the first transmission channel and the second transmission channel, wherein first transmission is logical The transmission speed and transmission energy consumption in road are respectively less than second transmission channel;
It is described to be determined whether to establish twin-channel communication connection with the second terminal according to the data volume, be with determination It is no the data to be transmitted is sent to the second terminal step by the binary channels to include:
According to the data volume calculate the data to be transmitted by first transmission channel transmitted first when Between;
According to the data volume calculate the data to be transmitted by second transmission channel transmitted second when Between;
When the difference of the first time and second time are greater than preset value, or when the first time be longer than it is pre- If when second time of multiple, the first terminal and the second terminal establish twin-channel communication connection, with determination The data to be transmitted is sent to the second terminal by the binary channels.
Optionally, the first terminal and the second terminal establish twin-channel communication connection, to determine institute It states data to be transmitted the second terminal step is sent to by the binary channels and include:
The first terminal carries out resolution process to the data to be transmitted, obtains each subpackage, and by described each point Packet is temporarily stored in the transmit queue for the data to be transmitted that the first terminal generates;
The first terminal passes through each in transmit queue described in the first transmission channel order transfer pre-established A subpackage, and synchronous averaging establishes the second transmission channel with the second terminal;
After the completion of second transmission channel foundation, by not sent other each points in the transmit queue Packet is sent to the second terminal in second transmission channel, to complete the data to be transmitted passing through the binary channels It is sent to the second terminal.
Optionally, described to be passed according to the data volume calculating data to be transmitted by second transmission channel Include: after the second defeated time step
When the difference of the first time and second time are greater than preset value, or when the first time be longer than it is pre- If when second time of multiple, obtaining the current electric quantity of the first terminal;
When the current electric quantity of the first terminal is lower than the charge value of preset ratio, the first terminal and described second Terminal establishes the communication connection of first transmission channel, and the data to be transmitted is passed through first transmission channel with determination It is sent to the second terminal.
It is optionally, described to be determined whether to establish twin-channel communication connection with the second terminal according to the data volume, To determine whether the data to be transmitted being sent to the second terminal step by the binary channels further include:
It is determining to establish twin-channel communication connection with the second terminal when the data volume is greater than present count magnitude, The data to be transmitted is sent to the second terminal by the binary channels with determination;
Wherein, the binary channels includes Bluetooth transmission channel and the channel WIFI.
Optionally, include: after the current electric quantity step for obtaining the first terminal
If detect that the current electric quantity of the first terminal is lower than the charge value of preset ratio, the first terminal is judged Electricity whether continue to increase;
When the electricity of the first terminal continues to increase, the first terminal is established twin-channel with the second terminal The data to be transmitted is sent to the second terminal by the binary channels with determination by communication connection.
It is optionally, described to be determined whether to establish twin-channel communication connection with the second terminal according to the data volume, Include: to determine whether for the data to be transmitted to be sent to after the second terminal step by the binary channels
If detect that the data to be transmitted is transmitted, the prompt information being transmitted is generated.
The present invention also provides a kind of communication device with two channels, the communication device with two channels is applied to first terminal, described First terminal and second terminal communicate to connect, and the communication device with two channels includes:
First computing module calculates the data to be transmitted for the first terminal when detecting data to be transmitted Data volume;
First determining module establishes twin-channel communication with the second terminal for determining whether according to the data volume Connection, to determine whether the data to be transmitted being sent to the second terminal by the binary channels.
Optionally, the binary channels includes the first transmission channel and the second transmission channel, wherein first transmission is logical The transmission speed and transmission energy consumption in road are respectively less than second transmission channel;
First determining module includes:
First computing unit passes through first transmission channel for calculating the data to be transmitted according to the data volume The first time transmitted;
Second computing unit passes through second transmission channel for calculating the data to be transmitted according to the data volume The second time transmitted;
First transmission unit for the difference when the first time and second time greater than preset value, or is worked as When the first time is longer than second time of presupposition multiple, the first terminal and the second terminal establish binary channels Communication connection, with determination the data to be transmitted is sent to the second terminal by the binary channels.
Optionally, the transmission unit includes:
Temporary subelement carries out resolution process to the data to be transmitted for the first terminal, obtains each subpackage, And each subpackage is temporarily stored in the transmit queue for the data to be transmitted that the first terminal generates;
Promoter unit passes through described in the first transmission channel order transfer pre-established for the first terminal Each subpackage in transmit queue, and synchronous averaging establishes the second transmission channel with the second terminal;
Transmission sub-unit, for will be in the transmit queue not after the completion of second transmission channel is established Other each subpackages sent are sent to the second terminal in second transmission channel, to complete the number to be transmitted The second terminal is sent to according to by the binary channels.
Optionally, first determining module includes:
Acquiring unit is greater than preset value for the difference when the first time and second time, or described in When being longer than second time of presupposition multiple at the first time, the current electric quantity of the first terminal is obtained;
Second transmission unit, it is described when for being lower than the charge value of preset ratio when the current electric quantity of the first terminal First terminal and the second terminal establish the communication connection of first transmission channel, are led to the data to be transmitted with determination It crosses first transmission channel and is sent to the second terminal.
Optionally, the communication device with two channels further include:
Third determining module, for when the data volume is greater than present count magnitude, the determining and second terminal to be established The data to be transmitted is sent to the second terminal by the binary channels with determination by twin-channel communication connection;
Wherein, the binary channels includes Bluetooth transmission channel and the channel WIFI.
Optionally, first determining module includes:
Judging unit, if sentencing when for detecting that the current electric quantity of the first terminal is lower than the charge value of preset ratio Whether the electricity of the first terminal of breaking continues to increase;
Transmission unit, for when the electricity of the first terminal continues to increase, the first terminal and described second to be eventually Twin-channel communication connection is established at end, and the data to be transmitted is sent to described second eventually by the binary channels to determine End.
Optionally, the communication device with two channels further include:
Module is produced, if when for detecting that the data to be transmitted is transmitted, generating the prompt information being transmitted.
The present invention also provides a kind of first terminal, the first terminal includes: memory, processor and is stored in described deposit On reservoir and the dual-channels communication program that can run on the processor, the dual-channels communication program are held by the processor It realizes when row such as the step of above-mentioned dual-channels communication method.
The present invention also provides a kind of medium, dual-channels communication program, the dual-channels communication journey are stored on the medium It realizes when sequence is executed by processor such as the step of above-mentioned dual-channels communication method.
The present invention, when detecting data to be transmitted, calculates the data of the data to be transmitted by the first terminal Amount;Determined whether to establish twin-channel communication connection with the second terminal according to the data volume, with determine whether will be described Data to be transmitted is sent to the second terminal by the binary channels.That is, in this application, detecting first terminal When transmitting data to be transmitted to second terminal, no longer only single channel carries out data transmission, but according to the number of data to be transmitted It determines the need for establishing twin-channel communication connection according to amount, to determine whether the data to be transmitted passing through the binary channels It is sent to the second terminal, that is, in this application, can choose the transmission that data to be transmitted is carried out by single channel, It can choose the transmission that data to be transmitted is carried out by binary channels, it is to be transmitted due to that can be carried out by binary channels and single channel The transmission of data, it is thus possible to which the characteristics of taking into account different channels realizes transmission speed demand and power consumption demand in transmission process Balance, namely present application addresses be difficult to balance transmission speed requirement and power consumption demand in the prior art.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 5 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 6 is the flow diagram of one embodiment of dual-channels communication method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. move Dynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventually End can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present invention A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity The components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearable The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101 What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely Slightly., wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102, The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100 When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera, It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear, Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap 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) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments, Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101 The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo Wireless data communications port, 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 wearable device 100 or can For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 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, thus charged by power-supply management system realization management, The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present invention Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or wearable device When, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this Shen It please propose a kind of optional embodiment, in the present embodiment, the equipment for wrist-watch, bracelet or wearable can be set Standby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It can Choosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as Fig. 5 Shown, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, the equipment Screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipment can also be with It is all covered on the watchband of the equipment, the embodiment of the present application is not limited thereto.
Based on above-mentioned wearable device hardware configuration and communication network first terminal, each implementation of the method for the present invention is proposed Example.
The present invention provides a kind of dual-channels communication method, and the dual-channels communication method is applied to first terminal, and described the One terminal and second terminal communicate to connect, in one embodiment of dual-channels communication method, referring to Fig. 6, the dual-channels communication side Method includes:
Step S10, the first terminal calculate the data volume of the data to be transmitted when detecting data to be transmitted;
Step S20 determines whether to establish twin-channel communication connection with the second terminal according to the data volume, with true It is fixed whether the data to be transmitted to be sent to the second terminal by the binary channels.
Specific step is as follows:
Step S10, the first terminal calculate the data volume of the data to be transmitted when detecting data to be transmitted;
In the present embodiment, first terminal can be mobile phone, and the mobile intelligent terminals such as IPAD, second terminal can be that can wear It wears equipment or first terminal can be wearable device, second terminal can be mobile intelligent terminal, below with first terminal For mobile intelligent terminal, for second terminal to be specifically described for wearable device, wearable device includes Intelligent bracelet, The equipment such as bent wrist machine smartwatch, intelligent glasses, specific such as Fig. 4, shown in Fig. 5, it should be noted that in the present embodiment In, wearable device and mobile intelligent terminal are communicatively coupled, and specifically, mobile intelligent terminal can be set with wearable It is standby to be attached by modes such as WIFI, bluetooth, near-field communications, pass through WIFI, indigo plant in mobile intelligent terminal and wearable device During the modes such as tooth, near-field communication are attached, it can be and user is needed to answer in the specific connection of mobile intelligent terminal downloading With the connection for being just able to achieve above-mentioned different modes, can also the rapid switch column of mobile intelligent terminal open specific WIFI, The connection switch of the modes such as bluetooth, near-field communication, to realize the connection of above-mentioned different modes, wherein mobile intelligent terminal can To be the single pass connection type for the default being provided between mobile intelligent terminal and wearable device, in mobile intelligent terminal Refer to that determination is single pass connection type with the single pass connection type of the default of wearable device as long as being provided with, The single-channel mode connection of the preferred default, defaults with wearable device such as mobile intelligent terminal and is connected by bluetooth single-channel mode It connects.
The transmission of data can be realized by communication connection between mobile intelligent terminal and wearable device, the data Transmission includes, and mobile intelligent terminal sends picture to wearable device, video perhaps the data such as file or wearable device to Mobile intelligent terminal sends the heart rate data that each sensor inspection detection obtains in wearable device, step counting data etc..
In the present embodiment, on the basis of mobile intelligent terminal is realized and communicated to connect with wearable device, to move intelligence Energy terminal sends data instance to wearable device and is specifically described.
The mobile intelligent terminal calculates the data volume of the data to be transmitted when detecting data to be transmitted, wherein User sends data to be transmitted, mobile intelligence by clicking or touching triggering mobile intelligent terminal on mobile intelligent terminal interface The sensor of energy terminal can be calculated described to be transmitted when detecting data to be transmitted by preset data volume calculation method The data volume of data, wherein obtain the mode of the data volume of data to be transmitted further include: by the attribute for reading data to be transmitted Information is to obtain the data volume of data to be transmitted.
Step S20 determines whether to establish twin-channel communication connection with the second terminal according to the data volume, with true It is fixed whether the data to be transmitted to be sent to the second terminal by the binary channels.
In the present embodiment, determined whether to establish twin-channel communication link with the wearable device according to the data volume It connects, wherein determine whether to establish twin-channel communication connection with the wearable device at least to include such as according to the data volume Lower two ways:
Mode one: determined whether to establish twin-channel communication connection with the wearable device according to the size of data volume;
Mode two: determined whether to establish twin-channel communication link with the wearable device according to the transmission time of data volume It connects.
Wherein, determined whether to establish twin-channel communication connection with the wearable device according to the data volume Before, need clear mobile intelligent terminal during detecting that data to be transmitted receives data to be transmitted to wearable device, it is right The treatment process of the data to be transmitted is specifically as follows to the treatment process of the data to be transmitted:
When mobile intelligent terminal is as data sending terminal, when wearable device is as data receiver, mobile intelligent terminal Including packetizer, transmit queue and sendaisle router etc., wearable device includes receiving channel router, receives team Column, de-packetizer etc., wherein data to be transmitted is resolved into N number of subpackage (data packet) by packetizer, and transmit queue is referred to from subpackage The subpackage that device comes, can be temporarily stored in transmit queue, to wait sendaisle router to read, and include in sendaisle router Each routing algorithm, i.e., can be determined according to data volume according to each routing algorithm sendaisle router is single channel Transmission or dual-channel transmission, wherein when the transmission time according to data volume determines whether and wearable device foundation pair When the communication connection in channel, when sendaisle router calculates different channels, the transmission time of data volume is to pass through with determination Single channel or binary channels carry out the transmission of data.
When mobile intelligent terminal is as data receiver namely first terminal can be wearable device, second terminal For mobile intelligent terminal, wearable device includes receiving channel router, receiving queue, de-packetizer etc., wherein receiving channel road It is realized after single channel or dual channel receiver subpackage by device realization and subpackage is put into receiving queue, receiving queue is to logical from receiving The subpackage that road router receives carries out temporary processing, and to wait the reading of de-packetizer, and de-packetizer is realized and read from receiving queue Subpackage is taken, is combined into the corresponding complete subpackage of a data to be transmitted according to information such as packet serial numbers, it should be noted that when can wear Equipment is worn as data sending terminal, when mobile intelligent terminal is as data receiver, wearable device includes packetizer, sends team Column and sendaisle router etc., mobile intelligent terminal include receiving channel router, receiving queue, de-packetizer etc., that is, In the present embodiment, in data sending terminal there are a packetizer, transmit queue and sendaisle router, when needing to transmit number According to when, data to be transmitted is first decomposed into a certain number of subpackages by packetizer, and data volume notify into sendaisle routing Device, sendaisle router carry out the determination in channel, and the transmission of data to be transmitted is then carried out by determining channel.It needs Bright, the subpackage format in the present embodiment can be such as the following table 1:
Task number Packet serial number Packet sum Packet length Check code Payload
4 bytes 4 bytes 4 bytes 4 bytes 4 bytes
Table 1
Wherein, task number represents a complete data to be transmitted, for example data to be transmitted is a complete file, packet After serial number indicates that data to be transmitted can be broken down into multiple subpackages, an assigned serial number of each subpackage, wrapping sum indicates one A data to be transmitted can be broken down into the number of subpackage, and packet length is indicated the length of a subpackage, calculated with Byte, verify code table Show the check information of payload portions, payload indicates file content itself or other data contents to be transmitted, wherein The integrality of each packetized data is checked by packet length and check code.
The binary channels includes the first transmission channel and the second transmission channel, wherein the biography of first transmission channel Defeated speed and transmission energy consumption are respectively less than second transmission channel;
It is described to be determined whether to establish twin-channel communication connection with the second terminal according to the data volume, be with determination It is no the data to be transmitted is sent to the second terminal step by the binary channels to include:
Step S21 calculates the data to be transmitted according to the data volume and is transmitted by first transmission channel First time;
In the present embodiment, the first transmission channel can be Bluetooth transmission channel, and the second transmission channel can pass for WIFI Defeated channel, wherein Bluetooth transmission is low in energy consumption but transmission speed is slow, suitable for it is long when low volume data transmission, WiFi transmission speed Fast but power consumption is big, transmits suitable for mass data in short-term, in the present embodiment, is determined whether according to the transmission time of data volume Twin-channel communication connection is established with the wearable device, thus the data to be transmitted is calculated according to the data volume first The first time transmitted by first transmission channel, wherein data volume is known, the theory in Bluetooth transmission channel Transmission speed is known, therefore, it is possible to be calculated at the first time.
Step S22 calculates the data to be transmitted according to the data volume and is transmitted by second transmission channel The second time;
According to the data volume calculate the data to be transmitted by second transmission channel transmitted second when Between, wherein data volume be it is known, the theoretical transmission speed of WiFi transmission channel is known, therefore, it is possible to be calculated Two times.
Step S23, when the difference of the first time and second time are greater than preset value, or when described first Between when being longer than second time of presupposition multiple, the first terminal and the second terminal establish twin-channel communication link It connects, the data to be transmitted is sent to by the binary channels by the second terminal with determination.
When the difference of the first time and second time are such as more most than the second time at the first time greater than preset value A hour, or when the first time being longer than second time of presupposition multiple as be longer than at the first time 2 times second When the time, the mobile intelligent terminal and the wearable device establish twin-channel communication connection, will be described to be passed with determination Transmission of data is sent to the wearable device by the binary channels, thus, to avoid mistake caused by single channel excessive velocities Consumption etc. when more resource consumption either crosses excessive caused by jogging speed.
Wherein, the first terminal and the second terminal establish twin-channel communication connection, will be described with determination Data to be transmitted is sent to the second terminal step by the binary channels
Step S231, the first terminal carry out resolution process to the data to be transmitted, obtain each subpackage, and by institute Each subpackage is stated to be temporarily stored in the transmit queue for the data to be transmitted that the first terminal generates;
In the present embodiment, mobile intelligent terminal carries out resolution process to the data to be transmitted first, obtains each point Packet, and each subpackage is temporarily stored in the transmit queue for the data to be transmitted that the mobile intelligent terminal generates, tool Body, each subpackage is orderly temporarily stored in the data to be transmitted that the mobile intelligent terminal generates by mobile intelligent terminal Transmit queue in.
Step S232, the first terminal, which passes through, sends team described in the first transmission channel order transfer pre-established Each subpackage in column, and synchronous averaging establishes the second transmission channel with the second terminal;
If it is determined that being transmitted by binary channels, then the mobile intelligent terminal passes through first transmission pre-established Each subpackage in transmit queue described in the order transfer of channel, order transfer refer to orderly being passed according to the packet serial number of subpackage It is defeated, wherein first transmission channel pre-established is usually the transmission channel defaulted, and the mobile intelligent terminal passes through pre- After each subpackage in transmit queue described in the first transmission channel order transfer first established, synchronous averaging establish with it is described Second transmission channel of wearable device, as one side first passes through a part of subpackage of Bluetooth transmission channel transfer, and synchronous averaging with WiFi transmission channel is established in trial.
Step S233 is after the completion of second transmission channel is established, by not sent its in the transmit queue He is sent to the second terminal in second transmission channel at each subpackage, to complete the data to be transmitted passing through institute It states binary channels and is sent to the second terminal.
After the completion of second transmission channel foundation, as the hair will be in after the completion of Wifi transmission channel is established Other not sent each subpackages in queue are sent to be sent to the wearable device in second transmission channel, to complete The data to be transmitted is sent to the wearable device by the binary channels, i.e., will be in the transmit queue not Other each subpackages sent are sent by Wifi transmission channel, to complete the data to be transmitted passing through the binary channels It is sent to the wearable device.Wherein, in data receiver wearable device, there are a receiving channel routers, receive Queue and de-packetizer, receiving channel router are put into receiving queue after either receiving subpackage from bluetooth or WiFi, solution Packet device can take out subpackage from receiving queue and then be combined into complete data to be transmitted.
The present invention, when detecting data to be transmitted, calculates the data of the data to be transmitted by the first terminal Amount;Determined whether to establish twin-channel communication connection with the second terminal according to the data volume, with determine whether will be described Data to be transmitted is sent to the second terminal by the binary channels.That is, in this application, detecting first terminal When transmitting data to be transmitted to second terminal, no longer only single channel carries out data transmission, but according to the number of data to be transmitted It determines the need for establishing twin-channel communication connection according to amount, to determine whether the data to be transmitted passing through the binary channels It is sent to the second terminal, that is, in this application, can choose the transmission that data to be transmitted is carried out by single channel, It can choose the transmission that data to be transmitted is carried out by binary channels, it is to be transmitted due to that can be carried out by binary channels and single channel The transmission of data, it is thus possible to which the characteristics of taking into account different channels realizes transmission speed demand and power consumption demand in transmission process Balance, namely present application addresses be difficult to balance transmission speed requirement and power consumption demand in the prior art.
Further, described that institute is calculated according to the data volume in another embodiment of dual-channels communication method of the present invention State the second time step that data to be transmitted is transmitted by second transmission channel includes: later
Step A1, when the difference of the first time and second time are greater than preset value, or when described first Between when being longer than second time of presupposition multiple, obtain the current electric quantity of the first terminal;
In the present embodiment, when the difference of the first time and second time are greater than preset value, or when described When being longer than second time of presupposition multiple at the first time, the current electricity of the mobile intelligent terminal is also obtained, obtains institute Stating the current electricity of mobile intelligent terminal is the second transmission channel that whether can support power consumption big in order to ensure current electric quantity Carry out the transmission of data to be transmitted.
Step A2, when the current electric quantity of the first terminal be lower than preset ratio charge value when, the first terminal with The second terminal establishes the communication connection of first transmission channel, and the data to be transmitted is passed through described first to determine Transmission channel is sent to the second terminal.
When the current electric quantity of the mobile intelligent terminal is lower than for example described mobile intelligent terminal of charge value of preset ratio When current electric quantity is lower than the charge value of default 20% ratio, the mobile intelligent terminal and the wearable device establish described the The communication connection of one transmission channel, with determine by the data to be transmitted by first transmission channel be sent to described in can wear Equipment is worn, the wearable device is sent to by the described second defeated channel to avoid by the data to be transmitted, and caused by The excessive consumption of mobile intelligent terminal electricity.
Wherein, include: after the current electric quantity step for obtaining the first terminal
Step B1, if detect that the current electric quantity of the first terminal is lower than the charge value of preset ratio, described in judgement Whether the electricity of first terminal continues to increase;
Step B2, when the electricity of the first terminal continues to increase, the first terminal and the second terminal are established The data to be transmitted is sent to the second terminal by the binary channels with determination by twin-channel communication connection.
It should be noted that in the present embodiment, if detecting the current electric quantity of the mobile intelligent terminal lower than default The charge value of ratio, and when the electricity of mobile intelligent terminal continues to increase, the mobile intelligent terminal and the wearable device Second transmission channel or twin-channel communication connection are established, the data to be transmitted is passed through by the binary channels with determination It is sent to the wearable device.
In the present embodiment, by the difference when the first time and second time greater than preset value, or work as When the first time is longer than second time of presupposition multiple, the current electric quantity of the first terminal is obtained;When described When the current electric quantity of one terminal is lower than the charge value of preset ratio, the first terminal and the second terminal establish described first The data to be transmitted is sent to described second eventually by first transmission channel to determine by the communication connection of transmission channel End.In the present embodiment, outside the characteristics of taking into account different channels, the electricity of terminal is also taken into account, realizes and transmits speed in transmission process The balance of degree demand and power consumption demand.
Further, another embodiment of dual-channels communication method is provided in the present invention, it is in this embodiment, described according to institute It states data volume to determine whether to establish twin-channel communication connection with the second terminal, to determine whether the data to be transmitted The second terminal step is sent to by the binary channels further include:
Step B1, it is determining to establish twin-channel lead to the second terminal when the data volume is greater than present count magnitude The data to be transmitted is sent to the second terminal by the binary channels with determination by letter connection;
Wherein, the binary channels includes Bluetooth transmission channel and the channel WIFI.
In the present embodiment, single channel or twin-channel determination can be carried out simply by the size of data volume, works as institute It is determining to establish twin-channel communication connection with the wearable device when stating data volume more than or equal to present count magnitude, with determination The data to be transmitted is sent to the wearable device by the binary channels;Wherein, the binary channels includes that bluetooth passes Defeated channel and the channel WIFI, it is determining to establish single-pass with the wearable device when the data volume is less than present count magnitude The communication connection in road, with determine by the data to be transmitted by the single channel such as Bluetooth transmission channel be sent to described in can wear Wear equipment.
In the present embodiment, by the way that when the data volume is greater than present count magnitude, the determining and second terminal is established The data to be transmitted is sent to the second terminal by the binary channels with determination by twin-channel communication connection;Wherein, The binary channels includes Bluetooth transmission channel and the channel WIFI.The size by data volume is realized in the present embodiment, is determined Single channel or binary channels carry out the transmission of data to be transmitted, avoid the technology for being difficult to balance transmission speed requirement and power consumption demand Problem.
Further, another embodiment of dual-channels communication method is provided in the present invention, in this embodiment, the basis The data volume determines whether to establish twin-channel communication connection with the second terminal, to determine whether the number to be transmitted Include: according to being sent to after the second terminal step by the binary channels
If step C1 generates the prompt information being transmitted detect that the data to be transmitted is transmitted.
In the present embodiment, when detecting that the data to be transmitted is transmitted, the prompt information being transmitted is generated, To prompt the completion of data to be transmitted to transmit.
In addition, the embodiment of the present invention also proposes a kind of communication device with two channels, the communication device with two channels is applied to the One terminal, the first terminal and second terminal communicate to connect, and the communication device with two channels includes:
First computing module calculates the data to be transmitted for the first terminal when detecting data to be transmitted Data volume;
First determining module establishes twin-channel communication with the second terminal for determining whether according to the data volume Connection, to determine whether the data to be transmitted being sent to the second terminal by the binary channels.
Optionally, the binary channels includes the first transmission channel and the second transmission channel, wherein first transmission is logical The transmission speed and transmission energy consumption in road are respectively less than second transmission channel;
First determining module includes:
First computing unit passes through first transmission channel for calculating the data to be transmitted according to the data volume The first time transmitted;
Second computing unit passes through second transmission channel for calculating the data to be transmitted according to the data volume The second time transmitted;
First transmission unit for the difference when the first time and second time greater than preset value, or is worked as When the first time is longer than second time of presupposition multiple, the first terminal and the second terminal establish binary channels Communication connection, with determination the data to be transmitted is sent to the second terminal by the binary channels.
Optionally, the transmission unit includes:
Temporary subelement carries out resolution process to the data to be transmitted for the first terminal, obtains each subpackage, And each subpackage is temporarily stored in the transmit queue for the data to be transmitted that the first terminal generates;
Promoter unit passes through described in the first transmission channel order transfer pre-established for the first terminal Each subpackage in transmit queue, and synchronous averaging establishes the second transmission channel with the second terminal;
Transmission sub-unit, for will be in the transmit queue not after the completion of second transmission channel is established Other each subpackages sent are sent to the second terminal in second transmission channel, to complete the number to be transmitted The second terminal is sent to according to by the binary channels.
Optionally, first determining module includes:
Acquiring unit is greater than preset value for the difference when the first time and second time, or described in When being longer than second time of presupposition multiple at the first time, the current electric quantity of the first terminal is obtained;
Second transmission unit, it is described when for being lower than the charge value of preset ratio when the current electric quantity of the first terminal First terminal and the second terminal establish the communication connection of first transmission channel, are led to the data to be transmitted with determination It crosses first transmission channel and is sent to the second terminal.
Optionally, the communication device with two channels further include:
Third determining module, for when the data volume is greater than present count magnitude, the determining and second terminal to be established The data to be transmitted is sent to the second terminal by the binary channels with determination by twin-channel communication connection;
Wherein, the binary channels includes Bluetooth transmission channel and the channel WIFI.
Optionally, first determining module includes:
Judging unit, if sentencing when for detecting that the current electric quantity of the first terminal is lower than the charge value of preset ratio Whether the electricity of the first terminal of breaking continues to increase;
Transmission unit, for when the electricity of the first terminal continues to increase, the first terminal and described second to be eventually Twin-channel communication connection is established at end, and the data to be transmitted is sent to described second eventually by the binary channels to determine End.
Optionally, the communication device with two channels further include:
Module is produced, if when for detecting that the data to be transmitted is transmitted, generating the prompt information being transmitted.
Communication device with two channels of the present invention and above-mentioned each embodiment of dual-channels communication method are essentially identical, no longer superfluous herein It states.
In addition, the embodiment of the present invention also proposes that a kind of wearable device, wearable device include: memory 109, processor 110 and it is stored in the dual-channels communication program that can be run on memory 109 and on processor 110, dual-channels communication program quilt Processor 110 realizes the step of each embodiment of above-mentioned dual-channels communication method when executing.
In addition, the present invention also provides a kind of computer media, the computer media be stored with one or one with Upper program, the one or more programs can also be executed by one or more than one processor for realizing upper The step of stating each embodiment of dual-channels communication method.
The expansion content of the specific embodiment of wearable device and medium (i.e. computer media) of the present invention and above-mentioned double Each embodiment of tunneling traffic method is essentially identical, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that wearable device (it can be mobile phone, computer, Server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of dual-channels communication method, which is characterized in that the dual-channels communication method is applied to the first first terminal, described First terminal and second terminal communicate to connect, and the dual-channels communication method includes:
The first terminal calculates the data volume of the data to be transmitted when detecting data to be transmitted;
Determined whether to establish twin-channel communication connection with the second terminal according to the data volume, with determine whether will be described Data to be transmitted is sent to the second terminal by the binary channels.
2. dual-channels communication method as described in claim 1, which is characterized in that the binary channels include the first transmission channel with And second transmission channel, wherein it is logical that the transmission speed and transmission energy consumption of first transmission channel are respectively less than second transmission Road;
It is described to be determined whether to establish twin-channel communication connection with the second terminal according to the data volume, with determine whether by The data to be transmitted is sent to the second terminal step by the binary channels
The first time that the data to be transmitted is transmitted by first transmission channel is calculated according to the data volume;
The second time that the data to be transmitted is transmitted by second transmission channel is calculated according to the data volume;
When the difference of the first time and second time are greater than preset value, or when the first time is longer than default times When several second times, the first terminal and the second terminal establish twin-channel communication connection, to determine institute It states data to be transmitted and the second terminal is sent to by the binary channels.
3. dual-channels communication method as claimed in claim 2, which is characterized in that the first terminal and described second is eventually Twin-channel communication connection is established at end, and the data to be transmitted is sent to the second terminal by the binary channels with determination Step includes:
The first terminal carries out resolution process to the data to be transmitted, obtains each subpackage, and each subpackage is temporary There are in the transmit queue of the data to be transmitted of first terminal generation;
The first terminal passes through each point in transmit queue described in the first transmission channel order transfer pre-established Packet, and synchronous averaging establishes the second transmission channel with the second terminal;
After the completion of second transmission channel foundation, other not sent each subpackages in the transmit queue are existed It is sent to the second terminal in second transmission channel, to complete to send the data to be transmitted by the binary channels To the second terminal.
4. dual-channels communication method as claimed in claim 2, which is characterized in that it is described according to the data volume calculate it is described to Include: after the second time step that transmission data are transmitted by second transmission channel
When the difference of the first time and second time are greater than preset value, or when the first time is longer than default times When several second times, the current electric quantity of the first terminal is obtained;
When the current electric quantity of the first terminal is lower than the charge value of preset ratio, the first terminal and the second terminal The communication connection of first transmission channel is established, is sent the data to be transmitted by first transmission channel with determination To the second terminal.
5. dual-channels communication method as claimed in claim 4, which is characterized in that the current electricity for obtaining the first terminal Include: after amount step
If detect that the current electric quantity of the first terminal is lower than the charge value of preset ratio, the electricity of the first terminal is judged Whether amount continues to increase;
When the electricity of the first terminal continues to increase, the first terminal and the second terminal establish twin-channel communication The data to be transmitted is sent to the second terminal by the binary channels with determination by connection.
6. dual-channels communication method as described in claim 1, which is characterized in that it is described according to the data volume determine whether with The second terminal establishes twin-channel communication connection, to determine whether to send the data to be transmitted by the binary channels To the second terminal step further include:
It is determining to establish twin-channel communication connection with the second terminal when the data volume is greater than present count magnitude, with true It is fixed that the data to be transmitted is sent to the second terminal by the binary channels;
Wherein, the binary channels includes Bluetooth transmission channel and the channel WIFI.
7. dual-channels communication method as described in claim 1, which is characterized in that it is described according to the data volume determine whether with The second terminal establishes twin-channel communication connection, to determine whether to send the data to be transmitted by the binary channels Include: later to the second terminal step
If detect that the data to be transmitted is transmitted, the prompt information being transmitted is generated.
8. a kind of communication device with two channels, which is characterized in that the communication device with two channels be applied to first terminal, described first Terminal and second terminal communicate to connect, and the communication device with two channels includes:
First computing module calculates the number of the data to be transmitted for the first terminal when detecting data to be transmitted According to amount;
First determining module establishes twin-channel communication link with the second terminal for determining whether according to the data volume It connects, to determine whether the data to be transmitted being sent to the second terminal by the binary channels.
9. a kind of first terminal, which is characterized in that the first terminal includes: memory, processor and is stored in the storage On device and the dual-channels communication program that can run on the processor, the dual-channels communication program are executed by the processor The step of dual-channels communication method of the Shi Shixian as described in any one of claims 1 to 7.
10. a kind of medium, which is characterized in that be stored with dual-channels communication program, the dual-channels communication program on the medium The step of dual-channels communication method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910370427.3A 2019-04-30 2019-04-30 Dual-channel communication method, device, first terminal and medium Active CN110072295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910370427.3A CN110072295B (en) 2019-04-30 2019-04-30 Dual-channel communication method, device, first terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910370427.3A CN110072295B (en) 2019-04-30 2019-04-30 Dual-channel communication method, device, first terminal and medium

Publications (2)

Publication Number Publication Date
CN110072295A true CN110072295A (en) 2019-07-30
CN110072295B CN110072295B (en) 2022-08-09

Family

ID=67369947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910370427.3A Active CN110072295B (en) 2019-04-30 2019-04-30 Dual-channel communication method, device, first terminal and medium

Country Status (1)

Country Link
CN (1) CN110072295B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112089968A (en) * 2020-05-22 2020-12-18 未来穿戴技术有限公司 Neck massager, data transmission method thereof and computer storage medium
CN112866928A (en) * 2021-01-12 2021-05-28 刘盛荣 Control method and device of intelligent furniture and intelligent furniture
CN114422079A (en) * 2021-12-15 2022-04-29 广州市玄武无线科技股份有限公司 Data transmission method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519458A (en) * 2014-12-29 2015-04-15 宇龙计算机通信科技(深圳)有限公司 Network connection method, terminal, wireless router and system
WO2015131582A1 (en) * 2014-09-24 2015-09-11 中兴通讯股份有限公司 Method, terminal, system for short-distance data transmission, and computer storage medium
CN107018554A (en) * 2017-03-07 2017-08-04 广东欧珀移动通信有限公司 A kind of data transmission method, device and intelligent terminal
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
WO2019074437A1 (en) * 2017-10-12 2019-04-18 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for control information triggering in wireless networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131582A1 (en) * 2014-09-24 2015-09-11 中兴通讯股份有限公司 Method, terminal, system for short-distance data transmission, and computer storage medium
CN104519458A (en) * 2014-12-29 2015-04-15 宇龙计算机通信科技(深圳)有限公司 Network connection method, terminal, wireless router and system
CN107018554A (en) * 2017-03-07 2017-08-04 广东欧珀移动通信有限公司 A kind of data transmission method, device and intelligent terminal
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
WO2019074437A1 (en) * 2017-10-12 2019-04-18 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for control information triggering in wireless networks

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112089968A (en) * 2020-05-22 2020-12-18 未来穿戴技术有限公司 Neck massager, data transmission method thereof and computer storage medium
CN112866928A (en) * 2021-01-12 2021-05-28 刘盛荣 Control method and device of intelligent furniture and intelligent furniture
CN114422079A (en) * 2021-12-15 2022-04-29 广州市玄武无线科技股份有限公司 Data transmission method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110072295B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN109982179A (en) Audio frequency signal output, device, wearable device and storage medium
CN110072295A (en) Dual-channels communication method, apparatus, first terminal and medium
CN110086563A (en) A kind of method of controlling rotation, equipment and computer readable storage medium
CN110086929A (en) Breath screen display methods, mobile phone, wearable device and computer readable storage medium
CN110213637A (en) Method, wearable device and the readable storage medium storing program for executing of video file increase watermark
CN110069132A (en) Application control method, intelligent wearable device and computer readable storage medium
CN110083289A (en) A kind of button display methods, wearable device and computer readable storage medium
CN110086808A (en) A kind of Account Logon control method, equipment and computer readable storage medium
CN110083513A (en) A kind of lamp effect control method, equipment and computer readable storage medium
CN110198411A (en) Depth of field control method, equipment and computer readable storage medium during a kind of video capture
CN110069136A (en) A kind of wearing state recognition methods, equipment and computer readable storage medium
CN110175008A (en) Method, wearable device and the computer readable storage medium of operating terminal
CN110083248A (en) Method for message interaction, wearable device and computer readable storage medium
CN110072071A (en) A kind of video record interaction control method, equipment and computer readable storage medium
CN110069102A (en) A kind of display area regulation method, equipment and computer readable storage medium
CN109901812A (en) Wearable device volume adjusting method, wearable device and readable storage medium storing program for executing
CN110083208A (en) A kind of overturning control method, equipment and computer readable storage medium
CN110090439A (en) Special display effect method, terminal and computer readable storage medium
CN110134304A (en) A kind of Folding display method, equipment and computer readable storage medium
CN110083332A (en) Audio switching method, wearable device and computer readable storage medium
CN110113481A (en) Open method, terminal, wearable device and the medium of corresponding application on wearable device
CN110083427A (en) A kind of application program interaction control method, equipment and computer readable storage medium
CN110150804A (en) A kind of Watchband fixing structure and wearable device
CN110069352A (en) A kind of event notification method, wearable device and computer readable storage medium
CN110448020A (en) A kind of wearable device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220722

Address after: 710000 No. 19-21, floor 12, block a, zhongdeng city garden, Fengcheng 4th Road, Weiyang Road, economic and Technological Development Zone, Xi'an, Shaanxi Province

Applicant after: Xi'an Shangding Energy Technology Co.,Ltd.

Address before: 518057 Dazu Innovation Building, 9018 Beihuan Avenue, Nanshan District, Shenzhen City, Guangdong Province, 6-8, 10-11, 6 and 6-10 floors in Area A, B and C

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant