CN105207862A - Indoor networking method and apparatus of earphone - Google Patents
Indoor networking method and apparatus of earphone Download PDFInfo
- Publication number
- CN105207862A CN105207862A CN201510540968.8A CN201510540968A CN105207862A CN 105207862 A CN105207862 A CN 105207862A CN 201510540968 A CN201510540968 A CN 201510540968A CN 105207862 A CN105207862 A CN 105207862A
- Authority
- CN
- China
- Prior art keywords
- address
- earphone
- response message
- indoor
- address table
- 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
Links
Landscapes
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention, which is suitable for the mobile social field, provides an indoor networking method and apparatus of an earphone. The method comprises: an indoor networking request containing an address is sent; scanning is carried out to determine whether an indoor networking request sent by another earphone is received; when the indoor networking request sent by the earphone is received, first response information containing the address is sent to the earphone; scanning is carried out to determine whether second response information containing the address of the earphone is received; if so, the address of the second response information is written into an embedded address list; and according to the address and an address in the address list, an audio communication channel shared with a plurality of earphones by the earphone is established. With the method and apparatus, users wearing different earphones can carry out voice conversation freely, thereby saving communication time and improving the communication efficiency.
Description
Technical field
The invention belongs to mobile social field, particularly relate to the indoor network-building method of a kind of earphone and device.
Background technology
The member of family, office or certain group inside carry out respective movable time, need interim information interchange of short duration each other toward contact.Especially have on separately earphone play games, see video, carry out Internet phone-calling etc. movable time.
But existing earphone cannot networking in indoor, cannot share an audio communication channel, be unfavorable for that the user of wear headphones links up in time, reduce communication efficiency.Its reason is, of short duration information interchange in these cases generally adopts: directly interrupt the ongoing activity of the other side, to modes such as the other side transfer immediate news.Front a kind of mode affects the live and work of the other side, and has not convenient property.Rear a kind of mode then causes knowing whether the other side notices instant message timely.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of earphone indoor network-building method, and being intended to solve existing earphone cannot networking in indoor, cannot share an audio communication channel, be unfavorable for that the user of wear headphones links up in time, reduce communication efficiency.
The embodiment of the present invention is achieved in that the indoor network-building method of a kind of earphone, comprising:
Send the indoor networking request comprising Self address;
Whether scanning receives the indoor networking request that other earphone sends;
When receiving the indoor networking request that described earphone sends, send the first response message comprising Self address to described earphone;
Whether scanning receives the second response message of the address comprising described earphone;
When receiving described second response message, then the address of described second response message is write in embedded address table;
According to the address in described Self address and described address table, set up the audio communication channel that self and multiple described earphone share.
Another object of the embodiment of the present invention is to provide a kind of earphone indoor network device, comprising:
Indoor networking request sending module, for sending the indoor networking request comprising Self address;
Indoor networking request receiving module, for scanning the indoor networking request whether receiving other earphone and send;
First response message sending module, for when receiving the indoor networking request that described earphone sends, sends the first response message comprising Self address to described earphone;
Second response message receiver module, for scanning the second response message whether receiving the address comprising described earphone;
Address writing module, for when receiving described second response message, then writes in embedded address table by the address of described second response message;
Audio communication channel sets up module, for according to the address in described Self address and described address table, sets up the audio communication channel that self and multiple described earphone share.
In embodiments of the present invention, according to the address in described Self address and described address table, set up the audio communication channel that self and multiple described earphone share, solving existing earphone cannot networking in indoor, an audio communication channel cannot be shared, be unfavorable for that the user of wear headphones links up in time, reduce communication efficiency.Provide a kind of indoor Networking Design scheme of earphone of self-organizing, the user making to wear different earphone can free voice, save time for communication, improve communication efficiency.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the indoor network-building method of earphone that the embodiment of the present invention provides;
Fig. 2 is the realization flow figure of the indoor network-building method step S105 of earphone that the embodiment of the present invention provides;
Fig. 3 is the realization flow figure of networking request in the stopping dispatcher's office that provides of the embodiment of the present invention;
Fig. 4 is the realization flow figure emptying address table that the embodiment of the present invention provides;
Fig. 5 is the structured flowchart of the indoor network device of earphone that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
embodiment one
Fig. 1 is the realization flow figure of the indoor network-building method of earphone that the embodiment of the present invention provides, and details are as follows:
S101, sends the indoor networking request comprising Self address;
Obtaining the startup thread of networking model, when getting startup thread, sending the indoor networking request comprising Self address.
S102, whether scanning receives the indoor networking request that other earphone sends;
S103, when receiving the indoor networking request that described earphone sends, sends the first response message comprising Self address to described earphone;
S104, whether scanning receives the second response message of the address comprising described earphone;
S105, when receiving described second response message, then writes in embedded address table by the address of described second response message;
S106, according to the address in described Self address and described address table, sets up the audio communication channel that self and multiple described earphone share.
Wherein, the address of described Self address and other earphone is lan address.
Wherein, described S106 is specially:
According to the address in described Self address and described address table, adopt the network schemer of WLAN (wireless local area network), set up self audio communication channel shared with other earphone;
Send voice to all earphones in network, or receive the voice of earphone transmission arbitrarily in network.
Wherein, the mode of WLAN (wireless local area network) is WIFI network pattern
In embodiments of the present invention, provide a kind of indoor Networking Design scheme of earphone of self-organizing, the user making to wear different earphone can free voice, save time for communication, improve communication efficiency.
embodiment two
Fig. 2 is the realization flow figure of the indoor network-building method step S105 of earphone that the embodiment of the present invention provides, and details are as follows:
In step s 201, whether detect the same time receives multiple described second response message;
In step S202, when receiving multiple described second response message, then the address of multiple described second response message is all cached in embedded address table;
In step S203, in described address table, the address of buffer memory sends confirmation;
In step S204, when receiving after described in any one, earphone returns confirmation, the source address of described confirmation is write in embedded address table.
embodiment three
Fig. 3 is the realization flow figure of networking request in the stopping dispatcher's office that provides of the embodiment of the present invention, and details are as follows:
In step S301, the quantity of earphone in setting networking;
In step s 302, when the number of address in described address table reaches after described quantity subtracts the value of, stop sending the indoor networking request comprising Self address.
embodiment four
The embodiment of the present invention describes the completed realization flow of instruction address table, and details are as follows:
Use indicator light or voice, indicate described address table to complete.
Indicator light can be used to show the light preset, indicate described address table to complete, or, the completed information of address table described in voice broadcast can be used.
embodiment five
Fig. 4 is the realization flow figure emptying address table that the embodiment of the present invention provides, and details are as follows:
In step S401, reading system time and configuration empty the time limit, judge whether empty the time limit arrives;
In step S402, described empty the time limit arrive time, empty described address table, in described address table, re-write the address of described earphone.
In embodiments of the present invention, re-write the address of earphone, the situation avoiding the address failure of earphone occurs, is convenient to quickly networking.
embodiment six
The embodiment of the present invention describes in actual applications, the realization flow of indoor earphone networking, and details are as follows:
In networking, the quantity of earphone is preset.By the quantity of earphone in button on earphone increase and decrease networking, this quantity should be the earphone number that MANET terminates in rear network.
Earphone enrollment mode.All earphones of need registering are made to enter enrollment mode by operation.
Earphone ceaselessly sends the solicited message comprising Self address, and whether scanning has the solicited message of other earphones that can collect.
When receiving the solicited message of other earphones arbitrarily, then send the response message comprising Self address to this earphone.
When receiving the response of other earphones arbitrarily, then the address in response message is kept in built-in address table.If receive multiple response simultaneously, then multiple address is all saved in built-in address table.After address into address table, in address table, the address of new write sends confirmation.
When after the confirmation receiving any earphone, the source address of confirmation is added in embedded address table.
When the number of address in address table in earphone reaches after predetermined number subtracts one, earphone has been registered, and earphone no longer continues transmission request information, but still can accept the solicited message of other earphones and send response message.And use indicator light or this state completing address table of voice message instruction.
Need all to complete after earphone registered at all earphones, manually make earphone enter normal using forestland.
After entering normal using forestland, audio communication channel set up by all earphones in earphone and address list.In this way, each earphone is duplexing, both can send audio frequency to all earphones in network, and also can accept the audio frequency that in network, any earphone sends.
By operating the address table emptied in earphone, and address registration can be re-started.
embodiment seven
Fig. 5 is the structured flowchart of the indoor network device of earphone that the embodiment of the present invention provides, and this device can run on to be possessed in the earphone of microphone.For convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 5, the indoor network device of this earphone, comprising:
Indoor networking request sending module 51, for sending the indoor networking request comprising Self address;
Indoor networking request receiving module 52, for scanning the indoor networking request whether receiving other earphone and send;
First response message sending module 53, for when receiving the indoor networking request that described earphone sends, sends the first response message comprising Self address to described earphone;
Second response message receiver module 54, for scanning the second response message whether receiving the address comprising described earphone;
Address writing module 55, for when receiving described second response message, then writes in embedded address table by the address of described second response message;
Audio communication channel sets up module 56, for according to the address in described Self address and described address table, sets up the audio communication channel that self and multiple described earphone share.
As a kind of implementation of the present embodiment, in the indoor network device of described earphone, described address writing module comprises:
Whether the second response message detecting unit, receive multiple described second response message for detecting the same time;
Address caching unit, for when receiving multiple described second response message, is then all cached in embedded address table by the address of multiple described second response message;
Confirmation transmitting element, sends confirmation for the address to buffer memory in described address table;
Source address writing unit, for when receiving after described in any one, earphone returns confirmation, writes the source address of described confirmation in embedded address table.
As a kind of implementation of the present embodiment, in the indoor network device of described earphone, also comprise:
Setting module, for setting the quantity of earphone in networking;
Stopping sending module, for reaching when the number of address in described address table after described quantity subtracts the value of, stopping transmission comprising the indoor networking request of Self address.
As a kind of implementation of the present embodiment, in the indoor network device of described earphone, also comprise:
Indicating module, for using indicator light or voice, indicates described address table to complete.
As a kind of implementation of the present embodiment, in the indoor network device of described earphone, also comprise:
Judge module, empties the time limit for reading system time and configuration, judges whether empty the time limit arrives;
Re-write module, for described empty the time limit arrive time, empty described address table, in described address table, re-write the address of described earphone.
The device that the embodiment of the present invention provides can be applied in the embodiment of the method for aforementioned correspondence, and details, see the description of above-described embodiment, do not repeat them here.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realizes.Described program can be stored in read/write memory medium, described storage medium, as random asccess memory, flash memory, read-only memory, programmable read only memory, electrically erasable programmable memory, register etc.This storage medium is positioned at memory, and processor reads the information in memory, performs the method described in each embodiment of the present invention in conjunction with its hardware.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (10)
1. the indoor network-building method of earphone, is characterized in that, comprising:
Send the indoor networking request comprising Self address;
Whether scanning receives the indoor networking request that other earphone sends;
When receiving the indoor networking request that described earphone sends, send the first response message comprising Self address to described earphone;
Whether scanning receives the second response message of the address comprising described earphone;
When receiving described second response message, then the address of described second response message is write in embedded address table;
According to the address in described Self address and described address table, set up the audio communication channel that self and multiple described earphone share.
2. the indoor network-building method of earphone as claimed in claim 1, is characterized in that, described when receiving described second response message, then write in embedded address table the address of described second response message, be specially:
Whether detect the same time receives multiple described second response message;
When receiving multiple described second response message, then the address of multiple described second response message is all cached in embedded address table;
In described address table, the address of buffer memory sends confirmation;
When receiving after described in any one, earphone returns confirmation, the source address of described confirmation is write in embedded address table.
3. the indoor network-building method of earphone as claimed in claim 1, is characterized in that, described when receiving described second response message, then after writing in embedded address table by the address of described second response message, the indoor network-building method of described earphone, also comprises:
The quantity of earphone in setting networking;
When the number of address in described address table reaches after described quantity subtracts the value of, stop sending the indoor networking request comprising Self address.
4. the indoor network-building method of earphone as claimed in claim 1, is characterized in that, after the described confirmation when receiving any earphone, after the source address of described confirmation being write in embedded address table, the indoor network-building method of described earphone, also comprises:
Use indicator light or voice, indicate described address table to complete.
5. the indoor network-building method of earphone as claimed in claim 1, is characterized in that, the indoor network-building method of described earphone, also comprises:
Reading system time and configuration empty the time limit, judge whether empty the time limit arrives;
Described empty the time limit arrive time, empty described address table, in described address table, re-write the address of described earphone.
6. the indoor network device of earphone, is characterized in that, comprising:
Indoor networking request sending module, for sending the indoor networking request comprising Self address;
Indoor networking request receiving module, for scanning the indoor networking request whether receiving other earphone and send;
First response message sending module, for when receiving the indoor networking request that described earphone sends, sends the first response message comprising Self address to described earphone;
Second response message receiver module, for scanning the second response message whether receiving the address comprising described earphone;
Address writing module, for when receiving described second response message, then writes in embedded address table by the address of described second response message;
Audio communication channel sets up module, for according to the address in described Self address and described address table, sets up the audio communication channel that self and multiple described earphone share.
7. the indoor network device of earphone as claimed in claim 6, it is characterized in that, described address writing module comprises:
Whether the second response message detecting unit, receive multiple described second response message for detecting the same time;
Address caching unit, for when receiving multiple described second response message, is then all cached in embedded address table by the address of multiple described second response message;
Confirmation transmitting element, sends confirmation for the address to buffer memory in described address table;
Source address writing unit, for when receiving after described in any one, earphone returns confirmation, writes the source address of described confirmation in embedded address table.
8. the indoor network device of earphone as claimed in claim 6, it is characterized in that, the indoor network device of described earphone, also comprises:
Setting module, for setting the quantity of earphone in networking;
Stopping sending module, for reaching when the number of address in described address table after described quantity subtracts the value of, stopping transmission comprising the indoor networking request of Self address.
9. the indoor network device of earphone as claimed in claim 6, it is characterized in that, the indoor network device of described earphone, also comprises:
Indicating module, for using indicator light or voice, indicates described address table to complete.
10. the indoor network device of earphone as claimed in claim 6, it is characterized in that, the indoor networking module of described earphone, also comprises:
Judge module, empties the time limit for reading system time and configuration, judges whether empty the time limit arrives;
Re-write module, for described empty the time limit arrive time, empty described address table, in described address table, re-write the address of described earphone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510540968.8A CN105207862B (en) | 2015-08-28 | 2015-08-28 | Network-building method and device in a kind of earphone room |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510540968.8A CN105207862B (en) | 2015-08-28 | 2015-08-28 | Network-building method and device in a kind of earphone room |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105207862A true CN105207862A (en) | 2015-12-30 |
CN105207862B CN105207862B (en) | 2019-01-04 |
Family
ID=54955312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510540968.8A Active CN105207862B (en) | 2015-08-28 | 2015-08-28 | Network-building method and device in a kind of earphone room |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105207862B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105722020A (en) * | 2016-03-04 | 2016-06-29 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent earphone, intelligent earphone system and communication method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102487517A (en) * | 2010-12-06 | 2012-06-06 | 国民技术股份有限公司 | Wireless networking method and system based on 2.4G RFID (radio frequency identification) wireless communication device |
CN104333888A (en) * | 2014-10-27 | 2015-02-04 | 中央民族大学 | Self-organized instant messaging method based on Wi-Fi direct connection |
CN104639409A (en) * | 2015-02-13 | 2015-05-20 | 广东欧珀移动通信有限公司 | Method and device for automatically adding sound box to sound box ad-hoc network |
CN104811237A (en) * | 2014-01-29 | 2015-07-29 | 上海崇立文化传播有限公司 | Portable short-distance communication terminal and short-distance communication system |
-
2015
- 2015-08-28 CN CN201510540968.8A patent/CN105207862B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102487517A (en) * | 2010-12-06 | 2012-06-06 | 国民技术股份有限公司 | Wireless networking method and system based on 2.4G RFID (radio frequency identification) wireless communication device |
CN104811237A (en) * | 2014-01-29 | 2015-07-29 | 上海崇立文化传播有限公司 | Portable short-distance communication terminal and short-distance communication system |
CN104333888A (en) * | 2014-10-27 | 2015-02-04 | 中央民族大学 | Self-organized instant messaging method based on Wi-Fi direct connection |
CN104639409A (en) * | 2015-02-13 | 2015-05-20 | 广东欧珀移动通信有限公司 | Method and device for automatically adding sound box to sound box ad-hoc network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105722020A (en) * | 2016-03-04 | 2016-06-29 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent earphone, intelligent earphone system and communication method |
CN105722020B (en) * | 2016-03-04 | 2020-03-17 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent earphone, intelligent earphone system and communication method |
Also Published As
Publication number | Publication date |
---|---|
CN105207862B (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020228497A1 (en) | Network connection control method, terminal and storage medium | |
US11202334B2 (en) | Detecting conditions to trigger role switch | |
US11737018B2 (en) | Multi-link hibernation mode for WLAN | |
Friedman et al. | On power and throughput tradeoffs of wifi and bluetooth in smartphones | |
CN106162777B (en) | Relay node switching method and system | |
CN105657719A (en) | Sensor gateway | |
TWI556677B (en) | Dynamically adapting wireless communication | |
WO2018058686A1 (en) | Handover method, apparatus and system | |
WO2018126512A1 (en) | Paging signal sending method and paging signal receiving method, apparatus and system | |
US20210160742A1 (en) | Selective multi-link operation in wlan | |
CN103024680A (en) | Activation method for semi-static scheduling and trunking communication system based on semi-static scheduling | |
WO2020029147A1 (en) | Method and device for transmitting harq feedback information, base station, and terminal | |
US12058614B2 (en) | Coordinated multi-role access-point operation | |
WO2021217511A1 (en) | Communication method and apparatus | |
WO2022141645A9 (en) | Resource determination method, apparatus and device, and storage medium, chip and program product | |
TW201334461A (en) | Connection dormancy method and wireless communication device and computer readalbe recording medium | |
TW201414238A (en) | Method and apparatus for managing information in a network | |
CN113938990A (en) | Equipment management method and communication device | |
CN106465072A (en) | Call transfer method and terminal | |
US10440621B2 (en) | Changing method of a communication mode and an electronic device supporting the same | |
WO2016161645A1 (en) | Antenna configuration method and terminal | |
CN105207862A (en) | Indoor networking method and apparatus of earphone | |
CN114258004A (en) | Distributed synchronized bluetooth scanning across multiple devices for faster bluetooth discovery | |
CN104205994B (en) | The device and method synchronous for mode of operation in a wireless communication system | |
CN102946402B (en) | Communication method, and bluetooth device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Longgang District of Shenzhen City, Guangdong province 518116 Ping Street Takahashi Industrial Park East Area Applicant after: SHENZHE GUANXU ELECTRONIC CO., LTD. Address before: Longgang District of Shenzhen City, Guangdong province 518116 Ping Street Takahashi Industrial Park East Area Applicant before: Shenzhen Grandsun Electronic Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |