Screen display self-adaptive overturning method and system for auxiliary screen and electronic equipment
The secondary screen rotation angle is detected by sensors and microcontroller, the protocol key value is generated and sent to the system application through the I2C interface, which solves the problems of secondary screen rotation status detection and cross-platform compatibility, realizes the automatic flip function, and improves the user experience and The equipment is intelligent and reduces maintenance costs.
Patent Information
- Application Number
- CN202411361658.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-14
AI Technical Summary
The prior art cannot automatically detect and respond to the rotation status of the secondary screen, resulting in the display content that does not match the user's perspective, increasing user operation complexity, and lacking cross-platform compatibility, limiting the application scope and market potential of secondary screen devices.
Through the synergy between sensors, microcontrollers and screen flip programs, accurate detection and rapid response to the rotation angle of the secondary screen is achieved, and the protocol key value is sent to the system application using the I2C interface, and corresponding instructions are called according to the operating system category to perform screen flip actions to ensure that Implementation of automatic flip function.
It realizes automatic adjustment of display direction, simplifies user operations, improves the intelligence level and response speed of electronic devices, enhances system compatibility, reduces maintenance costs, and expands applicability.
Smart Images

Figure CN119311624A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and for example, to a method and system for adaptively flipping screen display of a secondary screen, and an electronic device. Background Art
[0002] With the popularity of multi-screen devices and rotatable screens, the secondary screen has become an important component in many high-end devices and professional applications. However, the problem of inconsistent display direction of the secondary screen has seriously restricted the application effect and user experience of these devices.
[0003] In traditional devices, when the secondary screen rotates, the system cannot automatically detect its rotation status, which often causes the displayed content to not match the user's viewing angle, requiring the user to manually adjust it. This not only increases the complexity of user operations, but also seriously affects the user experience, especially in scenarios where the secondary screen needs to be rotated frequently.
[0004] Specifically, when the user rotates the secondary screen to adapt to different viewing needs or application scenarios, the screen content does not automatically adjust, resulting in the wrong display direction. The user must manually trigger the screen flip function to correct this problem. This happens mainly because the system lacks an effective mechanism to detect and respond to the rotation of the secondary screen in real time.
[0005] In addition, existing secondary screen rotation technologies generally lack adaptability to different operating systems. This means that when users switch between different operating systems (such as Windows, macOS, Linux, Android, etc.) or use cross-platform devices, the secondary screen rotation function may not work properly or require users to perform complex settings and adjustments.
[0006] Specifically, due to differences in the support and implementation of screen rotation in different operating systems, existing secondary screen rotation technologies can often only be optimized for a specific system or platform, and cannot achieve seamless compatibility across platforms. For example, some secondary screen rotation solutions that perform well on Windows systems may experience inaccurate recognition, slow response, or even complete failure when switching to macOS or Linux systems. This not only increases the user's usage cost and learning burden when switching between different systems, but also limits the application scope and market potential of secondary screen devices.
[0007] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0008] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0009] The disclosed embodiments provide a method and system for adaptively flipping the screen display of a secondary screen, and an electronic device, which can achieve accurate detection and rapid response to the rotation angle of the secondary screen through the coordinated action of sensors, a single-chip microcomputer and a screen flipping program, thereby completely solving the drawback of traditional technologies that require users to manually flip the secondary screen, and bringing users a more convenient, efficient and comfortable user experience.
[0010] In some embodiments, the method comprises:
[0011] 1) Initialize the MCU and Sensor chip to establish a communication connection;
[0012] 2) The MCU continuously receives the rotation angle data transmitted by the Sensor chip;
[0013] 3) The microcontroller processes, calibrates and flips the received data;
[0014] 4) Generate a protocol key value based on the judgment result and send it to the system application through the I2C interface;
[0015] 5) The system application receives the protocol key value and calls the corresponding instruction according to the operating system category to perform the screen display flipping action.
[0016] Optionally, the system application implements screen flipping by calling an API provided by the operating system or executing a specific command according to the received protocol key value.
[0017] Optionally, in Windows series systems, screen flipping can be achieved by calling the system's built-in screen rotation shortcut keys; and / or, in Kylin systems, screen flipping can be achieved by calling Xrander's instructions.
[0018] Optionally, during data processing, the single chip microcomputer includes steps of filtering, denoising and calibrating the data to improve the accuracy of the flip judgment.
[0019] Optionally, the system application determines whether data sent by the microcontroller is received through interruption or polling.
[0020] In some embodiments, the screen display adaptive flipping system for the secondary screen includes:
[0021] Sensor, used to monitor the screen rotation angle in real time;
[0022] The single chip microcomputer is connected to the sensor through a communication interface, and is used to receive, process, and calibrate the rotation angle data, and determine whether the screen needs to be flipped;
[0023] The system application communicates with the MCU to receive the protocol key value sent by the MCU and perform the screen flipping action.
[0024] Optionally, the communication interface is an I2C interface.
[0025] In some embodiments, the electronic device includes the aforementioned screen display adaptive flipping system for the secondary screen, and a screen connected thereto, and the screen can be automatically flipped according to the protocol key value of the system application.
[0026] The screen display adaptive flipping method and system for the secondary screen, and the electronic device provided by the embodiments of the present disclosure can achieve the following technical effects:
[0027] 1. Improve user experience: The display direction can be automatically adjusted according to the screen rotation angle without manual intervention by the user, which simplifies the operation process and improves user convenience.
[0028] 2. Enhance system intelligence: By integrating hardware and software technologies, the screen can be automatically flipped, which improves the intelligence level of electronic devices and makes them more in line with user habits and needs.
[0029] 3. Improve response speed: Utilize the high-speed processing capability of the microcontroller and the fast data transmission characteristics of the I2C channel to ensure real-time response of screen rotation and reduce delays.
[0030] 4. Enhance system compatibility: The design takes into account the compatibility of different operating systems. By sending protocol key values, applications under the system can take corresponding screen flipping measures according to different operating systems.
[0031] 5. Reduce maintenance costs: The implementation of the automatic flip function reduces equipment damage and failure rate caused by user misoperation, thereby reducing equipment maintenance costs.
[0032] 6. Wide applicability: The present invention is not only applicable to portable electronic devices, such as mobile phones, tablet computers, etc., but can also be applied to various display devices that require screen rotation functions, and has wide applicability.
[0033] 7. The hardware and software designs of the present invention have good modularity and scalability, which facilitates functional expansion and performance upgrades according to actual needs to adapt to future technological development trends and changes in user needs.
[0034] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0036] Figure 1 It is a flowchart of the screen display adaptive flipping method for the secondary screen disclosed in the present invention. DETAILED DESCRIPTION
[0037] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0038] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0039] Unless otherwise stated, the term "plurality" means two or more.
[0040] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0041] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0042] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0043] Combination Figure 1 The screen display adaptive flipping system for the secondary screen includes a sensor, a single-chip microcomputer and a system application.
[0044] The sensor is used to monitor the screen rotation angle in real time;
[0045] The microcontroller and the sensor are connected via an I2C interface to receive, process, and calibrate the rotation angle data, and determine whether the screen needs to be flipped;
[0046] The system application communicates with the microcontroller to receive the protocol key value sent by the microcontroller and perform the screen flipping action.
[0047] It is understandable that the hardware design of the present disclosure selects suitable single-chip microcomputer chips and sensor chips (sensors) as core components. The single-chip microcomputer is responsible for data processing and communication control, and the sensor chip is used to detect the rotation angle of the screen. The sensor chip is connected to the single-chip microcomputer through the I2C interface to realize real-time data transmission. At the same time, the necessary data acquisition channels and transmission channels are designed to ensure the accuracy and stability of the data.
[0048] In terms of software algorithms: Write a microcontroller program to realize data reception, processing, calibration and flip judgment. The program first receives the rotation angle data transmitted by the sensor chip, and then performs data analysis and calibration to eliminate errors. Finally, it determines whether the screen needs to be flipped based on the calibrated data and generates the corresponding protocol key value.
[0049] In terms of system integration: hardware and software are combined to form a complete automatic screen flip control system. After the system is started, the microcontroller continuously monitors the data of the sensor chip. Once it detects that the screen rotation angle reaches the preset threshold, it automatically triggers the flip action. At the same time, the system supports multiple operating system platforms and realizes screen flipping by calling the corresponding system API or executing specific commands.
[0050] like Figure 1 As shown, the method when using the above system includes:
[0051] 1) Initialize the MCU and Sensor chip to establish a communication connection.
[0052] 2) The microcontroller continuously receives the rotation angle data transmitted by the Sensor chip.
[0053] 3) The microcontroller processes, calibrates and flips the received data.
[0054] 4) Generate a protocol key value based on the judgment result and send it to the system application through the I2C interface.
[0055] 5) The system application receives the protocol key value and calls the corresponding instruction according to the operating system category to perform the screen display flipping action.
[0056] It can be understood that the present invention monitors the screen rotation angle in real time through the sensor set on the secondary screen, and transmits the rotation angle data detected by the sensor to the single-chip microcomputer through the communication interface; after receiving the data, the single-chip microcomputer processes and calibrates it, and determines whether the screen needs to be flipped; if the judgment result is that flipping is required, the single-chip microcomputer generates a protocol key value and sends it to the system application through the communication interface; after receiving the protocol key value, the system application calls the corresponding instruction according to the operating system category to execute the screen flipping action.
[0057] The system application determines whether the data sent by the single chip microcomputer is received by interruption or polling. The single chip microcomputer includes steps of filtering, denoising and calibrating the data during data processing to improve the accuracy of flip judgment.
[0058] In addition, the system application takes different necessary processing according to the received protocol key value and different systems. Specifically, the screen flipping can be realized by calling the API provided by the operating system or executing a specific command. For example, in Windows series systems, the screen flipping is realized by calling the system's built-in screen rotation shortcut key; in systems such as Kylin, the screen flipping is realized by calling Xrander's instructions.
[0059] An embodiment of the present disclosure provides an electronic device, including the aforementioned screen display adaptive flipping system for a secondary screen, and a screen connected thereto, wherein the screen can be automatically flipped according to the protocol key value of the system application.
[0060] The present invention includes three parts: hardware design, software algorithm and system integration. The hardware part is responsible for data collection and transmission; the software algorithm part is responsible for data processing and flip judgment; the system integration part is responsible for combining software and hardware to realize full-automatic screen flip control.
[0061] The present invention automatically detects the screen rotation state and triggers the flipping operation through the coordinated work of the sensor, the single-chip microcomputer and the screen flipping program, thereby improving the user experience and reducing the user operation burden.
[0062] The above description and accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the scope of protection. As used in the description in the text, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0063] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0064] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
Claims
1. A screen display adaptive flipping method for a secondary screen, characterized in that: include: 1) Initialize the MCU and Sensor chip to establish a communication connection; 2) The MCU continuously receives the rotation angle data transmitted by the Sensor chip; 3) The microcontroller processes, calibrates and flips the received data; 4) Generate a protocol key value based on the judgment result and send it to the system application through the I2C interface; 5) The system application receives the protocol key value and calls the corresponding instruction according to the operating system category to perform the screen display flipping action.
2. The method according to claim 1, characterized in that The system application implements screen flipping by calling an API provided by the operating system or executing a specific command according to the received protocol key value.
3. The method according to claim 2, characterized in that In Windows systems, the screen can be flipped by calling the built-in screen rotation shortcut keys in the system; and / or, In the Kylin system, screen flipping is achieved by calling Xrander's instructions.
4. The method according to claim 1, characterized in that: The single chip microcomputer includes the steps of filtering, denoising and calibrating the data during data processing to improve the accuracy of flip judgment.
5. The method according to any one of claims 1 to 4, characterized in that: The system application determines whether the data sent by the microcontroller is received through interruption or polling.
6. A screen display adaptive flipping system for a secondary screen, characterized in that: include: Sensor, used to monitor the screen rotation angle in real time; The single chip microcomputer is connected to the sensor through a communication interface, and is used to receive, process, and calibrate the rotation angle data, and determine whether the screen needs to be flipped; The system application communicates with the MCU to receive the protocol key value sent by the MCU and perform the screen flipping action.
7. The screen display adaptive flipping system according to claim 6, characterized in that: The communication interface is an I2C interface.
8. An electronic device, characterized in that It comprises a screen display adaptive flipping system for a secondary screen as described in claim 6 or 7, and a screen connected thereto, wherein the screen can be automatically flipped according to the protocol key value of the system application.