CN105427578B - The method for building up and device in red outer code data library - Google Patents

The method for building up and device in red outer code data library Download PDF

Info

Publication number
CN105427578B
CN105427578B CN201510836686.2A CN201510836686A CN105427578B CN 105427578 B CN105427578 B CN 105427578B CN 201510836686 A CN201510836686 A CN 201510836686A CN 105427578 B CN105427578 B CN 105427578B
Authority
CN
China
Prior art keywords
infrared
code character
infrared code
equipment
character
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
CN201510836686.2A
Other languages
Chinese (zh)
Other versions
CN105427578A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510836686.2A priority Critical patent/CN105427578B/en
Publication of CN105427578A publication Critical patent/CN105427578A/en
Application granted granted Critical
Publication of CN105427578B publication Critical patent/CN105427578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The disclosure is directed to the method for building up and device in a kind of red outer code data library, are related to technical field of data processing.The described method includes: the use feedback that server receiving terminal is sent, this using feedback is sent after terminal is successfully remotely controlled infrared equipment using infrared code character, and the infrared code character that terminal uses is that server is supplied to terminal after selecting at least one infrared code character of infrared equipment;Each infrared code character includes several infrared codes, and every infrared code is corresponding with the key on the remote controler of infrared equipment, and the corresponding key of Different Red outer code is different;Quantity is fed back in the use for counting each infrared code character at least one infrared code character of infrared equipment, and it is not 0 infrared code character that feedback quantity is used at least one infrared code character of determining infrared equipment;It is not 0 infrared code character according to determining use feedback quantity, establishes red outer code data library.Described device includes: receiving module, statistical module and establishes module.

Description

The method for building up and device in red outer code data library
Technical field
This disclosure relates to technical field of data processing more particularly to a kind of method for building up and device in red outer code data library.
Background technique
Infrared code (also known as infrared coding) can refer to that infrared equipment finally emits or received level value.With current red The exploitation of outer distant control function needs, and is highly desirable to establish the infrared code comprising being remotely controlled infrared code used in various infrared equipments Database.
Currently, the first is manufacturer according to the calculated data of original definition there are two types of the sources of infrared code, it is for second The data learnt by infrared receiving set (such as remote controler with learning functionality).The first data is to be calculated , if there is counting loss, then infrared equipment will not respond to the data when being remotely controlled infrared equipment;Second of data be The data that infrared receiving set study comes, and there are certain error in learning process, the infrared equipment when being remotely controlled infrared equipment Different provisioning response.Therefore, it is necessary to the accuracy of infrared code is verified by actual infrared equipment.But various infrared equipments Quantity is very more, and the quantity for being remotely controlled the infrared code of infrared equipment is in even more magnanimity grade, and the creator in red outer code data library is come It says, a pair of each infrared code to carry out what verifying was very difficult to.
Summary of the invention
In order to solve when establishing red outer code data library, the creator in red outer code data library needs a pair of each infrared code The technical issues of being verified, present disclose provides the method for building up and device in a kind of red outer code data library.The technical solution It is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method for building up in red outer code data library, the method packet are provided It includes:
The use feedback that server receiving terminal is sent, described the use of feedback to be the terminal distant using the success of infrared code character It is sent after control infrared equipment, infrared code character that the terminal uses is the server from least one of the infrared equipment The terminal is supplied to after selecting in infrared code character;Each infrared code character includes several infrared codes, and every described red Outer code is corresponding with the key on the remote controler of the infrared equipment, and the corresponding key of the different infrared code is different;
The use feedback quantity of each infrared code character at least one infrared code character of the infrared equipment is counted, and Determine the infrared code character for using feedback quantity not to be 0 at least one infrared code character of the infrared equipment;
It is not 0 infrared code character according to determining use feedback quantity, establishes red outer code data library.
In the first embodiment of first aspect, before the use feedback that the server receiving terminal is sent, also Include:
The infrared code character downloading request that the terminal is sent is received, the infrared code character downloading request includes infrared equipment Mark;
According to the corresponding relationship of the mark and the mark of infrared code character of infrared equipment, the infrared code character downloading request is determined Including infrared equipment mark corresponding at least one infrared code character;
At least one infrared code character corresponding to the mark for the infrared equipment for including from determining infrared code character downloading request In, it selects an infrared code character and is supplied to the terminal.
In the second embodiment of first aspect, the mark institute for the infrared equipment that the infrared code character downloading request includes The quantity of corresponding infrared code character is greater than or equal to 2;
At least one is infrared corresponding to the mark of the infrared equipment for including from determining infrared code character downloading request In code character, selects an infrared code character and is supplied to the terminal, comprising:
Obtain the priority of each infrared code character in infrared code character corresponding to the mark of infrared equipment;
An infrared code character of highest priority is supplied to described in infrared code character corresponding to mark by infrared equipment Terminal.
It is described that the infrared code character that quantity is not 0 is fed back according to determining use in the third embodiment of first aspect, Establish red outer code data library, comprising:
Determine the optimal infrared code character of the infrared equipment, the optimal infrared code character of the infrared equipment is described infrared sets Standby use feedback quantity be not 0 infrared code character in the infrared code character most using feedback quantity;
According to the optimal infrared code character of the infrared equipment, the red outer code data library is established.
In the 4th embodiment of first aspect, the method also includes:
From the red outer code data library, search whether that there are identical optimal infrared code characters;
When there are identical optimal infrared code character, retain an infrared code character in identical optimal infrared code character, and Delete the infrared code character in identical optimal infrared code character in addition to the infrared code character of reservation;
The corresponding infrared equipment of identical optimal infrared code character is associated with to the infrared code character of reservation.
According to the second aspect of an embodiment of the present disclosure, provide a kind of red outer code data library establishes device, described device packet It includes:
Receiving module, for receiving the use feedback of terminal transmission, described the use of feedback to be the terminal use infrared code Organize and sent after being successfully remotely controlled infrared equipment, infrared code character that the terminal uses be server from the infrared equipment at least The terminal is supplied to after selecting in one infrared code character;Each infrared code character includes several infrared codes, every institute It is corresponding with the key on the remote controler of the infrared equipment to state infrared code, the corresponding key of the different infrared code is different;
Statistical module, each infrared code character makes at least one infrared code character for counting the infrared equipment With feedback quantity, and determine at least one infrared code character of the infrared equipment be not using feedback quantity 0 infrared code character;
Module is established, the use feedback quantity for determining according to the statistical module is not 0 infrared code character, is established red Outer code data library.
In the first embodiment of second aspect, the receiving module is also used to, and receives the infrared of the terminal transmission Code character downloading request, the infrared code character downloading request include the mark of infrared equipment;
Described device further includes determining module, and the determining module is used for:
According to the corresponding relationship of the mark and the mark of infrared code character of infrared equipment, the infrared code character downloading request is determined Including infrared equipment mark corresponding at least one infrared code character;
At least one infrared code character corresponding to the mark for the infrared equipment for including from determining infrared code character downloading request In, it selects an infrared code character and is supplied to the terminal.
In the second embodiment of second aspect, the mark institute for the infrared equipment that the infrared code character downloading request includes The quantity of corresponding infrared code character is greater than or equal to 2;
The determining module is used for:
Obtain the priority of each infrared code character in infrared code character corresponding to the mark of infrared equipment;
An infrared code character of highest priority is supplied to described in infrared code character corresponding to mark by infrared equipment Terminal.
In the third embodiment of second aspect, the module of establishing is used for:
Determine the optimal infrared code character of the infrared equipment, the optimal infrared code character of the infrared equipment is described infrared sets Standby use feedback quantity be not 0 infrared code character in the infrared code character most using feedback quantity;
According to the optimal infrared code character of the infrared equipment, the red outer code data library is established.
In the 4th embodiment of second aspect, described device further includes removing module, and the removing module is used for:
From the red outer code data library, search whether that there are identical optimal infrared code characters;
When there are identical optimal infrared code character, retain an infrared code character in identical optimal infrared code character, and Delete the infrared code character in identical optimal infrared code character in addition to the infrared code character of reservation;
The corresponding infrared equipment of identical optimal infrared code character is associated with to the infrared code character of reservation.
According to the third aspect of an embodiment of the present disclosure, provide a kind of red outer code data library establishes device, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the use feedback that terminal is sent, described using feedback to be that the terminal is successfully remotely controlled using infrared code character infrared It is sent after equipment, the infrared code character that the terminal uses is server from least one infrared code character of the infrared equipment The terminal is supplied to after selecting;Each infrared code character include several infrared codes, every infrared code with it is described Key on the remote controler of infrared equipment is corresponding, and the corresponding key of the different infrared codes is different;
The use feedback quantity of each infrared code character at least one infrared code character of the infrared equipment is counted, and Determine the infrared code character for using feedback quantity not to be 0 at least one infrared code character of the infrared equipment;
It is not 0 infrared code character according to determining use feedback quantity, establishes red outer code data library.
The technical scheme provided by this disclosed embodiment can include the following benefits:
For server by receiving the use feedback that terminal is sent, this is that terminal is successfully remotely controlled using infrared code character using feedback It is sent after infrared equipment, the infrared code character that terminal uses is that server is selected from least two infrared code characters of infrared equipment It is supplied to terminal afterwards;The use feedback quantity of each infrared code character is counted, and determines at least one infrared code of infrared equipment It is not 0 infrared code character that feedback quantity is used in group;It is not 0 infrared code character according to determining use feedback quantity, establishes red Outer code data library;Since the quantity of the terminal of user side is countless, whether server passes through the infrared code character of terminal authentication It can be successfully remotely controlled infrared equipment, server is can solve and need to verify each infrared code when establishing red outer code data library one by one The problem of group.
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 and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the schematic diagram for the network architecture that the method for building up in the red outer code data library shown in the disclosure is applicable in.
Fig. 2 is a kind of flow chart of the method for building up in red outer code data library shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the method for building up in red outer code data library shown according to an exemplary embodiment.
Fig. 4 is the flow chart of the maintaining method in red outer code data library shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram for establishing device in red outer code data library shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram for establishing device in red outer code data library shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram for establishing device in red outer code data library shown according to an exemplary embodiment.
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 embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
The network architecture that the technical solution that the embodiment of the present disclosure provides is applicable in is as shown in Figure 1.Referring to Fig. 1, server 10 It is communicated by internet 11 with terminal 12.Terminal 12 is communicated by infrared ray with infrared equipment 13.If being stored in server 10 The mark of dry facility information (mark that facility information includes infrared equipment), several infrared code characters and infrared equipment with it is infrared The corresponding relationship of the mark of code character.Terminal 12 accesses the facility information and infrared code that store in server 10 by internet 11 Group, and the infrared code character to match with the mark of infrared equipment 13 can be searched.Match finding with the mark of infrared equipment 13 Infrared code character after, terminal 12 downloads the infrared code character that finds from server 10, and attempts distant using the infrared code character of downloading Control infrared equipment 13.If terminal 12 can successfully be remotely controlled infrared equipment 13 using the infrared code character of downloading, terminal 12 is to clothes Business device 10 is sent using feedback.Server 10 feeds back quantity according to the use of infrared code character, determines that the use of infrared equipment 13 is anti- The quantity of feedback is not 0 infrared code character, and feeds back the infrared code character that quantity is not 0 according to the use of infrared equipment 13, is established red Outer code data library.Optionally, server 10 by the use of infrared equipment 13 feedback quantity be not 0 infrared code character in using feedback Optimal infrared code character of the most infrared code character of quantity as infrared equipment 13.Obtaining the optimal infrared of all infrared equipments 13 After code character, the optimal infrared code character of all infrared equipments 13 is configured to red outer code data library by server 10.Terminal 12 can be Mobile terminal.Mobile terminal may include intelligent remote controller, smartwatch, smart phone, tablet computer and notebook electricity Brain.Infrared equipment 13 can be the electric appliances such as television set, air-conditioning, set-top box and thermal camera.
Based on the network architecture shown in fig. 1, the embodiment of the present disclosure provide a kind of red outer code data library method for building up and Device is described in detail below in conjunction with 2 to 7 pairs of embodiment of the present disclosure of attached drawing.
Fig. 2 is a kind of method for building up in red outer code data library shown according to an exemplary embodiment.Referring to fig. 2, the party Method includes the following steps.
In step s 201, the use feedback that server receiving terminal is sent.
Wherein, which can be server 10 shown in fig. 1, and terminal can be terminal 12 shown in fig. 1.
Wherein, this is used to indicate infrared code character used in terminal remote control infrared equipment using feedback.This is using feedback Terminal is successfully remotely controlled using infrared code character to be sent after infrared equipment.The infrared code character that terminal uses is server from infrared equipment At least one infrared code character in select after be supplied to terminal.
Wherein, each infrared code character includes several infrared codes, on the remote controler of every infrared code and the infrared equipment Key is corresponding, and the corresponding key of Different Red outer code is different.
The remote controler of infrared equipment can refer to, the remote controler of manufacturer's manufacture to match with infrared equipment.Infrared equipment Remote controler is used to generate the infrared ray of remote control infrared equipment work according to infrared code.Remote controler is equipped with several keys, each presses Key realizes different functions, such as starting infrared equipment or closing infrared equipment, therefore, in order to realize different functions, each The corresponding infrared code of key is different.One group of infrared code includes the corresponding infrared code of all keys being arranged on remote controler.
In step S202, the use of each infrared code character in the infrared code character of at least one of server statistics infrared equipment Feed back quantity.
When realizing, as soon as server often receives using feedback, the counting for feeding back corresponding infrared code character will be used to add One.Quantity is fed back in the use of the final counting of each infrared code character, each infrared code character as counted.
In step S203, server determines that it is not 0 that feedback quantity is used at least one infrared code character of infrared equipment Infrared code character.
In step S204, server feeds back the infrared code character that quantity is not 0 according to determining use, establishes infrared yardage According to library.
The red outer code data library established includes that several use feeds back infrared code character and infrared equipment that quantity is not 0 The corresponding relationship of mark and the mark for the infrared code character for using feedback not being 0.
In embodiment of the disclosure, for server by receiving the use feedback that terminal is sent, this is that terminal makes using feedback Sent after being successfully remotely controlled infrared equipment with infrared code character, the infrared code character that terminal uses be server from infrared equipment at least Terminal is supplied to after selecting in two infrared code characters;The use feedback quantity of each infrared code character is counted, and determines infrared set It is not 0 infrared code character that feedback quantity is used in the infrared code character of at least one standby;It is not 0 according to determining use feedback quantity Infrared code character, establish red outer code data library;Since the quantity of the terminal of user side is countless, pass through terminal authentication Whether infrared code character can successfully be remotely controlled infrared equipment, and the creator that can solve red outer code data library is establishing red outer code data The problem of verifying each infrared code character one by one is needed when library.
Fig. 3 is a kind of method for building up in red outer code data library shown according to an exemplary embodiment, the present embodiment and Fig. 2 The same or similar step of the embodiment shown refer to Fig. 2 shows embodiment, details are not described herein.In the present embodiment, It will be described in how infrared code character is supplied to terminal by server.Referring to Fig. 3, this method comprises the following steps.
In step S301, terminal to server sends infrared code character downloading request.
Wherein, terminal can be terminal 12 shown in fig. 1, and server can be server 10 shown in fig. 1.
Wherein, which includes the mark of infrared equipment.Optionally, which goes back Including device class and/or brand.Specifically, which includes the mark of infrared equipment;Alternatively, this is infrared Code character downloading request includes the mark and device class of infrared equipment;Alternatively, infrared code character downloading request includes brand and red The mark of external equipment;Alternatively, infrared code character downloading request includes mark, device class and the brand of infrared equipment.
Specifically, device class can refer to the type of infrared equipment, for example, device class can be television set, set-top box, Air-conditioning, refrigerator or video camera.Brand can refer to the sale brand of infrared equipment, for example, brand can be beauty, Haier, Changhong, Hisense or millet.The mark of infrared equipment can refer to the model of infrared equipment, and infrared equipment has only one model.
When realizing, the client of infrared remote control application is installed in terminal.After user logs in the client, client will Prompt user first inputs the infrared equipment information that need to be remotely controlled, and it further includes equipment that infrared equipment information, which includes the mark of infrared equipment, Classification and/or brand.After user inputs infrared equipment information, user end to server sends infrared code character downloading request.
In step s 302, after server receives infrared code character downloading request, according to the mark of infrared equipment and infrared code The corresponding relationship of the mark of group determines that at least one is red corresponding to the mark for the infrared equipment that infrared code character downloading request includes Outer code character.
Wherein, each infrared code character includes several infrared codes, pressing on the remote controler of every infrared code and infrared equipment Key is corresponding, and the corresponding key of Different Red outer code is different.
It is stored with the infrared code character of the need verifying of magnanimity in server and believes with the matched infrared equipment of infrared code character Breath.The infrared code character that is stored when realizing, in server and can be from infrared number with the matched infrared equipment information of infrared code character It is obtained according to manufacturer.
In the infrared equipment information of server storage, it can will belong to the institute of same device class according to the difference of brand There is equipment to be divided into multiple equipment group, the corresponding brand of each device cluster, the corresponding brand difference of distinct device group.Each set Standby group may include at least one infrared equipment.In this way, the brand that service can first include according to the downloading request of infrared code character is true Surely matched device cluster is needed, matching range can be reduced.Further, server can also be according to the difference of device class, will The same device cluster is divided into equipment group, the corresponding device class of each equipment group, the corresponding device class of distinct device group It is different.In this way, server determines after needing matched device cluster, it is true the device class that request includes can be downloaded according to infrared code character Surely matched equipment group is needed, matching range can be reduced.
In step S303, corresponding to the mark for the infrared equipment that server includes from determining infrared code character downloading request At least one infrared code character in, select an infrared code character and be supplied to terminal.
The quantity of infrared code character corresponding to the mark for the infrared equipment that hot outer code character downloading request includes is greater than or waits When 2, server can any one infrared code character of selection in infrared code character corresponding to the mark from infrared equipment, and will choosing The infrared code character selected is sent to terminal.Server can also first obtain each in infrared code character corresponding to the mark of infrared equipment An infrared code character of highest priority in the priority of infrared code character, then infrared code character corresponding to mark by infrared equipment It is supplied to terminal.
Wherein, the priority of each infrared code character is pre-set.It can be according to the difference in the source of infrared code character, in advance Priority first is set for each infrared code character.If the source of infrared code character is the manufacturer of infrared equipment according to original definition meter It calculates, then high priority is set for the infrared code character;If the source of infrared code character is that infrared equipment learns to obtain, for Low priority is arranged in the infrared code character.The judgment criteria in the source of infrared code character may include, every infrared in hot outer code character When the numerical value of code is more regular, determine that the source of the infrared code character is calculated according to original definition;Conversely, hot outer code When the numerical value of every infrared code is irregular in group, determine that the source study of the infrared code character obtains.
Specifically, every infrared code includes the level width value for indicating " 1 " and " 0 ".If every infrared in infrared code character The level width value of the expression " 1 " of code is all identical or difference in presetting range, the level of the expression " 0 " of every infrared code Width value is all identical or difference in presetting range, then it is assumed that the numerical value of every infrared code compares rule in the infrared code character It is whole., whereas if in infrared code character the difference of the level width value of the expression " 1 " of every infrared code beyond presetting range or The difference of the level width value of the expression " 0 " of every infrared code exceeds presetting range, then it is assumed that every infrared in the infrared code character The numerical value of code is irregular.
Server can guarantee that terminal preferentially makes by the way that an infrared code character of highest priority is preferentially supplied to terminal With the infrared code character of highest priority.Since the infrared code character of highest priority is that original definition is calculated, highest is excellent The accuracy rate of the data of first grade is relatively high, then, preferential statistical counting is finally ensured ideal number by the data of highest priority According to can be screened out.
In step s 304, it after terminal obtains the infrared code character that server provides, attempts to be remotely controlled using infrared code character infrared Equipment.
When terminal can not be remotely controlled infrared equipment using infrared code character, step S305 is executed;When terminal uses infrared code character When success is remotely controlled infrared equipment, step S308 is executed.
Wherein, which can be infrared equipment 13 shown in fig. 1.Specifically, client obtains server and provides Infrared code character after, by display remoting interface, several keys are set on remote control interface, each key corresponds to one in infrared code character The infrared code of item.When user touches some key, client generates infrared ray according to infrared code corresponding with this key, with It is remotely controlled infrared equipment.If the infrared equipment response being remotely controlled, the infrared code are successfully remotely controlled the infrared equipment;, whereas if The infrared equipment being remotely controlled does not respond, then the infrared code can not be remotely controlled the infrared equipment.It is all infrared in the infrared code character When code is successfully remotely controlled the infrared equipment, determine that the infrared code character is successfully remotely controlled infrared equipment.
In step S305, terminal to server sends infrared code character replacement request.
Wherein, which is used to indicate that the infrared code character for being currently provided to terminal can not be distant to server Control infrared equipment.
When infrared code can not be remotely controlled infrared equipment, user can send infrared code character replacement by user end to server Request.
In step S306, after server receives infrared code character replacement request, determine that infrared code character downloading request includes Whether there is also at least one to be not provided to the infrared of terminal at least one infrared code character corresponding to the mark of infrared equipment Code character.
When being not provided to the infrared code character of terminal at least one infrared code character there is also at least one, step is executed S307.When, there is no when the infrared code character for being not provided to terminal, server can notify terminal not at least one infrared code character Infrared code character is inquired, this process is exited.
In step S307, server selects an infrared code character from the infrared code character that at least one is not provided to terminal And it is supplied to terminal.
Wherein, server can be not provided in the infrared code character of terminal from least one and select any one infrared code character And it is supplied to client;At least one can also be not provided to the infrared of highest priority in the infrared code character of terminal by server Code character is supplied to client.After client receives the infrared code character that server provides, it will continue to attempt to be remotely controlled using infrared code character Infrared equipment repeats step S304.
In step S308, terminal to server is sent using feedback.
Wherein, this is used to indicate infrared code character used in terminal remote control infrared equipment using feedback.
In step S309, server, which is received, feeds back quantity using the use for after feedback, counting each infrared code character, and really Determine the infrared code character for using feedback quantity not to be 0 at least one infrared code character of infrared equipment.
Specifically, as soon as server often receives using feedback, will use the infrared code character of feedback instruction make to count plus 1.It should be noted that the counting of each infrared code character is 0 before infrared code character is supplied to terminal by server.
Wherein, server can provide the terminal with infrared code character in predetermined period (such as 6 months), while to each red The use feedback quantity of outer code character is counted.After by predetermined period, the use that can count each infrared code character is anti- Feedback sum.
Realize when, when at least one infrared code character of infrared equipment without use feedback quantity be not 0 infrared code character When, i.e., the use feedback quantity of each infrared code character is 0 in the infrared code character of at least one of infrared equipment, and server can be defeated Prompt information out, prompt information include the mark of the infrared equipment.After the creator in red outer code data library sees the prompt information, Whether can be can be used with each infrared code character of manual verification.If infrared code character is available, the use of the manual setting infrared code character Feed back quantity.If infrared code character is unavailable, other infrared code character is distributed for the infrared equipment, and it is red to verify this again External equipment repeats step S301 to S309.
In step s310, server determines the optimal infrared code character of infrared equipment.
Wherein, optimal infrared code character be the use feedback quantity of infrared equipment be not 0 infrared code character in using feedback coefficient The most infrared code character of amount.
After determining the optimal infrared code character of infrared equipment, it can also be tested in actual equipment in a manner of manual verification Demonstrate,prove whether optimal infrared code character can be remotely controlled the infrared equipment.When optimal infrared code character cannot be remotely controlled the infrared equipment, from this An optimal infrared code character of the infrared equipment is redefined in other infrared code characters of infrared equipment.The mode redefined can be with It is identical as the method for determination of optimal infrared code character above-mentioned.
By repeating step S301- step S310, optimal infrared code character can be filtered out for a large amount of infrared equipments.? After filtering out optimal infrared code character for a large amount of infrared equipments, step S311 is executed.
In step S311, server establishes red outer code data library according to the optimal infrared code character of infrared equipment.
The red outer code data library established stores the optimal infrared code character of several infrared equipments, also stores in red outer code data library There is the corresponding relationship of the mark and the mark of optimal infrared code character of infrared equipment.
In embodiment of the disclosure, for server by determining optimal infrared code character, optimal infrared code character is infrared sets Standby use feedback quantity be not 0 infrared code character in the infrared code character most using feedback quantity;Most according to infrared equipment Excellent infrared code character establishes red outer code data library;Optimal infrared code character use feedback quantity it is most, show the infrared code character with The actual infrared equipment amount that family side can respond is also more, then, according to the red outer code data library that optimal infrared code character is established, It can ensure the accuracy of the infrared code character in red outer code data library, while it is unnecessary using feedback quantity to reduce other again It is not 0 infrared code character, avoiding database, there are data redundancies.
Fig. 4 is the maintaining method in red outer code data library shown according to an exemplary embodiment, which can To be the red outer code data library established according to the method shown in Fig. 3.Referring to fig. 4, this method comprises the following steps.
In step S401, server searches whether that there are identical optimal infrared code characters from red outer code data library.
When there are identical optimal infrared code character, step S402 is executed.When identical optimal infrared code character is not present, Exit this process.
Due to storing the optimal infrared code character of a large amount of infrared equipments in red outer code data library, red outer code data library In there may be identical optimal infrared code character.
In step S402, server retains an infrared code character in identical optimal infrared code character, and deletes identical Optimal infrared code character in infrared code character in addition to the infrared code character of reservation;Identical optimal infrared code character is corresponding infrared Equipment is associated with to the infrared code character of reservation.
By step S401 and step S402, server can remove infrared code character duplicate in red outer code data library, Avoid that there are redundant datas.
In step S403, server obtains addition instruction.
Wherein, addition instruction includes at least one infrared code character of new infrared equipment.New infrared equipment is except infrared code The infrared equipment except infrared equipment in database.
Specifically, addition instruction can be sent from administrator to server.
In step s 404, server is indicated according to addition, at least one infrared code character of new infrared equipment is supplied to Terminal, and receive the use feedback of terminal transmission.
This step S404 may include step S301 in the method shown in Fig. 3 to step S308, and details are not described herein.
In step S405, quantity is fed back in the use of at least one infrared code character of the new infrared equipment of server statistics.
In step S406, server determines the optimal infrared code character of new infrared equipment, and by the optimal of new infrared equipment Infrared code character is added in red outer code data library.
By step S403 to step S406, server can increase the optimal red of new infrared equipment for infrared code database Outer code character further improves red outer code data library.
In step S 407, server obtains update instruction.
Wherein, update instruction includes the mark and infrared code character of infrared equipment.
Specifically, which can be sent from administrator to server.
In step S408, server will be identified as what update instruction included in red outer code data library according to update instruction The optimal infrared code character of the infrared equipment of the mark of infrared equipment is updated to the infrared code character that update instruction includes.
By step S407 to step S408, server can update the optimal red of the infrared equipment in red outer code data library Outer code character.
In step S409, server, which obtains, deletes instruction.
Wherein, the mark that instruction includes infrared equipment is deleted.Specifically, deletion instruction can also be from administrator to service Device is sent.
In step S410, according to instruction is deleted, deletion instruction will be identified as in infrared group of database includes server The infrared code character of the infrared equipment of the mark of infrared equipment is deleted.
By step S409 to step S410, server can delete the specified infrared equipment in red outer code data library most Excellent infrared code character.
Fig. 5 is a kind of block diagram for establishing device in red outer code data library shown according to an exemplary embodiment, the device It can be set in server 10 shown in fig. 1, for realizing the method shown in Fig. 2, Fig. 3 or Fig. 4.Referring to Fig. 5, the device packet It includes receiving module 501, statistical module 502 and establishes module 503.
The receiving module 501 is configured as, and receives the use feedback that terminal is sent, this is terminal using infrared using feedback Code character, which is successfully remotely controlled, to be sent after infrared equipment, the infrared code character that terminal uses be server from infrared equipment at least one is red Terminal is supplied to after selecting in outer code character;Each infrared code character includes several infrared codes, every infrared code and infrared equipment Remote controler on key it is corresponding, the corresponding key of Different Red outer code is different.
Statistical module 502 is configured as, and counts making for each infrared code character at least one infrared code character of infrared equipment With feedback quantity, and determine infrared equipment at least one infrared code character in using feedback quantity be not 0 infrared code character.
Module 503 to be established to be configured as, the use feedback quantity determined according to statistical module 502 is not 0 infrared code character, Establish red outer code data library.
In embodiment of the disclosure, the use that terminal is sent is received by receiving module and is fed back, this is terminal using feedback Successfully be remotely controlled using infrared code character and sent after infrared equipment, infrared code character that terminal uses be server from infrared equipment to Terminal is supplied to after selecting in few two infrared code characters;Quantity is fed back in the use of each infrared code character of statistical module counts, and Determine the infrared code character for using feedback quantity not to be 0 at least one infrared code character of infrared equipment;Module is established according to determination Use feedback quantity be not 0 infrared code character, establish red outer code data library;Since the quantity of the terminal of user side disregards it Whether number, therefore, can successfully be remotely controlled infrared equipment by the infrared code character of terminal authentication, can solve building for red outer code data library Vertical person needs the problem of verifying each infrared code character one by one when establishing red outer code data library.
Fig. 6 is a kind of block diagram for establishing device in red outer code data library shown according to an exemplary embodiment.In this reality It applies in example, the device shown in Fig. 5 will be described in detail.
As optional embodiment, receiving module 501 is also used to, and is received the infrared code character that terminal is sent and is downloaded request, The infrared code character downloading request includes the mark of infrared equipment.
Referring to Fig. 6, which further includes determining module 504.
The determining module 504 is configured as, according to the corresponding relationship of the mark and the mark of infrared code character of infrared equipment, really At least one infrared code character corresponding to the mark for the infrared equipment that fixed infrared code character downloading request includes;From determining infrared code In at least one infrared code character corresponding to the mark for the infrared equipment that group downloading request includes, selects an infrared code character and mention Supply terminal.
As optional embodiment, infrared code corresponding to the mark for the infrared equipment that infrared code character downloading request includes The quantity of group is greater than or equal to 2.Determining module 504 is specifically used for: obtaining in infrared code character corresponding to the mark of infrared equipment The priority of each infrared code character;An infrared code of highest priority in infrared code character corresponding to mark by infrared equipment Group is supplied to terminal.
It as optional embodiment, establishes module 503 and is specifically used for: determining the optimal infrared code character of infrared equipment, it is red The optimal infrared code character of external equipment be infrared equipment use feedback quantity be not 0 infrared code character in using feedback quantity it is most Infrared code character;According to the optimal infrared code character of infrared equipment, red outer code data library is established.
As optional embodiment, which further includes removing module 505.
The removing module 505 is configured as: from red outer code data library, searching whether that there are identical optimal infrared codes Group;When there are identical optimal infrared code character, retain an infrared code character in identical optimal infrared code character, and delete phase Infrared code character in same optimal infrared code character in addition to the infrared code character of reservation;Identical optimal infrared code character is corresponding red External equipment is associated with to the infrared code character of reservation.
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.
In embodiment of the disclosure, optimal infrared code character is determined by establishing module, optimal infrared code character is infrared The use feedback quantity of equipment be not 0 infrared code character in the infrared code character most using feedback quantity;According to infrared equipment Optimal infrared code character establishes red outer code data library;The use feedback quantity of optimal infrared code character is most, shows that the infrared code character exists The actual infrared equipment amount that user side can respond is also more, then, the red outer code data established according to optimal infrared code character Library, it can be ensured that the accuracy of the infrared code character in red outer code data library, while it is unnecessary using feedback to reduce other again Quantity is not 0 infrared code character, and avoiding database, there are data redundancies.
Fig. 7 is a kind of block diagram for establishing device 1900 in red outer code data library shown according to an exemplary embodiment.Example Such as, device 1900 may be provided as a server.Referring to Fig. 7, device 1900 includes processing component 1922, further comprises One or more processors and memory resource represented by a memory 1932, can be by processing component 1922 for storing Execution instruction, such as application program.The application program stored in memory 1932 may include one or more Each corresponds to the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, to execute the above method: The use feedback that terminal is sent is received, this using feedback is sent after terminal is successfully remotely controlled infrared equipment using infrared code character, The infrared code character that terminal uses is that server is supplied to terminal after selecting at least one infrared code character of infrared equipment;Often A infrared code character includes several infrared codes, and every infrared code is corresponding with the key on the remote controler of infrared equipment, outside Different Red The corresponding key of code is different;Quantity is fed back in the use for counting each infrared code character at least one infrared code character of infrared equipment, And it is not 0 infrared code character that feedback quantity is used at least one infrared code character of determining infrared equipment;According to determining use Feedback quantity is not 0 infrared code character, establishes red outer code data library.
Device 1900 can also include that a power supply module 1926 be configured as the power management of executive device 1900, and one Wired or wireless network interface 1950 is configured as device 1900 being connected to network and input and output (I/O) interface 1958.Device 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention 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 true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of method for building up in red outer code data library, which is characterized in that the described method includes:
The use feedback that server receiving terminal is sent, described using feedback to be that the terminal is successfully remotely controlled using infrared code character red Sent after external equipment, the infrared code character that the terminal uses be the server from the infrared equipment at least one is infrared The terminal is supplied to after selecting in code character;Each infrared code character includes several infrared codes, every infrared code Corresponding with the key on the remote controler of the infrared equipment, the corresponding key of the different infrared code is different;
The use feedback quantity of each infrared code character at least one infrared code character of the infrared equipment is counted, and is determined It is not 0 infrared code character that feedback quantity is used in the infrared code character of at least one of the infrared equipment;
It is not 0 infrared code character according to determining use feedback quantity, establishes red outer code data library.
2. the method according to claim 1, wherein feeding back it in the use that the server receiving terminal is sent Before, further includes:
The infrared code character downloading request that the terminal is sent is received, the infrared code character downloading request includes the mark of infrared equipment Know;
According to the corresponding relationship of the mark and the mark of infrared code character of infrared equipment, determine that the infrared code character downloading request includes Infrared equipment mark corresponding at least one infrared code character;
In at least one infrared code character corresponding to the mark for the infrared equipment for including from determining infrared code character downloading request, choosing An infrared code character and it is supplied to the terminal out.
3. according to the method described in claim 2, it is characterized in that, the infrared equipment that the infrared code character downloading request includes The quantity of the corresponding infrared code character of mark is greater than or equal to 2;
At least one infrared code character corresponding to the mark of the infrared equipment for including from determining infrared code character downloading request In, it selects an infrared code character and is supplied to the terminal, comprising:
Obtain the priority of each infrared code character in infrared code character corresponding to the mark of infrared equipment;
An infrared code character of highest priority is supplied to the terminal in infrared code character corresponding to mark by infrared equipment.
4. according to the method in any one of claims 1 to 3, which is characterized in that described to use feedback coefficient according to determining Amount is not 0 infrared code character, establishes red outer code data library, comprising:
Determine the optimal infrared code character of the infrared equipment, the optimal infrared code character of the infrared equipment is the infrared equipment Be not using feedback quantity 0 infrared code character in the infrared code character most using feedback quantity;
According to the optimal infrared code character of the infrared equipment, the red outer code data library is established.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
From the red outer code data library, search whether that there are identical optimal infrared code characters;
When there are identical optimal infrared code character, retain an infrared code character in identical optimal infrared code character, and delete Infrared code character in identical optimal infrared code character in addition to the infrared code character of reservation;
The corresponding infrared equipment of identical optimal infrared code character is associated with to the infrared code character of reservation.
6. device is established in a kind of red outer code data library, which is characterized in that described device includes:
Receiving module, for receiving the use feedback of terminal transmission, the use feedback is that the terminal is formed using infrared code It is sent after function remote control infrared equipment, infrared code character that the terminal uses is server from least one of the infrared equipment The terminal is supplied to after selecting in infrared code character;Each infrared code character includes several infrared codes, and every described red Outer code is corresponding with the key on the remote controler of the infrared equipment, and the corresponding key of the different infrared code is different;
Statistical module, the use of each infrared code character is anti-in at least one infrared code character for counting the infrared equipment Quantity is presented, and it is not 0 infrared code character that feedback quantity is used at least one infrared code character of the determining infrared equipment;
Module is established, the use feedback quantity for determining according to the statistical module is not 0 infrared code character, establishes infrared code Database.
7. device according to claim 6, which is characterized in that
The receiving module is also used to, and receives the infrared code character downloading request that the terminal is sent, and the infrared code character downloading is asked Seek the mark including infrared equipment;
Described device further includes determining module, and the determining module is used for:
According to the corresponding relationship of the mark and the mark of infrared code character of infrared equipment, determine that the infrared code character downloading request includes Infrared equipment mark corresponding at least one infrared code character;
In at least one infrared code character corresponding to the mark for the infrared equipment for including from determining infrared code character downloading request, choosing An infrared code character and it is supplied to the terminal out.
8. device according to claim 7, which is characterized in that the infrared equipment that the infrared code character downloading request includes The quantity of the corresponding infrared code character of mark is greater than or equal to 2;
The determining module is used for:
Obtain the priority of each infrared code character in infrared code character corresponding to the mark of infrared equipment;
An infrared code character of highest priority is supplied to the terminal in infrared code character corresponding to mark by infrared equipment.
9. the device according to any one of claim 6 to 8, which is characterized in that the module of establishing is used for:
Determine the optimal infrared code character of the infrared equipment, the optimal infrared code character of the infrared equipment is the infrared equipment Be not using feedback quantity 0 infrared code character in the infrared code character most using feedback quantity;
According to the optimal infrared code character of the infrared equipment, the red outer code data library is established.
10. device according to claim 9, which is characterized in that described device further includes removing module, the removing module For:
From the red outer code data library, search whether that there are identical optimal infrared code characters;
When there are identical optimal infrared code character, retain an infrared code character in identical optimal infrared code character, and delete Infrared code character in identical optimal infrared code character in addition to the infrared code character of reservation;
The corresponding infrared equipment of identical optimal infrared code character is associated with to the infrared code character of reservation.
CN201510836686.2A 2015-11-26 2015-11-26 The method for building up and device in red outer code data library Active CN105427578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510836686.2A CN105427578B (en) 2015-11-26 2015-11-26 The method for building up and device in red outer code data library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510836686.2A CN105427578B (en) 2015-11-26 2015-11-26 The method for building up and device in red outer code data library

Publications (2)

Publication Number Publication Date
CN105427578A CN105427578A (en) 2016-03-23
CN105427578B true CN105427578B (en) 2019-03-08

Family

ID=55505753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510836686.2A Active CN105427578B (en) 2015-11-26 2015-11-26 The method for building up and device in red outer code data library

Country Status (1)

Country Link
CN (1) CN105427578B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590990B (en) * 2017-09-29 2019-08-27 北京盛世辉科技有限公司 Infrared data processing method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914973A (en) * 2013-12-31 2014-07-09 海尔集团公司 Method and system for infrared learning by using cloud server
CN104200644A (en) * 2014-08-14 2014-12-10 惠州Tcl移动通信有限公司 Equipment remote-control method, functional terminal and intelligent terminal
CN104469425A (en) * 2014-11-14 2015-03-25 德清东胜电子有限公司 Method for obtaining remote control code library, method for controlling set top box based on mobile terminal and television application system
CN104574927A (en) * 2014-12-14 2015-04-29 杭州赫智电子科技有限公司 Infrared matching method and infrared matching system with feedback function

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002209280A (en) * 2001-01-05 2002-07-26 Nec Access Technica Ltd Remote control system and transmitter
CN101859487A (en) * 2010-04-16 2010-10-13 鸿富锦精密工业(深圳)有限公司 Electronic book capable of realizing television remote control function and remote control method thereof
TW201328249A (en) * 2011-12-27 2013-07-01 Hon Hai Prec Ind Co Ltd Remote control system and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914973A (en) * 2013-12-31 2014-07-09 海尔集团公司 Method and system for infrared learning by using cloud server
CN104200644A (en) * 2014-08-14 2014-12-10 惠州Tcl移动通信有限公司 Equipment remote-control method, functional terminal and intelligent terminal
CN104469425A (en) * 2014-11-14 2015-03-25 德清东胜电子有限公司 Method for obtaining remote control code library, method for controlling set top box based on mobile terminal and television application system
CN104574927A (en) * 2014-12-14 2015-04-29 杭州赫智电子科技有限公司 Infrared matching method and infrared matching system with feedback function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ARM的智能家居红外控制系统设计;童江松等;《浙江理工大学学报》;20150110;第33卷(第1期);第124-129页

Also Published As

Publication number Publication date
CN105427578A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US20200100162A1 (en) Systems And Methods For Managing Network Devices
EP3016318B1 (en) Method and apparatus for customizing scene mode of intelligent device
KR102130785B1 (en) Methods of generating identification information, devices, equipment and computer readable storage media
US10321280B2 (en) Remote control of a device via text message
CN111083722A (en) Model pushing method, model requesting method, model pushing device, model requesting device and storage medium
KR101697979B1 (en) Method and apparatus for syncronizing data in connected devices
US9565287B2 (en) Remote control method and remote control system
CN110830966B (en) Binding method of Internet of things equipment and Internet of things system
CN108306796B (en) Intelligent home system, and information processing method and device of intelligent home equipment
CN105718517A (en) Webpage display control method and system, and application server
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN110933733A (en) Network distribution method, device, computer equipment and storage medium
CN105578444A (en) Automatic resource subscription method and device
US20170171198A1 (en) Communication system and information processing method
CN103957608B (en) A kind of multi-screen interactive equipment pairing connection method
US20160124403A1 (en) Method and server of customizing scenario mode for smart devices
CN105427578B (en) The method for building up and device in red outer code data library
CN105530323B (en) File upgrading method, related equipment and system
JP6250114B1 (en) Extended warranty system and server device
KR20120105281A (en) Method for generating electronic appliance identifier and managing information by using the electronic appliance identifier
CN105763913A (en) Control terminal, method and device for remote control code matching of controlled terminal
US20160202672A1 (en) Thing cooperation service system and method, and modeling tool thereof
US20160170729A1 (en) Method and device for installing smart appliance
JP6100428B1 (en) Manufacturing management system, cloud server and terminal computer
CN109947892B (en) Analysis path determination method and system, interface and log tree construction method

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