專利匯可以提供Computer system having apparatus for providing pointing device independent support in an operating environment專利檢索,專利查詢,專利分析的服務(wù)。并且There is disclosed a system for providing software support within an operating system for connectable peripherals. The operating system includes a device driver support module which includes no device dependencies and only includes support for system level coordination, application programming interface support and peripheral device event processing. Preferably, the peripheral device is a pointing device, specifically, a mouse.,下面是Computer system having apparatus for providing pointing device independent support in an operating environment專利的具體信息內(nèi)容。
The present invention relates to a computer system and more particularly to providing software support within an operating environment for connectable peripherals which are connectable to a computer system. More specifically, the invention relates to providing such support for peripheral devices such as pointing devices, typically a mouse.
In the past, in order to connect peripheral devices, such as pointing devices or a mouse, to a computer running an operating system, for example, such as PC DOS or IBM OS/2 which are well known operating systems which are commercially available from IBM Corporation (OS/2 is a trademark of IBM Corporation), each independent device had to have a device driver program module which was loaded into the computer which enabled the device to work within the operating system. Typically, in order to prepare such modules the interfaces and other internal aspects of the operating system needed to be documented and known to the manufacturers of these devices to permit them to prepare the complicated device driver module.
In the case of OS/2, for example, for each release specific mouse support interfaces have been defined and incorporated into the operating system. A problem with this is that the interfaces change from release to release, and therefore, original equipment manufacturers are faced with the task of having to provide completely new device drivers for their devices in order to permit them to operate with the newly released version of the operating system.
This is further complicated because in more recent developments, especially with operating systems such as OS/2, there are now internal device interfaces which are undocumented and for this reason, it becomes impossible for a peripheral device manufacturer to prepare a peripheral device support program module, i.e., driver or device driver.
An aim of the present invention is to solve this problem by a specific modification of the operating system.
In accordance with the present invention, there is now provided an operating system of the type employed in a computer system to permit the executing of application programs and operation of the system in combination with connected peripherals wherein predetermined device drivers are required to support the operation of the connected peripherals, the improvement comprising means for supporting operation of connectable peripheral devices in conjunction with the operating system, with the means for support being characterised by being logically independent of the type of peripheral device connected.
Viewing the present invention from a second aspect, there is now provided a computer system comprising: an operating system for permitting the execution of application programs and cooperation of connected peripherals wherein predetermined device drivers are required to support the cooperation of the connected peripherals, means for supporting the cooperation of at least one connectable peripheral device in conjunction with the operating system, characterised in that the means for support is logically independent of the type of peripheral device connected.
Viewing the present invention from a third aspect, there is now provided an improvement in an operating system of the type employed in a computer system to permit the execution of application programs and operation of the system in combination with connected peripherals. When referring to computer systems, preferably it is intended to be directed to personal computers, i.e., stand-alone microprocessor based systems such as the IBM PC, PC XT, PC AT and the IBM PS/2 family of computers. Predetermined device drivers are required to support the operation of the connected peripherals and the improvement resides in that the operating system further comprises means for supporting operation of connectable peripheral devices in conjunction with the operating system. The means for support is characterised by being logically independent of the type of peripheral device connected such that the peripheral device manufacturer now needs to merely provide a relatively small, as compared to said means for support, peripheral specific program module, i.e., device driver, which interacts with said means for support of the operating system. By logically independent is meant that the operating system provided device driver operates and interacts with the operating system in the same manner for all mouse or pointing devices irrespective of the mouse or pointing device attached.
In a more specific aspect, the means for support comprises means for supporting an operating system's application programming interface, means for data formatting, means for inter-device communications, i.e., an IDC, and means for maintaining data areas. In its preferred aspect, the connectable peripheral devices are pointing devices, more specifically, a mouse.
In a particularly preferred example of the present invention, the traditional prior art mouse or peripheral device program module is split into two separate modules. The first module is a device dependent program module which contains all code to support the specific hardware requirements of the attached mouse device. This module now becomes replaceable because it contains solely system interface code and an original equipment manufacturer could thus replace the module with their own and have the device supported by the operating system. More specifically, the module now includes a single system interface and the device specific support code.
The second module, which is incorporated into the operating system as part of the operating system, is a device independent program module. It contains the remainder of what in the prior art is the original program module, extensive modifications having been made to make it independent of the type of pointing device, i.e., mouse device, supported by the device dependent program module. The device independent module maintains support for the programming interface to the rest of the operating system and supports the undocumented internal interfaces to other system modules.
In in example of the present invention, an interface is defined between the new program module in the operating system so that the new interface is used by both the device dependent module and the independent module to communicate with each other. This is done using the IDC mechanism which was previously discussed. The IDC mechanism is a defined method that allows two device driver program modules to communicate directly. This IDC interface is used by both modules to carry out normal operations of the mouse device and is defined in the IBM OS/2 operating system documentation. Implementation of this mechanism is known, conventional and easily implemented, based on this description, by those of ordinary skill in this art.
Under the present invention, two unexpected advantages result. The first advantage is that the peripheral device manufacturer need only write the device dependent software module once. The device will then be supported under all future releases of the operating system which support the current documented device driver architecture. This is true because the device dependent program module does not have any interfaces to the operating system that are required for the normal operation of the connected mouse device.
The only interfaces defined are those that are required for any replaceable device driver program module. As an example, if the user installed a new release, there are no required device dependent driver modules to be provided by the peripheral device manufacturer to support the peripheral device operation with the new release of the operating system other than that which was previously provided. The second advantage is that there is extendibility provided. More specifically, by extendable is meant that the invention was designed to handle mouse devices in its preferred embodiment, but can be used to handle any type of pointing device.
By pointing device is meant a visual interface device which allows a user to point to or select objects or predetermined selected areas of a computer screen. The device independent module which is provided by the operating system does not "care" what type of device is attached. As a result a peripheral device manufacturer can write a device dependent module to support any type of pointing device desired. Examples of other types of pointing devices include, but are not limited to, light pens, touch pads, touch screens, roller balls, joy sticks and the like.
An embodiment of the present invention will now be described with reference to the accompanying drawings in which:
Although this invention could be implemented on any computer system that allows a pointing device to be attached and to operate loadable device drivers, the invention will be discussed with particular reference to IBM Corporation's OS/2 operating system operating, for example, on an IBM PS/2 personal computer with sufficient memory to permit operation of the operating system therewith.
As shown in Fig. 1, prior art systems do not include attachable device support as part of the operating system. In operation, an application 1 would then interface directly to the operating system 3 for system services and to the separate device driver 5 for device support services. Device support services can be referred to as an application programming interface, i.e., an API. The device driver 5 interfaces directly to the hardware 7. This type of system is used to support many different types of devices, including pointing devices. An example of such prior art support is PC DOS.
As the mouse became a widely accepted pointing device, operating systems began including mouse support as part of the system. Fig. 2 shows a typical operating, e.g., OS/2, system view of mouse support prior to this invention. An application 1 no longer interfaces directly to a device driver for the device API, instead it interfaces with the system 3 through an API layer 9. The API layer 9 then interfaces with the device driver (not numbered).
Also shown in Fig. 2 is the internals of the prior art mouse device driver (not numbered). By internals is meant the logical divisions in the modules providing the separate responsibilities for normal operation. Each internal area has a specific responsibility or function, and may include private or non-published interfaces to other component modules of the system. In discussing such a driver, for ease of understanding, the mouse device driver can be discussed as broken into three parts. First is the API support 11. This part is responsible for interfacing to the API layer 9 which is part of the system 3. The second part is the interrupt handler and data formatter 13. This part reads all interrupt data from the mouse device 17 then converts it into a generic mouse event. The event is then added to appropriate event queue. The last part is the data areas 15. The data areas 15 contains all movement control variables, the event queues, and other control variables. Device dependencies are built into the entire device driver module. Device dependencies include, but are not limited to: 1) data format and size; 2) mouse type, e.g., serial, bus, etc.; 3) interrupt rates; 4) machine base; 5) mouse driver, number of buttons; 6) movement resolution; and/or 7) method of disabling. Each part of the module is dependent on the type of mouse attached and its hardware operating specifics are implemented is a conventional manner as will be readily apparent to those of ordinary skill in this art.
In accordance with this invention the resulting system is shown in Fig. 3. The device driver module in Fig. 2 has been split into two parts. This was done by identifying all hardware dependencies throughout the device driver module and placing them in a separate device driver module. This resulted in two separate device driver modules. These are labelled mouse independent device driver 11, 19, 21, and 15, and mouse dependent device driver 23 and 25 in Fig. 3. The mouse dependent device driver 23 and 25 contains all the hardware dependent code from the previous mouse device driver. This part of the invention, as a result of the separation, required an inter-device communication part to each of the resulting device drivers. The IDC is comprised of parts 21 and 23 in Fig. 3 of the two device drivers. The IDC 21 and 23 is used for communication between the two device drivers. The mouse independent device driver uses the IDC 21 to control the state of the mouse hardware and to query its operating characteristics. The mouse dependent device driver uses the IDC 21 to report mouse event data in a common format, i.e., common event packet, to the mouse independent device driver. The mouse independent device driver then processes the common event packet. By putting all device operation dependencies in the device dependent device driver, the device independent device driver is independent of the type of hardware attached.
Fig. 4a is a general flow diagram of the control for the mouse dependent device driver when it receives an interrupt from the mouse hardware. An interrupt 27 is first generated. Thereafter, the interrupt data is read in 29 from the device, i.e., the mouse hardware. This is a device dependent step and function, and differ for each mouse device and for each machine base the mouse device is supported on. In step 31 the interrupt data is accumulated. Most mouse devices generate several interrupts to report a complete hardware dependent mouse event. Thereafter, at step 33 it is determined if a complete hardware dependent mouse event has been accumulated. If so, then at step 35 the device dependent mouse event data is converted into a common mouse event packet. A call 37 is then made to the mouse independent device driver to process the common event packet. This call 37 is done using the IDC 21 interface which is part of the mouse independent device driver in a conventional manner. A return 39 is then processed from the mouse independent device driver to the mouse dependent device driver. At this time the common event packet has been processed. The mouse dependent device driver then completes the interrupt processing in step 43 and executes a return 45 from interrupt sequence. If a complete hardware dependent mouse event has not yet been received at step 33, then interrupt processing is completed at step 43 and the return 45 from the interrupt sequence is then executed. Whatever was interrupted then resumes.
Fig. 4b is a general flow control diagram of the operation used by the mouse independent device driver to process a common event packet from the mouse dependent device driver 39. First a test is done in 47 to see if mouse support has been activated. Mouse support is considered activated if the following conditions are met: 1) an application, such as the IBM OS/2 Presentation Manager shell, has opened the mouse; and 2) the video display mode is supported so that the pointer image can be tracked correctly on the display. If so then the event is processed. If not then the event is ignored and control is passed back to the mouse dependent device driver. If support has been activated then it is determined at step 49 if the mouse moved. If so, then a conversion 51 is made of the mouse motion to pointer image movement on the screen and a calculation 53 is made to determine the new pointer position. This involves a conventional well-known and easily implemented algorithm using mouse motion parameters for converting physical mouse motion to display mode dependent motion. Otherwise the new pointer image position is the same as the old pointer image position. At step 55 it is determined if the mouse event should be reported to the application(s) using the mouse. If so, then step 57 builds a generic mouse event from the common event packet and the newly calculated pointer position. Step 58 determines if a hardware dependent operation is required. If so, then step 60 will call the mouse dependent device driver to perform the operation. Step 59 then places the mouse event in the appropriate mouse event queue, e.g., as a First-In-First-Out (FIFO) queue. In step 61 the previous pointer image position is compared to the new pointer image position. If the positions are different, then at step 63 a check of the new position is made to determine if it is inside the current display mode limits. If not, then at step 65 an adjustment of the pointer image position is made so that it is inside the display mode limits. At step 67 the previous pointer image is removed from the previous pointer position. The pointer image is then drawn at step 69 at the new pointer image position. Control is then given back to the mouse dependent device driver 41. Steps 67 and 69 in the IBM OS/2 operating system are performed through a pointer inter-device communication, i.e., IDC (not shown) interface which is documented in the IBM Technical References for OS/2 operating system, and well known to those of ordinary skill in the art.
Step 59, where the mouse event is queued, involves a check to see what queueing method is active for the session. There are two queueing modes that can be active. The first is normal queuing mode. In this mode the event is sent to the event queues that the mouse independent device driver maintains in its own data areas. The second queueing mode is single queue mode. In single queue mode the mouse event is sent to a separate OS/2 component for queueing. Single queue mode and all related operations for supporting single queue mode are undocumented in the OS/2 related publications. In accordance with the invention, these interfaces remain undocumented.
For completeness in disclosing the invention in its preferred embodiment a technical discussion of these interfaces now follows. This information in conjunction with information found in the IBM OS/2 technical reference publications, which are incorporated specifically by reference herein, complete the information needed for one of ordinary skill in the art to implement this invention under the IBM OS/2 operating system.
In order to activate single queue mode, a MouSetDevStatus call with bit 2 in the high byte of the new device status word must be set. The following interface described, other than for the documentation provided herein, is not currently documented with IBM OS/2 publications or technical references. When the mouse independent device driver detects that single queue mode is being activated it will perform the following steps:
If the initialise function passed then AX will be 0, otherwise there was an error and single queue mode should not be activated. Once a session is in single queue mode any call to read that session's event queue should fail.
During mouse event processing if single queue mode is active for the session then the mouse event is sent to the single queue device driver. The mouse event is sent to the single queue device driver by performing the following steps:
Together the mouse dependent and independent device drivers form a mouse device independent system. The essence is in the removal of the device dependent code from the old mouse device driver and the addition of the IDC interface that is independent of the mouse device attached.
Having described the invention in detail, the following are specific representative implementations in pseudo code reflective of specific drawings attached hereto.
The following is pseudo code for a mouse device dependent driver module. This is not for any specific mouse device, but is representative of a specific implementation as represented by Fig. 4A.
The following is a pseudo code representation of processing done by the mouse device independent device driver when it processes a mouse event. The pseudo code given here demonstrates the basic steps that would be performed by an implementation of this invention. The actual implementation in IBM's OS/2 operating system follows this basic structure and is representative of Fig. 48.
Input to this routine is mouse event data in a common format. The event data is passed in a buffer called interruptpacket.
Having thus described the invention in detail, the same will be better understood from the claims which follow.
標(biāo)題 | 發(fā)布/更新時間 | 閱讀量 |
---|---|---|
一種基于物聯(lián)網(wǎng)的食品加工遠(yuǎn)程控制系統(tǒng) | 2020-05-20 | 4 |
一種顯示方法及終端 | 2020-10-08 | 2 |
終端狀態(tài)的監(jiān)控方法及裝置 | 2020-09-03 | 1 |
指定、設(shè)置和發(fā)現(xiàn)電子表格文檔的參數(shù) | 2021-06-07 | 4 |
METHOD AND SYSTEM FOR MANAGING DELAYED USER AUTHENTICATION | 2021-09-22 | 3 |
Query framework system and method | 2022-01-26 | 5 |
Unified notification platform | 2020-11-11 | 3 |
SYSTEM AND METHOD FOR ENABLING PSEUDONYMOUS LIFELIKE SOCIAL MEDIA INTERACTIONS WITHOUT USING OR LINKING TO ANY UNIQUELY IDENTIFIABLE USER DATA AND FULLY PROTECTING USERS' PRIVACY | 2021-01-20 | 3 |
DATENVERARBEITUNGSSYSTEM UND VERFAHREN ZUR INTEGRATION VON DATEN MIT EINER üBERGEORDNETEN ANWENDUNGSPROGRAMMIERSCHNITTSTELLE UND AUSGABE DER DATEN IN EINEM EINHEITLICHEN FORMAT | 2020-09-21 | 1 |
CROSS-ENVIRONMENT COMMUNICATION USING APPLICATION SPACE API | 2021-07-10 | 1 |
高效檢索全球?qū)@?/div>專利匯是專利免費(fèi)檢索,專利查詢,專利分析-國家發(fā)明專利查詢檢索分析平臺,是提供專利分析,專利查詢,專利檢索等數(shù)據(jù)服務(wù)功能的知識產(chǎn)權(quán)數(shù)據(jù)服務(wù)商。
我們的產(chǎn)品包含105個國家的1.26億組數(shù)據(jù),免費(fèi)查、免費(fèi)專利分析。
分析報(bào)告專利匯分析報(bào)告產(chǎn)品可以對行業(yè)情報(bào)數(shù)據(jù)進(jìn)行梳理分析,涉及維度包括行業(yè)專利基本狀況分析、地域分析、技術(shù)分析、發(fā)明人分析、申請人分析、專利權(quán)人分析、失效分析、核心專利分析、法律分析、研發(fā)重點(diǎn)分析、企業(yè)專利處境分析、技術(shù)處境分析、專利壽命分析、企業(yè)定位分析、引證分析等超過60個分析角度,系統(tǒng)通過AI智能系統(tǒng)對圖表進(jìn)行解讀,只需1分鐘,一鍵生成行業(yè)專利分析報(bào)告。
應(yīng)用程序編程接口熱門專利