CN105891706B - The calibration method and device of distant bar on remote control equipment - Google Patents

The calibration method and device of distant bar on remote control equipment Download PDF

Info

Publication number
CN105891706B
CN105891706B CN201610194872.5A CN201610194872A CN105891706B CN 105891706 B CN105891706 B CN 105891706B CN 201610194872 A CN201610194872 A CN 201610194872A CN 105891706 B CN105891706 B CN 105891706B
Authority
CN
China
Prior art keywords
voltage value
key
standard
remote control
control equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610194872.5A
Other languages
Chinese (zh)
Other versions
CN105891706A (en
Inventor
王兴民
王爱军
许超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610194872.5A priority Critical patent/CN105891706B/en
Publication of CN105891706A publication Critical patent/CN105891706A/en
Application granted granted Critical
Publication of CN105891706B publication Critical patent/CN105891706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers
    • G01R31/3277Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The disclosure is directed to the calibration methods and device of distant bar on a kind of remote control equipment, belong to field of terminal technology.The described method includes: in an operation mode, receiving the button data packet that remote control equipment is sent, at least carrying key voltage value and key direction signs in button data packet;According to key direction signs, from pre-stored standard voltage data library, the corresponding target criteria voltage value of key direction signs is obtained;According to the relationship between key voltage value and target criteria voltage value, calculation corresponding with relationship is taken, calculates the corresponding key assignments of key voltage value.The disclosure is when bar distant on to remote control equipment is calibrated, directly under a proportional relationship calculate, but according to the relationship between the normal voltage stored in the key voltage value of remote control equipment and standard voltage data library, the corresponding key assignments of key voltage value is calculated using different calculations, since the key assignments obtained using this kind of mode is more accurate, thus improve control precision.

Description

The calibration method and device of distant bar on remote control equipment
Technical field
This disclosure relates on field of terminal technology more particularly to a kind of remote control equipment distant bar calibration method and device.
Background technique
Game paddle is a kind of common electronic game machine accessory, and user is by grasping the distant bar on game paddle Control, can control the object in game.With the development of science and technology, user have to the control precision of game paddle it is higher Requirement, this just needs to calibrate bar distant on game paddle.It can usually be obtained when bar distant on to game paddle is calibrated To a key assignments, which is the calibration result to bar distant on game paddle, can be to the mesh in game based on the key assignments terminal Mark object is controlled.
Currently, the game paddle sold in the market can be controlled in the horizontal and vertical directions by distant bar, In this way when bar distant on to game paddle is calibrated, also distant bar should be calibrated in the horizontal and vertical directions.Tool Sports school is punctual, and for horizontal direction, when setting distant bar and being in left end, the corresponding key assignments of collected voltage value is 0, at distant bar When right end, the corresponding key assignments of collected voltage value is 255, when distant bar is between left end and right end, according to Collected voltage value, directly proportionally relationship determines its key assignments;For vertical direction, when setting distant bar and being in the top, The corresponding key assignments of collected voltage value is 255, when distant bar be in bottom, and the corresponding key assignments of collected voltage value is 0, when When distant bar is in topmost between bottom, according to collected voltage value, directly proportionally relationship determines its key assignments.
Summary of the invention
The disclosure provides the calibration method and device of distant bar on a kind of remote control equipment.
According to the first aspect of the embodiments of the present disclosure, a kind of calibration method of distant bar on remote control equipment, the method are provided Include:
In an operation mode, the button data packet that remote control equipment is sent is received, at least carries and presses in the button data packet Key voltage value and key direction signs;
According to the key direction signs, from pre-stored standard voltage data library, the key direction sign is obtained Know corresponding target criteria voltage value, pair being stored between direction signs and standard voltage value in the standard voltage data library It should be related to;
According to the relationship between the key voltage value and the target criteria voltage value, take corresponding with the relationship Calculation calculates the corresponding key assignments of the key voltage value.
It is described according to the key direction signs in another embodiment of the disclosure, from pre-stored standard electric It presses in database, before obtaining the corresponding target criteria voltage value of the key direction signs, further includes:
In the calibration mode, the first standard voltage value that the remote control equipment is sent, first standard voltage value are received It is adopted when being respectively at horizontal left end, horizontal right end, vertical the top and vertical bottom for distant bar on the remote control equipment The voltage value collected, first standard voltage value include ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage value and extremely descend voltage Value;
It receives the remote control equipment and sends the second standard voltage value, second standard voltage value is on the remote control equipment Distant bar collects when being moved to middle position from horizontal left end, horizontal right end, vertical the top and vertical bottom respectively Voltage value, second standard voltage value include left voltage value, the right side in voltage value, upper middle voltage value and lower middle voltage value;
According to the acquisition direction of voltage value, by first standard voltage value, second standard voltage value and direction sign Corresponding relationship between knowledge is stored in standard voltage data library.
In another embodiment of the disclosure, the direction signs include horizontal direction mark and vertical direction mark;
It is described to obtain the key side from pre-stored standard voltage data library according to the key direction signs To the corresponding target criteria voltage value of mark, comprising:
If the key direction signs are horizontal direction mark, from the pre-stored standard voltage data library, The corresponding ultra-Left voltage value of Horizontal identification, ultra-Right voltage value, left voltage value, voltage value in the right side are obtained, as target criteria electricity Pressure value;
If the key direction signs are vertical direction mark, from the pre-stored standard voltage data library, It obtains the corresponding extremely upper voltage value of vertical voltage identification, extremely descend voltage value, upper middle voltage value, lower middle voltage value, as target mark Quasi- voltage value.
In another embodiment of the disclosure, it is described according to the key voltage value and the target criteria voltage value it Between relationship, take calculation corresponding with the relationship, calculate the corresponding key assignments of the key voltage value, comprising:
When the key direction signs are that horizontal direction identifies, the key voltage value and the left voltage value are judged And the relationship in the right side between voltage value;
If the key voltage value, which is less than the left voltage value, calculates the key voltage value using following formula Corresponding key assignments:
If the key voltage value calculates the key voltage value using following formula greater than voltage value in the right side Corresponding key assignments:
If the key voltage value is greater than the left voltage value and is less than voltage value in the right side, the key electricity is determined The corresponding key assignments of pressure value is
Wherein, x is the key voltage value, and a is the ultra-Left voltage value, and b is the ultra-Right voltage value, and c is the left side Middle voltage value, d are voltage value in the right side, and s is the corresponding key assignments of the key voltage value, and z is default key assignments.
In another embodiment of the disclosure, it is described according to the key voltage value and the target criteria voltage value it Between relationship, take calculation corresponding with the relationship, calculate the corresponding key assignments of the key voltage value, comprising:
When the key direction signs are that vertical direction identifies, the key voltage value and the lower middle voltage value are judged Relationship between the upper middle voltage value;
If the key voltage value, which is less than the lower middle voltage value, calculates the key voltage value using following formula Corresponding key assignments:
If the key voltage value, which is greater than the upper middle voltage value, calculates the key voltage value using following formula Corresponding key assignments:
If the key voltage value is greater than the lower middle voltage value and is less than the upper middle voltage value, the key electricity is determined The corresponding key assignments of pressure value is
Wherein, y is the key voltage value, and e extremely descends voltage value to be described, and f is the extremely upper voltage value, under g is described Middle voltage value, h are the upper middle voltage value, and t is the corresponding key assignments of the key voltage value, and z is default key assignments.
According to the second aspect of an embodiment of the present disclosure, a kind of calibrating installation of distant bar on remote control equipment, described device are provided Include:
First receiving module, it is described to press bond number in an operation mode, receiving the button data packet that remote control equipment is sent According at least carrying key voltage value and key direction signs in packet;
Module is obtained, for from pre-stored standard voltage data library, obtaining institute according to the key direction signs The corresponding target criteria voltage value of key direction signs is stated, is stored with direction signs and standard electric in the standard voltage data library Corresponding relationship between pressure value;
Computing module, for according to the relationship between the key voltage value and the target criteria voltage value, take with The corresponding calculation of relationship calculates the corresponding key assignments of the key voltage value.
In another embodiment of the disclosure, described device further include:
Second receiving module, the first standard voltage value sent in the calibration mode, receiving the remote control equipment, institute Stating the first standard voltage value is that distant bar is respectively at horizontal left end, horizontal right end, vertical the top on the remote control equipment And collected voltage value when vertical bottom, first standard voltage value include ultra-Left voltage value, ultra-Right voltage value, extremely on Voltage value and extremely descend voltage value;
Third receiving module sends the second standard voltage value, second normal voltage for receiving the remote control equipment Value is that distant bar is mobile from horizontal left end, horizontal right end, vertical the top and vertical bottom respectively on the remote control equipment Collected voltage value when to middle position, second standard voltage value include left voltage value, voltage value, upper middle electricity in the right side Pressure value and lower middle voltage value;
Memory module, for the acquisition direction according to voltage value, by first standard voltage value, second standard electric Corresponding relationship between pressure value and direction signs is stored in standard voltage data library.
In another embodiment of the disclosure, the direction signs include horizontal direction mark and vertical direction mark;
The acquisition module, for being horizontal direction mark when the key direction signs, from the pre-stored mark In quasi- voltage data library, the corresponding ultra-Left voltage value of Horizontal identification, ultra-Right voltage value, left voltage value, voltage value in the right side are obtained, As target criteria voltage value;When the key direction signs are vertical direction mark, from the pre-stored normal voltage In database, obtains the corresponding extremely upper voltage value of vertical voltage identification, extremely descends voltage value, upper middle voltage value, lower middle voltage value, make For target criteria voltage value.
In another embodiment of the disclosure, the computing module, for being level side when the key direction signs To relationship when identifying, judged in the key voltage value and the left voltage value and the right side between voltage value;When described Key voltage value is less than the left voltage value and calculates the corresponding key assignments of the key voltage value using following formula:
When the key voltage value calculates the key voltage value pair using following formula greater than voltage value in the right side The key assignments answered:
It is less than voltage value in the right side when the key voltage value is greater than the left voltage value, determines the key voltage Being worth corresponding key assignments is
Wherein, x is the key voltage value, and a is the ultra-Left voltage value, and b is the ultra-Right voltage value, and c is the left side Middle voltage value, d are voltage value in the right side, and s is the corresponding key assignments of the key voltage value, and z is default key assignments.
In another embodiment of the disclosure, the computing module, for being vertical side when the key direction signs To when identifying, the relationship between the key voltage value and the lower middle voltage value and the upper middle voltage value is judged;When described Key voltage value is less than the lower middle voltage value and calculates the corresponding key assignments of the key voltage value using following formula:
The key voltage value pair is calculated using following formula when the key voltage value is greater than the upper middle voltage value The key assignments answered:
It is less than the upper middle voltage value when the key voltage value is greater than the lower middle voltage value, determines the key voltage Being worth corresponding key assignments is
Wherein, y is the key voltage value, and e extremely descends voltage value to be described, and f is the extremely upper voltage value, under g is described Middle voltage value, h are the upper middle voltage value, and t is the corresponding key assignments of the key voltage value, and z is default key assignments.
According to the third aspect of an embodiment of the present disclosure, a kind of calibrating installation of distant bar on remote control equipment, processor are provided;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
In an operation mode, the button data packet that remote control equipment is sent is received, at least carries and presses in the button data packet Key voltage value and key direction signs;
According to the key direction signs, from pre-stored standard voltage data library, the key direction sign is obtained Know corresponding target criteria voltage value, pair being stored between direction signs and standard voltage value in the standard voltage data library It should be related to;
According to the relationship between the key voltage value and the target criteria voltage value, take corresponding with the relationship Calculation calculates the corresponding key assignments of the key voltage value.
The technical scheme provided by this disclosed embodiment can include the following benefits:
When bar distant on to remote control equipment is calibrated, directly under a proportional relationship calculate, but according to The relationship between normal voltage stored in the key voltage value of remote control equipment and standard voltage data library, using different calculating Mode calculates the corresponding key assignments of key voltage value, since the key assignments obtained using this kind of mode is more accurate, thus improves control Precision processed.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart of the calibration method of distant bar on a kind of remote control equipment shown according to an exemplary embodiment.
Fig. 2 is the flow chart of the calibration method of distant bar on a kind of remote control equipment shown according to an exemplary embodiment.
Fig. 3 is the calibrating installation schematic diagram of distant bar on a kind of remote control equipment shown according to an exemplary embodiment.
Fig. 4 is a kind of frame of the device of the calibration of bar distant on remote control equipment shown according to an exemplary embodiment Figure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is the flow chart of the calibration method of distant bar on a kind of remote control equipment shown according to an exemplary embodiment, such as Shown in Fig. 1, the calibration method of distant bar is for including the following steps in terminal on remote control equipment.
In step s101, in an operation mode, the button data packet that remote control equipment is sent is received, in the button data packet At least carry key voltage value and key direction signs.
In step s 102, according to key direction signs, from pre-stored standard voltage data library, key side is obtained To corresponding target criteria voltage value is identified, it is stored between direction signs and standard voltage value in the standard voltage data library Corresponding relationship.
In step s 103, it according to the relationship between key voltage value and target criteria voltage value, takes corresponding to relationship Calculation, calculate the corresponding key assignments of key voltage value.
The method that the embodiment of the present disclosure provides, when bar distant on to remote control equipment is calibrated, not directly according to ratio Relationship calculate, but according to the normal voltage stored in the key voltage value of remote control equipment and standard voltage data library it Between relationship, the corresponding key assignments of key voltage value is calculated using different calculation, due to the key obtained using this kind of mode It is more accurate to be worth, thus improves control precision.
In another embodiment of the disclosure, according to key direction signs, from pre-stored standard voltage data library In, before the corresponding target criteria voltage value of acquisition key direction signs, further includes:
In the calibration mode, the first standard voltage value that remote control equipment is sent is received, the first standard voltage value is that remote control is set Standby distant bar is respectively at collected voltage value when horizontal left end, horizontal right end, vertical the top and vertical bottom, First standard voltage value includes ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage value and extremely descends voltage value;
It receives remote control equipment and sends the second standard voltage value, the second standard voltage value is distant bar on remote control equipment respectively from water Flat left end, horizontal right end, it is vertical topmost and vertical bottom is moved to collected voltage value when middle position, second Standard voltage value include left voltage value, the right side in voltage value, upper middle voltage value and lower middle voltage value;
It, will be between the first standard voltage value, the second standard voltage value and direction signs according to the acquisition direction of voltage value Corresponding relationship is stored in standard voltage data library.
In another embodiment of the disclosure, direction signs include horizontal direction mark and vertical direction mark;
According to key direction signs, from pre-stored standard voltage data library, it is corresponding to obtain key direction signs Target criteria voltage value, comprising:
If key direction signs are horizontal direction mark, from pre-stored standard voltage data library, obtain horizontal Identify corresponding ultra-Left voltage value, ultra-Right voltage value, left voltage value, the right side in voltage value, as target criteria voltage value;
If key direction signs are vertical direction mark, from pre-stored standard voltage data library, it is vertical to obtain The corresponding extremely upper voltage value of voltage identification extremely descends voltage value, upper middle voltage value, lower middle voltage value, as target criteria voltage value.
In another embodiment of the disclosure, according to the relationship between key voltage value and target criteria voltage value, adopt Calculation corresponding with relationship is taken, the corresponding key assignments of key voltage value is calculated, comprising:
When key direction signs are that horizontal direction identifies, voltage value in key voltage value and left voltage value and the right side is judged Between relationship;
If key voltage value is less than left voltage value, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than voltage value in the right side, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than left voltage value and is less than voltage value in the right side, determine that the corresponding key assignments of key voltage value is
Wherein, x is key voltage value, and a is ultra-Left voltage value, and b is ultra-Right voltage value, and c is left voltage value, and d is in the right side Voltage value, s are the corresponding key assignments of key voltage value, and z is default key assignments.
In another embodiment of the disclosure, according to the relationship between key voltage value and target criteria voltage value, adopt Calculation corresponding with relationship is taken, the corresponding key assignments of key voltage value is calculated, comprising:
When key direction signs are that vertical direction identifies, key voltage value and lower middle voltage value and upper middle voltage value are judged Between relationship;
If key voltage value is less than lower middle voltage value, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than upper middle voltage value, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than lower middle voltage value and is less than upper middle voltage value, determine that the corresponding key assignments of key voltage value is
Wherein, y is key voltage value, and e is extremely to descend voltage value, and f is extremely upper voltage value, and g is lower middle voltage value, and h is in upper Voltage value, t are the corresponding key assignments of key voltage value, and z is default key assignments.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
Fig. 2 is the flow chart of the calibration method of distant bar on a kind of remote control equipment shown according to an exemplary embodiment, such as Shown in Fig. 2, the calibration method of distant bar is for including the following steps in terminal on remote control equipment.
In step s 201, standard voltage data library is stored in advance in terminal.
Wherein, terminal can be game machine, desktop computer, laptop etc., and the present embodiment is not made the type of terminal It is specific to limit.In order to meet the use demand of user, multiple applications are installed, for example, voice applications, video are answered in terminal With, navigation application, game application etc., the present embodiment is illustrated mainly for the game application installed in terminal.Remote control is set It is standby to be used as a kind of common game accessory, by being connected with terminal, it can be achieved that virtual portrait, virtual objects etc. in game application Object is controlled.
Distant bar, which can be realized, on usual remote control equipment in the horizontal and vertical directions carries out the object in game Control, in this way when bar distant on to remote control equipment is calibrated, should also be calibrated in the horizontal and vertical directions.At present For the remote control equipment sold in the market when distant bar is in different location, collected electric signal cannot be directly by coupled Terminal recognition needs to collect electric signal and is converted into digital signal, that is to say key assignments described in this implementation.For the ease of rear Continuous to calibrate to bar distant on remote control equipment, method provided in this embodiment presets electricity when distant bar is in horizontal left end The corresponding key assignments of the voltage value of signal is 0, and the corresponding key assignments of the voltage value of electric signal is z when in horizontal right end, in perpendicular The corresponding key assignments of the voltage value of electric signal is z, the voltage value of electric signal corresponding key when in vertical bottom when straight the top Value is 0.Under normal circumstances, the voltage value of the more big corresponding electric signal of key assignments is bigger.Wherein, z is a default key assignments, Ke Yiwei 200,255,260 etc., the present embodiment is illustrated so that z is 255 as an example.
In the present embodiment, remote control equipment has various modes, for example, calibration mode, operation mode etc..When remote control is set When for being in calibration mode, coupled terminal will also be in calibration mode, when remote control equipment is in operation mode, with it Connected terminal will also be in operation mode.In the calibration mode, remote control equipment can acquire telecommunications when distant bar is in different location Number voltage value, and collected voltage value is sent to terminal, standard voltage data library is established by terminal;In operation mode Under, remote control equipment based on user touch control operation acquire electric signal, and by the voltage value etc. of collected electric signal be sent to Its connected terminal calibrates bar distant on remote control equipment by terminal, to realize the accurate control to object in game.
In the calibration mode, remote control equipment acquire distant bar be horizontally oriented on vertical direction on critical localisation first Standard voltage value, and collected first standard voltage value is sent to terminal.Wherein, when bar distant on remote control equipment is in level When left end, the collected voltage value of remote control equipment is known as ultra-Left voltage value, is denoted as left_min;At bar distant on remote control equipment When horizontal right end, the collected voltage value of remote control equipment is known as ultra-Right voltage value, is denoted as right_max;Work as remote control equipment When upper distant bar is in vertical the top, the referred to as extremely upper voltage value of the collected voltage value of remote control equipment is denoted as up_max;Work as remote control When distant bar is in vertical bottom in equipment, the collected voltage value of remote control equipment referred to as extremely descends voltage value, is denoted as down_min, Therefore, the first standard voltage value includes ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage value and extremely descends voltage value.
Due to ADC electrical property problem on remote control equipment, when distant bar is moved to middle position from horizontal left end on remote control equipment Collected voltage value, collected voltage value is not when being moved to middle position from horizontal right end with bar distant on remote control equipment With, and when distant bar is moved to middle position from vertical the top on remote control equipment collected voltage value, on remote control equipment Distant bar when being moved to middle position from vertical bottom collected voltage value be also different, therefore, in the calibration mode, need Distant bar on remote control equipment is recorded respectively, and the second standard voltage value on middle position is moved to from different location.Wherein, when distant Collected voltage value is known as left voltage value when distant bar is moved to middle position from horizontal left end in control equipment, is denoted as left_mid;When bar distant on remote control equipment is moved to middle position from horizontal right end, collected voltage value is known as electricity in the right side Pressure value, is denoted as right_mid;The collected voltage value when bar distant on remote control equipment is moved to middle position from vertical the top Referred to as upper middle voltage value, is denoted as up_mid;It is collected when bar distant on remote control equipment is moved to middle position from vertical bottom Voltage value be known as voltage value in lower, be denoted as down_mid, therefore, the second standard voltage value includes left voltage value, electricity in the right side Pressure value, upper middle voltage value and lower middle voltage value.When collecting the second standard voltage value, remote control equipment sends out the second standard voltage value It send to terminal.
Based on the first standard voltage value and the second standard voltage value received, terminal according to the acquisition direction of voltage value, The standard voltage data library of the corresponding relationship between the first standard voltage value, the second standard voltage value and direction signs is established, and Standard voltage data library is stored in terminal flash memory or other devices.In the present embodiment, direction signs include Horizontal identification With vertical mark, therefore, Horizontal identification and ultra-Left voltage value, ultra-Right voltage value, left electricity are stored in standard voltage data library Corresponding relationship in pressure value, the right side between voltage value, vertical mark and extremely upper voltage value, extremely descend voltage value, upper middle voltage value, it is lower in Corresponding relationship between voltage value.
In step S202, in an operation mode, terminal receives the button data packet that remote control equipment is sent, the button data Key voltage value and key direction signs are at least carried in packet.
In an operation mode, when remote control equipment detects button operation of the user to distant bar, remote control equipment obtains key The key voltage value and key direction signs of operation, and the key voltage value and key direction signs that will acquire are packaged, and are obtained Button data packet, and button data packet is sent to coupled terminal by data line.
In step S203, terminal is according to key direction signs, and from pre-stored standard voltage data library, acquisition is pressed The corresponding target criteria voltage value of key direction signs.
When receiving button data packet, terminal gets key direction signs from button data packet, and according to the key Direction signs get the corresponding target criteria voltage value of key direction signs from pre-stored standard voltage data library. If key direction signs are horizontal direction mark, terminal can obtain horizontal mark from pre-stored standard voltage data library Know corresponding ultra-Left voltage value, ultra-Right voltage value, left voltage value, the right side in voltage value, and will acquire ultra-Left voltage value, pole Right voltage value, left voltage value, the right side in voltage value as target criteria voltage value;If key direction signs are vertical direction mark Know, terminal can obtain the corresponding extremely upper voltage value of vertical voltage identification, extremely lower electricity from pre-stored standard voltage data library Pressure value, upper middle voltage value, lower middle voltage value, and will acquire extremely upper voltage value, extremely descend voltage value, upper middle voltage value, it is lower in Voltage value is as target criteria voltage value.
In step S204, terminal is taken and the pass according to the relationship between key voltage value and target criteria voltage value It is corresponding calculation, calculates the corresponding key assignments of key voltage value.
The first situation, when the key direction signs carried in the button data packet received be horizontal direction identify when, Illustrate that user wishes to control in the horizontal direction by bar distant on remote control equipment, terminal is calculating key voltage value pair at this time When the key assignments answered, following steps (1)~(4) can be used:
(1), terminal judges the relationship in key voltage value and left voltage value and the right side between voltage value.
With the use of remote control equipment, the corresponding key assignments of voltage value on the distant bar middle position of remote control equipment is no longer 255/ 2, and the voltage value that is moved on middle position from left end of distant bar is moved to the voltage value on middle position simultaneously with from right end Unequal, after getting key voltage value, terminal is according in key voltage value and left voltage value and the right side between voltage value Relationship, it may be determined that user wishes that the object controlled in game is moved to the left or right.When actually judging, can will acquire Key voltage value is compared with voltage value in left voltage value and the right side respectively respectively.
(2) if, key voltage value be less than left voltage value, terminal applies following formula one, calculate key voltage value pair The key assignments answered.
When judging that key voltage value is less than left voltage value, illustrate that user wishes to control the object in game to moving to left Dynamic, in order to accurately be controlled according to the key voltage value the object in game, terminal is needed according to formula one, meter Calculate the corresponding key assignments of key voltage value.
Wherein, x is key voltage value, and a is ultra-Left voltage value, and b is ultra-Right voltage value, and c is left voltage value, and s is key The corresponding key assignments of voltage value, z are default key assignments.In the present embodiment, 255 z.
For example, the ultra-Left voltage value stored in standard voltage data library is 10mv (millivolt), ultra-Right voltage value is 50mv, left Middle voltage value is 25mv, and voltage value is 35mv in the right side, if key voltage value is 15mv, since key voltage value 15mv is less than a left side Middle voltage value is 25mv, and terminal can calculate the corresponding key assignments of key voltage value according to formula one, and when specifically calculating, terminal will be ultra-Left Voltage value is 10mv, and ultra-Right voltage value is 50mv, and left voltage value is 25mv, and voltage value is 35mv in the right side, and key voltage value is 15mv is updated in formula one, is obtainedThat is key voltage value pair The key assignments answered is 63.75.
(3) if, key voltage value be greater than the right side in voltage value, terminal applies following formula two, calculate key voltage value pair The key assignments answered.
When judging key voltage value greater than voltage value in the right side, illustrate to wish that the object controlled in game moves right, In order to accurately be controlled according to the key voltage value the object in game, terminal needs to be calculated according to formula two The corresponding key assignments of key voltage value out.
Wherein, x is key voltage value, and a is ultra-Left voltage value, and b is ultra-Right voltage value, and d is voltage value in the right side, and s is key The corresponding key assignments of voltage value, z are default key assignments.In the present embodiment, 255 z.
For example, the ultra-Left voltage value stored in standard voltage data library is 10mv, ultra-Right voltage value is 50mv, left voltage Value is 25mv, and voltage value is 35mv in the right side, if key voltage value is 40mv, since key voltage value 40mv is greater than voltage in the right side Value is 35mv, and terminal can calculate the corresponding key assignments of key voltage value according to formula two, specific when calculating, and terminal is by ultra-Left voltage value For 10mv, ultra-Right voltage value is 50mv, and left voltage value is 25mv, and voltage value is 35mv in the right side, and key voltage value is 40mv generation Enter into formula two, obtainsThat is key voltage value is corresponding Key assignments is 191.25.
(4) if, key voltage value be greater than left voltage value and be less than voltage value in the right side, terminal determines that key voltage value is corresponding Key assignments beIt that is to say
When judging key voltage value between voltage value in left voltage value and the right side, illustrate that user wishes to control game In object maintain current motion state, can directly determine the corresponding key assignments of key voltage value at this time is
For example, the ultra-Left voltage value stored in standard voltage data library is 10mv, ultra-Right voltage value is 50mv, left voltage Value is 25mv, and voltage value is 35mv in the right side, if key voltage value is 32mv, since key voltage value 32mv is greater than left voltage Value is that 25mv is less than voltage value 35mv in the right side, and therefore, terminal can directly determine the corresponding key assignments of key voltage value and be
Second situation, when the key direction signs carried in the button data packet received be vertical direction identify when, Illustrate that user wishes to control in the vertical direction by bar distant on remote control equipment, terminal is calculating key voltage value pair at this time When the key assignments answered, following steps (a)~(d) can be used:
(a), terminal judges the relationship between key voltage value and lower middle voltage value and upper middle voltage value.
With the use of remote control equipment, the corresponding key assignments of voltage value on the distant bar middle position of remote control equipment is no longer 255/ 2, and distant bar is moved to the voltage value on middle position simultaneously with from bottom from the voltage value being topmost moved on middle position Unequal, after getting key voltage value, terminal is according between key voltage value and upper middle voltage value and lower middle voltage value Relationship, it may be determined that user wishes that the object controlled in game moves up or down.When actually judging, can will acquire Key voltage value is compared with upper middle voltage value and lower middle voltage value respectively respectively.
If (b), key voltage value is less than lower middle voltage value, terminal applies following formula three calculates key voltage value pair The key assignments answered.
When judging that key voltage value is less than lower middle voltage value, illustrate that user wishes to control the object in game to moving down Dynamic, in order to accurately be controlled according to the key voltage value the object in game, terminal is needed according to formula three, meter Calculate the corresponding key assignments of key voltage value.
Wherein, y is key voltage value, and e is extremely to descend voltage value, and f is extremely upper voltage value, and g is lower middle voltage value, and t is key The corresponding key assignments of voltage value, z are default key assignments.In the present embodiment, 255 z.
For example, the extremely upper voltage value stored in standard voltage data library is 60mv, extremely descending voltage value is 20mv, lower middle voltage Value is 35mv, and upper middle voltage value is 45mv, if key voltage value is 20mv, since key voltage value 20mv is less than lower middle voltage Value is 35mv, and terminal can calculate the corresponding key assignments of key voltage value according to formula three, and when specifically calculating, the extremely upper voltage value of terminal is 60mv, extremely descending voltage value is 20mv, and lower middle voltage value is 35mv, and upper middle voltage value is 45mv, and key voltage value is 20mv substitution Into formula three, obtainThat is the corresponding key assignments of key voltage value It is 31.875.
If (c), key voltage value is greater than upper middle voltage value, terminal applies following formula four calculates key voltage value pair The key assignments answered.
When judging key voltage value greater than upper middle voltage value, illustrate to wish that the object controlled in game moves up, In order to accurately be controlled according to the key voltage value the object in game, terminal needs to be calculated according to formula four The corresponding key assignments of key voltage value out.
Wherein, y is key voltage value, and e is extremely to descend voltage value, and f is extremely upper voltage value, and h is upper middle voltage value, and t is key The corresponding key assignments of voltage value, z are default key assignments.In the present embodiment, 255 z.
For example, the extremely upper voltage value stored in standard voltage data library is 60mv, extremely descending voltage value is 20mv, lower middle voltage Value is 35mv, and upper middle voltage value is 45mv, if key voltage value is 50mv, since key voltage value 20mv is less than lower middle voltage Value is 35mv, and terminal can calculate the corresponding key assignments of key voltage value according to formula three, and when specifically calculating, the extremely upper voltage value of terminal is 60mv, extremely descending voltage value is 20mv, and lower middle voltage value is 35mv, and upper middle voltage value is 45mv, and key voltage value is 50mv substitution Into formula four, obtainThat is key voltage value is corresponding Key assignments is 143.44.
If (d), key voltage value is greater than lower middle voltage value and is less than upper middle voltage value, terminal determines that key voltage value is corresponding Key assignments beIt that is to say
When judging key voltage value between upper middle voltage value and lower middle voltage value, illustrate that user wishes to control game In object maintain current motion state, can directly determine the corresponding key assignments of key voltage value at this time is
For example, the extremely upper voltage value stored in standard voltage data library is 60mv, extremely descending voltage value is 20mv, lower middle voltage Value is 35mv, and upper middle voltage value is 45mv, if key voltage value is 40mv, since key voltage value 40mv is greater than lower middle voltage Value be 35mv be less than upper middle voltage value be 45mv, therefore, terminal can directly determine the corresponding key assignments of key voltage value and be
After carrying out calibrated to bar distant on remote control equipment using the above method, terminal will be according to obtained calibration result It is key assignments, the object in game is controlled.
The method that the embodiment of the present disclosure provides, when bar distant on to remote control equipment is calibrated, not directly according to ratio Relationship calculate, but according to the normal voltage stored in the key voltage value of remote control equipment and standard voltage data library it Between relationship, the corresponding key assignments of key voltage value is calculated using different calculation, due to the key obtained using this kind of mode It is more accurate to be worth, thus improves control precision.
Fig. 3 is the calibrating installation schematic diagram of distant bar on a kind of remote control equipment shown according to an exemplary embodiment.Reference Fig. 3, the device include: the first receiving module 301, obtain module 302 and computing module 303.
First receiving module 301 is configured as in an operation mode, receiving the button data packet that remote control equipment is sent, pressing Key voltage value and key direction signs are at least carried in key data packet;
The acquisition module 302 is configured as from pre-stored standard voltage data library, being obtained according to key direction signs The corresponding target criteria voltage value of key direction signs is taken, standard voltage data is stored with direction signs and standard voltage value in library Between corresponding relationship;
The computing module 303 is configured as according to the relationship between key voltage value and target criteria voltage value, take with The corresponding calculation of relationship calculates the corresponding key assignments of key voltage value.
In another embodiment of the disclosure, the device further include: the second receiving module, third receiving module and storage Module.
Second receiving module is configured as in the calibration mode, receiving the first standard voltage value that remote control equipment is sent, First standard voltage value is that distant bar is respectively at horizontal left end, horizontal right end, vertical topmost and vertical on remote control equipment Collected voltage value when bottom, the first standard voltage value include ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage value and pole Lower voltage value;
The third receiving module is configured as receiving remote control equipment the second standard voltage value of transmission, and the second standard voltage value is Distant bar is moved to interposition from horizontal left end, horizontal right end, vertical the top and vertical bottom respectively on remote control equipment Collected voltage value when setting, the second standard voltage value include left voltage value, the right side in voltage value, upper middle voltage value and lower middle electricity Pressure value;
The memory module is configured as the acquisition direction according to voltage value, by the first standard voltage value, the second normal voltage Corresponding relationship between value and direction signs is stored in standard voltage data library.
In another embodiment of the disclosure, direction signs include horizontal direction mark and vertical direction mark;
The acquisition module 302 is configured as when key direction signs being horizontal direction mark, from pre-stored standard electric It presses in database, obtains the corresponding ultra-Left voltage value of Horizontal identification, ultra-Right voltage value, left voltage value, voltage value in the right side, as Target criteria voltage value;When key direction signs are vertical direction mark, from pre-stored standard voltage data library, acquisition The corresponding extremely upper voltage value of vertical voltage identification extremely descends voltage value, upper middle voltage value, lower middle voltage value, as target criteria electricity Pressure value.
In another embodiment of the disclosure, which is configured as when key direction signs being level side To when identifying, the relationship in key voltage value and left voltage value and the right side between voltage value is judged;When key voltage value is less than a left side Middle voltage value calculates the corresponding key assignments of key voltage value using following formula:
When key voltage value calculates the corresponding key assignments of key voltage value using following formula greater than voltage value in the right side:
It is less than voltage value in the right side when key voltage value is greater than left voltage value, determines that the corresponding key assignments of key voltage value is
Wherein, x is key voltage value, and a is ultra-Left voltage value, and b is ultra-Right voltage value, and c is left voltage value, and d is in the right side Voltage value, s are the corresponding key assignments of key voltage value, and z is default key assignments.
In another embodiment of the disclosure, which is configured as when key direction signs being vertical side To when identifying, the relationship between key voltage value and lower middle voltage value and upper middle voltage value is judged;Under key voltage value is less than Middle voltage value calculates the corresponding key assignments of key voltage value using following formula:
When key voltage value calculates the corresponding key assignments of key voltage value using following formula greater than upper middle voltage value:
It is less than upper middle voltage value when key voltage value is greater than lower middle voltage value, determines that the corresponding key assignments of key voltage value is
Wherein, y is key voltage value, and e is extremely to descend voltage value, and f is extremely upper voltage value, and g is lower middle voltage value, and h is in upper Voltage value, t are the corresponding key assignments of key voltage value, and z is default key assignments.
Embodiment of the disclosure provide device, when bar distant on to remote control equipment is calibrated, not directly according to than Example relationship calculate, but according to the normal voltage stored in the key voltage value of remote control equipment and standard voltage data library Between relationship, the corresponding key assignments of key voltage value is calculated using different calculation, due to what is obtained using this kind of mode Key assignments is more accurate, thus improves control precision.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is a kind of device 400 of the calibration of bar distant on remote control equipment shown according to an exemplary embodiment Block diagram.For example, device 400 can be mobile phone, and computer, digital broadcasting terminal, messaging device, game console, Tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 4, device 400 may include following one or more components: processing component 402, memory 404, power supply Component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor module 414, Yi Jitong Believe component 416.
The integrated operation of the usual control device 400 of processing component 402, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 402 may include that one or more processors 420 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application or method for operating on device 400, contact data, and telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 may include power management system System, one or more power supplys and other with for device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike Wind (MIC), when device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set Part 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor module 414 can detecte the state that opens/closes of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or device Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400 Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of calibration method of distant bar on remote control equipment, which comprises
In an operation mode, the button data packet that remote control equipment is sent is received, key electricity is at least carried in button data packet Pressure value and key direction signs;
According to key direction signs, from pre-stored standard voltage data library, it is corresponding to obtain key direction signs Target criteria voltage value, the corresponding relationship being stored in standard voltage data library between direction signs and standard voltage value;
According to the relationship between key voltage value and target criteria voltage value, calculation corresponding with relationship is taken, is counted Calculate the corresponding key assignments of key voltage value.
In another embodiment of the disclosure, according to key direction signs, from pre-stored standard voltage data library In, before the corresponding target criteria voltage value of acquisition key direction signs, further includes:
In the calibration mode, the first standard voltage value that remote control equipment is sent is received, the first standard voltage value is that remote control is set Standby distant bar is respectively at collected voltage value when horizontal left end, horizontal right end, vertical the top and vertical bottom, First standard voltage value includes ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage value and extremely descends voltage value;
It receives remote control equipment and sends the second standard voltage value, the second standard voltage value is distant bar on remote control equipment respectively from water Flat left end, horizontal right end, it is vertical topmost and vertical bottom is moved to collected voltage value when middle position, second Standard voltage value include left voltage value, the right side in voltage value, upper middle voltage value and lower middle voltage value;
It, will be between the first standard voltage value, the second standard voltage value and direction signs according to the acquisition direction of voltage value Corresponding relationship is stored in standard voltage data library.
In another embodiment of the disclosure, direction signs include horizontal direction mark and vertical direction mark;
According to key direction signs, from pre-stored standard voltage data library, it is corresponding to obtain key direction signs Target criteria voltage value, comprising:
If key direction signs are horizontal direction mark, from pre-stored standard voltage data library, obtain horizontal Identify corresponding ultra-Left voltage value, ultra-Right voltage value, left voltage value, the right side in voltage value, as target criteria voltage value;
If key direction signs are vertical direction mark, from pre-stored standard voltage data library, it is vertical to obtain The corresponding extremely upper voltage value of voltage identification extremely descends voltage value, upper middle voltage value, lower middle voltage value, as target criteria voltage value.
In another embodiment of the disclosure, according to the relationship between key voltage value and target criteria voltage value, adopt Calculation corresponding with relationship is taken, the corresponding key assignments of key voltage value is calculated, comprising:
When key direction signs are that horizontal direction identifies, voltage value in key voltage value and left voltage value and the right side is judged Between relationship;
If key voltage value is less than left voltage value, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than voltage value in the right side, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than left voltage value and is less than voltage value in the right side, determine that the corresponding key assignments of key voltage value is
Wherein, x is key voltage value, and a is ultra-Left voltage value, and b is ultra-Right voltage value, and c is left voltage value, and d is in the right side Voltage value, s are the corresponding key assignments of key voltage value, and z is default key assignments.
In another embodiment of the disclosure, according to the relationship between key voltage value and target criteria voltage value, adopt Calculation corresponding with relationship is taken, the corresponding key assignments of key voltage value is calculated, comprising:
When key direction signs are that vertical direction identifies, key voltage value and lower middle voltage value and upper middle voltage value are judged Between relationship;
If key voltage value is less than lower middle voltage value, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than upper middle voltage value, using following formula, the corresponding key assignments of key voltage value is calculated:
If key voltage value is greater than lower middle voltage value and is less than upper middle voltage value, determine that the corresponding key assignments of key voltage value is
Wherein, y is key voltage value, and e is extremely to descend voltage value, and f is extremely upper voltage value, and g is lower middle voltage value, and h is in upper Voltage value, t are the corresponding key assignments of key voltage value, and z is default key assignments.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, distant bar carries out school on to remote control equipment On time, directly under a proportional relationship calculate, but according to the key voltage value of remote control equipment and normal voltage number According to the relationship between the normal voltage stored in library, the corresponding key assignments of key voltage value is calculated using different calculations, by It is more accurate in the key assignments obtained using this kind of mode, thus improve control precision.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. the calibration method of distant bar on a kind of remote control equipment, which is characterized in that the described method includes:
In an operation mode, the button data packet that remote control equipment is sent is received, key electricity is at least carried in the button data packet Pressure value and key direction signs;
According to the key direction signs, from pre-stored standard voltage data library, the key direction signs pair are obtained The target criteria voltage value answered is stored with the corresponding pass between direction signs and standard voltage value in the standard voltage data library System;
According to the relationship between the key voltage value and the target criteria voltage value, calculate corresponding with the relationship is taken Mode calculates the corresponding key assignments of the key voltage value.
2. the method according to claim 1, wherein described according to the key direction signs, from being stored in advance Standard voltage data library in, before obtaining the corresponding target criteria voltage value of the key direction signs, further includes:
In the calibration mode, the first standard voltage value that the remote control equipment is sent is received, first standard voltage value is institute It states when distant bar on remote control equipment is respectively at horizontal left end, horizontal right end, vertical the top and vertical bottom and collects Voltage value, first standard voltage value includes ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage value and extremely descends voltage value;
It receives the remote control equipment and sends the second standard voltage value, second standard voltage value is distant bar on the remote control equipment Collected electricity when being moved to middle position from horizontal left end, horizontal right end, vertical the top and vertical bottom respectively Pressure value, second standard voltage value include left voltage value, the right side in voltage value, upper middle voltage value and lower middle voltage value;
According to the acquisition direction of voltage value, by first standard voltage value, second standard voltage value and direction signs it Between corresponding relationship be stored in standard voltage data library.
3. according to the method described in claim 2, it is characterized in that, the direction signs include horizontal direction mark and vertical side To mark;
It is described according to the key direction signs, from pre-stored standard voltage data library, obtain the key direction sign Know corresponding target criteria voltage value, comprising:
If the key direction signs are horizontal direction mark, from the pre-stored standard voltage data library, obtain Horizontal direction identifies corresponding ultra-Left voltage value, ultra-Right voltage value, left voltage value, voltage value in the right side, as target criteria electricity Pressure value;
If the key direction signs are vertical direction mark, from the pre-stored standard voltage data library, obtain The corresponding extremely upper voltage value of vertical direction mark extremely descends voltage value, upper middle voltage value, lower middle voltage value, as target criteria electricity Pressure value.
4. according to the method described in claim 3, it is characterized in that, described according to the key voltage value and the target criteria Relationship between voltage value takes calculation corresponding with the relationship, calculates the corresponding key assignments of the key voltage value, packet It includes:
When the key direction signs are that horizontal direction identifies, the key voltage value and the left voltage value and institute are judged State the relationship in the right side between voltage value;
If the key voltage value is less than the left voltage value, using following formula, it is corresponding to calculate the key voltage value Key assignments:
If the key voltage value is greater than voltage value in the right side, using following formula, it is corresponding to calculate the key voltage value Key assignments:
If the key voltage value is greater than the left voltage value and is less than voltage value in the right side, the key voltage value is determined Corresponding key assignments is
Wherein, x is the key voltage value, and a is the ultra-Left voltage value, and b is the ultra-Right voltage value, and c is the left electricity Pressure value, d are voltage value in the right side, and s is the corresponding key assignments of the key voltage value, and z is default key assignments.
5. the method according to requiring 3, which is characterized in that described according to the key voltage value and the target criteria voltage Relationship between value takes calculation corresponding with the relationship, calculates the corresponding key assignments of the key voltage value, comprising:
When the key direction signs are that vertical direction identifies, the key voltage value and the lower middle voltage value and institute are judged State the relationship between voltage value;
If the key voltage value is less than the lower middle voltage value, using following formula, it is corresponding to calculate the key voltage value Key assignments:
If the key voltage value is greater than the upper middle voltage value, using following formula, it is corresponding to calculate the key voltage value Key assignments:
If the key voltage value is greater than the lower middle voltage value and is less than the upper middle voltage value, the key voltage value is determined Corresponding key assignments is
Wherein, y is the key voltage value, and e extremely descends voltage value to be described, and f is the extremely upper voltage value, and g is the lower middle electricity Pressure value, h are the upper middle voltage value, and t is the corresponding key assignments of the key voltage value, and z is default key assignments.
6. the calibrating installation of distant bar on a kind of remote control equipment, which is characterized in that described device includes:
First receiving module, in an operation mode, receiving the button data packet that remote control equipment is sent, the button data packet In at least carry key voltage value and key direction signs;
Module is obtained, for pressing described in acquisition from pre-stored standard voltage data library according to the key direction signs Key direction signs corresponding target criteria voltage value is stored with direction signs and standard voltage value in the standard voltage data library Between corresponding relationship;
Computing module, for according to the relationship between the key voltage value and the target criteria voltage value, take with it is described The corresponding calculation of relationship calculates the corresponding key assignments of the key voltage value.
7. device according to claim 6, which is characterized in that described device further include:
Second receiving module receives the first standard voltage value that the remote control equipment is sent in the calibration mode, and described the One standard voltage value is that distant bar is respectively at horizontal left end, horizontal right end, vertical the top and erects on the remote control equipment Collected voltage value when straight bottom, first standard voltage value include ultra-Left voltage value, ultra-Right voltage value, extremely upper voltage It is worth and extremely descends voltage value;
Third receiving module sends the second standard voltage value for receiving the remote control equipment, and second standard voltage value is During distant bar is moved to from horizontal left end, horizontal right end, vertical the top and vertical bottom respectively on the remote control equipment Between position when collected voltage value, second standard voltage value includes left voltage value, voltage value, upper middle voltage value in the right side And lower middle voltage value;
Memory module, for the acquisition direction according to voltage value, by first standard voltage value, second standard voltage value Corresponding relationship between direction signs is stored in standard voltage data library.
8. device according to claim 7, which is characterized in that the direction signs include horizontal direction mark and vertical side To mark;
The acquisition module, for being horizontal direction mark when the key direction signs, from the pre-stored standard electric It presses in database, obtains horizontal direction and identify corresponding ultra-Left voltage value, ultra-Right voltage value, left voltage value, voltage value in the right side, As target criteria voltage value;When the key direction signs are vertical direction mark, from the pre-stored normal voltage In database, obtains the corresponding extremely upper voltage value of vertical direction mark, extremely descends voltage value, upper middle voltage value, lower middle voltage value, make For target criteria voltage value.
9. device according to claim 8, which is characterized in that the computing module, for working as the key direction signs When identifying for horizontal direction, the pass in the key voltage value and the left voltage value and the right side between voltage value is judged System;The corresponding key of the key voltage value is calculated using following formula when the key voltage value is less than the left voltage value Value:
When it is corresponding to calculate the key voltage value using following formula greater than voltage value in the right side for the key voltage value Key assignments:
It is less than voltage value in the right side when the key voltage value is greater than the left voltage value, determines the key voltage value pair The key assignments answered is
Wherein, x is the key voltage value, and a is the ultra-Left voltage value, and b is the ultra-Right voltage value, and c is the left electricity Pressure value, d are voltage value in the right side, and s is the corresponding key assignments of the key voltage value, and z is default key assignments.
10. the device according to requiring 8, which is characterized in that the computing module, for being perpendicular when the key direction signs When straight direction signs, the relationship between the key voltage value and the lower middle voltage value and the upper middle voltage value is judged;When The key voltage value is less than the lower middle voltage value and calculates the corresponding key assignments of the key voltage value using following formula:
It is corresponding to calculate the key voltage value using following formula when the key voltage value is greater than the upper middle voltage value Key assignments:
It is less than the upper middle voltage value when the key voltage value is greater than the lower middle voltage value, determines the key voltage value pair The key assignments answered is
Wherein, y is the key voltage value, and e extremely descends voltage value to be described, and f is the extremely upper voltage value, and g is the lower middle electricity Pressure value, h are the upper middle voltage value, and t is the corresponding key assignments of the key voltage value, and z is default key assignments.
11. the calibrating installation of distant bar on a kind of remote control equipment characterized by comprising
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
In an operation mode, the button data packet that remote control equipment is sent is received, key electricity is at least carried in the button data packet Pressure value and key direction signs;
According to the key direction signs, from pre-stored standard voltage data library, the key direction signs pair are obtained The target criteria voltage value answered is stored with the corresponding pass between direction signs and standard voltage value in the standard voltage data library System;
According to the relationship between the key voltage value and the target criteria voltage value, calculate corresponding with the relationship is taken Mode calculates the corresponding key assignments of the key voltage value.
CN201610194872.5A 2016-03-30 2016-03-30 The calibration method and device of distant bar on remote control equipment Active CN105891706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610194872.5A CN105891706B (en) 2016-03-30 2016-03-30 The calibration method and device of distant bar on remote control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610194872.5A CN105891706B (en) 2016-03-30 2016-03-30 The calibration method and device of distant bar on remote control equipment

Publications (2)

Publication Number Publication Date
CN105891706A CN105891706A (en) 2016-08-24
CN105891706B true CN105891706B (en) 2018-12-25

Family

ID=57014394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610194872.5A Active CN105891706B (en) 2016-03-30 2016-03-30 The calibration method and device of distant bar on remote control equipment

Country Status (1)

Country Link
CN (1) CN105891706B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109470499B (en) * 2018-10-11 2020-08-11 歌尔股份有限公司 Rocker calibration test tool, system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5874944A (en) * 1996-11-13 1999-02-23 Vlsi Technology, Inc. Variable voltage detector power-up and power-down circuit for a joystick interface
JP2003287468A (en) * 2002-03-28 2003-10-10 Nitta Ind Corp Capacitance type sensor
CN2620888Y (en) * 2003-03-04 2004-06-16 普格科技股份有限公司 Control rocking bar for computer index
CN1794156A (en) * 2004-12-23 2006-06-28 安捷伦科技有限公司 Slide pad system and method
JP3857549B2 (en) * 2001-07-16 2006-12-13 アルプス電気株式会社 Joystick origin correction and effective operating range setting method
CN201270559Y (en) * 2008-09-26 2009-07-08 任宝刚 Remote control apparatus
CN103442277A (en) * 2013-05-29 2013-12-11 深圳市九洲电器有限公司 Remote control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6343991B1 (en) * 1997-10-01 2002-02-05 Brad A. Armstrong Game control with analog pressure sensor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5874944A (en) * 1996-11-13 1999-02-23 Vlsi Technology, Inc. Variable voltage detector power-up and power-down circuit for a joystick interface
JP3857549B2 (en) * 2001-07-16 2006-12-13 アルプス電気株式会社 Joystick origin correction and effective operating range setting method
JP2003287468A (en) * 2002-03-28 2003-10-10 Nitta Ind Corp Capacitance type sensor
CN2620888Y (en) * 2003-03-04 2004-06-16 普格科技股份有限公司 Control rocking bar for computer index
CN1794156A (en) * 2004-12-23 2006-06-28 安捷伦科技有限公司 Slide pad system and method
CN201270559Y (en) * 2008-09-26 2009-07-08 任宝刚 Remote control apparatus
CN103442277A (en) * 2013-05-29 2013-12-11 深圳市九洲电器有限公司 Remote control method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Two-stage model for inference of target identity during 2D cursor control from natural gaze trajectories;Zhaokang Chen;《Engineering in Medicine and Biology Society》;20150829;第474-477页 *
最酷的游戏手柄;乱马;《个人电脑》;19990228;第41页 *

Also Published As

Publication number Publication date
CN105891706A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105204808B (en) Projective techniques, device and the terminal device of picture
CN105974357A (en) Method and device for positioning terminal
KR101639312B1 (en) Method, apparatus, program and storage medium for positioning and navigating
CN104598131B (en) Adjust the method and device of page display way
KR20130114893A (en) Apparatus and method for taking a picture continously
US10612918B2 (en) Mobile computing device and method for calculating a bending angle
CN109547987A (en) The call method and device of nfc card
CN104936039B (en) Image processing method and device
CN105262512B (en) Switch the method and device of host
CN107202574A (en) Motion track information modification method and device
CN106791064A (en) Method of locating terminal and device
CN108307308A (en) Localization method, device and the storage medium of WLAN devices
CN104881342B (en) terminal test method and device
CN106597502A (en) Altitude determining method and apparatus
CN109194418A (en) Terminal signaling display methods and device
CN106226797B (en) Athletic ground information-pushing method and device
CN106231237B (en) Video call method and device
CN110490303A (en) Super-network construction method, application method, device and medium
CN103957502A (en) Location-based service program selecting method, device and terminal
CN106775240B (en) Triggering method, device and the terminal of application program
CN106289161A (en) Height measurement method and device
CN105677435A (en) Function invoking method, apparatus and terminal
CN105891706B (en) The calibration method and device of distant bar on remote control equipment
CN108476382A (en) information reporting, configuration method and device, user equipment and base station
CN109066865A (en) The calibration method and terminal of battery capacity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant