[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104599473A - Switching method and switching device of wireless communication mode - Google Patents

Switching method and switching device of wireless communication mode Download PDF

Info

Publication number
CN104599473A
CN104599473A CN201510051669.8A CN201510051669A CN104599473A CN 104599473 A CN104599473 A CN 104599473A CN 201510051669 A CN201510051669 A CN 201510051669A CN 104599473 A CN104599473 A CN 104599473A
Authority
CN
China
Prior art keywords
wifi module
module
wifi
controlled device
key command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510051669.8A
Other languages
Chinese (zh)
Inventor
舒景波
聂林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510051669.8A priority Critical patent/CN104599473A/en
Publication of CN104599473A publication Critical patent/CN104599473A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a switching method and a switching device of a wireless communication mode. The method comprises the steps of when a key event is monitored and a key command is determined to be sent into a controlled device, determining whether the recorded state of a first wireless fidelity (WiFi) module arranged an intelligent remote controller and a second WiFi module arranged on the controlled device is a connection state or not; if the recorded state of the first WiFi module and the second WiFi module is determined to be the connection state, determining whether the first WiFi module and the second WiFi module reach the preset condition of establishing connection or not; if the first WiFi module and the second WiFi module are determined to reach the preset condition, establishing a communication connection between first WiFi module and the second WiFi module, and sending the key command into the second WiFi module by the first WiFi module; if the first WiFi module and the second WiFi module are determined not to reach the preset condition, sending the key command into the controlled device by an infrared module arranged on the remote controller. After the method and the device are used, excessive useless connection requests which are sent into the second WiFi module by the first WiFi module can be avoided, so that the power consumption of the intelligent remote controller can be reduced, and the service life of a battery of the intelligent remote controller is prolonged.

Description

The changing method of wireless communications mode and device
Technical field
The present invention relates to Smart Home technical field, particularly relate to a kind of changing method and device of wireless communications mode.
Background technology
Infrared remote controller is telepilot the most conventional in family, adopts infrared ray to carry out communication and can not be subject to radio interference, and the low cost of manufacture of infrared remote controller, stability is high.But because infrared signal is not encrypted, if there is multiple stage same controlled device in an environment, then easily there is the situation using same telepilot remote control simultaneously multiple stage controlled device, thus bring unnecessary operation to user.
WiFi wireless remote control is universal in intelligent remote controller gradually.WiFi remote signal can carry out remote control in all angles of indoor to controlled device.Compared with above-mentioned infrared remote controller, WiFi Digiplex any position and any angle can carry out straighforward operation to controlled device in indoor.In addition, the transmission bandwidth of WiFi signal allows telepilot to carry out more complicated operation, such as, carry out voice and body sense operation etc. to controlled device, thus make the experience of telepilot outstanding.
But user is actual use a teleswitch time, the demand that different scene needs to be switched to different communication modes can be there is, such as, when WiFi on controlled device is switched off, telepilot needs to be switched to infrared mode, when WiFi on controlled device is manually opened, telepilot needs to be switched to WiFi pattern, etc.In the prior art, due to the advantage that WiFi is relatively infrared, by infared startup and closedown controlled device under normal circumstances, can preferentially use WiFi communication pattern in use, if be again switched to WiFi pattern immediately after the connection request instruction failure that each WiFi sends, if the WIFI module on controlled device is closed, even if telepilot sends connection request instruction by WiFi module to controlled device, WiFi module on telepilot can not establish a communications link with the WiFi module on controlled device, in this case, WiFi module on telepilot likely can initiate much useless connection request to the WiFi module on controlled device, too much useless connection request adds the electric quantity consumption of telepilot.
Summary of the invention
In view of this, the invention provides a kind of changing method and device of wireless communications mode, be applied on intelligent remote controller, reduce the electric quantity consumption of intelligent remote controller further.
According to the first aspect of this method embodiment, a kind of changing method of wireless communications mode is provided, comprises:
When listening to key-press event and determining to need to send key command to controlled device, determine whether the WiFi module on recorded described intelligent remote controller and the 2nd WiFi module on controlled device are connection status;
If determine that the state between the described WiFi module that records and described 2nd WiFi module is connection status, determine whether a described WiFi module and described 2nd WiFi module reach connect pre-conditioned;
If determine to reach described pre-conditioned, set up the communication connection between a described WiFi module and described 2nd WiFi module, and send described key command by a described WiFi module to described 2nd WiFi module; If determine not reach described pre-conditioned, send described button by the infrared module on described telepilot to described controlled device and refer to.
According to the second aspect of this method embodiment, a kind of switching device shifter of wireless communications mode is provided, comprises:
First determination module, for when listening to key-press event and determining to need to send key command to controlled device, determines whether the WiFi module on recorded described intelligent remote controller and the 2nd WiFi module on controlled device are connection status;
Second determination module, if determine that the state between the described WiFi module that records and described 2nd WiFi module is connection status for described first determination module, determine whether a described WiFi module and described 2nd WiFi module reach connect pre-conditioned;
WiFi communication module, if determine to reach described pre-conditioned for described second determination module, set up the communication connection between a described WiFi module and described 2nd WiFi module, and send described key command by a described WiFi module to described 2nd WiFi module;
Infrared sending module, if determine not reach described pre-conditioned for described second determination module, sends described key command by the infrared module on described telepilot to described controlled device.
From above technical scheme, the present invention is when determining a WiFi module and the 2nd WiFi module does not establish a communications link, by determining whether a WiFi module and the 2nd WiFi module reach the pre-conditioned wireless communications mode determined between intelligent remote controller and controlled device connected, avoid a WiFi module and send too much useless connection request to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the embodiment of the present invention.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the changing method of wireless communications mode in one embodiment of the present invention;
Fig. 2 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention;
Fig. 3 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention;
Fig. 4 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention;
Fig. 5 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention;
Fig. 6 is the structural drawing of intelligent remote controller in one embodiment of the present invention;
Fig. 7 is the building-block of logic of the switching device shifter of wireless communications mode in one embodiment of the present invention;
Fig. 8 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention;
Fig. 9 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention;
Figure 10 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention;
Figure 11 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the application.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that some aspects of the application are consistent.
Only for describing the object of specific embodiment at term used in this application, and not intended to be limiting the application." one ", " described " and " being somebody's turn to do " of the singulative used in the application and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the application, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from the application's scope, a WiFi module also can be called as the 2nd WiFi module, and similarly, the 2nd WiFi module also can be called as a WiFi module.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
Please refer to Fig. 1, Fig. 1 is the process flow diagram of the changing method of wireless communications mode in one embodiment of the present invention, can be applied on intelligent remote controller, and controlled device can be the equipment that intelligent television etc. needs remote control, comprises the steps:
Step 101, when listening to key-press event and determining to need to send key command to controlled device, determine whether the state between the WiFi module on recorded intelligent remote controller and the 2nd WiFi module on controlled device is connection status, if determine record a WiFi module and controlled device on the 2nd WiFi module between state be not-connected status, perform step 102, if determine record a WiFi module and controlled device on the 2nd WiFi module between state be connection status, perform step 104.
In one embodiment, the state machine that one represents WiFi connection status can be set on intelligent remote controller, by the state between state machine record the one WiFi module and the 2nd WiFi module, such as, current time is 11:00 at noon, when the 9:00 of user before 2 hours have sent key command by intelligent remote controller to intelligent TV set, if this key command is sent by a WiFi module, represent that the WiFi between 9:00 intelligent remote controller and intelligent TV set is connection status, if this key command is sent by infrared module, represent that the WiFi between 9:00 intelligent remote controller and intelligent TV set is not-connected status.Further, can represent not-connected status by 0 of state machine, 1 represents connection status.Be appreciated that thus, connection status between the WiFi module recorded in the embodiment of the present invention and the 2nd WiFi module, not current between expression the one WiFi module and the 2nd WiFi module true connection status, but establish connection status before representing a WiFi module and the 2nd WiFi module, one WiFi module due to intelligent remote controller change battery and restart, the reason such as the 2nd WiFi module is manually turned off, between a WiFi module and the 2nd WiFi module current be likely disconnected before the communication connection of having set up.
Step 102, determines whether a WiFi module and the 2nd WiFi module reach connect pre-conditioned, if determine to reach connect pre-conditioned, performs step 103, if determine not reach connect pre-conditioned, performs step 105.
In one embodiment, whether the pre-conditioned request number of times of asking that connects that can be the first WiFi module has sent to the 2nd WiFi module reaches the first predetermined threshold value, whether can also reach the second predetermined threshold value for the touch potential sending key command to controlled device by infrared module, can also be whether the disconnection duration that a WiFi module and the 2nd WiFi module disconnect reaches preset duration; The embodiment of the present invention is by the pre-conditioned request number of times that can limit the request of connecting that a WiFi module sends to the 2nd WiFi module, by controlling the request number of times of the request of connecting that a WiFi module is initiated to the 2nd WiFi module, make only just to initiate to the 2nd WiFi module the request of connecting by a WiFi module when meeting pre-conditioned, thus a WiFi module can be avoided to send the too much useless request of connecting to the 2nd WiFi module.
Step 103, sets up the communication connection between a WiFi module and the 2nd WiFi module, performs step 104.
Step 104, send key command by a WiFi module to the 2nd WiFi module, flow process terminates.
In one embodiment, the message foundation communication connection therebetween of connection can be sent request to the 2nd WiFi module by a WiFi module.
Step 105, send key command by the infrared module on telepilot to controlled device, flow process terminates.
From step 101 to step 105, the present invention is by determining whether a WiFi module and the 2nd WiFi module reach the pre-conditioned wireless communications mode determined between intelligent remote controller and controlled device connected, avoid a WiFi module and send too much useless connection request to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Refer to Fig. 2, Fig. 2 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention, and the present embodiment can be applied on intelligent remote controller, comprises the steps:
Step 201, determines whether the WiFi module on telepilot and the 2nd WiFi module on controlled device match, if determine to match, performs step 202, if determine not match, performs step 208.
In one embodiment, in order to avoid same intelligent remote controller remote control simultaneously multiple stage controlled device, the 2nd WiFi module on one WiFi module and controlled device can be bound by identify label by the embodiment of the present invention, thus the WiFi module on the WiFi module on an intelligent remote controller and a controlled device is established a communications link, avoid bringing unnecessary operation to user.
Step 202, when listening to key-press event and determining to need to send key command to controlled device, determine whether the state between the WiFi module on recorded intelligent remote controller and the 2nd WiFi module on controlled device is connection status, if determine that the state between the 2nd WiFi module on recorded a WiFi module and controlled device is not-connected status, perform step 203, if determine that the state between the 2nd WiFi module on recorded a WiFi module and controlled device is connection status, perform step 205.
The description of step 202 refers to the description of above-mentioned steps 101, is not described in detail in this.
Step 203, determines whether a WiFi module and the 2nd WiFi module reach connect pre-conditioned, if determine to reach connect pre-conditioned, performs step 204, if determine not reach connect pre-conditioned, performs step 208.
The description of step 203 refers to the description of above-mentioned steps 102, is not described in detail in this.
Step 204, sets up the communication connection with the 2nd WiFi module by a WiFi module, performs step 205.
In one embodiment, can send to the 2nd WiFi module the request of connecting by a WiFi module, if the 2nd WiFi module receives the request of connecting, return connection acknowledge message to a WiFi module, then a WiFi module can establish a communications link with the 2nd WiFi module.
Step 205, sends key command by a WiFi module to the 2nd WiFi module, performs step 206.
Step 206, determines whether to receive the feedback message that controlled device returns according to key command, if receive feedback message, performs step 207, if do not receive feedback message, performs step 208.
In one embodiment, if intelligent remote controller receives this feedback message, represent that controlled device successfully receives this key command, and can communicate between a WiFi module with the 2nd WiFi module, if intelligent remote controller does not receive this feedback message, represent the situations such as the 2nd WiFi module may be manually turned off in above process, thus cause the separated communication connection of a WiFi module and the 2nd WiFi module, in order to as early as possible key command is sent to controlled device, by infrared module, key command can be sent to controlled device.
Step 207, keeps the communication connection between a WiFi module and the 2nd WiFi module, and be connection status by the state updating between recorded a WiFi module and the 2nd WiFi module, flow process terminates.
Step 208, send key command by the infrared module on telepilot to controlled device, flow process terminates.
From step 201 to step 208, in the present embodiment except there is above-mentioned Advantageous Effects embodiment illustrated in fig. 1, also avoiding same telepilot remote control simultaneously multiple stage controlled device by determining whether the WiFi module on telepilot and the 2nd WiFi module on controlled device have matched, avoiding bringing unnecessary operation to user; In addition, by determining whether to receive the feedback message returned from controlled device, when the 2nd WiFi module of controlled device can be avoided to be manually turned off, a WiFi module still initiates useless connection request to the 2nd WiFi module.
Please refer to Fig. 3, Fig. 3 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention, the present embodiment can be applied on intelligent remote controller, whether the present embodiment reaches the first predetermined threshold value for the request number of times of the pre-conditioned request of connecting that to be a WiFi module sent to the 2nd WiFi module is carried out exemplary illustration, comprises the steps:
Step 301, when listening to key-press event and determining to need to send key command to controlled device, determine whether the request number of times of the request of connecting that a WiFi module has sent to the 2nd WiFi module reaches the first predetermined threshold value, if request number of times reaches the first predetermined threshold value, perform step 302, if the request number of times of the request of connecting sent does not reach the first predetermined threshold value, perform step 306.
In one embodiment, can be counted by the request number of times of mode to the request of connecting sent arranging counter on intelligent remote controller, when a WiFi module and the 2nd WiFi module connect, then the request number of times of the request of connecting sent that counter records is reset, again a WiFi module is counted to the 2nd WiFi module by counter.
Step 302, sends to the 2nd WiFi module the request of connecting by a WiFi module, performs step 303.
Step 303, determine whether to receive the acknowledge message from the 2nd WiFi module, if a WiFi module receives the acknowledge message from the 2nd WiFi module, recorded request number of times is reset, perform step 304, if a WiFi module does not receive the acknowledge message from the 2nd WiFi module, 1 is added to request number of times, perform step 306.
Step 304, sets up the communication connection with the 2nd WiFi module, performs step 305.
Step 305, send key command by a WiFi module to the 2nd WiFi module, flow process terminates.
Step 306, send key command by the infrared module on telepilot to controlled device, flow process terminates.
From step 301 to step 306, in the present embodiment except there is above-mentioned Fig. 1 and/or Advantageous Effects embodiment illustrated in fig. 2, the request message connected that a WiFi module sends to the 2nd WiFi module is limited by request number of times, a WiFi module is avoided to attempt sending the too much useless request message connected to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Please refer to Fig. 4, Fig. 4 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention, the present embodiment can be applied on intelligent remote controller, whether the present embodiment reaches the second predetermined threshold value carry out exemplary illustration to send the touch potential of key command by infrared module to controlled device, comprises the steps:
Step 401, when listening to key-press event and determining to need to send key command to controlled device, determine whether the touch potential sending key command to controlled device by infrared module reaches the second predetermined threshold value, if touch potential reaches the second predetermined threshold value, perform step 402, if touch potential does not reach the second predetermined threshold value, perform above-mentioned steps 406.
In one embodiment, by the mode arranging counter on intelligent remote controller, the number of times that the infrared module on intelligent remote controller sends key command to controlled device can be counted, be connected when a WiFi module establishes with the 2nd WiFi module, the button then recorded counter is opened number of times and is reset, and is again counted the touch potential being sent key command by infrared module by counter.
Step 402, when touch potential reaches the second predetermined threshold value, sends to described 2nd WiFi module the request of connecting by a described WiFi module, performs step 403.
Step 403, determine whether to receive the acknowledge message from the 2nd WiFi module, if a WiFi module receives the acknowledge message from the 2nd WiFi module, recorded touch potential is reset, perform step 404, if a WiFi module does not receive the acknowledge message from the 2nd WiFi module, 1 is added to recorded touch potential, perform step 406.
Step 404, sets up the communication connection with the 2nd WiFi module, performs step 405.
Step 405, send key command by a WiFi module to the 2nd WiFi module, flow process terminates.
Step 406, send key command by the infrared module on telepilot to controlled device, flow process terminates.
From step 401 to step 406, in the present embodiment except there is above-mentioned Fig. 1 and/or Advantageous Effects embodiment illustrated in fig. 2, the request message connected that a WiFi module sends to the 2nd WiFi module is limited by touch potential, a WiFi module is avoided to attempt sending the too much useless request message connected to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Please refer to Fig. 5, Fig. 5 is the process flow diagram of the changing method of wireless communications mode in another embodiment of the present invention, the present embodiment can be applied on intelligent remote controller, whether the present embodiment reaches preset duration for the disconnection duration disconnected between a WiFi module and the 2nd WiFi module is carried out exemplary illustration, comprises the steps:
Step 501, when listening to key-press event and determining to need to send key command to controlled device, determine whether the disconnection duration disconnected between a WiFi module and the 2nd WiFi module reaches preset duration, if disconnect duration to reach preset duration, perform step 502, if disconnect duration not reach preset duration, perform above-mentioned steps 506.
In one embodiment, can determine whether the disconnection duration disconnected reaches preset duration therebetween by timer, such as, preset duration is set to 10 seconds, by to carrying out countdown the trip time between a WiFi module and the 2nd WiFi module, when timer is designated as 0 by the mode of countdown, illustrate that trip time reaches preset duration.
Step 502, when reaching preset duration upon opening, sends to the 2nd WiFi module the request of connecting by a WiFi module, performs step 503.
Step 503, determine whether to receive the acknowledge message from the 2nd WiFi module, if a WiFi module receives the acknowledge message from the 2nd WiFi module, disconnection duration is reset, perform step 404, if a WiFi module does not receive the acknowledge message from the 2nd WiFi module, continue, to the timing of disconnection duration, to perform step 506.
Step 504, sets up the communication connection with the 2nd WiFi module, performs step 505.
Step 505, send key command by a WiFi module to the 2nd WiFi module, flow process terminates.
Step 506, send key command by the infrared module on telepilot to controlled device, flow process terminates.
From step 501 to step 506, in the present embodiment except there is above-mentioned Fig. 1 and/or Advantageous Effects embodiment illustrated in fig. 2, the request message connected that a WiFi module sends to the 2nd WiFi module is limited by disconnecting duration, a WiFi module is avoided to attempt sending the too much useless request message connected to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Corresponding to the changing method of above-mentioned wireless communications mode, the application also proposed the structural drawing of the intelligent remote controller shown in Fig. 6.Please refer to Fig. 6, at hardware view, this intelligent remote controller comprises master chip, external interface, internal memory and nonvolatile memory, certainly also may comprise the hardware required for other business.Master chip reads corresponding computer program and then runs in internal memory from nonvolatile memory, and logic level is formed the switching device shifter of wireless communications mode.Certainly, except software realization mode, the application does not get rid of other implementations, mode of such as logical device or software and hardware combining etc., that is the executive agent of following treatment scheme is not limited to each logical block, also can be hardware or logical device.
Please refer to Fig. 7, Fig. 7 is the building-block of logic of the switching device shifter of wireless communications mode in one embodiment of the present invention, and the switching device shifter of this wireless communications mode can comprise:
First determination module 71, for when listening to key-press event and determining to need to send key command to controlled device, determines whether the WiFi module on recorded intelligent remote controller and the 2nd WiFi module on controlled device are connection status;
Second determination module 72, if determine that the state between the WiFi module that records and the 2nd WiFi module is connection status for the first determination module 71, determines whether a WiFi module and the 2nd WiFi module reach connect pre-conditioned;
WiFi communication module 73, if determine to reach pre-conditioned for the second determination module 72, sets up the communication connection between a WiFi module and the 2nd WiFi module, and sends key command by a WiFi module to the 2nd WiFi module;
Infrared sending module 74, if determine not reach pre-conditioned for the second determination module 72, sends key command by the infrared module on telepilot to controlled device.
By the second determination module 72, the present invention determines whether a WiFi module and the 2nd WiFi module reach the pre-conditioned wireless communications mode determined between intelligent remote controller and controlled device connected, avoid a WiFi module and send too much useless connection request to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Please refer to Fig. 8, Fig. 8 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention, and on above-mentioned basis embodiment illustrated in fig. 7, the switching device shifter of this wireless communications mode also can comprise:
3rd determination module 75, for determining whether a WiFi module and the 2nd WiFi module match;
If the 3rd determination module 75 determines pairing, the first determination module 71 performs determines that whether the WiFi module on recorded intelligent remote controller and the 2nd WiFi module on controlled device be the step of connection status;
If the 3rd determination module 75 is determined not match, infrared sending module 74 performs the step being sent key command by the infrared module on telepilot to controlled device.
In one embodiment, if the first determination module 71 determines that a WiFi module and the 2nd WiFi module keep the connection status recorded, infrared sending module 74 performs the step being sent key command by a WiFi module to the 2nd WiFi module.
In one embodiment, device also can comprise:
Receiver module 76, for receiving the feedback message that controlled device returns according to key command;
If receiver module 76 receives the feedback message that controlled device returns according to key command, WiFi communication module 73 keeps a WiFi module and second for the communication connection between root WiFi module, and the WiFi module and second that renewal is recorded is for the connection status between root WiFi module; If receiver module 76 does not receive feedback message, infrared sending module 74 performs the described step being sent key command by the infrared module on telepilot to controlled device.
In the present embodiment except there is above-mentioned Advantageous Effects embodiment illustrated in fig. 7, also determine whether the WiFi module on telepilot and the 2nd WiFi module on controlled device have matched by the 3rd determination module 75 and avoid same telepilot remote control simultaneously multiple stage controlled device, avoid bringing unnecessary operation to user; In addition, by determining whether receiver module 76 receives the feedback message returned from controlled device, when the 2nd WiFi module of controlled device can be avoided to be manually turned off, a WiFi module still initiates useless connection request to the 2nd WiFi module.
Please refer to Fig. 9, Fig. 9 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention, on above-mentioned Fig. 7 or basis embodiment illustrated in fig. 8, to carry out exemplary illustration on basis embodiment illustrated in fig. 8, as shown in Figure 10, the second determination module 72 can comprise:
First determining unit 721, for determining the request number of times of the request message connected that a WiFi module has sent to the 2nd WiFi module;
Second determining unit 722, for when the first determining unit 721 determines that request number of times reaches the first predetermined threshold value, determines that a WiFi module and the 2nd WiFi module reach connect pre-conditioned.
In one embodiment, WiFi communication module 73 can comprise:
First communication unit 731, for sending to the 2nd WiFi module the request of connecting by a WiFi module;
First processing unit 732, if receive the acknowledge message from the 2nd WiFi module for the first communication unit 731, sets up the communication connection with the 2nd WiFi module, resets request number of times.
In one embodiment, if the first communication unit 731 does not receive the acknowledge message from the 2nd WiFi module, the first processing unit 732 is also for adding 1 to request number of times, and infrared sending module 74 sends key command by infrared module to controlled device.
In the present embodiment except there is above-mentioned Fig. 7 and/or Advantageous Effects embodiment illustrated in fig. 8, the request message connected that request number of times restriction the one WiFi module that the first determining unit 721 is determined sends to the 2nd WiFi module is determined by the second determining unit 722, a WiFi module is avoided to attempt sending the too much useless request message connected to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Please refer to Figure 10, Figure 10 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention, on above-mentioned Fig. 7 or basis embodiment illustrated in fig. 8, to carry out exemplary illustration on basis embodiment illustrated in fig. 8, as shown in Figure 10, the second determination module 72 can comprise:
3rd determining unit 723, for determining whether the touch potential sending key command to controlled device by infrared module reaches the second predetermined threshold value;
4th determining unit 724, for when the 3rd determining unit determination touch potential reaches the second predetermined threshold value, determines that a WiFi module and the 2nd WiFi module reach connect pre-conditioned.
In one embodiment, WiFi communication module 73 can comprise:
Second communication unit 733, for sending to the 2nd WiFi module the request of connecting by a WiFi module;
Second processing unit 734, if receive the acknowledge message from the 2nd WiFi module for second communication unit 733, resets touch potential.
In one embodiment, if second communication unit 733 does not receive the acknowledge message from the 2nd WiFi module, the second processing unit 734 pairs touch potential adds 1, and infrared sending module 74 sends key command by infrared module to controlled device.
In the present embodiment except there is above-mentioned Fig. 7 and/or Advantageous Effects embodiment illustrated in fig. 8, the request message connected that touch potential restriction the one WiFi module that the 3rd determining unit 723 is determined sends to the 2nd WiFi module is determined by the 4th determining unit 724, a WiFi module is avoided to attempt sending the too much useless request message connected to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
Please refer to Figure 11, Figure 11 is the building-block of logic of the switching device shifter of wireless communications mode in another embodiment of the present invention, on above-mentioned Fig. 7 or basis embodiment illustrated in fig. 8, to carry out exemplary illustration on basis embodiment illustrated in fig. 8, as shown in figure 11, the second determination module 72 can comprise:
5th determining unit 725, for determining whether the disconnection duration disconnected between a WiFi module and the 2nd WiFi module reaches preset duration;
6th determining unit 726, during for determining that when the 5th determining unit 725 disconnecting duration reaches preset duration, determines that a WiFi module and the 2nd WiFi module reach connect pre-conditioned.
In one embodiment, WiFi communication module 73 comprises:
Third communication unit 735, for sending to the 2nd WiFi module the request of connecting by a WiFi module;
3rd processing unit 736, if receive the acknowledge message from the 2nd WiFi module for third communication unit 735, sets up the communication connection with the 2nd WiFi module, resets disconnection duration.
In one embodiment, when third communication unit 735 does not receive the acknowledge message of the 2nd WiFi module, the 3rd processing unit 736 is for continuing the timing of disconnection duration, and infrared sending module 74 sends key command by infrared module to controlled device.
In the present embodiment except there is above-mentioned Fig. 7 and/or Advantageous Effects embodiment illustrated in fig. 8, the request message connected that disconnection duration restriction the one WiFi module that the 5th determining unit 725 is determined sends to the 2nd WiFi module is determined by the 6th determining unit 726, a WiFi module is avoided to attempt sending the too much useless request message connected to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
By describing above and can finding out, the changing method of wireless communications mode provided by the invention and device, when determining a WiFi module and the 2nd WiFi module does not establish a communications link, by determining whether a WiFi module and the 2nd WiFi module reach the pre-conditioned wireless communications mode determined between intelligent remote controller and controlled device connected, avoid a WiFi module and send too much useless connection request to the 2nd WiFi module, reduce the electric quantity consumption of intelligent remote controller, and then extend the service time of battery of intelligent remote controller.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (20)

1. a changing method for wireless communications mode, is applied on intelligent remote controller, it is characterized in that, described method comprises:
When listening to key-press event and determining to need to send key command to controlled device, determine whether the WiFi module on recorded described intelligent remote controller and the 2nd WiFi module on controlled device are connection status;
If determine that the state between the described WiFi module that records and described 2nd WiFi module is connection status, determine whether a described WiFi module and described 2nd WiFi module reach connect pre-conditioned;
If determine to reach described pre-conditioned, set up the communication connection between a described WiFi module and described 2nd WiFi module, and send described key command by a described WiFi module to described 2nd WiFi module; If determine not reach described pre-conditioned, send described key command by the infrared module on described telepilot to described controlled device.
2. method according to claim 1, is characterized in that, described method also comprises:
Determine whether a described WiFi module and described 2nd WiFi module match;
If determine pairing, perform and describedly determine that whether the WiFi module on recorded described intelligent remote controller and the 2nd WiFi module on controlled device be the step of connection status;
If determine not match, perform the described step being sent described key command by the infrared module on described telepilot to described controlled device.
3. method according to claim 1, is characterized in that, describedly determines whether a described WiFi module and described 2nd WiFi module reach the pre-conditioned step connected and comprise:
Determine the request number of times of the request of connecting that a described WiFi module has sent to described 2nd WiFi module;
When described request number of times reaches the first predetermined threshold value, determine that a described WiFi module and described 2nd WiFi module reach connect pre-conditioned.
4. method according to claim 3, is characterized in that, the described step setting up communication connection between a described WiFi module and described 2nd WiFi module comprises:
Send to described 2nd WiFi module the request of connecting by a described WiFi module;
If a described WiFi module receives the acknowledge message from described 2nd WiFi module, set up the communication connection with described 2nd WiFi module, described request number of times is reset;
If a described WiFi module does not receive the acknowledge message from described 2nd WiFi module, 1 is added to described request number of times, sends described key command by described infrared module to described controlled device.
5. method according to claim 1, is characterized in that, describedly determines whether a described WiFi module and described 2nd WiFi module reach the pre-conditioned step connected and comprise:
Determine whether the touch potential sending key command to described controlled device by described infrared module reaches the second predetermined threshold value;
When described touch potential reaches the second predetermined threshold value, determine that a described WiFi module and described 2nd WiFi module reach connect pre-conditioned.
6. method according to claim 5, is characterized in that, the described step setting up communication connection between a described WiFi module and described 2nd WiFi module comprises:
Send to described 2nd WiFi module the request of connecting by a described WiFi module;
If a described WiFi module receives the acknowledge message from described 2nd WiFi module, set up the communication connection with described 2nd WiFi module, described touch potential is reset;
If a described WiFi module does not receive the acknowledge message from described 2nd WiFi module, 1 is added to described touch potential, sends described key command by described infrared module to described controlled device.
7. method according to claim 1, is characterized in that, describedly determines whether a described WiFi module and described 2nd WiFi module reach the pre-conditioned step connected and comprise:
Determine whether the disconnection duration disconnected between a described WiFi module and described 2nd WiFi module reaches preset duration;
When described disconnection duration reaches preset duration, determine that a described WiFi module and described 2nd WiFi module reach connect pre-conditioned.
8. method according to claim 7, is characterized in that, the described step setting up communication connection between a described WiFi module and described 2nd WiFi module comprises:
Send to described 2nd WiFi module the request of connecting by a described WiFi module;
If a described WiFi module receives the acknowledge message from described 2nd WiFi module, set up the communication connection with described 2nd WiFi module, described disconnection duration is reset, again timing is carried out to described disconnection duration;
If a described WiFi module does not receive the acknowledge message of described 2nd WiFi module, continue, to the timing of described disconnection duration, to send described key command by described infrared module to described controlled device.
9. method according to claim 1, is characterized in that, described method also comprises:
If a described WiFi module and described 2nd WiFi module keep the connection status recorded, perform the described step being sent described key command by a described WiFi module to described 2nd WiFi module.
10., according to the arbitrary described method of claim 1-9, it is characterized in that, described method also comprises:
If receive the feedback message that described controlled device returns according to described key command, keep a described WiFi module and described second for the communication connection between root WiFi module, and the described WiFi module and described second that renewal is recorded is for the connection status between root WiFi module; If do not receive described feedback message, perform the described step being sent described key command by the infrared module on described telepilot to described controlled device.
The switching device shifter of 11. 1 kinds of wireless communications modes, is applied on intelligent remote controller, it is characterized in that, described device comprises:
First determination module, for when listening to key-press event and determining to need to send key command to controlled device, determines whether the WiFi module on recorded described intelligent remote controller and the 2nd WiFi module on controlled device are connection status;
Second determination module, if determine that the state between the described WiFi module that records and described 2nd WiFi module is connection status for described first determination module, determine whether a described WiFi module and described 2nd WiFi module reach connect pre-conditioned;
WiFi communication module, if determine to reach described pre-conditioned for described second determination module, set up the communication connection between a described WiFi module and described 2nd WiFi module, and send described key command by a described WiFi module to described 2nd WiFi module;
Infrared sending module, if determine not reach described pre-conditioned for described second determination module, sends described key command by the infrared module on described telepilot to described controlled device.
12. devices according to claim 11, is characterized in that, described device also comprises:
3rd determination module, for determining whether a described WiFi module and described 2nd WiFi module match;
If described 3rd determination module determines pairing, described first determination module performs describedly determines that whether the WiFi module on recorded described intelligent remote controller and the 2nd WiFi module on controlled device be the step of connection status;
If described 3rd determination module is determined not match, described infrared sending module performs the described step being sent described key command by the infrared module on described telepilot to described controlled device.
13. devices according to claim 11, is characterized in that, described second determination module comprises:
First determining unit, for determining the request number of times of the request of connecting that a described WiFi module has sent to described 2nd WiFi module;
Second determining unit, for when described first determining unit determination described request number of times reaches the first predetermined threshold value, determines that a described WiFi module and described 2nd WiFi module reach connect pre-conditioned.
14. devices according to claim 13, is characterized in that, described WiFi communication module comprises:
First communication unit, for sending to described 2nd WiFi module the request of connecting by a described WiFi module;
First processing unit, if receive the acknowledge message from described 2nd WiFi module for described first communication unit, sets up the communication connection with described 2nd WiFi module, resets described request number of times;
If described first communication unit does not receive the acknowledge message from described 2nd WiFi module, described first processing unit is also for adding 1 to described request number of times, and described infrared sending module sends described key command by described infrared module to described controlled device.
15. devices according to claim 11, is characterized in that, described second determination module comprises:
3rd determining unit, for determining whether the touch potential sending key command to described controlled device by described infrared module reaches the second predetermined threshold value;
4th determining unit, for when described 3rd determining unit determines that described touch potential reaches the second predetermined threshold value, determines that a described WiFi module and described 2nd WiFi module reach connect pre-conditioned.
16. devices according to claim 15, is characterized in that, described WiFi communication module comprises:
Second communication unit, for sending to described 2nd WiFi module the request of connecting by a described WiFi module;
Second processing unit, if receive the acknowledge message from described 2nd WiFi module for described second communication unit, resets described touch potential;
If described second communication unit does not receive the acknowledge message from described 2nd WiFi module, described second processing unit adds 1 to described touch potential, and described infrared sending module sends described key command by described infrared module to described controlled device.
17. devices according to claim 11, is characterized in that, described second determination module comprises:
5th determining unit, for determining whether the disconnection duration disconnected between a described WiFi module and described 2nd WiFi module reaches preset duration;
6th determining unit, for when described 5th determining unit determines that described disconnection duration reaches preset duration, determines that a described WiFi module and described 2nd WiFi module reach connect pre-conditioned.
18. devices according to claim 17, is characterized in that, described WiFi communication module comprises:
Third communication unit, for sending to described 2nd WiFi module the request of connecting by a described WiFi module;
3rd processing unit, if receive the acknowledge message from described 2nd WiFi module for described third communication unit, sets up the communication connection with described 2nd WiFi module, again carries out timing to described disconnection duration;
When described third communication unit does not receive the acknowledge message of described 2nd WiFi module, described 3rd processing unit is used for continuing the timing of described disconnection duration, and described infrared sending module sends described key command by described infrared module to described controlled device.
19. devices according to claim 11, is characterized in that, described device also comprises:
If described first determination module determines that a described WiFi module and described 2nd WiFi module keep the connection status recorded, described WiFi communication module performs the described step being sent described key command by a described WiFi module to described 2nd WiFi module.
20. according to the arbitrary described device of claim 11-19, and it is characterized in that, described device also comprises:
Receiver module, for receiving the feedback message that described controlled device returns according to described key command;
If described receiver module receives the feedback message that described controlled device returns according to described key command, described WiFi communication module keeps a described WiFi module and described second for the communication connection between root WiFi module, and is connection status by recorded a described WiFi module and described second for the state updating between root WiFi module; If described receiver module does not receive described feedback message, described infrared sending module performs the described step being sent described key command by the infrared module on described telepilot to described controlled device.
CN201510051669.8A 2015-01-30 2015-01-30 Switching method and switching device of wireless communication mode Pending CN104599473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510051669.8A CN104599473A (en) 2015-01-30 2015-01-30 Switching method and switching device of wireless communication mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510051669.8A CN104599473A (en) 2015-01-30 2015-01-30 Switching method and switching device of wireless communication mode

Publications (1)

Publication Number Publication Date
CN104599473A true CN104599473A (en) 2015-05-06

Family

ID=53125219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510051669.8A Pending CN104599473A (en) 2015-01-30 2015-01-30 Switching method and switching device of wireless communication mode

Country Status (1)

Country Link
CN (1) CN104599473A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867312A (en) * 2015-06-02 2015-08-26 阔地教育科技有限公司 Remote control method and remote controller
CN104967888A (en) * 2015-06-30 2015-10-07 小米科技有限责任公司 Remote control method and device and remote control equipment
CN104967892A (en) * 2015-06-30 2015-10-07 青岛海信电器股份有限公司 Remote controller data transmitting and receiving methods and device
CN105786157A (en) * 2016-03-04 2016-07-20 合肥联宝信息技术有限公司 Electronic device and control method thereof
CN111653072A (en) * 2019-03-04 2020-09-11 青岛海尔多媒体有限公司 Method for controlling remote controller, remote controller and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1419189A (en) * 2001-11-13 2003-05-21 纬创资通股份有限公司 Leanring function for radio remote controller
US20050288054A1 (en) * 2004-06-25 2005-12-29 Casio Hitachi Mobile Communications Co. Wireless communication terminal and communication method
CN101615339A (en) * 2008-06-25 2009-12-30 索尼株式会社 Telepilot
CN101765186A (en) * 2008-12-24 2010-06-30 中兴通讯股份有限公司 Dual-mode mobile phone and method for selecting networks automatically thereof
CN104105169A (en) * 2014-07-25 2014-10-15 小米科技有限责任公司 Method and device for automatically connecting with wireless local area network
CN105594176A (en) * 2013-07-05 2016-05-18 柏思科技有限公司 Methods and systems for transmitting packets through network interfaces

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1419189A (en) * 2001-11-13 2003-05-21 纬创资通股份有限公司 Leanring function for radio remote controller
US20050288054A1 (en) * 2004-06-25 2005-12-29 Casio Hitachi Mobile Communications Co. Wireless communication terminal and communication method
CN101615339A (en) * 2008-06-25 2009-12-30 索尼株式会社 Telepilot
CN101765186A (en) * 2008-12-24 2010-06-30 中兴通讯股份有限公司 Dual-mode mobile phone and method for selecting networks automatically thereof
CN105594176A (en) * 2013-07-05 2016-05-18 柏思科技有限公司 Methods and systems for transmitting packets through network interfaces
CN104105169A (en) * 2014-07-25 2014-10-15 小米科技有限责任公司 Method and device for automatically connecting with wireless local area network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867312A (en) * 2015-06-02 2015-08-26 阔地教育科技有限公司 Remote control method and remote controller
CN104967888A (en) * 2015-06-30 2015-10-07 小米科技有限责任公司 Remote control method and device and remote control equipment
CN104967892A (en) * 2015-06-30 2015-10-07 青岛海信电器股份有限公司 Remote controller data transmitting and receiving methods and device
CN105786157A (en) * 2016-03-04 2016-07-20 合肥联宝信息技术有限公司 Electronic device and control method thereof
CN111653072A (en) * 2019-03-04 2020-09-11 青岛海尔多媒体有限公司 Method for controlling remote controller, remote controller and storage medium

Similar Documents

Publication Publication Date Title
US10855811B2 (en) Network device and information processing method
WO2021243968A1 (en) Network distribution method of home appliance, terminal, storage medium, and home appliance
CN104599473A (en) Switching method and switching device of wireless communication mode
CN110266810B (en) Message receiving method, device and storage medium based on MQTT protocol
US20150201440A1 (en) BLUETOOTH Device Connection Method and Device
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
WO2021057160A1 (en) Method for establishing communication connection after device is offline and smart home system
CN105308673A (en) Methods, systems, and media for managing output of an HDMI source
US9060288B2 (en) Configuring wireless devices for a wireless infrastructure network
CN104412245A (en) Modular wireless power, light and automation control
JP2017522844A (en) Fast charging method, power adapter and mobile terminal
CN105187871A (en) NFC-based data transmission method for mobile terminal and television terminal and system thereof
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
WO2020034908A1 (en) Method for communication between remote control and mobile terminal, device, and remote control
WO2021017156A1 (en) Method for connecting remote control device and host
CN111542130A (en) Method and device for controlling household appliance and terminal equipment
CN104469970B (en) A kind of method and apparatus reconnecting data network
CN110769033A (en) Intelligent networking method and system
CN105792015B (en) Far-end network connection method and system based on smart television
CN105956458A (en) Interaction control method and device for terminals
US20160285949A1 (en) Wireless login-based remote control method and device
US11812487B2 (en) Method, device, extender, and computer medium for automatically restoring connection
WO2018107542A1 (en) Intelligent device and household appliance
CN103442160A (en) Network switching method and intelligent television
WO2023061076A1 (en) Bluetooth connection method and apparatus, earphone, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160115

Address after: Korea 101399 Beijing city Shunyi District town culture camp north of the village (two Airport Road No. 1)

Applicant after: Mobile intelligent information technology (Beijing) Co., Ltd.

Address before: 300467 Tianjin Binhai New Area, ecological city, animation Middle Road, building, No. two, B1 District, 201-427

Applicant before: LESHI ZHIXIN ELECTRONIC SCIENCE & TECHNOLOGY (TIANJIN) CO., LTD.

AD01 Patent right deemed abandoned

Effective date of abandoning: 20190326

AD01 Patent right deemed abandoned