Display device and mouse sensitivity synchronization method
The display controller adjusts the HID descriptor of the USB mouse to make it consistent with the sensitivity setting of the old mouse, which solves the problem of the different sensitivity of the new mouse and the old mouse, and realizes automatic synchronization of the mouse sensitivity and improves the user experience.
Patent Information
- Application Number
- CN202011628265.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2040-12-31
AI Technical Summary
When the existing display device replaces the mouse, it is easy to cause the sensitivity of the new mouse to be different from that of the old mouse, which causes the user to spend time adjusting the settings of the new mouse, but it may not necessarily be consistent with the settings of the old mouse, resulting in a reduced user experience.
A display device and its mouse sensitivity synchronization method are provided, and the HID descriptor of the second USB mouse returns is adjusted by the display controller to make it consistent with the sensitivity setting of the first USB mouse, thereby controlling the cursor of the operating system on the host.
Automatic synchronization of sensitivity of different mice is achieved, and users can make the operation of the new mouse the same as the old mouse without changing the settings of the old mouse, improving the user experience.
Smart Images

Figure CN114690917B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a display device, and in particular to a display device and a mouse sensitivity synchronization method thereof. Background Art
[0002] The functions of today's display devices are becoming more and more diverse, and many display devices are equipped with USB hubs or provide USB-PD (USB power transmission) functions. Users can connect USB peripheral devices (such as mice, keyboards, etc.) to the USB hub on the display device, and the host can identify the above USB peripheral devices through the USB protocol, so the user can use the USB mouse to control the cursor on the host screen. However, because there are many mouse models from various manufacturers on the market, their sensitivities are also different. When the user changes to a different mouse and operates the cursor in the operating system, it is easy to cause the sensitivity of the new mouse to be different from the sensitivity of the old mouse that the user is accustomed to, and the user needs to spend time adjusting the settings of the new mouse, but it may not be consistent with the settings of the old mouse, resulting in a reduced user experience. Summary of the invention
[0003] In view of this, the present invention provides a display device and a mouse sensitivity synchronization method to solve the above-mentioned problem.
[0004] The present invention provides a display device, which is electrically connected to a host, and the host runs an operating system. The display device includes: a display module, a display controller, a first universal serial bus (USB) interface and a USB hub. The display controller is used to control the display screen of the display module. The first USB interface is electrically connected to the display controller, and a first USB mouse is connected to the first USB interface, wherein the first USB mouse uses a first sensitivity. The display controller stores the first sensitivity used by the first USB mouse as a first sensitivity setting. When a second USB mouse replaces the first USB mouse to connect to the USB interface or the second USB mouse is connected to the second USB interface of the display device, the display controller adjusts the first human interface device (HID) descriptor reported by the second USB mouse to the display controller to generate a second HID descriptor, wherein the second sensitivity used by the second USB mouse is different from the first sensitivity used by the first USB mouse, and the second HID descriptor is consistent with the first sensitivity setting. The display controller reports the second HID descriptor to the host through the USB hub so that the host controls the cursor of the operating system according to the second HID descriptor.
[0005] In some embodiments, when the display device and the first USB mouse are produced by the same manufacturer, the display controller learns the first device identifier of the first USB mouse and its corresponding first sensitivity from the USB signal reported by the first USB mouse, and automatically stores the first sensitivity as the first sensitivity setting.
[0006] In other embodiments, when the display device and the first USB mouse are produced by different manufacturers or the display controller cannot learn the first sensitivity corresponding to the first device identifier of the first USB mouse from the USB signal reported by the first USB mouse, the display controller displays an on-screen display interface on the display module for setting the first sensitivity of the first USB mouse and stores it as the first sensitivity setting.
[0007] In some embodiments, the display controller calculates a ratio between the first sensitivity and the second sensitivity, and multiplies the X-axis displacement and the Y-axis displacement in the first HID descriptor reported by the second USB mouse to the display controller by the ratio to obtain a second HID descriptor.
[0008] In some embodiments, the display controller encodes the second HID descriptor into a USB signal and transmits the USB signal to the host through a USB hub, and the host decodes the USB signal to obtain the second HID descriptor and controls the cursor of the operating system according to the second HID descriptor.
[0009] The present invention also provides a mouse sensitivity synchronization method for a display device, wherein the display device includes a display module, a display controller, a first universal serial bus (USB) interface and a USB hub. The display device is electrically connected to a host, the host runs an operating system, and the first USB interface is electrically connected to the display controller. The method includes: connecting a first USB mouse to the USB interface, wherein the first USB mouse uses a first sensitivity; when a second USB mouse replaces the first USB mouse to connect to the first USB interface or the second USB mouse is connected to the second USB interface of the display device, using the display controller to adjust the first human interface device (HID) descriptor reported to the display controller by the second USB mouse to generate a second HID descriptor, wherein the second sensitivity used by the second USB mouse is different from the first sensitivity used by the first USB mouse, and the second HID descriptor is aligned with the first sensitivity; and using the display controller to report the second HID descriptor to the host through the USB hub so that the host controls the cursor of the operating system according to the second HID descriptor. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1A is a block diagram of a computer system according to an embodiment of the present invention.
[0011] Figure 1B is a block diagram of a computer system according to another embodiment of the present invention.
[0012] Figure 1C is a block diagram of a computer system according to another embodiment of the present invention.
[0013] Figure 2 FIG. 4 is a schematic diagram of the movement operation of a cursor of an operating system under different mouse sensitivities according to an embodiment of the present invention.
[0014] Figure 3 Flow chart of a mouse sensitivity synchronization method according to an embodiment of the present invention.
[0015] Explanation of symbols
[0016] 10: Computer system
[0017] 20: Cursor
[0018] 100: Host
[0019] 200: Display device
[0020] 110: Processing unit
[0021] 111: System bus
[0022] 120: Graphics Processing Unit
[0023] 130: Memory unit
[0024] 140: Storage device
[0025] 141: Applications
[0026] 142: Operating System
[0027] 150: Transmission interface
[0028] 210: Display controller
[0029] 211: Image Resizer
[0030] 212: Timing controller
[0031] 220: Display module
[0032] 230: Storage unit
[0033] 231: Firmware
[0034] 232: Display interface on screen
[0035] 240: Image buffer
[0036] 250: Transmission interface
[0037] 251, 252: USB interface
[0038] 260: Input interface
[0039] 261: Physical button
[0040] 262: Five-way joystick
[0041] 270: Hub
[0042] 271: Mouse Controller
[0043] 276: Microcontroller
[0044] 281, 282: USB mouse
[0045] 291, 292: USB signal
[0046] S310-S330: Steps DETAILED DESCRIPTION
[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, an embodiment is given below and described in detail with reference to the accompanying drawings.
[0048] Figure 1A 1 is a block diagram of a computer system according to an embodiment of the present invention. The computer system 10 may be, for example, a personal computer or a server equipped with a display device. Figure 1A As shown, the computer system 10 includes a host 100 and a display device 200, wherein the host 100 is electrically connected to the display device 200. The host 100 includes, for example, a processing unit 110, a graphics processing unit 120, a memory unit 130, a storage device 140, and one or more transmission interfaces 150. The processing unit 110, the graphics processing unit 120, the memory unit 130, the storage device 140, and the transmission interface 150 are coupled to each other via a system bus 111. The processing unit 110 may be, for example, a central processing unit (CPU), a general-purpose processor, etc., but the present invention is not limited thereto. The graphics processing unit 120 may be, for example, a graphics processing unit on a display card or a graphics processing unit integrated into the processor 110.
[0049] The memory unit 130 is a random access memory, such as a dynamic random access memory (DRAM) or a static random access memory (SRAM), but the present invention is not limited thereto. The storage device 140 is a non-volatile memory, such as a hard disk drive, a solid-state disk, a flash memory, or a read-only memory, but the present invention is not limited thereto.
[0050] The transmission interface 150 may include a wired transmission interface and / or a wireless transmission interface, wherein the wired transmission interface may include: High Definition Multimedia Interface (HDMI), Display Port (DP) interface, embedded Display Port (eDP), Universal Serial Bus (USB) interface, USB Type-C interface, Thunderbolt interface, Digital Video Interface (DVI), Video Graphics Array (VGA) interface, General Purpose Input Output (GPIO) interface, Universal Asynchronous Receiver / Transmitter (UART) interface, Serial Peripheral Interface (SPI) interface, Integrated Circuit Bus (I2C) interface, or a combination thereof, and the wireless transmission interface may include: Bluetooth, WiFi, Near Field Communication (NFC) interface, etc., but the present invention is not limited thereto.
[0051] For example, the storage device 140 may store one or more application programs 141 and an operating system 142 (e.g., Windows, Linux, MacOS, etc.), and the processing unit 110 reads and executes the one or more application programs 141 and the operating system 142 to the memory unit 130. The graphics processing unit 120 may, for example, perform drawing processing of the application program executed by the processing unit 110 to generate an image signal including one or more images, and transmit the image signal to the display device 200 via the transmission interface 150 (e.g., an HDMI interface or a DisplayPort interface).
[0052] The display device 200 may be, for example, a flat panel display, a television, a projector, a computer screen, etc., but the present invention is not limited thereto. The display device 200 includes a display controller 210, a display module 220, a storage unit 230, an image buffer 240, a transmission interface 250, an input interface 260, and a hub 270. The transmission interface 250 may include a wired transmission interface and / or a wireless transmission interface, wherein the wired transmission interface may include: High Definition Multimedia Interface (HDMI), Display Port (DP) interface, embedded Display Port (eDP), Universal Serial Bus (USB) interface, USB Type-C interface, Thunderbolt interface, Digital Video Interface (DVI), Video Graphics Array (VGA) interface, General Purpose Input Output (GPIO) interface, Universal Asynchronous Receiver / Transmitter (UART) interface, Serial Peripheral Interface (SPI) interface, Integrated Circuit Bus (I2C) interface, or a combination thereof, and the wireless transmission interface may include: Bluetooth, WiFi, Near Field Communication (NFC) interface, etc., but the present invention is not limited thereto.
[0053] The display controller 210 may be, for example, an application-specific integrated circuit, a system-on-chip, a processor, or a microcontroller, but the invention is not limited thereto.
[0054] The display module 220 may be, for example, a liquid crystal panel, a light-emitting diode panel, an organic light-emitting diode panel, a cathode ray tube, an electronic ink (E-Ink) display module, an electroluminescent display module, a plasma display module, a projection display module, or a quantum dot (QuantumDot) display module, but the present invention is not limited thereto.
[0055] The storage unit 230 may be, for example, a non-volatile memory, such as a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or an electronically erasable programmable read-only memory (EEPROM). The storage unit 230 is used to store firmware 231 and an on-screen-display (OSD) interface 232 related to the display device 200. The storage unit 230 may be, for example, external to the display controller 210 or may be integrated into the display controller 210.
[0056] The firmware 231 includes, for example, display settings of the on-screen display interface of the display device 200 and extended display identification data (EDID) and display settings. The extended display identification data includes, for example, the manufacturer, product name, resolution, and display frames per second of the display device 200. The display settings include, for example, settings of the brightness, contrast, sharpness, and color temperature of the display device 200.
[0057] In one embodiment, the display controller 210 can read the program code of the firmware 231 and the OSD interface 232 stored in the storage unit 230 through a bus (e.g., an I2C bus) and set the relevant display parameters accordingly. In addition, the display controller 210 can also transmit the extended display capability identification data of the display device 200 to the host 100 through the transmission interface 250 (e.g., an image transmission channel or a data transmission channel) so that the processing unit 110 and the graphics processing unit 120 in the host 100 can set the resolution of the image signal to be output and the relevant synchronization signal. The on-screen display interface 232 includes, for example, an on-screen display menu (OSD Menu) and options, an information display interface (information dashboard), a timer, a counter, a crosshair, a specific symbol, a specific color, a specific text, or a combination thereof, but the present invention is not limited thereto.
[0058] The image buffer 240 may be, for example, a volatile memory (e.g., a dynamic random access memory) or a non-volatile memory (e.g., a flash memory), which is used to store an output image to be played on the display module 220, wherein the host 100 or the display controller 210 may generate an output image by causing one or more on-screen display interfaces 232 to cover a specific area of the image signal stored in the image buffer 240 based on an on-screen display enable signal generated by the host 100.
[0059] The input interface 260 is used to control the menu displayed on the screen of the display device 200. The input interface 260 can be implemented by a five-way joystick 262 or five physical buttons 261, so as to implement commands such as up, down, left, right, and confirm. The hub 270 is, for example, a USB hub, and the transmission interface 250 includes a USB interface, and the host 100 can transmit data to the display controller 210 through the USB interface in the transmission interfaces 150 and 250 through the hub 270, and the display controller 210 can also transmit data to the host 100 through the USB interface in the transmission interfaces 150 and 250 or the USB Type-C interface (i.e., the data transmission channel) through the hub 270.
[0060] In one embodiment, when the user operates one direction of the five-way joystick 262 (or presses one of the physical buttons 261), the display controller 210 can read the firmware 231 and the program code of the on-screen display menu and related options in the on-screen display interface 232 from the storage unit 230, and display the on-screen display menu and related options on the display module 220. In one embodiment, the user can operate on the input interface 260 to control the on-screen display menu of the display device 200, thereby adjusting the brightness, contrast, sharpness, color temperature of the display module 220, or opening or closing other interfaces in the on-screen display interface 232. For example, the firmware 231 can be regarded as the default firmware of the display device 200, and the user can control the option settings of the on-screen display interface 232 displayed by the display device 200 via the five-way joystick 262 (or the physical buttons 261).
[0061] In one embodiment, the display controller 210 includes an image scaler 211 and a timing controller 212. The display controller 210 receives an image signal from the host 100 and / or an image signal from other hosts through the transmission interface 250, and the image scaler 211 can perform image scaling and / or image superposition processing on the image in the received image signal to meet the resolution of the display module 220, and store the image after image scaling processing (e.g., called output image) in the image buffer 240. The timing controller 212 controls the display module 220 to read the output image from the image buffer 240 and play it.
[0062] In another embodiment, the display controller 210 may include a timing controller 212, and the resolution of the image signal from the host 100 matches the resolution of the display module 220, so the display controller 210 may store the image signal in the image buffer 240 without image scaling after receiving the image signal from the host 100. The timing controller 220 may read the output image from the image buffer 240 and control the display module 220 to play the output image.
[0063] In one embodiment, the display device 200 further includes USB interfaces 251 and 252, and the USB interfaces 251 and 252 are electrically connected to the display controller 210. USB mice 281 and 282 (for example, USB mice) are connected to the USB interfaces 251 and 252, respectively, and the USB mice 281 and 282 may have different sensitivities, where the sensitivity may be represented by dots per inch (DPI), for example.
[0064] For the sake of convenience, the USB mouse 281 is, for example, a mouse that the user is used to use, and the USB mouse 282 is, for example, a mouse that the user has replaced, and the sensitivity of the USB mouse 281 is higher than that of the USB mouse 282. In this embodiment, the USB mouse 281 and 282 do not need to be connected to the display device 200 at the same time. For example, the user can replace the USB mouse 281 with the USB mouse 282, and the USB mouse 282 can be connected to one of the USB interfaces 251 and 252. In addition, the USB mice 281 and 282 can also be connected to the USB interfaces 251 and 252 at the same time.
[0065] In this embodiment, the display controller 210 can provide a physical vendor ID and product ID for the host 100 to identify, and can declare the USB mice 281 and 282 connected to the hub 270 as USB human interface devices (HID). For the host 100, when the USB mouse 281 or 282 is connected to the display device 200, the operating system 142 can identify the USB human interface device declared by the display controller 210 through a USB channel (such as a data transmission channel). Even if the USB mice 281 and 282 are connected to the display device 200 at the same time, the operating system 142 will only recognize the above-mentioned USB human interface device declared by the display controller 210. In addition, the USB mice 281 and 282 are both cursors that control the operating system 142 to draw.
[0066] It should be noted that the USB signals 291 and 292 reported by the USB mice 281 and 282 do not carry any sensitivity information (such as DPI information), and if the host 100 has not installed any mouse driver of a specific manufacturer, the host 100 and the display device 200 cannot directly obtain the sensitivity of the USB mice 281 and 282. If the host 100 has installed a mouse driver of a specific manufacturer, but the USB mice 281 and 282 are not manufactured by a specific manufacturer, the host 100 and the display device 200 cannot directly obtain the sensitivity of the USB mice 281 and 282.
[0067] Generally speaking, users cannot use professional testing equipment (such as a robot arm) to control the mouse to move a fixed distance (such as 1 inch) in the same direction to find out the number of pixels moved by the cursor of the operating system 142, and then calculate the sensitivity of the USB mouse 281 and 282. Users can usually find out the sensitivity of the USB mouse 281 and 282 through the product model of the USB mouse 281 and 282 and its sensitivity setting (if there are multiple settings), and then find the corresponding sensitivity value.
[0068] In detail, the USB mice 281 and 282 report HID descriptors to the host 100 at a fixed rate (e.g., the report rate in the USB protocol is 125 Hz), and the controllers (not shown) in the USB mice 281 and 282 encode the HID descriptors of the USB mice 281 and 282 into USB signals 291 and 292, respectively. The HID descriptor can define how many packets the USB mice 281 and 282 support, the packet size, and the purpose of each byte and bit in the packet, such as buttons (including at least the left button, the right button, and the scroll wheel / middle button) and the movement of the X-axis / Y-axis (e.g., all are 8-bit signed numbers). For example, each HID descriptor can be represented by a 3-byte packet, as shown in Table 1:
[0069]
[0070] Table 1
[0071] In addition, the display controller 210 can support decoding and encoding of the USB protocol, and the USB signals 291 and 292 will first be decoded by the display controller 210 to obtain the HID descriptors reported by the USB mice 281 and 282. For ease of explanation, in the following embodiments, it is assumed that the sensitivity of the USB mouse 281 is 800DPI and the sensitivity of the USB mouse 282 is 400DPI. Assuming that the resolution of the display module 220 is 1920x1080, if the USB mouse 281 is moved 1 inch to the right, the cursor 20 of the operating system 142 will move from position A to position C. If the USB mouse 282 is moved 1 inch to the right, the cursor 20 of the operating system 142 will move from position A to position B, as shown in FIG. Figure 2 shown.
[0072] In the first scenario, the USB mouse 281 and 282 do not have the function of firmware update. If the display device 200 and the USB mouse 281 are manufactured by the same manufacturer, the display controller 210 can learn the device ID and related sensitivity settings of the USB mouse 281 from the USB signal reported by the USB mouse 281, so the display controller 210 can know that the sensitivity of the USB mouse 281 is 800 DPI. If the USB mouse 281 is a mouse that the user is accustomed to, the user can select a corresponding option in the OSD interface 232 of the display device 200 to store the sensitivity of the USB mouse 281 as the first sensitivity setting (for example, the firmware 231 that can be stored in the storage unit 230).
[0073] If the display device 200 and the USB mouse 281 are not manufactured by the same manufacturer, the display controller 210 can obtain the device ID of the USB mouse 281 from the USB signal reported by the USB mouse 281, but cannot obtain the relevant sensitivity setting of the USB mouse 281. In this case, if the user can obtain the product model of the USB mouse 281 and determine its sensitivity, the user can input the sensitivity of the USB mouse 281 as 800 DPI in the OSD interface 232 of the display device 200 and store it as the first sensitivity setting (for example, it can be stored in the firmware 231 of the storage unit 230).
[0074] When the user replaces the USB mouse 281 with the USB mouse 282 (i.e., connects to the USB interface 251) or connects the USB mouse 282 to the USB interface 252, the display device 200 and the USB mouse 282 may be manufactured by the same manufacturer or not. If the display device 200 and the USB mouse 282 are manufactured by the same manufacturer, the display controller 210 can learn the device ID and related sensitivity settings of the USB mouse 282 from the USB signal reported by the USB mouse 282, so the display controller 210 can learn that the sensitivity of the USB mouse 282 is 400 DPI. At this time, when the mouse sensitivity synchronization function of the display device 200 is turned on, in order to synchronize the sensitivities of the USB mice 281 and 282, the display controller 210 can multiply the X-axis displacement and the Y-axis displacement in the HID descriptor of the USB mouse 282 by the corresponding multiple N. In this embodiment, since the sensitivity of the USB mouse 281 and 282 is 800 DPI and 400 DPI respectively, the multiple N=800 / 400=2, which means that the display controller 210 can multiply the X-axis displacement and the Y-axis displacement in the HID descriptor (e.g., the first HID descriptor) of the USB mouse 282 by 2, so the sensitivity of the USB mouse 282 can be amplified by 2 times to be equal to the sensitivity of the USB mouse 281. Then, the display controller 210 transmits the modified HID descriptor (e.g., the second HID descriptor) of the USB mouse 282 to the hub 270. The hub 270 can encode the second HID descriptor into a USB signal, and transmit the USB signal to the host 100 through the transmission interface 250 and 150 (e.g., a USB interface or a USB Type-C interface). After decoding the USB signal, the host 100 can obtain the second HID descriptor, and perform corresponding operations on the cursor of the operating system 142 according to the content of the second HID descriptor.
[0075] If the display device 200 and the USB mouse 282 are not manufactured by the same manufacturer, the display controller 210 can obtain the device ID of the USB mouse 282 from the USB signal reported by the USB mouse 282, but cannot obtain the relevant sensitivity setting of the USB mouse 282. In this case, if the user can obtain the product model of the USB mouse 282 and determine its sensitivity, the user can input the sensitivity of the USB mouse 282 as 400 DPI in the OSD interface 232 of the display device 200 and store it as the second sensitivity setting (for example, it can be stored in the firmware 231 of the storage unit 230). Similarly, the display controller 210 can multiply the X-axis displacement and the Y-axis displacement in the HID descriptor of the USB mouse 282 by 2, so as to amplify the sensitivity of the USB mouse 282 by 2 and make it equal to the sensitivity of the USB mouse 281.
[0076] It should be noted that in the above embodiment, the higher first sensitivity is aligned with the lower second sensitivity, and the user can also select the higher first sensitivity to align with the lower second sensitivity in the relevant options of the OSD interface 232, that is, the above multiple N=1 / 2, so the display controller 210 can multiply the X-axis displacement and the Y-axis displacement in the HID descriptor of the USB mouse 281 by 1 / 2, and the sensitivity of the USB mouse 281 can be reduced to 1 / 2 times and equal to the sensitivity of the USB mouse 282. When the sensitivity of the USB mouse 282 is aligned with the sensitivity of the USB mouse 281, the user can use the USB mouse 282 to perform the same movement operation as the USB mouse 281 without modifying the settings related to the mouse sensitivity in the operating system 142 or the application / computer game.
[0077] In the second scenario, the USB mice 281 and 282 and the display device 200 are all produced by the same manufacturer and the USB mice 281 and 282 have the same product model. In addition, the USB mice 281 and 282 use the same optical sensor with multiple sensitivity settings, and the USB mice 281 and 282 have a firmware update function. Therefore, the display controller 210 can read the firmware and related settings (which may include sensitivity, reporting rate, etc.) of the USB mouse 281 and store them as the first firmware setting. Then, when the display controller 210 wants to synchronize the sensitivity of the USB mice 281 and 282, the display controller 210 updates the first firmware setting to the firmware of the USB mouse 282 so that the sensitivity of the USB mouse 282 is the same as the sensitivity in the first firmware setting.
[0078] In the third scenario, the USB mice 281 and 282 and the display device 200 are produced by the same manufacturer, but the USB mice 281 and 282 have different product models. In addition, the USB mice 281 and 282 use optical sensors with different sensitivities, and the USB mouse 282 has a firmware update function. Therefore, the display controller 210 can learn the sensitivity of the optical sensors of the USB mice 281 and 282 from the USB signals 291 and 292 reported by the USB mice 281 and 282.
[0079] The firmware 231 of the display device 200 also records the firmware format of the relevant mouse of the manufacturer and the lookup table of the settings (not shown). Therefore, the display controller 210 can read the firmware and the relevant sensitivity settings of the USB mouse 281 and store them as the first firmware settings. Then, when the display controller 210 wants to synchronize the sensitivity of the USB mice 281 and 282, the display controller 210 converts the first firmware settings into the second firmware settings suitable for the USB mouse 282 according to the lookup table in the firmware 231, and updates the second firmware settings to the firmware of the USB mouse 282 so that the sensitivity of the USB mouse 282 is the same as the sensitivity in the first firmware settings.
[0080] Figure 1B is a block diagram of a computer system according to another embodiment of the present invention.
[0081] Figure 1B is with Figure 1A Similar, the difference is that Figure 1B The display device 200 in the embodiment further includes a mouse controller 271, which is electrically connected to the display controller 210 and the hub 270, and the mouse controller 271 is disposed outside the hub 270. The mouse controller 271 may be implemented, for example, by an embedded microcontroller or a mouse integrated circuit (IC) to provide a physical manufacturer identifier (vendor ID) and a product identifier (product ID) for identification by the host 100, and may declare the USB mice 281 and 282 connected to the hub 270 as human interface devices (HID).
[0082] For the host 100, when the USB mouse 281 or 282 is connected to the display device 200, the operating system 142 can identify the USB human interface device announced by the mouse controller 271 through a USB channel (e.g., a data transmission channel). Even if the USB mice 281 and 282 are connected to the display device 200 at the same time, the operating system 142 will only identify the USB human interface device announced by the mouse controller 271. In addition, both the USB mice 281 and 282 control the cursors drawn by the operating system 142.
[0083] In this embodiment, the display controller 210 may transmit the modified HID descriptor (e.g., the second HID descriptor) of the USB mouse 282 to the hub 270. The hub 270 may encode the second HID descriptor into a USB signal, and transmit the USB signal to the host 100 through the transmission interfaces 250 and 150 (e.g., a USB interface or a USB Type-C interface). The host 100 may obtain the second HID descriptor after decoding the USB signal, and perform corresponding operations on the cursor of the operating system 142 according to the content of the second HID descriptor.
[0084] Figure 1C is a block diagram of a computer system according to another embodiment of the present invention.
[0085] Figure 1C is with Figure 1A Similar, the difference is that Figure 1C The hub 270 in the display device 200 further includes a mouse controller 271 and a microcontroller 276. The mouse controller 271 may be implemented, for example, by an embedded microcontroller or a mouse integrated circuit (IC) to provide a physical manufacturer identifier (vendor ID) and a product identifier (product ID) for identification by the host 100, and may declare the USB mice 281 and 282 connected to the hub 270 as human interface devices (HID). In some embodiments, the microcontroller 276 and the mouse controller 271 in the hub 270 are different physical components. In other embodiments, the functions of the mouse controller 271 may be integrated into the microcontroller 276, and the firmware executed by the microcontroller 276 includes the related functions of the mouse controller 271.
[0086] For the host 100, when the USB mouse 281 or 282 is connected to the display device 200, the operating system 142 can identify the USB human interface device announced by the mouse controller 271 through a USB channel (e.g., a data transmission channel). Even if the USB mice 281 and 282 are connected to the display device 200 at the same time, the operating system 142 will only identify the USB human interface device announced by the mouse controller 271. In addition, both the USB mice 281 and 282 control the cursors drawn by the operating system 142.
[0087] In this embodiment, the display controller 210 may transmit the modified HID descriptor (e.g., the second HID descriptor) of the USB mouse 282 to the hub 270. The hub 270 may encode the second HID descriptor into a USB signal, and transmit the USB signal to the host 100 through the transmission interfaces 250 and 150 (e.g., a USB interface or a USB Type-C interface). The host 100 may obtain the second HID descriptor after decoding the USB signal, and perform corresponding operations on the cursor of the operating system 142 according to the content of the second HID descriptor.
[0088] Figure 3 This is a flowchart of a method for synchronizing mouse sensitivity according to an embodiment of the present invention. Figure 1A and Figure 3 .
[0089] In step S310, a first USB mouse (e.g., USB mouse 281) is connected to the USB interface 251 of the display device 200, and the first sensitivity used by the first USB mouse is stored as the first sensitivity setting. For example, if the display device 200 and the first USB mouse are produced by the same manufacturer, the display controller 210 can learn the device ID of the first USB mouse and its corresponding first sensitivity from the USB signal reported by the first USB mouse, and automatically store the first sensitivity as the first sensitivity setting. If the display device 200 and the first USB mouse are produced by different manufacturers or the display controller 210 cannot learn the first sensitivity corresponding to the device ID of the first USB mouse from the USB signal reported by the first USB mouse, the display controller 210 cannot read the firmware-related settings of the first USB mouse, so the display device 200 can provide an OSD interface 232 for the user to set the first sensitivity of the first USB mouse and store it as the first sensitivity setting.
[0090] In step S320, when a second USB mouse (e.g., USB mouse 282) replaces the first USB mouse to connect to the USB interface 251 of the display device 200, the display controller 210 adjusts the first HID descriptor reported by the second USB mouse to the display controller 210 to generate a second HID descriptor, wherein the second sensitivity used by the second USB mouse is different from the first sensitivity used by the first USB mouse, and the second HID descriptor complies with the first sensitivity setting.
[0091] For example, the second sensitivity used by the second USB mouse may be higher or lower than the first sensitivity used by the first USB mouse. In addition, the second USB mouse may also be connected to the USB interface 252 of the display device 200. Similarly, if the display device 200 and the first USB mouse are from the same manufacturer, the display controller 210 may learn the device ID and the second sensitivity used by the second USB mouse from the USB signal reported by the second USB mouse. If the display device 200 and the second USB mouse are from different manufacturers, the display controller 210 cannot read the firmware-related settings of the second USB mouse, so the user may manually set the second sensitivity of the second USB mouse in the OSD interface 232 of the display device 200.
[0092] In addition, the display controller 210 may calculate a ratio N between the first sensitivity and the second sensitivity, and multiply the X-axis displacement and the Y-axis displacement in the first HID descriptor reported by the second USB mouse to the display controller 210 by the ratio N to obtain a second HID descriptor.
[0093] In step S330, the display controller 210 reports the second HID descriptor to the host 100 through the USB hub so that the host 100 controls the cursor of the operating system 142 according to the second HID descriptor. For example, because the X-axis displacement and the Y-axis displacement in the second HID descriptor have been adjusted to align with the X-axis displacement and the Y-axis displacement in the first sensitivity, for the host 100, the sensitivity used by the second USB mouse is the same as the first sensitivity used by the first USB mouse.
[0094] In summary, the present invention provides a display device and a mouse sensitivity synchronization method thereof, which can automatically synchronize the sensitivities of different mice connected to the display device, and the user does not need to change the sensitivity setting of the old mouse originally used to make the operation of a new mouse with different sensitivities on the host the same as the operation using the sensitivity setting of the old mouse, thereby enhancing the user experience.
[0095] The words “first”, “second”, “third”, etc. used in the claims are used to modify the elements in the claims. They are not used to indicate a priority order, a prior relationship, or that one element precedes another element, or a temporal sequence in performing method steps. They are only used to distinguish elements with the same name.
[0096] Although the present invention is disclosed as above by the embodiments, it is not intended to limit the scope of the present invention. Any technician in the relevant technical field can make some changes and modifications without departing from the concept and scope of the present invention. Therefore, the protection scope of the present invention shall be based on that defined by the claims.
Claims
1. A display device electrically connected to a host, It is characterized in that The host runs an operating system, and the display device includes: a display module; A display controller, used to control the display screen of the display module; a first USB interface electrically connected to the display controller, and a first USB mouse connected to the first USB interface, wherein the first USB mouse uses a first sensitivity; and a universal serial bus hub; wherein the display controller stores the first sensitivity used by the first USB mouse as a first sensitivity setting; When a second USB mouse replaces the first USB mouse to connect to the first USB interface or the second USB mouse is connected to the second USB interface of the display device, the display controller adjusts the first human interface device descriptor reported by the second USB mouse to the display controller to generate a second human interface device descriptor, wherein the second sensitivity used by the second USB mouse is different from the first sensitivity used by the first USB mouse, and the second sensitivity of the second USB mouse recorded in the second human interface device descriptor after adjustment conforms to the first sensitivity setting, The display controller reports the second human interface device descriptor to the host through the USB hub so that the host controls the cursor of the operating system according to the second human interface device descriptor.
2. The display device according to claim 1, It is characterized in that When the display device and the first USB mouse are produced by the same manufacturer, the display controller learns the first device identifier of the first USB mouse and its corresponding first sensitivity from the USB signal reported by the first USB mouse, and automatically stores the first sensitivity as the first sensitivity setting.
3. The display device according to claim 1, It is characterized in that When the display device and the first USB mouse are produced by different manufacturers or the display controller cannot learn the first sensitivity corresponding to the first device identifier of the first USB mouse from the USB signal reported by the first USB mouse, the display controller displays an on-screen display interface on the display module for setting the first sensitivity of the first USB mouse and storing it as the first sensitivity setting.
4. The display device according to claim 1, It is characterized in that The display controller calculates a ratio between the first sensitivity and the second sensitivity, and multiplies the X-axis displacement and the Y-axis displacement in the first human interface device descriptor reported by the second USB mouse to the display controller by the ratio to obtain the second human interface device descriptor.
5. The display device according to claim 1, It is characterized in that The display controller provides a manufacturer identifier and a product identifier for the host to identify, and declares the first USB mouse and the second USB mouse as a USB human interface device, and the display controller encodes the second human interface device descriptor into a USB signal and transmits the USB signal to the host through the USB hub, and the host decodes the USB signal to obtain the second human interface device descriptor, and controls the cursor of the operating system according to the second human interface device descriptor.
6. The display device according to claim 1, It is characterized in that The display device further includes: a mouse controller, and the mouse controller is disposed outside the universal serial bus hub, and the mouse controller provides a manufacturer identifier and a product identifier for the host to identify, and declares the first universal serial bus mouse and the second universal serial bus mouse as a universal serial bus human interface device, The USB hub encodes the second human interface device descriptor into a USB signal and transmits the USB signal to the host through the USB hub. The host decodes the USB signal to obtain the second human interface device descriptor and controls the cursor of the operating system according to the second human interface device descriptor.
7. The display device according to claim 1, It is characterized in that The universal serial bus hub also includes a mouse controller and a microcontroller, and the mouse controller provides a manufacturer identifier and a product identifier for the host to identify, and declares the first universal serial bus mouse and the second universal serial bus mouse as a universal serial bus human interface device, The microcontroller encodes the second human interface device descriptor into a universal serial bus signal and transmits the universal serial bus signal to the host through the universal serial bus hub. The host decodes the universal serial bus signal to obtain the second human interface device descriptor and controls the cursor of the operating system according to the second human interface device descriptor.
8. A mouse sensitivity synchronization method for a display device, It is characterized in that The display device includes a display module, a display controller, a first universal serial bus interface and a universal serial bus hub, wherein the display device is electrically connected to a host, the host runs an operating system, and the first universal serial bus interface is electrically connected to the display controller. The method includes: Connecting a first USB mouse to the first USB interface, wherein the first USB mouse uses a first sensitivity; When a second USB mouse replaces the first USB mouse to connect to the first USB interface or the second USB mouse is connected to the second USB interface of the display device, the display controller is used to adjust the first human interface device descriptor reported to the display controller by the second USB mouse to generate a second human interface device descriptor, wherein a second sensitivity used by the second USB mouse is different from the first sensitivity used by the first USB mouse, and the second sensitivity of the second USB mouse recorded in the second human interface device descriptor after adjustment conforms to the first sensitivity setting; and The display controller is used to report the second human interface device descriptor to the host through the universal serial bus hub so that the host can control the cursor of the operating system according to the second human interface device descriptor.
9. The mouse sensitivity synchronization method as claimed in claim 8, It is characterized in that The mouse sensitivity synchronization method further comprises: When the display device and the first USB mouse are produced by the same manufacturer, the display controller is used to obtain the first device identifier of the first USB mouse and its corresponding first sensitivity from the USB signal reported by the first USB mouse, and the first sensitivity is automatically stored as the first sensitivity setting.
10. The mouse sensitivity synchronization method according to claim 8, It is characterized in that The mouse sensitivity synchronization method further comprises: When the display device and the first USB mouse are produced by different manufacturers or the display controller cannot learn the first sensitivity corresponding to the first device identifier of the first USB mouse from the USB signal reported by the first USB mouse, the display controller is used to display an on-screen display interface on the display module for setting the first sensitivity of the first USB mouse and storing it as the first sensitivity setting.
11. The mouse sensitivity synchronization method according to claim 8, It is characterized in that The step of using the display controller to adjust the first human interface device descriptor reported by the second USB mouse to the display controller to generate a second human interface device descriptor comprises: A ratio of the first sensitivity to the second sensitivity is calculated, and the X-axis displacement and the Y-axis displacement in the first human interface device descriptor reported by the second USB mouse to the display controller are multiplied by the ratio to obtain the second human interface device descriptor.
12. The mouse sensitivity synchronization method according to claim 8, It is characterized in that The display controller provides a manufacturer identifier and a product identifier for the host to identify, and declares the first USB mouse and the second USB mouse as a USB human interface device. The step of using the display controller to report the second human interface device descriptor to the host through the universal serial bus hub so that the host can control the cursor of the operating system according to the second human interface device descriptor includes: encoding the second human interface device descriptor into a USB signal using the display controller and transmitting the USB signal to the host through the USB hub; Decoding the USB signal by the host to obtain the second human interface device descriptor; and The cursor of the operating system is controlled according to the second human interface device descriptor.
13. The mouse sensitivity synchronization method according to claim 8, It is characterized in that The display device further includes a mouse controller, and the mouse controller is disposed outside the universal serial bus hub, and the mouse controller provides a manufacturer identifier and a product identifier for the host to identify, and declares the first universal serial bus mouse and the second universal serial bus mouse as a universal serial bus human interface device, The step of using the display controller to report the second human interface device descriptor to the host through the universal serial bus hub so that the host can control the cursor of the operating system according to the second human interface device descriptor includes: encoding the second human interface device descriptor into a USB signal by the USB hub and transmitting the USB signal to the host through the USB hub; Decoding the USB signal by the host to obtain the second human interface device descriptor; and The cursor of the operating system is controlled according to the second human interface device descriptor.
14. The mouse sensitivity synchronization method according to claim 8, It is characterized in that The universal serial bus hub also includes a mouse controller and a microcontroller, and the mouse controller provides a manufacturer identifier and a product identifier for the host to identify, and declares the first universal serial bus mouse and the second universal serial bus mouse as a universal serial bus human interface device, The step of using the display controller to report the second human interface device descriptor to the host through the universal serial bus hub so that the host can control the cursor of the operating system according to the second human interface device descriptor includes: encoding the second human interface device descriptor into a USB signal by the microcontroller and transmitting the USB signal to the host through the USB hub; Decoding the USB signal by the host to obtain the second human interface device descriptor; and The cursor of the operating system is controlled according to the second human interface device descriptor.
Citation Information
Patent Citations
Architecture for Variable Pressure Mouse
US20140176441A1
Sensitivity adjustment for a pointing device
US20180024647A1