CN105120499A - Bluetooth master-slave mode automatic switching method and system - Google Patents

Bluetooth master-slave mode automatic switching method and system Download PDF

Info

Publication number
CN105120499A
CN105120499A CN201510520189.1A CN201510520189A CN105120499A CN 105120499 A CN105120499 A CN 105120499A CN 201510520189 A CN201510520189 A CN 201510520189A CN 105120499 A CN105120499 A CN 105120499A
Authority
CN
China
Prior art keywords
bluetooth
mode
smart machine
routing device
blue
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
CN201510520189.1A
Other languages
Chinese (zh)
Other versions
CN105120499B (en
Inventor
雷夏平
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201510520189.1A priority Critical patent/CN105120499B/en
Publication of CN105120499A publication Critical patent/CN105120499A/en
Application granted granted Critical
Publication of CN105120499B publication Critical patent/CN105120499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • 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
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Landscapes

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

Abstract

The invention discloses a Bluetooth master-slave mode automatic switching method, comprising: a router determining the Bluetooth mode of a Bluetooth in a local network and the work state of the Bluetooth; the router obtaining the Bluetooth mode of an intelligent device in the local network when the Bluetooth connected to the local network is in a Bluetooth master mode, and the Bluetooth works in a Bluetooth data output state; the router sending a Bluetooth mode switching instruction to the intelligent device when the intelligent device is in the Bluetooth master mode; and the intelligent device switching a self Bluetooth mode into a Bluetooth slave mode according to the Bluetooth mode switching instruction. The invention also discloses a Bluetooth master-slave mode automatic switching system. The method and system can automatically switch Bluetooth master-slave modes of the intelligent device, require no manual operation of a user, and are more convenient.

Description

The method and system that bluetooth master slave mode automatically switches
Technical field
The present invention relates to technical field of intelligent equipment, the method and system of particularly bluetooth master slave mode automatic switchover.
Background technology
Along with the maturation gradually of Bluetooth technology, smart machine and the relevant external equipment thereof with blue tooth communication function also emerge in an endless stream.Such as there are the television set of Bluetooth function, mobile phone, panel computer, audio amplifier etc.The various equipment with blue tooth communication function can be divided three classes again: a class is the Bluetooth slave devices that can only receive data, such as Baffle Box of Bluetooth, bluetooth earphone etc.; Another kind of is the bluetooth master that can only send data, such as Bluetooth player, blue Tooth remote controller etc.; A class is also had to be not only can receive data, but also the equipment of data can be sent, this kind equipment can switch between equipment mode and main equipment pattern, when it is in from equipment mode, for receiving the data that bluetooth master sends, when it is in main equipment pattern, such as, for sending data, intelligent TV set, mobile phone, panel computer etc. to Bluetooth slave devices.
For intelligent TV set, when intelligent TV set is in main equipment pattern, can bluetooth earphone, Baffle Box of Bluetooth etc. be sent to from equipment the music that current television program is being play, play by bluetooth earphone or Baffle Box of Bluetooth the music play in television set.When intelligent TV set is in from equipment mode, if mobile phone is in main equipment pattern, the music play in mobile phone can be sent to television set by mobile phone, and the music in mobile phone play by the loudspeaker carried by television set.But, the current smart machine with bluetooth master slave mode can be connected with bluetooth master and Bluetooth slave devices simultaneously, usually user is needed to carry out the bluetooth master slave mode of manual switchover smart machine by the mode arranging System menu, complex operation step, bluetooth master slave mode switches very inconvenient.
Summary of the invention
The method and system that main purpose of the present invention automatically switches for providing a kind of bluetooth master slave mode, the bluetooth master slave mode of the smart machine that can automatically switch, reduces During manual operation.
The present invention proposes a kind of method that bluetooth master slave mode automatically switches, and comprises step:
Routing device judges the bluetooth mode of bluetooth equipment in LAN and the operating state of described bluetooth equipment;
When the bluetooth equipment connected in described LAN be in bluetooth holotype and described Bluetooth device operation in blue-teeth data output state time, described routing device obtains the bluetooth mode of the smart machine in described LAN;
When described smart machine is in bluetooth holotype, described routing device sends bluetooth mode switching command to described smart machine;
The bluetooth mode of self switches to bluetooth from pattern according to described bluetooth mode switching command by described smart machine.
Preferably, the bluetooth mode of self switches to bluetooth also to comprise after the step of pattern according to described bluetooth mode switching command by described smart machine:
Whether described smart machine monitoring receives the blue-teeth data coming from described bluetooth equipment;
If so, then described smart machine plays the described blue-teeth data received, and continues to monitor whether receive the blue-teeth data coming from described bluetooth equipment;
If not, then the bluetooth mode of self is switched to bluetooth holotype by described smart machine.
Preferably, the bluetooth mode of self switches to the step of bluetooth holotype to comprise by described smart machine:
When not receiving described blue-teeth data, described smart machine starts timing;
In timing course, when receiving described blue-teeth data, described smart machine timing resets;
When not receiving the timing duration threshold value time of advent of described blue-teeth data, the bluetooth mode of self is switched to bluetooth holotype by described smart machine.
Preferably, described routing device also comprises after scanning the step of the bluetooth mode of bluetooth equipment and the operating state of described bluetooth equipment in LAN:
When not being connected with the bluetooth equipment being in bluetooth holotype in described LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, the switching control function of described routing device closedown self;
When there being new bluetooth equipment to access described LAN, described routing device reopens self switching control function.
Preferably, described routing device also comprises after judging the step of the bluetooth mode of bluetooth equipment in LAN and the operating state of described bluetooth equipment:
When described routing device judges that the bluetooth mode of described bluetooth equipment is in bluetooth holotype, the first numerical value is defined as 1 by described routing device; Otherwise, the first numerical value is defined as 0;
When described routing device judges described Bluetooth device operation in blue-teeth data output state, second value is defined as 1 by described routing device; Otherwise, second value is defined as 0;
Described routing device, by described first numerical value and second value logical AND, obtains third value;
The described bluetooth equipment when connecting in described LAN be in bluetooth holotype and described Bluetooth device operation when blue-teeth data output state, the step that described routing device obtains the bluetooth mode of the smart machine in described LAN comprises:
When third value is 1, described routing device judges that described third value is effective, obtains the bluetooth mode of the smart machine in described LAN;
Described when not being connected with the bluetooth equipment being in bluetooth holotype in described LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, the step that described routing device closes the switching control function of self comprises:
When third value is 0, described routing device judges that described third value is invalid, the switching control function of described routing device closedown self.
The present invention also proposes the system that a kind of bluetooth master slave mode automatically switches, and comprises routing device and smart machine:
Described routing device comprises:
Scan module, for the operating state of the bluetooth mode and described bluetooth equipment that judge bluetooth equipment in LAN; When the bluetooth equipment connected in described LAN be in bluetooth holotype and described Bluetooth device operation in blue-teeth data output state time, obtain the bluetooth mode of the smart machine in described LAN;
Switching controls module, for when described smart machine is in bluetooth holotype, sends bluetooth mode switching command to described smart machine;
Described smart machine comprises:
Switch setting module, for switching to bluetooth from pattern the bluetooth mode of self according to described bluetooth mode switching command.
Preferably, described smart machine also comprises:
Data monitoring module, for monitoring the blue-teeth data whether receiving and come from described bluetooth equipment;
Playing module, in described data monitoring module monitors to when coming from the blue-teeth data of described bluetooth equipment, play the described blue-teeth data received;
Described switching setting module also for, when described data monitoring module does not monitor the blue-teeth data coming from described bluetooth equipment, the bluetooth mode of self is switched to bluetooth holotype.
Preferably, described smart machine also comprises:
Timing module, for when described data monitoring module does not monitor described blue-teeth data, starts timing; In timing course, when described data monitoring module monitors is to described blue-teeth data, timing resets;
Described switching setting module also for, when not receiving the timing duration threshold value time of advent of described blue-teeth data, the bluetooth mode of self is switched to bluetooth holotype.
Preferably, the scan module of described routing device also for:
When not being connected with the bluetooth equipment being in bluetooth holotype in described LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, close the switching control function of described routing device;
When there being new bluetooth equipment to access described LAN, reopen the switching control function of described routing device.
Preferably, the scan module of described routing device also for:
When judging that the bluetooth mode of described bluetooth equipment is in bluetooth holotype, the first numerical value is defined as 1; Otherwise, the first numerical value is defined as 0;
When judging described Bluetooth device operation in blue-teeth data output state, second value is defined as 1; Otherwise, second value is defined as 0;
By described first numerical value and second value logical AND, obtain third value;
When third value is 1, judges that described third value is effective, obtain the bluetooth mode of the smart machine in described LAN;
When third value is 0, judges that described third value is invalid, close the switching control function of described routing device.
The present invention carries out pattern recognition by the equipment in routing device local area network and operating state judges, be in bluetooth holotype when the bluetooth equipment connecting local area network (LAN) and work in blue-teeth data output state, when smart machine is in bluetooth from pattern, routing device sends bluetooth mode switching command to smart machine, the bluetooth mode of self switches to bluetooth from pattern by smart machine, need not user's manual operation, achieve the bluetooth master slave mode of automatic switchover smart machine.
Accompanying drawing explanation
Fig. 1 is the flow chart of the first embodiment of the method that bluetooth master slave mode of the present invention automatically switches;
Fig. 2 is the flow chart of the second embodiment of the method that bluetooth master slave mode of the present invention automatically switches;
Fig. 3 is the flow chart of the 3rd embodiment of the method that bluetooth master slave mode of the present invention automatically switches;
Fig. 4 is the flow chart of the 4th embodiment of the method that bluetooth master slave mode of the present invention automatically switches;
Fig. 5 is the flow chart of the 5th embodiment of the method that bluetooth master slave mode of the present invention automatically switches;
Fig. 6 is the module diagram of the first embodiment of the system that bluetooth master slave mode of the present invention automatically switches;
Fig. 7 is the module diagram of the second embodiment of the system that bluetooth master slave mode of the present invention automatically switches;
Fig. 8 is the module diagram of the 3rd embodiment of the system that bluetooth master slave mode of the present invention automatically switches.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the flow chart of the first embodiment of the method that bluetooth master slave mode of the present invention automatically switches.The method that the bluetooth master slave mode that the present embodiment is mentioned automatically switches, comprises step:
Step S10, routing device judges the bluetooth mode of bluetooth equipment and the operating state of bluetooth equipment in LAN;
Include a routing device in LAN in the present embodiment, the smart machine such as mobile phone, television set can be connected on routing device by wired or wireless network.Whether routing device has Bluetooth function to the equipment be connected in LAN judges, if the equipment connected has Bluetooth function, then judge whether this bluetooth equipment opens Bluetooth function, whether is operated in bluetooth master pattern, whether has blue-teeth data to export.Such as, using mobile phone as bluetooth equipment, television set as changeable bluetooth mode smart machine, mobile phone and television set connection route equipment, routing device judges whether mobile phone opens Bluetooth function, if, then judge that mobile phone is current and whether play music, if so, then think that mobile phone is in bluetooth holotype, and work in blue-teeth data output state.
Step S20, when the bluetooth equipment connected in LAN be in bluetooth holotype and Bluetooth device operation in blue-teeth data output state time, routing device obtains the bluetooth mode of the smart machine in LAN;
When mobile phone is in bluetooth holotype and works in blue-teeth data output state, television set can be used for the audio frequency playing mobile phone output, and now television set needs bluetooth mode to switch to from equipment mode, for receiving the blue-teeth data that mobile phone exports.Therefore, routing device is by Network Capture television set bluetooth mode at this moment.
Step S30, when smart machine is in bluetooth holotype, routing device sends bluetooth mode switching command to smart machine;
If television set be in bluetooth holotype, then need to switch to bluetooth from pattern, routing device generates bluetooth mode switching command, and by network, bluetooth mode switching command is sent to television set.
Step S40, the bluetooth mode of self switches to bluetooth from pattern according to bluetooth mode switching command by smart machine.
The bluetooth mode of self, after receiving pattern switching command, switches to bluetooth from pattern by bluetooth holotype by television set, and sets up bluetooth with mobile phone and be connected, and voice data is exported to television set by mobile phone, by the loudspeaker audio plays of television set.
Be in bluetooth holotype when bluetooth equipment and work in blue-teeth data output state, when smart machine is in bluetooth from pattern, the bluetooth mode of smart machine need not be switched, after smart machine is connected with bluetooth equipment, smart machine directly can receive the blue-teeth data that bluetooth equipment exports, and play this blue-teeth data, routing device need not send bluetooth mode switching command to smart machine.
The present embodiment carries out pattern recognition by the equipment in routing device local area network and operating state judges, be in bluetooth holotype when the bluetooth equipment connecting local area network (LAN) and work in blue-teeth data output state, when smart machine is in bluetooth from pattern, routing device sends bluetooth mode switching command to smart machine, the bluetooth mode of self switches to bluetooth from pattern by smart machine, need not user's manual operation, achieve the bluetooth master slave mode of automatic switchover smart machine.
As shown in Figure 2, Fig. 2 is the flow chart of the second embodiment of the method that bluetooth master slave mode of the present invention automatically switches.The present embodiment comprises step embodiment illustrated in fig. 1, also comprises after step S40:
Step S41, whether smart machine monitoring receives the blue-teeth data coming from bluetooth equipment; If so, then step S42 is performed; If so, then step S43 is performed;
Step S42, smart machine plays the blue-teeth data received, and continues to monitor whether receive the blue-teeth data coming from bluetooth equipment;
Step S43, the bluetooth mode of self is switched to bluetooth holotype by smart machine.
The present embodiment is still smart machine with television set, mobile phone for bluetooth equipment be example, television set is switching to bluetooth after pattern, receives the voice data that mobile phone sends, and plays the audio frequency that receives.In the process, the voice data whether having mobile phone to send in television set monitoring bluetooth communication network, if having audio data transmission always, then this voice data of television for play, and continue monitoring.Terminate if the audio frequency on mobile phone is play, television set monitors in bluetooth communication network does not have transfer of data, then the bluetooth mode of self is switched to bluetooth holotype by bluetooth from pattern by television set automatically.Thus, achieve smart machine and automatically switch to bluetooth holotype by bluetooth from pattern, need not user's manual switchover.
As shown in Figure 3, Fig. 3 is the flow chart of the 3rd embodiment of the method that bluetooth master slave mode of the present invention automatically switches.The present embodiment comprises step embodiment illustrated in fig. 2, and step S43 comprises:
Step S431, smart machine starts timing;
Step S432, in timing course, when receiving blue-teeth data, smart machine timing resets; Return step S41;
Step S433, when not receiving the timing duration threshold value time of advent of blue-teeth data, the bluetooth mode of self is switched to bluetooth holotype by smart machine.
The present embodiment is still smart machine with television set, mobile phone for bluetooth equipment be example, consider that mobile phone is when audio plays, after completing last first audio frequency broadcasting, before next audio frequency of incision is play, centre has of short duration time slot, or after completing a first audio frequency and broadcasting, user during manual another first audio frequency of selection, also has a time slot on mobile phone.Therefore, in order to avoid switch blue-teeth data waiting for transmission time cause smart machine to switch bluetooth mode frequently, a time threshold can be pre-set, smart machine monitor there is no Bluetooth data transfer time, start timing.Within the scope of time threshold, smart machine still keeps bluetooth from pattern, and before the timing time threshold value time of advent, if smart machine have received blue-teeth data, then timing resets.When the timing time threshold value time of advent, if smart machine does not still receive blue-teeth data, now the bluetooth mode of self is switched to bluetooth holotype by smart machine, the data of bluetooth equipment transmission no longer etc. to be played, but plays the data of smart machine self.Thus, effectively prevent switch blue-teeth data waiting for transmission time cause smart machine to switch bluetooth mode frequently.
As shown in Figure 4, Fig. 4 is the flow chart of the 4th embodiment of the method that bluetooth master slave mode of the present invention automatically switches.The present embodiment comprises step embodiment illustrated in fig. 1, also comprises after step S10:
Step S50, when not being connected with the bluetooth equipment being in bluetooth holotype in LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, the switching control function of routing device closedown self;
Step S60, when there being new bluetooth equipment access to LAN network, routing device reopens self switching control function.
The present embodiment is still smart machine with television set, mobile phone is example for bluetooth equipment, when routing device scanning LAN, finds that the mobile phone connected does not open Bluetooth function; Although or open Bluetooth function, be in bluetooth from pattern; Although or be in bluetooth holotype, there is no audio plays or video at present, but on interface of main menu, or on interface of certain application, namely do not have blue-teeth data to export; Other equipment are not had to be in bluetooth holotype and to work in blue-teeth data output state in LAN yet.Now, in order to energy efficient, routing device can close self switching control function correlation module, is conducive to reducing electric energy and network traffics.After new bluetooth equipment access routing device, routing device reopens switching control function again, and judges the bluetooth mode of the bluetooth equipment of new access and operating state.Thus, be conducive to routing device energy efficient, and achieve routing device automatic switch bluetooth mode switching control function.
As shown in Figure 5, Fig. 5 is the flow chart of the 5th embodiment of the method that bluetooth master slave mode of the present invention automatically switches.The present embodiment comprises step embodiment illustrated in fig. 4, also comprises after step S10:
Step S71, when routing device judges that the bluetooth mode of bluetooth equipment is in bluetooth holotype, the first numerical value is defined as 1 by routing device; Otherwise, the first numerical value is defined as 0;
Step S72, when routing device judges Bluetooth device operation in blue-teeth data output state, second value is defined as 1 by routing device; Otherwise, second value is defined as 0;
Step S73, routing device, by the first numerical value and second value logical AND, obtains third value;
Step S20 comprises:
Step S21, when third value is 1, routing device judges that third value is effective, obtains the bluetooth mode of the smart machine in LAN;
Step S50 comprises:
Step S51, when third value is 0, routing device judges that third value is invalid, the switching control function of routing device closedown self.
The present embodiment judges whether the bluetooth mode needing to switch smart machine by the mode of output digit signals.Still for mobile phone as bluetooth equipment, television set as changeable bluetooth mode smart machine.When mobile phone opens Bluetooth function, the first numerical value is 1; When mobile phone closes Bluetooth function or be in bluetooth from pattern, the first numerical value is 0.When mobile phone is just at displaying video or audio frequency, second value is 1; When mobile phone is in main interface or other application interfaces, second value is 0.Routing device is by the first numerical value and second value logical AND, when only having two numerical value to be all 1, the third value exported is just 1, third value is now effective, routing device obtains the bluetooth mode of television set, and when television set is in bluetooth holotype, export bluetooth mode switching command to television set.When in two numerical value, any one is 0, the third value of output is 0, and third value is now invalid, and routing device need not control the switching of television set bluetooth mode, in order to energy efficient, now can close the bluetooth mode switching control function of routing device.Numerical approach is adopted to judge whether the bluetooth mode needing to switch smart machine, make routing device to the bluetooth mode of bluetooth equipment and the judgement of operating state convenient, can only adopt simple low and high level as judging result signal, circuit structure also only needs simple gate circuit can realize, be conducive to simplifying circuit structure.
As shown in Figure 6, Fig. 6 is the module diagram of the first embodiment of the system that bluetooth master slave mode of the present invention automatically switches.The system that the bluetooth master slave mode that the present embodiment is mentioned automatically switches, comprises routing device 100 and smart machine 200:
Routing device 100 comprises:
Scan module 110, for judging the bluetooth mode of bluetooth equipment and the operating state of bluetooth equipment in LAN; When the bluetooth equipment connected in LAN be in bluetooth holotype and Bluetooth device operation in blue-teeth data output state time, obtain the bluetooth mode of the smart machine 200 in LAN;
Switching controls module 120, for when smart machine 200 is in bluetooth holotype, sends bluetooth mode switching command to smart machine 200;
Smart machine 200 comprises:
Switch setting module 210, for switching to bluetooth from pattern the bluetooth mode of self according to bluetooth mode switching command.
Include a routing device in LAN in the present embodiment, the smart machine such as mobile phone, television set can be connected on routing device by wired or wireless network.Whether routing device has Bluetooth function to the equipment be connected in LAN judges, if the equipment connected has Bluetooth function, then judge whether this bluetooth equipment opens Bluetooth function, whether is operated in bluetooth master pattern, whether has blue-teeth data to export.Such as, using mobile phone as bluetooth equipment, television set as changeable bluetooth mode smart machine, mobile phone and television set connection route equipment, routing device judges whether mobile phone opens Bluetooth function, if, then judge that mobile phone is current and whether play music, if so, then think that mobile phone is in bluetooth holotype, and work in blue-teeth data output state.
When mobile phone is in bluetooth holotype and works in blue-teeth data output state, television set can be used for the audio frequency playing mobile phone output, and now television set needs bluetooth mode to switch to from equipment mode, for receiving the blue-teeth data that mobile phone exports.Therefore, routing device is by Network Capture television set bluetooth mode at this moment.If television set be in bluetooth holotype, then need to switch to bluetooth from pattern, routing device generates bluetooth mode switching command, and by network, bluetooth mode switching command is sent to television set.The bluetooth mode of self, after receiving pattern switching command, switches to bluetooth from pattern by bluetooth holotype by television set, and sets up bluetooth with mobile phone and be connected, and voice data is exported to television set by mobile phone, by the loudspeaker audio plays of television set.
Be in bluetooth holotype when bluetooth equipment and work in blue-teeth data output state, when smart machine is in bluetooth from pattern, the bluetooth mode of smart machine need not be switched, after smart machine is connected with bluetooth equipment, smart machine directly can receive the blue-teeth data that bluetooth equipment exports, and play this blue-teeth data, routing device need not send bluetooth mode switching command to smart machine.
The present embodiment carries out pattern recognition by the equipment in routing device local area network and operating state judges, be in bluetooth holotype when the bluetooth equipment connecting local area network (LAN) and work in blue-teeth data output state, when smart machine is in bluetooth from pattern, routing device sends bluetooth mode switching command to smart machine, the bluetooth mode of self switches to bluetooth from pattern by smart machine, need not user's manual operation, achieve the bluetooth master slave mode of automatic switchover smart machine.
As shown in Figure 7, Fig. 7 is the module diagram of the second embodiment of the system that bluetooth master slave mode of the present invention automatically switches.The present embodiment comprises module embodiment illustrated in fig. 6, and smart machine 200 also comprises:
Data monitoring module 220, for monitoring the blue-teeth data whether receiving and come from bluetooth equipment;
Playing module 230, for when data monitoring module 220 monitors the blue-teeth data coming from bluetooth equipment, plays the blue-teeth data received;
Switch setting module 210 also for, when data monitoring module 220 does not monitor the blue-teeth data coming from bluetooth equipment, the bluetooth mode of self is switched to bluetooth holotype.
The present embodiment is still smart machine with television set, mobile phone for bluetooth equipment be example, television set is switching to bluetooth after pattern, receives the voice data that mobile phone sends, and plays the audio frequency that receives.In the process, the voice data whether having mobile phone to send in television set monitoring bluetooth communication network, if having audio data transmission always, then this voice data of television for play, and continue monitoring.Terminate if the audio frequency on mobile phone is play, television set monitors in bluetooth communication network does not have transfer of data, then the bluetooth mode of self is switched to bluetooth holotype by bluetooth from pattern by television set automatically.Thus, achieve smart machine and automatically switch to bluetooth holotype by bluetooth from pattern, need not user's manual switchover.
As shown in Figure 8, Fig. 8 is the module diagram of the 3rd embodiment of the system that bluetooth master slave mode of the present invention automatically switches.The present embodiment comprises module embodiment illustrated in fig. 7, and smart machine 200 also comprises:
Timing module 240, for when data monitoring module 220 does not monitor blue-teeth data, starts timing; In timing course, when data monitoring module 220 monitors blue-teeth data, timing resets;
Switch setting module 210 also for, when not receiving the timing duration threshold value time of advent of blue-teeth data, the bluetooth mode of self is switched to bluetooth holotype.
The present embodiment is still smart machine with television set, mobile phone for bluetooth equipment be example, consider that mobile phone is when audio plays, after completing last first audio frequency broadcasting, before next audio frequency of incision is play, centre has of short duration time slot, or after completing a first audio frequency and broadcasting, user during manual another first audio frequency of selection, also has a time slot on mobile phone.Therefore, in order to avoid switch blue-teeth data waiting for transmission time cause smart machine to switch bluetooth mode frequently, a time threshold can be pre-set, smart machine monitor there is no Bluetooth data transfer time, start timing.Within the scope of time threshold, smart machine still keeps bluetooth from pattern, and before the timing time threshold value time of advent, if smart machine have received blue-teeth data, then timing resets.When the timing time threshold value time of advent, if smart machine does not still receive blue-teeth data, now the bluetooth mode of self is switched to bluetooth holotype by smart machine, the data of bluetooth equipment transmission no longer etc. to be played, but plays the data of smart machine self.Thus, effectively prevent switch blue-teeth data waiting for transmission time cause smart machine to switch bluetooth mode frequently.
Further, the scan module 110 of routing device 100 also for:
When not being connected with the bluetooth equipment being in bluetooth holotype in LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, close the switching control function of routing device 100;
When there being new bluetooth equipment access to LAN network, reopen the switching control function of routing device 100.
The present embodiment is still smart machine with television set, mobile phone is example for bluetooth equipment, when routing device scanning LAN, finds that the mobile phone connected does not open Bluetooth function; Although or open Bluetooth function, be in bluetooth from pattern; Although or be in bluetooth holotype, there is no audio plays or video at present, but on interface of main menu, or on interface of certain application, namely do not have blue-teeth data to export; Other equipment are not had to be in bluetooth holotype and to work in blue-teeth data output state in LAN yet.Now, in order to energy efficient, routing device can close self switching control function correlation module, is conducive to reducing electric energy and network traffics.After new bluetooth equipment access routing device, routing device reopens switching control function again, and judges the bluetooth mode of the bluetooth equipment of new access and operating state.Thus, be conducive to routing device energy efficient, and achieve routing device automatic switch bluetooth mode switching control function.
Further, the scan module 110 of routing device 100 also for:
When judging that the bluetooth mode of bluetooth equipment is in bluetooth holotype, the first numerical value is defined as 1; Otherwise, the first numerical value is defined as 0;
When judging Bluetooth device operation in blue-teeth data output state, second value is defined as 1; Otherwise, second value is defined as 0;
By the first numerical value and second value logical AND, obtain third value;
When third value is 1, judges that third value is effective, obtain the bluetooth mode of the smart machine 200 in LAN;
When third value is 0, judges that third value is invalid, close the switching control function of routing device 100.
The present embodiment judges whether the bluetooth mode needing to switch smart machine by the mode of output digit signals.Still for mobile phone as bluetooth equipment, television set as changeable bluetooth mode smart machine.When mobile phone opens Bluetooth function, the first numerical value is 1; When mobile phone closes Bluetooth function or be in bluetooth from pattern, the first numerical value is 0.When mobile phone is just at displaying video or audio frequency, second value is 1; When mobile phone is in main interface or other application interfaces, second value is 0.Routing device is by the first numerical value and second value logical AND, when only having two numerical value to be all 1, the third value exported is just 1, third value is now effective, routing device obtains the bluetooth mode of television set, and when television set is in bluetooth holotype, export bluetooth mode switching command to television set.When in two numerical value, any one is 0, the third value of output is 0, and third value is now invalid, and routing device need not control the switching of television set bluetooth mode, in order to energy efficient, now can close the bluetooth mode switching control function of routing device.Numerical approach is adopted to judge whether the bluetooth mode needing to switch smart machine, make routing device to the bluetooth mode of bluetooth equipment and the judgement of operating state convenient, can only adopt simple low and high level as judging result signal, circuit structure also only needs simple gate circuit can realize, be conducive to simplifying circuit structure.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method for bluetooth master slave mode automatic switchover, is characterized in that, comprise step:
Routing device judges the bluetooth mode of bluetooth equipment in LAN and the operating state of described bluetooth equipment;
When the bluetooth equipment connected in described LAN be in bluetooth holotype and described Bluetooth device operation in blue-teeth data output state time, described routing device obtains the bluetooth mode of the smart machine in described LAN;
When described smart machine is in bluetooth holotype, described routing device sends bluetooth mode switching command to described smart machine;
The bluetooth mode of self switches to bluetooth from pattern according to described bluetooth mode switching command by described smart machine.
2. the method for bluetooth master slave mode automatic switchover as claimed in claim 1, it is characterized in that, the bluetooth mode of self switches to bluetooth also to comprise after the step of pattern according to described bluetooth mode switching command by described smart machine:
Whether described smart machine monitoring receives the blue-teeth data coming from described bluetooth equipment;
If so, then described smart machine plays the described blue-teeth data received, and continues to monitor whether receive the blue-teeth data coming from described bluetooth equipment;
If not, then the bluetooth mode of self is switched to bluetooth holotype by described smart machine.
3. the method for bluetooth master slave mode automatic switchover as claimed in claim 2, it is characterized in that, the bluetooth mode of self switches to the step of bluetooth holotype to comprise by described smart machine:
When not receiving described blue-teeth data, described smart machine starts timing;
In timing course, when receiving described blue-teeth data, described smart machine timing resets;
When not receiving the timing duration threshold value time of advent of described blue-teeth data, the bluetooth mode of self is switched to bluetooth holotype by described smart machine.
4. the method that the bluetooth master slave mode as described in any one of claims 1 to 3 automatically switches, is characterized in that, described routing device also comprises after scanning the step of the bluetooth mode of bluetooth equipment and the operating state of described bluetooth equipment in LAN:
When not being connected with the bluetooth equipment being in bluetooth holotype in described LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, the switching control function of described routing device closedown self;
When there being new bluetooth equipment to access described LAN, described routing device reopens self switching control function.
5. the method for bluetooth master slave mode automatic switchover as claimed in claim 4, it is characterized in that, described routing device also comprises after judging the step of the bluetooth mode of bluetooth equipment in LAN and the operating state of described bluetooth equipment:
When described routing device judges that the bluetooth mode of described bluetooth equipment is in bluetooth holotype, the first numerical value is defined as 1 by described routing device; Otherwise, the first numerical value is defined as 0;
When described routing device judges described Bluetooth device operation in blue-teeth data output state, second value is defined as 1 by described routing device; Otherwise, second value is defined as 0;
Described routing device, by described first numerical value and second value logical AND, obtains third value;
The described bluetooth equipment when connecting in described LAN be in bluetooth holotype and described Bluetooth device operation when blue-teeth data output state, the step that described routing device obtains the bluetooth mode of the smart machine in described LAN comprises:
When third value is 1, described routing device judges that described third value is effective, obtains the bluetooth mode of the smart machine in described LAN;
Described when not being connected with the bluetooth equipment being in bluetooth holotype in described LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, the step that described routing device closes the switching control function of self comprises:
When third value is 0, described routing device judges that described third value is invalid, the switching control function of described routing device closedown self.
6. a system for bluetooth master slave mode automatic switchover, is characterized in that, comprise routing device and smart machine:
Described routing device comprises:
Scan module, for the operating state of the bluetooth mode and described bluetooth equipment that judge bluetooth equipment in LAN; When the bluetooth equipment connected in described LAN be in bluetooth holotype and described Bluetooth device operation in blue-teeth data output state time, obtain the bluetooth mode of the smart machine in described LAN;
Switching controls module, for when described smart machine is in bluetooth holotype, sends bluetooth mode switching command to described smart machine;
Described smart machine comprises:
Switch setting module, for switching to bluetooth from pattern the bluetooth mode of self according to described bluetooth mode switching command.
7. the system of bluetooth master slave mode automatic switchover as claimed in claim 6, it is characterized in that, described smart machine also comprises:
Data monitoring module, for monitoring the blue-teeth data whether receiving and come from described bluetooth equipment;
Playing module, in described data monitoring module monitors to when coming from the blue-teeth data of described bluetooth equipment, play the described blue-teeth data received;
Described switching setting module also for, when described data monitoring module does not monitor the blue-teeth data coming from described bluetooth equipment, the bluetooth mode of self is switched to bluetooth holotype.
8. the system of bluetooth master slave mode automatic switchover as claimed in claim 7, it is characterized in that, described smart machine also comprises:
Timing module, for when described data monitoring module does not monitor described blue-teeth data, starts timing; In timing course, when described data monitoring module monitors is to described blue-teeth data, timing resets;
Described switching setting module also for, when not receiving the timing duration threshold value time of advent of described blue-teeth data, the bluetooth mode of self is switched to bluetooth holotype.
9. the system that bluetooth master slave mode as described in any one of claim 6 to 8 automatically switches, is characterized in that, the scan module of described routing device also for:
When not being connected with the bluetooth equipment being in bluetooth holotype in described LAN, or when the bluetooth equipment being in bluetooth holotype does not work in blue-teeth data output state, close the switching control function of described routing device;
When there being new bluetooth equipment to access described LAN, reopen the switching control function of described routing device.
10. the system that automatically switches of bluetooth master slave mode as claimed in claim 9, is characterized in that, the scan module of described routing device also for:
When judging that the bluetooth mode of described bluetooth equipment is in bluetooth holotype, the first numerical value is defined as 1; Otherwise, the first numerical value is defined as 0;
When judging described Bluetooth device operation in blue-teeth data output state, second value is defined as 1; Otherwise, second value is defined as 0;
By described first numerical value and second value logical AND, obtain third value;
When third value is 1, judges that described third value is effective, obtain the bluetooth mode of the smart machine in described LAN;
When third value is 0, judges that described third value is invalid, close the switching control function of described routing device.
CN201510520189.1A 2015-08-21 2015-08-21 The method and system that bluetooth master slave mode automatically switches Active CN105120499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510520189.1A CN105120499B (en) 2015-08-21 2015-08-21 The method and system that bluetooth master slave mode automatically switches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510520189.1A CN105120499B (en) 2015-08-21 2015-08-21 The method and system that bluetooth master slave mode automatically switches

Publications (2)

Publication Number Publication Date
CN105120499A true CN105120499A (en) 2015-12-02
CN105120499B CN105120499B (en) 2019-01-01

Family

ID=54668325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510520189.1A Active CN105120499B (en) 2015-08-21 2015-08-21 The method and system that bluetooth master slave mode automatically switches

Country Status (1)

Country Link
CN (1) CN105120499B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630597A (en) * 2015-12-25 2016-06-01 珠海全志科技股份有限公司 Android-based A2DP mode dynamical switching method, system and apparatus
CN105763936A (en) * 2016-04-19 2016-07-13 深圳市酷开网络科技有限公司 Method and apparatus for playing audio
CN106054658A (en) * 2016-08-09 2016-10-26 广东美的制冷设备有限公司 Linkage control method, linkage control system and intelligent wearable equipment
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107529125A (en) * 2016-06-20 2017-12-29 佛山市顺德区美的电热电器制造有限公司 Equipment communication method and communicator
CN107592628A (en) * 2016-07-08 2018-01-16 中国电信股份有限公司 For the method for switching working mode, Bluetooth gateway and system
WO2018064867A1 (en) * 2016-10-09 2018-04-12 广州视源电子科技股份有限公司 Duration recording method, bluetooth slave device and duration recording system
CN111182659A (en) * 2019-12-16 2020-05-19 深圳市共进电子股份有限公司 Mode switching method and mode switching device of Mesh equipment and Mesh equipment
CN111436043A (en) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 Communication method, device, equipment and system of double-wireless Bluetooth communication network
CN113099429A (en) * 2021-03-06 2021-07-09 深圳市智之祺科技有限公司 Bluetooth master-slave mode switching system and method based on Android platform
CN113438638A (en) * 2021-07-07 2021-09-24 深圳市汇顶科技股份有限公司 Communication control method and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1435954A (en) * 2002-01-24 2003-08-13 三星电子株式会社 Blue tooth system and method capable of communicating in distributed network
US20060072525A1 (en) * 2004-09-23 2006-04-06 Jason Hillyard Method and system for role management for complex bluetooth® devices
CN101114846A (en) * 2006-07-28 2008-01-30 技嘉科技股份有限公司 Blue tooth wireless multimedia transmission apparatus and system and method
CN103442283A (en) * 2013-08-20 2013-12-11 深圳Tcl新技术有限公司 Remote control method and device based on wireless connected role switching

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1435954A (en) * 2002-01-24 2003-08-13 三星电子株式会社 Blue tooth system and method capable of communicating in distributed network
US20060072525A1 (en) * 2004-09-23 2006-04-06 Jason Hillyard Method and system for role management for complex bluetooth® devices
CN101114846A (en) * 2006-07-28 2008-01-30 技嘉科技股份有限公司 Blue tooth wireless multimedia transmission apparatus and system and method
CN103442283A (en) * 2013-08-20 2013-12-11 深圳Tcl新技术有限公司 Remote control method and device based on wireless connected role switching

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630597B (en) * 2015-12-25 2019-01-18 珠海全志科技股份有限公司 A kind of A2DP mode dynamic switching method, system and device based on Android
CN105630597A (en) * 2015-12-25 2016-06-01 珠海全志科技股份有限公司 Android-based A2DP mode dynamical switching method, system and apparatus
CN105763936A (en) * 2016-04-19 2016-07-13 深圳市酷开网络科技有限公司 Method and apparatus for playing audio
CN105763936B (en) * 2016-04-19 2019-05-31 深圳市酷开网络科技有限公司 Play the method and device of audio
CN107529125B (en) * 2016-06-20 2021-05-25 佛山市顺德区美的电热电器制造有限公司 Bluetooth device communication method and communication device
CN107529125A (en) * 2016-06-20 2017-12-29 佛山市顺德区美的电热电器制造有限公司 Equipment communication method and communicator
CN107592628B (en) * 2016-07-08 2020-11-24 中国电信股份有限公司 Method, Bluetooth gateway and system for switching working modes
CN107592628A (en) * 2016-07-08 2018-01-16 中国电信股份有限公司 For the method for switching working mode, Bluetooth gateway and system
CN106054658B (en) * 2016-08-09 2019-09-13 广东美的制冷设备有限公司 Inter-linked controlling method, coordinated control system and intelligent wearable device
CN106054658A (en) * 2016-08-09 2016-10-26 广东美的制冷设备有限公司 Linkage control method, linkage control system and intelligent wearable equipment
WO2018064867A1 (en) * 2016-10-09 2018-04-12 广州视源电子科技股份有限公司 Duration recording method, bluetooth slave device and duration recording system
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system
CN111436043A (en) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 Communication method, device, equipment and system of double-wireless Bluetooth communication network
CN111182659A (en) * 2019-12-16 2020-05-19 深圳市共进电子股份有限公司 Mode switching method and mode switching device of Mesh equipment and Mesh equipment
CN111182659B (en) * 2019-12-16 2023-04-07 深圳市共进电子股份有限公司 Mode switching method and mode switching device of Mesh equipment and Mesh equipment
CN113099429A (en) * 2021-03-06 2021-07-09 深圳市智之祺科技有限公司 Bluetooth master-slave mode switching system and method based on Android platform
CN113099429B (en) * 2021-03-06 2023-06-27 深圳市智之祺科技有限公司 Bluetooth master-slave mode switching system and method based on Android platform
CN113438638A (en) * 2021-07-07 2021-09-24 深圳市汇顶科技股份有限公司 Communication control method and electronic device
CN113438638B (en) * 2021-07-07 2023-07-28 深圳市汇顶科技股份有限公司 Communication control method and electronic equipment

Also Published As

Publication number Publication date
CN105120499B (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN105120499A (en) Bluetooth master-slave mode automatic switching method and system
CN106954115A (en) A kind of apparatus control method and device
CN103118191B (en) Using control method and mobile terminal for iPhone wire control earphone
KR20190019179A (en) How to manage Bluetooth connections, master Bluetooth devices, and devices
CN103731707A (en) Method and system for controlling voice input of intelligent television end of mobile terminal
CN103927015B (en) A kind of wireless input-output system and its implementation towards multiple terminals
CN103002379A (en) Sound reproducing device and sound reproducing method
WO2021017156A1 (en) Method for connecting remote control device and host
CN105100330A (en) Method and mobile terminal for optimizing equipment sound effect
CN102945010A (en) Method and device for realizing automatic switching of sound source
CN202998373U (en) Audio and video equipment intelligent power supply management system
CN102623041A (en) Music player and method for automatically adjusting audio output of music player
CN106851488A (en) The control method of audio output, device and circuit
CN103634640A (en) Method and system for controlling voice input of smart television terminal by using mobile terminal equipment
CN105357555A (en) Remote control method, remote control equipment and remote control system
CN103870166A (en) Mode switching method and device
CN112689172B (en) Program playing method and device, set top box and storage medium
US10503242B2 (en) Power supply method, apparatus, and system
CN103685708A (en) Terminal device and control method thereof
CN217643731U (en) Dual-mode wireless sound production device or wireless earphone or wireless sound box intelligent switching system
CN102571510B (en) Communication system and method based on portable mobile terminal
CN111988693A (en) Earphone control method and system based on earphone charging box and readable storage medium
CN103856625B (en) Control device and the wireless communication terminal of doubleway output audio frequency
CN215897982U (en) Wireless earphone and circuit thereof, wireless earphone assembly
CN105182852A (en) Intelligent sound source switching device and switching method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant