CN104993849A - Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal - Google Patents

Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal Download PDF

Info

Publication number
CN104993849A
CN104993849A CN201510382958.6A CN201510382958A CN104993849A CN 104993849 A CN104993849 A CN 104993849A CN 201510382958 A CN201510382958 A CN 201510382958A CN 104993849 A CN104993849 A CN 104993849A
Authority
CN
China
Prior art keywords
bluetooth
bonding strength
music
compression value
transmission speed
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.)
Pending
Application number
CN201510382958.6A
Other languages
Chinese (zh)
Inventor
张圣杰
姚光华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510382958.6A priority Critical patent/CN104993849A/en
Publication of CN104993849A publication Critical patent/CN104993849A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the technical field of intelligent terminals, in particular to a method for automatically adjusting the music compression value according to the Bluetooth connection intensity and a terminal. The method comprises the following steps: detecting the Bluetooth connection intensity in real time; calculating a Bluetooth connection distance away from paired Bluetooth equipment according to the Bluetooth connection intensity; looking up a Bluetooth transmission rate corresponding to the Bluetooth connection distance in a preset Bluetooth transmission rate and Bluetooth connection distance database; and calculating the music compression value under the current Bluetooth connection intensity according to the Bluetooth transmission rate in order to compress and transmit music data according to the music compression value. A maximum music compression value under the current Bluetooth connection intensity is calculated according to the detected Bluetooth connection intensity, and the music data is compressed and transmitted according to the maximum music compression value, so that minimum audio component loss of the music data transmitted via Bluetooth is ensured, and the fidelity of the music data and the hearing feel of a user during playing are improved.

Description

A kind of method and terminal automatically adjusting music compression value according to bluetooth bonding strength
Technical field
The present invention relates to intelligent terminal technical field, particularly relate to a kind of method and the terminal that automatically adjust music compression value according to bluetooth bonding strength.
Background technology
Bluetooth (Bluetooth): be a kind of wireless technology standard, can realize permanent plant, short-range data between mobile device and building personal area network exchanges (the UHF radio wave using the ISM wave band of 2.4-2.485GHz).Bluetooth technology is formulated in 1994 by telecommunications giant Ericsson at first, is the replacement scheme as RS232 data wire at that time.Bluetooth can connect multiple equipment, overcomes a difficult problem for data syn-chronization.
Bluetooth can transmit polytype data, and current bluetooth adopts A2DP protocol transmission music data.In the A2DP agreement of Bluetooth transmission music data, the compressed encoding form of mandatory requirement support is SBC (Sub-Band Coding), have the setting of a compressed value Bitpool in SBC compressed format, the setting of this compressed value Bitpool at present completes before mobile terminal dispatches from the factory.In order to still can keep the smooth playing of music data when bluetooth bonding strength is more weak, compressed value Bitpool in mobile terminal generally arranges less, namely during Bluetooth transmission music data used for mobile terminal, the compression ratio of music data is higher, audio frequency component loss is more, cause the Bluetooth recipient devices matched with mobile terminal as bluetooth earphone or on-vehicle Bluetooth, the tonequality playing music data is not high, and user can be easier to find out the impaired composition of central compression, and sense of hearing is bad.
Summary of the invention
Main purpose of the present invention is to propose a kind of method and terminal automatically adjusting music compression value according to bluetooth bonding strength.Method of the present invention detects bluetooth bonding strength in real time, according to the bluetooth bonding strength detected, calculates the maximum music compression value under current Bluetooth bonding strength, to compress music data by described maximum music compression value and to transmit; Thus ensure the audio frequency component loss reduction of the music data of Bluetooth transmission, the sense of hearing of user when improving the fidelity of music data and play.
The technical scheme that the present invention solves the problems of the technologies described above is as follows:
Automatically adjust a terminal for music compression value according to bluetooth bonding strength, comprising:
Bluetooth bonding strength detection module, for detecting bluetooth bonding strength in real time;
Bluetooth connects distance calculation module, for the bluetooth bonding strength detected according to described bluetooth bonding strength detection module, calculates and is connected distance with the bluetooth of matching between bluetooth equipment;
Database, comprises bluetooth transmission speed is connected distance corresponding relation with bluetooth;
Bluetooth transmission speed searches module, for being connected with bluetooth in the database of the corresponding relation of distance at the bluetooth transmission speed that comprises preset, finding described bluetooth and connecting bluetooth transmission speed apart from correspondence;
Music compression value calculating and setting module, for searching the bluetooth transmission speed that module searches arrives according to described bluetooth transmission speed, calculates the music compression value under current Bluetooth bonding strength;
Music data compression module, the music compression value for obtaining according to described music compression value calculating and setting module carries out the compression of music data, and transfers to bluetooth peripheral hardware.
Preferably, the described bluetooth bonding strength detected according to described bluetooth bonding strength detection module, calculate and be connected distance with the bluetooth of matching between bluetooth equipment and be: d=10^ ((abs (RSSI)-A)/(10*n)), wherein, d be that bluetooth connects distance, RSSI is bluetooth bonding strength (negative value), A be Bluetooth transmission end and receiving terminal be separated by 1 meter time signal strength signal intensity, n be the environmental attenuation factor.
Preferably, describedly search according to described bluetooth transmission speed the bluetooth transmission speed that module searches arrives, the music compression value calculated under current Bluetooth bonding strength is specially: BitPool=bluetooth transmission speed * 8/ (BitPool coefficient * plays channel number), wherein, BitPool coefficient is the conversion coefficient that SBC coded format specifies, is generally 1BitPool=6 ~ 7kbit/s.
Preferably, described bluetooth bonding strength detection module and described music data compression module are built in the chip that to be connected for bluetooth and to transmit, and described bluetooth connects distance calculation module, described bluetooth transmission speed searches module and described music compression value calculating and setting module is built in CPU for calculation process or special DSP.
Preferably, the described chip connected for bluetooth and transmit is special chip or All-in-One chip.
Automatically adjust a method for music compression value according to bluetooth bonding strength, comprising:
Real-time detection bluetooth bonding strength;
According to described bluetooth bonding strength, calculate and be connected distance with the bluetooth of matching between bluetooth equipment;
Be connected in range data storehouse with bluetooth at the bluetooth transmission speed preset, find described bluetooth and connect bluetooth transmission speed corresponding to distance;
According to described bluetooth transmission speed, calculate the music compression value under current Bluetooth bonding strength, to compress music data by described music compression value and to transmit.
Preferably, described according to described bluetooth bonding strength, calculate and be connected distance with the bluetooth of matching between bluetooth equipment and be specially: d=10^ ((abs (RSSI)-A)/(10*n)), wherein, d be that bluetooth connects distance, RSSI is bluetooth bonding strength (negative value), A be Bluetooth transmission end and receiving terminal be separated by 1 meter time signal strength signal intensity, n be the environmental attenuation factor.
Preferably, described according to described bluetooth transmission speed, the music compression value calculated under current Bluetooth bonding strength is specially: BitPool=bluetooth transmission speed * 8/ (BitPool coefficient * plays channel number), wherein, BitPool coefficient is the conversion coefficient that SBC coded format specifies, is generally 1BitPool=6 ~ 7kbit/s.
Preferably, before described real-time detection bluetooth bonding strength, also comprise: the switch opening adjustment music compression value automatically.
The invention provides a kind of method and the terminal that automatically adjust music compression value according to bluetooth bonding strength, described method comprises: detect bluetooth bonding strength in real time; According to described bluetooth bonding strength, calculate and be connected distance with the bluetooth of matching between bluetooth equipment; Be connected in range data storehouse with bluetooth at the bluetooth transmission speed preset, find described bluetooth and connect bluetooth transmission speed corresponding to distance; According to described bluetooth transmission speed, calculate the music compression value under current Bluetooth bonding strength, to compress music data by described music compression value and to transmit.Method of the present invention detects bluetooth bonding strength in real time, the maximum music compression value under current Bluetooth bonding strength is gone out according to the bluetooth join-strength calculation detected, by described maximum music compression value music data compressed and transmit, thus ensure the audio frequency component loss reduction of the music data of Bluetooth transmission, the sense of hearing of user when improving the fidelity of music data and play.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of flow chart automatically adjusting the method for music compression value according to bluetooth bonding strength of the present invention;
Fig. 4 is a kind of exemplary block diagram automatically adjusting the terminal of music compression value according to bluetooth bonding strength of the present invention;
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO @) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global positioning system).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display module 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display module 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display module 151, dio Output Modules 152, alarm modules 153 etc.
Display module 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display module 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display module 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display module 151 and touch pad as a layer superposed on one another to form touch-screen time, display module 151 can be used as input unit and output device.Display module 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display modules (or other display unit), such as, mobile terminal can comprise outside display module (not shown) and inner display module (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm modules 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm modules 153 can provide in a different manner and export with the generation of notification event.Such as, alarm modules 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm modules 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm modules 153 also can provide the output of the generation of notification event via display module 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Touch operation method of the present invention, is specially adapted to narrow frame or Rimless mobile terminal, first the Touch Zone of mobile terminal is divided into special subregion and common subregion same as the prior art, and distributes an input equipment for each subregion; When receiving touch control operation, judging which subregion this touch control operation occurs in, when occurring in special subregion, then reporting touch control operation by the input equipment that special section post is corresponding, when occurring in common subregion, then report touch control operation by the input equipment that common section post is corresponding; Finally, the touch control operation that the input equipment that mobile terminal is corresponding to special section post reports carries out special processing, and the touch control operation that the input equipment corresponding to common section post reports, as prior art, carries out normal process.
Describedly special processing is carried out to touch control operation can be understood as unconventional process or improper process are carried out to touch control operation, as ignored this touch control operation, generating special efficacy according to this touch control operation, or other processing mode self-defining.For example, unconventional process or improper process, can do following understanding: further when user clicks a certain application icon, and normal process or conventional treatment start this application, and improper process or unconventional process are then to start this application.
Be described in detail below by way of specific embodiment.
Embodiment one
See Fig. 3, a kind of method automatically adjusting music compression value according to bluetooth bonding strength, comprising:
S101, in real time detection bluetooth bonding strength.
In step S101, detect bluetooth bonding strength, if terminal employing is android operating system, then call as lower interface can realize:
if(BluetoothDevice.ACTION_FOUND.equals(action)){
// obtain blueDevice object from Intent
BluetoothDevice device=intent;
getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
If (device.getBondState () unequal to BluetoothDevice.BOND_BONDED) { // signal strength signal intensity.
short rssi=intent.getExtras().getShort(BluetoothDevice.EXTRA_RSSI);
}
}
S102, according to described bluetooth bonding strength, calculate and be connected distance with the bluetooth of matching between bluetooth equipment.
In step S102, computing terminal and be connected distance with the bluetooth between its pairing bluetooth equipment, be specially: d=10^ ((abs (RSSI)-A)/(10*n)), wherein, d be that bluetooth connects distance, RSSI is bluetooth bonding strength (negative value), A be Bluetooth transmission end and receiving terminal be separated by 1 meter time signal strength signal intensity, n be the environmental attenuation factor.
Because residing environment is different, the corresponding parameter value of every platform emission source (bluetooth equipment) is all different.By reason, every parameter in formula all should be tested (calibration) and be obtained.Therefore, mobile terminal manufacturer on a production line, is carried out and entirely examines, to the model machine that every platform is produced, carried out the calibration of these several parameters by bluetooth analyzer.
S103, preset bluetooth transmission speed is connected in range data storehouse with bluetooth, find described bluetooth connect apart from correspondence bluetooth transmission speed.
In step S103, mobile terminal manufacturer is before dispatching from the factory, in units of rice or less measuring length, survey out bluetooth transmission speed is connected distance relation with bluetooth, form a bluetooth transmission speed is connected distance database with bluetooth and be pre-stored in mobile terminal.Such as, bluetooth transmission speed partial data of being connected the database of distance with bluetooth is as follows:
Bluetooth connects distance Bluetooth transmission speed
1M 309KB/S
5M 303KB/S
10M 266KB/S
15M 155KB/S
20M 120KB/S
30M 50KB/S
40M 19KB/S
50M Go offline
S104, according to described bluetooth transmission speed, calculate the music compression value under current Bluetooth bonding strength, to compress music data by described music compression value and to transmit.
In step S104, according to described bluetooth transmission speed, the music compression value calculated under current Bluetooth bonding strength is specially: BitPool=bluetooth transmission speed * 8/ (BitPool coefficient * plays channel number), wherein, BitPool is music compression value, BitPool coefficient be SBC coded format specify conversion coefficient, be generally 1BitPool=6 ~ 7kbit/s.
Method of the present invention detects bluetooth bonding strength in real time, the maximum music compression value under current Bluetooth bonding strength is gone out according to the bluetooth join-strength calculation detected, by described maximum music compression value music data compressed and transmit, thus ensure the audio frequency component loss reduction of the music data of Bluetooth transmission, the sense of hearing of user when improving the fidelity of music data and play.
The method of the invention, after user selects to open the switch of adjustment music compression value automatically, the method for the invention just operates in terminal; Namely terminal related to the present invention comprises for arranging the interface of whether opening adjustment music compression value automatically.
Embodiment two
See Fig. 4, a kind of terminal automatically adjusting music compression value according to bluetooth bonding strength, comprising:
Connect for bluetooth and transmission chip 10, for the CPU of calculation process or special DSP 20 and database 30.
Wherein, the chip 10 for bluetooth connection and transmission is special chip or All-in-One chip, and it is built-in:
Bluetooth bonding strength detection module 101, for detecting bluetooth bonding strength in real time.
Detect bluetooth bonding strength, if terminal employing is android operating system, then call as lower interface can realize:
if(BluetoothDevice.ACTION_FOUND.equals(action)){
// obtain blueDevice object from Intent
BluetoothDevice device=intent;
getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
If (device.getBondState () unequal to BluetoothDevice.BOND_BONDED) { // signal strength signal intensity.
short rssi=intent.getExtras().getShort(BluetoothDevice.EXTRA_RSSI);
}
}
Music data compression module 102, the music compression value for obtaining according to described music compression value calculating and setting module 203 carries out the compression of music data, and transfers to bluetooth peripheral hardware.
For the CPU of calculation process or special DSP 20 built-in:
Bluetooth connects distance calculation module 201, for the bluetooth bonding strength detected according to described bluetooth bonding strength detection module 101, calculates and is connected distance with the bluetooth of matching between bluetooth equipment;
Computing terminal and be connected distance with the bluetooth between its pairing bluetooth equipment and be specially: d=10^ ((abs (RSSI)-A)/(10*n)), wherein, d be that bluetooth connects distance, RSSI is bluetooth bonding strength (negative value), A be Bluetooth transmission end and receiving terminal be separated by 1 meter time signal strength signal intensity, n be the environmental attenuation factor.Because residing environment is different, the corresponding parameter value of every platform emission source (bluetooth equipment) is all different.By reason, every parameter in formula all should be tested (calibration) and be obtained.Therefore, mobile terminal manufacturer on a production line, is carried out and entirely examines, to the model machine that every platform is produced, carried out the calibration of these several parameters by bluetooth analyzer.
Bluetooth transmission speed searches module 202, for being connected with bluetooth in the database 30 of the corresponding relation of distance at the bluetooth transmission speed that comprises preset, finding described bluetooth and connecting bluetooth that distance calculation module 201 obtains and connect bluetooth transmission speed apart from correspondence;
Music compression value calculating and setting module 203, for searching the bluetooth transmission speed that module 202 finds according to described bluetooth transmission speed, calculates the music compression value under current Bluetooth bonding strength.
The music compression value calculated under current Bluetooth bonding strength is specially: BitPool=bluetooth transmission speed * 8/ (BitPool coefficient * plays channel number), wherein, BitPool is music compression value, BitPool coefficient be SBC coded format specify conversion coefficient, be generally 1BitPool=6 ~ 7kbit/s.
Database 30, comprises bluetooth transmission speed is connected distance corresponding relation with bluetooth.Such as, be connected the partial data of the database of distance with bluetooth as follows for bluetooth transmission speed:
Bluetooth connects distance Bluetooth transmission speed
1M 309KB/S
5M 303KB/S
10M 266KB/S
15M 155KB/S
20M 120KB/S
30M 50KB/S
40M 19KB/S
50M Go offline
Terminal of the present invention detects bluetooth bonding strength in real time, the maximum music compression value under current Bluetooth bonding strength is gone out according to the bluetooth join-strength calculation detected, by described maximum music compression value music data compressed and transmit, thus ensure the audio frequency component loss reduction of the music data of Bluetooth transmission, the sense of hearing of user when improving the fidelity of music data and play.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (9)

1. automatically adjust a terminal for music compression value according to bluetooth bonding strength, comprising:
Bluetooth bonding strength detection module, for detecting bluetooth bonding strength in real time;
Bluetooth connects distance calculation module, for the bluetooth bonding strength detected according to described bluetooth bonding strength detection module, calculates and is connected distance with the bluetooth of matching between bluetooth equipment;
Database, comprises bluetooth transmission speed is connected distance corresponding relation with bluetooth;
Bluetooth transmission speed searches module, for being connected with bluetooth in the database of the corresponding relation of distance at the bluetooth transmission speed that comprises preset, finding described bluetooth and connecting bluetooth transmission speed apart from correspondence;
Music compression value calculating and setting module, for searching the bluetooth transmission speed that module searches arrives according to described bluetooth transmission speed, calculates the music compression value under current Bluetooth bonding strength;
Music data compression module, the music compression value for obtaining according to described music compression value calculating and setting module carries out the compression of music data, and transfers to bluetooth peripheral hardware.
2. terminal according to claim 1, it is characterized in that, the described bluetooth bonding strength detected according to described bluetooth bonding strength detection module, calculate and be connected distance with the bluetooth of matching between bluetooth equipment and be: d=10^ ((abs (RSSI)-A)/(10*n)), wherein, d be that bluetooth connects distance, RSSI is bluetooth bonding strength (negative value), A be Bluetooth transmission end and receiving terminal be separated by 1 meter time signal strength signal intensity, n be the environmental attenuation factor.
3. terminal according to claim 1, it is characterized in that, describedly search according to described bluetooth transmission speed the bluetooth transmission speed that module searches arrives, the music compression value calculated under current Bluetooth bonding strength is specially: BitPool=bluetooth transmission speed * 8/ (BitPool coefficient * plays channel number), wherein, BitPool coefficient is the conversion coefficient that SBC coded format specifies, is generally 1BitPool=6 ~ 7kbit/s.
4. terminal according to claim 1, it is characterized in that, described bluetooth bonding strength detection module and described music data compression module are built in the chip that to be connected for bluetooth and to transmit, and described bluetooth connects distance calculation module, described bluetooth transmission speed searches module and described music compression value calculating and setting module is built in CPU for calculation process or special DSP.
5. terminal according to claim 4, is characterized in that, the described chip connected for bluetooth and transmit is special chip or All-in-One chip.
6. automatically adjust a method for music compression value according to bluetooth bonding strength, it is characterized in that, comprising:
Real-time detection bluetooth bonding strength;
According to described bluetooth bonding strength, calculate and be connected distance with the bluetooth of matching between bluetooth equipment;
Be connected in range data storehouse with bluetooth at the bluetooth transmission speed preset, find described bluetooth and connect bluetooth transmission speed corresponding to distance;
According to described bluetooth transmission speed, calculate the music compression value under current Bluetooth bonding strength, to compress music data by described music compression value and to transmit.
7. method according to claim 6, it is characterized in that, described according to described bluetooth bonding strength, calculate and be connected distance with the bluetooth of matching between bluetooth equipment and be specially: d=10^ ((abs (RSSI)-A)/(10*n)), wherein, d be that bluetooth connects distance, RSSI is bluetooth bonding strength (negative value), A be Bluetooth transmission end and receiving terminal be separated by 1 meter time signal strength signal intensity, n be the environmental attenuation factor.
8. method according to claim 6, it is characterized in that, described according to described bluetooth transmission speed, the music compression value calculated under current Bluetooth bonding strength is specially: BitPool=bluetooth transmission speed * 8/ (BitPool coefficient * plays channel number), wherein, BitPool coefficient is the conversion coefficient that SBC coded format specifies, is generally 1BitPool=6 ~ 7kbit/s.
9. method according to claim 6, is characterized in that, before described real-time detection bluetooth bonding strength, also comprises: the switch opening adjustment music compression value automatically.
CN201510382958.6A 2015-07-02 2015-07-02 Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal Pending CN104993849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510382958.6A CN104993849A (en) 2015-07-02 2015-07-02 Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510382958.6A CN104993849A (en) 2015-07-02 2015-07-02 Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal

Publications (1)

Publication Number Publication Date
CN104993849A true CN104993849A (en) 2015-10-21

Family

ID=54305612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510382958.6A Pending CN104993849A (en) 2015-07-02 2015-07-02 Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal

Country Status (1)

Country Link
CN (1) CN104993849A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105845157A (en) * 2016-03-22 2016-08-10 广东欧珀移动通信有限公司 Method, device and system for link controlling of music playing system
CN105872654A (en) * 2016-03-22 2016-08-17 广东欧珀移动通信有限公司 Method and device for switching Bluetooth connection in audio playing system, and system
CN106131769A (en) * 2016-07-01 2016-11-16 深圳市迅准科技有限公司 A kind of Notification Method based on bluetooth, blue-tooth device and mobile terminal
CN106954135A (en) * 2017-05-15 2017-07-14 上海与德科技有限公司 A kind of volume adjusting method and device
CN107170460A (en) * 2017-06-30 2017-09-15 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host side and storage medium
CN107404700A (en) * 2016-05-19 2017-11-28 萨摩亚商悦动联网股份有限公司 Has short-distance wireless communication element so that the wearable electronic installation of its interior information can be updated
CN109041024A (en) * 2018-08-14 2018-12-18 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN110177363A (en) * 2019-05-28 2019-08-27 百度在线网络技术(北京)有限公司 Bluetooth data transfer method, apparatus, Bluetooth chip and storage medium
CN110189753A (en) * 2019-05-28 2019-08-30 北京百度网讯科技有限公司 Baffle Box of Bluetooth and its control method, system and storage medium
CN115414121A (en) * 2022-11-07 2022-12-02 中南大学 Surgical operation navigation system based on radio frequency positioning chip
WO2023071813A1 (en) * 2021-10-26 2023-05-04 深圳Tcl新技术有限公司 Data transmission method and device, and storage medium and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507280A (en) * 2002-12-12 2004-06-23 明基电通股份有限公司 Radio image and sound signal transmission device and method
CN103532936A (en) * 2013-09-28 2014-01-22 福州瑞芯微电子有限公司 Bluetooth audio self-adaption transmission method
CN103729982A (en) * 2014-01-08 2014-04-16 杭州晟元芯片技术有限公司 Implementation method for multifunctional anti-loss apparatus
CN103927654A (en) * 2014-04-17 2014-07-16 福建联迪商用设备有限公司 Mobile terminal and POS machine contact communication method and device and payment method
CN104301290A (en) * 2013-07-15 2015-01-21 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507280A (en) * 2002-12-12 2004-06-23 明基电通股份有限公司 Radio image and sound signal transmission device and method
CN104301290A (en) * 2013-07-15 2015-01-21 联想(北京)有限公司 Information processing method and electronic equipment
CN103532936A (en) * 2013-09-28 2014-01-22 福州瑞芯微电子有限公司 Bluetooth audio self-adaption transmission method
CN103729982A (en) * 2014-01-08 2014-04-16 杭州晟元芯片技术有限公司 Implementation method for multifunctional anti-loss apparatus
CN103927654A (en) * 2014-04-17 2014-07-16 福建联迪商用设备有限公司 Mobile terminal and POS machine contact communication method and device and payment method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872654B (en) * 2016-03-22 2019-05-31 Oppo广东移动通信有限公司 Bluetooth connection switching method, apparatus and system in audio frequency broadcast system
CN105872654A (en) * 2016-03-22 2016-08-17 广东欧珀移动通信有限公司 Method and device for switching Bluetooth connection in audio playing system, and system
CN105845157A (en) * 2016-03-22 2016-08-10 广东欧珀移动通信有限公司 Method, device and system for link controlling of music playing system
CN107404700A (en) * 2016-05-19 2017-11-28 萨摩亚商悦动联网股份有限公司 Has short-distance wireless communication element so that the wearable electronic installation of its interior information can be updated
CN106131769A (en) * 2016-07-01 2016-11-16 深圳市迅准科技有限公司 A kind of Notification Method based on bluetooth, blue-tooth device and mobile terminal
CN106954135A (en) * 2017-05-15 2017-07-14 上海与德科技有限公司 A kind of volume adjusting method and device
CN107170460A (en) * 2017-06-30 2017-09-15 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host side and storage medium
WO2019000792A1 (en) * 2017-06-30 2019-01-03 深圳Tcl新技术有限公司 Method and system for adjusting sound quality, and host side and storage medium
CN107170460B (en) * 2017-06-30 2020-12-08 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host terminal and storage medium
US11202300B2 (en) 2017-06-30 2021-12-14 Shenzhen Tcl New Technology Co., Ltd. Method and system for adjusting sound quality, and host terminal
CN109041024A (en) * 2018-08-14 2018-12-18 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN109041024B (en) * 2018-08-14 2022-01-11 Oppo广东移动通信有限公司 Code rate optimization method and device, electronic equipment and storage medium
CN110177363A (en) * 2019-05-28 2019-08-27 百度在线网络技术(北京)有限公司 Bluetooth data transfer method, apparatus, Bluetooth chip and storage medium
CN110189753A (en) * 2019-05-28 2019-08-30 北京百度网讯科技有限公司 Baffle Box of Bluetooth and its control method, system and storage medium
CN110177363B (en) * 2019-05-28 2022-04-26 百度在线网络技术(北京)有限公司 Bluetooth data transmission method and device, Bluetooth chip and storage medium
WO2023071813A1 (en) * 2021-10-26 2023-05-04 深圳Tcl新技术有限公司 Data transmission method and device, and storage medium and terminal device
CN115414121A (en) * 2022-11-07 2022-12-02 中南大学 Surgical operation navigation system based on radio frequency positioning chip

Similar Documents

Publication Publication Date Title
CN104993849A (en) Method for automatically adjusting music compression value according to Bluetooth connection intensity and terminal
CN105188101A (en) Network switching device and method
CN104811865B (en) Audio-frequency inputting method, device and system
CN105206260A (en) Terminal voice broadcasting method, device and terminal voice operation method
CN104902095A (en) Mobile terminal single hand mode recognition method and device
CN105225457A (en) System, the apparatus and method of information prompting are carried out by intelligent home device
CN104660827A (en) Method and terminal for message reminding
CN105101317A (en) Network switching device and method
CN105100482A (en) Mobile terminal and system for realizing sign language identification, and conversation realization method of the mobile terminal
CN104980586A (en) Control method and device of terminal physical button
CN104980588A (en) Method and apparatus for detecting state of mobile terminal
CN104967744A (en) Method and device for adjusting terminal parameters
CN104796956A (en) Mobile terminal network switching method and mobile terminal
CN105093016A (en) Automation testing method and device for mobile terminal
CN104968033A (en) Terminal network processing method and apparatus
CN104993180A (en) Terminal charging method and device
CN105262883A (en) Mobile terminal and volume adjusting method thereof
CN105100416A (en) Event reminding method and wearable device
CN105101264A (en) Method and device for monitoring state of terminal network
CN105357367A (en) Keystroke identification device and method based on pressure sensor
CN105100468A (en) Operating method and apparatus for mobile terminal
CN104968027A (en) Wi-Fi control method and apparatus
CN105100619A (en) Apparatus and method for adjusting shooting parameters
CN104917233A (en) Charging control method, device and system
CN104796860A (en) Method and device for positioning terminals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151021

RJ01 Rejection of invention patent application after publication