CN115793518A - Method, device and equipment for acquiring universal remote control coding information and readable storage medium - Google Patents

Method, device and equipment for acquiring universal remote control coding information and readable storage medium Download PDF

Info

Publication number
CN115793518A
CN115793518A CN202211392140.9A CN202211392140A CN115793518A CN 115793518 A CN115793518 A CN 115793518A CN 202211392140 A CN202211392140 A CN 202211392140A CN 115793518 A CN115793518 A CN 115793518A
Authority
CN
China
Prior art keywords
remote control
key
target
acquiring
universal remote
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.)
Granted
Application number
CN202211392140.9A
Other languages
Chinese (zh)
Other versions
CN115793518B (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.)
Shenzhen Sihao Intelligent Technology Co ltd
Original Assignee
Shenzhen Sihao Intelligent Technology 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 Shenzhen Sihao Intelligent Technology Co ltd filed Critical Shenzhen Sihao Intelligent Technology Co ltd
Priority to CN202211392140.9A priority Critical patent/CN115793518B/en
Publication of CN115793518A publication Critical patent/CN115793518A/en
Application granted granted Critical
Publication of CN115793518B publication Critical patent/CN115793518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a method, a device, equipment and a readable storage medium for acquiring universal remote control coding information, which relate to the technical field of remote controllers, wherein the method comprises the following steps: acquiring number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the number data; controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay; and analyzing the number output result to generate target coding information corresponding to the target universal remote control code. The method and the device solve the technical problem that the accuracy rate of acquiring the universal remote control coding information is low at present.

Description

Method, device and equipment for acquiring universal remote control coding information and readable storage medium
Technical Field
The present application relates to the field of remote control technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for acquiring universal remote control coding information.
Background
With the rapid development of the intelligent technology, a remote control terminal (for example, a mobile terminal which is provided with a related application program and is externally connected with an infrared forwarding accessory) can be changed into a universal remote controller by matching an infrared remote control code so as to control a target terminal (for example, a television, a set-top box, an air conditioner and the like) with an infrared receiving function, so that the quality requirement on the universal remote controller is higher and higher.
In the actual research and development process of the universal remote controller, universal remote control coding information needs to be acquired to perform subsequent related function detection, corresponding coding information is acquired by generally adopting a mode of manually inputting universal remote control serial number data at present, and finally, the coding information needs to be manually recorded.
Disclosure of Invention
The application mainly aims to provide a method, a device, equipment and a readable storage medium for acquiring universal remote control coding information, and aims to solve the technical problem that the accuracy rate of acquiring the universal remote control coding information is low at present.
In order to achieve the above object, the present application provides a method for acquiring universal remote control coding information, where the method for acquiring universal remote control coding information includes:
acquiring number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the number data;
controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay;
and analyzing the number output result to generate target coding information corresponding to the target universal remote control code.
Optionally, the step of generating a corresponding key control instruction according to the serial number data includes:
performing signal conversion on the serial number data to obtain a signal conversion result;
and determining the key control instruction according to the signal conversion result.
Optionally, the preset remote controller at least includes one remote control key, and the step of controlling the test equipment to input the serial number data in the preset remote controller according to the key control instruction to obtain a serial number output result includes:
selecting a corresponding target remote control key from each remote control key according to the serial number data;
performing instruction type detection on the key control instruction to obtain an instruction type detection result;
if the instruction type detection result is a mechanical arm control instruction, controlling the mechanical arm to touch the target remote control key to obtain the serial number output result;
if the instruction type detection result is an air cylinder control instruction, controlling the air cylinder to touch the target remote control key to obtain the serial number output result;
and if the instruction type detection result is a relay control instruction, controlling a relay corresponding to the target remote control key to open and close to obtain the number output result.
Optionally, the opening and closing operation includes suction and disconnection, the step of controlling the relay corresponding to the target remote control key to perform the opening and closing operation to obtain the number output result includes:
controlling the relay to attract so as to switch on a switch circuit of the target remote control key;
and if the on-time of the switch circuit reaches a preset threshold, controlling the relay to be switched off to obtain the numbering output result.
Optionally, before the step of generating target encoding information corresponding to the target universal remote control code by analyzing the number output result, the method further includes:
detecting whether the number output result is empty;
if not, performing key signal detection on each target remote control key;
if yes, renumbering data to the target universal remote control code to generate new numbered data, updating the numbered data into the new numbered data, and returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
Optionally, the remote control key is connected to a preset pressure sensor, and the step of detecting the key signal of each target remote control key includes:
acquiring current information of each preset pressure sensor, and detecting whether a key signal corresponding to each target remote control key is effective or not according to each current information;
if so, analyzing the number output result to generate target coding information corresponding to the target universal remote control code;
if not, after troubleshooting and repairing the target remote control key, returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
Optionally, before the step of obtaining the number data corresponding to the target universal remote control code and generating the corresponding key control instruction according to the number data, the method further includes:
detecting whether the configuration information of the test equipment is initialized;
if yes, acquiring the serial number data, and generating the key control instruction according to the serial number data;
if not, selecting uninitialized information from the configuration information, and carrying out secondary initialization.
In addition, to achieve the above object, the present application further provides an apparatus for acquiring universal remote control coded information, comprising:
the number data acquisition module is used for acquiring number data corresponding to the target universal remote control code and generating a corresponding key control instruction according to the number data;
the input number data module is used for controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay;
and the target coding information generating module is used for analyzing the number output result to generate target coding information corresponding to the target universal remote control code.
Optionally, the number data obtaining module is further configured to:
performing signal conversion on the serial number data to obtain a signal conversion result;
and determining the key control instruction according to the signal conversion result.
Optionally, the number data input module is further configured to:
selecting a corresponding target remote control key from each remote control key according to the serial number data;
performing instruction type detection on the key control instruction to obtain an instruction type detection result;
if the instruction type detection result is a mechanical arm control instruction, controlling the mechanical arm to touch the target remote control key to obtain the serial number output result;
if the instruction type detection result is an air cylinder control instruction, controlling the air cylinder to touch the target remote control key to obtain the serial number output result;
and if the instruction type detection result is a relay control instruction, controlling a relay corresponding to the target remote control key to open and close to obtain the serial number output result.
Optionally, the number data input module is further configured to:
controlling the relay to pull in so as to switch on a switch circuit of the target remote control key;
and if the on-time of the switch circuit reaches a preset threshold, controlling the relay to be switched off to obtain the numbering output result.
Optionally, the device for acquiring universal remote control coding information is further configured to:
detecting whether the serial number output result is empty;
if not, performing key signal detection on each target remote control key;
if yes, renumbering data to the target universal remote control code to generate new numbered data, updating the numbered data into the new numbered data, and returning to the step: and acquiring serial number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the serial number data.
Optionally, the device for acquiring universal remote control coding information is further configured to:
acquiring current information of each preset pressure sensor, and detecting whether a key signal corresponding to each target remote control key is effective or not according to each current information;
if so, analyzing the number output result to generate target coding information corresponding to the target universal remote control code;
if not, after troubleshooting and repairing the target remote control key, returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
Optionally, the device for acquiring universal remote control coding information is further configured to:
detecting whether the configuration information of the test equipment is initialized;
if yes, acquiring the serial number data, and generating the key control instruction according to the serial number data;
if not, selecting uninitialized information from the configuration information, and carrying out secondary initialization.
The present application further provides an apparatus for acquiring universal remote control coding information, the apparatus for acquiring universal remote control coding information comprising: the system comprises a memory, a processor and a program for acquiring the universal remote control code information, wherein the program for acquiring the universal remote control code information is stored on the memory and can run on the processor, and when the program for acquiring the universal remote control code information is executed by the processor, the steps of the method for acquiring the universal remote control code information are realized.
The application also provides a readable storage medium, wherein a program for acquiring the universal remote control code information is stored in the readable storage medium, and when the program for acquiring the universal remote control code information is executed by a processor, the steps of the method for acquiring the universal remote control code information are realized.
The present application further provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for acquiring universal remote control coding information as described above.
Compared with the mode of acquiring coding information by manually inputting universal remote control number data at present, the method firstly acquires the number data corresponding to a target universal remote control code and generates a corresponding key control instruction according to the number data; controlling test equipment to input the serial number data in a preset remote controller according to the key control instruction to obtain a serial number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay; and analyzing the number output result to generate target coding information corresponding to the target universal remote control code. The purpose of acquiring the universal remote control code by inputting the serial number data into the remote controller through the automatic test equipment is achieved, the technical defect that the accuracy of acquiring the universal remote control code information is low due to the fact that recording errors or missing records easily occur due to manual operation is overcome, and therefore the accuracy of acquiring the universal remote control code information is improved.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a method for acquiring universal remote control coding information according to the present application;
FIG. 2 is a flowchart of a mechanical arm code grabbing stream involved in the method for acquiring universal remote control coding information according to the present application;
FIG. 3 is a flow chart of a cylinder code capturing stream involved in the method for acquiring universal remote control coding information according to the present application;
FIG. 4 is a flowchart of a code capturing flow of a relay involved in the method for acquiring universal remote control coding information according to the present application;
FIG. 5 is a schematic diagram of the apparatus involved in the method for acquiring universal remote control coding information according to the present application;
fig. 6 is a diagram of the devices involved in the method for acquiring universal remote control coding information according to the present application.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the mode of manually inputting universal remote control serial number data, manually pressing a universal key to acquire coded information is adopted, and finally the coded information needs to be manually recorded. In a first embodiment of the method for acquiring universal remote control coding information, referring to fig. 1, the method for acquiring universal remote control coding information includes:
step S10, acquiring number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the number data;
in this embodiment, it should be noted that the target universal remote control code is a universal remote control code of code information to be acquired, and the number of the universal remote control codes is at least one; the number data refers to a code group number preset in a database by the target universal remote control code, the code group number can be a combination number of a number and a remote control key number, and the number can be a sequence number or a random number, such as 01-ON (open key), 02-OFF (close key) or 03-VOL (volume key); the key control instruction is used for controlling the test equipment to input the serial number data on the preset remote controller, the instruction can be initiated by a computer or other control terminals, the sending rule can be customized, for example, the key control instruction can be preferentially sent to the test equipment with higher test speed according to the test speed of the three test equipment, the instruction can also be sent to the current idle test equipment optionally, the serial number data can be divided into three serial number groups which respectively correspond to the three test equipment, so that the three test equipment can work simultaneously, and the efficiency of obtaining the coding information is improved.
As an example, step S10 includes: the method comprises the steps of obtaining number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the number data, wherein the number data can be stored in a file format of a table, namely the number data can be obtained by reading a table file, and only one key control instruction is generated by one number data.
Step S20, controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay;
and S30, analyzing the number output result to generate target code information corresponding to the target universal remote control code.
In this embodiment, it should be noted that the preset remote controller may be a universal remote controller, which is a remote controller for controlling all infrared household appliances through remote control codes; the mechanical arm is a mechanical arm, is generally programmable, and is mainly connected with a joint to move so as to perform touch operation on the preset remote controller; the components of the air cylinder can comprise a telescopic end, an air pipe and an electromagnetic valve, wherein the electromagnetic valve is connected with the control terminal and used for receiving a key control instruction sent by the control terminal, so that the telescopic end is driven to be telescopic, the end head of the telescopic end can be in contact with the preset remote controller, and the air pipe can be communicated with an air pressure flow regulating valve to control the key speed of the air cylinder; the relay is an electric control device, and is generally applied to an automatic control circuit, when the relay is closed, it indicates that the circuit of the corresponding remote control key is turned on at the moment, that is, the remote control key is successfully input, and when the relay is closed, it indicates that the circuit of the corresponding remote control key is turned off at the moment, the remote control key is not successfully input or has already finished inputting, in this embodiment, the remote control keys may correspond to the relays one to one; the target coding information refers to detailed configuration information of the target universal remote control code, and can include information such as a coding format, a user code, a key code, a full code, a carrier frequency and the like.
As an example, steps S20 to S30 include: according to the key control instruction, controlling corresponding test equipment to input the number data by touching each remote control key in a preset remote controller to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay, the key control instruction can comprise at least one of a mechanical arm control instruction, a cylinder control instruction or a relay control instruction, and the number output result is used for representing whether the number data is successfully output; and analyzing the number output result by an infrared remote control code analyzer to generate target code information corresponding to the target universal remote control code, wherein the infrared remote control code analyzer consists of hardware for acquiring infrared remote control signals and application software at a computer end, the hardware mainly has the functions of receiving signals of a remote controller, analyzing and processing the signals and transmitting the analyzed and processed signals to a computer, the remote controller can acquire the signals without disassembling the remote controller, the software has the function of displaying the data transmitted by the hardware on the computer in a waveform manner, is similar to the display of a digital oscilloscope and simultaneously decodes and displays a code format and data, and the infrared remote control code analyzer can analyze and display the whole waveform and also can analyze and test carrier waves.
For example, the control terminal reads a table file of the number data, the file includes number data corresponding to all target universal remote control codes, assuming that the target universal remote control codes are a, B and C, the number data corresponding to a is 01-ON, the number data corresponding to B is 02-OFF and the number data corresponding to C is 03-VOL, sequentially reads the number data in sequence, generates a key control instruction corresponding to 01-ON when reading 01-ON, and correspondingly controls the mechanical arm to move if the instruction is a mechanical arm control instruction, first moves to the position of a remote control key "0" to perform a touch, then moves to the position of "1" to perform a touch, and finally moves to the position of "ON" to perform a touch, thereby completing the input of the whole number data, and then analyzes the number output result by using the infrared remote control code analyzer, thereby obtaining the code information corresponding to a, where the code information may specifically include: the encoding format "uPD6124", the user code "01", the key code "15", the full code "101010010000", "15 01]", the carrier frequency "39, 787".
The step of generating a corresponding key control instruction according to the serial number data comprises the following steps:
s11, performing signal conversion on the serial number data to obtain a signal conversion result;
and S12, determining the key control instruction according to the signal conversion result.
In this embodiment, it should be noted that, since the acquired serial number data exists in the form of a digital signal, and a signal for controlling the test equipment is an electrical signal, signal conversion is required, and the signal conversion result means that the digital signal is successfully converted into the electrical signal.
As an example, steps S11 to S12 include: obtaining a signal conversion result by performing signal conversion on the serial number data, wherein the signal conversion can be performed through a signal converter; and determining a key control instruction corresponding to the electric signal according to the electric signal obtained after the signal conversion.
For example, an NI data acquisition card may be selected to perform signal conversion, and the NI data acquisition card may implement functions of automatically detecting and recording a detected signal and automatically performing signal conditioning and conversion in practical applications, and convert a digital signal of serial number data into an electrical signal for controlling a test device.
The preset remote controller at least comprises a remote control key, and the step of controlling the test equipment to input the number data in the preset remote controller according to the key control instruction to obtain a number output result comprises the following steps:
step S21, selecting a corresponding target remote control key in each remote control key according to the serial number data;
in this embodiment, it should be noted that the target remote control key refers to a key corresponding to the number data in the preset remote controller.
As an example, step S21 includes: and selecting each target remote control key corresponding to the serial number data from each remote control key according to the serial number data, determining an input path corresponding to the serial number data, and sending the input path and a key control instruction to the test equipment so as to control the corresponding test equipment to input the serial number data according to the input path, wherein the input path refers to the sequence of inputting the serial number data by the test equipment.
For example, if the serial number is 01-ON, the corresponding target remote control keys in the preset remote controller are "0" key, "1" key, "and" ON "key, and the corresponding input path is" 0"-"1"-" ON ", and the test equipment sequentially touches each target remote control key ON the preset remote controller according to the input path.
Step S22, carrying out instruction type detection on the key control instruction to obtain an instruction type detection result;
step S23, if the instruction type detection result is a mechanical arm control instruction, controlling the mechanical arm to touch the target remote control key to obtain the serial number output result;
step S24, if the instruction type detection result is an air cylinder control instruction, controlling the air cylinder to touch the target remote control key to obtain the number output result;
and S25, if the instruction type detection result is a relay control instruction, controlling a relay corresponding to the target remote control key to open and close to obtain the number output result.
In this embodiment, it should be noted that, because there are a plurality of test devices in this embodiment, the key control instruction needs to be classified, so as to control the corresponding test device to input the serial number data in the preset remote controller.
As one example, steps S22 to S25 include: performing instruction type detection on the key control instruction to obtain an instruction type detection result, wherein the instruction type detection result comprises at least one of a mechanical arm control instruction, an air cylinder control instruction or a relay control instruction, the instruction type detection can be judged according to a type label in the key control instruction, and the type label is used for marking test equipment which is correspondingly sent by the instruction; referring to fig. 2, if the key control instruction is a mechanical arm control instruction, controlling a mechanical arm servo driver to drive the mechanical arm to move to the position above a target remote control key and touch the target remote control key until all target remote control keys are touched, and obtaining the number output result; referring to fig. 3, if the key control instruction is an air cylinder control instruction, the control solenoid valve drives the telescopic end of the air cylinder to move in the X axis or the Y axis, move to the position above the target remote control key, and then move in the Z axis, so that the end of the telescopic end touches the target remote control key through up and down telescopic striking until all the target remote control keys are touched, and the number output result is obtained; referring to fig. 4, if the key control instruction is a relay control instruction, the relay corresponding to the target remote control key is controlled to perform an opening and closing operation to obtain the number output result, where the opening and closing operation includes closing and opening.
For example, assuming that the preset type labels are a type, a type and a type C, the type a corresponds to a mechanical arm control instruction, the type B corresponds to a cylinder control instruction, and the type C corresponds to a relay control instruction, and the instruction type detection is performed on the key control instruction, if the type a is detected, namely the mechanical arm control instruction, the mechanical arm is controlled to perform the touch operation, if the type B is detected, namely the cylinder control instruction, the cylinder is controlled to perform the touch operation, and if the type C is detected, namely the relay control instruction, the relay is controlled to perform the suction operation.
The opening and closing operation comprises suction and disconnection, the relay corresponding to the target remote control key is controlled to be opened and closed, and the step of obtaining the number output result comprises the following steps:
step S251, controlling the relay to suck in order to switch on a switch circuit of the target remote control key;
step S252, if the on-time of the switch circuit reaches a preset threshold, controlling the relay to be turned off to obtain the numbering output result.
In this embodiment, it should be noted that, in the use process of the remote controller, when a key is pressed, that is, an input key, the relay corresponding to the key is attracted, and the switch circuit of the key is turned on, so that the electrical signal of the key is successfully transmitted, and when the key is not pressed or is lifted after being pressed, the relay corresponding to the key is turned off, that is, the switch circuit of the key is turned off, and the electrical signal is not transmitted or the transmission of the electrical signal is finished, so in this embodiment, the attraction operation of the relay is directly controlled, so that the corresponding target remote control key completes the input; the preset threshold is the time interval between the closing and the opening of the relay, and can be set to be 1 second or 2 seconds, and other values can also be set.
As one example, steps S251 to S252 include: controlling the relays to be sequentially attracted according to the input path so as to switch on the switch circuit of each target remote control key; and if the on-time of the switch circuit reaches a preset threshold, controlling the relays to be switched off until all the relays corresponding to the target remote control keys complete the actuation operation, and obtaining the number output result.
For example, if the serial number data is 01-ON, the relay 1 corresponding to the "0" key is controlled to be attracted first to turn ON the switch circuit 1 of the "0" key, when the ON-time of the switch circuit 1 reaches 1s, the relay 1 is turned off to complete the input of "0", then the relay 2 corresponding to the "1" key is controlled to be attracted to turn ON the switch circuit 2 of the "1" key, when the ON-time of the switch circuit 2 reaches 1s, the relay 2 is turned off to complete the input of "1", finally the relay 3 corresponding to the "ON" key is controlled to be attracted to turn ON the switch circuit 3 of the "ON" key, when the ON-time of the switch circuit 3 reaches 1s, the relay 3 is turned off to complete the input of "ON", and thus the final serial number input result is obtained.
The preset remote controller at least comprises a universal key, and before the step of generating target code information corresponding to the target universal remote control code by analyzing the number output result, the preset remote controller further comprises the following steps:
step A10, detecting whether the number output result is null;
step A20, if not, performing key signal detection on each target remote control key;
step A30, if yes, numbering data are assigned to the target universal remote control code again to generate new numbering data, the numbering data are updated to the new numbering data, and the step is returned: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
As an example, steps a10 to a30 include: detecting whether the number output result is empty, and judging whether the number output result is empty by detecting whether the number data display appears on a preset display screen; if the numbering output result is empty, namely the numbering data is not assigned before the numbering data is obtained, re-numbering the target universal remote control code to generate new numbering data, updating the numbering data into the new numbering data, and returning to the step: acquiring number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the universal code group number data; and if the number output result is not empty, performing signal detection on each target remote control key, namely detecting whether the key signal corresponding to each target remote control key is valid or not, so as to avoid the problem that the number output result is failed to be analyzed due to the invalid key signal, and further cause the failure of acquiring the universal remote control code information or the error of acquiring the universal remote control code information.
The remote control key is connected with a preset pressure sensor, and the step of detecting the key signal of each universal key comprises the following steps:
step A21, acquiring current information of the pressure sensor, and detecting whether key signals corresponding to the universal keys are effective or not according to the current information;
step A22, if yes, analyzing the number output result to generate target coding information corresponding to the target universal remote control code;
step A23, if not, troubleshooting and repairing the preset remote controller, and returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
In this embodiment, it should be noted that when the target remote control key is sensed to be touched, the corresponding pressure sensor is triggered and generates a current, and whether the universal key sends a valid signal or not can be detected according to the current value, if the key signal is valid, it indicates that the input of the serial number data has been successfully completed, and if the key signal is invalid, it indicates that the key is out of order or the key is out of order.
As an example, steps a21 to a23 include: acquiring a current value generated by the pressure sensor, and detecting whether a key signal corresponding to each target remote control key is effective or not according to the current value, wherein the pressure sensor is used for sensing the triggering of the key and can be a Hall sensor; if the key signal is valid, entering an analysis step, analyzing the number output result through an infrared remote control code analyzer to generate target code information corresponding to the target universal remote control code, and automatically storing the target code information into an appointed test log table, so that the aim of recording the universal remote control code information without manually using a document is achieved, and the efficiency of capturing the universal remote control code is improved; and if the key signal is invalid, performing troubleshooting and fault repairing on the target remote control key, re-acquiring the number data corresponding to the target universal remote control code after repairing, and generating a corresponding key control instruction according to the number data.
For example, the current value of the hall sensor is monitored, when the current value reaches a preset current threshold value, the key signal at the time can be judged to be valid, if the current value does not reach the preset current threshold value, the key signal at the time can be judged to be invalid, wherein the preset current threshold value can be set as the current value when the key is normally used, in addition, when the current value of the hall sensor exceeds the preset current threshold value to a certain range, namely, the current is too large, at the moment, the key is required to be subjected to fault detection, and the safety problem caused by the too large current is prevented.
Before the step of obtaining the number data corresponding to the target universal remote control code and generating the corresponding key control instruction according to the number data, the method further comprises the following steps:
step B10, detecting whether the configuration information of the test equipment is initialized;
step B20, if yes, acquiring the number data, and generating the key control instruction according to the number data;
and B30, if not, selecting uninitialized information from the configuration information, and performing secondary initialization.
As an example, steps B10 to B30 include: detecting whether configuration information of the test equipment is initialized, wherein the configuration information can be parameter information of the test equipment; if the initialization is successful, acquiring the serial number data, and generating the key control instruction according to the serial number data; if the initialization is not carried out or the initialization is not completed, selecting the uninitialized parameter information from the configuration information, and carrying out secondary initialization on the uninitialized parameter information.
For example, whether information such as an operation parameter, a detection position, a part parameter, and the like of the test equipment is initialized is detected, if the information is initialized, the step of acquiring the serial number data is executed, and if uninitialized information exists, for example, if the detection position of the robot arm is not returned, the detection position needs to be initialized for the second time, that is, the detection position of the robot arm is returned. By initializing the grabbing equipment in advance, the follow-up grabbing operation can be more accurate, and noise data interference does not exist, so that the accuracy of acquiring the universal remote control coding information is ensured.
Compared with the mode of acquiring coding information by manually inputting universal remote control serial number data at present, the method for acquiring the universal remote control coding information firstly acquires serial number data corresponding to a target universal remote control code, and generates a corresponding key control instruction according to the serial number data; controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay; and analyzing the number output result to generate target code information corresponding to the target universal remote control code. The method for acquiring the universal remote control coding information through the automatic test equipment not only can greatly shorten the code-grabbing time and improve the code-grabbing efficiency, but also overcomes the technical defect that the accuracy of acquiring the universal remote control coding information is low due to the fact that recording errors or missing records easily occur due to manual operation, and the accuracy of acquiring the universal remote control coding information is improved.
In addition, an apparatus for acquiring universal remote control code information is provided in an embodiment of the present application, and as shown in fig. 5, the apparatus for acquiring universal remote control code information includes:
the number data acquiring module 10 is used for acquiring number data corresponding to a target universal remote control code and generating a corresponding key control instruction according to the number data;
the input number data module 20 is configured to control the test equipment to input the number data in a preset remote controller according to the key control instruction, so as to obtain a number output result, where the test equipment includes at least one of a mechanical arm, an air cylinder, or a relay;
and a target code information generating module 30, configured to generate target code information corresponding to the target universal remote control code by analyzing the number output result.
Optionally, the number data obtaining module 10 is further configured to:
performing signal conversion on the serial number data to obtain a signal conversion result;
and determining the key control instruction according to the signal conversion result.
Optionally, the input number data module 20 is further configured to:
selecting a corresponding target remote control key from each remote control key according to the serial number data;
performing instruction type detection on the key control instruction to obtain an instruction type detection result;
if the instruction type detection result is a mechanical arm control instruction, controlling the mechanical arm to touch the target remote control key to obtain the serial number output result;
if the instruction type detection result is an air cylinder control instruction, controlling the air cylinder to touch the target remote control key to obtain the serial number output result;
and if the instruction type detection result is a relay control instruction, controlling a relay corresponding to the target remote control key to open and close to obtain the number output result.
Optionally, the input number data module 20 is further configured to:
controlling the relay to pull in so as to switch on a switch circuit of the target remote control key;
and if the on-time of the switch circuit reaches a preset threshold, controlling the relay to be switched off to obtain the numbering output result.
Optionally, the device for acquiring universal remote control coding information is further configured to:
detecting whether the serial number output result is empty;
if not, performing key signal detection on each target remote control key;
if yes, renumbering data to the target universal remote control code to generate new numbered data, updating the numbered data into the new numbered data, and returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
Optionally, the device for acquiring universal remote control coding information is further configured to:
acquiring current information of each preset pressure sensor, and detecting whether a key signal corresponding to each target remote control key is effective or not according to each current information;
if so, analyzing the number output result to generate target coding information corresponding to the target universal remote control code;
if not, after troubleshooting and repairing the target remote control key, returning to the step: and acquiring serial number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the serial number data.
Optionally, the device for acquiring universal remote control coding information is further configured to:
detecting whether the configuration information of the test equipment is initialized;
if yes, acquiring the serial number data, and generating the key control instruction according to the serial number data;
if not, selecting uninitialized information from the configuration information, and carrying out secondary initialization. The device for acquiring the universal remote control coding information, which is provided by the application, adopts the method for acquiring the universal remote control coding information in the embodiment to solve the technical problem that the accuracy rate for acquiring the universal remote control coding information is low at present. Compared with the prior art, the device for acquiring the universal remote control coded information provided by the embodiment of the application has the same beneficial effects as the method for acquiring the universal remote control coded information provided by the embodiment, and other technical characteristics of the device for acquiring the universal remote control coded information are the same as those disclosed by the embodiment method, and are not repeated herein.
An embodiment of the present application provides an electronic device, which includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for acquiring universal remote control code information in the first embodiment.
Referring now to FIG. 6, shown is a block diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the application adopts the method for acquiring the universal remote control coding information in the embodiment, and solves the technical problem that the accuracy rate of acquiring the universal remote control coding information is low at present. Compared with the prior art, the electronic device provided by the embodiment of the application has the same beneficial effects as the method for acquiring the universal remote control coding information provided by the embodiment, and other technical features in the electronic device are the same as those disclosed by the embodiment method, and are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The embodiment provides a computer-readable storage medium, which has computer-readable program instructions stored thereon, and the computer-readable program instructions are used for executing the method for acquiring universal remote control coding information in the first embodiment.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer-readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: acquiring serial number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the serial number data; controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay; and analyzing the number output result to generate target coding information corresponding to the target universal remote control code.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, labview, python, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer readable storage medium provided by the application stores computer readable program instructions for executing the method for acquiring the universal remote control coding information, and solves the technical problem that the accuracy rate of acquiring the universal remote control coding information is low at present. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as the beneficial effects of the method for acquiring universal remote control coding information provided by the above embodiment, and are not described herein again.
The present application further provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for acquiring universal remote control coding information as described above.
The computer program product solves the technical problem that the accuracy rate of acquiring the universal remote control coding information is low at present. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the method for acquiring universal remote control coding information provided by the above embodiment, and details are not repeated herein.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method for acquiring universal remote control coding information is characterized by comprising the following steps:
acquiring number data corresponding to a target universal remote control code, and generating a corresponding key control instruction according to the number data;
controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay;
and analyzing the number output result to generate target coding information corresponding to the target universal remote control code.
2. The method for acquiring universal remote control coding information according to claim 1, wherein the step of generating corresponding key control commands according to the number data comprises:
performing signal conversion on the serial number data to obtain a signal conversion result;
and determining the key control instruction according to the signal conversion result.
3. The method for acquiring universal remote control coding information according to claim 1, wherein the preset remote controller comprises at least one remote control key, and the step of controlling the test equipment to input the numbering data in the preset remote controller according to the key control instruction to obtain a numbering output result comprises:
selecting a corresponding target remote control key from each remote control key according to the serial number data;
performing instruction type detection on the key control instruction to obtain an instruction type detection result;
if the instruction type detection result is a mechanical arm control instruction, controlling the mechanical arm to touch the target remote control key to obtain the serial number output result;
if the instruction type detection result is an air cylinder control instruction, controlling the air cylinder to touch the target remote control key to obtain the serial number output result;
and if the instruction type detection result is a relay control instruction, controlling a relay corresponding to the target remote control key to open and close to obtain the number output result.
4. The method for acquiring universal remote control coding information according to claim 3, wherein the opening and closing operation comprises suction and disconnection, and the step of controlling the relay corresponding to the target remote control key to open and close to obtain the number output result comprises:
controlling the relay to attract so as to switch on a switch circuit of the target remote control key;
and if the on-time of the switch circuit reaches a preset threshold, controlling the relay to be switched off to obtain the numbering output result.
5. The method for acquiring universal remote control code information according to claim 3, wherein before the step of generating target code information corresponding to the target universal remote control code by analyzing the numbering output result, the method further comprises:
detecting whether the serial number output result is empty;
if not, performing key signal detection on each target remote control key;
if yes, renumbering data to the target universal remote control code to generate new numbered data, updating the numbered data into the new numbered data, and returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
6. The method for acquiring universal remote control coding information according to claim 5, wherein the remote control keys are connected with a preset pressure sensor, and the step of detecting key signals of each target remote control key comprises:
acquiring current information of each preset pressure sensor, and detecting whether a key signal corresponding to each target remote control key is effective or not according to each current information;
if so, analyzing the number output result to generate target coding information corresponding to the target universal remote control code;
if not, after troubleshooting and repairing the target remote control key, returning to the step: and acquiring the number data corresponding to the target universal remote control code, and generating a corresponding key control instruction according to the number data.
7. The method for acquiring universal remote control code information as claimed in claim 1, further comprising, before the step of acquiring number data corresponding to a target universal remote control code and generating a corresponding key control command according to the number data:
detecting whether the configuration information of the test equipment is initialized;
if yes, acquiring the serial number data, and generating the key control instruction according to the serial number data;
if not, selecting uninitialized information from the configuration information, and carrying out secondary initialization.
8. An apparatus for acquiring universal remote control coded information, said apparatus comprising:
the number data acquisition module is used for acquiring number data corresponding to the target universal remote control code and generating a corresponding key control instruction according to the number data;
the input number data module is used for controlling test equipment to input the number data in a preset remote controller according to the key control instruction to obtain a number output result, wherein the test equipment comprises at least one of a mechanical arm, a cylinder or a relay;
and the target coding information generating module is used for analyzing the number output result to generate target coding information corresponding to the target universal remote control code.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method of acquiring universal remote control coded information of any one of claims 1 to 7.
10. A readable storage medium, wherein a program for realizing acquisition of universal remote control coding information is stored on the readable storage medium, and the program for realizing acquisition of universal remote control coding information is executed by a processor to realize the steps of the method for acquiring universal remote control coding information according to any one of claims 1 to 7.
CN202211392140.9A 2022-11-08 2022-11-08 Method, device, equipment and readable storage medium for obtaining universal remote control coding information Active CN115793518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211392140.9A CN115793518B (en) 2022-11-08 2022-11-08 Method, device, equipment and readable storage medium for obtaining universal remote control coding information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211392140.9A CN115793518B (en) 2022-11-08 2022-11-08 Method, device, equipment and readable storage medium for obtaining universal remote control coding information

Publications (2)

Publication Number Publication Date
CN115793518A true CN115793518A (en) 2023-03-14
CN115793518B CN115793518B (en) 2024-03-19

Family

ID=85436107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211392140.9A Active CN115793518B (en) 2022-11-08 2022-11-08 Method, device, equipment and readable storage medium for obtaining universal remote control coding information

Country Status (1)

Country Link
CN (1) CN115793518B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040087776A (en) * 2003-04-09 2004-10-15 주식회사 서비전자 Universal remote controller and control code establishment system and method thereof
US20080204269A1 (en) * 2007-02-23 2008-08-28 Donald Wu Programmable remote control apparatus and method thereof
CN101419748A (en) * 2008-11-19 2009-04-29 余翀 Universal remote control and distant control code searching method thereof
CN101571992A (en) * 2008-04-30 2009-11-04 杭州士兰微电子股份有限公司 Systems and method for testing remote controller
CN201489517U (en) * 2009-07-06 2010-05-26 俞启茂 System for generating code of remote controller
CN102645433A (en) * 2011-02-21 2012-08-22 珠海格力电器股份有限公司 Method and system for detecting remote controllers
CN103018589A (en) * 2012-11-26 2013-04-03 电子科技大学 Automatic detection device and automatic detection method for remote controller
CN108337372A (en) * 2018-01-19 2018-07-27 广东欧珀移动通信有限公司 Electronic device, the detection method of physical button and Related product
CN111757157A (en) * 2020-06-30 2020-10-09 深圳Tcl新技术有限公司 Infrared code processing method, television and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040087776A (en) * 2003-04-09 2004-10-15 주식회사 서비전자 Universal remote controller and control code establishment system and method thereof
US20080204269A1 (en) * 2007-02-23 2008-08-28 Donald Wu Programmable remote control apparatus and method thereof
CN101571992A (en) * 2008-04-30 2009-11-04 杭州士兰微电子股份有限公司 Systems and method for testing remote controller
CN101419748A (en) * 2008-11-19 2009-04-29 余翀 Universal remote control and distant control code searching method thereof
CN201489517U (en) * 2009-07-06 2010-05-26 俞启茂 System for generating code of remote controller
CN102645433A (en) * 2011-02-21 2012-08-22 珠海格力电器股份有限公司 Method and system for detecting remote controllers
CN103018589A (en) * 2012-11-26 2013-04-03 电子科技大学 Automatic detection device and automatic detection method for remote controller
CN108337372A (en) * 2018-01-19 2018-07-27 广东欧珀移动通信有限公司 Electronic device, the detection method of physical button and Related product
CN111757157A (en) * 2020-06-30 2020-10-09 深圳Tcl新技术有限公司 Infrared code processing method, television and system

Also Published As

Publication number Publication date
CN115793518B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US9524095B2 (en) Display control device, display control method, and program
US8661487B2 (en) Accessing remote video devices
CN102665124B (en) Based on learning remote control system and the learning remote control method of Set Top Box
JP6932852B2 (en) Data communication method and human-computer interaction system
CN104360736A (en) Gesture-based terminal control method and system
CN102375597A (en) Information processing apparatus, information processing method, and computer program
WO2018099246A1 (en) Touch screen debugging detection method and apparatus, and computer storage medium thereof
CN103281558A (en) Testing method based on set top box and set top box testing system
CN104202637A (en) Key remote control and target dragging method
US11810451B2 (en) Device control signal registration apparatus, device control signal registration system, device control signal registration method, and device control signal registration program storing medium
CN115793518B (en) Method, device, equipment and readable storage medium for obtaining universal remote control coding information
CN101312546B (en) Method for tracking and recording television operation steps and television thereof
US20140111428A1 (en) Remote control system and method for computer
JP5266416B1 (en) Test system and test program
US20230166404A1 (en) Electronic device remote controller
CN110691016B (en) Interactive method realized based on audio equipment and audio equipment
CN105992039A (en) Television media device control device, system and method
CN116302766A (en) Fault injection testing method and device, electronic equipment and readable storage medium
CN102242601A (en) Electric roll-up door control device and method
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN114791780A (en) Display screen touch control method, device, equipment and storage medium
CN113014335A (en) Total omnidirectional sensitivity test method, equipment, system and storage medium
CN112987597A (en) FSU control method, device, equipment and computer readable storage medium
CN112180758A (en) Intelligent furniture remote control method
CN114460918B (en) Method, device, equipment and storage medium for detecting equipment

Legal Events

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