CN110971762B - Communication frequency setting method, earphone, base and cordless communication device - Google Patents

Communication frequency setting method, earphone, base and cordless communication device Download PDF

Info

Publication number
CN110971762B
CN110971762B CN201911255276.3A CN201911255276A CN110971762B CN 110971762 B CN110971762 B CN 110971762B CN 201911255276 A CN201911255276 A CN 201911255276A CN 110971762 B CN110971762 B CN 110971762B
Authority
CN
China
Prior art keywords
communication
contact
base
gpio
earphone
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.)
Active
Application number
CN201911255276.3A
Other languages
Chinese (zh)
Other versions
CN110971762A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201911255276.3A priority Critical patent/CN110971762B/en
Publication of CN110971762A publication Critical patent/CN110971762A/en
Application granted granted Critical
Publication of CN110971762B publication Critical patent/CN110971762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/72502Cordless telephones with one base station connected to a single line
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/08Details of telephonic subscriber devices home cordless telephone systems using the DECT standard

Abstract

The invention discloses a setting method of communication frequency, an earphone, a base and a cordless communication device, comprising the following steps: when the first power supply contact detects voltage input, sending a first communication identifier of the earphone to the base through the first GPIO contact; after receiving a second communication identifier and an area identifier of the base through the first GPIO contact, storing the second communication identifier; and storing the communication frequency corresponding to the area identification so as to carry out DECT communication with the base through the communication frequency. After the earphone is placed on the base, the first GPIO contact of the earphone is conducted with the second GPIO contact of the base, the base can send the second communication identifier and the area identifier of the base to the earphone through the second GPIO contact, after the earphone receives the second communication identifier and the area identifier through the first GPIO contact, the communication frequency is obtained according to the area identifier, and DECT communication is carried out according to the obtained communication frequency.

Description

Communication frequency setting method, earphone, base and cordless communication device
Technical Field
The invention relates to the field of digital enhanced cordless communication, in particular to a communication frequency setting method, an earphone, a base and a cordless communication device.
Background
The DECT (Digital Enhanced Cordless communications) device comprises an earphone and a base, wherein data transmission is realized between the earphone and the base through DECT wireless communication, and the base interacts with a PC (personal computer) end through a USB (universal serial bus) interface.
Because the communication frequency that different areas DECT required when communicating is different, need set up the communication frequency that this area corresponds to earphone and the base that corresponds and just can communicate, then need be leaving the factory to the DECT device in different regions of selling manually write in communication frequency in advance, very loaded down with trivial details.
Disclosure of Invention
The invention mainly aims to provide a communication frequency setting method, an earphone, a base and a cordless communication device, aiming at improving the convenience of writing communication frequency into a DECT device.
In order to achieve the above object, the present invention provides a method for setting communication frequency, which is applied to an earphone of a Digital Enhanced Cordless Telecommunications (DECT) device, wherein the DECT device comprises an earphone and a base, the earphone is provided with a first power contact, a first ground contact and a first general purpose input/output (GPIO) contact, and the base is provided with a second power contact, a second ground contact and a second GPIO contact; when the earphone is placed on the base, a first power supply contact is conducted with a second power supply contact, a first grounding contact is conducted with a second grounding contact, and a first GPIO contact is conducted with a second GPIO contact, wherein the first GPIO contact is connected with a pull-down resistor, and the setting method of the communication frequency comprises the following steps:
when the first power supply contact detects voltage input, sending a first communication identifier of the earphone to the base through the first GPIO contact;
after receiving a second communication identifier and an area identifier of the base through the first GPIO contact, saving the second communication identifier;
and storing the area identification or storing the communication frequency corresponding to the area identification so as to carry out DECT communication with the base through the communication frequency corresponding to the area identification.
Optionally, the step of sending the first communication identifier of the headset to the base through the first GPIO contact when the first power contact detects the voltage input includes:
when the first power supply contact detects voltage input, acquiring a first communication identifier of the earphone;
converting the first communication identifier into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the first GPIO contact according to the pulse signal so as to transmit the first communication identification to the base.
Optionally, the step of generating a pulse signal according to the binary data includes:
acquiring a first sub-pulse signal corresponding to a preset start bit, a second sub-pulse signal corresponding to the binary data and a third sub-pulse signal corresponding to a preset end bit;
generating the pulse signal according to the first sub-pulse signal, the second sub-pulse signal and the third sub-pulse signal.
Optionally, after the step of sending the first communication identifier of the headset to the base through the first GPIO contact when the first power contact detects the voltage input, the method for setting the communication frequency further includes:
after receiving a second communication identifier and an area identifier of the base through the first GPIO contact, determining whether a prestored communication identifier is prestored in the earphone;
when a pre-stored communication identifier is stored in the earphone, deleting the pre-stored communication identifier;
and executing the step of saving the second communication identification.
In addition, in order to achieve the above object, the present invention further provides a method for setting a communication frequency, which is applied to a base of a digital enhanced cordless telecommunications DECT device, wherein the DECT device includes an earphone and a base, the earphone is provided with a first power contact, a first ground contact and a first general purpose input output GPIO contact, and the base is provided with a second power contact, a second ground contact and a second GPIO contact; when the earphone is placed on the base, a first power contact is conducted with a second power contact, a first ground contact is conducted with a second ground contact, and a first GPIO contact is conducted with a second GPIO contact, wherein the first GPIO contact is connected with a pull-down resistor, and the setting method of the communication frequency comprises the following steps:
when the voltage of the second GPIO contact is detected to be reduced, controlling the second GPIO contact to enter a data receiving mode;
after receiving the first communication identification of the earphone through the second GPIO contact, sending a second communication identification and an area identification of the base through the second GPIO contact;
and saving the first communication identifier.
Optionally, after the step of controlling the second GPIO contact to enter the data receiving mode when the voltage of the second GPIO contact is detected to decrease, the method for setting the communication frequency further includes:
after the first communication identification of the earphone is received through the second GPIO contact, a prestored communication identification is obtained;
and when the prestored communication identification is not acquired, executing the step of sending the second communication identification and the area identification of the base through the second GPIO contact.
Optionally, after the step of obtaining a pre-stored communication identifier after receiving the first communication identifier of the headset through the second GPIO contact, the method for setting a communication frequency further includes:
when the pre-stored communication identifier is obtained, comparing the pre-stored communication identifier with the first communication identifier;
and when the prestored communication identification is not matched with the first communication identification, executing the step of sending the second communication identification and the area identification of the base through the second GPIO contact.
Optionally, the step of sending the second communication identifier and the area identifier of the base through the second GPIO contact after receiving the first communication identifier of the headset through the second GPIO contact includes:
after receiving the first communication identifier of the earphone through the second GPIO contact, converting the second communication identifier and the area identifier of the base into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the second GPIO contact according to the pulse signal so as to transmit the second communication identifier and the area identifier to the earphone.
In addition, in order to achieve the above object, the present invention further provides an earphone, where the earphone includes a first power contact, a first input/output GPIO contact, and a first ground contact, the earphone further includes a first memory, a first processor, and a setting program of a communication frequency stored in the memory and operable on the processor, and the setting program of the communication frequency is executed by the processor by the setting method of the communication frequency as described above.
In addition, in order to achieve the above object, the present invention further provides a base, where the base includes a second power contact, a second input/output GPIO contact, and a second ground contact, the base further includes a second memory, a second processor, and a setting program of a communication frequency stored in the memory and operable on the processor, and the setting program of the communication frequency is executed by the processor by the setting method of the communication frequency as described above.
Furthermore, to achieve the above object, the present invention also proposes a cordless communication apparatus comprising the headset as described above and the base as described above.
According to the setting method of the communication frequency, the earphone, the base and the cordless communication device, after the earphone is placed on the base, the first GPIO contact of the earphone is conducted with the second GPIO contact of the base, the base can send the second communication identifier and the area identifier of the base to the earphone through the second GPIO contact, after the earphone receives the second communication identifier and the area identifier through the first GPIO contact, the communication frequency is obtained according to the area identifier, and DECT communication is carried out according to the obtained communication frequency.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of a headset according to the setting method of communication frequency of the present invention;
fig. 2 is a schematic diagram of a hardware architecture of a base related to the setting method of communication frequency according to the present invention;
FIG. 3 is a schematic view of the connection of the earphone to the base contacts;
fig. 4 is a schematic flow chart of a method for setting a communication frequency applied to a headset according to an exemplary embodiment of the present invention;
fig. 5 is a schematic flow chart of a setting method of communication frequency applied to a base according to an exemplary embodiment of the present invention;
fig. 6 is a schematic flow chart of a setting method of communication frequency applied to a base in an exemplary embodiment of the present invention;
fig. 7 is a schematic flow chart of a method for setting a communication frequency applied to a headset according to a third exemplary embodiment of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 to 3, fig. 1 is a schematic diagram of a hardware architecture of a headset related to a method for setting a communication frequency according to the present invention, fig. 2 is a schematic diagram of a hardware architecture of a base related to a method for setting a communication frequency according to the present invention, and fig. 3 is a schematic diagram of a connection between a headset and a base contact.
As shown in fig. 1, the headset may include a first power contact 110, a first GPIO contact 120, a first ground contact 130, a first processor 140, and a first memory 150, where the first memory 150 may store a communication frequency setting program and an operating system, may also store a first communication identifier of the headset, a second communication identifier of the base, and a communication frequency, and the first GPIO contact 120 may be connected to a pull-down resistor. In this embodiment, the earphone may further include a speaker and a microphone.
As shown in fig. 2, the base may include a second power contact 210, a second GPIO contact 220, a second ground contact 230, a second processor 240, and a second memory 250, the first memory 150 may store a setting program and an operating system of a communication frequency, and may also store a first communication identifier of the headset, a second communication identifier of the base, and a region code, the second power contact 210 may be connected to a power input device of the base, and the power input device may be a battery or a power input interface, and the power input interface receives power input from an external device.
Referring to fig. 3, when the earphone is placed on the base, the first power contact 110 is conducted with the second power contact 210, the first GPIO contact 120 is conducted with the second GPIO contact 220, and the first ground contact 130 is conducted with the second ground contact 230, because the second power contact 210 is connected with a power supply, when the first power contact 110 is conducted with the second power contact 210, the first power contact 110 will detect a voltage input, and when the earphone detects that the voltage input exists in the first power contact 110, it is determined that the earphone is placed on the base, that is, at this time, the first GPIO contact 120 is considered to be conducted with the second GPIO contact 220, and at this time, the earphone and the base can communicate through the first GPIO contact 120 and the second GPIO contact 220; when the first GPIO contact 120 is connected to the second GPIO contact 220, since the first GPIO contact 120 is connected to the pull-down resistor, the voltage of the second GPIO contact 220 is pulled low, and when the base detects that the voltage of the second GPIO contact 220 decreases, it is determined that the first GPIO contact 120 and the second GPIO contact 220 are connected, and at this time, communication can be performed through the first GPIO contact 120 and the second GPIO contact 220.
Corresponding to fig. 1 and 2 above, the following steps are implemented when the setting program of the communication frequency in the first memory 150 is executed by the processor:
when the first power supply contact detects voltage input, sending a first communication identifier of the earphone to the base through the first GPIO contact;
after receiving a second communication identifier and an area identifier of the base through the first GPIO contact, storing the second communication identifier;
and storing the communication frequency corresponding to the area identification so as to carry out DECT communication with the base through the communication frequency.
The setting program of the communication frequency in the second memory 250, when executed by the processor, implements the steps of:
when the first power supply contact detects voltage input, acquiring a first communication identifier of the earphone;
converting the first communication identifier into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the first GPIO contact according to the pulse signal so as to transmit the first communication identification to the base.
Example one
Referring to fig. 4, fig. 4 is a flowchart illustrating a first exemplary embodiment of a method for setting a communication frequency according to the present invention. In this embodiment, when the method for setting a communication frequency is applied to a headset, the method for setting a communication frequency includes the steps of:
step S10, when the first power contact detects voltage input, sending a first communication identifier of the earphone to the base through the first GPIO contact;
step S20, after receiving the second communication identification and the area identification of the base through the first GPIO contact, saving the second communication identification;
and step S30, storing the area identification or storing the communication frequency corresponding to the area identification, so as to perform DECT communication with the base through the communication frequency corresponding to the area identification.
Correspondingly, referring to fig. 5, in the present embodiment, when the method for setting the communication frequency is applied to the base, the method for setting the communication frequency includes the following steps:
step S40, when the voltage of the second GPIO contact is detected to be reduced, the second GPIO contact is controlled to enter a data receiving mode;
step S50, after receiving the first communication identification of the earphone through the second GPIO contact, sending a second communication identification and an area identification of the base through the second GPIO contact;
and step S60, saving the first communication identifier.
Because the second GPIO contact of base is connected with the power, when the first GPIO contact of earphone and the second GPIO contact of base are connected, voltage input can be detected to first GPIO contact, and earphone accessible first GPIO contact sends the first communication sign of earphone to the base this moment, and the level of accessible adjustment first GPIO contact carries out data transmission, step S10 includes promptly:
when the first power supply contact detects voltage input, acquiring a first communication identifier of the earphone;
converting the first communication identifier into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the first GPIO contact according to the pulse signal so as to transmit the first communication identification to the base.
The first communication flag in this embodiment may be an RFPI (Radio Fixed Part Identity) flag, which may be converted into binary data composed of 0 and 1, different level signals may be set for 0 and 1 (for example, the level signal set for 0 may be 10ms low, 5ms high, the level signal set for 1 may be 10ms low and 20ms high), forming a pulse signal according to the binary data, outputting the pulse signal through a first GPIO contact, the output of the pulse signal can be realized by adjusting the level of the first GPIO contact, because the second GPIO contact on the base is conducted with the first GPIO contact of the earphone, the level change of the first GPIO contact may be detected through the second GPIO contact, which generates binary data based on the detected level change and converts the binary data into the first communication identification.
The method comprises the steps that a first communication transmission identifier is identity information of an earphone, a second communication transmission identifier is identity information of a base, when the earphone receives first data sent by the base, the communication transmission identifier in the first data is obtained, and when the obtained communication transmission identifier is matched with a pre-stored second communication transmission identifier, the received first data is processed; and the base is similar to the above, when the base receives second data sent by the earphone, the communication transmission identifier in the second data is obtained, and when the obtained communication transmission identifier is matched with the pre-stored first communication transmission identifier, the received second data is processed.
It is understood that, in order to facilitate the setting of the base identification data, the pulse signals corresponding to the start bit and the end bit are set, and the start bit and the end bit of the data transmission are identified according to the pulse signals corresponding to the start bit and the end bit, that is, the step of generating the pulse signals according to the binary data includes:
acquiring a first sub-pulse signal corresponding to a preset start bit, a second sub-pulse signal corresponding to the binary data and a third sub-pulse signal corresponding to a preset end bit;
generating the pulse signal according to the first sub-pulse signal, the second sub-pulse signal and the third sub-pulse signal.
The pulse signal can be formed by sequentially splicing a first sub-pulse signal, a second sub-pulse signal and a third sub-pulse signal, or directly comprises the first sub-pulse signal, the second sub-pulse signal and the third sub-pulse signal in the pulse signal, and when the pulse signal is sent, the first sub-pulse signal, the second sub-pulse signal and the third sub-pulse signal can be sequentially sent.
Correspondingly, the steps between the step S40 and the step S50 include:
after the second GPIO contact detects the first sub-pulse signal, the level of the second GPIO contact is detected, a second sub-pulse signal is obtained according to the detected level, and binary data are obtained through conversion according to the second sub-pulse signal;
acquiring a first communication identifier according to binary data;
and when the second sub-pulse signal is received, converting the state of the second GPIO contact into an initial state.
The first sub-pulse signal may be 80ms low and 110ms high, and the third sub-pulse signal may be 30ms low.
It is understood that the manner in which the cradle transmits the second communication identifier and the area identifier through the second GPIO contact may refer to the manner in which the headset transmits the first communication identifier through the first GPIO contact, that is, step S50 includes:
after receiving the first communication identifier of the earphone through the second GPIO contact, converting the second communication identifier and the area identifier of the base into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the second GPIO contact according to the pulse signal so as to transmit the second communication identifier and the area identifier to the earphone.
The area identifier in this embodiment may be an area code or an area label, a first sub-identifier may be set for different countries, and an area identifier may be formed according to the first sub-identifier and a second sub-identifier for a regional device corresponding to a country.
In the technical scheme disclosed in this embodiment, after the earphone is placed on the base, the first GPIO contact of the earphone is conducted with the second GPIO contact of the base, the base can transmit the second communication identifier and the area identifier to the earphone through the second GPIO contact, after the earphone receives the second communication identifier and the area identifier through the first GPIO contact, the communication frequency is obtained according to the area identifier, and DECT communication is performed according to the obtained communication frequency.
Example two
Referring to fig. 6, a second embodiment of the setting method of communication frequency according to the present invention is proposed based on the first embodiment, and in this embodiment, when the setting method of communication frequency is applied to a base, the setting method of communication frequency includes:
step S40, when the voltage of the second GPIO contact is detected to be reduced, the second GPIO contact is controlled to enter a data receiving mode
Step S70, after receiving the first communication identifier of the earphone through the second GPIO contact, obtaining a pre-stored communication identifier;
step S80, when the pre-stored communication identification is not obtained, sending a second communication identification and an area identification of the base through the second GPIO contact;
and step S60, saving the first communication identifier.
When the prestored communication identification is not extracted, the base and the earphone are connected for the first time, and when the base and the earphone are connected for the first time, pairing can be directly carried out, namely, the second communication identification and the area identification of the base are sent through the second GPIO contact; when the communication identifier is extracted, indicating that the headset may be paired with the cradle, step S70 is followed by:
when the pre-stored communication identifier is obtained, comparing the pre-stored communication identifier with the first communication identifier;
and when the prestored communication identification is not matched with the first communication identification, executing the step of sending the second communication identification and the area identification of the base through the second GPIO contact.
The first communication identification and the prestored communication identification of the earphone can be compared, when the first communication identification is not matched with the prestored communication identification, the earphone is indicated to be paired for the first time, and the second communication identification and the area identification of the base can be sent through the second GPIO contact; however, since the base can only establish connection with a specific number of earphones, the number of the pre-stored communication identifiers can be acquired when the first communication identifier is not matched with the pre-stored communication identifiers, the step of sending the second communication identifier and the area identifier of the base through the second GPIO contact is performed when the number is smaller than the preset number, and the communication identifier with the earliest storage time is deleted and the second communication identifier and the area identifier of the base are sent through the second GPIO contact when the number is equal to the preset number.
In the technical scheme disclosed in this embodiment, when the pre-stored communication identifier is matched with the first communication identifier, it is indicated that the base and the headset are already paired, the second communication identifier and the area identifier are not sent to the headset, and when the second communication identifier and the area identifier are not detected by the headset within a preset time interval, the headset exits from the current pairing, that is, the GPIO interface is controlled to switch to the initial state; and the paired prompt information can be sent to the earphone, and when the earphone receives the paired identification information, the current pairing is performed, namely the GPIO interface is controlled to be switched to the initial state.
In the technical scheme disclosed in this embodiment, whether the user earphones are paired for the first time is determined by comparing the first communication identifier with the pre-stored communication identifier, and when the user earphones are paired for the first time, the base sends the second communication identifier and the area identifier to the earphones, so that repeated pairing is avoided.
EXAMPLE III
Referring to fig. 7, a third embodiment of the setting method of a communication frequency of the present invention is proposed based on the first or second embodiment, and in this embodiment, when the setting method of a communication frequency is applied to a headset, the setting method of a communication frequency includes:
step S10, when the first power contact detects voltage input, the first communication identifier of the earphone is sent to the base through the first GPIO contact;
step S90, after receiving the second communication identifier and the area identifier of the base through the first GPIO contact, determining whether a pre-stored communication identifier is pre-stored in the earphone;
step S100, when a pre-stored communication identifier is stored in the earphone, deleting the pre-stored communication identifier;
step S110, saving the second communication identifier;
and step S30, storing the area identification or storing the communication frequency corresponding to the area identification, so as to perform DECT communication with the base through the communication frequency corresponding to the area identification.
In the technical scheme disclosed in this embodiment, the headset may be paired with a plurality of bases, and a pre-stored communication identifier is pre-stored in the headset, which indicates that the headset and the bases have been paired, so that the previously stored communication identifier may be deleted, and only the received communication identifier is stored, thereby ensuring that only one base is in communication. When the communication identifier is not pre-stored in the headset, it is described that the headset is paired for the first time, step S110 and step S120 are performed.
According to the technical scheme disclosed by the embodiment, whether the earphones are firstly paired is determined according to the prestored communication identification when the earphones are paired, and the communication identification of the paired bases is deleted when the earphones are not firstly paired, so that the earphones are prevented from being paired with a plurality of bases, and communication errors are reduced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (11)

1. A method for setting communication frequency is applied to an earphone of a Digital Enhanced Cordless Telecommunications (DECT) device, and is characterized in that the DECT device comprises the earphone and a base, the earphone is provided with a first power contact, a first grounding contact and a first general purpose input/output (GPIO) contact, and the base is provided with a second power contact, a second grounding contact and a second GPIO contact; when the earphone is placed on the base, a first power supply contact is conducted with a second power supply contact, a first grounding contact is conducted with a second grounding contact, and a first GPIO contact is conducted with a second GPIO contact, wherein the first GPIO contact is connected with a pull-down resistor, and the setting method of the communication frequency comprises the following steps:
when the first power supply contact detects voltage input, sending a first communication identifier of the earphone to the base through the first GPIO contact;
after receiving a second communication identifier and an area identifier of the base through the first GPIO contact, saving the second communication identifier;
and storing the area identification or storing the communication frequency corresponding to the area identification so as to carry out DECT communication with the base through the communication frequency corresponding to the area identification.
2. The method of setting a communication frequency of claim 1, wherein the step of sending a first communication identification of a headset to the base through the first GPIO contact upon detection of a voltage input by the first power contact comprises:
when the first power supply contact detects voltage input, acquiring a first communication identifier of the earphone;
converting the first communication identifier into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the first GPIO contact according to the pulse signal so as to transmit the first communication identification to the base.
3. The setting method of a communication frequency according to claim 2, wherein the step of generating a pulse signal from the binary data comprises:
acquiring a first sub-pulse signal corresponding to a preset start bit, a second sub-pulse signal corresponding to the binary data and a third sub-pulse signal corresponding to a preset end bit;
generating the pulse signal according to the first sub-pulse signal, the second sub-pulse signal and the third sub-pulse signal.
4. The method of setting a communication frequency of claim 1, wherein after the step of sending a first communication identification of a headset to the base through the first GPIO contact when the first power contact detects the voltage input, the method of setting a communication frequency further comprises:
after receiving a second communication identifier and an area identifier of the base through the first GPIO contact, determining whether a prestored communication identifier is prestored in the earphone;
when a pre-stored communication identifier is stored in the earphone, deleting the pre-stored communication identifier;
and executing the step of saving the second communication identification.
5. A setting method of communication frequency is applied to a base of a Digital Enhanced Cordless Telecommunications (DECT) device, and is characterized in that the DECT device comprises an earphone and the base, the earphone is provided with a first power contact, a first grounding contact and a first general purpose input/output (GPIO) contact, and the base is provided with a second power contact, a second grounding contact and a second GPIO contact; when the earphone is placed on the base, a first power contact is conducted with a second power contact, a first ground contact is conducted with a second ground contact, and a first GPIO contact is conducted with a second GPIO contact, wherein the first GPIO contact is connected with a pull-down resistor, and the setting method of the communication frequency comprises the following steps:
when the voltage of the second GPIO contact is detected to be reduced, controlling the second GPIO contact to enter a data receiving mode;
after receiving the first communication identification of the earphone through the second GPIO contact, sending a second communication identification and an area identification of a base through the second GPIO contact, wherein the base communicates with the earphone through a communication frequency corresponding to the area identification;
and saving the first communication identifier.
6. The method of setting a communication frequency of claim 5, wherein after the step of controlling the second GPIO contact to enter a data reception mode upon detection of a decrease in voltage at the second GPIO contact, the method of setting a communication frequency further comprises:
after the first communication identification of the earphone is received through the second GPIO contact, a prestored communication identification is obtained;
and when the prestored communication identification is not acquired, executing the step of sending the second communication identification and the area identification of the base through the second GPIO contact.
7. The method for setting communication frequency according to claim 6, wherein after the step of obtaining the pre-stored communication identifier after receiving the first communication identifier of the earphone through the second GPIO contact, the method for setting communication frequency further comprises:
when the pre-stored communication identifier is obtained, comparing the pre-stored communication identifier with the first communication identifier;
and when the prestored communication identification is not matched with the first communication identification, executing the step of sending the second communication identification and the area identification of the base through the second GPIO contact.
8. The method of setting a communication frequency of claim 5, wherein the step of transmitting a second communication identification of a base and a zone identification through the second GPIO contact after receiving the first communication identification of the headset through the second GPIO contact comprises:
after receiving the first communication identifier of the earphone through the second GPIO contact, converting the second communication identifier and the area identifier of the base into binary data;
generating a pulse signal according to the binary data;
and controlling the level of the second GPIO contact according to the pulse signal so as to transmit the second communication identifier and the area identifier to the earphone.
9. A headset comprising a first power contact, a first input output, GPIO, contact and a first ground contact, the headset further comprising a first memory, a first processor and a communication frequency setting program stored on the memory and operable on the processor, the communication frequency setting program being executed by the processor by the method of setting the communication frequency according to any one of claims 1-4.
10. A base comprising a second power supply contact, a second input/output GPIO contact, and a second ground contact, the base further comprising a second memory, a second processor, and a setting program of a communication frequency stored on the memory and operable on the processor, the setting program of the communication frequency being executed by the processor by the setting method of the communication frequency according to any one of claims 5 to 8.
11. A cordless communication apparatus, characterized in that the cordless communication apparatus comprises a headset according to claim 9 and a base according to claim 10.
CN201911255276.3A 2019-12-09 2019-12-09 Communication frequency setting method, earphone, base and cordless communication device Active CN110971762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911255276.3A CN110971762B (en) 2019-12-09 2019-12-09 Communication frequency setting method, earphone, base and cordless communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911255276.3A CN110971762B (en) 2019-12-09 2019-12-09 Communication frequency setting method, earphone, base and cordless communication device

Publications (2)

Publication Number Publication Date
CN110971762A CN110971762A (en) 2020-04-07
CN110971762B true CN110971762B (en) 2021-03-16

Family

ID=70033776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911255276.3A Active CN110971762B (en) 2019-12-09 2019-12-09 Communication frequency setting method, earphone, base and cordless communication device

Country Status (1)

Country Link
CN (1) CN110971762B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817895B (en) * 2021-01-28 2022-04-19 广州安凯微电子股份有限公司 Communication method based on GPIO

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447481A (en) * 2003-02-08 2003-10-08 浙江苏泊尔炊具股份有限公司 Safety electric connector for electrical appliance with no electric wire
CN1684377A (en) * 2004-04-17 2005-10-19 鸿富锦精密工业(深圳)有限公司 Wireless earphone system
CN207835723U (en) * 2017-12-25 2018-09-07 歌尔科技有限公司 Wireless headset, charging box and charging system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19922179A1 (en) * 1999-05-12 2000-11-23 Siemens Ag Audio reception device for mobile telephone system
JP4240748B2 (en) * 2000-04-25 2009-03-18 パナソニック電工株式会社 Contactless power supply device
US8124429B2 (en) * 2006-12-15 2012-02-28 Richard Norman Reprogrammable circuit board with alignment-insensitive support for multiple component contact types
US20130331117A1 (en) * 2012-06-06 2013-12-12 Nokia Corporation Method and apparatus for white space database discovery
CN103855769B (en) * 2014-02-27 2016-03-30 福建星网锐捷通讯股份有限公司 Support cordless telephone charging and the circuit structure having handle dislodging machine testing of restricting simultaneously
CN104541520B (en) * 2014-05-30 2018-09-21 华为技术有限公司 Earphone base
CN207083075U (en) * 2016-05-17 2018-03-09 深圳市儒文科技有限公司 The detachable on-vehicle Bluetooth FM sound radiating devices and system of automatic charging
CN108600507B (en) * 2018-03-20 2020-09-22 厦门亿联网络技术股份有限公司 DECT message notification method
CN109039348B (en) * 2018-06-11 2020-11-06 珠海市魅族科技有限公司 Antenna control method and antenna control device
CN109660898A (en) * 2018-12-21 2019-04-19 成都必盛科技有限公司 Charging box, earphone and its control method
CN110418005B (en) * 2019-07-31 2020-10-30 山东比特智能科技股份有限公司 Method and system for realizing automatic conversion of cordless telephone system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447481A (en) * 2003-02-08 2003-10-08 浙江苏泊尔炊具股份有限公司 Safety electric connector for electrical appliance with no electric wire
CN1684377A (en) * 2004-04-17 2005-10-19 鸿富锦精密工业(深圳)有限公司 Wireless earphone system
CN207835723U (en) * 2017-12-25 2018-09-07 歌尔科技有限公司 Wireless headset, charging box and charging system

Also Published As

Publication number Publication date
CN110971762A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
US7940732B2 (en) Automatic wireless network device configuration
CN111107528B (en) Bluetooth testing method and testing machine
CN111225320B (en) Earphone wearing state detection method, earphone and readable storage medium
CN109548184B (en) Method and device for connecting mobile terminal and Bluetooth device and mobile terminal
CN111447602B (en) Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN111464994B (en) Method and system for realizing public search of Bluetooth equipment
CN105025433A (en) Bluetooth pairing method and terminal
US8503998B2 (en) Wireless communication terminal and wireless communication method
CN110784846B (en) Vehicle-mounted Bluetooth equipment identification method and device, electronic equipment and storage medium
CN110971762B (en) Communication frequency setting method, earphone, base and cordless communication device
WO2023020618A1 (en) Bluetooth-based device connection method and apparatus, electronic device and storage medium
CN104917553A (en) Wireless communication apparatus, wireless communication method, peripheral apparatus, and central apparatus
CN113518336A (en) Bluetooth connection prompting method, device, terminal and storage medium
CN112312518B (en) Method and device for connecting household appliance with dual-frequency router
CN111885571A (en) Bluetooth device pairing method, device and storage medium
CN104113620A (en) Contact list updating method, updating device and user terminal
CN111182403A (en) Earphone control method, earphone control device and computer readable storage medium
CN107466022B (en) SIM card switching method, mobile terminal and storage medium
CN103945063A (en) Earphone mode switching device and method and mobile terminal
US8094805B2 (en) Communication terminal and communication method thereof
US20040082310A1 (en) Method of controlling a switch device using a mobile terminal in a wireless communications network
CN104796167A (en) Terminal
CN109660988B (en) Communication authentication processing method and device and electronic equipment
CN113677039A (en) Bluetooth-based equipment connection method and device, electronic equipment and storage medium
CN106506624B (en) Data transmission 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
GR01 Patent grant
GR01 Patent grant