CN104881981A - Methods and devices for transmitting and receiving key instructions - Google Patents

Methods and devices for transmitting and receiving key instructions Download PDF

Info

Publication number
CN104881981A
CN104881981A CN201510222355.XA CN201510222355A CN104881981A CN 104881981 A CN104881981 A CN 104881981A CN 201510222355 A CN201510222355 A CN 201510222355A CN 104881981 A CN104881981 A CN 104881981A
Authority
CN
China
Prior art keywords
communication interface
key command
interface type
coding
infrared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510222355.XA
Other languages
Chinese (zh)
Inventor
孙伟
王向东
王吉同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
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 CN201510222355.XA priority Critical patent/CN104881981A/en
Publication of CN104881981A publication Critical patent/CN104881981A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention relates to methods and devices for transmitting and receiving key instructions and aims at targeting remote control on controlled devices. The method comprises the following steps: determining the first communication interface type of a controlled device for receiving a key instruction, determining the encoding mode of the key instruction according to the first communication interface type; encoding the key instruction according to the encoding mode, and sending the key instruction to the controlled device via a communication interface corresponding to the first communication interface type. The method is capable of avoiding the situation that the controlled devices having no need of receiving the key instruction among a plurality of controlled devices receive the key instruction and execute the key instruction, so that targeting remote control over the controlled devices is achieved.

Description

The sending method of key command, method of reseptance and device
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of sending method of key command, method of reseptance and device.
Background technology
Along with the develop rapidly of smart mobile phone, correlation technique makes smart mobile phone be integrated with TV remote controller function, thus carries out remote control by smart mobile phone to intelligent television; And along with the development of Smart Home, correlation technique controls Smart Home by bluetooth approach, when being passed through to when can support that infrared communication can support that again the equipment of Bluetooth communication sends key command by smart mobile phone, there will be and do not need the controlled device receiving this key command to receive this key command, and perform this key command, thus cause smart mobile phone to the unnecessary control of unnecessary controlled device.
Summary of the invention
For overcoming Problems existing in correlation technique, disclosure embodiment provides a kind of sending method of key command, method of reseptance and device, in order to improve the specific aim of controlled device being carried out to remote control.
According to the first aspect of disclosure embodiment, a kind of sending method of key command is provided, comprises:
Determine the first communication interface type of the controlled device receiving key command;
The coding mode of described key command is determined according to described first communication interface type;
After being encoded according to described coding mode by described key command, the communication interface corresponding by described first communication interface type sends described key command to described controlled device.
In one embodiment, described method also can comprise:
If can not determine described first communication interface type, determine the second communication interface type of opertaing device;
Described key command is encoded according to described second communication interface type;
Described key command after coding is sent to described controlled device by the communication interface that described second communication interface type is corresponding.
In one embodiment, the communication interface that the second communication interface type of described opertaing device is corresponding comprises infrared communication interface and bluetooth communication interface, is describedly encoded according to described second communication interface type by described key command, can comprise:
Described key command is carried out respectively infrared coding and bluetooth coding;
Described by coding after described key command be sent to described controlled device by the communication interface that described second communication interface type is corresponding, comprising:
Described key command after described infrared coding is sent to described controlled device by described infrared communication interface; And the described key command after described bluetooth coding is sent to described controlled device by described bluetooth communication interface.
In one embodiment, described described key command after described infrared coding is sent to described controlled device by described infrared communication interface, can comprises:
Key command after described infrared coding is converted to pwm signal;
Control switch mosfet by described pwm signal, thus described key command is sent to described controlled device by control infrared discharge lamps.
According to the second aspect of disclosure embodiment, a kind of method of reseptance of key command is provided, comprises:
Receive the key command from opertaing device;
Determine the communication interface type of the communication interface receiving described key command;
According to decoding schema corresponding to described communication interface type described key command decoded and perform decoded described key command.
In one embodiment, communication interface corresponding to described communication interface type at least comprises infrared communication interface and bluetooth communication interface, and described reception, from the key command of opertaing device, can comprise:
Described key command is received respectively by described infrared communication interface and described bluetooth communication interface.
In one embodiment, describedly according to described communication interface type described key command decoded and perform decoded described key command, can comprise:
Determine that described infrared communication interface and described bluetooth communication interface receive the priority of described key command;
According to decoding schema corresponding to the communication interface that described infrared communication interface is high with the priority in described bluetooth communication interface described key command decoded and perform described decoded described key command.
According to the third aspect of disclosure embodiment, a kind of dispensing device of key command is provided, comprises:
First determination module, is configured to the first communication interface type determining the controlled device receiving described key command;
Second determination module, described first communication interface type being configured to determine according to described first determination module determines the coding mode of described key command;
First sending module, after being configured to described key command to encode according to the described coding mode that described second determination module is determined, communication interface corresponding to described first communication interface type determined by described first determination module sends described key command to described controlled device.
In one embodiment, described device also can comprise:
3rd determination module, if be configured to described first determination module to can not determine described first communication interface type, determines the second communication interface type of opertaing device;
Coding module, the described second communication interface type be configured to described key command is determined according to described 3rd determination module is encoded;
Second sending module, is configured to the described key command after by described coding module coding and is sent to described controlled device by the communication interface that described second communication interface type is corresponding.
In one embodiment, the communication interface that the second communication interface type of described opertaing device is corresponding at least comprises infrared communication interface and bluetooth communication interface, and described coding module can comprise:
Encoding submodule, if be configured to described first determination module to can not determine described communication interface type, carries out infrared coding and bluetooth coding respectively by described key command;
Described second sending module comprises:
Send submodule, be configured to the described key command after described encoding submodule is carried out infrared coding and be sent to described controlled device by described infrared communication interface and the described key command after described encoding submodule is carried out bluetooth coding is sent to described controlled device by described bluetooth communication interface.
In one embodiment, described transmission submodule can comprise:
Transform subblock, is configured to the key command after described encoding submodule is carried out infrared coding and is converted to pwm signal;
Control submodule, be configured to the described pwm signal after by described transform subblock conversion and control switch mosfet, thus described key command is sent to described controlled device by control infrared discharge lamps.
According to the fourth aspect of disclosure embodiment, a kind of receiving trap of key command is provided, comprises:
Receiver module, is configured to receive the key command from opertaing device;
3rd determination module, is configured to determine that described receiver module receives the communication interface type of the communication interface of described key command;
Decoder module, the described communication interface type being configured to determine according to described 3rd determination module is decoded to described key command and performs decoded described key command.
In one embodiment, communication interface corresponding to described communication interface type at least comprises infrared communication interface and bluetooth communication interface, and described receiver module can comprise:
Receive submodule, be configured to receive described key command respectively by described infrared communication interface and described bluetooth communication interface.
In one embodiment, described decoder module can comprise:
Determine submodule, be configured to determine that described infrared communication interface and described bluetooth communication interface receive the priority of described key command;
Decoding sub-module, is configured to decode to described key command according to decoding schema corresponding to the communication interface type that the described described infrared communication interface determining that submodule is determined is high with the priority in described bluetooth communication interface and perform described decoded described key command.
According to the 5th aspect of disclosure embodiment, a kind of dispensing device of key command is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Determine the first communication interface type of the controlled device receiving key command;
The coding mode of described key command is determined according to described first communication interface type;
After being encoded according to described coding mode by described key command, the communication interface corresponding by described first communication interface type sends described key command to described controlled device.
According to the 6th aspect of disclosure embodiment, a kind of receiving trap of key command is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the key command from opertaing device;
Determine the communication interface type of the communication interface receiving described key command;
According to decoding schema corresponding to described communication interface type described key command decoded and perform decoded described key command.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the communication interface type can supported according to controlled device determines the coding mode of key command, and the key command after coding is sent to controlled device by corresponding communication interface, thus can guarantee that key command can have more and be sent to controlled device pointedly, the controlled device that need not receive this key command is made to receive this key command when avoiding there is multiple controlled device, and perform this key command, make that remote control is carried out to controlled device and have more specific aim.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of the sending method of key command according to an exemplary embodiment.
Fig. 2 A is the process flow diagram of the sending method of key command according to an exemplary embodiment one.
Fig. 2 B is the structural drawing of the infrared mode transmission key command according to an exemplary embodiment one.
Fig. 3 is the process flow diagram of the method for reseptance of key command according to an exemplary embodiment.
Fig. 4 is the process flow diagram of the method for reseptance of key command according to an exemplary embodiment one.
Fig. 5 is the block diagram of the dispensing device of a kind of key command according to an exemplary embodiment.
Fig. 6 is the block diagram of the dispensing device of another kind of key command according to an exemplary embodiment.
Fig. 7 is the block diagram of the receiving trap of a kind of key command according to an exemplary embodiment.
Fig. 8 is the block diagram of the receiving trap of another kind of key command according to an exemplary embodiment.
Fig. 9 is a kind of block diagram being applicable to the dispensing device of key command according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of the sending method of key command according to an exemplary embodiment, the sending method of this key command can be applied on terminal device (such as: smart mobile phone, panel computer), as shown in Figure 1, the sending method of this key command comprises the following steps S101-S103:
In step S101, determine the first communication interface type of the controlled device receiving key command.
In one embodiment, controlled device can be the intelligent home device such as intelligent television, intelligent air condition.In one embodiment, key command for controlling any instruction of controlled device, such as, can open the instruction of controlled device, the instruction of adjustment controlled device, the instruction of closedown controlled device, etc., the disclosure does not limit concrete key command.In one embodiment, first communication interface type can comprise the wireless communication interfaces such as infrared communication interface, bluetooth communication interface, WIFI communication interface, can also comprise the communication interfaces such as UART, SPI, PCIE, therefore the concrete mode of the disclosure to communication interface does not limit.
In step s 102, according to the coding mode of the first communication interface type determination key command.
Such as, if the first communication interface type is infrared communication interface, key command is carried out infrared coding, if the first communication interface type is bluetooth communication interface, key command is carried out bluetooth coding, if the first communication interface type is WIFI communication interface, key command is carried out WIFI coding.
In step s 103, after being encoded according to coding mode by key command, the communication interface corresponding by the first communication interface type sends key command to controlled device.
Such as, if carried out infrared coding to key command, by infrared communication interface, key command is sent to controlled device, if carried out bluetooth coding to key command, by bluetooth communication interface, key command is sent to controlled device, if carried out WIFI coding to key command, by WIFI communication interface, key command is sent to controlled device.
In the present embodiment, the communication interface type can supported according to controlled device determines the coding mode of key command, and the key command after coding is sent to controlled device by corresponding communication interface, thus can guarantee that key command can have more and be sent to controlled device pointedly, the controlled device that need not receive this key command is made to receive this key command when avoiding there is multiple controlled device, and perform this key command, make that remote control is carried out to controlled device and have more specific aim.
In one embodiment, method also can comprise:
If can not determine the first communication interface type, determine the second communication interface type of opertaing device;
Key command is encoded according to second communication interface type;
Key command after coding is sent to controlled device by the communication interface that second communication interface type is corresponding.
In one embodiment, the communication interface that the second communication interface type of opertaing device is corresponding comprises infrared communication interface and bluetooth communication interface, is encoded by key command, can comprise according to second communication interface type:
Key command is carried out respectively infrared coding and bluetooth coding;
Key command after coding is sent to controlled device by the communication interface that second communication interface type is corresponding, comprises:
Key command after infrared coding is sent to controlled device by infrared communication interface; And the key command after bluetooth being encoded is sent to controlled device by bluetooth communication interface.
In one embodiment, the key command after infrared coding is sent to controlled device by infrared communication interface, can comprises:
Key command after infrared coding is converted to pwm signal;
Control switch mosfet by pwm signal, thus key command is sent to controlled device by control infrared discharge lamps.
The concrete key command that how to send, please refer to subsequent embodiment.
So far, the said method that disclosure embodiment provides, can guarantee that key command can have more and be sent to controlled device pointedly, the controlled device that need not receive this key command is made to receive this key command when avoiding there is multiple controlled device, and perform this key command, make that remote control is carried out to controlled device and have more specific aim.
With specific embodiment, the technical scheme that disclosure embodiment provides is described below.
Fig. 2 A is the process flow diagram of the sending method of key command according to an exemplary embodiment one, and Fig. 2 B is the structural drawing that infrared mode according to an exemplary embodiment one sends key command; The said method that the present embodiment utilizes disclosure embodiment to provide, comprises infrared communication interface for the first communication interface type and bluetooth communication interface carries out exemplary illustration, as shown in Figure 2 A, comprises the steps:
In step s 201, when detect user by opertaing device push button instruction time, determine whether first communication interface type that can identify the controlled device receiving key command, if the first communication interface type of controlled device can be recognized, perform step S202, if the first communication interface of controlled device can not be recognized, perform step S204.
In one embodiment, first communication interface type that can identify controlled device can be determined whether by the mode of set up applications on the control device, such as, if user needs to send key command to intelligent television, first communication interface type that can arrange controlled device by the user interface of application program is infrared communication interface, and then carries out infrared coding to this key command, in another embodiment, initiatively the apply for information for confirming communication interface type can be sent to controlled device by opertaing device, this apply for information can be sent by the communication interface of arranging between controlled device and opertaing device, controlled device is after receiving this apply for information, its communication interface type that can support is sent to opertaing device, such as, controlled device can support infrared communication, also Bluetooth communication can be supported, controlled device can be determined to send to opertaing device the communication type that it can receive this key command to the priority that communication interface is arranged according to it, such as, controlled device is by the priority of the priority of infrared communication higher than Bluetooth communication, thus, the communication type of infrared communication can be sent to opertaing device by controlled device.
In step S202, according to the coding mode of the first communication interface type determination key command.
In step S203, after being encoded according to coding mode by key command, the communication interface corresponding by the first communication interface type sends key command to controlled device.
The description of step S202 and step S203 with reference to the description of above-mentioned steps S102 and step S103, can be not described in detail in this.
In step S204, if can not determine the first communication interface type, determine the second communication interface type of opertaing device.
In one embodiment, when the first communication interface type of controlled device can not be determined by the way, opertaing device can determine himself second communication interface type, such as, opertaing device both can send key command by bluetooth communication interface, also can send key command by infrared communication interface.
In step S205, key command is encoded according to second communication interface type.
Such as, this key command had both been carried out bluetooth coding by opertaing device, had also carried out infrared coding.
In step S206, the key command after coding is sent to controlled device by the communication interface that second communication interface type is corresponding.
In one embodiment, in step S205 and step S206, as shown in Figure 2 B, infrared communication interface is comprised and bluetooth communication interface carries out exemplary illustration for the communication interface that the second communication interface type of opertaing device is corresponding, monitor module 22 after listening to key command 21, key command 21 is carried out infrared coding and bluetooth coding respectively by infrared coding module 23 and bluetooth coding module 25; Wherein, after key command after infrared coding is changed by PWM module 24, infrared communication module 27 is entered in pwm signal mode, in infrared communication module 27, by the switch of pwm signal control MOSFET, control the break-make of infrared LED, and then key command is sent to controlled device with infrared signal; Key command after bluetooth being encoded is sent to controlled device by bluetooth communication interface 26.
The present embodiment is on the basis of Advantageous Effects with above-described embodiment, when can not determine the first communication interface type, by determining the second communication interface type of opertaing device, and send key command by the communication interface that opertaing device is supported, thus guarantee that controlled device can receive key command and perform corresponding action according to key command, make opertaing device both can as Infrared remote controller to have controlled the infrared communication device such as intelligent television, also the intelligent home devices such as intelligent air condition can be controlled by bluetooth approach, achieve the compatibility of communication.
Fig. 3 is that the sending method of this key command of process flow diagram of the method for reseptance of key command according to an exemplary embodiment can be applied on Smart Home (such as: intelligent television, intelligent air condition etc.), as shown in Figure 3, the method for reseptance of this key command comprises the following steps S301-S303:
In step S301, receive the key command from opertaing device.
In one embodiment, controlled device can receive key command by infrared communication interface or bluetooth communication interface, this key command can also be received by WIFI communication interface, can also receive this key command by communication interfaces such as UART, SPI, PCIE, the disclosure does not limit the communication interface receiving key command.
In step s 302, the communication interface type of the communication interface receiving key command is determined.
Such as, receive this key command by infrared communication interface or bluetooth communication interface, then the communication interface can determining to receive this key command is infrared communication interface and bluetooth communication interface.
In step S303, according to decoding schema corresponding to communication interface type key command decoded and perform decoded key command.
Such as, if determine that communication interface type is infrared communication interface, corresponding decoding schema is infrared decoding, if determine that communication interface type is that Bluetooth communication is connected, corresponding decoding schema is bluetooth decoding.
In the present embodiment, according to decoding schema corresponding to communication interface type key command decoded and perform decoded key command, thus controlled device can be decoded to key command by the decoding schema corresponding according to communication interface type, thus had more by key command and pointedly remote control is carried out to controlled device.
In one embodiment, communication interface corresponding to communication interface type at least comprises infrared communication interface and bluetooth communication interface, receives the key command from opertaing device, can comprise:
Key command is received respectively by infrared communication interface and bluetooth communication interface.
In one embodiment, according to decoding schema corresponding to communication interface type key command decoded and perform decoded key command, can comprise:
Determine that infrared communication interface and bluetooth communication interface receive the priority of key command;
According to decoding schema corresponding to the communication interface that infrared communication interface is high with the priority in bluetooth communication interface key command decoded and perform decoded key command.
The concrete key command that how to receive, please refer to subsequent embodiment.
So far, the said method that disclosure embodiment provides, can make controlled device to decode to key command by the decoding schema corresponding according to communication interface type, thus is had more by key command and carry out remote control to controlled device pointedly.
With specific embodiment, the technical scheme that disclosure embodiment provides is described below.
Fig. 4 is the process flow diagram of the method for reseptance of key command according to an exemplary embodiment one; The said method that the present embodiment utilizes disclosure embodiment to provide, carries out exemplary illustration to receive key command by bluetooth communication interface and infrared communication interface, as shown in Figure 4, comprises the steps:
In step S401, receive key command respectively by infrared communication interface and bluetooth communication interface.
In step S402, determine the communication interface type of the communication interface receiving key command.
In step S403, determine that infrared communication interface and bluetooth communication interface receive the priority of key command.
In step s 404, according to decoding schema corresponding to the communication interface that infrared communication interface is high with the priority in bluetooth communication interface key command decoded and perform decoded key command.
In one embodiment, such as, controlled device is intelligent television, this intelligent television both can receive key command by infrared communication interface, also key command can be received by bluetooth communication interface, if the priority of infrared communication interface is higher than the priority of bluetooth communication interface, so, intelligent television is when receiving key command, preferentially the key command that infrared communication interface receives is decoded to key command with the decoding schema that this infrared communication interface is corresponding, and then perform decoded key command.
The present embodiment is on the basis of Advantageous Effects with above-described embodiment, by the mode of priority the key command that one of them communication interface receives decoded and perform corresponding action, avoid the repetitive operation to key command when multiple communication interface receives same key command, improve the specific aim of controlled device being carried out to remote control.
Fig. 5 is the block diagram of the dispensing device of a kind of key command according to an exemplary embodiment, and as shown in Figure 5, the dispensing device of key command comprises:
First determination module 51, is configured to the first communication interface type determining the controlled device receiving key command;
Second determination module 52, is configured to the coding mode of the first communication interface type determination key command determined according to the first determination module 51;
First sending module 53, after being configured to key command to encode according to the coding mode that the second determination module 52 is determined, communication interface corresponding to the first communication interface type determined by the first determination module 51 sends key command to controlled device.
Fig. 6 is the block diagram of the dispensing device of another kind of key command according to an exemplary embodiment, and on above-mentioned basis embodiment illustrated in fig. 5, device also can comprise:
3rd determination module 54, if be configured to the first determination module 51 to can not determine the first communication interface type, determines the second communication interface type of opertaing device;
Coding module 55, the second communication interface type be configured to key command is determined according to the 3rd determination module 54 is encoded;
Second sending module 56, is configured to the key command after being encoded by coding module 55 and is sent to controlled device by the communication interface that second communication interface type is corresponding.
In one embodiment, the communication interface that the second communication interface type of opertaing device is corresponding comprises infrared communication interface and bluetooth communication interface, and coding module 55 can comprise:
Encoding submodule 551, if be configured to the first determination module 51 to can not determine communication interface type, carries out infrared coding and bluetooth coding respectively by key command;
Second sending module 56 can comprise:
Send submodule 561, be configured to the key command after encoding submodule 551 is carried out infrared coding and be sent to controlled device by infrared communication interface and the key command after encoding submodule 551 is carried out bluetooth coding is sent to controlled device by bluetooth communication interface.
In one embodiment, send submodule 561 can comprise:
Transform subblock 5611, is configured to the key command after encoding submodule 551 is carried out infrared coding and is converted to pwm signal;
Control submodule 5612, be configured to the pwm signal after being changed by transform subblock 5611 and control switch mosfet, thus key command is sent to controlled device by control infrared discharge lamps.
Fig. 7 is the block diagram of the receiving trap of a kind of key command according to an exemplary embodiment, and as shown in Figure 7, the receiving trap of key command comprises:
Receiver module 71, is configured to receive the key command from opertaing device;
3rd determination module 72, is configured to determine that receiver module 71 receives the communication interface type of the communication interface of key command;
Decoder module 73, decoding schema corresponding to the communication interface type being configured to determine according to the 3rd determination module 72 is decoded to key command and performs decoded key command.
Fig. 8 is the block diagram of the receiving trap of another kind of key command according to an exemplary embodiment, on above-mentioned basis embodiment illustrated in fig. 7, communication interface corresponding to communication interface type comprises infrared communication interface and bluetooth communication interface, and receiver module 71 can comprise:
Receive submodule 711, be configured to receive key command respectively by infrared communication interface and bluetooth communication interface.
In one embodiment, decoder module 73 can comprise:
Determine submodule 731, be configured to determine that infrared communication interface and bluetooth communication interface receive the priority of key command;
Decoding sub-module 732, is configured to according to determining that decoding schema corresponding to communication interface type that infrared communication interface that submodule 731 is determined is high with the priority in bluetooth communication interface to be decoded to key command and to perform decoded key command.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is a kind of block diagram being applicable to mobile terminal defense device according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing element 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of equipment 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 906 is device 900 provide electric power.Electric power assembly 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of equipment 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, the position of all right pick-up unit 900 of sensor module 914 or device 900 1 assemblies changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (16)

1. a sending method for key command, is characterized in that, described method comprises:
Determine the first communication interface type of the controlled device receiving key command;
The coding mode of described key command is determined according to described first communication interface type;
After being encoded according to described coding mode by described key command, the communication interface corresponding by described first communication interface type sends described key command to described controlled device.
2. method according to claim 1, is characterized in that, described method also comprises:
If can not determine described first communication interface type, determine the second communication interface type of opertaing device;
Described key command is encoded according to described second communication interface type;
Described key command after coding is sent to described controlled device by the communication interface that described second communication interface type is corresponding.
3. method according to claim 2, it is characterized in that, the communication interface that the second communication interface type of described opertaing device is corresponding comprises infrared communication interface and bluetooth communication interface, is describedly encoded according to described second communication interface type by described key command, comprising:
Described key command is carried out respectively infrared coding and bluetooth coding;
Described by coding after described key command be sent to described controlled device by the communication interface that described second communication interface type is corresponding, comprising:
Described key command after described infrared coding is sent to described controlled device by described infrared communication interface; And the described key command after described bluetooth coding is sent to described controlled device by described bluetooth communication interface.
4. method according to claim 3, is characterized in that, described described key command after described infrared coding is sent to described controlled device by described infrared communication interface, comprising:
Key command after described infrared coding is converted to pwm signal;
Control switch mosfet by described pwm signal, thus described key command is sent to described controlled device by control infrared discharge lamps.
5. a method of reseptance for key command, is characterized in that, described method comprises:
Receive the key command from opertaing device;
Determine the communication interface type of the communication interface receiving described key command;
According to decoding schema corresponding to described communication interface type described key command decoded and perform decoded described key command.
6. method according to claim 5, is characterized in that, communication interface corresponding to described communication interface type at least comprises infrared communication interface and bluetooth communication interface, and described reception, from the key command of opertaing device, comprising:
Described key command is received respectively by described infrared communication interface and described bluetooth communication interface.
7. method according to claim 6, is characterized in that, the described decoding schema corresponding according to described communication interface type is decoded to described key command and performed decoded described key command, comprising:
Determine that described infrared communication interface and described bluetooth communication interface receive the priority of described key command;
According to decoding schema corresponding to the communication interface that described infrared communication interface is high with the priority in described bluetooth communication interface described key command decoded and perform described decoded described key command.
8. a dispensing device for key command, is characterized in that, described device comprises:
First determination module, is configured to the first communication interface type determining the controlled device receiving described key command;
Second determination module, described first communication interface type being configured to determine according to described first determination module determines the coding mode of described key command;
First sending module, after being configured to described key command to encode according to the described coding mode that described second determination module is determined, communication interface corresponding to described first communication interface type determined by described first determination module sends described key command to described controlled device.
9. device according to claim 8, is characterized in that, described device also comprises:
3rd determination module, if be configured to described first determination module to can not determine described first communication interface type, determines the second communication interface type of opertaing device;
Coding module, the described second communication interface type be configured to described key command is determined according to described 3rd determination module is encoded;
Second sending module, is configured to the described key command after by described coding module coding and is sent to described controlled device by the communication interface that described second communication interface type is corresponding.
10. device according to claim 9, is characterized in that, the communication interface that the second communication interface type of described opertaing device is corresponding comprises infrared communication interface and bluetooth communication interface, and described coding module comprises:
Encoding submodule, if be configured to described first determination module to can not determine described communication interface type, carries out infrared coding and bluetooth coding respectively by described key command;
Described second sending module comprises:
Send submodule, be configured to the described key command after described encoding submodule is carried out infrared coding and be sent to described controlled device by described infrared communication interface and the described key command after described encoding submodule is carried out bluetooth coding is sent to described controlled device by described bluetooth communication interface.
11. devices according to claim 10, is characterized in that, described transmission submodule comprises:
Transform subblock, is configured to the key command after described encoding submodule is carried out infrared coding and is converted to pwm signal;
Control submodule, be configured to the described pwm signal after by described transform subblock conversion and control switch mosfet, thus described key command is sent to described controlled device by control infrared discharge lamps.
The receiving trap of 12. 1 kinds of key commands, is characterized in that, described device comprises:
Receiver module, is configured to receive the key command from opertaing device;
3rd determination module, is configured to determine that described receiver module receives the communication interface type of the communication interface of described key command;
Decoder module, decoding schema corresponding to the described communication interface type being configured to determine according to described 3rd determination module is decoded to described key command and performs decoded described key command.
13. devices according to claim 12, is characterized in that, communication interface corresponding to described communication interface type at least comprises infrared communication interface and bluetooth communication interface, and described receiver module comprises:
Receive submodule, be configured to receive described key command respectively by described infrared communication interface and described bluetooth communication interface.
14. devices according to claim 13, is characterized in that, described decoder module comprises:
Determine submodule, be configured to determine that described infrared communication interface and described bluetooth communication interface receive the priority of described key command;
Decoding sub-module, is configured to determine that communication interface type that the priority in the described infrared communication interface that submodule is determined and described bluetooth communication interface is high to be decoded to described key command and to perform described decoded described key command according to described.
The dispensing device of 15. 1 kinds of key commands, is characterized in that, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Determine the first communication interface type of the controlled device receiving key command;
The coding mode of described key command is determined according to described first communication interface type;
After being encoded according to described coding mode by described key command, the communication interface corresponding by described first communication interface type sends described key command to described controlled device.
The dispensing device of 16. 1 kinds of key commands, is characterized in that, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the key command from opertaing device;
Determine the communication interface type of the communication interface receiving described key command;
According to decoding schema corresponding to described communication interface type described key command decoded and perform decoded described key command.
CN201510222355.XA 2015-05-04 2015-05-04 Methods and devices for transmitting and receiving key instructions Pending CN104881981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510222355.XA CN104881981A (en) 2015-05-04 2015-05-04 Methods and devices for transmitting and receiving key instructions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510222355.XA CN104881981A (en) 2015-05-04 2015-05-04 Methods and devices for transmitting and receiving key instructions

Publications (1)

Publication Number Publication Date
CN104881981A true CN104881981A (en) 2015-09-02

Family

ID=53949458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510222355.XA Pending CN104881981A (en) 2015-05-04 2015-05-04 Methods and devices for transmitting and receiving key instructions

Country Status (1)

Country Link
CN (1) CN104881981A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936889A (en) * 2015-12-29 2017-07-07 宏碁股份有限公司 Remote control system, electronic device and remote control method
CN107301767A (en) * 2017-06-23 2017-10-27 南京悦控智能科技有限公司 A kind of SCM Based general bimodulus remote control thereof
CN109570832A (en) * 2018-11-24 2019-04-05 上海沪工焊接集团股份有限公司 A kind of comparison control method with key welding gun operation mode
WO2019227317A1 (en) * 2018-05-29 2019-12-05 华为技术有限公司 Control method for power key in virtual remote controller and terminal
CN113038068A (en) * 2019-12-24 2021-06-25 浙江宇视科技有限公司 Analog camera control method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002101477A (en) * 2000-09-22 2002-04-05 Kenwood Corp Remote controller, device to be remotely controlled, and electric device with remote control function
CN1593049A (en) * 2001-10-16 2005-03-09 索尼株式会社 Transmission/reception apparatus, transmission/reception method, and transmission/reception system
CN102098578A (en) * 2011-01-06 2011-06-15 上海聚欣网络科技有限公司 Method and equipment for controlling operation of user equipment based on user input operation
CN103632531A (en) * 2013-12-10 2014-03-12 青岛歌尔声学科技有限公司 Intelligent remote controller with laser pointer function and remote control method thereof
CN103999137A (en) * 2011-10-28 2014-08-20 环球电子有限公司 System and method for optimized appliance control
CN104158993A (en) * 2014-07-31 2014-11-19 广东美的集团芜湖制冷设备有限公司 Communication mode confirmation device, system and method as well as household appliance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002101477A (en) * 2000-09-22 2002-04-05 Kenwood Corp Remote controller, device to be remotely controlled, and electric device with remote control function
CN1593049A (en) * 2001-10-16 2005-03-09 索尼株式会社 Transmission/reception apparatus, transmission/reception method, and transmission/reception system
CN102098578A (en) * 2011-01-06 2011-06-15 上海聚欣网络科技有限公司 Method and equipment for controlling operation of user equipment based on user input operation
CN103999137A (en) * 2011-10-28 2014-08-20 环球电子有限公司 System and method for optimized appliance control
CN103632531A (en) * 2013-12-10 2014-03-12 青岛歌尔声学科技有限公司 Intelligent remote controller with laser pointer function and remote control method thereof
CN104158993A (en) * 2014-07-31 2014-11-19 广东美的集团芜湖制冷设备有限公司 Communication mode confirmation device, system and method as well as household appliance

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936889A (en) * 2015-12-29 2017-07-07 宏碁股份有限公司 Remote control system, electronic device and remote control method
CN106936889B (en) * 2015-12-29 2021-04-09 宏碁股份有限公司 Remote control system, electronic device and remote control method
CN107301767A (en) * 2017-06-23 2017-10-27 南京悦控智能科技有限公司 A kind of SCM Based general bimodulus remote control thereof
WO2019227317A1 (en) * 2018-05-29 2019-12-05 华为技术有限公司 Control method for power key in virtual remote controller and terminal
CN111557097A (en) * 2018-05-29 2020-08-18 华为技术有限公司 Control method of power key in virtual remote controller and terminal
CN111557097B (en) * 2018-05-29 2022-04-05 华为技术有限公司 Control method of power key in virtual remote controller and terminal
CN109570832A (en) * 2018-11-24 2019-04-05 上海沪工焊接集团股份有限公司 A kind of comparison control method with key welding gun operation mode
CN113038068A (en) * 2019-12-24 2021-06-25 浙江宇视科技有限公司 Analog camera control method, device, equipment and storage medium
CN113038068B (en) * 2019-12-24 2024-02-06 浙江宇视科技有限公司 Analog camera control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104159218B (en) Internetwork connection establishing method and device
CN105094732A (en) Screen display method and apparatus
CN104219388A (en) Voice control method and device
CN104853136A (en) Video communication method and device
CN105357262A (en) Device control method and device control apparatus
CN104407592A (en) Method and device for regulating running state of smart home device
CN104703295A (en) Network access method and network access device
CN105228224A (en) The cut-in method of wireless network and device
CN103916691A (en) Television control method and mobile terminal
CN104618783A (en) Remote control method and device
CN104902527A (en) Communication network switching method and communication network switching device
CN104980820A (en) Multimedia file playing method and multimedia file playing device
CN104717554A (en) Smart television control method and device and electronic equipment
CN105159523A (en) Target function enabling method, apparatus and system
CN105246135A (en) Wireless network accessing method and device, and mobile terminal
CN104735670A (en) Network access method and device
CN104881981A (en) Methods and devices for transmitting and receiving key instructions
CN105162889A (en) Device finding method and apparatus
CN104837154A (en) Wireless access point control method and device
CN105516587A (en) Method for switching cameras and mobile terminal
CN104812020A (en) Method, device and system for controlling intelligent equipment to access network
CN105578557A (en) Routing information transmission method and device
CN104950838A (en) Network account binding method and device
CN105207994A (en) Account number binding method and device
CN105511307A (en) Control method and apparatus of electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150902