Display apparatus and display apparatus wake-up method
By reading the installation direction and magnetic induction intensity of the magnetic attraction component and calculating the reference value of magnetic induction intensity, the problem of low wake-up accuracy of Hall devices in different environments is solved, and high-accuracy wake-up of display devices in different environments is achieved.
Patent Information
- Application Number
- CN202210748731.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-06-28
AI Technical Summary
In existing technologies, Hall effect devices detect large differences in magnetic induction intensity under different environments, resulting in low wake-up accuracy of display devices.
By reading the installation direction and magnetic induction intensity of the magnetic component, a reference value for the magnetic induction intensity is calculated. Combined with the initial and changing states of the magnetic pen, it is determined whether to wake up the display device.
It improves the accuracy and flexibility of display device wake-up, adapts to changes in magnetic induction under different environments, and enhances wake-up accuracy.
Smart Images

Figure CN115167717B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and particularly relates to a display device and a display device wake-up method. BACKGROUND
[0002] With the efficient development of electronic communication technology, more and more display devices use handwriting screens, such as conference large panels, electronic drawing boards, mobile phones, tablet computers, televisions and the like. This makes the means of controlling the display device more and more convenient. The display device using the handwriting screen generally uses a matched magnetic pen for control. For example, a user can control the display device through the magnetic pen to realize writing text on the display device, flipping the display page and the like.
[0003] In some scenarios, when the display device is in sleep, that is, the screen is turned off, the display device can be woken up after the magnetic pen is determined to be removed from the display device. For example, the magnetic induction intensity between the magnetic pen and the display device is detected through a Hall device, and when the difference between the magnetic induction intensity and a magnetic induction intensity reference value is greater than a preset threshold, it is determined that the magnetic pen is removed from the display device, and the display device is woken up. The magnetic induction intensity reference value is a fixed value detected by the Hall device when the display device is powered on for the first time, and therefore the flexibility of the magnetic induction intensity reference value is poor.
[0004] However, the Hall device detects the magnetic induction intensity between the magnetic pen and the display device in different detection environments (such as different environments of temperature, humidity and the like), and the detected magnetic induction intensity has differences, which leads to the failure to determine that the magnetic pen is removed from the display device, and further leads to the failure of the display device to wake up. That is, because the flexibility of the magnetic induction intensity reference value is poor, the accuracy of waking up the display device is low. SUMMARY
[0005] Some embodiments of the present application provide a display device and a display device control method to avoid frequent switching of the display mode of the display device, improve the recognition accuracy of the display mode, and increase the accuracy of switching the display mode.
[0006] In the first aspect, some embodiments of the present application provide a display device, comprising:
[0007] a display;
[0008] a magnetic attraction assembly configured to fix a magnetic pen;
[0009] a Hall device configured to detect a magnetic induction intensity;
[0010] a controller configured to:
[0011] detect the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly through the Hall device when the display is in sleep;
[0012] reading an installation direction of the magnetic attraction assembly, determining an initial state of the magnetic pen according to the installation direction, the magnetic induction intensity and a magnetic induction intensity reference value, the magnetic induction intensity reference value being calculated when the magnetic pen is not placed on the display device, the installation direction being calculated according to the magnetic induction intensity of the magnetic attraction assembly;
[0013] when it is determined that the magnetic induction intensity changes in strength, detecting a current magnetic induction intensity, determining a change state of the magnetic pen according to the installation direction, the initial state, the current magnetic induction intensity and the magnetic induction intensity reference value;
[0014] if it is determined that the change state is different from the initial state, waking up the display, and if it is determined that the change state is the same as the initial state, not waking up the display.
[0015] In the second aspect, some embodiments of the present application further provide a display device wake-up method, which is applied to a display device.
[0016] The method comprises:
[0017] detecting a magnetic induction intensity between the magnetic pen and the magnetic attraction assembly by the Hall device when the display is in a sleep state;
[0018] reading an installation direction of the magnetic attraction assembly, determining an initial state of the magnetic pen according to the installation direction, the magnetic induction intensity and a magnetic induction intensity reference value, the magnetic induction intensity reference value being calculated when the magnetic pen is not placed on the display device, the installation direction being calculated according to the magnetic induction intensity of the magnetic attraction assembly;
[0019] when it is determined that the magnetic induction intensity changes in strength, detecting a current magnetic induction intensity, determining a change state of the magnetic pen according to the installation direction, the initial state, the current magnetic induction intensity and the magnetic induction intensity reference value;
[0020] if it is determined that the change state is different from the initial state, waking up the display, and if it is determined that the change state is the same as the initial state, not waking up the display.
[0021] According to the above technical solution, the magnetic induction intensity reference value is calculated according to the magnetic induction intensity when the display device is powered on, that is, the display device detects the magnetic induction intensity and then calculates the magnetic induction intensity reference value each time it is powered on, so that the magnetic induction intensity reference value is not a fixed value, and the flexibility of calculating the magnetic induction intensity reference value is increased.
[0022] The installation direction indicates the direction in which the magnetic attraction assembly is installed on the display device. Because the magnetic attraction assembly has an N pole and an S pole, the installation direction of the magnetic attraction assembly installed on the display device is different, which causes the magnetic field direction of the magnetic attraction assembly to be different relative to the geographical direction (such as east, south, west, and north). The magnetic induction intensity between the magnetic pen and the magnetic attraction assembly varies differently relative to the different magnetic field directions. Therefore, determining the initial state and the change state of the magnetic pen based on the installation direction can improve the accuracy of calculating the initial state and the change state of the magnetic pen, and further improve the accuracy of waking up the display.
[0023] When the display of the display device is in sleep, the initial state of the magnetic pen can exist in different scenarios, such as the initial state being that the magnetic pen is set on the display device, and the initial state being that the magnetic pen is not set on the display device. By comparing the initial state and the change state of the magnetic pen to determine whether to wake up the display, rather than waking up the display by setting a threshold, the comprehensiveness of the scenario when waking up the display is improved, and the accuracy of waking up the display is improved. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the present application, the drawings needed in the embodiments will be briefly introduced below. Obviously, other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0025] Figure 1 For the application scenarios of the display device in some embodiments of the present application;
[0026] Figure 2 For the configuration block diagram of the control device in some embodiments of the present application;
[0027] Figure 3 For the hardware configuration block diagram of the display device in some embodiments of the present application;
[0028] Figure 4 For the software configuration block diagram of the display device in some embodiments of the present application;
[0029] Figure 5 For the display device in some embodiments of the present application;
[0030] Figure 6 For the flowchart of the display device in some embodiments of the present application;
[0031] Figure 7 For the magnetic pen action in some embodiments of the present application;
[0032] Figure 8 For the magnetic pen action in some embodiments of the present application;
[0033] Figure 9 A flowchart of a process for determining an initial state of a magnetic pen in some embodiments of the present application is shown in FIG. 1.
[0034] Figure 10 A flowchart of a process for determining a changed state of a magnetic pen in some embodiments of the present application is shown in FIG. 2.
[0035] Figure 11 A flowchart of a process for resetting a Hall device in some embodiments of the present application is shown in FIG. 3. DETAILED DESCRIPTION
[0036] For the purpose of making the objects, embodiments and scope of the present application more clear, below, the exemplary embodiments of the present application will be described in detail with reference to the accompanying drawings. Obviously, the described exemplary embodiments are only a part of the embodiments of the present application, but not all embodiments of the present application.
[0037] It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the subsequently described embodiments, and is not intended to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.
[0038] The terms "first", "second", "third", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar or identical objects or entities, and do not necessarily mean a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchanged under appropriate circumstances.
[0039] The terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device including a series of components does not have to be limited to all components clearly listed, but can include other components not clearly listed or inherent to the product or device.
[0040] Figure 1 A schematic diagram of an application scenario according to some embodiments of the present application is shown in FIG. 4, which is intended to show a class of scenarios in which there are multiple display devices, and a server that can communicate with the display devices, and these display devices include but are not limited to devices with data transceiving and processing functions and image display functions and / or sound output functions. In Figure 1 In the shown scenario, there are a control device 100, a display device 200, a magnetic pen 300, and a server 400.
[0041] Based on the Internet of Everything technology, communication connections can be established between multiple devices in the above-mentioned scenario, such as communication between the control device 100 and the display device 200, so as to control the display device 200 to turn on, turn off, switch display pages, and the like through the control device 100.
[0042] The communication protocol for realizing the above-mentioned Internet of Everything can include a local area network protocol, a wide area network protocol, and a short-range wireless communication protocol not limited by a network. Among them, the local area network protocol includes but is not limited to an HSP communication protocol; the wide area network includes but is not limited to an Artificial Intelligence & Internet of Things (AIOT) protocol, and the short-range wireless communication protocol includes but is not limited to a Bluetooth transmission protocol and an infrared transmission protocol.
[0043] Based on the difference of the above-mentioned communication protocol types, the communication protocol channels of the display device can be divided into a local area network protocol channel based on a local area network, a wide area network protocol channel based on a wide area network, and other protocol channels. The other protocol channels include a Bluetooth protocol channel, an infrared protocol channel, and the like. The display device in the above-mentioned scenario can support one or more of the above-mentioned protocol channels.
[0044] The display device 200 can establish a communication connection with the server 400 to interact with the server 400, for example, to provide various content and interactive information to the display device 200. The display device can be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 can be a cluster or multiple clusters, and can include one or more types of servers.
[0045] It should be noted that, Figure 1 As shown in the same scenario, other display devices can also be included, such as but not limited to a touch-all-in-one device, a projection device, a tablet computer, a computer, and an external device such as a notebook computer.
[0046] In some embodiments, the control between different display devices can be realized through the control device 100. As Figure 1 As shown, the user can control or operate the display device 200 and the server 400 to communicate data through the control device 100.
[0047] In some embodiments, the control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods, to control the display device through wireless or wired methods. The user can input user instructions through buttons, voice input, control panel input, and the like on the remote controller to control the display device.
[0048] In some embodiments, the display device can also be controlled in a manner other than the control device 100, for example, the user's voice instruction control can be received directly through a voice instruction acquisition module configured inside the display device, or the user's voice instruction control can be received through a voice control device arranged outside the display device.
[0049] In some embodiments, the display device 200 can receive the instruction without using the above-mentioned smart device or control device, but through touch or gesture, etc.
[0050] In some embodiments, the magnetic pen 300 can be used as a control device to control the display device 200. For example, the user can perform display screen switching, writing, etc. on the display device through the magnetic pen 300. The magnetic pen 300 has two states relative to the display device, one is a placement state in which the magnetic pen is placed on the display device 200, and the other is a taking-off state in which the magnetic pen is not placed on the display device 200.
[0051] In some embodiments, when the display device 200 is in sleep state and the magnetic pen 300 is placed on the display device 200, if the magnetic pen 300 is taken off from the display device 200, the display device 200 is woken up.
[0052] Figure 2 An exemplary configuration block diagram of the control device 100 according to an exemplary embodiment is shown. As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, a power supply. The control device 100 can receive the user's input operation instruction, and convert the operation instruction into an instruction that the display device can recognize and respond to, playing a role of an intermediary between the user and the display device. Figure 2
[0053] In some embodiments, the display device 200 includes a controller, a memory, a communicator and a display. In some embodiments, the display device further includes at least one of a tuner, a detector, an external device interface, an audio output interface, a power supply, a user interface. Wherein, the controller includes but is not limited to a processor, a video processor, an audio processor, an image processor, a Read-Only Memory (ROM), a Random Access Memory (RAM), etc.
[0054] Figure 3 A hardware configuration block diagram of the display device according to an exemplary embodiment is shown.
[0055] In some embodiments, the display device 200 comprises at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, a user interface.
[0056] In some embodiments, the controller comprises a processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, a first interface to an n-th interface for input / output.
[0057] In some embodiments, the display 260 comprises a display screen component for presenting a picture, and a driving component for driving the image display, a component for receiving an image signal originated from the controller output, and a component for displaying video content, image content, and a menu operation interface, and a user operation UI interface.
[0058] In some embodiments, the display 260 can be a liquid crystal display, an OLED display, and a projection display, and can also be a projection device and a projection screen.
[0059] In some embodiments, the communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator 220 can comprise at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device can establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0060] In some embodiments, the external device interface 240 can comprise, but is not limited to, any one or more of a high-definition multimedia interface (HDMI), an analog or data high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, and the like. It can also be a composite input / output interface formed by a plurality of the above interfaces.
[0061] In some embodiments, the tuner and demodulator 210 receives broadcast television signals through wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
[0062] In some embodiments, the controller 250 and the tuner and demodulator 210 can be located in different split devices, i.e., the tuner and demodulator 210 can also be in an external device of the main body device where the controller 250 is located, such as an external set-top box, etc.
[0063] In some embodiments, the controller 250 controls the operation of the display device and the response to user operations by storing various software control programs in the memory. The controller 250 controls the overall operation of the display device. For example, in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.
[0064] In some embodiments, the object can be any one of selectable objects, such as a hyperlink, an icon, or other operable control. The operation related to the selected object can be an operation of displaying a page connected to a hyperlink, a document, an image, etc., or an operation of executing a program corresponding to the icon.
[0065] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM, a ROM, a first interface to an n-th interface for input / output, a communication bus, etc.
[0066] The CPU processor is configured to execute operating system and application program instructions stored in the memory, and to execute various application programs, data, and content according to various interaction instructions received from external input, so as to finally display and play various audio and video content. The CPU processor can include a plurality of processors. For example, the CPU processor can include a main processor and one or more sub-processors.
[0067] In some embodiments, the graphics processor is configured to generate various graphical objects, such as icons, operation menus, and user input instruction display graphics, etc. The graphics processor includes an operator configured to perform operations by receiving various interaction instructions from a user, and to display various objects according to display attributes; and a renderer configured to perform rendering on various objects obtained based on the operator, and the rendered objects are used for display on the display.
[0068] In some embodiments, the video processor is configured to receive external video signals, and to perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, image synthesis, etc. according to standard encoding and decoding protocols of the input signals, so as to obtain signals directly displayable on the display device.
[0069] In some embodiments, the video processor includes a demultiplexing module, a video decoding module, an image synthesizing module, a frame rate conversion module, a display formatting module, etc. The demultiplexing module is configured to perform demultiplexing processing on the input audio / video data stream. The video decoding module is configured to process the demultiplexed video signal, including decoding and scaling processing, etc. The image synthesizing module, such as an image synthesizer, is configured to superimpose and mix the GUI signal generated by the graphics generator according to the user input or itself with the scaled video image to generate an image signal for display. The frame rate conversion module is configured to convert the input video frame rate. The display formatting module is configured to change the signal of the output video signal after frame rate conversion to conform to the display format, such as an output RGB data signal.
[0070] In some embodiments, the audio processor is configured to receive external audio signals, perform decompression and decoding according to the standard codec protocol of the input signal, and perform noise reduction, digital-to-analog conversion, and amplification processing to obtain sound signals that can be played on a loudspeaker.
[0071] In some embodiments, the user can input a user command through a graphic user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphic user interface (GUI). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.
[0072] In some embodiments, the "user interface" is a medium interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of the user interface is a graphic user interface, which refers to a user interface related to computer operation displayed in a graphical manner. It can be an icon, window, control, etc. displayed on the display screen of an electronic device, wherein the control can include an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, etc. visual interface elements.
[0073] Referring to Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, the application layer (referred to as "application layer"), the application framework layer (referred to as "framework layer"), the Android runtime and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0074] In some embodiments, at least one application runs in the application layer. These applications may be Windows programs, system settings programs, or clock programs that come with the operating system; they may also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0075] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0076] like Figure 4 As shown, the application framework layer in this embodiment includes managers, content providers, and a view system. The managers include at least one of the following modules: an Activity Manager for interacting with all running activities in the system; a Location Manager for providing system services or applications with access to system location services; a Package Manager for retrieving various information related to application packages currently installed on the device; a Notification Manager for controlling the display and clearing of notification messages; and a Window Manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0077] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling display window changes (e.g., shrinking the display window, shaking the display, distorting the display, etc.).
[0078] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer, including databases (such as WEBKIT, OpenGL ES database, etc.) and virtual machines; when the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0079] In some embodiments, the kernel layer is a layer between hardware and software. As shown in Figure 4 The kernel layer at least includes at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power supply driver, etc.
[0080] In some embodiments, a user can input a user command through a graphical user interface (GUI) displayed on a display, and then the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, a user can input a user command by inputting a specific sound or gesture, and then the user input interface receives the user input command by recognizing the sound or gesture through a sensor. The user interface is an interface (such as a physical button on the body of the display device, or the like) that can be used to receive a control input.
[0081] In some embodiments, the "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes the conversion between the internal form of information and the form that the user can accept. The commonly used form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an icon, a window, a control, etc. displayed on the display screen of an electronic device, wherein the control can include an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a widget, etc. visual interface elements.
[0082] In some embodiments, when the system of the display device 200 is idle, the display device 200 will enter a sleep state; for example, when the system of the display device 200 is idle, the data corresponding to each task being run by the system, the data in the cache, and the data in the registers of the central processing unit are written into the memory, and the CPU and some devices are turned off, so that the display device 200 is in a low-power state, i.e., a sleep state.
[0083] In some embodiments, when the display device 200 is in a sleep state, a user can wake up the display device 200 and control the display device 200. For example, the user sends a wake-up instruction through a remote controller, and after the display device 200 receives the wake-up instruction, the display device 200 switches its sleep state to a wake-up state.
[0084] In some embodiments, the magnetic pen 300 is placed on the display device 200; wherein the magnetic pen 300 is used to interact with the electromagnetic component (such as the electromagnetic antenna plate) of the display device 200 through electromagnetic induction technology, so as to control the display device 200 (such as switching the display screen on the display device 200, writing text on the display device 200, depicting patterns, etc.). When the display device 200 is in a sleep state, if it is determined that the magnetic pen 300 is removed from the display device 200, the display device 200 will be woken up.
[0085] In some embodiments, when the display device 200 is in a sleep state, the display device 200 uses its own Hall device to detect the magnetic induction intensity between the magnetic pen 300 and the display device 200. When the difference between the magnetic induction intensity and the magnetic induction intensity reference value is greater than a preset threshold, it is determined that the magnetic pen is removed from the display device 200, and the display device 200 is woken up. The magnetic induction intensity reference value is the magnetic induction intensity detected by the Hall device when the display device 200 is powered on for the first time and the magnetic pen is not placed, which is a fixed value.
[0086] Figure 5 A schematic diagram of waking up a display device is exemplarily shown in some embodiments of the present application, as shown in Figure 5 The display device 200 is provided with a Hall device, and the magnetic pen is placed on the display device 200. Figure 5 In a, the magnetic pen is placed on the display device 200.
[0087] It is assumed that the display device 200 is in a sleep state, and the Hall device detects the magnetic induction intensity between the magnetic pen and the display device 200 in real time, and calculates the difference between the magnetic induction intensity and the magnetic induction intensity reference value. When the difference between the magnetic induction intensity and the magnetic induction intensity reference value is greater than a preset threshold, it indicates that the position between the magnetic pen and the display device 200 has changed. As shown in Figure 5 In b, the magnetic pen is removed from the display device 200 (such as the user removing the magnetic pen from the display device 200).
[0088] That is, when the display device 200 determines that the difference between the magnetic induction intensity and the magnetic induction intensity reference value is greater than a preset threshold, it is determined that the magnetic pen is removed from the display device 200, which indicates that the user will operate the display device 200 through the magnetic pen, so the display device 200 is woken up.
[0089] In the above method, the Hall device has a difference in the detected magnetic induction intensity between the magnetic pen and the display device 200 in different detection environments (such as different environments of magnetic field strength, magnetic field direction, temperature, humidity, etc.). For example, the detected magnetic induction intensity reference value is a1 in an environment with a detection temperature of 25°C, and the detected magnetic induction intensity reference value is a2 in an environment with a detection temperature of 0°C, where a1 is not equal to a2. Therefore, when the display device 200 is woken up in different environments, the difference between the magnetic induction intensity and the magnetic induction intensity reference value is inaccurate, which easily leads to the inability to determine whether the magnetic pen is removed from the display device 200, and thus the display device 200 cannot be woken up. As can be seen, the flexibility of the magnetic induction intensity reference value is poor, which leads to a low accuracy of waking up the display device 200.
[0090] In summary, in order to increase the flexibility of the magnetic induction intensity reference value and improve the accuracy of waking up the display device 200, in some embodiments, Figure 6 An exemplary flowchart of a display device waking up method is provided, as shown in Figure 6 The method can be applied to the display device 200 for performing the display device 200 waking up method. The method includes the following contents:
[0091] Step 610, reading the magnetic induction intensity.
[0092] In some embodiments, the display device 200 includes multiple states, such as a booting state, a shutdown state, a hibernation state (i.e., a state in which the display does not display a picture), a wake-up state (i.e., a state in which the display displays a picture), etc.
[0093] When the display is in hibernation, the display device 200 detects the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly through the Hall device; wherein the magnetic pen is used to interact with the electromagnetic assembly (such as an electromagnetic antenna plate) of the display device 200 through electromagnetic induction technology, thereby realizing the control of the display device 200 (such as switching the display picture on the display device 200, writing text or drawing patterns on the display device 200, etc.).
[0094] The magnetic attraction assembly is used to attract and fix the magnetic pen through the action of the magnetic field. For example, the magnetic attraction assembly is a magnet with N and S poles, and the magnetic pen has a magnet or a ferromagnetic substance (such as iron, nickel, etc.). Through the principle of opposite poles attract each other, the magnetic pen is attracted and fixed.
[0095] The Hall device is a solid-state electronic device that utilizes the Hall effect. It is used to detect the magnetic induction intensity. Figure 7 An exemplary structure diagram for detecting the magnetic induction intensity is shown in some embodiments of the present application, as shown in Figure 7As shown, the magnetic pen is placed above the magnetic attraction assembly; the magnetic attraction assembly attracts and fixes the magnetic pen, and is arranged above the Hall device; the Hall device is arranged below the magnetic attraction assembly, and is used for detecting the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly.
[0096] Step 620, reading the installation direction.
[0097] The installation direction refers to the direction in which the magnetic attraction assembly is installed on the display device, i.e., the direction of the magnetic field of the magnetic attraction assembly relative to the geographical direction (such as east, south, west and north). The magnetic field direction refers to the direction from the N pole to the S pole of the magnetic attraction assembly; therefore, the installation direction can be the direction from east to west, or the direction from south to north.
[0098] In some embodiments, the installation direction includes a first direction and a second direction; the first direction is the direction from south to north; and the second direction is the direction from north to south; that is, the N pole of the first direction is in the same direction as the S pole of the second direction, and the S pole of the first direction is in the same direction as the N pole of the second direction.
[0099] In some embodiments, because the magnetic induction intensity is a vector, it has direction information. Therefore, by calculating the highest bit value of the magnetic induction intensity of the magnetic attraction assembly, the installation direction of the magnetic attraction assembly is determined. For example, the magnetic induction intensity M0 is ANDed with "0x800" (i.e., M0&0x800) to obtain data M1, and M1 is binary data "100"; therefore, the highest bit is "1"; which indicates that the installation direction of the magnetic attraction assembly is the direction from north to south, i.e., the N pole of the magnetic attraction assembly is in the north direction, and the S pole is in the south direction. For another example, the magnetic induction intensity M0 is ANDed with "0x800" to obtain data M1, and M1 is binary data "010"; therefore, the highest bit is "0"; which indicates that the installation direction of the magnetic attraction assembly is the direction from south to north, i.e., the N pole of the magnetic attraction assembly is in the south direction, and the S pole is in the north direction.
[0100] In some embodiments, the magnetic induction intensity is ORed to obtain the magnetic induction intensity of a preset data length; for example, the magnetic induction intensity M0 is ORed with "0x8000" (i.e., M0|0x800) to obtain data M2, and M2 is 16-bit binary data "10***0". By changing the magnetic induction intensity into data of a preset data length, the universality of the data is improved. For example, the magnetic induction intensity is 12-bit data length, which is changed into 16-bit binary data by ORing with "0x8000".
[0101] In some embodiments, if the highest bit of M0 is "1", M0 is ORed with "0x8000" to obtain data M2, i.e. the highest bit of data M2 is "1"; if the highest bit of M0 is "0", M0 is ORed with "0x0000" to obtain data M3, i.e. the highest bit of data M3 is "0", so as to ensure the accuracy and consistency of the direction information described in the data.
[0102] Based on the above description, the magnetic induction intensity of the preset data length is read, if the highest bit value of the magnetic induction intensity of the preset data length is 0, it is determined that the installation direction is the first direction; if the highest bit value of the magnetic induction intensity of the preset data length is 1, it is determined that the installation direction is the second direction.
[0103] Step 630, determining the initial state.
[0104] In some embodiments, the display device 200 determines the initial state of the magnetic pen based on the installation direction read above, through the magnetic induction intensity state value and the second threshold value.
[0105] Wherein, the magnetic induction intensity state value is the difference between the magnetic induction intensity and the magnetic induction intensity reference value; the magnetic induction intensity reference value is calculated when the magnetic pen is not placed on the display device 200. For example, when the display device 200 is powered on, the magnetic pen is not placed on the display device 200, and then the magnetic induction intensity reference value is calculated.
[0106] In some embodiments, based on a preset time interval, the magnetic induction intensity corresponding to multiple time points of the magnetic attraction assembly is collected by the Hall device, and then the average value of the magnetic induction intensity corresponding to the multiple time points is taken as the magnetic induction intensity reference value. For example, the preset time interval is 10ms, and the magnetic induction intensities of 3 consecutive time points are collected, which are m1, m2 and m3.
[0107] In some embodiments, for the magnetic induction intensities of any two adjacent time intervals, the magnetic induction difference of the magnetic induction intensities of the two adjacent time intervals is calculated; if the magnetic induction difference is less than a first threshold value, the average value of the multiple magnetic induction intensities is calculated to obtain the magnetic induction intensity reference value.
[0108] Based on the above description, for the magnetic induction intensities of any two adjacent time intervals, such as m1 and m2, m2 and m3, if m2-m1<T1 and m3-m2<T1, the average value of the 3 magnetic induction intensities is calculated to obtain the magnetic induction intensity reference value. Wherein, T1 is the first threshold value, which can be a value preset according to experience, which is not limited here.
[0109] In some embodiments, the mean value of the plurality of magnetic induction strengths can be calculated to obtain the magnetic induction strength reference value when it is determined that the absolute value of the magnetic induction difference is less than the first threshold value. For example, if |m2-m1|<T1 and |m3-m2|<T1, the mean value of the three magnetic induction strengths is calculated The magnetic induction strength reference value B is obtained.
[0110] According to the above technical solution, the magnetic induction strength reference value is calculated when the magnetic pen is not placed on the display device 200, and is not a fixed value, thereby improving the flexibility of determining the magnetic induction strength reference value. Because the magnetic induction strength reference value is obtained based on the mean value of the magnetic induction strengths at a plurality of continuous time points, the accuracy of the magnetic induction strength reference value is improved, the accuracy of determining the initial state and the change state of the magnetic pen is improved, and the accuracy of waking up the display is improved.
[0111] In some embodiments, if the magnetic induction difference is greater than or equal to the first threshold value, the magnetic induction strength is re-detected until the magnetic induction difference is less than the first threshold value.
[0112] In some embodiments, if the number of re-detection is greater than a preset number threshold value, a preset reference value is taken as the magnetic induction strength reference value. The number threshold value is a value preset according to experience, such as 3, 4, etc., which is not limited herein. The preset reference value is a value set when the display device 200 is shipped.
[0113] When the display is in sleep, the display device 200 detects the magnetic induction strength between the magnetic pen and the magnetic attraction assembly through the Hall device, then calculates the difference between the magnetic induction strength M01 and the magnetic induction strength reference value B to obtain the magnetic induction strength state value R, i.e. R=M01-B.
[0114] In some embodiments, when the installation direction is the first direction, the closer the distance between the magnetic pen and the magnetic attraction assembly, the greater the magnetic induction strength between the magnetic pen and the magnetic attraction assembly. Therefore, the initial state of the magnetic pen is determined by comparing the magnetic induction strength state value with the second threshold value. If the magnetic induction strength state value is greater than the second threshold value (i.e. M01-B>T2), it is determined that the initial state of the magnetic pen is the removed state; wherein the removed state means that the magnetic pen is not placed on the display device 200; T2 is the second threshold value, which can be a value preset according to experience, which is not limited herein.
[0115] For example, when the display is in sleep, the magnetic induction strength between the magnetic pen and the magnetic attraction assembly is detected in real time through the Hall device. The closer the distance between the magnetic pen and the magnetic attraction assembly, the greater the magnetic induction strength (i.e. M01 is greater), until the magnetic pen is placed on the display device 200, and the magnetic induction strength state value is greater than the second threshold value.
[0116] Figure 7 A magnetic pen action schematic diagram is exemplarily shown in some embodiments of the present application, as shown inFigure 7 As shown, this represents the action of placing the magnetic pen on the magnetic component of the display device 200, which changes the pen's state from being removed to being placed. In other words, the magnetic induction intensity value will only exceed the second threshold when the pen changes from being removed to being placed, thus determining the initial state of the pen as being removed.
[0117] In some embodiments, if the magnetic induction intensity state value is less than the negative value of the second threshold (i.e., M01-B<-T2), the initial state of the magnetic pen is determined to be the placement state; the placement state means that the magnetic pen is placed on the display device 200.
[0118] For example, when the display is in sleep mode, the magnetic induction intensity between the magnetic pen and the magnetic component is detected in real time by the Hall effect device. The farther the magnetic pen is from the magnetic component, the smaller the magnetic induction intensity (i.e., the smaller M01) will be, until the magnetic pen is removed from the display device 200 and the magnetic induction intensity value is less than the second threshold.
[0119] Figure 8 This is a schematic diagram illustrating the action of a magnetic pen, as exemplarily shown in some embodiments of this application. Figure 8 As shown, this represents the action of removing the magnetic pen, that is, the action of taking the magnetic pen off the magnetic attachment component of the display device 200, which changes the magnetic pen from a placed state to a removed state. In other words, the magnetic induction intensity value will only be less than the second threshold when the magnetic pen changes from a placed state to a removed state, thus determining the initial state of the magnetic pen as a placed state.
[0120] In some embodiments, when the installation direction is the second direction, the closer the magnetic pen is to the magnetic suction component, the smaller the magnetic induction intensity between the magnetic pen and the magnetic suction component. Therefore, the initial state of the magnetic pen is determined by comparing the magnetic induction intensity state value with a second threshold. If the magnetic induction intensity state value is greater than the second threshold, the initial state of the magnetic pen is determined to be the placement state.
[0121] For example, when the display is in sleep mode, the magnetic induction intensity between the magnetic pen and the magnetic attachment component is detected in real time using a Hall effect device. The farther the magnetic pen is from the magnetic attachment component, the greater the magnetic induction intensity (i.e., the greater M01), until the magnetic pen is removed from the display device 200, at which point the magnetic induction intensity value exceeds a second threshold. As described above. Figure 8 As shown, during the process of removing the magnetic pen from the magnetic attachment component of the display device 200, the magnetic induction intensity value increases. When the magnetic induction intensity value is greater than a second threshold, it indicates that the magnetic pen's placement state has changed to a removal state, thus determining the initial state of the magnetic pen as a placement state.
[0122] In some embodiments, if the magnetic induction intensity state value is less than a negative value of the second threshold, the initial state of the magnetic pen is determined to be the removed state.
[0123] For example, when the display is in sleep mode, the magnetic induction strength between the magnetic pen and the magnetic attraction assembly is detected in real time by the Hall device. The closer the distance between the magnetic pen and the magnetic attraction assembly, the smaller the magnetic induction strength (i.e., M01 is smaller), until the magnetic pen is placed on the display device 200, and the magnetic induction strength state value is less than the second threshold value. As shown above Figure 7 As shown, the magnetic induction strength state value becomes smaller during the process of placing the magnetic pen on the magnetic attraction assembly of the display device 200. When the magnetic induction strength state value is less than the second threshold value, the removal state of the magnetic pen changes to the placement state, and the initial state of the magnetic pen is determined as the removal state.
[0124] In some embodiments, if the magnetic induction strength state value is less than or equal to the second threshold value, and the magnetic induction strength state value is greater than or equal to the negative value of the second threshold value, the magnetic induction strength is re-detected, and the magnetic induction strength state value is calculated. For example, -T2≤R≤T2, the magnetic induction strength is re-detected, the magnetic induction strength state value is calculated, and the initial state of the magnetic pen is determined.
[0125] In order to better illustrate the above technical solutions, Figure 9 A flowchart for determining the initial state of the magnetic pen is exemplarily shown in some embodiments of the present application; as Figure 9 As shown, the content is as follows:
[0126] Step 910, reading the magnetic induction strength and the installation direction.
[0127] The display device 200 detects the magnetic induction strength between the magnetic pen and the magnetic attraction assembly, and the installation direction of the magnetic attraction assembly by the Hall device.
[0128] When the installation direction is the first direction, the following steps 920 and 930 are performed.
[0129] Step 920, determining whether the magnetic induction strength state value is greater than the second threshold value; if the magnetic induction strength state value is greater than the second threshold value, the initial state of the magnetic pen is determined as the removal state. If the magnetic induction strength state value is less than or equal to the second threshold value, step 930 is performed.
[0130] Step 930, determining whether the magnetic induction strength state value is less than the negative value of the second threshold value; if the magnetic induction strength state value is less than the negative value of the second threshold value, the initial state of the magnetic pen is determined as the placement state. Otherwise, the magnetic induction strength is re-detected, and the magnetic induction strength state value is calculated.
[0131] When the installation direction is the second direction, the following steps 940 and 950 are performed.
[0132] Step 940, judging whether the magnetic induction intensity state value is greater than the second threshold value; if the magnetic induction intensity state value is greater than the second threshold value, the initial state of the magnetic pen is determined as the placing state. If the magnetic induction intensity state value is less than or equal to the second threshold value, step 950 is executed.
[0133] Step 950, judging whether the magnetic induction intensity state value is less than the negative of the second threshold value; if the magnetic induction intensity state value is less than the negative of the second threshold value, the initial state of the magnetic pen is determined as the taking-off state. Otherwise, the magnetic induction intensity is re-detected, and the magnetic induction intensity state value is calculated.
[0134] According to the above technical solution, the determination conditions of the initial state of the magnetic pen are different based on different installation directions, so as to increase the comprehensiveness and accuracy of determining the initial state of the magnetic pen, and further improve the accuracy of the display device 200 being woken up.
[0135] Step 640, determining the change state.
[0136] When it is determined that the magnetic induction intensity changes in strength, the current magnetic induction intensity is detected, and the change state of the magnetic pen is determined according to the installation direction, the initial state, the current magnetic induction intensity and the magnetic induction intensity reference value. When the magnetic induction intensity changes in strength, it means that the distance between the magnetic pen and the magnetic attraction assembly changes. For example, when the installation direction is the second direction, if the magnetic induction intensity becomes weaker, it means that the distance between the magnetic pen and the magnetic attraction assembly becomes smaller.
[0137] In some embodiments, the display device 200 detects a plurality of current magnetic induction intensities through the Hall device; for example, based on a preset interval of 2 ms, three current magnetic induction intensities k1, k2 and k3 are continuously detected.
[0138] Then, the difference between the plurality of current magnetic induction intensities and the magnetic induction intensity reference value is calculated; for example, the difference between k1, k2, k3 and the magnetic induction intensity reference value B is calculated respectively, and a plurality of magnetic induction intensity change values k`1, k`2 and k`3 are obtained.
[0139] In some embodiments, if it is judged that the plurality of magnetic induction intensity change values are all greater than the second threshold value or are all less than the negative of the second threshold value, the change state of the magnetic pen is determined according to the installation direction, the initial state and any magnetic induction intensity change value. For example, k1-B<-T2, k2-B<-T2, k3-B<-T2, it is judged that the plurality of magnetic induction intensity change values are all less than the negative of the second threshold value; and then the change state of the magnetic pen is determined according to any magnetic induction intensity change value.
[0140] In some embodiments, if the plurality of magnetic induction strength change values are not all greater than the second threshold value, or are not all less than the negative of the second threshold value, or any of the magnetic induction strength change values is less than or equal to the second threshold value and greater than or equal to the negative of the second threshold value, the current magnetic induction strength is re-detected and the magnetic induction strength change value is calculated. For example, k1-B<-T2, k2-B>T2, and -T2<k3-B<T2. Based on the preset interval, the three current magnetic induction strengths are re-detected, and the magnetic induction strength change values are calculated.
[0141] The display device 200 determines the change state of the magnetic pen based on the installation direction and the initial state after determining that the plurality of magnetic induction strength change values are all greater than the second threshold value or are all less than the negative of the second threshold value.
[0142] In some embodiments, when the installation direction is the first direction, the closer the distance between the magnetic pen and the magnetic attraction assembly, the greater the magnetic induction strength between the magnetic pen and the magnetic attraction assembly. If the initial state is the removed state and any of the magnetic induction strength change values is greater than the second threshold value, the change state of the magnetic pen is determined to be the placed state. For example, as shown in the above Figure 7 indicates that the removed state of the magnetic pen changes to the placed state, and the change state of the magnetic pen is determined to be the placed state. If the initial state is the removed state and any of the magnetic induction strength change values is not greater than the second threshold value, the change state of the magnetic pen is determined to be the initial state, i.e., the removed state.
[0143] When the installation direction is the first direction, the farther the distance between the magnetic pen and the magnetic attraction assembly, the smaller the magnetic induction strength between the magnetic pen and the magnetic attraction assembly. If the initial state is the placed state and any of the magnetic induction strength change values is less than the negative of the second threshold value, the change state of the magnetic pen is determined to be the removed state. For example, as shown in the above Figure 8 indicates that the placed state of the magnetic pen changes to the removed state, and the change state of the magnetic pen is determined to be the removed state. If the initial state is the placed state and any of the magnetic induction strength change values is not less than the negative of the second threshold value, the change state of the magnetic pen is determined to be the initial state, i.e., the placed state.
[0144] In some embodiments, when the installation direction is the second direction, the closer the distance between the magnetic pen and the magnetic attraction assembly, the smaller the magnetic induction strength between the magnetic pen and the magnetic attraction assembly. If the initial state is the removed state and any of the magnetic induction strength change values is less than the negative of the second threshold value, the change state of the magnetic pen is determined to be the placed state. For example, as shown in the above Figure 7As shown, the magnetic induction intensity change value becomes smaller during the process of the magnetic pen being placed on the display device 200, and is smaller than the negative value of the second threshold value. The state of the magnetic pen being taken off is changed to the state of being placed, and the change state of the magnetic pen is determined to be the state of being placed. If the initial state is the state of being taken off, and any magnetic induction intensity change value is not smaller than the negative value of the second threshold value, the change state of the magnetic pen is determined to be the initial state, i.e., the state of being taken off.
[0145] When the installation direction is the second direction, the farther the distance between the magnetic pen and the magnetic attraction assembly, the greater the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly. If the initial state is the state of being placed, and any magnetic induction intensity change value is greater than the second threshold value, the change state of the magnetic pen is determined to be the state of being taken off. For example, as shown above Figure 8 As shown, the magnetic induction intensity change value becomes larger during the process of the magnetic pen being taken off from the display device 200, and is greater than the second threshold value. The state of the magnetic pen being placed is changed to the state of being taken off, and the change state of the magnetic pen is determined to be the state of being taken off. If the initial state is the state of being placed, and any magnetic induction intensity change value is not greater than the second threshold value, the change state of the magnetic pen is determined to be the initial state, i.e., the state of being placed.
[0146] In order to better illustrate the above technical solutions, Figure 10 A flowchart for determining the change state of the magnetic pen is exemplarily shown in some embodiments of the present application; as shown in Figure 10 As shown, the content is as follows:
[0147] Step 1010, determining the current magnetic induction intensity.
[0148] When the display device 200 determines that the magnetic induction intensity changes in strength, it indicates that the distance between the magnetic pen and the magnetic attraction assembly changes; in other words, the relative position between the magnetic pen and the magnetic attraction assembly changes. Therefore, the change state of the magnetic pen is determined by the installation direction of the magnetic attraction assembly, the initial state of the magnetic pen, and any magnetic induction intensity change value. The any magnetic induction intensity change value is obtained by calculating the difference between any current magnetic induction intensity and the magnetic induction intensity reference value when the display device 200 determines that all the magnetic induction intensity change values are greater than the second threshold value or are smaller than the negative value of the second threshold value after detecting multiple current magnetic induction intensities. For example, k-B=H; wherein k represents the current magnetic induction intensity, B represents the magnetic induction intensity reference value, and H represents the magnetic induction intensity change value.
[0149] When the installation direction is the first direction and the initial state is the state of being placed, step 1020 is performed; when the installation direction is the first direction and the initial state is the state of being taken off, step 1030 is performed; when the installation direction is the second direction and the initial state is the state of being placed, step 1040 is performed; and when the installation direction is the second direction and the initial state is the state of being taken off, step 1050 is performed.
[0150] Step 1020, determining whether H is less than -T2. Because the installation direction is the first direction, the farther the magnetic pen is from the magnetic attraction assembly, the smaller the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly. If the initial state of the magnetic pen is the placed state, the magnetic induction intensity decreases during the process of taking the magnetic pen off the display device 200, resulting in a decrease in the induction intensity change value H, which is less than the magnetic induction intensity reference value B. Therefore, when the induction intensity change value H is determined to be less than the second threshold value -T2, it is determined that the magnetic pen is taken off the display device 200, and the change state of the magnetic pen is determined to be the placed state.
[0151] In some embodiments, due to environmental differences (such as environments with different temperatures, environments with different humidities, etc.), the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly changes, but the change value is relatively small. Therefore, the second threshold value is set to prevent the display device 200 from misjudging the change state of the magnetic pen due to environmental differences, thereby improving the accuracy of determining the change state of the magnetic pen.
[0152] Therefore, if the induction intensity change value H is not less than (greater than or equal to) the negative value -T2 of the second threshold value, it indicates that the magnetic pen is not taken off the display device 200 and is still in the placed state. Therefore, the change state of the magnetic pen is determined to be the initial state. That is, the relative position between the magnetic pen and the magnetic attraction assembly does not change, and the initial state (i.e., the placed state) is maintained.
[0153] Step 1030, determining whether H is greater than T2.
[0154] Because the installation direction is the first direction, the closer the magnetic pen is to the magnetic attraction assembly, the greater the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly. If the initial state of the magnetic pen is the taken-off state, the magnetic induction intensity increases during the process of placing the magnetic pen on the display device 200, resulting in an increase in the induction intensity change value H, which is greater than the magnetic induction intensity reference value B. Therefore, when the induction intensity change value H is determined to be greater than the second threshold value T2, it is determined that the magnetic pen is placed on the display device 200, and the change state of the magnetic pen is determined to be the placed state.
[0155] If the induction intensity change value H is not greater than (less than or equal to) the second threshold value T2, it indicates that the magnetic pen is not placed on the display device 200 and is still in the taken-off state. Therefore, the change state of the magnetic pen is determined to be the initial state (i.e., the taken-off state).
[0156] Step 1040, determining whether H is greater than T2.
[0157] Because the installation direction is the second direction, the farther the distance between the magnetic pen and the magnetic attraction assembly, the greater the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly. If the initial state of the magnetic pen is the placed state, the magnetic induction intensity is increasing during the process of taking the magnetic pen off the display device 200, resulting in that the induction intensity change value H is increasing and greater than the magnetic induction intensity reference value B. Therefore, when it is judged that the induction intensity change value H is greater than the second threshold value (T2), it is determined that the magnetic pen is taken off the display device 200, and the change state of the magnetic pen is determined as the taken-off state.
[0158] If the induction intensity change value H is not greater than the second threshold value (T2), it indicates that the magnetic pen is not taken off the display device 200 and is still in the placed state, and the change state of the magnetic pen is determined as the initial state (i.e., the placed state).
[0159] Step 1050, judge whether H is less than -T2.
[0160] Because the installation direction is the second direction, the closer the distance between the magnetic pen and the magnetic attraction assembly, the smaller the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly. If the initial state of the magnetic pen is the taken-off state, the magnetic induction intensity is decreasing during the process of placing the magnetic pen on the display device 200, resulting in that the induction intensity change value H is decreasing and less than the magnetic induction intensity reference value B. Therefore, when it is judged that the induction intensity change value H is less than the negative value (-T2) of the second threshold value, it is determined that the magnetic pen is placed on the display device 200, and the change state of the magnetic pen is determined as the placed state.
[0161] If the induction intensity change value H is not less than the negative value (-T2) of the second threshold value, it indicates that the magnetic pen is not placed on the display device 200 and is still in the taken-off state, and the change state of the magnetic pen is determined as the initial state (i.e., the taken-off state).
[0162] Based on the above technical solutions, it is known that the change law of the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly is different due to different installation directions of the magnetic attraction assembly. For different installation directions, the change state of the magnetic pen is determined based on the initial state of the magnetic pen and the second threshold value, and then it is determined whether the relative position between the magnetic pen and the magnetic attraction assembly has changed, thereby improving the accuracy of determining that the relative position between the magnetic pen and the magnetic attraction assembly has changed and improving the accuracy of waking up the display device 200.
[0163] Step 650, judge whether the initial state and the change state are consistent.
[0164] After the change state of the magnetic pen is determined, it is determined whether the display of the display device 200 needs to be woken up according to the initial state and the change state of the magnetic pen. If the initial state and the change state are consistent, the display is not woken up; if the initial state and the change state are inconsistent, the display is woken up.
[0165] In some embodiments, if the initial state is the placed state and the changed state is the removed state, the display of the display device 200 is woken up; if the initial state is the placed state and the changed state is the placed state, the display of the display device 200 is not woken up.
[0166] In some embodiments, if the initial state is the removed state and the changed state is the placed state, the display of the display device 200 is woken up; if the initial state is the removed state and the changed state is the removed state, the display of the display device 200 is not woken up.
[0167] In some embodiments, if the initial state is the removed state, the display of the display device 200 is not woken up no matter the changed state is the placed state or the removed state.
[0168] In some embodiments, there is a detection failure scenario when the Hall device detects the magnetic induction intensity between the magnetic pen and the magnetic suction assembly, that is, the display device 200 cannot detect the magnetic induction intensity between the magnetic pen and the magnetic suction assembly through the Hall device.
[0169] If the display device 200 does not read the magnetic induction intensity detected by the Hall device, a reset request is sent to the Hall device; wherein the reset request is used to instruct the Hall device to restart.
[0170] After receiving the reset request, the Hall device restarts in response to the reset request. Wherein, the restart includes software center start and hardware restart. After restarting again, if the Hall device can work normally (such as can detect the magnetic induction intensity between the magnetic pen and the magnetic suction assembly), the Hall device sends a response message to the display device 200.
[0171] After receiving the response message, the display device 200 detects the magnetic induction intensity between the magnetic pen and the magnetic suction assembly through the Hall device; if the response message is not received within a preset time period, the reset request is sent to the Hall device again.
[0172] Figure 11 A flowchart of a Hall device reset is exemplarily shown in some embodiments of the present application, as shown in FIG. 11, the content is as follows: Figure 11
[0173] Step 1110, read the I2C data of the Hall device.
[0174] Step 1120, judge whether the I2C communication is normal; if yes, the display device 200 and the Hall device are communicated through I2C; otherwise, step 1130 is executed.
[0175] In some embodiments, the display device 200 and the Hall device are communicated through I2C, and if the Hall device is abnormal, the communication through I2C is not possible.
[0176] Step 1130, software reset.
[0177] The display device 200 sends a software reset request to the Hall device; wherein the software reset request is used to instruct the Hall device to restart its software program.
[0178] Step 1140, determine whether the number of software resets is greater than a threshold number. If yes, execute step 1150, otherwise execute step 1120. The threshold number can be a value preset according to experience, such as 3, 4, etc., which is not limited here.
[0179] If the display device 200 does not receive a response message fed back by the Hall device based on the software reset request within a preset time period (such as 30s, etc.), the display device 200 sends a software reset request to the Hall device again and records the number of times the software reset request is sent.
[0180] Step 1150, hardware reset.
[0181] When the display device 200 determines that the number of times the software reset request is sent is not less than the threshold number, and does not receive a response message fed back by the Hall device based on the hardware reset request, the display device 200 sends a hardware reset request to the Hall device; wherein the hardware reset request is used to instruct the Hall device to restart.
[0182] Step 1160, determine whether the number of software resets is greater than a threshold number. If yes, execute step 1150, otherwise issue a device abnormality alarm. The threshold number can be a value preset according to experience, such as 3, 4, etc., which is not limited here.
[0183] If the display device 200 does not receive a response message fed back by the Hall device based on the hardware reset request within a preset time period (such as 30s, etc.), the display device 200 sends a hardware reset request to the Hall device again and records the number of times the hardware request is sent.
[0184] If the display device 200 determines that the number of times the hardware reset request is sent is not less than the threshold number, and does not receive a response message fed back by the Hall device based on the hardware reset request, the display device 200 issues a device abnormality alarm.
[0185] From the above technical solutions, it can be seen that the magnetic induction intensity reference value is calculated when the magnetic pen is not placed on the display device 200, and is not a fixed value, thereby improving the flexibility of determining the magnetic induction intensity reference value. Because the magnetic induction intensity reference value is obtained based on the average of the magnetic induction intensity at a plurality of continuous time points, the accuracy of calculating the magnetic induction intensity reference value is improved. Because the initial state and the change state of the magnetic pen are determined according to the magnetic induction intensity reference value, the accuracy of the initial state and the change state of the magnetic pen is improved.
[0186] The magnetic attraction assembly has N and S poles, and the installation direction of the magnetic attraction assembly of the display device 200 is different, which can cause the magnetic field direction of the magnetic attraction assembly to be different relative to the geographical direction (such as east, south, west, and north). Based on different installation directions, the determination conditions of the initial state of the magnetic pen are different, thereby increasing the comprehensiveness and accuracy of determining the initial state and the change state of the magnetic pen.
[0187] Due to environmental differences, the magnetic induction strength between the magnetic pen and the magnetic attraction assembly can change, but the change value is relatively small, so a second threshold is set to prevent the display device 200 from misjudging the change state of the magnetic pen due to environmental differences, thereby improving the accuracy of determining the change state of the magnetic pen.
[0188] When the display of the display device 200 is in sleep, the initial state of the magnetic pen can be in different states, and whether to wake up the display is determined by comparing the initial state and the change state of the magnetic pen, thereby improving the comprehensiveness and accuracy of waking up the display device 200.
[0189] The similar parts among the embodiments provided in the present application can be referred to each other, the specific implementation provided above is only several examples under the general concept of the present application, and does not constitute a limitation on the protection range of the present application. For those skilled in the art, any other implementation extended according to the present application scheme without creative labor belongs to the protection range of the present application.
Claims
1. A display device, characterized by comprising: The display device comprises: a display; a magnetic attraction assembly configured to fix a magnetic pen; a Hall device configured to detect a magnetic induction intensity; a controller configured to: detect the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly through the Hall device when the display is in a sleep state; read an installation direction of the magnetic attraction assembly, and determine an initial state of the magnetic pen according to the installation direction, the magnetic induction intensity and a magnetic induction intensity reference value; the magnetic induction intensity reference value is calculated when the magnetic pen is not placed on the display device; and the installation direction is calculated according to the magnetic induction intensity of the magnetic attraction assembly; detect a plurality of current magnetic induction intensities, and calculate a plurality of magnetic induction intensity change values; the magnetic induction intensity change value is a difference between a current magnetic induction intensity and a magnetic induction intensity reference value; if all the magnetic induction intensity change values are greater than a second threshold value or are less than a negative value of the second threshold value, determine a change state of the magnetic pen according to the installation direction, the initial state and any magnetic induction intensity change value; if all the magnetic induction intensity change values are not greater than the second threshold value or are not less than the negative value of the second threshold value, or any magnetic induction intensity change value is less than or equal to the second threshold value and greater than or equal to the negative value of the second threshold value, re-detect the current magnetic induction intensity, and calculate the magnetic induction intensity change value; if it is judged that the change state is different from the initial state, wake up the display; and if it is judged that the change state is the same as the initial state, do not wake up the display.
2. The display device of claim 1, wherein, The controller is configured to calculate the magnetic induction intensity reference value when the magnetic pen is not placed on the display device, and specifically comprises: collect, through the Hall device, the magnetic induction intensity of the magnetic attraction assembly at a plurality of time points based on a preset time interval when the magnetic pen is not placed on the display device; calculate a magnetic induction difference value of the magnetic induction intensity of any two adjacent time intervals; if the magnetic induction difference value is less than a first threshold value, calculate a mean value of the plurality of magnetic induction intensities to obtain the magnetic induction intensity reference value; if the magnetic induction difference value is greater than or equal to the first threshold value, re-detect the magnetic induction intensity until the magnetic induction difference value is less than the first threshold value.
3. The display device of claim 1, wherein, The installation direction comprises a first direction and a second direction; and the controller is configured to calculate the installation direction according to the magnetic induction intensity of the magnetic attraction assembly, and specifically comprises: detect the magnetic induction intensity of the magnetic attraction assembly through the Hall device; calculate a highest bit value of the magnetic induction intensity; perform an OR operation on the magnetic induction intensity to obtain a magnetic induction intensity of a preset data length; the magnetic induction intensity of the preset data length is binary data; if the highest bit value of the magnetic induction intensity of the preset data length is 0, determine that the installation direction is the first direction; and if the highest bit value of the magnetic induction intensity of the preset data length is 1, determine that the installation direction is the second direction; the N-pole of the first direction is in the same direction as the S-pole of the second direction.
4. The display device of claim 1, wherein, The controller is configured to determine the initial state of the magnetic pen according to the installation direction, the magnetic induction intensity and the magnetic induction intensity reference value, and specifically comprises: calculating a difference between the magnetic induction intensity and the magnetic induction intensity reference value to obtain a magnetic induction intensity state value; determining an initial state of the magnetic pen based on the installation direction, the magnetic induction intensity state value and a second threshold value.
5. The display device of claim 4, wherein, The controller is specifically configured to determine an initial state of the magnetic pen based on the installation direction, the magnetic induction intensity state value and a second threshold value, and specifically configured to: when the installation direction is a first direction, if the magnetic induction intensity state value is greater than the second threshold value, it is determined that the initial state of the magnetic pen is a removed state; the removed state indicates that the magnetic pen is not placed on the display device; if the magnetic induction intensity state value is less than a negative value of the second threshold value, it is determined that the initial state of the magnetic pen is a placed state; the placed state indicates that the magnetic pen is placed on the display device; when the installation direction is a second direction, if the magnetic induction intensity state value is greater than the second threshold value, it is determined that the initial state of the magnetic pen is the placed state; if the magnetic induction intensity state value is less than a negative value of the second threshold value, it is determined that the initial state of the magnetic pen is the removed state; if the magnetic induction intensity state value is less than or equal to the second threshold value and greater than or equal to a negative value of the second threshold value, the magnetic induction intensity is re-detected, and the magnetic induction intensity state value is calculated.
6. The display device of claim 1, wherein, The controller is specifically configured to determine a change state of the magnetic pen based on the installation direction, the initial state and any magnetic induction intensity change value, and specifically configured to: when the installation direction is the first direction, if the initial state is the removed state and any magnetic induction intensity change value is greater than the second threshold value, it is determined that the change state of the magnetic pen is the placed state; if the initial state is the placed state and any magnetic induction intensity change value is less than a negative value of the second threshold value, it is determined that the change state of the magnetic pen is the removed state; when the installation direction is the second direction, if the initial state is the placed state and any magnetic induction intensity change value is greater than the second threshold value, it is determined that the change state of the magnetic pen is the removed state; if the initial state is the removed state and any magnetic induction intensity change value is less than a negative value of the second threshold value, it is determined that the change state of the magnetic pen is the placed state.
7. The display device of claim 1, wherein, The controller is specifically configured to wake up the display based on the change state and the initial state, and specifically configured to: when the initial state is the placed state, if the change state is the removed state, the display is woken up; if the change state is the placed state, the display is not woken up; when the initial state is the removed state, if the change state is the placed state, the display is woken up; if the change state is the removed state, the display is not woken up.
8. The display device of claim 1, wherein, The controller is further configured to: when the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly cannot be detected by the Hall device, a reset request is sent to the Hall device; the reset request is used to instruct the Hall device to restart; if a response message fed back by the Hall device is received, the magnetic induction intensity between the magnetic pen and the magnetic attraction assembly is detected by the Hall device. If no response message is received from the Hall device, a reset request is sent to the Hall device again. 9.A method for waking up a display device, the method comprising: The method is applied to a display device; The method comprises: When the display is in sleep mode, a Hall device detects the magnetic induction intensity between a magnetic pen and a magnetic attraction assembly; A mounting direction of the magnetic attraction assembly is read, and an initial state of the magnetic pen is determined according to the mounting direction, the magnetic induction intensity and a magnetic induction intensity reference value; the magnetic induction intensity reference value is calculated when the magnetic pen is not placed on the display device; the mounting direction is calculated according to the magnetic induction intensity of the magnetic attraction assembly; A plurality of current magnetic induction intensities are detected, and a plurality of magnetic induction intensity change values are calculated; the magnetic induction intensity change value is the difference between the current magnetic induction intensity and the magnetic induction intensity reference value; If all the magnetic induction intensity change values are greater than a second threshold value or are less than the negative of the second threshold value, a change state of the magnetic pen is determined according to the mounting direction, the initial state and any magnetic induction intensity change value; If all the magnetic induction intensity change values are not greater than the second threshold value or are not less than the negative of the second threshold value, or any magnetic induction intensity change value is less than or equal to the second threshold value and is greater than or equal to the negative of the second threshold value, the current magnetic induction intensity is detected again, and the magnetic induction intensity change value is calculated; If it is determined that the change state is different from the initial state, the display is woken up; if it is determined that the change state is the same as the initial state, the display is not woken up.
Citation Information
Patent Citations
Display equipment and control method of display equipment
CN113630569A