Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of cordless telephone transmitting/receiving means based on WIFI Direct and method thereof, solves existing cordless telephone and use troublesome problem.
The present invention is achieved in that
Based on a cordless telephone dispensing device of WIFI Direct, for being connected with cordless telephone receiving system, comprise telephone modem unit, a WIFI unit, the first power subsystem and the first main control unit; The first described power subsystem is connected with telephone modem unit, a WIFI unit and the first main control unit; The first described main control unit is connected with telephone modem unit and a WIFI unit;
A described WIFI unit is used for setting up WIFI Direct with cordless telephone receiving system and is connected;
The first described main control unit is used for the instruction received from cordless telephone receiving system being forwarded to telephone modem unit and the instruction received from telephone modem unit being forwarded to cordless telephone receiving system;
Described from telephone modem unit for connecting telephone wire and modulation /demodulation telephone signal.
Further, the described instruction received from cordless telephone receiving system is: off hook signal instruction, dialing signal instruction, on-hook signal instruction or voice data.
Further, the described instruction received from telephone modem unit is: incoming telephone signal instruction or voice data.
And the present invention also provides a kind of cordless telephone receiving system based on WIFI Direct, for being connected with cordless telephone dispensing device, comprise microphone, loudspeaker, the 2nd WIFI unit, second source unit and the second main control unit;
The second described main control unit is connected with microphone, loudspeaker and the 2nd WIFI unit;
Described second source unit is connected with the second main control unit and the 2nd WIFI unit;
The 2nd described WIFI unit is used for setting up WIFI Direct with cordless telephone dispensing device and is connected;
The voice data that the second described main control unit is used for microphone to collect is sent to cordless telephone dispensing device by the 2nd WIFI unit, will play the voice data received from the 2nd WIFI unit on loudspeaker simultaneously.
Further, also comprise input unit, described input unit is connected with the second main control unit.
Further, also comprise display unit, described display unit is connected with the second main control unit.
Further, also comprise mobile phone radio frequency unit, described mobile phone radio frequency unit is connected with the second main control unit.
The present invention also provides a kind of cordless telephone sending/receiving method based on WIFI Direct, is applied to cordless telephone receiving system and cordless telephone dispensing device, comprises the steps:
Cordless telephone receiving system and cordless telephone dispensing device are set up WIFI Direct and are connected;
Cordless telephone dispensing device, when receiving incoming telephone signal instruction, is forwarded to cordless telephone receiving system;
Cordless telephone receiving system, when receiving the incoming telephone signal instruction that cordless telephone dispensing device sends, sends signal of telecommunication command prompt message;
Cordless telephone receiving system, when handoff functionality is triggered, sends off hook signal instruction to cordless telephone dispensing device, the audio data transmitting collected is delivered to cordless telephone dispensing device simultaneously;
Cordless telephone dispensing device is connected phone after receiving off hook signal instruction and the audio data transmitting of telephone wire is delivered to cordless telephone receiving system, delivers on telephone wire by the audio data transmitting received simultaneously;
Cordless telephone receiving system is when on-hook function is triggered, and send on-hook signal instruction to cordless telephone dispensing device, cordless telephone dispensing device is hung up the telephone after receiving on-hook signal instruction.
Further, also comprise the steps: that cordless telephone receiving system is when dial feature is triggered, Sending dialled number instruction and dial data are to cordless telephone dispensing device, and cordless telephone dispensing device is called after receiving dial instruction and dial data.
Tool of the present invention has the following advantages: the present invention can realize the access of multiple terminals, makes cordless telephone have better ease for use.
Embodiment
Refer to shown in Fig. 1, the present invention is described in detail below.
As shown in Figure 1, a kind of cordless telephone dispensing device 1 based on WIFI Direct, for being connected with cordless telephone receiving system 2, comprises telephone modem unit 10, WIFI unit 11, first power subsystem 12 and first main control unit 13.First power subsystem 12 is connected with telephone modem unit 10, a WIFI unit 11 and the first main control unit 13; First main control unit 13 is connected with telephone modem unit 10 and a WIFI unit 11.
Wherein, the first power subsystem 12 is powered for giving the unit in cordless telephone dispensing device 1, and the first power subsystem 12 can adopt and convert civil power to direct current realization power supply, and the electricity that also can directly gather in telephone wire realizes power supply.Telephone modem unit 10 is for being connected with telephone wire and carrying out modulation /demodulation to the signal of telephone wire.One WIFI unit 11 is connected for setting up WIFI Direct with cordless telephone receiving system 2.It can be that WIFI Direct connects host mode or slave mode that one WIFI unit 11 sets up WIFI Direct connection.When specifically connecting, cordless telephone dispensing device 1 is as from machine, and active scan opens the cordless telephone receiving system 2 of WIFI Direct host mode, and active request connects; Or cordless telephone dispensing device 1 is as main frame, when cordless telephone receiving system 2 asks to connect, connect after automatically confirming.
Upon connection, the first main control unit 13 is for being forwarded to telephone modem unit 10 and the instruction received from telephone modem unit 10 being forwarded to cordless telephone receiving system 2 by the instruction received from cordless telephone receiving system 2.First main control unit 13 can adopt chip microcontroller.By the forwarding of cordless telephone dispensing device 1, achieve cordless telephone receiving system 2 pairs of telephone wires signals and receive and send, wireless the dialing of cordless telephone receiving system 2 can be realized and receive calls.
The instruction that first main control unit 13 receives from cordless telephone receiving system 2 is: off hook signal instruction, dialing signal instruction, on-hook signal instruction or voice data (i.e. the call voice data of cordless telephone receiving system 2).The instruction that first main control unit 13 receives from telephone modem unit 10 is: incoming telephone signal instruction or voice data (namely during call telephone wire the voice data of the other side).
And the present invention also provides a kind of cordless telephone receiving system 2 based on WIFI Direct, for being connected with cordless telephone dispensing device 1, comprise microphone 20, loudspeaker 21, the 2nd WIFI unit 22, second source unit 23 and the second main control unit 24.
Second main control unit 24 is connected with microphone 20, loudspeaker 21 and the 2nd WIFI unit 22; Second source unit 23 is connected with the second main control unit 24 and the 2nd WIFI unit 22.
2nd WIFI unit is used for setting up WIFI Direct with cordless telephone dispensing device 1 and is connected.Second source unit 23 is powered for giving the unit on cordless telephone receiving system 2; Second source unit 23 can adopt lithium battery to power, and cordless telephone receiving system 2 can be moved.Second main control unit 24 is sent to cordless telephone dispensing device 1 for the voice data collected by microphone 20 by the 2nd WIFI unit 22, will play the voice data received from the 2nd WIFI unit 22 on loudspeaker 21 simultaneously.Namely the sound achieved when conversing is mutual, achieves the call of cordless telephone receiving system 2 phone.
In order to realize cordless telephone receiving system 2 dialing and to the confirmation of answering during incoming call, cordless telephone receiving system 2 also comprises input unit 25, and input unit 25 is connected with the second main control unit 24.Input unit 25 is for inputting information.Input unit 25 can adopt the mode of keyboard or the mode of touch-screen to realize.In order to show the information of incoming information, call relevant information and dialing numbers, cordless telephone receiving system 2 also comprises display unit 26, and display unit 26 is connected with the second main control unit 24.Second main control unit 24 can be a single-chip microcomputer equally.During embody rule of the present invention, the display unit 26 of cordless telephone receiving system 2 can adopt comparatively large crystal screen curtain, then install operating system at the second main control unit 24, cordless telephone receiving system 2 is had more recreational, and be not only a simple receiving system.Preferably, cordless telephone receiving system 2 also comprises a mobile phone radio frequency unit 27, and mobile phone radio frequency unit 27 is connected with the second main control unit 24.Mobile phone radio frequency unit 27 can be 2G, 3G or 4G standard, thus make cordless telephone receiving system 2 with phone and cell-phone function, time then user stays out middle, cordless telephone receiving system 2 is exactly a mobile phone, and user has gone home just can answer with cordless telephone receiving system 2 and dial landline telephone.In order to realize more volume functions of cordless telephone receiving system 2, can increase the unit such as acceleration transducer, range sensor or gyroscope, these can be connected by directly with the second main control unit 24.
And the present invention also provides a kind of cordless telephone sending/receiving method based on WIFI Direct, be applied to cordless telephone receiving system 2 and cordless telephone dispensing device 1, as where, above-mentioned cordless telephone receiving system 2 and cordless telephone dispensing device 1 realize method of the present invention and are described in detail below.
First, cordless telephone receiving system 2 and cordless telephone dispensing device 1 are set up WIFI Direct and are connected.If cordless telephone dispensing device 1 is WIFI Direct connect host mode, cordless telephone receiving system 2 is that WIFI Direct connects slave mode, the main frame that the WIFI Direct that then cordless telephone receiving system 2 can scan surrounding manually or automatically connects also asks to connect, from being dynamically connected after then cordless telephone dispensing device 1 receives this connection request.If cordless telephone dispensing device 1 is WIFI Direct connect slave mode, cordless telephone receiving system 2 is that WIFI Direct connects host mode, the main frame that WIFI Direct then around cordless telephone dispensing device 1 automatic scan connects also asks to connect, from being dynamically connected after then cordless telephone receiving system 2 receives this connection request.Preferred employing cordless telephone dispensing device 1 is that WIFI Direct connects host mode, and cordless telephone receiving system 2 is that WIFI Direct connects slave mode, and such cordless telephone dispensing device 1 can be connected with multiple cordless telephone receiving system 2.
First main control unit 13 of cordless telephone dispensing device 1, when detecting that telephone wire that telephone modem unit 10 connects has incoming telephone signal instruction, is forwarded to cordless telephone receiving system 2, namely reminds cordless telephone receiving system 2 to have telephone call to come in.
Cordless telephone receiving system 2, when receiving the incoming telephone signal instruction that cordless telephone dispensing device 1 sends, sends signal of telecommunication command prompt message.Incoming telephone signal command prompt message can be vibration, the tinkle of bells or screen display, and whether reminding user has phone to call in, answer.
When user will answer, press Answer Key, when then the handoff functionality of cordless telephone receiving system 2 can be triggered, after the second main control unit 24 detects, send off hook signal instruction to cordless telephone dispensing device 1 by the second WIFI module 22, namely inform that cordless telephone dispensing device 1 will be conversed.Owing to confirming that this process time is very short, then the audio data transmitting that microphone 20 collects is delivered to cordless telephone dispensing device 1 by cordless telephone receiving system 2 simultaneously.If now receive cordless telephone dispensing device 1, loudspeaker are play.
Phone is connected by telephone modem unit 10 after first main control unit 13 of cordless telephone dispensing device 1 receives off hook signal instruction, and be sent to cordless telephone receiving system 2 by the voice data that telephone modem unit 10 gets telephone wire simultaneously, the voice data received from cordless telephone receiving system 2 is sent on telephone wire by telephone modem unit 10 simultaneously.Below wireless the answering of cordless telephone receiving system 2 and cordless telephone dispensing device 1 pair of landline telephone is just achieved.
Then after end of conversation, user presses on-hook key, the on-hook function of cordless telephone receiving system 2 is triggered, and the second main control unit 24 detects that the instruction of rear transmission on-hook signal is to cordless telephone dispensing device 1, and cordless telephone dispensing device 1 is hung up the telephone after receiving on-hook signal instruction.
Further, also comprise the steps: that cordless telephone receiving system 2 is when dial feature is triggered, Sending dialled number instruction and dial data are to cordless telephone dispensing device 1, and cordless telephone dispensing device 1 is called after receiving dial instruction and dial data.
In sum, the present invention can realize the wireless of landline telephone and answer and dial, cordless telephone receiving system 2 of the present invention can realize more amusement functions simultaneously, as become a mobile phone or panel computer, makes cordless telephone receiving system 2 be no longer simple a kind of receiving system.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.