CN103049068A - An intelligent timing multifunctional computer switch device - Google Patents
An intelligent timing multifunctional computer switch device Download PDFInfo
- Publication number
- CN103049068A CN103049068A CN2013100269672A CN201310026967A CN103049068A CN 103049068 A CN103049068 A CN 103049068A CN 2013100269672 A CN2013100269672 A CN 2013100269672A CN 201310026967 A CN201310026967 A CN 201310026967A CN 103049068 A CN103049068 A CN 103049068A
- Authority
- CN
- China
- Prior art keywords
- computer
- control
- shutdown
- chip microcomputer
- software
- 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
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
本发明公开一种智能定时多功能电脑开关机装置。包括:ATMEGA8单片机、DS1302时钟模块、红外接收模块、USB转串口接口、供电模块和上位机控制软件。实现了通过上位机软件设定电脑开机和关机时间,完成电脑定时开机和关机的功能;通过上位机软件和单片机能与任意的红外遥控器进行匹配,实现远距离红外遥控电脑开机和关机;同时也能设定用红外遥控器完成鼠标简单的功能和PPT翻页功能。本发明较好解决了近距离电脑开机和关机的问题,实用性强,成本低,可靠性高。
The invention discloses an intelligent timing multifunctional computer switch machine device. Including: ATMEGA8 microcontroller, DS1302 clock module, infrared receiver module, USB to serial interface, power supply module and host computer control software. It realizes the setting of computer startup and shutdown time through the host computer software, and completes the function of timing startup and shutdown of the computer; through the host computer software and single-chip microcomputer, it can be matched with any infrared remote control to realize long-distance infrared remote control computer startup and shutdown; at the same time It can also be set to use the infrared remote control to complete the simple functions of the mouse and the PPT page turning function. The invention preferably solves the problem of starting and shutting down a short-distance computer, and has strong practicability, low cost and high reliability.
Description
技术领域 technical field
本发明涉及一种电脑开关机装置,特别是一种通过定时功能,上位机控制软件,红外遥控的方法实现电脑开机和关机的装置。 The invention relates to a computer switching device, in particular to a device for realizing computer startup and shutdown through timing function, upper computer control software and infrared remote control.
背景技术 Background technique
目前,电脑开关机、重启按钮一般都固定在电脑上,要实现电脑的开机和关机就必须近距离的操作电脑。但是随着电脑普及率的大幅提高,电脑广泛的应用在日常生活、办公、娱乐等方面。人们生活、工作方式的也在不断变化,人们往往需求电脑能在某一个固定的时刻提前开机和关机,并且在远距离实现 电脑开机和关机。比如说,工作用的电脑,办公人员需要上班的时候,能够自动打开电脑,下班的时候能够自动关机。家中的电脑,看视频的时候离电脑比较远,需要关机的就比较麻烦,如果能实现远程遥控关机就比较方便。 At present, computer power-on and restart buttons are generally fixed on the computer, and the computer must be operated at close range to realize the computer's startup and shutdown. But along with the substantial improvement of computer penetration rate, computer is widely used in aspects such as daily life, office, entertainment. The way people live and work is also constantly changing. People often need computers to be turned on and off in advance at a certain fixed moment, and the computer can be turned on and off at a long distance. For example, for computers used for work, office workers can automatically turn on the computer when they need to go to work, and can automatically turn off the computer when they are off work. The computer at home is far away from the computer when watching videos, and it is more troublesome to shut it down. It would be more convenient if it can be turned off remotely.
发明内容 Contents of the invention
本发明的目的是提供一种具有定时功能和远程红外遥控的电脑开机和关机装置,以方便用户的使用。 The purpose of the present invention is to provide a computer startup and shutdown device with timing function and remote infrared remote control, so as to facilitate the use of users.
本发明装置的技术构思是:通过USB给整个装置供电,同时USB也做电脑的串口供上位机控制软件使用。在开机的状态下与电脑的上位机控制进行通信,能设定电脑定时关机的时间;能设定红外遥控的拓展功能。在电脑关机的状态下通过ATMEGA8单片机在预先设定好的时间启动电脑开机。 The technical idea of the device of the present invention is: to supply power to the whole device through the USB, and at the same time, the USB is also used as a serial port of the computer for the upper computer control software to use. It communicates with the host computer control of the computer when it is turned on, and can set the time for the computer to shut down at regular intervals; it can also set the extended function of infrared remote control. When the computer is turned off, the computer is turned on at the pre-set time through the ATMEGA8 single-chip microcomputer.
本发明是这样实现的:智能定时多功能电脑开关机装置包括:ATMEGA8单片机、DS1302时钟模块、红外接收模块、USB转串口接口、供电模块和上位机控制软件;以ATMEGA8单片机为控制核心;DS1302时钟模块、红外接收模块、USB转串口接口、USB供电模块和上位机控制软件皆与ATMEGA8单片机即微处理器相连。 The present invention is achieved in this way: the intelligent timing multifunctional computer switch machine device comprises: ATMEGA8 single-chip microcomputer, DS1302 clock module, infrared receiving module, USB to serial port interface, power supply module and host computer control software; Take ATMEGA8 single-chip microcomputer as the control core; DS1302 clock The module, the infrared receiving module, the USB-to-serial interface, the USB power supply module and the host computer control software are all connected to the ATMEGA8 single-chip microcomputer.
ATMEGA8单片机:控制电脑的开机和关机、与上位机控制软件进行通信、接收和匹配红外控制信号和读取DS1302实时时钟。 ATMEGA8 single-chip microcomputer: control the startup and shutdown of the computer, communicate with the host computer control software, receive and match infrared control signals and read the DS1302 real-time clock.
DS1302时钟模块:提供整个装置定时的时钟。 DS1302 clock module: provide the clock for timing the whole device.
红外接收模块:实现远距离的控制电脑的开机和关机,同时带有自学习功能,适用于任何红外遥控器。 Infrared receiving module: to realize long-distance control of computer startup and shutdown, and with self-learning function, suitable for any infrared remote control.
USB转串口接口:实现ATMEGA8单片机直接通过USB接口与上位机控制软件通信,使得整个装置与电脑连接简单,使用时只需将本装置与电脑的USB接口连接即可。 USB-to-serial port interface: Realize ATMEGA8 MCU communicates directly with the host computer control software through the USB interface, making the connection between the whole device and the computer simple, and only need to connect the device to the USB interface of the computer when using.
ATMEGA8单片机即微控制器与外围电路相连接,整个装置的供电模块有两种方式供电:1、USB接口作为供电的电源;2、当USB接口无法供电,用备用电池作为整个装置备用电源。 The ATMEGA8 single-chip microcomputer is connected with the peripheral circuit. The power supply module of the whole device has two ways of power supply: 1. The USB interface is used as the power supply for power supply; 2. When the USB interface cannot supply power, the spare battery is used as the backup power supply of the whole device.
上位机控制软件:通过调用系统程序实现软件关机;在电脑开机之后还能实时的读取电脑的时钟,对DS1302的内部时钟进行校准;通过电脑上位机控制软件设定开机和关机的时间。 PC control software: realize software shutdown by calling the system program; read the computer clock in real time after the computer is turned on, and calibrate the internal clock of DS1302; set the startup and shutdown time through the computer PC control software.
上位控制机软件中附加有一个自设定拓展功能:鼠标功能、PPT翻页功能;能设定遥控器的上、下、左、右按键来控制鼠标光标的移动的方向,设定鼠标的左键和右键功能,完成鼠标一些基本操作,上位机控制软件中有设定光标移动速度和步进值的菜单;用红外遥控器实现PPT的翻页控制。 There is an additional self-setting expansion function in the upper control computer software: mouse function, PPT page turning function; the up, down, left and right buttons of the remote control can be set to control the direction of mouse cursor movement, and the left and right buttons of the mouse can be set. key and right button functions to complete some basic operations of the mouse, the host computer control software has a menu for setting the cursor moving speed and step value; use the infrared remote control to realize the page turning control of the PPT.
本发明较好解决了近距离电脑开机和关机的问题,实用性强,成本低,可靠性高。 The invention preferably solves the problem of starting and shutting down a short-distance computer, and has strong practicability, low cost and high reliability.
附图说明 Description of drawings
图1为本发明的整体结构框图。 Fig. 1 is the overall structural block diagram of the present invention.
图2为本发明的总电路原理图。 Fig. 2 is the general circuit schematic diagram of the present invention.
图3为本发明实施实例控制电脑开关机和重启的接口图。 Fig. 3 is an interface diagram for controlling the power on and off and restart of the computer according to the implementation example of the present invention.
图4为本发明实施实例的时钟电路图。 Fig. 4 is a clock circuit diagram of an embodiment of the present invention.
图5为本发明实施实例的红外接收电路图。 Fig. 5 is an infrared receiving circuit diagram of an embodiment of the present invention.
图6为本发明实施实例的USB转串口电路图。 Fig. 6 is a circuit diagram of a USB-to-serial port in an embodiment of the present invention.
图7为本发明实施实例的上位机通信电路图。 Fig. 7 is a communication circuit diagram of the upper computer of the embodiment of the present invention.
图中标记:100-USB转串口电路图;101-USB接口;102-CH341芯片;103-备用电池;200-控制电脑开关机和重启的接口电路图;201-连接电脑主板开关机和重启控制接口;202-ATMEGA8单片机; 300-上位机通信电路图;301- MAX232串口通信芯片;400-时钟电路图;401-DS1302时钟芯片; 500-红外接收电路图; 501-红外接收二极管。 Marks in the figure: 100-USB to serial port circuit diagram; 101-USB interface; 102-CH341 chip; 103-backup battery; 200-interface circuit diagram for controlling computer power on and off and restart; 201-connection to computer motherboard power on and off and restart control interface; 202-ATMEGA8 microcontroller; 300-upper computer communication circuit diagram; 301-MAX232 serial communication chip; 400-clock circuit diagram; 401-DS1302 clock chip; 500-infrared receiving circuit diagram; 501-infrared receiving diode.
具体实施方式 Detailed ways
实施例: Example:
如图1所示,智能定时多功能电脑开关机装置包括:ATMEGA8单片机、DS1302时钟模块、红外接收模块、USB转串口接口、供电模块和上位机控制软件;以ATMEGA8单片机为控制核心;DS1302时钟模块、红外接收模块、USB转串口接口、供电模块和上位机控制软件皆与ATMEGA8单片机即微处理器相连。 As shown in Figure 1, the intelligent timing multifunctional computer switch device includes: ATMEGA8 single-chip microcomputer, DS1302 clock module, infrared receiving module, USB to serial port interface, power supply module and upper computer control software; with ATMEGA8 single-chip microcomputer as the control core; DS1302 clock module , infrared receiving module, USB to serial port interface, power supply module and host computer control software are all connected with ATMEGA8 single-chip microcomputer.
ATMEGA8单片机202即微控制器与外围电路相连接(见图2)。整个装置的供电模块有两种方式供电:1、USB接口101作为供电的电源;电脑采用ATX电源,ATX电源增加了一个辅助开关电源 ,在关机的状态下也能够提供5V电压,此时USB接口101选择用+5VSB;2、当USB接口101无法供电,用备用电池103作为整个装置备用电源。
ATMEGA8 single-
图3为控制电脑开关机和重启的接口图。使用杜邦线将该连接电脑主板开关机和重启控制接口201与电脑的主板插针相连接;通过控制ATMEGA8单片机202 I/O端口的高低电平,来实现电脑的开关机和重启。
Figure 3 is an interface diagram for controlling computer power on and off and restart. Use the DuPont line to connect the mainboard pins of the computer mainboard switch and restart
如图4所示,DS1302时钟芯片401为整个装置提供定时时钟。通过IIC协议与ATMEGA8单片机202进行通信;ATMEGA8单片机202向DS1302时钟芯片401的内部寄存器读取和写入时间;在开机的状态下,通过上位机软件读取电脑的时间,对DS1302时钟芯片401的时间进行校准,使得与电脑的时间保持同步。
As shown in Figure 4, the DS1302 clock chip 401 provides a timing clock for the entire device. Communicate with the ATMEGA8 single-
如图5所示,红外接收二极管501接收任何频段的红外信号;常用的红外遥控器中载波频率主要有38KHz和40KHz;本实施例在匹配接收的红外遥控信号时采用波形复制方法来实现红外遥控信号的载波识别与波形存储;遥控器的每一个按键对应不同的频率波形,只需将遥控器的发射信号,通过红外接收管接收之后,存储在ATMEGA8单片机202内的电可擦可编程只读存储器(EEPROM)中,ATMEGA8单片机202通过波形匹配识别按下的按键。此种方法适合于任意遥控器。
As shown in Figure 5, the
如图6所示,USB转串口接口转接芯片采用CH341芯片102;CH341芯片102价格便宜,无需驱动程序;USB转串口接口实现ATMEGA8单片机202直接通过USB接口101与上位机控制软件通信,使得整个装置与电脑连接简单,使用时只需将本装置与电脑的USB接口101连接即可。
As shown in Figure 6, the USB-to-serial port interface adapter chip adopts
如图7所示,MAX232串口通信芯片301是专用的通信芯片,连接ATMEGA8单片机202和电脑串口即USB接口101,完成电平转换;该串口是USB转串口接口。
As shown in Figure 7, the MAX232 serial
下面详细介绍本发明装置设定开关机时间和红外控制电脑开关机的工作过程: Introduce in detail the working process of the device setting switch time and infrared control computer switch of the present invention below:
在开机状态下定时关机:安装上位机软件,通过上位控制机软件直接向ATMEGA8单片机202设定关机时间,ATMEGA8单片机202通过读取DS1302时钟,与设定关机时间进行比对,吻合后ATMEGA8单片机202通过串口通信向电脑的上位机控制软件发送关机信号,检测到关机信号,上位机控制软件就会调用电脑系统的关机程序,实现软件关机。
Shutdown at regular intervals in the power-on state: install the host computer software, and set the shutdown time directly to the ATMEGA8 single-
在开机状态下红外遥控关机:安装上位机控制软件,调整ATMEGA8单片机202使其工作红外识别模式,此模式下默认第一个识别的是开机键,第二个识别的是关机键。识别成功后上位机控制软件有提示确认按键,确认后代表按键设置成功。只要按下预先设定的关机按键,ATMEGA8单片机202识别之后,就会向电脑的上位机控制软件发送关机信号,检测到关机信号,上位机控制软件就会调用电脑系统的关机程序,实现软件关机。
Infrared remote control shutdown in the power-on state: Install the host computer control software, adjust the ATMEGA8 single-
在关机状态下定时开机:安装上好上位机控制软件,设定开机的时间。ATMEGA8单片机202通过读取DS1302时钟芯片401的时钟,与设定关机时间进行比对,吻合后ATMEGA8单片机202就会向连接电脑主板开关机和重启控制接口201发送开机信号,通过硬件的方式实现电脑开机。
Timing start-up in shutdown state: Install the upper computer control software and set the start-up time. ATMEGA8 MCU 202 reads the clock of DS1302 clock chip 401 and compares it with the set shutdown time. After matching, ATMEGA8 MCU 202 will send a power-on signal to the computer mainboard switch and restart
在关机状态下红外遥控开机:安装上位机控制软件,调整ATMEGA8单片机202使其工作红外识别模式,设定开机按键,存储该按键的波形,当接收到与之匹配的信号,ATMEGA8单片机202就会向连接电脑主板开关机和重启控制接口201发送开机信号,通过硬件的方式实现电脑开机。
Infrared remote control power-on in the shutdown state: install the host computer control software, adjust the ATMEGA8 single-
在红外识别模式下,能通过上位机控制软件来设定附加功能:鼠标功能、PPT翻页功能。具体操作如下: In the infrared recognition mode, additional functions can be set through the host computer control software: mouse function, PPT page turning function. The specific operation is as follows:
在上位机控制软件自设定拓展功能选项中设定有鼠标移动的方向:上,下,左,右;通过按下遥控器上的上下左右键,设定为控制鼠标移动的方向,在红外遥控器上也能设定鼠标的左键和右键功能。上位机控制软件中有设定光标移动速度和步进值的菜单。从而用红外遥控器完成鼠标简单的功能。在上位机软件附加功能选项中也能设定红外遥控器为PPT翻页控制功能。 The direction of mouse movement is set in the self-setting expansion function option of the host computer control software: up, down, left, and right; by pressing the up, down, left, and right keys on the remote control, it is set to control the direction of mouse movement. The left button and right button functions of the mouse can also be set on the remote control. There are menus for setting cursor movement speed and step value in the host computer control software. In this way, the simple functions of the mouse can be completed with the infrared remote controller. In the additional function option of the host computer software, the infrared remote control can also be set as the PPT page turning control function.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013100269672A CN103049068A (en) | 2013-01-24 | 2013-01-24 | An intelligent timing multifunctional computer switch device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013100269672A CN103049068A (en) | 2013-01-24 | 2013-01-24 | An intelligent timing multifunctional computer switch device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103049068A true CN103049068A (en) | 2013-04-17 |
Family
ID=48061738
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2013100269672A Pending CN103049068A (en) | 2013-01-24 | 2013-01-24 | An intelligent timing multifunctional computer switch device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103049068A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103529736A (en) * | 2013-10-28 | 2014-01-22 | 深圳市杰和科技发展有限公司 | Singlechip-based multifunctional startup system and method |
| CN106168844A (en) * | 2016-07-04 | 2016-11-30 | 山东超越数控电子有限公司 | A kind of SCM Based remote on-off method |
| CN106445053A (en) * | 2016-12-05 | 2017-02-22 | 国家电网公司 | Remote startup and shutdown control device |
| CN107895469A (en) * | 2017-11-22 | 2018-04-10 | 西安航空学院 | A kind of SCM Based remote control |
| CN114020337A (en) * | 2021-10-22 | 2022-02-08 | 上海视颐电子科技有限公司 | Intelligent device, server and control method thereof and intelligent control system |
| CN115355594A (en) * | 2022-08-23 | 2022-11-18 | 珠海格力电器股份有限公司 | Timing remote control method based on time correction |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1540475A (en) * | 2003-04-27 | 2004-10-27 | 张德安 | Circuit of providing multiple ways to turn on/off computer |
| TW200822584A (en) * | 2006-11-06 | 2008-05-16 | Hsi-Chi Chang | Remote control system of computer |
| CN201156188Y (en) * | 2008-02-04 | 2008-11-26 | 泰山医学院 | Computer cluster program control, timing switch control circuit |
-
2013
- 2013-01-24 CN CN2013100269672A patent/CN103049068A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1540475A (en) * | 2003-04-27 | 2004-10-27 | 张德安 | Circuit of providing multiple ways to turn on/off computer |
| TW200822584A (en) * | 2006-11-06 | 2008-05-16 | Hsi-Chi Chang | Remote control system of computer |
| CN201156188Y (en) * | 2008-02-04 | 2008-11-26 | 泰山医学院 | Computer cluster program control, timing switch control circuit |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103529736A (en) * | 2013-10-28 | 2014-01-22 | 深圳市杰和科技发展有限公司 | Singlechip-based multifunctional startup system and method |
| CN106168844A (en) * | 2016-07-04 | 2016-11-30 | 山东超越数控电子有限公司 | A kind of SCM Based remote on-off method |
| CN106445053A (en) * | 2016-12-05 | 2017-02-22 | 国家电网公司 | Remote startup and shutdown control device |
| CN106445053B (en) * | 2016-12-05 | 2022-11-08 | 国家电网公司 | Remote startup and shutdown control device |
| CN107895469A (en) * | 2017-11-22 | 2018-04-10 | 西安航空学院 | A kind of SCM Based remote control |
| CN114020337A (en) * | 2021-10-22 | 2022-02-08 | 上海视颐电子科技有限公司 | Intelligent device, server and control method thereof and intelligent control system |
| CN115355594A (en) * | 2022-08-23 | 2022-11-18 | 珠海格力电器股份有限公司 | Timing remote control method based on time correction |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103049068A (en) | An intelligent timing multifunctional computer switch device | |
| TWI477970B (en) | Mode switch method of electronic device and assocaited electronic device | |
| CN204783774U (en) | Smart fan | |
| TWI515645B (en) | Electronic device and control method thereof | |
| CN109218785B (en) | Awakening method and system for intelligent television in standby state | |
| CN103064488A (en) | Power source control circuit | |
| CN203759648U (en) | Bluetooth converter of man-machine interface equipment | |
| CN105372619A (en) | Safe chip power-down testing equipment | |
| CN104298382A (en) | One-key operating multimedia all-in-one machine and on-off method thereof | |
| CN104836869A (en) | Mobile communication terminal and mobile communication terminal power-on method | |
| CN202483277U (en) | Fingerprint lock device with ZigBee wireless communication function | |
| CN103592861A (en) | Multifunctional single switch power source management system | |
| CN101252733B (en) | Communication circuit and communication method between a mobile terminal and modules | |
| US9697727B2 (en) | Remote control apparatus | |
| CN108877017A (en) | Intelligent door lock and control method based on cloud platform | |
| CN103123596A (en) | Method of using micro-programmed control unit (MCU) to reset main chip | |
| US20020099965A1 (en) | Energy-saving control interface and method for power-on identification | |
| CN101888497A (en) | A TV system with remote control switch function | |
| TWI386806B (en) | Remote control method and related apparatus for a computer system | |
| CN206863937U (en) | A kind of computer based wireless switching machine equipment | |
| CN100587752C (en) | Method and device for controlling communication between dual-system electronic equipment | |
| US10360041B2 (en) | Information processing method and first electronic device | |
| CN203894774U (en) | Fingerprint identification intelligent switch | |
| CN103019566A (en) | Method for controlling computer by utilizing mouse and device used in method | |
| CN104935839A (en) | Extensible smart television |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130417 |
