CN106406585A - Implementation method of special mouse for PS/2 interfaces - Google Patents

Implementation method of special mouse for PS/2 interfaces Download PDF

Info

Publication number
CN106406585A
CN106406585A CN201610726999.7A CN201610726999A CN106406585A CN 106406585 A CN106406585 A CN 106406585A CN 201610726999 A CN201610726999 A CN 201610726999A CN 106406585 A CN106406585 A CN 106406585A
Authority
CN
China
Prior art keywords
module
mouse
serial
interface
serial port
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
CN201610726999.7A
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.)
Tianjin Embedtec Co Ltd
Original Assignee
Tianjin Embedtec Co Ltd
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 Tianjin Embedtec Co Ltd filed Critical Tianjin Embedtec Co Ltd
Priority to CN201610726999.7A priority Critical patent/CN106406585A/en
Publication of CN106406585A publication Critical patent/CN106406585A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/105Program control for peripheral devices where the programme performs an input/output emulation function
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Abstract

The invention relates to the technical field of automated testing, in particular to an implementation method of a special mouse for PS/2 interfaces. The special mouse comprises a serial communication module, a protocol processing module and a PS/2 interface circuit module, and is characterized in that the serial communication module is electrically connected with the protocol processing module and the PS/2 interface circuit module respectively; the serial communication module mainly comprises a three-wire RS232 standard serial port module and a USB-to-serial-port module, the three-wire RS232 standard serial port module is electrically connected with the protocol processing module, and the USB-to-serial-port module is electrically connected with the protocol processing module; and the protocol processing module mainly comprises a serial port controller module and a PS/2 protocol generating module. According to the implementation method, the special mouse can work under different operating systems capable of supporting the PS/2 interfaces, the installation of extra drive programs is avoided, the manpower and working time are saved, and the testing efficiency of a main board based on the PS/2 interfaces is improved.

Description

A kind of implementation method of PS/2 interface mouse special
Technical field
The present invention relates to automatization testing technique field, especially a kind of implementation method of PS/2 interface mouse special.
Background technology
At present, industrial control mainboard is most of supports PS/2 interface, and traditional test PS/2 interface is by installing PS/2 equipment, If PS/2 are working properly, illustrate that PS/2 interface is normal, because PS/2 equipment belongs to human-computer interaction device at a slow speed, need logical Cross manual control PS/2 equipment to complete whether PS/2 interface is normally tested, with the batch production of industrial control mainboard, PS/2 connects The test job amount of mouth increases, and expends substantial amounts of human cost and working time, and the testing efficiency based on PS/2 interface mainboard is low Under;
PS/2 was used for the equipment such as mouse, keyboard before relatively morning, and the mouse of general PS/2 interface is green, and PS/2 interface is input Device interface, rather than coffret, therefore do not have the concept of transfer rate, only sweep speed, and PS/2 communication protocol is one Plant bi-directional synchronization serial communication protocol, Clock (clock pin) synchronization is passed through at the two ends of communication, and exchanges by DATA (data pin) Data.Mouse is a kind of input equipment of computer, point wired and wireless two kinds, is also that coordinate is calmly in length and breadth for calculator display organization The indicator of position, gains the name " mouse " because of likeness in form mouse.The standard address of " mouse " should be " Genius mouse ", English name " Mouse ", the use of mouse is in order that the operation of computer is more simple and efficient, to replace that loaded down with trivial details instruction of keyboard.Mouse Mark is a kind of computer input apparatus being in daily use, and it can position to the vernier on current screen, and passes through button and rolling Wheel apparatus to vernier screen elements through position operate.Mouse presses its operation principle and its difference of internal structure can To be divided into mechanical, ray machine formula and photo-electric.
The PS/2 mouse of standard supports following input such as left and right displacement(X), upper and lower displacement(Y), left button, middle key and the right side Key, the Intellimouse of Microsoft it both supported standard input and supported roller and two additional buttons, to standard PS/2 mouse a popular extension be Microsoft Intellimouse, it includes supporting five mousebuttons and three Upper and lower and roller about offset axis, mouse has 4 kinds of standard operation patterns:Reset, Stream, Remote and Wrap pattern, wherein Stream this be default mode, be also the pattern that most softwares use mouse, and Remote Remote mould in some cases Formula is very useful, and for Wrap in addition to for the connection between test mouse and its main frame, this model application is not very wide General, PS/2 mouse detected and initialization, initial detecting of PS/2 mouse only when computer starting under normal circumstances Occur during POST, if mouse detects BIOS and operating system will be allowed to configure/enable mouse, otherwise operating system The communication in mouse bus will be forbidden, be more than the overview of universal mouse, how to improve on the basis of universal mouse Realizing with serial port function can be urgent problem towards the mouse special of PS/2 interface simultaneously again.
Content of the invention
In order to overcome the shortcomings of the existing test presence based on PS/2 interface mainboard, the invention provides a kind of PS/2 interface The implementation method of mouse special is it is not necessary to people goes to manipulate mouse to realize the movement of light target, to double-click or single-click operation, but PC Program pass through serial ports(Or the program of notebook computer is by USB port)Operational order is sent to mouse special, PS/ can supported Work under the different operating system of 2 interfaces, it is to avoid extra driver is installed, save labour and working time, improve Testing efficiency based on PS/2 interface mainboard.
Its technical problem of the solution of the present invention be employed technical scheme comprise that, a kind of realization side of PS/2 interface mouse special Method, this mouse special includes serial communication module, protocol process module and PS/2 interface module, described serial communication module Electrically connect with protocol process module and PS/2 interface module respectively, described serial communication module mainly includes 3 line RS232 marks Quasi- serial port module and USB turn serial port module, and described 3 line RS232 standard serial port modules are electrically connected with protocol process module, described USB is turned serial port module and is electrically connected with protocol process module, and described protocol process module mainly includes serial ports controller module and PS/ 2 agreement generation modules.
The invention has the beneficial effects as follows, a kind of implementation method of PS/2 interface mouse special is it is not necessary to people goes to manipulate mouse Move, double-click or single-click operation to realize light target, but the program of PC is passed through by the program of serial ports or notebook computer USB port sends operational order to mouse special, can work, it is to avoid install volume under the different operating system supporting PS/2 interface Outer driver, because in volume production test PS/2 mouse interface, often cross moving and click on of staff with PS/2 MouseAcross Select fc-specific test FC program, procedures of observation execution is working properly, indirectly to judge that PS/2 mouse interface function is normal, to survey in volume production Examination, needs the people to stare at all tested mainboards always, and time the length eye of people, hand and body all can be tired, impact whole system Testing efficiency, it is often necessary to many people substitute, consumes the substantial amounts of human resources of company and financial resource, and efficiency is very low, is unfavorable for public affairs The sustainable development of department, this invention alleviates labour intensity, the working time of saving, improves the test based on PS/2 interface mainboard Efficiency;And artificially test process cannot be avoided due to human factor, causes final test effect deviation, program is passed through in this invention Mouse special is controlled to go to manipulate corresponding program, step is clear and definite and simple and reliable, it is to avoid it is unnecessary that man-machine interaction environment is brought Time waste hence it is evident that shortening the testing time, improve efficiency and reliability.
Brief description
The present invention is further described with reference to the accompanying drawings and examples.
Fig. 1 is a kind of operation principle block diagram of embodiment of the present invention.
Specific embodiment
Referring to the drawings, a kind of implementation method of PS/2 interface mouse special, this mouse special includes serial communication module, association View processing module and PS/2 interface module, described serial communication module respectively with protocol process module and PS/2 interface circuit Module electrically connects, and described serial communication module mainly includes 3 line RS232 standard serial port modules and USB turns serial port module, and described 3 Line RS232 standard serial port module is electrically connected with protocol process module, and described USB is turned serial port module and is electrically connected with protocol process module Connect, described protocol process module mainly includes serial ports controller module and PS/2 agreement generation module.
That described 3 line RS232 standard serial port modules are selected is the ADM202EARN of AD company, and it is electric with protocol process module Connect, realize the conversion of RS232 level and Transistor-Transistor Logic level.
Described USB turns the CH340G of the Nanjing Qin Heng company of serial port module selection, realizes USB and turns serial ports.
What described protocol process module was selected is the AT89S52 chip of atmel corp, provides serial ports to manipulate from external reception Mouse command, then according to PS/2 mouse protocol, is converted to PS/2 mouse protocol frame order, is dealt on tested main frame in good time, Realize option program object, open program, the task of bolt down procedure.
Described PS/2 interface module is responsible for providing the pin of open collector, for the PS/2 mouse with tested mainboard Interface is connected.
The course of work of the present invention is that electric on mainboard, mouse special is in the electrification reset stage, after mouse self-inspection is passed through, Interact communication and between main frame, after the completion of the fixing command sequence of execution initializes, host-initiated enters operating system table Face, can send out fix command by PC and go to control the cursor of desktop, manipulate the software program in tested mainboard desktop operating system, And completing automatic test together with automation module cooperations other in Auto-Test System, mouse special is embedded into automation and surveys The position of mouse special in test system, can be fixed, light target shift position can send displacement command by PC and realize, and be not required to Want that mouse special is mobile for example to pass through serial ports transmission X and Y displacement coordinate order to drive cursor of mouse to move, allow cursor of mouse Move to the right 255 pixels upward respectively.After time delay 1 second, now cursor of mouse just points on the icon of Word file, so Send the order of double left button mouse click afterwards by serial ports(0x09、Ox00、0x00、0x08、Ox00、0x00、0x09、Ox00、 0x00、0x08、Ox00、0x00), after time delay 1 second, Word file can be opened;Again X and Y displacement coordinate order is sent by serial ports (0x08、OxFF、0x00、0x08、Ox00、0xFF), after time delay 1 second, cursor points to " x " position in the upper right corner, finally by string Mouth sends single left button mouse click order(0x09、Ox00、0x00、0x08、Ox00、0x00), Word file stop.

Claims (1)

1. a kind of implementation method of PS/2 interface mouse special, this mouse special includes serial communication module, protocol process module With PS/2 interface module it is characterised in that described serial communication module is electric with protocol process module and PS/2 interface respectively Road module electrical connection, described serial communication module mainly includes 3 line RS232 standard serial port modules and USB turns serial port module, described 3 line RS232 standard serial port modules are electrically connected with protocol process module, and described USB is turned serial port module and is electrically connected with protocol process module Connect, described protocol process module mainly includes serial ports controller module and PS/2 agreement generation module.
CN201610726999.7A 2016-08-26 2016-08-26 Implementation method of special mouse for PS/2 interfaces Pending CN106406585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610726999.7A CN106406585A (en) 2016-08-26 2016-08-26 Implementation method of special mouse for PS/2 interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610726999.7A CN106406585A (en) 2016-08-26 2016-08-26 Implementation method of special mouse for PS/2 interfaces

Publications (1)

Publication Number Publication Date
CN106406585A true CN106406585A (en) 2017-02-15

Family

ID=58005211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610726999.7A Pending CN106406585A (en) 2016-08-26 2016-08-26 Implementation method of special mouse for PS/2 interfaces

Country Status (1)

Country Link
CN (1) CN106406585A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2335186Y (en) * 1997-02-28 1999-08-25 昆盈企业股份有限公司 Computer input device with mode converting function
CN1885272A (en) * 2005-06-25 2006-12-27 鸿富锦精密工业(深圳)有限公司 PS/2 interface detection apparatus and method
CN201004221Y (en) * 2006-11-14 2008-01-09 中国船舶重工集团公司第七○九研究所 PS/2 interface keyboard and mouse batch detection device
CN101581964A (en) * 2009-06-22 2009-11-18 威盛电子股份有限公司 Computer system and peripheral equipment drive method
CN101727374A (en) * 2008-10-15 2010-06-09 英业达股份有限公司 Method for testing PS/2 interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2335186Y (en) * 1997-02-28 1999-08-25 昆盈企业股份有限公司 Computer input device with mode converting function
CN1885272A (en) * 2005-06-25 2006-12-27 鸿富锦精密工业(深圳)有限公司 PS/2 interface detection apparatus and method
CN201004221Y (en) * 2006-11-14 2008-01-09 中国船舶重工集团公司第七○九研究所 PS/2 interface keyboard and mouse batch detection device
CN101727374A (en) * 2008-10-15 2010-06-09 英业达股份有限公司 Method for testing PS/2 interface
CN101581964A (en) * 2009-06-22 2009-11-18 威盛电子股份有限公司 Computer system and peripheral equipment drive method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐丽媛: "单片机接口技术概述", 《计算机光盘软件与应用》 *

Similar Documents

Publication Publication Date Title
CN102116165B (en) Hydraulic support control device of coal mine and distributed control system thereof
CN102664873A (en) Method for realization of KVM-OVER-IP of domestic Loongson CPU server with BMC
CN104182243A (en) Sleep state control system, computer system and sleep state detection method thereof
CN101876825B (en) Human-computer interface device of small PLC
CN101826753A (en) Dual-power conversion intelligent controller
CN101692105B (en) Device for real-time detecting product of production line of remote control
CN106649008A (en) Method and system for automatically executing mobile terminal physical startup and shutdown pressure test
CN106149246B (en) Cheese dehydrator control system and its implementation
CN106406585A (en) Implementation method of special mouse for PS/2 interfaces
CN207339992U (en) Stationary nodes automated test device
Guo et al. Design of remote real-time measuring system of temperature and humidity based on Raspberry Pi and Java language
CN200962216Y (en) Intelligent keyboard simulator
CN201749350U (en) Human-machine interface device for miniature PLC
CN207688910U (en) A kind of encoder test system
CN207301729U (en) A kind of embedded multi-axis controller with man-machine interface
CN206224390U (en) A kind of keyboard special based on PS/2 interfaces
CN203912107U (en) Digital television exciter monitoring system
CN203799367U (en) Virtual terminal control system
CN203117963U (en) Debugging system and device for providing graphical pin interface
WO2019210674A1 (en) Method for simulation manual operation smart device, system and apparatus
CN106647495A (en) Ultra-high-frequency range finder control system and realization method thereof
CN103605427B (en) A kind of free drive based on Intelligent flat is dynamic quickly responds input equipment
CN102243601B (en) Debugging system and relevant method for detecting and controlling state of computer host
CN201514442U (en) Real-time detecting device of remote controller production line products
CN101770004A (en) Automatic detection method for electric instrument

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: 20170215