CN108260115A - Bluetooth equipment position information processing method, device, terminal device and storage medium - Google Patents

Bluetooth equipment position information processing method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108260115A
CN108260115A CN201810023353.1A CN201810023353A CN108260115A CN 108260115 A CN108260115 A CN 108260115A CN 201810023353 A CN201810023353 A CN 201810023353A CN 108260115 A CN108260115 A CN 108260115A
Authority
CN
China
Prior art keywords
bluetooth equipment
terminal device
location information
bluetooth
data transmission
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
CN201810023353.1A
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.)
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 CN201810023353.1A priority Critical patent/CN108260115A/en
Publication of CN108260115A publication Critical patent/CN108260115A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of bluetooth equipment position information processing method, device, terminal device and storage medium, this method is included after terminal device and bluetooth equipment successful connection, and the data transmission state of the terminal device and the bluetooth equipment is monitored;Carry out data transmission if be not detected in preset time with the bluetooth equipment, it is determined that the location information of the bluetooth equipment;According to the location information reminder events are triggered, the reminder events are used to indicate the position of the bluetooth equipment, the perfect positioning function of bluetooth equipment of this programme, convenient for being positioned to bluetooth equipment.

Description

Bluetooth equipment position information processing method, device, terminal device and storage medium
Technical field
The invention relates to computer technology more particularly to a kind of bluetooth equipment position information processing method, device, Terminal device and storage medium.
Background technology
With the raising of terminal device popularity, more and more user's using terminal equipment perform various work( Can to meet self-demand, such as using terminal equipment reads word, viewing video, listens to music, plays game, wherein, carrying out When audio plays, terminal device can be attached by blueteeth network and bluetooth equipment, and audio broadcasting is carried out by bluetooth equipment, Audio broadcasting is such as carried out by bluetooth headset.
In the prior art, in use, to the positioning of bluetooth equipment, there are design defect, need to change for bluetooth equipment Into.
Invention content
It is perfect the present invention provides a kind of bluetooth equipment position information processing method, device, terminal device and storage medium The positioning function of bluetooth equipment, convenient for being positioned to bluetooth equipment.
In a first aspect, the embodiment of the present application provides a kind of bluetooth equipment position information processing method, including:
After terminal device and bluetooth equipment successful connection, to the data transmission of the terminal device and the bluetooth equipment State is monitored;
Carry out data transmission if be not detected in preset time with the bluetooth equipment, it is determined that the bluetooth equipment Location information;
Reminder events are triggered according to the location information, the reminder events are used to indicate the position of the bluetooth equipment.
Second aspect, the embodiment of the present application additionally provide a kind of bluetooth equipment position information process device, including:
Data transmission monitors module, after working as terminal device and bluetooth equipment successful connection, to the terminal device and The data transmission state of the bluetooth equipment is monitored;
Location information determining module, if carrying out data biography with the bluetooth equipment for being not detected in preset time It is defeated, it is determined that the location information of the bluetooth equipment;
Reminding module, for triggering reminder events according to the location information, the reminder events are used to indicate the indigo plant The position of tooth equipment.
The third aspect, the embodiment of the present application additionally provide a kind of terminal device, including:Processor, memory and storage On a memory and the computer program that can run on a processor, the processor are realized such as when performing the computer program Bluetooth equipment position information processing method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application additionally provide a kind of storage medium for including terminal device executable instruction, institute Terminal device executable instruction is stated when being performed as terminal device processor and set for the bluetooth described in performing the embodiment of the present application Standby position information processing method.
In the present solution, after terminal device and bluetooth equipment successful connection, to the terminal device and the bluetooth equipment Data transmission state monitored, carry out data transmission if be not detected in preset time with the bluetooth equipment, It determines the location information of the bluetooth equipment, triggers reminder events according to the location information, the reminder events are used to indicate The position of the bluetooth equipment, the perfect positioning function of bluetooth equipment of this programme, convenient for being positioned to bluetooth equipment.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of bluetooth equipment position information processing method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another bluetooth equipment position information processing method provided in an embodiment of the present invention;
Fig. 3 a are the flow charts of another bluetooth equipment position information processing method provided by the embodiments of the present application;
Fig. 3 b are a kind of schematic diagrames for showing bluetooth equipment position provided by the embodiments of the present application;
Fig. 4 is the flow chart of another bluetooth equipment position information processing method provided by the embodiments of the present application;
Fig. 5 a are the flow charts of another bluetooth equipment position information processing method provided by the embodiments of the present application;
Fig. 5 b are another schematic diagrames for showing bluetooth equipment position provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of bluetooth equipment position information process device provided by the embodiments of the present application;
Fig. 7 is a kind of structure diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used to explain the present invention rather than limitation of the invention.It also should be noted that for the ease of retouching It states, part related to the present invention rather than entire infrastructure is illustrated only in attached drawing.
Fig. 1 is a kind of flow chart of bluetooth equipment position information processing method provided by the embodiments of the present application, is applicable to Bluetooth equipment is positioned, this method can be performed by terminal device provided by the embodiments of the present application, the terminal device Software can be used in bluetooth equipment position information process device and/or the mode of hardware is realized, as shown in Figure 1, the present embodiment provides Concrete scheme it is as follows:
Step S101, after terminal device and bluetooth equipment successful connection, to the terminal device and the bluetooth equipment Data transmission state monitored.
Wherein, terminal device can be mobile phone, tablet computer that user uses etc., and bluetooth equipment can be bluetooth headset, Terminal device is connected with bluetooth equipment by blueteeth network, and blueteeth network is a kind of wireless technology standard, available for realizing equipment Between data transmission.In one embodiment, terminal device is connected with bluetooth headset, during terminal device playing audio-video, user Audio is listened to by bluetooth headset.
Wherein, before step S101, further include the bluetooth equipment that can match of terminal device search, and with bluetooth equipment into Row pairing connection.After terminal device and bluetooth equipment successful connection, to the data of the terminal device and the bluetooth equipment Transmission state is monitored.Pass through the reading of Socket and ServerSocket control terminals equipment and bluetooth equipment in blueteeth network It writes, by taking android system as an example, the Socket of terminal device one end is BluetoothServerSocket classes, bluetooth equipment one The Socket at end be BluetoothSocket classes, two class configuration definitions in android.bluetooth packets, specifically, In terminal device, global constant's variable is defined respectively, defines server-side thread class, the initialization thread in onCreate methods Class is simultaneously accordingly opened, and then receives the data that bluetooth equipment is sent;Bluetooth equipment end, define respectively global constant's variable, Initialization operation is done in onCreate methods, defines radio receiver, and then the data that receiving terminal apparatus is sent.In a reality It applies in example, iostream is monitored to determine data transmission state by the monitor defined in terminal device, wherein, Data transmission state includes data transmission state and non-data transmission state, specifically, iostream can be obtained, such as defines os =clientSocket.getOutputStream, and judge whether os is sky (os!=null) determine terminal device and bluetooth The data transmission state of equipment.
If step S102, it is not detected in preset time and the bluetooth equipment carries out data transmission, it is determined that institute State the location information of bluetooth equipment.
Wherein, which can be 10 minutes, 30 minutes or 1 hour, when detecting that terminal is set in the preset time Standby and bluetooth equipment does not carry out data transmission, it is determined that the location information of bluetooth equipment.Wherein, the location information of the bluetooth equipment To characterize the position of bluetooth equipment.In one embodiment, by taking iPhone as an example, the iBeacon work(of its outfit can be passed through Can, the signal strength of the bluetooth equipment received based on terminal device and/or the position that bluetooth equipment is determined based on location fingerprint Information.In another embodiment, when detecting that preset time (such as 1 hour) terminal device and bluetooth equipment do not have data transmission When, location information to determine bluetooth equipment is interacted by sending data to bluetooth equipment, specifically, bluetooth equipment can be set Position for S (x, y), position of the terminal device within the short period (such as 1s or 3s) is S1, S2 and S3, the coordinate of three positions Respectively S1 (0,0), S2 (x2,0) and S3 (x3, y3) according to S1, S2 and S3 relative to the signal strength of bluetooth equipment S, are obtained The signal strength parsing distance of above-mentioned position S1, S2 and S3, are set to m1, m2 and m3, by following inequality to determine indigo plant The band of position where tooth equipment determine that it is bluetooth equipment location information (i.e. respectively using S1, S2, S3 to S distance as half The intersection area of diameter three obtained border circular areas is the band of position of bluetooth equipment):
Step S103, reminder events are triggered according to the location information.
Wherein, which is used to indicate the position of bluetooth equipment, can be according to the position of aforementioned determining bluetooth equipment Information carries out corresponding configuration triggering.Optionally, which can be the voice letter for the loud speaker transmission that terminal device integrates Breath, for prompting user's bluetooth equipment position;It can also be the position according to current bluetooth equipment and terminal device Location determination bluetooth equipment residing for the orientation relative to terminal device, the display screen display which passes through terminal device The orientation shown is realized, to remind the position of user's bluetooth equipment;The reminder events can also be to be shown by terminal device screen Show the simulated scenario of current indoor, the position of the bluetooth equipment is included for reference in the simulated scenario.
As shown in the above, it is not counted under certain time length with the bluetooth equipment of terminal device network connection when detecting When coming and going according to transmission, determine the position of the bluetooth equipment and accordingly trigger reminder events, user is thus made to know bluetooth equipment institute Position, avoid the problem that user can not find bluetooth equipment.
Optionally, when the button control for detecting setting is triggered, bluetooth equipment can be shown in terminal device screen Position.
Fig. 2 is the flow chart of another bluetooth equipment position information processing method provided by the embodiments of the present application, optionally, If detecting that there are data transmissions with the bluetooth equipment, the charge value of the bluetooth equipment is obtained, if the electricity Value meets preset condition, it is determined that the location information of the bluetooth equipment.As shown in Fig. 2, technical solution is specific as follows:
Step S201, after terminal device and bluetooth equipment successful connection, to the terminal device and the bluetooth equipment Data transmission state monitored.
Step S202, judge whether terminal device and bluetooth equipment have data transmission, if it is not, then step S203 is performed, If it is, perform step S207.
Step S203, triggering timing device carries out timing.
Step S204, judge whether timing time meets preset time, if it is, step S205 is performed, if it is not, then Continue timing.
Step S205, the location information of bluetooth equipment is determined.
Step S206, reminder events are triggered according to the location information.
Step S207, the charge value of the bluetooth equipment is obtained.
In one embodiment, can bluetooth equipment be obtained by the bluetooth equipment electric quantity display function that terminal device integrates Charge value (or charge level, as electricity is in turn divided into 9 grades from high to low).In another embodiment, it is blue by customizing The mode of tooth device hardware adds additional information ServiceData, and Bluetooth broadcast is scanned using API primary IOS/Android Data, and it is parsed to obtain the information about power of bluetooth equipment according to the agreement that oneself is defined.
Step S208, judge whether the charge value meets preset condition, if it is, step S205 is performed, if not, Then continue to monitor.
Wherein, which can be that charge value is less than 5% (3% or 10%), i.e., when terminal device electricity is less than one During preset value, the location information of bluetooth equipment is determined, reminder events are triggered according to the location information.
It can be seen from the above, when bluetooth equipment electricity is less than certain value, the position of corresponding determining bluetooth equipment avoids indigo plant Tooth equipment not enough power supply leads to not the problem of positioning, the perfect positioning function of bluetooth equipment, convenient for being carried out to bluetooth equipment Positioning.
Fig. 3 a are the flow charts of another bluetooth equipment position information processing method provided by the embodiments of the present application, optional , the location information for determining the bluetooth equipment includes:Determine side of the bluetooth equipment relative to the terminal device Position;Correspondingly, described include according to location information triggering reminder events:The screen display integrated by the terminal device The bluetooth equipment relative to the terminal device orientation.As shown in Figure 3a, technical solution is specific as follows:
Step S301, after terminal device and bluetooth equipment successful connection, to the terminal device and the bluetooth equipment Data transmission state monitored.
Step S302, judge whether terminal device and bluetooth equipment have data transmission, if it is not, then step S303 is performed, If it is, perform step S307.
Step S303, triggering timing device carries out timing.
Step S304, judge whether timing time meets preset time, if it is, step S305 is performed, if it is not, then Continue timing.
Step S305, orientation of the bluetooth equipment relative to the terminal device is determined.
In one embodiment, by the signal strength of bluetooth equipment and terminal device within the short time (such as 1s) not With the region of location determination bluetooth equipment, referring to the explanation part of step S102, details are not described herein again.Determine that the bluetooth is set Behind standby region according to the region of the current location of terminal device with determine bluetooth equipment relative to terminal device Orientation, illustratively, bluetooth equipment can be any of the east, south, west, north of terminal device or between orientation.
Step S306, bluetooth equipment described in the screen display integrated by the terminal device is relative to the terminal device Orientation.
Illustratively, Fig. 3 b are a kind of schematic diagrames for showing bluetooth equipment position provided by the embodiments of the present application, specifically, For bluetooth equipment in terminal device northwest position terminal device screen display interface schematic diagram, as shown in Figure 3b, user passes through The arrow shown in interface can intuitively determine the position of bluetooth equipment, found convenient for user and find the bluetooth equipment.
Step S307, the charge value of the bluetooth equipment is obtained.
Step S308, judge whether the charge value meets preset condition, if it is, step S305 is performed, if not, Then continue to monitor.
It can be seen from the above, pass through the side residing for showing bluetooth equipment compared to present terminal equipment in terminal device screen Position, user can determine the position where bluetooth equipment according to the orientation, bluetooth equipment be positioned convenient for user, when terminal device and indigo plant The no data transmission or during bluetooth equipment not enough power supply in certain time length of tooth equipment, triggers the reminder events, to remind user The orientation of bluetooth equipment.
Fig. 4 is the flow chart of another bluetooth equipment position information processing method provided by the embodiments of the present application, optionally, The location information for determining the bluetooth equipment includes:Determine orientation of the bluetooth equipment relative to the terminal device; Correspondingly, described include according to location information triggering reminder events:It is determined in corresponding voice prompt according to the orientation Hold, the report of the voice prompt content is carried out by the loud speaker that the terminal device integrates.As shown in figure 4, technical solution It is specific as follows:
Step S401, after terminal device and bluetooth equipment successful connection, to the terminal device and the bluetooth equipment Data transmission state monitored.
Step S402, judge whether terminal device and bluetooth equipment have data transmission, if it is not, then step S403 is performed, If it is, perform step S407.
Step S403, triggering timing device carries out timing.
Step S404, judge whether timing time meets preset time, if it is, step S405 is performed, if it is not, then Continue timing.
Step S405, orientation of the bluetooth equipment relative to the terminal device is determined.
Step S406, it determines corresponding voice prompt content according to the orientation, is raised by what the terminal device integrated Sound device carries out the report of the voice prompt content.
In one embodiment, the orientation where bluetooth equipment is reported by voice mode, wherein, terminal device can be combined Direction the orientation such as east, south, west, north are converted into term positions such as " front, rear, left and right " and are reported, remind user's bluetooth The position of equipment avoids can not find bluetooth equipment.Specifically, by taking terminal device is face-up held by a user as an example, lead to Cross integrated gyroscope and acceleration transducer determine the direction of terminal device, according to the direction and bluetooth equipment relative to The orientation of terminal device determines bluetooth equipment in " front, rear, left and right " position of terminal device and carries out corresponding voice broadcast.
Step S407, the charge value of the bluetooth equipment is obtained.
Step S408, judge whether the charge value meets preset condition, if it is, step S405 is performed, if not, Then continue to monitor.
It can be seen from the above, when detecting bluetooth equipment not enough power supply or there is no data transmission for a long time, to bluetooth equipment Position reported the position for determining bluetooth equipment convenient for user to remind the orientation residing for user's bluetooth equipment, avoid Due to the problem of can not being positioned caused by bluetooth equipment not enough power supply, at the same avoid bluetooth headset connection after due to user or its The problem of its reason does not use and is not easy to find.
Fig. 5 a are the flow charts of another bluetooth equipment position information processing method provided by the embodiments of the present application, optional , the location information for determining the bluetooth equipment includes:Determine coordinate value of the bluetooth equipment in current indoor;Accordingly , it is described to include according to location information triggering reminder events:The bluetooth equipment is included in life according to the coordinate value Into simulation indoor scene in, the screen display that is integrated by the terminal device of simulation indoor scene.As shown in Figure 5 a, Technical solution is specific as follows:
Step S501, after terminal device and bluetooth equipment successful connection, to the terminal device and the bluetooth equipment Data transmission state monitored.
Step S502, judge whether terminal device and bluetooth equipment have data transmission, if it is not, then step S503 is performed, If it is, perform step S507.
Step S503, triggering timing device carries out timing.
Step S504, judge whether timing time meets preset time, if it is, step S505 is performed, if it is not, then Continue timing.
Step S505, coordinate value of the bluetooth equipment in current indoor is determined.
In one embodiment, it is described to determine that the bluetooth equipment includes in the coordinate value of current indoor:According to receiving Present terminal equipment position data indoors and the bluetooth equipment determined relative to the position where the terminal device Region determines coordinate value of the bluetooth equipment in current indoor.Specifically, it can be shown in the display interface of terminal device current Indoor simulation scene, the simulated scenario are generated according to indoor scene figure or the administrative division map of user's Freehandhand-drawing, and Fig. 5 b are that the application is implemented Another schematic diagram for showing bluetooth equipment position that example provides, as shown in Figure 5 b, shows in the display interface of terminal device Current indoor simulation scene, wherein, the current position data of above-mentioned terminal device can be clicked the respective chamber/chambers in screen by user Interior scene location generation, if user clicks the position a in bedroom 4, at this point, according to bluetooth equipment relative to the position of terminal device Determine coordinate value of the bluetooth equipment in current indoor scene, the position for the bluetooth equipment being such as worth to by coordinate is position b.
Step S506, the bluetooth equipment is included in the simulation indoor scene of generation according to the coordinate value.
As shown in Figure 5 b, the mode that the position b determined according to coordinate value takes border circular areas to be shown, is shown in mould Intend in indoor scene.
Step S507, the charge value of the bluetooth equipment is obtained.
Step S508, judge whether the charge value meets preset condition, if it is, step S505 is performed, if not, Then continue to monitor.
It can be seen from the above, by intuitively including bluetooth equipment in indoor scene, determined at the first time convenient for user The position of bluetooth equipment, this kind of reporting position mode are more efficient.
Optionally, it after the triggering reminder events according to the location information, further includes:The coordinate value is recorded, When the position acquisition event for detecting user's triggering, the bluetooth equipment is included by the simulation in generation according to the coordinate value In indoor scene.Wherein, which can be that user clicks the preset button triggering for obtaining bluetooth equipment position Event, after the event is triggered, if bluetooth equipment is disconnected with this terminal device, the bluetooth of record can be set Standby is shown in terminal device screen so that user conveniently finds bluetooth equipment.
Fig. 6 is a kind of structure diagram of bluetooth equipment position information process device provided by the embodiments of the present application, the device For perform above-described embodiment offer bluetooth equipment position information processing method, have the corresponding function module of execution method and Advantageous effect.As shown in fig. 6, the device specifically includes:Data transmission is monitored module 101, location information determining module 102 and is carried Awake module 103, wherein,
Data transmission monitors module 101, after working as terminal device and bluetooth equipment successful connection, to the terminal device It is monitored with the data transmission state of the bluetooth equipment.
Wherein, which further includes bluetooth connection module, for the bluetooth equipment that terminal device search can match, and it is and blue Tooth equipment carries out pairing connection.After terminal device and bluetooth equipment successful connection, the terminal device and the bluetooth are set Standby data transmission state is monitored.Pass through Socket and ServerSocket control terminals equipment and bluetooth in blueteeth network The read-write of equipment, by taking android system as an example, the Socket of terminal device one end is BluetoothServerSocket classes, blue The Socket of tooth equipment one end is BluetoothSocket classes, and two class configuration definitions are in android.bluetooth packets In, specifically, in terminal device, global constant's variable is defined respectively, defines server-side thread class, in onCreate methods Initialization thread class is simultaneously accordingly opened, and then receives the data that bluetooth equipment is sent;Bluetooth equipment end, defines global constant respectively Variable does initialization operation in onCreate methods, defines radio receiver, and then the data that receiving terminal apparatus is sent. In one embodiment, iostream is monitored by the monitor defined in terminal device to determine data transmission shape State, wherein, data transmission state includes data transmission state and non-data transmission state.
Location information determining module 102, if for being not detected in preset time with the bluetooth equipment into line number According to transmission, it is determined that the location information of the bluetooth equipment.
Wherein, which can be 10 minutes, 30 minutes or 1 hour, when detecting that terminal is set in the preset time Standby and bluetooth equipment does not carry out data transmission, it is determined that the location information of bluetooth equipment.Wherein, the location information of the bluetooth equipment To characterize the position of bluetooth equipment.In one embodiment, by taking iPhone as an example, the iBeacon work(of its outfit can be passed through Can, the signal strength of the bluetooth equipment received based on terminal device and/or the position that bluetooth equipment is determined based on location fingerprint Information.In another embodiment, when detecting that preset time (such as 1 hour) terminal device and bluetooth equipment do not have data transmission When, location information to determine bluetooth equipment is interacted by sending data to bluetooth equipment, specifically, bluetooth equipment can be set Position for S (x, y), position of the terminal device within the short period (such as 1s or 3s) is S1, S2 and S3, the coordinate of three positions Respectively S1 (0,0), S2 (x2,0) and S3 (x3, y3) according to S1, S2 and S3 relative to the signal strength of bluetooth equipment S, are obtained The signal strength parsing distance of above-mentioned position S1, S2 and S3, are set to m1, m2 and m3, by Mathematical inequalities to determine indigo plant The band of position where tooth equipment determine that it is bluetooth equipment location information (i.e. respectively using S1, S2, S3 to S distance as half The intersection area of diameter three obtained border circular areas is the band of position of bluetooth equipment).
Reminding module 103, for triggering reminder events according to the location information, the reminder events are used to indicate described The position of bluetooth equipment.
Wherein, which is used to indicate the position of bluetooth equipment, can be according to the position of aforementioned determining bluetooth equipment Information carries out corresponding configuration triggering.Optionally, which can be the voice letter for the loud speaker transmission that terminal device integrates Breath, for prompting user's bluetooth equipment position;It can also be the position according to current bluetooth equipment and terminal device Location determination bluetooth equipment residing for the orientation relative to terminal device, the display screen display which passes through terminal device The orientation shown is realized, to remind the position of user's bluetooth equipment;The reminder events can also be to be shown by terminal device screen Show the simulated scenario of current indoor, the position of the bluetooth equipment is included for reference in the simulated scenario.
As shown in the above, it is not counted under certain time length with the bluetooth equipment of terminal device network connection when detecting When coming and going according to transmission, determine the position of the bluetooth equipment and accordingly trigger reminder events, user is thus made to know bluetooth equipment institute Position, avoid the problem that user can not find bluetooth equipment.
In a possible embodiment, the location information determining module 102 is additionally operable to:If it detects and the indigo plant There are data transmissions for tooth equipment, then obtain the charge value of the bluetooth equipment, if the charge value meets preset condition, really The location information of the fixed bluetooth equipment.
In a possible embodiment, the location information determining module 102 is specifically used for:
Determine orientation of the bluetooth equipment relative to the terminal device;
The reminding module 103 is specifically used for:
Bluetooth equipment described in the screen display integrated by the terminal device relative to the terminal device orientation.
In a possible embodiment, the location information determining module 102 is specifically used for:
Determine orientation of the bluetooth equipment relative to the terminal device;
The reminding module 103 is specifically used for:
Corresponding voice prompt content is determined according to the orientation, and institute is carried out by the loud speaker that the terminal device integrates The report of predicate sound suggestion content.
In a possible embodiment, the location information determining module 102 is specifically used for:
Determine coordinate value of the bluetooth equipment in current indoor;
The reminding module 103 is specifically used for:
The bluetooth equipment is included in the simulation indoor scene of generation according to the coordinate value, the simulating chamber internal field The screen display that scape is integrated by the terminal device.
In a possible embodiment, logging modle 104 is further included, is used for:
It is described trigger reminder events according to the location information after, the coordinate value is recorded, when detecting that user touches During the position acquisition event of hair, the bluetooth equipment is included in the simulation indoor scene of generation according to the coordinate value.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 7 is that the embodiment of the present application carries The structure diagram of a kind of terminal device supplied, as shown in fig. 7, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loud speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, bluetooth Module 213, other input/control devicess 210 and outside port 204, these components by one or more communication bus or Signal wire 207 communicates.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 Can have than more or less components shown in figure, two or more components can be combined or can be with It is configured with different components.Various parts shown in figure can be including one or more signal processings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
Just the terminal device of rights management provided in this embodiment for more opening application is described in detail below, should Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be by access such as CPU202, Peripheral Interfaces 203, and the memory 201 can To include high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch screen 212 With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystems 209 can include 2091 He of display controller For controlling one or more input controllers 2092 of other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.What deserves to be explained is input controller 2092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can User is shown to depending on output, visual output can include figure, text, icon, video etc..
Display controller 2091 in I/O subsystems 209 receives electric signal from touch screen 212 or is sent out to touch screen 212 Electric signals.Touch screen 212 detects the contact on touch screen, and the contact detected is converted to and shown by display controller 2091 The interaction of user interface object on touch screen 212, that is, realize human-computer interaction, the user interface being shown on touch screen 212 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse are the extensions for not showing the touch sensitive surface visually exported or the touch sensitive surface formed by touch screen.
RF circuits 205 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 205 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 205 can include performing The known circuit of these functions includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 211.
Loud speaker 211 for the voice signal for receiving mobile phone from wireless network by RF circuits 205, is reduced to sound And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The bluetooth equipment position information process device and terminal device of the terminal device provided in above-described embodiment can perform It is corresponding to have execution this method for the bluetooth equipment position information processing method for the terminal device that any embodiment of the present invention is provided Function module and advantageous effect.The not technical detail of detailed description in the above-described embodiments is implemented reference can be made to the present invention is arbitrary The bluetooth equipment position information processing method of terminal device that example is provided.
The embodiment of the present application also provides a kind of storage medium for including terminal device executable instruction, and the terminal device can Execute instruction is used to perform a kind of bluetooth equipment position information processing method, this method packet when being performed by terminal device processor It includes:
After terminal device and bluetooth equipment successful connection, to the data transmission of the terminal device and the bluetooth equipment State is monitored;
Carry out data transmission if be not detected in preset time with the bluetooth equipment, it is determined that the bluetooth equipment Location information;
Reminder events are triggered according to the location information, the reminder events are used to indicate the position of the bluetooth equipment.
In a possible embodiment, if detected with the bluetooth equipment there are data transmission, obtain described in The charge value of bluetooth equipment, if the charge value meets preset condition, it is determined that the location information of the bluetooth equipment.
In a possible embodiment, the location information for determining the bluetooth equipment includes:
Determine orientation of the bluetooth equipment relative to the terminal device;
Correspondingly, described include according to location information triggering reminder events:
Bluetooth equipment described in the screen display integrated by the terminal device relative to the terminal device orientation.
In a possible embodiment, the location information for determining the bluetooth equipment includes:
Determine orientation of the bluetooth equipment relative to the terminal device;
Correspondingly, described include according to location information triggering reminder events:
Corresponding voice prompt content is determined according to the orientation, and institute is carried out by the loud speaker that the terminal device integrates The report of predicate sound suggestion content.
In a possible embodiment, the location information for determining the bluetooth equipment includes:
Determine coordinate value of the bluetooth equipment in current indoor;
Correspondingly, described include according to location information triggering reminder events:
The bluetooth equipment is included in the simulation indoor scene of generation according to the coordinate value, the simulating chamber internal field The screen display that scape is integrated by the terminal device.
In a possible embodiment, it after the triggering reminder events according to the location information, further includes:
The coordinate value is recorded, when the position acquisition event for detecting user's triggering, according to the coordinate value by described in Bluetooth equipment is shown in the simulation indoor scene of generation.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other The memory or combination of type.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction and be used to perform to the first computer." storage is situated between term Matter " can include may reside in different location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, computer The bluetooth equipment position information processing method operation that executable instruction is not limited to the described above can also be performed of the invention arbitrary real Apply the relevant operation in the bluetooth equipment position information processing method that example is provided.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. bluetooth equipment position information processing method, which is characterized in that including:
After terminal device and bluetooth equipment successful connection, to the data transmission state of the terminal device and the bluetooth equipment It is monitored;
Carry out data transmission if be not detected in preset time with the bluetooth equipment, it is determined that the position of the bluetooth equipment Confidence ceases;
Reminder events are triggered according to the location information, the reminder events are used to indicate the position of the bluetooth equipment.
2. if according to the method described in claim 1, it is characterized in that, detect that there are data biographies with the bluetooth equipment It is defeated, then the charge value of the bluetooth equipment is obtained, if the charge value meets preset condition, it is determined that the bluetooth equipment Location information.
3. method according to claim 1 or 2, which is characterized in that the location information packet for determining the bluetooth equipment It includes:
Determine orientation of the bluetooth equipment relative to the terminal device;
Correspondingly, described include according to location information triggering reminder events:
Bluetooth equipment described in the screen display integrated by the terminal device relative to the terminal device orientation.
4. method according to claim 1 or 2, which is characterized in that the location information packet for determining the bluetooth equipment It includes:
Determine orientation of the bluetooth equipment relative to the terminal device;
Correspondingly, described include according to location information triggering reminder events:
Corresponding voice prompt content is determined according to the orientation, and institute's predicate is carried out by the loud speaker that the terminal device integrates The report of sound suggestion content.
5. method according to claim 1 or 2, which is characterized in that the location information packet for determining the bluetooth equipment It includes:
Determine coordinate value of the bluetooth equipment in current indoor;
Correspondingly, described include according to location information triggering reminder events:
The bluetooth equipment is included in the simulation indoor scene of generation according to the coordinate value, the simulation indoor scene leads to Cross the screen display that the terminal device integrates.
6. according to the method described in claim 5, it is characterized in that, it is described according to the location information triggering reminder events it Afterwards, it further includes:
The coordinate value is recorded, when the position acquisition event for detecting user's triggering, according to the coordinate value by the bluetooth Equipment is shown in the simulation indoor scene of generation.
7. bluetooth equipment position information process device, which is characterized in that including:
Data transmission monitors module, after working as terminal device and bluetooth equipment successful connection, to the terminal device and described The data transmission state of bluetooth equipment is monitored;
Location information determining module, if carried out data transmission for being not detected in preset time with the bluetooth equipment, Then determine the location information of the bluetooth equipment;
Reminding module, for triggering reminder events according to the location information, the reminder events are used to indicate the bluetooth and set Standby position.
8. device according to claim 7, which is characterized in that the location information determining module is additionally operable to:
If detecting that there are data transmissions with the bluetooth equipment, the charge value of the bluetooth equipment is obtained, if described Charge value meets preset condition, it is determined that the location information of the bluetooth equipment.
9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor is realized when performing the computer program such as any one of claim 1-6 institutes The bluetooth equipment position information processing method stated.
A kind of 10. storage medium for including terminal device executable instruction, which is characterized in that the terminal device executable instruction Bluetooth equipment location information when being performed by terminal device processor for execution as described in any one of claim 1-6 Reason method.
CN201810023353.1A 2018-01-10 2018-01-10 Bluetooth equipment position information processing method, device, terminal device and storage medium Pending CN108260115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810023353.1A CN108260115A (en) 2018-01-10 2018-01-10 Bluetooth equipment position information processing method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810023353.1A CN108260115A (en) 2018-01-10 2018-01-10 Bluetooth equipment position information processing method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN108260115A true CN108260115A (en) 2018-07-06

Family

ID=62726328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810023353.1A Pending CN108260115A (en) 2018-01-10 2018-01-10 Bluetooth equipment position information processing method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN108260115A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151210A (en) * 2018-09-28 2019-01-04 Oppo广东移动通信有限公司 Mobile terminal, information display method and related product
CN111132101A (en) * 2019-11-22 2020-05-08 华为技术有限公司 Positioning interaction method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079320A (en) * 2013-06-17 2014-10-01 苏州天趣信息科技有限公司 Device for searching for Bluetooth headset through host side
CN105072569A (en) * 2015-08-28 2015-11-18 广东小天才科技有限公司 Method and device for saving electricity for mobile terminal
CN106412818A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and apparatus for locating device
CN106507474A (en) * 2016-10-28 2017-03-15 歌尔科技有限公司 A kind of method and device for positioning mobile terminal
CN106603830A (en) * 2016-11-30 2017-04-26 努比亚技术有限公司 Alarm prompting device and method for terminal equipment
US20170188199A1 (en) * 2007-08-30 2017-06-29 Wirelesswerx International, Inc. Flow control in a defined location
CN107277657A (en) * 2017-05-18 2017-10-20 深圳市冠旭电子股份有限公司 A kind of earphone method for retrieving, device and earphone

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170188199A1 (en) * 2007-08-30 2017-06-29 Wirelesswerx International, Inc. Flow control in a defined location
CN104079320A (en) * 2013-06-17 2014-10-01 苏州天趣信息科技有限公司 Device for searching for Bluetooth headset through host side
CN106412818A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and apparatus for locating device
CN105072569A (en) * 2015-08-28 2015-11-18 广东小天才科技有限公司 Method and device for saving electricity for mobile terminal
CN106507474A (en) * 2016-10-28 2017-03-15 歌尔科技有限公司 A kind of method and device for positioning mobile terminal
CN106603830A (en) * 2016-11-30 2017-04-26 努比亚技术有限公司 Alarm prompting device and method for terminal equipment
CN107277657A (en) * 2017-05-18 2017-10-20 深圳市冠旭电子股份有限公司 A kind of earphone method for retrieving, device and earphone

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151210A (en) * 2018-09-28 2019-01-04 Oppo广东移动通信有限公司 Mobile terminal, information display method and related product
CN111132101A (en) * 2019-11-22 2020-05-08 华为技术有限公司 Positioning interaction method and device
CN111132101B (en) * 2019-11-22 2022-02-08 荣耀终端有限公司 Positioning interaction method and device

Similar Documents

Publication Publication Date Title
US11153609B2 (en) Method and apparatus for live streaming
US9456265B2 (en) Electronic device and control method thereof
CN108810749B (en) Player control method, device, terminal equipment and storage medium
WO2017181365A1 (en) Earphone channel control method, related apparatus, and system
CN111107389B (en) Method, device and system for determining live broadcast watching time length
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
CN106878915B (en) Control method, device and the playback equipment and mobile terminal of playback equipment
KR20200124948A (en) Electronic device and Method of controlling thereof
CN106911956A (en) A kind of audio data play method, device and mobile terminal
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN113516991A (en) Audio playing and equipment management method and device based on group session
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN110765182B (en) Data statistical method and device, electronic equipment and storage medium
CN108260115A (en) Bluetooth equipment position information processing method, device, terminal device and storage medium
EP3346732B1 (en) Electronic devices and method for controlling operation thereof
CN112612444A (en) Sound source position positioning method, sound source position positioning device, electronic equipment and storage medium
CN108882112B (en) Audio playing control method and device, storage medium and terminal equipment
WO2020038157A1 (en) Nan-based intelligent management method and related product
CN108632713B (en) Volume control method and device, storage medium and terminal equipment
CN108540732B (en) Method and device for synthesizing video
CN115951813A (en) False touch detection method and audio playing device
CN111263206B (en) Synchronous playing method and device of multimedia information, storage medium and mobile terminal
CN114884990A (en) Screen projection method and device based on virtual screen
CN113992786A (en) Audio playing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706