文档详情

仿USB键盘文件植入器(模拟人工按键).doc

发布:2017-08-16约1.29万字共22页下载文档
文本预览下载声明
编号: 嵌入式系统综合实训说明书 题 目: 仿USB键盘文件植入器 院 (系): 信息与通信学院 专 业: 电子信息工程 学生姓名: 万玉 学 号: 1161170125 指导教师: 叶金才 2015 年 1 月 11 日 摘 要 这次设计任务所做的工作就是实现模拟人工按键,将开发板接上位机后,不用板子上的按键,直接用程序产生键盘码,计算机收到USB键盘的键码,会执行相应的功能。具体的动作是打开计算机的命令行,在命令行里面运行记事本,并新建一个a.txt记事本文件,并向该文件录入若干的英文字符。运行命令行通过键盘操作是 win+R -》cmd-》notepad a.txt-》enter-》录入英文字符。 最后,会在本文介绍如何实现向电脑发送WIN+R这样的组合键键码,可以类似去模拟ALT+F4,SHIFT+1之类的按键。 关键词:ARM;USB 键盘;模拟人工按键;USB HID协议;组合键 Abstract The design task is to realize the simulation of artificial work key, development board connected with a host computer, no board of the key, the direct use of program generation keyboard code, computer received USB keyboard key code, executes the corresponding function. The specific action is to open the computer command line, the command line which run Notepad, and a new a.txt notepad file, and some to the file entry English character. Run command lines through the keyboard operation is win+R - cmd- Notepad a.txt- enter- input English character. 最后,会在本文介绍如何实现向电脑发送WIN+R这样的组合键键码,可以类似去模拟ALT+F4,SHIFT+1之类的按键。 Finally, in this paper introduces how to realize the computer to send WIN+R this combination key code, can be similar to the simulated ALT+F4, SHIFT+1 and the like button. Keywords: ARM; USB keyboard keys; artificial simulation; USB HID protocol; key combination 目 录 引言 ……………………………………………………………………………1 1 设计软件基础知识…………………………………………………………2 1.1 C编译器KEIL介绍 …………………………………………………………2 1.2 ARM相关知识…………………………………………………………………2 1.3 USB-HID简介…………………………………………………………………2 2 模拟人工按键设计…………………………………………………………3 2.1 程序设计的任务要求 …………………………………………………………3 2.2 程序的设计思路和想法 ………………………………………………………3 2.3 报告描述符 …………………………………………………………………3 2.4 普通按键程序设计……………………………………………………………4 2.5 特殊(功能)按键程序设计 ……………………………………………………6 3 功能程序设计………………………………………………………………7 3.1 程序总流程图 ………………………………………………………………7 3.2 开始程序的修改……………………………………………………………8 4 结论 ………………………………………………………………………10 谢辞…………………………………………………………
显示全部
相似文档