CN109874136A - A kind of method, apparatus, storage medium and the electronic equipment of share for Bluetooth memory - Google Patents

A kind of method, apparatus, storage medium and the electronic equipment of share for Bluetooth memory Download PDF

Info

Publication number
CN109874136A
CN109874136A CN201910218641.7A CN201910218641A CN109874136A CN 109874136 A CN109874136 A CN 109874136A CN 201910218641 A CN201910218641 A CN 201910218641A CN 109874136 A CN109874136 A CN 109874136A
Authority
CN
China
Prior art keywords
time
blue
module
bluetooth
sending
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
CN201910218641.7A
Other languages
Chinese (zh)
Other versions
CN109874136B (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Leplay Technology Co.,Ltd.
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910218641.7A priority Critical patent/CN109874136B/en
Publication of CN109874136A publication Critical patent/CN109874136A/en
Application granted granted Critical
Publication of CN109874136B publication Critical patent/CN109874136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application provides method, apparatus, storage medium and the electronic equipment of a kind of share for Bluetooth memory, applied to blue-tooth device, the blue-tooth device includes transceiver module, connection switch and blue-teeth data memory, the connection switch is for blue-teeth data memory to be connect with transceiver module, the method of the share for Bluetooth memory determines corresponding preset time according to the reaction time of data transmit-receive by when detecting bluetooth connection success, determining the sending time slots of bluetooth or receiving time slot;In the sending time slots or before receiving time slot arrival, preset in advance time control connection switch is connect with transceiver module, and blue-teeth data memory is made to be connected with transceiver module;Pass through blue-teeth data memory sending and receiving data.With this, in sending time slots or receives before time slot arrives through connection switch connection transceiver module and blue-teeth data memory, eliminate the waiting time that bluetooth connects blue-teeth data memory when receiving or sending data, improve the efficiency of data transmission.

Description

A kind of method, apparatus, storage medium and the electronic equipment of share for Bluetooth memory
Technical field
This application involves field of communication technology more particularly to a kind of method, apparatus of share for Bluetooth memory, storage medium and Electronic equipment.
Background technique
With the development of communication technology, bluetooth can be provided on mobile terminal at present, is generally adopted on mobile terminal at present With Bluetooth chip, mobile terminal is made to support Bluetooth function, to have equipment such as automobile, wrist-watch, the earphone of bluetooth with other Etc. equipment be wirelessly connected.
Currently, having become number common between equipment by bluetooth connection with the transmission for carrying out the data such as picture, file It,, will be blue in order to reduce resource utilization since bluetooth is relatively lower speed according to transmission mode, but in the transmission process of data The data of reception, the transmission of tooth distribute bluetooth receiving module or transmission when bluetooth receives or sends data in bluetooth memory Module connects this memory to carry out the transmission of data, but Bluetooth data transfer requires repeatedly to connect bluetooth memory and is easy to make every time At time delay, to influence the efficiency of transmission of bluetooth.
Summary of the invention
The embodiment of the present application provides method, apparatus, storage medium and the electronic equipment of a kind of share for Bluetooth memory, Ke Yiti Preceding bluetooth transceiver module and blue-teeth data Memory linkage reduce the time that data are sent, and promote Bluetooth data transfer efficiency.
In a first aspect, the embodiment of the present application provides a kind of method of share for Bluetooth memory, it is applied to blue-tooth device, it is described Device includes transceiver module, connection switch and blue-teeth data memory, and the connection switch is used for blue-teeth data memory and transmitting-receiving Module connection, the method for the share for Bluetooth memory include:
When detecting bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;
Corresponding preset time is determined according to the reaction time of data transmit-receive;
In the sending time slots or receive preset in advance time control connection switch and transceiver module company before time slot arrives It connects, blue-teeth data memory is made to be connected with transceiver module;
Pass through blue-teeth data memory sending and receiving data.
Second aspect, the embodiment of the present application provide a kind of device of share for Bluetooth memory, are applied to blue-tooth device, described Blue-tooth device includes transceiver module, connection switch and blue-teeth data memory, the connection switch be used for by blue-teeth data memory with Transceiver module connection, the device of the share for Bluetooth memory include:
Detection module, for when detecting bluetooth connection success, determining the sending time slots of bluetooth or receiving time slot;
Determining module determines corresponding preset time for the reaction time according to data transmit-receive;
Link block, for the preset in advance time to control connection switch in the sending time slots or before receiving time slot arrival It is connect with transceiver module, blue-teeth data memory is made to be connected with transceiver module;
Data module, for passing through blue-teeth data memory sending and receiving data.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method for the share for Bluetooth memory provided such as the application any embodiment when said program is executed by a processor.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, including processor and memory, the memory There is computer program, realizes when the processor is by calling the computer program as the application any embodiment provides The method of share for Bluetooth memory.
The embodiment of the present application provides a kind of method of share for Bluetooth memory, is applied to blue-tooth device, and described device includes Transceiver module, connection switch and blue-teeth data memory, the connection switch are used to for blue-teeth data memory connecting with transceiver module, The method of the share for Bluetooth memory is by determining the sending time slots of bluetooth when detecting bluetooth connection success or receives time slot Corresponding preset time is determined according to the reaction time of data transmit-receive;In the sending time slots or the premise of reception time slot arrival Preceding preset time control connection switch is connect with transceiver module, and blue-teeth data memory is made to be connected with transceiver module;Pass through bluetooth Datarams sending and receiving data.With this, in sending time slots or connection transceiver module and blue-teeth data memory before time slot arrives are received, The waiting time that bluetooth connects blue-teeth data memory when receiving or sending data is eliminated, the effect of data transmission is improved Rate.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that the accompanying drawings in the following description is only some embodiments of the application, it is right For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is the structural schematic diagram of blue-tooth device provided by the embodiments of the present application.
Fig. 2 is the flow diagram of the method for share for Bluetooth memory provided by the embodiments of the present application.
Fig. 3 is another structural schematic diagram of blue-tooth device provided by the embodiments of the present application.
Fig. 4 is another flow diagram of the method for share for Bluetooth memory provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of the device of share for Bluetooth memory provided by the embodiments of the present application.
Fig. 6 is another structural schematic diagram of the device of share for Bluetooth memory provided by the embodiments of the present application.
Fig. 7 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 8 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 9 is the another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
Term as used herein " module " can regard the software object to execute in the arithmetic system as.It is somebody's turn to do herein not Same component, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And the device and method being somebody's turn to do herein is excellent Being implemented in the form of software for choosing, can also be implemented on hardware, certainly within the application protection scope.
The embodiment of the present application provides a kind of method of share for Bluetooth memory, the executing subject of the method for the share for Bluetooth memory It can be the device of share for Bluetooth memory provided by the embodiments of the present application, or to be integrated with the device of the share for Bluetooth memory Electronic equipment, wherein the device of the share for Bluetooth memory can be realized by the way of hardware or software.Wherein, electronic equipment It can be smart phone, tablet computer, palm PC (PDA, Personal Digital Assistant) etc..
Referring to Fig. 1, Fig. 1 is the structural schematic diagram of blue-tooth device provided in this embodiment, wherein blue-tooth device 10 wraps It includes: blue-teeth data memory 110, connection switch 120 and transceiver module 130.
Wherein, blue-teeth data memory 110 is connected by connection switch 120 with transceiver module 130, specifically, connection is opened Closing includes switch and the connecting pin A and the connecting pin B in 120, and transceiver module 130 is connected with the connecting pin A in connection switch, when even When connecing the switch in switch 120 and being connected with the connecting pin A, transceiver module 130 passes through connection switch 120 and blue-teeth data memory 110 are connected, and pass through 110 sending and receiving data of blue-teeth data memory;When the switch in connection switch 120 is connected with the connecting pin B When, connection switch 120 is disconnected with transceiver module 130, and transceiver module 130 is disconnected with blue-teeth data memory 110 at this time, Transmitting-receiving of the transceiver module 130 without data at this time.
The embodiment of the present application provides a kind of method of share for Bluetooth memory, is applied to above-mentioned blue-tooth device 10, please refers to figure 2, Fig. 2 be the flow diagram of the method for share for Bluetooth memory provided by the embodiments of the present application, the method for the share for Bluetooth memory The following steps are included:
In step s101, when detecting bluetooth connection success, the sending time slots of bluetooth is determined or receive time slot.
Wherein, bluetooth is specifically the bluetooth equipment being made of blue-tooth device, the electronic equipment including having Bluetooth function.Tool Body, when detecting bluetooth equipment successful connection, bluetooth equipment connect composition piconet with other bluetooth equipments, due to one Include a main equipment and one or more in a piconet from equipment, and determines output time slot according to main equipment, therefore when inspection When measuring bluetooth equipment successful connection, determine whether the bluetooth equipment is main equipment, when the bluetooth equipment is main equipment, according to Circulation is numbered to time slot in the local clock of the bluetooth equipment, determines that the initial time of the sending time slots of the bluetooth equipment is The initial time of the initial time of even timeslots, the reception time slot of the bluetooth equipment is the initial time of odd numbered slots, is being carried out When data transmit-receive, the initial time of data transmit-receive and the initial time of time slot are synchronous.
When the bluetooth equipment be from equipment when, for guarantee and the synchronous and frequency-hopping synchronization of main equipment transmitting-receiving, in the bluetooth equipment Local clock in be added offset to realize synchronization.Further, determine that the bluetooth is set according to the time slot that main equipment determines The initial time of standby sending time slots is the initial time of odd numbered slots, and the initial time for receiving time slot is the starting of even timeslots Moment.In the transmitting-receiving instruction for receiving data, the initial time of nearest sending time slots and reception time slot is determined, so that In sending time slots or receive sending and receiving data when time slot arrives.
It should be noted that sending time slots refer to that sending module is connected with blue-teeth data memory, and data are passed through into indigo plant The interval of time that tooth datarams are successfully transmitted away.It receives time slot and refers to that receiving module is connected with blue-teeth data memory It connects, and is properly received the interval of time of information by blue-teeth data memory.
In step s 102, corresponding preset time is determined according to the reaction time of data transmit-receive.
Wherein, connection switch starts to connect transceiver module when starting the history of receiving and transmitting signal to transceiver module to record each time Between it is poor, which is defined as to the reaction time of data transmit-receive, and determine according to the reaction time default accordingly Time.
In some embodiments, which can be asked arithmetic mean number to obtain corresponding preset time.
In step s 103, the sending time slots or receive time slot arrive before the preset in advance time control connection switch with Transceiver module connection, makes blue-teeth data memory be connected with transceiver module.
Wherein, when the transmitting-receiving for receiving data instructs, sending time slots can be can determine that according to the local clock of main equipment Or slot start time point is received, the start time point of nearest sending time slots or reception time slot is determined, in the sending time slots Or receive preset in advance time control connection switch before time slot arrives and connect with transceiver module, so that the preset in advance time Blue-teeth data memory is connected with transceiver module.
In step S104, pass through blue-teeth data memory sending and receiving data.
Wherein, after transceiver module is connected by connection switch with blue-teeth data memory, transceiver module sends data Data are received to blue-teeth data memory, or by blue-teeth data memory to complete the transmitting-receiving of data.
A kind of method of share for Bluetooth memory provided by the embodiments of the present application is applied to blue-tooth device, the blue-tooth device packet Transceiver module, connection switch and blue-teeth data memory are included, which is used to for blue-teeth data memory connecting with transceiver module, When detecting bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;It is true according to the reaction time of data transmit-receive Make corresponding preset time;In the sending time slots or receives preset in advance time control connection switch before time slot arrives and receive Module connection is sent out, blue-teeth data memory is made to be connected with transceiver module;Pass through blue-teeth data memory sending and receiving data.With this, sending out It send time slot or receives connection transceiver module and blue-teeth data memory before time slot arrives, eliminate bluetooth and receiving or sending number According to when connect blue-teeth data memory waiting time, improve data transmission efficiency.
Referring to Fig. 3, Fig. 3 is another structural schematic diagram of blue-tooth device provided by the embodiments of the present application, the blue-tooth device 10 include blue-teeth data memory 110, connection switch 120 and transceiver module 130, which is used for will be in blue-teeth data 110 are deposited to connect with transceiver module 130, which includes receiving module 1302 and sending module 1304, please refer to Fig. 4, Fig. 4 are a kind of another flow diagram of the method for share for Bluetooth memory provided by the embodiments of the present application, the share for Bluetooth The method of memory includes:
In step s 201, when detecting bluetooth connection success, the sending time slots of bluetooth is determined or receive time slot.
Wherein, when detecting bluetooth equipment successful connection, determine whether the bluetooth equipment belongs to main equipment, when the bluetooth When equipment is main equipment, circulation is numbered to time slot according to the local clock of the bluetooth equipment, determines the hair of the bluetooth equipment Send the initial time of time slot for the initial time of even timeslots, the initial time of the reception time slot of the bluetooth equipment is odd numbered slots Initial time, the initial time of data transmit-receive and the initial time of time slot are synchronous;When the bluetooth equipment is from equipment, to protect Card with the synchronous and frequency-hopping synchronization of main equipment transmitting-receiving, in the local clock of the bluetooth equipment addition offset to realize synchronization.
Further, determined the initial time of the sending time slots of the bluetooth equipment for surprise according to the time slot that main equipment determines The initial time of number time slot, the initial time for receiving time slot is the initial time of even timeslots.It should be noted that bluetooth frequency hopping Rate is 1600 times/second, and 625 microsecond of duration of each frequency is known as a time slot.In the mistake for sending data by bluetooth Initial time and slot synchronization are received and dispatched in Cheng Zhong, data grouping, a data grouping allow 1~5 time slot of occupancy send and It receives.For example, sending time slots are 1865 microseconds when sending data by bluetooth sending module, the data grouping at this time occupies 3 1875 microsecond of time slot carries out the transmission of data, and i.e. control connection switch disconnects and transmitting-receiving mould after 1865 microsecond of sending time slots The connection of block.
In step S202, detect connection switch and transceiver module connection status, when detect connection switch and transmitting-receiving When module starts connection, the current time is recorded as at the first time, which includes sending module and receiving module.
Wherein, please continue to refer to Fig. 3,130 connection status of connection switch 120 and transceiver module is detected, when connection is opened When pass 120 is connect with the connecting pin A1 or the connecting pin A2, connection switch 120 connects with receiving module 1302 or sending module 1304 respectively It connects;When connection switch 120 is connect with the connecting pin B, connection switch 120 and transceiver module 130 are in the state disconnected, when Detect that working as connection switch 120 when connection switch 120 starts to connect with the connecting pin A1 or the connecting pin A2 gets to A1 from the connecting pin B When connecting pin or the connecting pin A2, the current time is recorded as at the first time.
In step S203, the signal strength that transmission power and the receiving module of sending module receive is detected to determine letter Number reiving/transmitting state.
Wherein, when sending signal, certain variation can occur sending module for the transmission power of the sending module, examine at this time The transmission power for surveying sending module determines the transmission state of signal according to the variation for sending power.Meanwhile receiving module is connecing When the collection of letters, certain variation can occur for the power for the signal which receives, and detect receiving module at this time and receive The intensity of signal but to determine the reception state of signal.
In step S204, when the transmission power for detecting sending module is greater than preset value, it is determined as that sending module is opened Begin to send signal by blue-teeth data memory.
Wherein, when the transmission power for detecting sending module is greater than preset value, illustrate that sending module has passed through connection Switch is connected with blue-teeth data memory, ready to the access of bluetooth specific datarams from bluetooth sending module at this time, hair It send module to have begun and signal is sent into signal by blue-teeth data memory.
In step S205, when the intensity for detecting signal that receiving module receives is greater than preset value, it is judged to connecing It receives module and begins through blue-teeth data memory reception signal.
Wherein, when the intensity for detecting signal that receiving module receives is greater than preset value, illustrate receiving module It is connected by connection switch with blue-teeth data memory, at this time from bluetooth receiving module to the access of bluetooth specific datarams Ready, receiving module, which has begun, receives signal by blue-teeth data memory for signal.
In step S206, when detecting that transceiver module starts receiving and transmitting signal, current time is recorded as the second time.
Wherein, it when detecting that sending module proceed-to-send signal or receiving module start to receive signal, such as detects When the intensity of the signal received to receiving module is greater than preset value, record current time is as the second time of reception;Work as detection To sending module transmission power be greater than preset value when, record current time as send the second time.
In step S207, determine that historical time is poor according to first time and the second time, which includes History sending time difference and historical reception time difference.
Wherein, it can determine that historical time is poor according to the difference at the first time with the second time, for example, according to sending first Time and the difference for sending for the second time determine that sending time is poor, specifically, when the second time of transmission will subtract transmission first Between to obtain sending time poor.
In step S208, ask arithmetic mean number to obtain preset time the historical time difference, which includes Default sending time and default receiving time.
Wherein, historical time difference will be sent and seek arithmetic mean number to obtain default sending time, it is poor by historical time is received Arithmetic mean number is asked to obtain default receiving time.For example, connection switch starts to connect sending module to transmission mould to record each time The historical time difference that BOB(beginning of block) sends signal is respectively 0.12 second, 0.14 second, 0.13 second, at this time according to above-mentioned history sending time The default sending time that difference asks arithmetic mean number to obtain is 0.13 second.Correspondingly, connection switch starts to connect record each time Receive module to the historical time difference that receiving module starts reception signal be respectively 0.2 second, 0.24 second, 0.24 second, 0.24 second, at this time Asking arithmetic mean number to obtain default receiving time according to the above-mentioned historical reception time difference is 0.23 second.
In step S209, the sending time slots or receive time slot arrive before the preset in advance time control connection switch with Transceiver module connection, makes blue-teeth data memory be connected with transceiver module.
Wherein, when the transmitting-receiving for receiving data instructs, sending time slots can be can determine that according to the local clock of main equipment Or time slot initial time is received, it determines the initial time of nearest sending time slots or reception time slot, in the sending time slots or connects Preset in advance time control connection switch is connect with transceiver module before time receiving gap arrives, so that the preset in advance time will be blue Tooth datarams are connected with transceiver module.For example, when receiving the transmission instruction of data, being obtained default please continue to refer to Fig. 3 Sending time is 0.13 second, determines the initial time point of sending time slots nearest at this time, and in the premise of sending time slots arrival Preceding 0.13s control connection switch 120 is connect with the connecting pin A2, to guarantee to pass through the company of connection switch 120 and sending module 1304 It connects, so that the connection of sending module 1304 and blue-teeth data memory 110, to send data by blue-teeth data memory 110.
In some embodiments, in the sending time slots or before receiving time slot arrival, the control connection of preset in advance time is opened Pass is connect with transceiver module, and blue-teeth data memory is made to be connected after step with transceiver module, further includes:
After sending time slots or reception time slot, control connection switch disconnects the connection with transceiver module.
Wherein, please continue to refer to Fig. 3, after sending time slots or reception time slot, i.e., transceiver module 130 passes through bluetooth number After the transmitting-receiving for completing data according to memory 110, control connection switch 120 is connect with the connecting pin B, to disconnect switch 120 and receive Send out the connection of module 130.For example, sending time slots are 1865 microseconds when sending data by bluetooth sending module 1304, at this time should Data grouping occupies the transmission that 3 1875 microseconds of time slot carry out data, i.e. control connection after 1865 microsecond of sending time slots Switch 120 disconnects the connection with sending module 1304.
In step S210, pass through blue-teeth data memory sending and receiving data.
Wherein, after transceiver module is connected by connection switch with blue-teeth data memory, transceiver module sends data Data are received to blue-teeth data memory, or by blue-teeth data memory to complete the transmitting-receiving of data.
A kind of method of share for Bluetooth memory provided by the embodiments of the present application is applied to blue-tooth device, the blue-tooth device packet Transceiver module, connection switch and blue-teeth data memory are included, which is used to for blue-teeth data memory connecting with transceiver module, When detecting bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;It is true according to the reaction time of data transmit-receive Make corresponding preset time;In the sending time slots or receives preset in advance time control connection switch before time slot arrives and receive Module connection is sent out, blue-teeth data memory is made to be connected with transceiver module;Pass through blue-teeth data memory sending and receiving data.With this, sending out It send time slot or receives connection transceiver module and blue-teeth data memory before time slot arrives, eliminate bluetooth and receiving or sending number According to when connect blue-teeth data memory waiting time, improve data transmission efficiency.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of the device of share for Bluetooth memory provided by the embodiments of the present application.Specifically For, the device 300 of the share for Bluetooth memory includes: detection module 31, determining module 32, link block 33 and data module 34。
Detection module 31, for when detecting bluetooth connection success, determining the sending time slots of bluetooth or receiving time slot.
Wherein, detection module 31 is used for when detecting bluetooth equipment successful connection, according to the local clock pair of main equipment Circulation is numbered in time slot, when the bluetooth equipment is main equipment, is compiled according to the local clock of the bluetooth equipment to time slot Number circulation, determines that the initial time of the sending time slots of the bluetooth equipment is the initial time of even timeslots, which connects The initial time of time receiving gap is the initial time of odd numbered slots, and the initial time of data transmit-receive and the initial time of time slot are synchronous; When the bluetooth equipment be from equipment when, for guarantee and the synchronous and frequency-hopping synchronization of main equipment transmitting-receiving, at the local of the bluetooth equipment Offset is added in clock to realize synchronization.Further, the transmission of the bluetooth equipment is determined according to the time slot that main equipment determines The initial time of time slot is the initial time of odd numbered slots, and the initial time for receiving time slot is the initial time of even timeslots.Most Afterwards in the transmitting-receiving instruction for receiving data, the initial time of nearest sending time slots and reception time slot is determined, so that Sending time slots receive time slot arrival sending and receiving data.
Determining module 32 determines corresponding preset time for the reaction time according to data transmit-receive.
Wherein it is determined that module 32 record each time connection switch start connect transceiver module to transceiver module start transmitting-receiving believe Number historical time it is poor, which is defined as to the reaction time of data transmit-receive, and determine according to the reaction time Corresponding preset time.
In some embodiments, referring to Fig. 6, Fig. 6 is the device of share for Bluetooth memory provided by the embodiments of the present application Another structural schematic diagram, the determining module 32 include: record sub module 321 and determine submodule 322.
Record sub module 321, starts to connect transceiver module for recording connection switch each time and to transceiver module starts to receive The historical time of signalling is poor.
Wherein, record sub module 321 detect connection switch and transceiver module connection status, when detect connection switch with When transceiver module starts connection, the current time is recorded as at the first time.The transmission power of sending module is detected simultaneously and is connect The signal strength that module receives is received to determine the reiving/transmitting state of signal, when detecting beginning receiving and transmitting signal, is recorded current Time is as the second time.And it is poor according to the difference of the second time and first time each historical time to can be obtained.
Submodule 322 is determined, for determining preset time according to the historical time difference.
Wherein, specifically determine that submodule 322 seeks the available phase of arithmetic mean number according to historical time difference each time The preset time answered.
Link block 33, for the preset in advance time to control connection switch in the sending time slots or before receiving time slot arrival It is connect with transceiver module, blue-teeth data memory is made to be connected with transceiver module.
Wherein, when the transmitting-receiving for receiving data instructs, sending time slots can be can determine that according to the local clock of main equipment Or slot start time point is received, determine the start time point of nearest sending time slots or reception time slot, link block 33 exists Preset in advance time control connection switch is connect with transceiver module before the sending time slots or reception time slot arrive, so that mentioning Blue-teeth data memory is connected by preceding preset time with transceiver module.
Data module 34, for passing through blue-teeth data memory sending and receiving data.
Wherein, data module 34 is used for after transceiver module is connected by connection switch with blue-teeth data memory, is received Hair module sends data to blue-teeth data memory, or receives data by blue-teeth data memory to complete the transmitting-receiving of data.
A kind of device of share for Bluetooth memory provided by the embodiments of the present application is applied to blue-tooth device, the blue-tooth device packet Transceiver module, connection switch and blue-teeth data memory are included, which is used to for blue-teeth data memory connecting with transceiver module, When detection module 31 detects bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;Determining module 32 Corresponding preset time is determined according to the reaction time of data transmit-receive;Link block 33 is in the sending time slots or receives time slot arrival The connection switch of preset in advance time control before is connect with transceiver module, and blue-teeth data memory is made to be connected with transceiver module;Number Pass through blue-teeth data memory sending and receiving data according to module 34.With this, in sending time slots or connection transmitting-receiving mould before time slot arrives is received Block and blue-teeth data memory eliminate the waiting time that bluetooth connects blue-teeth data memory when receiving or sending data, mention The efficiency of data transmission is risen.
The embodiment of the present application also provides a kind of electronic equipment.Referring to Fig. 7, electronic equipment 500 includes 10 He of blue-tooth device Master controller 140, the blue-tooth device 10 are connected with master controller 140, and the specific blue-tooth device includes: blue-teeth data memory 110, connection switch 120, receiving module 1302, sending module 1304.The master controller 140 include: send detection module 1401, Switch control module 1402 receives detection module 1403 and time computing module 1404.
Wherein, receiving module 1302 is specifically used for the data conversion in blue-teeth data memory 110 passing through bluetooth at signal Device 10 is sent.Sending module 1304 is specifically used for receiving data by blue-tooth device 10 and store to blue-teeth data memory 110.In addition, master controller 140 respectively with the connection switch 120 in blue-tooth device 10, receiving module 1302, sending module 1304 It is connected.Specifically, the switch control module 1402 in master controller 140 is connected with connection switch 120, for controlling connection Switch 120 is connected and disconnected from transceiver module 130, i.e. control connection switch 120 and the connecting pin A1, the connecting pin A2, the connecting pin B Connection status.
Transmission detection module 1401 and reception detection module 1403 in master controller 140 is respectively and in blue-tooth device 10 Sending module 1304 is connected with receiving module 1302, is specifically used for after connection switch 120 is connect with transceiver module 130, inspection Survey the reiving/transmitting state of data in the transceiver module 130.Specifically, the transmission detection module 1401 be used for connection switch 120 with After sending module 1304 connects, detection sending module 1304 sends the state of signal, which reads in real time The transmission power of sending module 1304 determines that sending module 1304 has begun when detecting that sending power is greater than preset value Send signal.Correspondingly, the reception detection module 1403 is used for after connection switch 120 is connect with receiving module 1302, detection Receiving module 1302 receives the state of signal, which reads the signal that receiving module 1302 receives in real time Intensity determines that receiving module 1302 starts to receive signal when detecting that the signal strength received is greater than preset value.
On the other hand, in master controller 140 time computing module 1404 respectively with send detection module 1401, switch control Module 1402, reception detection module 1403 are connected, and include that timer (not shown) has in the time computing module 1404 Body is used to record the reaction time of data transmit-receive, thus when time computing module 1404 calculates default according to the reaction time Between, since the timer can synchronize current time, therefore in sending time slots or receive before time slot arrives in master controller 140 1402 preset in advance time of switch control module control connection switch 120 is attached with transceiver module 130.
Referring to Fig. 8, electronic equipment 500 includes processor 501 and memory 502.Wherein, processor 501 and storage Device 502 is electrically connected.
The processor 500 is the control centre of electronic equipment 500, utilizes various interfaces and the entire electronic equipment of connection Various pieces, the computer program in memory 502 by operation or load store, and call and be stored in memory Data in 502 execute the various functions of electronic equipment 500 and handle data, to carry out whole prison to electronic equipment 500 Control.
The memory 502 can be used for storing software program and module, and processor 501 is stored in memory by operation 502 computer program and module, thereby executing various function application and data processing.Memory 502 can mainly include Storing program area and storage data area, wherein storing program area can computer needed for storage program area, at least one function Program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to electronic equipment The data etc. of creation.In addition, memory 502 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide access of the processor 501 to memory 502.
In the embodiment of the present application, the processor 501 in electronic equipment 500 can be according to following step, by one or one The corresponding instruction of the process of a above computer program is loaded into memory 502, and is stored in by the operation of processor 501 Computer program in reservoir 502, thus realize various functions, it is as follows:
When detecting bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;
Corresponding preset time is determined according to the reaction time of data transmit-receive;
In the sending time slots or before receiving time slot arrival, preset in advance time control connection switch is connect with transceiver module, Blue-teeth data memory is set to be connected with transceiver module;
Pass through blue-teeth data memory sending and receiving data.
A kind of method of share for Bluetooth memory provided by the embodiments of the present application is applied to blue-tooth device, the blue-tooth device packet Transceiver module, connection switch and blue-teeth data memory are included, which is used to for blue-teeth data memory connecting with transceiver module, When detecting bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;It is true according to the reaction time of data transmit-receive Make corresponding preset time;In the sending time slots or receives preset in advance time control connection switch before time slot arrives and receive Module connection is sent out, blue-teeth data memory is made to be connected with transceiver module;Pass through blue-teeth data memory sending and receiving data.With this, sending out It send time slot or receives connection transceiver module and blue-teeth data memory before time slot arrives, eliminate bluetooth and receiving or sending number According to when connect blue-teeth data memory waiting time, improve data transmission efficiency.
Also referring to Fig. 9, in some embodiments, electronic equipment 500 can also include: display 503, radio frequency electrical Road 504, voicefrequency circuit 505 and power supply 506.Wherein, wherein display 503, radio circuit 504, voicefrequency circuit 505 and Power supply 506 is electrically connected with processor 501 respectively.
The display 503 be displayed for information input by user or be supplied to user information and various figures User interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display 503 may include display panel, in some embodiments, can use liquid crystal display (Liquid Crystal Display, LCD) or the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) match Set display panel.
The radio circuit 504 can be used for transceiving radio frequency signal, with by wireless communication with the network equipment or other electronics Equipment establishes wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
The voicefrequency circuit 505 can be used for providing the audio between user and electronic equipment by loudspeaker, microphone and connecing Mouthful.
The power supply 506 is used to all parts power supply of electronic equipment 500.In some embodiments, power supply 506 can With logically contiguous by power-supply management system and processor 501, thus charged, discharged by power-supply management system realization management, And the functions such as power managed.
Although being not shown in Fig. 9, electronic equipment 500 can also include camera, bluetooth module etc., and details are not described herein.
The embodiment of the present application also provides a kind of storage medium, which is stored with computer program, when the computer When program is run on computers, so that the method that the computer executes the share for Bluetooth memory in any of the above-described embodiment, than Such as: when detecting bluetooth connection success, determining the sending time slots of bluetooth or receive time slot;According to the reaction time of data transmit-receive Determine corresponding preset time;The sending time slots or receive time slot arrive before the preset in advance time control connection switch with Transceiver module connection, makes blue-teeth data memory be connected with transceiver module;Pass through blue-teeth data memory sending and receiving data.
In the embodiment of the present application, storage medium can be magnetic disk, CD, read-only memory (Read Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It should be noted that for the method for the share for Bluetooth memory of the embodiment of the present application, this field common test people Member is understood that realize all or part of the process of the method for the share for Bluetooth memory of the embodiment of the present application, is that can pass through calculating Machine program is completed to control relevant hardware, which can be stored in a computer-readable storage medium, such as It is stored in the memory of electronic equipment, and is executed by least one processor in the electronic equipment, in the process of implementation may be used Process including such as embodiment of the method for share for Bluetooth memory.Wherein, above-mentioned storage medium can for magnetic disk, CD, read-only deposit Reservoir, random access memory etc..
For the device of the share for Bluetooth memory of the embodiment of the present application, each functional module can integrate to be handled at one In chip, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module. Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.The collection If at module realized in the form of software function module and when sold or used as an independent product, also can store In one computer-readable storage medium, which is for example read-only memory, disk or CD etc..
Above to method, apparatus, storage medium and the electronics of a kind of share for Bluetooth memory provided by the embodiment of the present application Equipment is described in detail, and specific examples are used herein to illustrate the principle and implementation manner of the present application, with The explanation of upper embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the technology of this field Personnel, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this theory Bright book content should not be construed as the limitation to the application.

Claims (10)

1. a kind of method of share for Bluetooth memory is applied to blue-tooth device, described device includes transceiver module, connection switch and indigo plant Tooth datarams, the connection switch is for blue-teeth data memory to be connect with transceiver module, which is characterized in that the bluetooth is total The method for enjoying memory includes:
When detecting bluetooth connection success, determines the sending time slots of bluetooth or receive time slot;
Corresponding preset time is determined according to the reaction time of data transmit-receive;
In the sending time slots or before receiving time slot arrival, preset in advance time control connection switch is connect with transceiver module, is made Blue-teeth data memory is connected with transceiver module;
Pass through blue-teeth data memory sending and receiving data.
2. the method according to claim 1, wherein the reaction time according to data transmit-receive is determined accordingly Preset time the step of, comprising:
Record each time connection switch start to connect the transceiver module historical time that starts receiving and transmitting signal to transceiver module it is poor;
Preset time is determined according to the historical time difference.
3. according to the method described in claim 2, it is characterized in that, the connection switch each time that records starts connection transmitting-receiving mould Block starts the step of the historical time difference of receiving and transmitting signal to transceiver module, comprising:
The connection status for detecting connection switch and transceiver module, when detecting that connection switch starts to connect with transceiver module, note The current time is recorded as at the first time;
The reiving/transmitting state for detecting the signal of transceiver module records current time when detecting that transceiver module starts receiving and transmitting signal As the second time;
Determine that historical time is poor according to first time and the second time, the historical time difference include history sending time difference and The historical reception time difference.
4. according to the method described in claim 3, the transceiver module includes sending module and receiving module, which is characterized in that The step of reiving/transmitting state of the signal of the detection transceiver module, comprising:
The signal strength that receives of transmission power and receiving module of detection sending module determines the reiving/transmitting state of signal;
When the transmission power for detecting sending module is greater than preset value, it is determined as that sending module begins through blue-teeth data memory Send signal;
When the intensity for detecting signal that receiving module receives is greater than preset value, it is determined as that receiving module begins through bluetooth Datarams receive signal.
5. according to the method described in claim 2, it is characterized in that, described determine preset time according to the historical time difference The step of, comprising:
The historical time difference is sought into arithmetic mean number to obtain preset time, the preset time include default sending time and Default receiving time.
6. the method according to claim 1, wherein described send or receive before time slot arrives in advance described After the step of preset time control connection switch is connect with transceiver module, comprising:
After sending time slots or reception time slot, control connection switch disconnects the connection with transceiver module.
7. a kind of device of share for Bluetooth memory is applied to blue-tooth device, the blue-tooth device includes transceiver module, connection switch With blue-teeth data memory, the connection switch is for blue-teeth data memory to be connect with transceiver module, which is characterized in that the indigo plant The device of tooth shared drive includes:
Detection module, for when detecting bluetooth connection success, determining the sending time slots of bluetooth or receiving time slot;
Determining module determines corresponding preset time for the reaction time according to data transmit-receive;
Link block, for the preset in advance time to control connection switch and receives in the sending time slots or before receiving time slot arrival Module connection is sent out, blue-teeth data memory is made to be connected with transceiver module;
Data module, for passing through blue-teeth data memory sending and receiving data.
8. device according to claim 7, which is characterized in that the determining module includes:
Record sub module, starts to connect transceiver module for recording connection switch each time and to transceiver module starts receiving and transmitting signal Historical time is poor;
Submodule is determined, for determining preset time according to the historical time difference.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is by processor The method of 1 to 6 described in any item share for Bluetooth memories is realized when execution.
10. a kind of electronic equipment, including processor and memory, the memory have computer program, which is characterized in that described Processor is by calling the computer program, for executing such as share for Bluetooth memory as claimed in any one of claims 1 to 6 Method.
CN201910218641.7A 2019-03-21 2019-03-21 Bluetooth memory sharing method and device, storage medium and electronic equipment Active CN109874136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910218641.7A CN109874136B (en) 2019-03-21 2019-03-21 Bluetooth memory sharing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910218641.7A CN109874136B (en) 2019-03-21 2019-03-21 Bluetooth memory sharing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109874136A true CN109874136A (en) 2019-06-11
CN109874136B CN109874136B (en) 2022-01-04

Family

ID=66921021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910218641.7A Active CN109874136B (en) 2019-03-21 2019-03-21 Bluetooth memory sharing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109874136B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110931026A (en) * 2019-11-27 2020-03-27 南京中感微电子有限公司 Audio data communication method, equipment and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030802A (en) * 2007-02-05 2007-09-05 北京邮电大学 Wireless multi-skip trunk network combining method for supporting multimedium broadcasting service
WO2011068554A1 (en) * 2009-12-01 2011-06-09 Qualcomm Incorporated Method and apparatus of utilizing uplink synchronization shift command bits in td-scdma uplink transmission
CN102144359A (en) * 2008-09-03 2011-08-03 诺基亚公司 Software-defined radio configuration
CN103181232A (en) * 2010-07-22 2013-06-26 捷讯研究有限公司 Methods and apparatus to poll in wireless communications
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
CN106559737A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth operating mode switching control method and device
WO2018223408A1 (en) * 2017-06-06 2018-12-13 Hong Kong Applied Science and Technology Research Institute Company Limited Optimized deployment of ble network and power efficient and secure management of data exchange between ble devices
CN109495867A (en) * 2018-11-22 2019-03-19 重庆物奇科技有限公司 The method of bluetooth equipment, system and the transmission of equipment room information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030802A (en) * 2007-02-05 2007-09-05 北京邮电大学 Wireless multi-skip trunk network combining method for supporting multimedium broadcasting service
CN102144359A (en) * 2008-09-03 2011-08-03 诺基亚公司 Software-defined radio configuration
WO2011068554A1 (en) * 2009-12-01 2011-06-09 Qualcomm Incorporated Method and apparatus of utilizing uplink synchronization shift command bits in td-scdma uplink transmission
CN103181232A (en) * 2010-07-22 2013-06-26 捷讯研究有限公司 Methods and apparatus to poll in wireless communications
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
CN106559737A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth operating mode switching control method and device
WO2018223408A1 (en) * 2017-06-06 2018-12-13 Hong Kong Applied Science and Technology Research Institute Company Limited Optimized deployment of ble network and power efficient and secure management of data exchange between ble devices
CN109495867A (en) * 2018-11-22 2019-03-19 重庆物奇科技有限公司 The method of bluetooth equipment, system and the transmission of equipment room information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110931026A (en) * 2019-11-27 2020-03-27 南京中感微电子有限公司 Audio data communication method, equipment and system

Also Published As

Publication number Publication date
CN109874136B (en) 2022-01-04

Similar Documents

Publication Publication Date Title
US10956280B2 (en) Data backup method, electronic device, and storage medium
CN105790349A (en) Mutual charging control method and device for mobile terminals
CN106681860B (en) A kind of data back up method and data backup device
WO2019014881A1 (en) Wireless communication method and device
CN110572508B (en) Address book synchronization method and device, storage medium and electronic equipment
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN109120683A (en) data transmission method and related product
CN108540152A (en) Processing method, device, storage medium and the electronic equipment of radio frequency interference
CN108965042B (en) Network delay obtaining method and device, terminal equipment and storage medium
CN104917905A (en) Strange incoming call processing method, terminal and server
CN109874136A (en) A kind of method, apparatus, storage medium and the electronic equipment of share for Bluetooth memory
WO2019191996A1 (en) Data transmission method and device
CN116089358B (en) Data migration method and electronic equipment
CN114996186B (en) Docking station video output method, device, terminal and computer readable storage medium
CN114173286B (en) Method and device for determining test path, electronic equipment and readable storage medium
CN106502809B (en) A kind of multi-platform application program adaptation method, device and terminal device
CN110225106B (en) Data transmission method, device and storage medium
CN109218521A (en) A kind of event transfer method, device, equipment and storage medium
WO2021244118A1 (en) Smart card sharing method, electronic device, and computer-readable storage medium
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
EP3606215B1 (en) Mobile terminal-based call link switching and control method, system, and mobile terminal
CN111277642B (en) Method and device for enhancing information transmission speed, storage medium and mobile terminal
CN112367703B (en) Frequency band registration method and device of identification card, storage medium and mobile terminal
CN112256197B (en) Management method, device and equipment for storage information and storage medium
CN111654848B (en) NFC card detection method and device, storage medium and mobile terminal

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

Effective date of registration: 20231212

Address after: Building B, 625, Urban Shanhai Center, No. 11 Zhongxing Road, Ma'antang Community, Bantian Street, Longgang District, Shenzhen City, Guangdong Province, 518100

Patentee after: Shenzhen Leplay Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.