CN105116770A - Control method and device of intelligent socket - Google Patents

Control method and device of intelligent socket Download PDF

Info

Publication number
CN105116770A
CN105116770A CN201510409531.0A CN201510409531A CN105116770A CN 105116770 A CN105116770 A CN 105116770A CN 201510409531 A CN201510409531 A CN 201510409531A CN 105116770 A CN105116770 A CN 105116770A
Authority
CN
China
Prior art keywords
control signal
peripheral hardware
terminal peripheral
smart jack
terminal
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
CN201510409531.0A
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 CN201510409531.0A priority Critical patent/CN105116770A/en
Publication of CN105116770A publication Critical patent/CN105116770A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to a control method and device of an intelligent socket. The method comprises the steps of monitoring whether an operation on a terminal peripheral device is received; when the operation on the terminal peripheral device is received, generating a first control signal; sending the first control signal to a router, wherein the router is used to control the intelligent socket to be turned on to supply power to a terminal according to the first control signal. According to the technical scheme, the terminal can keep a charging state when being used, thereby avoiding the situation that users forget to turn on the socket, so that the electric quantity of the terminal is insufficient, improving the usage efficiency of the terminal, and bringing conveniences to users.

Description

The control method of smart jack and device
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of control method and device of smart jack.
Background technology
Along with the development of internet, infotech, Smart Home more and more receives the concern of people, and the existence of Smart Home makes the life of people more convenient, quick, such as intelligent air condition, intelligent television, intelligent refrigerator etc.Socket, as a requisite home equipment in people's life, is also endowed the function that intelligence is controlled gradually.
Summary of the invention
Disclosure embodiment provides a kind of control method and device of smart jack.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, provide a kind of control method of smart jack, be applied to terminal peripheral hardware, the terminal that described terminal peripheral hardware connects is connected with smart jack, and described method comprises:
Monitor the operation whether received on described terminal peripheral hardware;
When receiving the operation on described terminal peripheral hardware, generate the first control signal;
Send described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Technique scheme, by the operation of monitor user ' on terminal peripheral hardware, and when receiving the operation on terminal peripheral hardware, controlling smart jack opens as terminal is powered, make terminal can be kept the state of charging when using, thus avoid user and forget the situation opened socket and cause terminal power deficiency, improve the service efficiency of terminal, for user brings convenience.
In one embodiment, described terminal peripheral hardware comprises at least one in mouse, keyboard.
In this embodiment, when receiving the operation in mouse or keyboard on any one terminal peripheral hardware, can both control smart jack opens as terminal is powered, make terminal can be kept the state of charging when using, thus avoid user and forget the situation opened socket and cause terminal power deficiency, improve the service efficiency of terminal, for user brings convenience.
In one embodiment, when described terminal peripheral hardware comprises mouse, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receiving the mobile operation to described mouse, catch the displacement signal of described mouse; Described first control signal is generated according to institute's displacement signal;
Or,
When receiving the clicking operation to the button on described mouse, catch the click signal of described mouse; Described first control signal is generated according to described click signal.
In this embodiment, controlling smart jack for opening as terminal charge by the displacement signal or click signal of catching mouse, making the control of terminal peripheral hardware to smart jack more simple and effective.
In one embodiment, when described terminal peripheral hardware comprises keyboard, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receive to the button on described keyboard knock operation time, catch the knocking of described keyboard;
Described first control signal is generated according to described knocking.
In this embodiment, controlling smart jack for opening as terminal charge by the knocking of catching keyboard, making the control of terminal peripheral hardware to smart jack more simple and effective.
In one embodiment, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receiving the operation on described terminal peripheral hardware, judge whether described operation is predetermined registration operation;
When described be operating as predetermined registration operation time, generate the first control signal.
In this embodiment, by judging whether to the operation of terminal peripheral hardware be that predetermined registration operation determines whether that controlling smart jack opens, make the control of smart jack more accurate, and the unlatching of smart jack can be controlled according to the demand of user, improve the Experience Degree of user.
In one embodiment, described predetermined registration operation comprises at least one in following condition:
Described mouse is moved predeterminable range;
Click or double-click the designated button on described mouse;
Knock the specified button on described keyboard.
In this embodiment, by judging whether to the operation of terminal peripheral hardware be that predetermined registration operation determines whether that controlling smart jack opens, make the control of smart jack more accurate, and the unlatching of smart jack can be controlled according to the demand of user, improve the Experience Degree of user.
In one embodiment, whether described monitoring receives the operation on described terminal peripheral hardware, comprising:
The operation on described terminal peripheral hardware whether is received in monitoring preset duration.
In one embodiment, described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, generate the second control signal;
Send described second control signal to described router, described router is used for controlling described smart jack according to described second control signal and closes.
When this embodiment does not operate for a long time on terminal peripheral hardware, can control smart jack and close, the terminal that terminal device is connected, when not by use, stops the charging to terminal, thus makes smart jack without the need to carrying out unnecessary work.
In one embodiment, described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, the terminal connected to described terminal peripheral hardware sends the information of whether closing described smart jack;
When receiving the comformed information of the described smart jack of closedown that described terminal sends, generate the 3rd control signal;
Send described 3rd control signal to router, described router is used for controlling described smart jack according to described 3rd control signal and closes.
When this embodiment can not operate for a long time on terminal peripheral hardware, determine whether that controlling smart jack closes according to the selection of user, the demand of the user that makes more to fit to the control of smart jack, improves the Experience Degree of user.
According to the second aspect of disclosure embodiment, provide a kind of control device of smart jack, be applied to terminal peripheral hardware, the terminal that described terminal peripheral hardware connects is connected with smart jack, and described device comprises:
Monitoring modular, for monitoring the operation whether received on described terminal peripheral hardware;
First generation module, for when receiving the operation on described terminal peripheral hardware, generates the first control signal;
First sending module, for sending described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
In one embodiment, described first generation module comprises:
First catches submodule, during for comprising mouse when described terminal peripheral hardware and receiving the mobile operation to described mouse, catches the displacement signal of described mouse; First generates submodule, for generating described first control signal according to institute's displacement signal;
Or,
Second catches submodule, for when described terminal peripheral hardware comprises mouse and receives the clicking operation to the button on described mouse, catches the click signal of described mouse; Second generates submodule, for generating described first control signal according to described click signal.
In one embodiment, described first generation module comprises:
3rd catches submodule, for comprise keyboard when described terminal peripheral hardware and receive to the button on described keyboard knock operation time, catch the knocking of described keyboard;
3rd generates submodule, for generating described first control signal according to described knocking.
In one embodiment, described first generation module comprises:
Judging submodule, for when receiving the operation on described terminal peripheral hardware, judging whether described operation is predetermined registration operation;
4th generate submodule, for when described in be operating as predetermined registration operation time, generate the first control signal.
In one embodiment, described monitoring modular comprises:
Monitoring submodule, for monitoring in preset duration the operation whether received on described terminal peripheral hardware.
In one embodiment, described device also comprises:
Second generation module, for when not receiving the operation on described terminal peripheral hardware in described preset duration, generates the second control signal;
Second sending module, for sending described second control signal to described router, described router is used for controlling described smart jack according to described second control signal and closes.
In one embodiment, described device also comprises:
3rd sending module, for when not receiving the operation on described terminal peripheral hardware in described preset duration, the terminal connected to described terminal peripheral hardware sends the information of whether closing described smart jack;
3rd generation module, for when receiving the comformed information of the described smart jack of closedown that described terminal sends, generates the 3rd control signal;
4th sending module, for sending described 3rd control signal to router, described router is used for controlling described smart jack according to described 3rd control signal and closes.
The device that embodiment of the present disclosure provides can comprise following beneficial effect:
Said apparatus, by the operation of monitor user ' on terminal peripheral hardware, and when receiving the operation on terminal peripheral hardware, controlling smart jack opens as terminal is powered, make terminal can be kept the state of charging when using, thus avoid user and forget the situation opened socket and cause terminal power deficiency, improve the service efficiency of terminal, for user brings convenience.
According to the third aspect of disclosure embodiment, provide a kind of control device of smart jack, be applied to terminal peripheral hardware, the terminal that described terminal peripheral hardware connects is connected with smart jack, and described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Monitor the operation whether received on described terminal peripheral hardware;
When receiving the operation on described terminal peripheral hardware, generate the first control signal;
Send described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
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 and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment.
Fig. 2 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment one.
Fig. 3 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment two.
Fig. 4 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment three.
Fig. 5 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment four.
Fig. 6 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment.
Fig. 7 is the block diagram of the control device of a kind of smart jack according to an exemplary embodiment.
Fig. 8 is the block diagram of the first generation module in the control device of a kind of smart jack according to an exemplary embodiment.
Fig. 9 is the block diagram of the first generation module in the control device of a kind of smart jack according to an exemplary embodiment.
Figure 10 is the block diagram of the first generation module in the control device of a kind of smart jack according to an exemplary embodiment.
Figure 11 is the block diagram of the first generation module in the control device of a kind of smart jack according to an exemplary embodiment.
Figure 12 is the block diagram of monitoring modular in the control device of a kind of smart jack according to an exemplary embodiment.
Figure 13 is the block diagram of the control device of a kind of smart jack according to an exemplary embodiment.
Figure 14 is the block diagram of the control device of a kind of smart jack according to an exemplary embodiment.
Figure 15 is a kind of block diagram being applicable to the device of the control of smart jack 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 disclosure.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 disclosure are consistent.
Fig. 1 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment, and as shown in Figure 1, the control method of this smart jack is used for, in terminal, comprising the following steps S11-S13.
In step s 11, the operation whether received on terminal peripheral hardware is monitored.
In step s 12, when receiving the operation on terminal peripheral hardware, generate the first control signal.
In step s 13, send the first control signal to router, router is used for controlling smart jack according to the first control signal and opens as terminal is powered.
Adopt the technical scheme that disclosure embodiment provides, by the operation of monitor user ' on terminal peripheral hardware, and when receiving the operation on terminal peripheral hardware, controlling smart jack opens as terminal is powered, make terminal can be kept the state of charging when using, thus avoid user and forget the situation opened socket and cause terminal power deficiency, improve the service efficiency of terminal, for user brings convenience.
In said method, terminal peripheral hardware can be the keyboard, mouse etc. that are connected with terminal.User can by controlling the unlatching of smart jack to the operation of keyboard or mouse.
In one embodiment, when being set to mouse outside terminal, above-mentioned steps S12 may be embodied as following steps: when receiving the mobile operation to described mouse, catch the displacement signal of mouse; The first control signal is generated according to displacement signal.Or, can also following steps being embodied as: when receiving the clicking operation to the button on mouse, catching the click signal of mouse; Generate the first control signal according to click signal, wherein, the button on mouse comprises left mouse button or right button.Visible, as long as user's rolling mouse or click the mouse, mouse will generate control signal, opens as terminal charge to control smart jack, make to control more simple and effective to smart jack by terminal peripheral hardware, user is terminal charge without the need to manually going to open socket.
In one embodiment, when being set to keyboard outside terminal, above-mentioned steps S12 may be embodied as following steps: when receive to the button on keyboard knock operation time, catch the knocking of keyboard; The first control signal is generated according to knocking.Visible, as long as user knocks the button on keyboard, keyboard can generate control signal, opens as terminal charge to control smart jack, make to control more simple and effective to smart jack by terminal peripheral hardware, user is terminal charge without the need to manually going to open socket.
Fig. 2 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment one.In this embodiment one, outside terminal, be set to the mouse be connected with terminal.As shown in Figure 2, the method comprises the following steps S21-S25.
In the step s 21, when user's rolling mouse, mouse catches displacement signal.
In step S22, mouse, according to the displacement signal captured, generates the first control signal.
In step S23, the first control signal is sent to router by mouse.
In step s 24 which, the first control signal is sent to smart jack by router.
In step s 25, smart jack, according to the first control signal received, starts the terminal charge for being connected with mouse.
Fig. 3 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment two.In this embodiment two, outside terminal, be set to the keyboard be connected with terminal.As shown in Figure 3, the method comprises the following steps S31-S35.
In step S31, when knocking the button on keyboard as user, keyboard catches knocking.
In step s 32, keyboard, according to the knocking captured, generates the first control signal.
In step S33, the first control signal is sent to router by keyboard.
In step S34, the first control signal is sent to smart jack by router.
In step s 35, smart jack, according to the first control signal received, starts the terminal charge for being connected with keyboard.
From above-described embodiment one with embodiment two, as long as the mouse be connected with terminal or keyboard receive the operation of user, the signal corresponding with user operation can be captured, and generate control signal according to this signal, and then control smart jack starts as terminal charge, make terminal can be kept the state of charging when using, and without the need to the manually opened socket of user, thus avoid user and forget the situation opened socket and cause terminal power deficiency, improve the service efficiency of terminal, for user brings convenience.
In one embodiment, above-mentioned steps S12 can also be embodied as following steps: when receiving the operation on terminal peripheral hardware, judges whether operation is predetermined registration operation; When being operating as predetermined registration operation, generate the first control signal.Wherein, predetermined registration operation can be set according to demand by user, such as, mouse is moved predeterminable range, clicks or the designated button on double click, the specified button etc. of knocking on keyboard.In the present embodiment, by judging whether to the operation of terminal peripheral hardware be that predetermined registration operation determines whether that controlling smart jack opens, make the control of smart jack more accurate, and the unlatching of smart jack can be controlled according to the demand of user, improve the Experience Degree of user.
Fig. 4 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment three.In this embodiment three, control smart jack by the specific operation of monitor user ' on terminal peripheral hardware and open.As shown in Figure 4, the method, for the terminal peripheral hardware be connected with terminal, comprises the following steps S41-S44.
In step S41, receive the operation of user on terminal peripheral hardware.
In step S42, judge whether the operation of user on terminal peripheral hardware is predetermined registration operation.If user is operating as predetermined registration operation on terminal peripheral hardware, then continue to perform step S43.If the operation of user on terminal peripheral hardware is not predetermined registration operation, then terminate.
In step S43, generate the first control signal according to predetermined registration operation.
In step S44, the first control signal is sent to router, router controls smart jack according to the first control signal and opens as terminal charge.
In one embodiment, above-mentioned steps S11 can be embodied as following steps: whether receive the operation on terminal peripheral hardware in monitoring preset duration.The present embodiment by controlling smart jack to the operation of terminal peripheral hardware in monitoring preset duration, the control making smart jack more accurately, hommization.
Fig. 5 is the process flow diagram of the control method of a kind of smart jack according to an exemplary embodiment four.In this embodiment four, the method is used for, in the terminal peripheral hardware be connected with terminal, comprising the following steps S51-S54.
In step s 51, when smart jack is the terminal charge be connected with terminal peripheral hardware, in monitoring preset duration, whether receive the operation on terminal peripheral hardware.If do not receive the operation on terminal peripheral hardware in preset duration, then continue to perform step S52.If receive the operation on terminal peripheral hardware in preset duration, then perform step S54.
In step S52, generate the second control signal.
In step S53, the second control signal is sent to router, router controls smart jack according to the second control signal and closes.
In step S54, continue as the terminal charge be connected with terminal peripheral hardware.
Such as, preset duration is set to 30 minutes, if when so user continues not perform any operation on terminal peripheral hardware in 30 minutes, terminal peripheral hardware will control smart jack by router and close, and stops as terminal charge.Therefore, in this embodiment four, when terminal peripheral hardware does not operate for a long time, terminal peripheral hardware can control smart jack by router and close, the terminal that terminal device is connected, when not by use, stops the charging to terminal, thus makes smart jack without the need to carrying out unnecessary work.
In one embodiment, when not receiving the operation on terminal peripheral hardware in preset duration, as shown in Figure 6, the further comprising the steps of S61-S63 of said method.
In step S61, the terminal connected to terminal peripheral hardware sends the information of whether closing smart jack.
In step S62, when receiving the comformed information of the closedown smart jack that terminal sends, generate the 3rd control signal.
In step S63, send the 3rd control signal to router, router is used for controlling smart jack according to the 3rd control signal and closes.
When the present embodiment can not operate for a long time on terminal peripheral hardware, determine whether that controlling smart jack closes according to the selection of user, the demand of the user that makes more to fit to the control of smart jack, improves the Experience Degree of user.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.
Fig. 7 is the block diagram of the control device of a kind of smart jack according to an exemplary embodiment, and this device can realize becoming the some or all of of electronic equipment by software, hardware or both combinations.With reference to Fig. 7, the control device of this smart jack is applied to terminal peripheral hardware, and the terminal that terminal peripheral hardware connects is connected with smart jack, comprising:
Monitoring modular 71 is configured to monitor the operation whether received on terminal peripheral hardware.
First generation module 72 is configured to, when receiving the operation on terminal peripheral hardware, generate the first control signal.
First sending module 73 is configured to send the first control signal to router, and router is used for controlling smart jack according to the first control signal and opens as terminal is powered.
In one embodiment, as shown in Figure 8, the first generation module 72 comprises:
First catches submodule 721 is configured to, when terminal peripheral hardware comprises mouse and receives the mobile operation to mouse, catch the displacement signal of mouse.
First generates submodule 722 is configured to generate the first control signal according to displacement signal.
In one embodiment, as shown in Figure 9, the first generation module 72 comprises:
Second catches submodule 723 is configured to, when terminal peripheral hardware comprises mouse and receives the clicking operation to the button on mouse, catch the click signal of mouse.
Second generates submodule 724 is configured to generate the first control signal according to click signal.
In one embodiment, as shown in Figure 10, the first generation module 72 comprises:
3rd catch submodule 725 be configured to when terminal peripheral hardware comprise keyboard and receive to the button on keyboard knock operation time, catch the knocking of keyboard.
3rd generates submodule 726 is configured to generate the first control signal according to knocking.
In one embodiment, as shown in figure 11, the first generation module 72 comprises:
Judging that submodule 727 is configured to when receiving the operation on terminal peripheral hardware, judging whether operation is predetermined registration operation.
4th generates submodule 728 is configured to when being operating as predetermined registration operation, generates the first control signal.
In one embodiment, as shown in figure 12, monitoring modular 71 comprises:
Monitoring submodule 711 is configured to whether receive the operation on terminal peripheral hardware in monitoring preset duration.
In one embodiment, as shown in figure 13, said apparatus also comprises:
Second generation module 74 is configured to, when not receiving the operation on terminal peripheral hardware in preset duration, generate the second control signal.
Second sending module 75 is configured to send the second control signal to router, and router is used for controlling smart jack according to the second control signal and closes.
In one embodiment, as shown in figure 14, said apparatus also comprises:
3rd sending module 76 is configured to when not receiving the operation on terminal peripheral hardware in preset duration, and the terminal connected to terminal peripheral hardware sends the information of whether closing smart jack.
3rd generation module 77 is configured to, when receiving the comformed information of the closedown smart jack that terminal sends, generate the 3rd control signal.
4th sending module 78 is configured to send the 3rd control signal to router, and router is used for controlling smart jack according to the 3rd control signal and closes.
Adopt the device that disclosure embodiment provides, by the operation of monitor user ' on terminal peripheral hardware, and when receiving the operation on terminal peripheral hardware, controlling smart jack opens as terminal is powered, make terminal can be kept the state of charging when using, thus avoid user and forget the situation opened socket and cause terminal power deficiency, improve the service efficiency of terminal, for user brings convenience.
In the exemplary embodiment, provide a kind of control device of smart jack, be applied to terminal peripheral hardware, the terminal that described terminal peripheral hardware connects is connected with smart jack, and described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, processor is configured to:
Monitor the operation whether received on described terminal peripheral hardware;
When receiving the operation on described terminal peripheral hardware, generate the first control signal;
Send described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
Above-mentioned processor also can be configured to:
Described terminal peripheral hardware comprises at least one in mouse, keyboard.
Above-mentioned processor also can be configured to:
When described terminal peripheral hardware comprises mouse, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receiving the mobile operation to described mouse, catch the displacement signal of described mouse; Described first control signal is generated according to institute's displacement signal;
Or,
When receiving the clicking operation to the button on described mouse, catch the click signal of described mouse; Described first control signal is generated according to described click signal.
Above-mentioned processor also can be configured to:
When described terminal peripheral hardware comprises keyboard, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receive to the button on described keyboard knock operation time, catch the knocking of described keyboard;
Described first control signal is generated according to described knocking.
Above-mentioned processor also can be configured to:
Described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receiving the operation on described terminal peripheral hardware, judge whether described operation is predetermined registration operation;
When described be operating as predetermined registration operation time, generate the first control signal.
Above-mentioned processor also can be configured to:
Described predetermined registration operation comprises at least one in following condition:
Described mouse is moved predeterminable range;
Click or double-click the designated button on described mouse;
Knock the specified button on described keyboard.
Above-mentioned processor also can be configured to:
Whether described monitoring receives the operation on described terminal peripheral hardware, comprising:
The operation on described terminal peripheral hardware whether is received in monitoring preset duration.
Above-mentioned processor also can be configured to:
Described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, generate the second control signal;
Send described second control signal to described router, described router is used for controlling described smart jack according to described second control signal and closes.
Above-mentioned processor also can be configured to:
Described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, the terminal connected to described terminal peripheral hardware sends the information of whether closing described smart jack;
When receiving the comformed information of the described smart jack of closedown that described terminal sends, generate the 3rd control signal;
Send described 3rd control signal to router, described router is used for controlling described smart jack according to described 3rd control signal and closes.
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.
Figure 15 is the block diagram of the device of a kind of control for smart jack according to an exemplary embodiment.Such as, device 1200 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
Device 1200 can comprise following one or more assembly: processing components 1202, storer 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor module 1214, and communications component 1216.
The integrated operation of the usual control device 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing element 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Storer 1204 is configured to store various types of data to be supported in the operation of equipment 1200.The example of these data comprises for any application program of operation on device 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1204 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 1206 is device 1200 provide electric power.Electric power assembly 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between described device 1200 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 1208 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1200 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 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when device 1200 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 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loudspeaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 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 1214 comprises one or more sensor, for providing the state estimation of various aspects for device 1200.Such as, sensor module 1214 can detect the opening/closing state of equipment 1200, the relative positioning of assembly, such as described assembly is display and the keypad of device 1200, the position of all right pick-up unit 1200 of sensor module 1214 or device 1200 assemblies changes, the presence or absence that user contacts with device 1200, the temperature variation of device 1200 orientation or acceleration/deceleration and device 1200.Sensor module 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between device 1200 and other equipment.Device 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1216 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 1200 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 1204 of instruction, above-mentioned instruction can perform said method by the processor 1220 of device 1200.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.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device 1200, make device 1200 can perform the control method of above-mentioned smart jack, described method comprises:
Monitor the operation whether received on described terminal peripheral hardware;
When receiving the operation on described terminal peripheral hardware, generate the first control signal;
Send described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
Described terminal peripheral hardware comprises at least one in mouse, keyboard.
When described terminal peripheral hardware comprises mouse, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receiving the mobile operation to described mouse, catch the displacement signal of described mouse; Described first control signal is generated according to institute's displacement signal;
Or,
When receiving the clicking operation to the button on described mouse, catch the click signal of described mouse; Described first control signal is generated according to described click signal.
When described terminal peripheral hardware comprises keyboard, described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receive to the button on described keyboard knock operation time, catch the knocking of described keyboard;
Described first control signal is generated according to described knocking.
Described when receiving the operation on described terminal peripheral hardware, generate the first control signal, comprising:
When receiving the operation on described terminal peripheral hardware, judge whether described operation is predetermined registration operation;
When described be operating as predetermined registration operation time, generate the first control signal.
Described predetermined registration operation comprises at least one in following condition:
Described mouse is moved predeterminable range;
Click or double-click the designated button on described mouse;
Knock the specified button on described keyboard.
Whether described monitoring receives the operation on described terminal peripheral hardware, comprising:
The operation on described terminal peripheral hardware whether is received in monitoring preset duration.
Described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, generate the second control signal;
Send described second control signal to described router, described router is used for controlling described smart jack according to described second control signal and closes.
Described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, the terminal connected to described terminal peripheral hardware sends the information of whether closing described smart jack;
When receiving the comformed information of the described smart jack of closedown that described terminal sends, generate the 3rd control signal;
Send described 3rd control signal to router, described router is used for controlling described smart jack according to described 3rd control signal and closes.
Those skilled in the art, at consideration instructions and after putting into practice disclosure herein, 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 (17)

1. a control method for smart jack, is characterized in that, is applied to terminal peripheral hardware, and the terminal that described terminal peripheral hardware connects is connected with smart jack, and described method comprises:
Monitor the operation whether received on described terminal peripheral hardware;
When receiving the operation on described terminal peripheral hardware, generate the first control signal;
Send described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
2. method according to claim 1, is characterized in that, described terminal peripheral hardware comprises at least one in mouse, keyboard.
3. method according to claim 2, is characterized in that, when described terminal peripheral hardware comprises mouse, described when receiving the operation on described terminal peripheral hardware, generates the first control signal, comprising:
When receiving the mobile operation to described mouse, catch the displacement signal of described mouse; Described first control signal is generated according to institute's displacement signal;
Or,
When receiving the clicking operation to the button on described mouse, catch the click signal of described mouse; Described first control signal is generated according to described click signal.
4. method according to claim 2, is characterized in that, when described terminal peripheral hardware comprises keyboard, described when receiving the operation on described terminal peripheral hardware, generates the first control signal, comprising:
When receive to the button on described keyboard knock operation time, catch the knocking of described keyboard;
Described first control signal is generated according to described knocking.
5. method according to claim 2, is characterized in that, described when receiving the operation on described terminal peripheral hardware, generates the first control signal, comprising:
When receiving the operation on described terminal peripheral hardware, judge whether described operation is predetermined registration operation;
When described be operating as predetermined registration operation time, generate the first control signal.
6. method according to claim 5, is characterized in that, described predetermined registration operation comprises at least one in following condition:
Described mouse is moved predeterminable range;
Click or double-click the designated button on described mouse;
Knock the specified button on described keyboard.
7. method according to claim 1, is characterized in that, whether described monitoring receives the operation on described terminal peripheral hardware, comprising:
The operation on described terminal peripheral hardware whether is received in monitoring preset duration.
8. method according to claim 7, is characterized in that, described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, generate the second control signal;
Send described second control signal to described router, described router is used for controlling described smart jack according to described second control signal and closes.
9. method according to claim 7, is characterized in that, described method also comprises:
When not receiving the operation on described terminal peripheral hardware in described preset duration, the terminal connected to described terminal peripheral hardware sends the information of whether closing described smart jack;
When receiving the comformed information of the described smart jack of closedown that described terminal sends, generate the 3rd control signal;
Send described 3rd control signal to router, described router is used for controlling described smart jack according to described 3rd control signal and closes.
10. a control device for smart jack, is characterized in that, is applied to terminal peripheral hardware, and the terminal that described terminal peripheral hardware connects is connected with smart jack, and described device comprises:
Monitoring modular, for monitoring the operation whether received on described terminal peripheral hardware;
First generation module, for when receiving the operation on described terminal peripheral hardware, generates the first control signal;
First sending module, for sending described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
11. devices according to claim 10, is characterized in that, described first generation module comprises:
First catches submodule, during for comprising mouse when described terminal peripheral hardware and receiving the mobile operation to described mouse, catches the displacement signal of described mouse; First generates submodule, for generating described first control signal according to institute's displacement signal;
Or,
Second catches submodule, for when described terminal peripheral hardware comprises mouse and receives the clicking operation to the button on described mouse, catches the click signal of described mouse; Second generates submodule, for generating described first control signal according to described click signal.
12. devices according to claim 10, is characterized in that, described first generation module comprises:
3rd catches submodule, for comprise keyboard when described terminal peripheral hardware and receive to the button on described keyboard knock operation time, catch the knocking of described keyboard;
3rd generates submodule, for generating described first control signal according to described knocking.
13. devices according to claim 10, is characterized in that, described first generation module comprises:
Judging submodule, for when receiving the operation on described terminal peripheral hardware, judging whether described operation is predetermined registration operation;
4th generate submodule, for when described in be operating as predetermined registration operation time, generate the first control signal.
14. devices according to claim 10, is characterized in that, described monitoring modular comprises:
Monitoring submodule, for monitoring in preset duration the operation whether received on described terminal peripheral hardware.
15. devices according to claim 14, is characterized in that, described device also comprises:
Second generation module, for when not receiving the operation on described terminal peripheral hardware in described preset duration, generates the second control signal;
Second sending module, for sending described second control signal to described router, described router is used for controlling described smart jack according to described second control signal and closes.
16. devices according to claim 14, is characterized in that, described device also comprises:
3rd sending module, for when not receiving the operation on described terminal peripheral hardware in described preset duration, the terminal connected to described terminal peripheral hardware sends the information of whether closing described smart jack;
3rd generation module, for when receiving the comformed information of the described smart jack of closedown that described terminal sends, generates the 3rd control signal;
4th sending module, for sending described 3rd control signal to router, described router is used for controlling described smart jack according to described 3rd control signal and closes.
The control device of 17. 1 kinds of smart jacks, is characterized in that, is applied to terminal peripheral hardware, and the terminal that described terminal peripheral hardware connects is connected with smart jack, and described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Monitor the operation whether received on described terminal peripheral hardware;
When receiving the operation on described terminal peripheral hardware, generate the first control signal;
Send described first control signal to router, described router is used for controlling the unlatching of described smart jack according to described first control signal and powers for described terminal.
CN201510409531.0A 2015-07-13 2015-07-13 Control method and device of intelligent socket Pending CN105116770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510409531.0A CN105116770A (en) 2015-07-13 2015-07-13 Control method and device of intelligent socket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510409531.0A CN105116770A (en) 2015-07-13 2015-07-13 Control method and device of intelligent socket

Publications (1)

Publication Number Publication Date
CN105116770A true CN105116770A (en) 2015-12-02

Family

ID=54664789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510409531.0A Pending CN105116770A (en) 2015-07-13 2015-07-13 Control method and device of intelligent socket

Country Status (1)

Country Link
CN (1) CN105116770A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997326A (en) * 2017-04-01 2017-08-01 北京小米移动软件有限公司 Control method, device and the computer-readable recording medium of smart jack

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201503967U (en) * 2009-09-09 2010-06-09 赖丽纯 Power supply and network connecting wire integrated control device of extension line socket
CN201757884U (en) * 2010-03-30 2011-03-09 承鸿电子股份有限公司 Touch-control type wireless mouse
CN102722120A (en) * 2012-06-05 2012-10-10 中国电子科技集团公司第四十一研究所 Instrument keyboard controller with ultralow power consumption
CN102830790A (en) * 2012-08-03 2012-12-19 青岛海信信芯科技有限公司 Mobile electronic equipment and automatic sleeping method thereof
CN103324271A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Input method and electronic equipment based on gesture
CN103389806A (en) * 2012-05-11 2013-11-13 深圳大学 Wireless free mouse system based on micro-accelerometer
KR101348253B1 (en) * 2011-09-06 2014-01-09 주식회사 필룩스 Power Control System and Power Control Method
CN103682850A (en) * 2012-09-10 2014-03-26 华为技术有限公司 Metering socket and control method thereof
CN103702077A (en) * 2013-12-20 2014-04-02 广东威创视讯科技股份有限公司 Combined windowing method and combined windowing system for multipath signals
CN204243384U (en) * 2014-12-23 2015-04-01 海信(山东)空调有限公司 A kind of Intelligent safety socket
CN104503276A (en) * 2014-11-24 2015-04-08 东莞宇龙通信科技有限公司 Intelligent power utilization method, device and terminal
CN104678851A (en) * 2015-01-29 2015-06-03 小米科技有限责任公司 Switch control method and switch control device of intelligent socket
CN104716517A (en) * 2014-09-28 2015-06-17 东莞市桦徽电子科技有限公司 Intelligent power socket for computer

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201503967U (en) * 2009-09-09 2010-06-09 赖丽纯 Power supply and network connecting wire integrated control device of extension line socket
CN201757884U (en) * 2010-03-30 2011-03-09 承鸿电子股份有限公司 Touch-control type wireless mouse
KR101348253B1 (en) * 2011-09-06 2014-01-09 주식회사 필룩스 Power Control System and Power Control Method
CN103324271A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Input method and electronic equipment based on gesture
CN103389806A (en) * 2012-05-11 2013-11-13 深圳大学 Wireless free mouse system based on micro-accelerometer
CN102722120A (en) * 2012-06-05 2012-10-10 中国电子科技集团公司第四十一研究所 Instrument keyboard controller with ultralow power consumption
CN102830790A (en) * 2012-08-03 2012-12-19 青岛海信信芯科技有限公司 Mobile electronic equipment and automatic sleeping method thereof
CN103682850A (en) * 2012-09-10 2014-03-26 华为技术有限公司 Metering socket and control method thereof
CN103702077A (en) * 2013-12-20 2014-04-02 广东威创视讯科技股份有限公司 Combined windowing method and combined windowing system for multipath signals
CN104716517A (en) * 2014-09-28 2015-06-17 东莞市桦徽电子科技有限公司 Intelligent power socket for computer
CN104503276A (en) * 2014-11-24 2015-04-08 东莞宇龙通信科技有限公司 Intelligent power utilization method, device and terminal
CN204243384U (en) * 2014-12-23 2015-04-01 海信(山东)空调有限公司 A kind of Intelligent safety socket
CN104678851A (en) * 2015-01-29 2015-06-03 小米科技有限责任公司 Switch control method and switch control device of intelligent socket

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997326A (en) * 2017-04-01 2017-08-01 北京小米移动软件有限公司 Control method, device and the computer-readable recording medium of smart jack

Similar Documents

Publication Publication Date Title
CN104318741B (en) Bluetooth equipment control method and device
CN104407592A (en) Method and device for regulating running state of smart home device
CN105246045A (en) Method and device for determining user position change
CN104065836A (en) Method and device for monitoring calls
CN105357466A (en) Video communication method and video communication device
CN104182173A (en) Camera switching method and device
CN104703295A (en) Network access method and network access device
CN105072336A (en) Control method, apparatus and device for adjusting photographing function
CN104219388A (en) Voice control method and device
CN105388779A (en) Control method and device for intelligent equipment
CN105433904A (en) Sleep state detection method, device and system
CN105242828A (en) Method and apparatus for displaying control on interface of mobile terminal
CN105528151A (en) Brightness adjusting method and apparatus
CN104735670A (en) Network access method and device
CN104320542A (en) Method and device for sending reminding message
CN105204804A (en) Mode switching method, device and system
CN105337800A (en) Polling frequency adjustment method and polling frequency adjustment device
CN105446616A (en) Screen display control method, apparatus and device
CN104881120A (en) Method and device for connecting external device
CN103942047A (en) User instruction execution method and device
CN105224171A (en) icon display method, device and terminal
CN105337839A (en) Exchange group control method and device
CN105511307A (en) Control method and apparatus of electronic device
CN105549572A (en) Control method and device for intelligent home equipment and equipment
CN105357634A (en) User position change determination method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20151202