CN106658357A - Bluetooth data processing method and apparatus and terminal - Google Patents

Bluetooth data processing method and apparatus and terminal Download PDF

Info

Publication number
CN106658357A
CN106658357A CN201610865237.5A CN201610865237A CN106658357A CN 106658357 A CN106658357 A CN 106658357A CN 201610865237 A CN201610865237 A CN 201610865237A CN 106658357 A CN106658357 A CN 106658357A
Authority
CN
China
Prior art keywords
bluetooth address
bluetooth
terminal
address
reading
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
CN201610865237.5A
Other languages
Chinese (zh)
Other versions
CN106658357B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610865237.5A priority Critical patent/CN106658357B/en
Publication of CN106658357A publication Critical patent/CN106658357A/en
Application granted granted Critical
Publication of CN106658357B publication Critical patent/CN106658357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Abstract

The invention provides a Bluetooth data processing method and apparatus and a terminal. The method comprises the following steps: when a Bluetooth module of the terminal is started, a first Bluetooth address is generated according to a preset rule, the first Bluetooth address is written in the terminal, the Bluetooth address stored in the terminal is read, whether the read Bluetooth address is in line with the preset rule is determined, and that the read Bluetooth address is randomly generated by the terminal is determined when that the Bluetooth address is in line with the preset rule is determined. According to the Bluetooth data processing method, a corresponding Bluetooth address is generated randomly according to the preset rule; the Bluetooth address of the terminal is read after the generated Bluetooth address is written in the terminal; when the read Bluetooth address is in line with the preset rule, that the Bluetooth address is the randomly generated Bluetooth address; compared with technologies of the prior art, whether the Bluetooth address is a random address can be detected timely; a phenomenon that Bluetooth paring fails because the Bluetooth address is randomly generated can be prevented, and Bluetooth address detection efficiency and accuracy can be improved.

Description

A kind of processing method of blue-teeth data, device and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of processing method of blue-teeth data, device and terminal.
Background technology
With the development of terminal, the function of terminal is also stronger and stronger, such as mobile phone, and existing mobile phone all supports bluetooth work( Can, bluetooth is a kind of radiotechnics of holding equipment short haul connection, can make to carry out wireless messages exchange between numerous equipment, Effectively simplify the communication between mobile phone.Between mobile phone when bluetooth connection is carried out, mutual Bluetooth address can be obtained to carry out Matching, Bluetooth address is bluetooth unique mark ID card information, is made up of 6 bytes, respectively NAP (16 meaningless Address Parts Point), UAP (8 bit address upper), LAP (24 bit address lower portion) three parts, NAP and UAP is the unique of production firm Identification code, by bluetooth authoritative department different manufacturers are distributed to, and LAP is freely distributed by manufacturer internal.
But, if Bluetooth address is failed to write when dispatching from the factory or bluetooth module goes wrong, Bluetooth address then by terminal with Machine generate, i.e., when using every time, terminal is possible to be randomly generated NAP, UAP or LAP, so have a strong impact on bluetooth it Between pairing be connected automatically, cause connection failure.
The content of the invention
It is an object of the invention to provide a kind of processing method of blue-teeth data, device and terminal, it is intended to which automatic detection goes out Whether Bluetooth address is abnormal, it is to avoid the situation of failure is matched between bluetooth.
To solve above-mentioned technical problem, the embodiment of the present invention provides technical scheme below:
A kind of processing method of blue-teeth data, including:
When terminal Bluetooth module starts, according to preset rules the first Bluetooth address is generated;
First Bluetooth address is write in the terminal;
The Bluetooth address stored in the terminal is read, and judges whether the Bluetooth address for reading meets the default rule Then, the Bluetooth address of the storage includes first Bluetooth address;
When the Bluetooth address for judging the reading meets the preset rules, the Bluetooth address for determining the reading is Terminal is generated at random.
To solve above-mentioned technical problem, the embodiment of the present invention also provides technical scheme below:
A kind of processing meanss of blue-teeth data, including:
Generation module, for when terminal Bluetooth module starts, according to preset rules the first Bluetooth address being generated;
Writing module, for first Bluetooth address to be write in the terminal;
Judge module, for reading the terminal in the Bluetooth address that stores, and whether the Bluetooth address for judging to read full The foot preset rules, the Bluetooth address of the storage includes first Bluetooth address;
First determining module, for when the Bluetooth address for judging the reading meets the preset rules, determining institute The Bluetooth address for stating reading is generated at random for terminal.
To solve above-mentioned technical problem, the embodiment of the present invention also provides technical scheme below:
A kind of terminal, including:
Be stored with the memorizer of executable program code;
The processor coupled with the memorizer;
The processor calls the executable program code stored in the memorizer, performs the embodiment of the present invention and carries For any one blue-teeth data processing method.
Relative to prior art, a kind of processing method of blue-teeth data that the present embodiment is provided, device and terminal, by pressing Corresponding Bluetooth address is generated at random according to preset rules, after the Bluetooth address write terminal for generating, the bluetooth ground of reading terminals Location, when the Bluetooth address for reading meets preset rules, determines that the Bluetooth address is the random Bluetooth address for generating, and detects in time Whether Bluetooth address is random address, it is to avoid Bluetooth address is that random generation causes to match the situation of failure between bluetooth, is carried The efficiency and accuracy of Bluetooth address detection are risen.
Description of the drawings
Below in conjunction with the accompanying drawings, described in detail by the specific embodiment to the present invention, technical scheme will be made And other beneficial effects are apparent.
Fig. 1 is the schematic flow sheet of the processing method of blue-teeth data provided in an embodiment of the present invention.
Fig. 2 is another schematic flow sheet of the processing method of blue-teeth data provided in an embodiment of the present invention.
Fig. 3 is the module diagram of the processing meanss of blue-teeth data provided in an embodiment of the present invention.
Fig. 4 is another module diagram of the processing meanss of blue-teeth data provided in an embodiment of the present invention.
Fig. 5 is terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Schema is refer to, wherein identical element numbers represent identical component, and the principle of the present invention is to be implemented in one Illustrate in appropriate computing environment.The following description is that based on the illustrated specific embodiment of the invention, it should not be by It is considered as and limits the present invention other specific embodiments not detailed herein.
It is the software object performed on the arithmetic system that term as used herein " module " can be regarded as.It is as herein described It is the objective for implementation on the arithmetic system that different components, module, engine and service can be regarded as.And device as herein described and side Method is preferably implemented in the way of software, also can be implemented on hardware certainly, within the scope of the present invention.
Hereinafter carry out concrete analysis explanation.
In the present embodiment, the angle of the processing meanss from blue-teeth data is described, the process dress of the blue-teeth data Put and specifically can be integrated in terminal, such as mobile phone, panel computer, palm PC (PDA, Personal Digital Assistant) etc..
A kind of processing method of blue-teeth data, including:When terminal Bluetooth module starts, according to preset rules first is generated Bluetooth address;First Bluetooth address is write in the terminal;The Bluetooth address stored in the terminal is read, and is judged Whether the Bluetooth address of reading meets the preset rules, and the Bluetooth address of the storage includes first Bluetooth address;When When judging that the Bluetooth address of the reading meets the preset rules, the Bluetooth address for determining the reading is given birth at random for terminal Into.
Fig. 1 is referred to, Fig. 1 is the schematic flow sheet of the processing method of blue-teeth data provided in an embodiment of the present invention.
Specifically, methods described includes:
In step S101, when terminal Bluetooth module starts, according to preset rules the first Bluetooth address is generated.
It is understood that the bluetooth when the bluetooth module of terminal starts, in bluetooth module meeting reading terminals memorizer Address, with the Bluetooth address for reading pairing connection is carried out, and in the condition of normal use, the Bluetooth address of terminal is fixed 's.
The Bluetooth address of table 1 illustrates table
Such as, refer to shown in table 1, table 1 is that Bluetooth address illustrates table, wherein, the numerical value in table represents that unit is 16 System, UAP and NAP are the exclusive identification codes of production firm, and by bluetooth authoritative department different production firms are distributed to, and LAP It is freely to be distributed by production firm, in general, production firm can start to distribute address when terminal is manufactured from 0, circulate always 24 powers to 2 are ensureing the difference of address between individuality, address " 01 in table:02:03:04:05:06 " it is assumed to be factory The Bluetooth address of business's distribution, wherein " 01:02:03 " distributed by bluetooth authoritative department, to identify the production firm, " 04:05: 06 " be then production firm's distribution, terminal after being assigned with this Bluetooth address when Bluetooth pairing is carried out, using this address as unique Mark is attached, but, if terminal fails to write address when dispatching from the factory or when bluetooth module makes a mistake, terminal then can be random Generate an irregular governed Bluetooth address, such as " 0a:25:a1:bd:66:01 ", and when bluetooth module is again started up, The Bluetooth address for then distributing is again different, and like this, it fails to match with other bluetooth equipments to cause terminal, brings to user Greatly inconvenience.
Wherein, the preset rules can be setting UAP or NAP in byte, according to setting UAP or NAP with Machine generates Bluetooth address.
In step s 102, first Bluetooth address is write in the terminal.
Wherein, the first Bluetooth address is generated at random depositing for Bluetooth address write terminal according to the UAP or NAP of setting In reservoir, may there are various Bluetooth address in memorizer after being written, such as presence one or many before writing According to the UAP for setting, either NAP generates at random Bluetooth address or there is the Bluetooth address that production firm distributes when dispatching from the factory bar.
In step s 103, the Bluetooth address stored in the terminal is read, and whether the Bluetooth address for judging to read is full The foot preset rules.
Wherein, the Bluetooth address of the storage includes first Bluetooth address, can be successively read out in terminal and store Bluetooth address, will read Bluetooth address in UAP either NAP with according to setting UAP or NAP contrast, if contrast knot Fruit is consistent, illustrates that the Bluetooth address for reading meets the preset rules, then execution step S104;If comparing result is not one Cause, illustrate that the Bluetooth address for reading is unsatisfactory for the preset rules, it is determined that the current Bluetooth address for reading is going out for production firm The fixed Bluetooth address distributed during factory.
In step S104, the Bluetooth address for determining the reading is generated at random for terminal.
It is understood that in actual use, if address is failed to write when dispatching from the factory for terminal or bluetooth module occurs During mistake, terminal then can at random generate an irregular governed Bluetooth address, now cannot be distinguished by the bluetooth of the random generation Whether address is the fixed Bluetooth address that production firm distributes when dispatching from the factory.
Wherein, by contrasting the Bluetooth address that reads in UAP or NAP can quickly determine the indigo plant of current reading The tooth address address that terminal is generated at random.
From the foregoing, a kind of processing method of blue-teeth data of the present embodiment offer, by random according to preset rules Corresponding Bluetooth address is generated, after the Bluetooth address write terminal for generating, the Bluetooth address of reading terminals, when the bluetooth for reading Address meets preset rules, determines that the Bluetooth address is the random Bluetooth address for generating, and relative to prior art, detects in time Whether Bluetooth address is random address, it is to avoid Bluetooth address is that random generation causes to match the situation of failure between bluetooth, is carried The efficiency and accuracy of Bluetooth address detection are risen.
Method according to described by above-described embodiment, is below described in further detail citing.
Fig. 2 is referred to, Fig. 2 is another schematic flow sheet of the processing method of blue-teeth data provided in an embodiment of the present invention.
Specifically, methods described includes:
In step s 201, when terminal Bluetooth module starts, the preset byte content of Bluetooth address to be generated is determined.
Wherein it is possible to pass through to change the algorithm for generating bluetooth random address, the UAP in Bluetooth address to be generated is determined Byte content or NAP byte content, or the byte content of UAP and NAP, it should be strongly noted that it is described really The byte content of UAP, NAP that the byte content and bluetooth authoritative department of UAP, NAP for setting distributes to production firm is different.
Such as, by taking mobile phone as an example, when mobile phone opens Bluetooth function, by amended bluetooth Random address algorithm The byte content for determining UAP is " 0b for the byte content of " 0a " and UAP:0c”.
In step S202, the first Bluetooth address is generated according to the preset byte content.
Wherein, the byte content of UAP of first Bluetooth address in the Bluetooth address to be generated for determining or The byte content of person NAP, or the content of UAP and NAP is being generated.
Such as, the byte content in mobile phone according to the UAP for determining is " 0b for the byte content of " 0a " and NAP:0c” Random Bluetooth address is generated for " 0a:0b:0c:01:02:03 ", " 0a in the random Bluetooth address of generation:0b:0c " and determine UAP byte content " 0a " and the byte content " 0b of NAP:0c " is consistent, and " 01:02:03 ", then it is random generation.
In step S203, first Bluetooth address is write in the terminal.
Wherein, the random Bluetooth address generated with preset byte content is write in the memorizer of terminal, end can be put into In the file of the specific storage Bluetooth address in one, end, the second Bluetooth address can be included in the memorizer of terminal, it is described Second Bluetooth address is that production firm distributes by operator.
Such as, the random Bluetooth address " 0a that will be generated according to preset byte content in mobile phone:0b:0c:01:02:03 " write In entering the memorizer of mobile phone, in being stored in file, now it is also possible to preserve the fixing address of cell phone manufacturer's distribution in file Such as, " 01:02:03:04:05:06”.
In step S204, the Bluetooth address stored in the terminal is read, and whether the Bluetooth address for judging to read is full The foot preset rules.
Wherein, if judging, the Bluetooth address for reading meets the preset rules, execution step S205, if judging to read The Bluetooth address for taking is unsatisfactory for the preset rules, then execution step S206.
Specifically, it is described to read the Bluetooth address stored in the terminal, and whether the Bluetooth address for judging to read is full The foot preset rules include:
(1) Bluetooth address stored in the terminal is read, judges to whether there is preset byte in the Bluetooth address for reading Content.
Wherein, the Bluetooth address for storing in terminal can have 2 kinds, a kind of Bluetooth address i.e. first generated at random for terminal Bluetooth address, Bluetooth address i.e. the second Bluetooth address that another kind is distributed by production firm, due to the UAP of the first Bluetooth address Byte content or NAP byte content, or the content of UAP and NAP is determined, and can pass through the bluetooth that contrast is read The byte sections being determined in address to differentiate the current Bluetooth address that reads be the first Bluetooth address or the second Bluetooth address, if Judge there is preset byte content in the Bluetooth address for reading, then execution step (2), if judging in the Bluetooth address for reading There is no preset byte content, then execution step (3).
(2) it is judged to that the Bluetooth address for reading meets the preset rules.
(3) it is judged to that the Bluetooth address for reading is unsatisfactory for the preset rules.
Such as, the byte content of the UAP for determining in mobile phone is " 0b for the byte content of " 0a " and NAP:0c ", reads The current Bluetooth address of mobile phone memory is " 0a:0b:0c:01:02:When 03 ", UAP and NAP part and preset byte content Unanimously, then illustrate that current Bluetooth address is generated at random for mobile phone, if current reading Bluetooth address is " 01:02:03:01: 02:03 ", UAP and NAP parts are inconsistent with preset byte content, then illustrate current Bluetooth address by production firm point The Bluetooth address matched somebody with somebody.
In step S205, the Bluetooth address for determining the reading is generated at random for terminal.
Wherein, after it is determined that the Bluetooth address of the reading is the random generation of terminal, information can be generated, points out to use Family current Bluetooth address exception.
In step S206, the Bluetooth address for determining the reading is the second Bluetooth address.
Wherein, after it is determined that the Bluetooth address of the reading is the second Bluetooth address, also include:To deposit in the terminal Bluetooth address in the Bluetooth address of storage in addition to second Bluetooth address is deleted, and generates information, points out user to work as Front Bluetooth address is normal.
Such as, " 01 is read in mobile phone memory:02:03:01:02:03 ", with UAP and NAP parts and predetermined word Section content is inconsistent, illustrates " 01:02:03:01:02:03 " the fixed Bluetooth address distributed by cell phone manufacturer, now, mobile phone Retain the fixed Bluetooth address, and other Bluetooth address in memorizer are deleted, to save memory space and avoid bluetooth ground Obscure location.
From the foregoing, a kind of processing method of blue-teeth data of the present embodiment offer, by determining bluetooth to be generated The preset byte content of address generating corresponding Bluetooth address at random, by the Bluetooth address write terminal for generating after, read eventually The Bluetooth address at end, when the Bluetooth address for reading meets preset rules, determines that the Bluetooth address is the random Bluetooth address for generating, When the Bluetooth address for reading is unsatisfactory for preset rules, the fixing address that the Bluetooth address is production firm's distribution is determined, relative to Prior art, detect in time whether Bluetooth address is random address, it is to avoid Bluetooth address for random generation cause bluetooth it Between match the situation of failure, improve the efficiency and accuracy of Bluetooth address detection.
For ease of preferably implementing the processing method of blue-teeth data provided in an embodiment of the present invention, the embodiment of the present invention is also carried For a kind of device of the processing method based on above-mentioned blue-teeth data.The wherein processing method of the implication of noun and above-mentioned blue-teeth data In it is identical, implement the explanation that details may be referred in embodiment of the method.
Fig. 3 is referred to, Fig. 3 is the module diagram of the processing meanss of blue-teeth data provided in an embodiment of the present invention.Specifically For, the processing meanss 300 of the blue-teeth data, including:Generation module 31, writing module 32, judge module 33 and first Determining module 34.
The generation module 31, for when terminal Bluetooth module starts, according to preset rules the first Bluetooth address being generated.
Wherein, the generation module 31 can pass through setting UAP or NAP in byte, according to setting UAP or NAP generates at random Bluetooth address.
Said write module 32, for first Bluetooth address to be write in the terminal.
Wherein, the said write module 32 will at random generate Bluetooth address write terminal according to the UAP or NAP of setting Memorizer in, may there are various Bluetooth address in memorizer after being written, such as before writing exist one or Either NAP generates at random Bluetooth address or there is the bluetooth that production firm distributes when dispatching from the factory a plurality of UAP according to setting of person Address.
The judge module 33, for reading the terminal in store Bluetooth address, and judge read Bluetooth address Whether the preset rules are met, and the Bluetooth address of the storage includes first Bluetooth address.
First determining module 34, for when the Bluetooth address for judging the reading meets the preset rules, The Bluetooth address for determining the reading is generated at random for terminal.
Fig. 4 can be in the lump referred to, Fig. 4 is that another module of the processing meanss of blue-teeth data provided in an embodiment of the present invention is illustrated Figure, the processing meanss 300 of the blue-teeth data can also include:
Wherein, the generation module 31 can be specifically included:
Byte determination sub-module 311, for when terminal Bluetooth module starts, determining the default of Bluetooth address to be generated Byte content.
Wherein, the byte determination sub-module 311 can pass through the algorithm that modification generates bluetooth random address, determine and treat The byte content of the UAP in the Bluetooth address of generation or the byte content of NAP, or the byte content of UAP and NAP, need To be illustrated, the byte content and bluetooth authoritative department of described UAP, NAP for determining distribute to production firm The byte content of UAP, NAP is different.
Submodule 312 is generated, for generating the first Bluetooth address according to the preset byte content.
Wherein, to generate described first at random according to the byte content of UAP, the NAP for determining blue for the generation submodule 312 Tooth address.
Wherein, the judge module 33 can be specifically included:
Byte judging submodule 331, reads the Bluetooth address stored in the terminal, is in the Bluetooth address for judging reading It is no to there is preset byte content.
First decision sub-module 332, for when there is preset byte content in judging the Bluetooth address for reading, judging Bluetooth address to read meets the preset rules.
Second decision sub-module 333, for when there is no preset byte content in judging the Bluetooth address for reading, sentencing The Bluetooth address for being set to reading is unsatisfactory for the preset rules.
Second determining module 35, when the Bluetooth address for judging the reading is unsatisfactory for the preset rules, determines institute The Bluetooth address for stating reading is the second Bluetooth address.
Wherein, the fixed Bluetooth address that second Bluetooth address is distributed by production firm for terminal.
Removing module 36, for indigo plant that will be in the terminal in the Bluetooth address of storage in addition to second Bluetooth address Delete tooth address.
From the foregoing, a kind of processing meanss of blue-teeth data of the present embodiment offer, by determining bluetooth to be generated The preset byte content of address generating corresponding Bluetooth address at random, by the Bluetooth address write terminal for generating after, read eventually The Bluetooth address at end, when the Bluetooth address for reading meets preset rules, determines that the Bluetooth address is the random Bluetooth address for generating, When the Bluetooth address for reading is unsatisfactory for preset rules, the fixing address that the Bluetooth address is production firm's distribution is determined, relative to Prior art, detect in time whether Bluetooth address is random address, it is to avoid Bluetooth address for random generation cause bluetooth it Between match the situation of failure, improve the efficiency and accuracy of Bluetooth address detection.
The embodiment of the present invention also provides another kind of terminal, as shown in figure 5, the terminal 400 can include radio frequency (RF, Radio Frequency) circuit 401, include the memorizer 402, input block of one or more computer-readable recording mediums 403rd, display unit 404, sensor 405, voicefrequency circuit 406, bluetooth module 407, include one or more than one process The parts such as the processor 408 and power supply 409 of core.It will be understood by those skilled in the art that the terminal structure illustrated in Fig. 5 The not restriction of structure paired terminal, can include part more more or less of than diagram, or combine some parts, or different Part arrangement.
Radio circuit 401 can be used to receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 408 processed;In addition, up data is activation will be related to To base station.Generally, radio circuit 401 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibrations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, bonder, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..Additionally, radio circuit 401 can also be by radio communication and network With other equipment communication.The radio communication can be using arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memorizer 402 can be used to store application program and data.Include and can hold in the application program of the storage of memorizer 402 Line code.Application program can constitute various functions module.Processor 408 is stored in the application journey of memorizer 402 by operation Sequence, so as to perform various function application and data processing.Memorizer 402 can mainly include storing program area and data storage Area, wherein, application program that storing program area can be needed for storage program area, at least one function (such as sound-playing function, Image player function etc.) etc.;Storage data field can be stored and use created data (such as voice data, electricity according to terminal Script for story-telling etc.) etc..Additionally, memorizer 402 can include high-speed random access memory, nonvolatile memory can also be included, For example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memorizer 402 is gone back Memory Controller can be included, to provide the access of processor 408 and input block 403 to memorizer 402.
Input block 403 can be used for numeral, character information or the user's characteristic information (such as fingerprint) of receives input, and Produce the keyboard relevant with user's setting and function control, mouse, action bars, optics or trace ball signal input.Specifically Ground, in a specific embodiment, input block 403 may include Touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user uses finger, touches The operations of any suitable object or adnexa on Touch sensitive surface or near Touch sensitive surface such as pen), and according to set in advance Formula drives corresponding attachment means.Optionally, Touch sensitive surface may include two parts of touch detecting apparatus and touch controller. Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, and transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives process Device 408, and the order sent of receiving processor 408 and can be performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray And the polytype such as surface acoustic wave realizes Touch sensitive surface.Except Touch sensitive surface, input block 403 can also be including other inputs Equipment.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch Button etc.), fingerprint recognition module, trace ball, mouse, one or more in action bars etc..
Display unit 404 can be used for show by user input information or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any.Show Unit 404 may include display floater.Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) are configuring display floater.Further , Touch sensitive surface can cover display floater, when Touch sensitive surface is detected thereon or after neighbouring touch operation, send process to Device 408 is provided on a display panel accordingly with preprocessor 408 with determining the type of touch event according to the type of touch event Visual output.Although in Figure 5, Touch sensitive surface and display floater are realizing being input into and be input into as two independent parts Function, but in some embodiments it is possible to by Touch sensitive surface and display floater it is integrated and realize input and output function.
Terminal may also include at least one sensor 405, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjusting the brightness of display floater, proximity transducer can close display floater and/or the back of the body when terminal is moved in one's ear Light.As one kind of motion sensor, (generally three axles) acceleration in the detectable all directions of Gravity accelerometer Size, can detect that size and the direction of gravity when static, can be used for recognize mobile phone attitude application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as terminal The other sensors such as gyroscope, barometer, drimeter, thermometer, infrared ray sensor, will not be described here.
Voicefrequency circuit 406 can pass through the audio interface that speaker, microphone are provided between user and terminal.Voicefrequency circuit The voice data for receiving can be converted into the signal of telecommunication by 406, be transferred to speaker, and by speaker acoustical signal output is converted to; On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone, and audio frequency number is converted to after being received by voicefrequency circuit 406 According to, then after voice data output processor 408 is processed, Jing radio circuits 401 being sent to such as another terminal, or by sound Frequency data output is to memorizer 402 so as to further process.Voicefrequency circuit 406 is also possible that earphone jack, to provide peripheral hardware The communication of earphone and terminal.
Bluetooth is a kind of radiotechnics of holding equipment short haul connection, and terminal can be helped by bluetooth module 407 User realizes the transmission of voice, picture, video data.Although Fig. 5 shows bluetooth module 407, but it is understood that, its And must be configured into for terminal is not belonging to, can omit in the essential scope for do not change invention as needed completely.
Processor 408 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the application program being stored in memorizer 402, and call the data being stored in memorizer 402, perform The various functions and processing data of terminal, so as to carry out integral monitoring to terminal.Optionally, processor 408 may include one or Multiple processing cores;Preferably, processor 408 can integrated application processor and modem processor, wherein, application processor Main to process operating system, user interface and application program etc., modem processor mainly processes radio communication.It is appreciated that , above-mentioned modem processor can not also be integrated in processor 408.
Terminal also includes the power supply 409 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system is logically contiguous with processor 408, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 409 can also include one or more direct current or alternating current power supply, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 5, terminal can also include photographic head, wireless fidelity module etc., will not be described here.
Specifically in the present embodiment, the processor 408 in terminal can be according to following instruction, will be one or more The corresponding executable code of process of application program is loaded in memorizer 402, and is run by processor 408 and be stored in storage Application program in device 402, so as to realize various functions:
When terminal Bluetooth module 407 starts, according to preset rules the first Bluetooth address is generated;
First Bluetooth address is write in the terminal;
The Bluetooth address stored in the terminal is read, and judges whether the Bluetooth address for reading meets the default rule Then, the Bluetooth address of the storage includes first Bluetooth address;
When the Bluetooth address for judging the reading meets the preset rules, the Bluetooth address for determining the reading is Terminal is generated at random.
Because the terminal can perform the processing method of any one blue-teeth data that inventive embodiments are provided, therefore, can To realize the beneficial effect achieved by the processing method of any one blue-teeth data that inventive embodiments are provided, refer to above Embodiment, will not be described here.
When being embodied as, above unit can be realized as independent entity, it is also possible to carry out combination in any, be made Realize for same or several entities, being embodied as of above unit can be found in embodiment of the method above, and here is not Repeat again.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without the portion described in detail in certain embodiment Point, the detailed description of the processing method above with respect to blue-teeth data is may refer to, here is omitted.
The processing method of blue-teeth data provided in an embodiment of the present invention, device and terminal are for example panel computer, mobile phone etc. Deng the processing method of the terminal, the processing meanss of blue-teeth data and blue-teeth data belongs to same design, in the blue-teeth data Processing meanss on the either method provided in the processing method embodiment of the blue-teeth data can be provided, it was implemented Journey refers to the processing method embodiment of the blue-teeth data, and here is omitted.
It should be noted that for the processing method of blue-teeth data of the present invention, this area common test personnel can To understand all or part of flow process of the processing method for realizing embodiment of the present invention blue-teeth data, computer program is can be by Complete to control the hardware of correlation, the computer program can be stored in a computer read/write memory medium, such as store In the memorizer of terminal, and by least one computing device in the terminal, may include in the process of implementation such as the indigo plant The flow process of the embodiment of the processing method of tooth data.Wherein, described storage medium can be magnetic disc, CD, read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the processing meanss of the blue-teeth data of the embodiment of the present invention, its each functional module can be integrated in one In process chip, or modules are individually physically present, it is also possible to which two or more modules are integrated in a mould In block.Above-mentioned integrated module both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized. If the integrated module is realized and as independent production marketing or when using using in the form of software function module, it is also possible to In being stored in a computer read/write memory medium, the storage medium is for example read only memory, disk or CD etc..
A kind of processing method of the blue-teeth data for being provided the embodiment of the present invention above, device and terminal have been carried out in detail Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example It is only intended to help and understands the method for the present invention and its core concept;Simultaneously for those skilled in the art, according to the present invention Thought, will change in specific embodiments and applications, in sum, this specification content should not be understood For limitation of the present invention.

Claims (10)

1. a kind of processing method of blue-teeth data, it is characterised in that include:
When terminal Bluetooth module starts, according to preset rules the first Bluetooth address is generated;
First Bluetooth address is write in the terminal;
The Bluetooth address stored in the terminal is read, and judges whether the Bluetooth address for reading meets the preset rules, institute The Bluetooth address for stating storage includes first Bluetooth address;
When the Bluetooth address for judging the reading meets the preset rules, the Bluetooth address for determining the reading is terminal It is random to generate.
2. the processing method of blue-teeth data as claimed in claim 1, it is characterised in that store in the reading terminal After Bluetooth address, also include:
The Bluetooth address of the storage also distributes to the second Bluetooth address of terminal comprising operator;
Judge whether the Bluetooth address for reading is met after the preset rules, also include:When the bluetooth for judging the reading When address is unsatisfactory for the preset rules, the Bluetooth address for determining the reading is the second Bluetooth address.
3. the processing method of blue-teeth data as claimed in claim 2, it is characterised in that described when terminal Bluetooth module starts When, the first Bluetooth address is generated according to preset rules, including:
When terminal Bluetooth module starts, the preset byte content of Bluetooth address to be generated is determined;
First Bluetooth address is generated according to the preset byte content.
4. the processing method of blue-teeth data as claimed in claim 3, it is characterised in that store in the reading terminal Bluetooth address, and judge whether the Bluetooth address for reading meets the preset rules, including:
The Bluetooth address stored in the terminal is read, judges to whether there is preset byte content in the Bluetooth address for reading;
If judging there is preset byte content in the Bluetooth address for reading, it is judged to that the Bluetooth address for reading meets described pre- If regular;
If judging there is no preset byte content in the Bluetooth address for reading, it is judged to that the Bluetooth address for reading is unsatisfactory for institute State preset rules.
5. the processing method of blue-teeth data as claimed in claim 4, it is characterised in that the bluetooth ground of the determination reading Location is after the second Bluetooth address, also to include:
Bluetooth address in the Bluetooth address that will be stored in the terminal in addition to second Bluetooth address is deleted.
6. a kind of processing meanss of blue-teeth data, it is characterised in that include:
Generation module, for when terminal Bluetooth module starts, according to preset rules the first Bluetooth address being generated;
Writing module, for first Bluetooth address to be write in the terminal;
Judge module, for reading the terminal in store Bluetooth address, and judge read Bluetooth address whether meet institute Preset rules are stated, the Bluetooth address of the storage includes first Bluetooth address;
First determining module, for when the Bluetooth address for judging the reading meets the preset rules, determining the reading The Bluetooth address for taking is generated at random for terminal.
7. processing meanss of blue-teeth data as claimed in claim 6, it is characterised in that described device also includes:
Second determining module, when the Bluetooth address for judging the reading is unsatisfactory for the preset rules, determines the reading Bluetooth address be the second Bluetooth address;
Removing module, for Bluetooth address that will be in the terminal in the Bluetooth address of storage in addition to second Bluetooth address Delete.
8. processing meanss of blue-teeth data as claimed in claim 7, it is characterised in that the generation module, including:
Byte determination sub-module, for when terminal Bluetooth module starts, determining in the preset byte of Bluetooth address to be generated Hold;
Submodule is generated, for generating the first Bluetooth address according to the preset byte content.
9. processing meanss of blue-teeth data as claimed in claim 8, it is characterised in that the judge module, including:
Byte judging submodule, reads the Bluetooth address stored in the terminal, judges to whether there is in the Bluetooth address for reading Preset byte content;
First decision sub-module, for when there is preset byte content in judging the Bluetooth address for reading, being judged to read Bluetooth address meet the preset rules;
Second decision sub-module, for when there is no preset byte content in judging the Bluetooth address for reading, being judged to read The Bluetooth address for taking is unsatisfactory for the preset rules.
10. a kind of terminal, it is characterised in that include:
Be stored with the memorizer of executable program code;
The processor coupled with the memorizer;
The processor calls the executable program code stored in the memorizer, performs if claim 1 is to right Require the method described in 5 any one.
CN201610865237.5A 2016-09-29 2016-09-29 A kind of processing method of blue-teeth data, device and terminal Active CN106658357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610865237.5A CN106658357B (en) 2016-09-29 2016-09-29 A kind of processing method of blue-teeth data, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610865237.5A CN106658357B (en) 2016-09-29 2016-09-29 A kind of processing method of blue-teeth data, device and terminal

Publications (2)

Publication Number Publication Date
CN106658357A true CN106658357A (en) 2017-05-10
CN106658357B CN106658357B (en) 2019-07-16

Family

ID=58853962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610865237.5A Active CN106658357B (en) 2016-09-29 2016-09-29 A kind of processing method of blue-teeth data, device and terminal

Country Status (1)

Country Link
CN (1) CN106658357B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110121163A (en) * 2019-04-30 2019-08-13 努比亚技术有限公司 Registration handling method, communication equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170769A (en) * 2007-11-14 2008-04-30 青岛海信移动通信技术股份有限公司 Method for binding between Bluetooth address and IMEI number of mobile communication terminal
CN104509143A (en) * 2012-06-20 2015-04-08 策安保安有限公司 Bluetooth pairing system, method, and apparatus
CN105528216A (en) * 2015-12-15 2016-04-27 大连理工大学 Method for randomly generating Bluetooth address by android system
EP3073704A1 (en) * 2015-03-23 2016-09-28 Comarch Technologies Spólka z Ograniczona Odpowiedzialnoscia Method of data securing transmitted over bluetooth and transmitter device transmitting secured data over bluetooth

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170769A (en) * 2007-11-14 2008-04-30 青岛海信移动通信技术股份有限公司 Method for binding between Bluetooth address and IMEI number of mobile communication terminal
CN104509143A (en) * 2012-06-20 2015-04-08 策安保安有限公司 Bluetooth pairing system, method, and apparatus
EP3073704A1 (en) * 2015-03-23 2016-09-28 Comarch Technologies Spólka z Ograniczona Odpowiedzialnoscia Method of data securing transmitted over bluetooth and transmitter device transmitting secured data over bluetooth
CN105528216A (en) * 2015-12-15 2016-04-27 大连理工大学 Method for randomly generating Bluetooth address by android system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110121163A (en) * 2019-04-30 2019-08-13 努比亚技术有限公司 Registration handling method, communication equipment and storage medium

Also Published As

Publication number Publication date
CN106658357B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US10657347B2 (en) Method for capturing fingerprint and associated products
CN104679969A (en) Method and device for avoiding user churn
CN104852885A (en) Method, device and system for verifying verification code
CN106357897A (en) Fall information acquiring method and device
CN105278937A (en) Method and device for displaying pop-up box messages
CN106502906A (en) A kind of method and apparatus of test application program
CN103716331A (en) Method, terminal, server and system for numerical value transfer
CN103312597B (en) A kind of speech message generation method and device
CN103368828B (en) A kind of message temporary storage and system
CN107040610A (en) Method of data synchronization, device, storage medium, terminal and server
CN106529332B (en) A kind of authority control method of mobile terminal, device and mobile terminal
CN107219951A (en) Touch screen control method, device, storage medium and terminal device
CN106385485A (en) Call recording method, call recording device and mobile terminal
CN107276602A (en) Radio frequency interference processing method, device, storage medium and terminal
CN106332023A (en) Unread information display method and device, and mobile terminal
CN103631592B (en) A kind of configuration, call method, device and equipment that shows resource
CN106936516A (en) Display screen dispaly state control method, storage medium and terminal
CN104901992A (en) Resource transfer method and device
CN104731782A (en) Information handling method and mobile terminal
CN104391588B (en) A kind of method of input prompt and device
CN106293841A (en) A kind of method and apparatus of burning data
CN104951324A (en) Method and device for acquiring application calling relation table
CN104918130A (en) Methods for transmitting and playing multimedia information, devices and system
CN106254673A (en) Terminal fall detection method and device
CN106792651A (en) Mobile terminal self-destruction method, device 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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant