Method and system for intelligently switching control objects
Technical Field
The invention relates to the technical field of intelligent control, in particular to a method and a system for intelligently switching control objects.
Background
In the prior art, most of the electronic devices are a keyboard for controlling a host, and as the number of the electronic devices increases, a user may need to operate a plurality of electronic devices many times, and it is troublesome to switch the operation keyboard back and forth as different computers are operated at the same time. An independent switch is also arranged, the keyboard control right is switched through the control switch, the switch is required to be specially adjusted, and the keyboard control right is inconvenient to switch repeatedly; how to switch the keyboard control right intelligently and protect the privacy of the user is a difficult point.
Disclosure of Invention
The invention discloses a method for intelligently switching control objects, which is applied to a keyboard for controlling a plurality of objects, wherein the keyboard at least comprises a wireless transmitter and a pressure sensor, and the pressure sensor is arranged on a supporting piece of the keyboard;
the control method comprises the following steps:
sensing a first trigger signal of a keyboard space key;
sensing a second trigger signal of the pressure sensor;
sensing a third trigger signal of a keyboard space key;
judging whether the second trigger signal is received within a first preset time period after the first trigger signal, if not, entering signal sensing of the next period, and sensing the first trigger signal again; if yes, judging whether the third trigger signal is received within a second preset time period, and if yes, triggering the keyboard to switch the control object.
The method for intelligently switching control objects, wherein the first trigger signal comprises at least two presses of the space key; the second trigger signal comprises at least one time when the pressure exceeds a preset threshold value, and the pressure sensing value exceeds the pressure threshold value in the first time period; the third trigger signal comprises a space key press.
The method for intelligently switching the control objects comprises that the keyboard comprises at least four supporting pieces, the supporting pieces are arranged at the bottom of the keyboard and are used for fixedly supporting the keyboard when the keyboard is placed, and the pressure sensor is arranged in the supporting pieces; the four supporting pieces are arranged at the positions, close to four corners, of the bottom of the keyboard, wherein the two supporting pieces close to the front end of the keyboard can adjust the inclination angle of the keyboard, and the pressure sensors are arranged in the two supporting pieces close to the rear end of the keyboard; two support pieces near the keyboard rear end are set as a first support piece and a second support piece, and the first support piece and the second support piece are the same in structure and both comprise: the sensor comprises a supporting outer shell, a supporting inner shell, an elastic element and a sensing element; the supporting outer shell is a cuboid with a gap at the lower part and a hollow inner part, one end of the elastic element is fixed on the upper wall of the supporting outer shell, the other end of the elastic element is connected with the upper part of the supporting inner shell, the lower part of the supporting inner shell is contacted with a supporting surface of the keyboard, the supporting inner shell and the supporting outer shell can move relatively under the action of the elastic element, and the sensing element is arranged on the side wall of the supporting outer shell and used for sensing the relative displacement of the supporting inner shell relative to the supporting outer shell;
when the keyboard is normally placed on the supporting surface and is not used, the supporting inner shell and the supporting outer shell have first relative displacement due to the self gravity of the keyboard, the sensing element stores the first relative displacement as a basic value, when the user uses the keyboard, the supporting inner shell and the supporting outer shell further form a second relative displacement due to the gravity of the user hand, the sensing element stores the second relative displacement as an initial value, calculates a displacement difference value of the initial value and a base value, setting a pressure threshold according to the displacement difference, when the displacement difference is larger than the first displacement deviation and smaller than the second displacement deviation, setting the displacement between the supporting inner shell and the supporting outer shell corresponding to the pressure threshold value as a third relative displacement, when the keyboard is pressed under the action of the gravity of the user hand and exceeds a third relative displacement on the basis of the initial value, triggering the pressure sensing value to exceed a pressure threshold value; and when the displacement difference is larger than the second displacement deviation, setting the displacement between the support inner shell and the support outer shell corresponding to the pressure threshold value as a fourth relative displacement, and when the keyboard is pressed to exceed the fourth relative displacement on the basis of the initial value under the action of the gravity of the hand of the user, triggering the pressure sensing value to exceed the pressure threshold value.
In the method for intelligently switching control objects, the second trigger signal includes that the pressure sensing value exceeds the pressure threshold value in the first time period, and the triggering mode of the second trigger signal is as follows: detecting whether the first trigger signal is received or not, if the first trigger signal is detected, sensing a pressure value on any one of the four supporting pieces by the pressure sensor in real time, judging whether the pressure value exceeds a pressure threshold value or not, if so, judging a first difference value between a second moment when the pressure exceeds the pressure threshold value and a first moment when the first trigger signal is detected, if the first difference value is less than or equal to the first time period, generating the second trigger signal, and if the first difference value is greater than the first time period, not generating the second trigger signal.
After the second trigger signal is generated, the method for intelligently switching the control object further includes: detecting whether the space key is pressed in real time, if so, recording the third time when the space key is pressed, solving a second difference value between the third time and the second time, comparing the second difference value with the second time period, if the second difference value is less than or equal to the second time period, generating a control instruction for switching a control object, triggering the keyboard to switch the control object, if the second difference value is greater than the second time period, not generating the switching control object, starting the next switching cycle control, and monitoring and waiting for the first trigger signal.
A system for intelligently switching control objects is applied to a keyboard for controlling a plurality of objects, the keyboard at least comprises a wireless transmitter and a pressure sensor, and the pressure sensor is arranged on a support piece of the keyboard;
the system comprises:
the first sensing module is used for sensing a first trigger signal of the keyboard space key and sensing a third trigger signal of the keyboard space key;
the second sensing module senses a second trigger signal of the pressure sensor;
the time module is connected with the first sensing module and the second sensing module and used for recording a first moment of generating the first trigger signal, a second moment of generating the second trigger signal and a third moment of generating the third trigger signal;
the control module is connected with the first sensing module, the second sensing module and the time module and is used for judging whether the second trigger signal is received within a first preset time period after the first trigger signal, if not, the signal sensing of the next period is started, and the first trigger signal is sensed again; if yes, judging whether the third trigger signal is received within a second preset time period, and if yes, triggering the keyboard to switch the control object;
the pressure sensor is connected with the control module, the control module comprises a receiving unit, a deviation comparison unit and a frequency switching unit, the receiving unit is used for the first trigger signal, the second trigger signal, the third trigger signal and the time recorded by the time module, the deviation comparison unit is used for judging whether the time difference among the received first trigger signal, the second trigger signal and the third trigger signal is within a preset range or not and outputting a judgment result to the frequency switching unit, and the frequency switching unit is used for generating different frequencies for switching control objects according to the result.
The system for intelligently switching control objects, wherein the first trigger signal comprises at least two presses of the space key; the second trigger signal comprises at least one time when the pressure exceeds a preset threshold value, and the pressure sensing value exceeds the pressure threshold value in the first time period; the third trigger signal comprises a space key press.
The system for intelligently switching the control objects comprises a keyboard, a pressure sensor and a control module, wherein the keyboard comprises at least four supporting pieces, the supporting pieces are arranged at the bottom of the keyboard and are used for fixedly supporting the keyboard when the keyboard is placed, and the pressure sensor is arranged in the supporting pieces; the four supporting pieces are arranged at the positions, close to four corners, of the bottom of the keyboard, wherein the two supporting pieces close to the front end of the keyboard can adjust the inclination angle of the keyboard, and the pressure sensors are arranged in the two supporting pieces close to the rear end of the keyboard; two support pieces near the keyboard rear end are set as a first support piece and a second support piece, and the first support piece and the second support piece are the same in structure and both comprise: the sensor comprises a supporting outer shell, a supporting inner shell, an elastic element and a sensing element; the supporting outer shell is a cuboid with a gap at the lower part and a hollow inner part, one end of the elastic element is fixed on the upper wall of the supporting outer shell, the other end of the elastic element is connected with the upper part of the supporting inner shell, the lower part of the supporting inner shell is contacted with a supporting surface of the keyboard, the supporting inner shell and the supporting outer shell can move relatively under the action of the elastic element, and the sensing element is arranged on the side wall of the supporting outer shell and used for sensing the relative displacement of the supporting inner shell relative to the supporting outer shell;
when the keyboard is normally placed on the supporting surface and is not used, the supporting inner shell and the supporting outer shell have first relative displacement due to the self gravity of the keyboard, the sensing element stores the first relative displacement as a basic value, when the user uses the keyboard, the supporting inner shell and the supporting outer shell further form a second relative displacement due to the gravity of the user hand, the sensing element stores the second relative displacement as an initial value, calculates a displacement difference value of the initial value and a base value, setting a pressure threshold according to the displacement difference, when the displacement difference is larger than the first displacement deviation and smaller than the second displacement deviation, setting the displacement between the supporting inner shell and the supporting outer shell corresponding to the pressure threshold value as a third relative displacement, when the keyboard is pressed under the action of the gravity of the user hand and exceeds a third relative displacement on the basis of the initial value, triggering the pressure sensing value to exceed a pressure threshold value; and when the displacement difference is larger than the second displacement deviation, setting the displacement between the support inner shell and the support outer shell corresponding to the pressure threshold value as a fourth relative displacement, and when the keyboard is pressed to exceed the fourth relative displacement on the basis of the initial value under the action of the gravity of the hand of the user, triggering the pressure sensing value to exceed the pressure threshold value.
In the system for intelligently switching control objects, the second trigger signal includes that the pressure sensing value exceeds the pressure threshold value in the first time period, and the triggering mode of the second trigger signal is as follows: detecting whether the first trigger signal is received or not, if the first trigger signal is detected, sensing a pressure value on any one of the four supporting pieces by the pressure sensor in real time, judging whether the pressure value exceeds a pressure threshold value or not, if so, judging a first difference value between a second moment when the pressure exceeds the pressure threshold value and a first moment when the first trigger signal is detected, if the first difference value is less than or equal to the first time period, generating the second trigger signal, and if the first difference value is greater than the first time period, not generating the second trigger signal.
The system for intelligently switching the control object, after generating the second trigger signal, further comprises: detecting whether the space key is pressed in real time, if so, recording the third time when the space key is pressed, solving a second difference value between the third time and the second time, comparing the second difference value with the second time period, if the second difference value is less than or equal to the second time period, generating a control instruction for switching a control object, triggering the keyboard to switch the control object, if the second difference value is greater than the second time period, not generating the switching control object, starting the next switching cycle control, and monitoring and waiting for the first trigger signal.
According to the method and the device, the keyboard control right can be switched according to the operation information of the user, one keyboard can control a plurality of host devices, intelligent switching is achieved, and the privacy of the user is protected. The method is one of the main improvement points of the invention, and is characterized in that whether the switching of the control object is triggered or not is judged through the first control of the space key of the keyboard, the gravity of the keyboard which is controlled by the intention of a user and the time sequence of the second control of the space key of the keyboard, and the cutting of the control object can be rapidly carried out through the time sequences of three different triggered signals, so that the inconvenience and the swiftness of using a single mechanical knob to control the switching in the prior art are overcome, and the potential safety hazard caused by image acquisition through a camera in the prior art is also overcome; one of the innovative improvements of the present invention is that through certain different operations of three trigger signals on a time line, misoperation caused by a single signal is avoided, a space key of a keyboard is reused, and in cooperation with pressure sensing, through controlling the space key twice and setting pressure sensing between two different trigger signals for controlling the space key, misoperation caused by simply controlling the space key or simply controlling pressure sensing is avoided, and accuracy of switching triggering of switching control right is improved. One of the main improvements of the present invention is that the pressure sensing component is arranged at the bottom of the keyboard, different values of pressures of different users are realized by improving the pressure sensing mode and by displacement and the like, so that the adaptability of the keyboard to sense the pressure is improved, the adaptability of the second trigger signal is effectively and rapidly performed by switching between the displacement and the pressure arranged in the shell, and meanwhile, the space key sensing is performed after the second trigger signal, so that the accuracy of the switching control trigger is improved.
Drawings
Fig. 1 is a schematic diagram of a method for intelligently switching control objects according to the present invention.
FIG. 2 is a schematic diagram of a system for intelligently switching control objects according to the present invention.
Detailed Description
The present application will now be described in further detail with reference to the drawings, it should be noted that the following detailed description is given for illustrative purposes only and is not to be construed as limiting the scope of the present application, as those skilled in the art will be able to make numerous insubstantial modifications and adaptations to the present application based on the above disclosure.
As shown in fig. 1, a schematic diagram of a method for intelligently switching control objects is disclosed for the present invention, which is applied to a keyboard for controlling a plurality of objects, the keyboard at least includes a wireless transmitter and a pressure sensor, the pressure sensor is disposed on a supporting member of the keyboard;
the control method comprises the following steps:
sensing a first trigger signal of a keyboard space key;
sensing a second trigger signal of the pressure sensor;
sensing a third trigger signal of a keyboard space key;
judging whether the second trigger signal is received within a first preset time period after the first trigger signal, if not, entering signal sensing of the next period, and sensing the first trigger signal again; if yes, judging whether the third trigger signal is received within a second preset time period, and if yes, triggering the keyboard to switch the control object.
The method for intelligently switching control objects, wherein the first trigger signal comprises at least two presses of the space key; the second trigger signal comprises at least one time when the pressure exceeds a preset threshold value, and the pressure sensing value exceeds the pressure threshold value in the first time period; the third trigger signal comprises a space key press.
The method for intelligently switching the control objects comprises that the keyboard comprises at least four supporting pieces, the supporting pieces are arranged at the bottom of the keyboard and are used for fixedly supporting the keyboard when the keyboard is placed, and the pressure sensor is arranged in the supporting pieces; the four supporting pieces are arranged at the positions, close to four corners, of the bottom of the keyboard, wherein the two supporting pieces close to the front end of the keyboard can adjust the inclination angle of the keyboard, and the pressure sensors are arranged in the two supporting pieces close to the rear end of the keyboard; two support pieces near the keyboard rear end are set as a first support piece and a second support piece, and the first support piece and the second support piece are the same in structure and both comprise: the sensor comprises a supporting outer shell, a supporting inner shell, an elastic element and a sensing element; the supporting outer shell is a cuboid with a gap at the lower part and a hollow inner part, one end of the elastic element is fixed on the upper wall of the supporting outer shell, the other end of the elastic element is connected with the upper part of the supporting inner shell, the lower part of the supporting inner shell is contacted with a supporting surface of the keyboard, the supporting inner shell and the supporting outer shell can move relatively under the action of the elastic element, and the sensing element is arranged on the side wall of the supporting outer shell and used for sensing the relative displacement of the supporting inner shell relative to the supporting outer shell;
when the keyboard is normally placed on the supporting surface and is not used, the supporting inner shell and the supporting outer shell have first relative displacement due to the self gravity of the keyboard, the sensing element stores the first relative displacement as a basic value, when the user uses the keyboard, the supporting inner shell and the supporting outer shell further form a second relative displacement due to the gravity of the user hand, the sensing element stores the second relative displacement as an initial value, calculates a displacement difference value of the initial value and a base value, setting a pressure threshold according to the displacement difference, when the displacement difference is larger than the first displacement deviation and smaller than the second displacement deviation, setting the displacement between the supporting inner shell and the supporting outer shell corresponding to the pressure threshold value as a third relative displacement, when the keyboard is pressed under the action of the gravity of the user hand and exceeds a third relative displacement on the basis of the initial value, triggering the pressure sensing value to exceed a pressure threshold value; and when the displacement difference is larger than the second displacement deviation, setting the displacement between the support inner shell and the support outer shell corresponding to the pressure threshold value as a fourth relative displacement, and when the keyboard is pressed to exceed the fourth relative displacement on the basis of the initial value under the action of the gravity of the hand of the user, triggering the pressure sensing value to exceed the pressure threshold value.
In the method for intelligently switching control objects, the second trigger signal includes that the pressure sensing value exceeds the pressure threshold value in the first time period, and the triggering mode of the second trigger signal is as follows: detecting whether the first trigger signal is received or not, if the first trigger signal is detected, sensing a pressure value on any one of the four supporting pieces by the pressure sensor in real time, judging whether the pressure value exceeds a pressure threshold value or not, if so, judging a first difference value between a second moment when the pressure exceeds the pressure threshold value and a first moment when the first trigger signal is detected, if the first difference value is less than or equal to the first time period, generating the second trigger signal, and if the first difference value is greater than the first time period, not generating the second trigger signal.
After the second trigger signal is generated, the method for intelligently switching the control object further includes: detecting whether the space key is pressed in real time, if so, recording the third time when the space key is pressed, solving a second difference value between the third time and the second time, comparing the second difference value with the second time period, if the second difference value is less than or equal to the second time period, generating a control instruction for switching a control object, triggering the keyboard to switch the control object, if the second difference value is greater than the second time period, not generating the switching control object, starting the next switching cycle control, and monitoring and waiting for the first trigger signal.
Fig. 2 is a schematic diagram of a system for intelligently switching control objects according to the present invention. A system for intelligently switching control objects is applied to a keyboard for controlling a plurality of objects, the keyboard at least comprises a wireless transmitter and a pressure sensor, and the pressure sensor is arranged on a support piece of the keyboard;
the system comprises:
the first sensing module is used for sensing a first trigger signal of the keyboard space key and sensing a third trigger signal of the keyboard space key;
the second sensing module senses a second trigger signal of the pressure sensor;
the time module is connected with the first sensing module and the second sensing module and used for recording a first moment of generating the first trigger signal, a second moment of generating the second trigger signal and a third moment of generating the third trigger signal;
the control module is connected with the first sensing module, the second sensing module and the time module and is used for judging whether the second trigger signal is received within a first preset time period after the first trigger signal, if not, the signal sensing of the next period is started, and the first trigger signal is sensed again; if yes, judging whether the third trigger signal is received within a second preset time period, and if yes, triggering the keyboard to switch the control object;
the pressure sensor is connected with the control module, the control module comprises a receiving unit, a deviation comparison unit and a frequency switching unit, the receiving unit is used for the first trigger signal, the second trigger signal, the third trigger signal and the time recorded by the time module, the deviation comparison unit is used for judging whether the time difference among the received first trigger signal, the second trigger signal and the third trigger signal is within a preset range or not and outputting a judgment result to the frequency switching unit, and the frequency switching unit is used for generating different frequencies for switching control objects according to the result.
The system for intelligently switching control objects, wherein the first trigger signal comprises at least two presses of the space key; the second trigger signal comprises at least one time when the pressure exceeds a preset threshold value, and the pressure sensing value exceeds the pressure threshold value in the first time period; the third trigger signal comprises a space key press.
The system for intelligently switching the control objects comprises a keyboard, a pressure sensor and a control module, wherein the keyboard comprises at least four supporting pieces, the supporting pieces are arranged at the bottom of the keyboard and are used for fixedly supporting the keyboard when the keyboard is placed, and the pressure sensor is arranged in the supporting pieces; the four supporting pieces are arranged at the positions, close to four corners, of the bottom of the keyboard, wherein the two supporting pieces close to the front end of the keyboard can adjust the inclination angle of the keyboard, and the pressure sensors are arranged in the two supporting pieces close to the rear end of the keyboard; two support pieces near the keyboard rear end are set as a first support piece and a second support piece, and the first support piece and the second support piece are the same in structure and both comprise: the sensor comprises a supporting outer shell, a supporting inner shell, an elastic element and a sensing element; the supporting outer shell is a cuboid with a gap at the lower part and a hollow inner part, one end of the elastic element is fixed on the upper wall of the supporting outer shell, the other end of the elastic element is connected with the upper part of the supporting inner shell, the lower part of the supporting inner shell is contacted with a supporting surface of the keyboard, the supporting inner shell and the supporting outer shell can move relatively under the action of the elastic element, and the sensing element is arranged on the side wall of the supporting outer shell and used for sensing the relative displacement of the supporting inner shell relative to the supporting outer shell;
when the keyboard is normally placed on the supporting surface and is not used, the supporting inner shell and the supporting outer shell have first relative displacement due to the self gravity of the keyboard, the sensing element stores the first relative displacement as a basic value, when the user uses the keyboard, the supporting inner shell and the supporting outer shell further form a second relative displacement due to the gravity of the user hand, the sensing element stores the second relative displacement as an initial value, calculates a displacement difference value of the initial value and a base value, setting a pressure threshold according to the displacement difference, when the displacement difference is larger than the first displacement deviation and smaller than the second displacement deviation, setting the displacement between the supporting inner shell and the supporting outer shell corresponding to the pressure threshold value as a third relative displacement, when the keyboard is pressed under the action of the gravity of the user hand and exceeds a third relative displacement on the basis of the initial value, triggering the pressure sensing value to exceed a pressure threshold value; and when the displacement difference is larger than the second displacement deviation, setting the displacement between the support inner shell and the support outer shell corresponding to the pressure threshold value as a fourth relative displacement, and when the keyboard is pressed to exceed the fourth relative displacement on the basis of the initial value under the action of the gravity of the hand of the user, triggering the pressure sensing value to exceed the pressure threshold value.
In the system for intelligently switching control objects, the second trigger signal includes that the pressure sensing value exceeds the pressure threshold value in the first time period, and the triggering mode of the second trigger signal is as follows: detecting whether the first trigger signal is received or not, if the first trigger signal is detected, sensing a pressure value on any one of the four supporting pieces by the pressure sensor in real time, judging whether the pressure value exceeds a pressure threshold value or not, if so, judging a first difference value between a second moment when the pressure exceeds the pressure threshold value and a first moment when the first trigger signal is detected, if the first difference value is less than or equal to the first time period, generating the second trigger signal, and if the first difference value is greater than the first time period, not generating the second trigger signal.
The system for intelligently switching the control object, after generating the second trigger signal, further comprises: detecting whether the space key is pressed in real time, if so, recording the third time when the space key is pressed, solving a second difference value between the third time and the second time, comparing the second difference value with the second time period, if the second difference value is less than or equal to the second time period, generating a control instruction for switching a control object, triggering the keyboard to switch the control object, if the second difference value is greater than the second time period, not generating the switching control object, starting the next switching cycle control, and monitoring and waiting for the first trigger signal.
According to the method and the device, the keyboard control right can be switched according to the operation information of the user, one keyboard can control a plurality of host devices, intelligent switching is achieved, and the privacy of the user is protected. The method is one of the main improvement points of the invention, and is characterized in that whether the switching of the control object is triggered or not is judged through the first control of the space key of the keyboard, the gravity of the keyboard which is controlled by the intention of a user and the time sequence of the second control of the space key of the keyboard, and the cutting of the control object can be rapidly carried out through the time sequences of three different triggered signals, so that the inconvenience and the swiftness of using a single mechanical knob to control the switching in the prior art are overcome, and the potential safety hazard caused by image acquisition through a camera in the prior art is also overcome; one of the innovative improvements of the present invention is that through certain different operations of three trigger signals on a time line, misoperation caused by a single signal is avoided, a space key of a keyboard is reused, and in cooperation with pressure sensing, through controlling the space key twice and setting pressure sensing between two different trigger signals for controlling the space key, misoperation caused by simply controlling the space key or simply controlling pressure sensing is avoided, and accuracy of switching triggering of switching control right is improved. One of the main improvements of the present invention is that the pressure sensing component is arranged at the bottom of the keyboard, different values of pressures of different users are realized by improving the pressure sensing mode and by displacement and the like, so that the adaptability of the keyboard to sense the pressure is improved, the adaptability of the second trigger signal is effectively and rapidly performed by switching between the displacement and the pressure arranged in the shell, and meanwhile, the space key sensing is performed after the second trigger signal, so that the accuracy of the switching control trigger is improved.