Offline display control method, U disk, display device, medium and program product
By clearing the cache, terminating the transfer, and stopping the display when the USB flash drive is unplugged, the problem of data leakage when the USB flash drive is unplugged in the prior art is solved, and data security protection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAN NOVASTAR TECH
- Filing Date
- 2024-12-05
- Publication Date
- 2026-06-05
AI Technical Summary
Existing offline display control methods lack security protection when the USB drive is unplugged, posing a risk of data leakage and compromising security.
When the USB flash drive connection status detection module detects a disconnection, the content flow control module clears the cache and terminates the transmission, the display control module stops the display, and the power management module turns off the screen power, thus achieving physical isolation to prevent data leakage.
By physically isolating the USB drive, the cache is cleared, the transfer is terminated, and the display is stopped when the USB drive is unplugged, thus ensuring data security and preventing data leakage.
Smart Images

Figure CN122153983A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to an offline display control method, a USB flash drive, a display device, a medium, and a program product. Background Technology
[0002] With advancements in information display technology, display devices are widely used in secure and confidential fields such as financial trading halls, which places higher demands on the security and tamper-proofing of displayed content. Currently, there is a method for offline control of display devices, which to some extent prevents data leakage or tampering during cloud storage and network transmission. Specifically, the content is pre-loaded onto a separate storage medium (such as a USB flash drive) and then connected to the display screen via a physical interface to directly transmit the content. However, this offline control method lacks security protection; even if the USB flash drive is unplugged, the data is still at risk of leakage, and security cannot be guaranteed. Summary of the Invention
[0003] To address, or at least partially address, the aforementioned technical problems, this application provides an offline display control method, a USB flash drive, a display device, a medium, and a program product. This method can clear the cache, terminate transmission and display, and turn off the screen when the USB flash drive is unplugged, thereby preventing data leakage and ensuring data security through physical isolation.
[0004] To achieve the above objectives, the technical solutions provided in this application are as follows:
[0005] In a first aspect, this application provides an offline display control method applied to a display device. The display device includes a peripheral status detection module for detecting the connection status of a USB flash drive, a content flow control module for transmitting USB flash drive content data, a display control module for controlling the screen display, and a power management module for controlling the screen power.
[0006] The method includes: when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive; the display control module terminates the display of the content data of the connected USB flash drive and sends a power-down command to the power management module to turn off the screen power.
[0007] The method provided in this application, when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive, the display control module stops displaying the content data of the connected USB flash drive, and sends a power-off command to the staff management module to turn off the screen power. Thus, this application clears the cache, terminates transmission and display, and turns off the screen when the USB flash drive is unplugged, thereby preventing data leakage and ensuring data security through physical isolation.
[0008] As an optional implementation in this application embodiment, when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive. This includes: when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, it detects whether the connected USB flash drive was normally unloaded or forcibly removed; if the connected USB flash drive was forcibly removed, the peripheral device status detection module sends an abnormal disconnection signal to the content flow control module and the display control module; in response to the abnormal disconnection signal, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive to the display control module.
[0009] The above optional implementation involves the peripheral device status detection module directly and simultaneously sending an abnormal disconnection signal to the content flow control module and the display control module when the connected USB flash drive is forcibly unplugged and disconnected from the display device. This enables the content flow control module and the display control module to react quickly, terminate the transmission and display of the content data of the connected USB flash drive, and quickly turn off the screen to protect the data, thus preventing data leakage through physical isolation.
[0010] As an optional implementation in this application embodiment, when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, after detecting whether the connected USB flash drive was normally unloaded or forcibly removed, the method further includes: if the connected USB flash drive was normally unloaded, the peripheral device status detection module sends a lock command to the content flow control module; in response to the lock command, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive to the display control module, sends a stop command to the display control module, so that the display control module terminates the display of the content data of the connected USB flash drive in response to the stop command, and sends a power-down command to the power management module to turn off the screen power.
[0011] The above optional implementation method, in the scenario of normally unloading a connected USB flash drive, compared to forcibly unplugging the USB flash drive, allows the various modules inside the display device to execute sequentially, locking the content data from being transmitted, stopping the display of content data, and thus turning off the screen. This is suitable for normal unloading scenarios and avoids task conflicts.
[0012] As an optional implementation in this application, detecting whether the connected USB flash drive is normally unloaded or forcibly removed includes detecting at least one of the following to determine whether the connected USB flash drive is normally unloaded or forcibly removed: whether the operating system of the display device issues an operation command to safely remove hardware; whether the interface voltage of the connected USB flash drive changes abruptly; and whether the heartbeat data transmission corresponding to the connected USB flash drive is interrupted.
[0013] As an optional implementation in this application embodiment, the display device further includes an identity verification module for authenticating the connected USB flash drive. The method further includes: when the peripheral device status detection module detects that the connection status of the connected USB flash drive indicates that the connection is normal, it sends the digital signature of the connected USB flash drive to the identity verification module; the identity verification module verifies the legality of the digital signature based on an asymmetric encryption algorithm, and if the digital signature is legal, it sends a temporary session key to the content flow control module; the content flow control module uses the temporary session key to decrypt the content data of the connected USB flash drive and sends the decrypted content to the display control module; the display control module controls the screen to display the decrypted content.
[0014] As an optional implementation in this application, the method further includes: if the identity verification module verifies that the digital signature is invalid, it sends a warning signal to the display control module; the display control module generates a prompt message in response to the warning signal and controls the screen to display the prompt message.
[0015] Secondly, this application provides a USB flash drive, comprising:
[0016] The content storage module is used to encrypt and store content data using a symmetric encryption algorithm;
[0017] The identity verification module is used to verify the legitimacy of connected devices and to encrypt user identity information using an asymmetric encryption algorithm to obtain a digital signature and store it.
[0018] Thirdly, this application provides a display device, including: a peripheral status detection module for detecting the connection status of a USB flash drive;
[0019] The content flow control module is used to transfer the content data of the USB flash drive;
[0020] The display control module is used to control the screen display;
[0021] The power management module is used to control the screen power.
[0022] Specifically, when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module is used to clear the cache and terminate the transmission of the content data of the connected USB flash drive; the display control module is used to terminate the display of the content data of the connected USB flash drive and send a power-down command to the power management module to turn off the screen power.
[0023] Fourthly, this application provides a computer-readable storage medium, comprising: storing a computer program on the computer-readable storage medium, wherein the computer program, when executed by a processor, implements the offline display control method as described in the first aspect or any of its optional embodiments.
[0024] Fifthly, this application provides a computer program product, comprising: the computer program product including a computer program that, when the computer program is run on a computer, causes the computer to implement the offline display control method as described in the first aspect or any of its optional embodiments.
[0025] The technical solution provided in this application has the following advantages compared with the prior art:
[0026] This disclosure provides an offline display control method, a USB flash drive, a display device, a medium, and a program product. The method is applied to a display device, which includes a peripheral status detection module for detecting the USB flash drive's connection status, a content flow control module for transmitting USB flash drive content data, a display control module for controlling screen display, and a power management module for controlling screen power. When the peripheral status detection module detects a disconnection indication from the connected USB flash drive, the content flow control module clears its cache and terminates the transmission of the connected USB flash drive's content data. The display control module then terminates the display of the connected USB flash drive's content data and sends a power-off command to the management module to turn off the screen. Thus, this application clears the cache, terminates transmission and display, and turns off the screen when the USB flash drive is unplugged, thereby preventing data leakage and ensuring data security through physical isolation.
[0027] In addition, this application provides detailed handling for connection disconnection situations. When the connected USB flash drive is forcibly unplugged and disconnected from the display device, the transmission and display of the content data of the connected USB flash drive are simultaneously terminated, and the screen is quickly turned off to protect the data, preventing data leakage through physical isolation. When the connected USB flash drive is normally unplugged, the content data is locked and no longer transmitted, the display of the content data is stopped, and then the screen is turned off. Each module cooperates with each other to perform its own tasks in an orderly manner, avoiding conflicts. Attached Figure Description
[0028] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0029] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 A schematic diagram of a display device provided in an embodiment of this application. Figure 1 ;
[0031] Figure 2This is a flowchart illustrating an offline display control method according to an embodiment of this application. Figure 1 ;
[0032] Figure 3A Timing diagram provided for embodiments of this application Figure 1 ;
[0033] Figure 3B Timing diagram provided for embodiments of this application Figure 2 ;
[0034] Figure 4 A schematic diagram of a display device provided in an embodiment of this application. Figure 2 ;
[0035] Figure 5 This is a flowchart illustrating an offline display control method according to an embodiment of this application. Figure 2 ;
[0036] Figure 6 This is a schematic diagram of the structure of a USB flash drive provided in an embodiment of this application. Detailed Implementation
[0037] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0038] Many specific details are set forth in the following description in order to provide a full understanding of this application, but this application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of this application, and not all embodiments.
[0039] The offline display control method provided in this application embodiment can be implemented through a display device, including but not limited to personal computers, laptops, tablets, and smartphones. The operating system of the display device can include Android, Apple's iOS, Microsoft's Windows operating system, etc., and this application embodiment does not limit this. The display device can operate independently to implement this application, or it can connect to a network and implement this application through interactive operation with other computer devices on the network. The network where the display device is located includes, but is not limited to, the Internet, wide area network, metropolitan area network, local area network, and virtual private network (VPN) network.
[0040] It should be noted that the protection scope of the offline display control method described in this application embodiment is not limited to the execution order of the steps listed in this embodiment. Any solution implemented by adding, subtracting, or replacing steps in the prior art based on the principles of this application is included within the protection scope of this application.
[0041] The offline display control method provided in this application embodiment can be applied to display devices, such as... Figure 1 As shown, Figure 1 A schematic diagram of a display device provided in an embodiment of this application. Figure 1 The display device includes: a peripheral status detection module 101, a content stream control module 102, a display control module 103, and a power management module 104. The peripheral status detection module 101 is used to detect the connection status of the USB flash drive; the content stream control module 102 is used to transmit the content data of the USB flash drive; the display control module 103 is used to control the screen display; and the power management module 104 is used to control the screen power.
[0042] like Figure 2 As shown, Figure 2 This is a flowchart illustrating an offline display control method according to an embodiment of this application. Figure 1 This method can be derived from Figure 1 The display device shown executes the method. This method mainly includes the following steps S201 to S202:
[0043] S201. When the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive.
[0044] S202, The display control module stops displaying the content data of the connected USB flash drive and sends a power-down command to the power management module to turn off the screen power.
[0045] The display device's connection status with the connected USB flash drive includes two categories: disconnected and normally connected. Disconnection includes both normal uninstallation and forced removal. For example, in a Windows system, ejecting the USB flash drive by clicking the "Safely Remove Hardware" option results in a normal uninstallation; while directly removing the USB flash drive without clicking the "Safely Remove Hardware" option results in a forced removal. The screen can be an LED display, a liquid crystal display (LCD), or an e-ink display.
[0046] In some embodiments, when the peripheral device status detection module 101 detects that the connection status of the connected USB flash drive is disconnected, it further detects whether the connected USB flash drive is being properly unloaded or forcibly removed by at least one of the following: (1) whether the operating system of the display device issues an operation command to safely remove the hardware; (2) whether the interface voltage of the connected USB flash drive changes abruptly; (3) whether the heartbeat data transmission corresponding to the connected USB flash drive is interrupted.
[0047] For example, when a user performs a normal uninstallation operation in the display interface of the display device, the peripheral device status detection module detects the operation command to safely remove hardware through the listening program and marks the connection status as "normal uninstallation".
[0048] For example, the display device also includes an interface control module. This module monitors the voltage status of the USB interface in real time. When the USB flash drive is normally unloaded and then removed, the USB interface voltage gradually decreases. When forcibly removed, the USB interface voltage suddenly disappears. The peripheral device status detection module listens to the interface control module and determines whether the USB flash drive has been forcibly removed based on whether the interface voltage of the connected USB flash drive changes abruptly. If the interface voltage of the connected USB flash drive changes abruptly, the connection status is marked as "forcibly removed."
[0049] It should be noted that the above detection methods can be combined arbitrarily. Taking (1) and (3) as examples, the display device also includes an identity verification module. The identity verification module is used to verify the identity of the connected USB flash drive. The identity verification module maintains heartbeat data detection with the connected USB flash drive at intervals. Once the heartbeat data transmission is interrupted and no operation command to safely remove the hardware is detected, the peripheral status detection module will mark the connection status as "forced unplugged".
[0050] In some embodiments, if the peripheral device status monitoring module detects that the connection status of the connected USB flash drive has been disconnected, and this disconnection is forcibly achieved, it sends an abnormal disconnection signal to the content stream control module and the display control module. In response to the abnormal disconnection signal, the content stream control module clears its cache and terminates the transmission of the content data from the connected USB flash drive to the display control module. Then, in response to the abnormal disconnection signal, the display control module stops displaying the content data from the connected USB flash drive and sends a power-down command to the power management module to turn off the screen.
[0051] like Figure 3A As shown, Figure 3A Timing diagram provided for embodiments of this application Figure 1 When the peripheral device status detection module 101 detects that the connection status of the connected USB flash drive has been disconnected, and the drive has been forcibly unplugged, the operation sequence of each module of the display device is as follows:
[0052] S301, the peripheral status detection module 101 sends an abnormal disconnection signal to the content flow control module 102 and the display control module 103.
[0053] S302a, in response to the abnormal disconnection signal, the content flow control module 102 clears the cache and terminates the transmission of the content data of the connected USB flash drive to the display control module 103.
[0054] S302b, the display control module 103 responds to the abnormal disconnection signal, stops displaying the content data of the connected USB flash drive, and sends a power-down command to the power management module 104.
[0055] S303 and power management module 104 respond to the power-down command and turn off the screen power.
[0056] In the above embodiment, when the connected USB flash drive is forcibly unplugged and disconnected from the display device, the peripheral device status detection module directly sends an abnormal disconnection signal to both the content flow control module and the display control module simultaneously. This enables the content flow control module and the display control module to react quickly, terminate the transmission and display of the content data of the connected USB flash drive, and quickly turn off the screen to protect the data, thus preventing data leakage through physical isolation.
[0057] In other embodiments, if the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected and that the connection was properly unloaded, it sends a lock command to the content stream control module. In response to the lock command, the content stream control module clears the cache and stops transmitting the content data of the connected USB flash drive to the display control module, and sends a stop command to the display control module. In response to the stop command, the display control module stops displaying the content data of the connected USB flash drive and sends a power-down command to the power management module to turn off the screen power.
[0058] like Figure 3B As shown, Figure 3B Timing diagram provided for embodiments of this application Figure 1 When the peripheral device status detection module 101 detects that the connection status of the connected USB flash drive has been disconnected, and the connection was successfully unloaded, the operation sequence of each module of the display device is as follows:
[0059] S311, the peripheral status detection module 101 sends a lock command to the content flow control module 102.
[0060] S312, in response to the locking command, the content flow control module 102 clears the cache, terminates the transmission of the content data of the connected USB flash drive to the display control module 103, and sends a stop command to the display control module 103.
[0061] S313, the display control module 103 responds to the stop command, stops displaying the content data of the connected USB flash drive, and sends a power-down command to the power management module 104.
[0062] S314, the power management module 104 responds to the power-down command and turns off the screen power.
[0063] In the scenario of normally unloading a connected USB drive, compared to forcibly unplugging the USB drive, the above embodiment allows the internal modules of the display device to execute sequentially and orderly, locking the content data from being transmitted, stopping the display of content data, and ultimately turning off the screen. This adapts to the scenario of normal unloading and avoids task conflicts.
[0064] like Figure 4 As shown, Figure 4 A schematic diagram of a display device provided in an embodiment of this application. Figure 2 The display device includes: a peripheral status detection module 101, a content flow control module 102, a display control module 103, and a power management module 104, as well as an identity verification module 400 for authenticating the connected USB flash drive.
[0065] like Figure 5 As shown, Figure 5 This is a flowchart illustrating an offline display control method according to an embodiment of this application. Figure 2 This method can be derived from Figure 4 The method is executed by the display device shown. The method mainly includes the following steps:
[0066] S501 When the peripheral device status detection module detects that the connection status of the connected USB flash drive is normal, it sends the digital signature of the connected USB flash drive to the identity verification module.
[0067] It should be noted that the connected USB flash drive uses an asymmetric encryption algorithm to encrypt the user's identity information to obtain a data signature, which is then stored. When the USB flash drive is connected to the display device and the connection is normal, the peripheral status monitoring module 101 of the display device obtains the digital signature of the connected USB flash drive and sends it to the identity verification module 400.
[0068] Among them, asymmetric encryption algorithms, such as the RSA algorithm, allow the USB flash drive to encrypt user identity information using a private key, generate a digital signature, and store it.
[0069] S502a: The identity verification module verifies the legality of the digital signature based on an asymmetric encryption algorithm. If the digital signature is valid, it sends a temporary session key to the content flow control module. Proceed to steps S503a to S504a.
[0070] Since the USB flash drive has been connected and the user's identity information is encrypted using an asymmetric encryption algorithm with a private key, the identity verification module 400 verifies the legality of the digital signature using a public key based on the asymmetric encryption algorithm. This verifies the validity of the user's identity information and enhances the security of data access. If the digital signature is valid, a temporary session key is sent to the content flow control module 102.
[0071] Optionally, the identity verification module uses an asymmetric encryption algorithm to encrypt the display device information before transmitting it to the connected USB drive. The connected USB drive then verifies the legitimacy of the display device information. This achieves two-way authentication, effectively preventing data leakage and enhancing security.
[0072] It should be noted that the connected USB drive uses a symmetric encryption algorithm with a symmetric key to encrypt and store the content data, preventing unauthorized devices from accessing or reading it. Symmetric encryption algorithms, such as the Advanced Encryption Standard (AES), are characterized by their fast encryption speed and suitability for encrypting large amounts of data, thus ensuring the confidentiality and integrity of the USB drive's contents.
[0073] S502b: If the data signature is invalid, a warning signal is sent to the display control module.
[0074] If the identity verification module 400 verifies that the digital signature of the connected USB flash drive is invalid, indicating that the connected USB flash drive is an unauthorized USB flash drive, it will send a warning signal to the display control module 103.
[0075] In some embodiments, the identity verification module 400 can record the number of identity verification attempts. If multiple USB drives fail to verify identity multiple times within a preset time period, it indicates that there may be frequent malicious attempts to plug and unplug them. In this case, multiple USB drives are recorded, and the relevant modules of the display device are notified to restrict related functions. The identity verification module can also send a security warning to the display control module to display a prompt message on the screen such as "Multiple unauthorized attempts detected," instructing the user to manually remove the function restriction.
[0076] S503b, The display control module generates a prompt message in response to the warning signal.
[0077] The display control module 103 generates a prompt message in response to a warning signal to remind the user that the connected USB flash drive is unauthorized and access is denied. The prompt message may also include a resolution strategy to provide the user with a way to obtain access.
[0078] For example, the message could be: "The USB drive you inserted is not authorized and cannot be accessed. Please contact the administrator to obtain permission."
[0079] S503a The content flow control module uses a temporary session key to decrypt the content data of the connected USB flash drive and sends the decrypted content to the display control module.
[0080] Once the identity verification of the connected USB drive is successful, the identity verification module 400 sends a temporary session key to the content flow control module 102 to decrypt the content data of the connected USB drive. The temporary session key is symmetrical to the key used by the connected USB drive to encrypt the content data. The temporary session key helps improve security. The content flow control module 102 uses the temporary session key to decrypt the content data of the connected USB drive to obtain the decrypted content, and sends it to the display control module 103.
[0081] S504a, The display control module controls the screen to display the decrypted content.
[0082] The display control module 103 receives the decrypted content and controls its display on the screen, enabling access to and reading of the content data of a USB flash drive that is properly connected and whose identity verification has been passed.
[0083] In the above embodiment, under the scenario where the USB flash drive is normally connected to the display device, an asymmetric encryption algorithm is used to verify the identity of the USB flash drive. If the identity verification is successful, the content data of the USB flash drive is decrypted using a symmetric encryption algorithm and displayed; if the identity verification fails, a warning is issued to the user. Through identity verification and encryption / decryption of content data, multiple layers of encryption protection ensure the security of the USB flash drive's content data.
[0084] In some embodiments, the display device also includes an operation log module. For any of the above embodiments, the operation log module records operations related to the connection, disconnection, and access of the USB flash drive, and generates an operation log file for troubleshooting abnormal operations or tracing historical operations, thereby enhancing the transparency of display device management. The operation log can be viewed only by authorized personnel.
[0085] In summary, this application provides an offline display control method. This method is applied to a display device, which includes a peripheral status detection module for detecting the connection status of a USB flash drive, a content flow control module for transmitting USB flash drive content data, a display control module for controlling screen display, and a power management module for controlling screen power. When the peripheral status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the connected USB flash drive content data. The display control module then terminates the display of the connected USB flash drive content data and sends a power-off command to the management module to turn off the screen power. Thus, this application clears the cache, terminates transmission and display, and turns off the screen when the USB flash drive is unplugged, thereby preventing data leakage and ensuring data security through physical isolation.
[0086] like Figure 6 As shown, Figure 6This is a schematic diagram of the structure of a USB flash drive provided in an embodiment of this application. The USB flash drive includes:
[0087] The content storage module 601 is used to encrypt and store content data using a symmetric encryption algorithm;
[0088] The identity verification module 602 is used to verify the legitimacy of the connected devices and to encrypt the user's identity information using an asymmetric encryption algorithm to obtain a digital signature and store it.
[0089] The aforementioned USB flash drive uses a symmetric encryption algorithm to encrypt the content data, which is highly efficient and secure; it uses an asymmetric encryption algorithm to encrypt user identity information, effectively preventing unauthorized access; and it employs multiple encryption methods to prevent the leakage or tampering of the USB flash drive's content data, ensuring data security.
[0090] In one embodiment, this application provides a display device, which may be a terminal, and its internal structure diagram may be as follows. Figure 1 As shown. The display device includes:
[0091] Peripheral status detection module 101 is used to detect the connection status of the USB flash drive;
[0092] Content flow control module 102 is used to transmit USB flash drive content data;
[0093] Display control module 103 is used to control the screen display;
[0094] Power management module 104 is used to control the power supply of the screen;
[0095] Specifically, when the peripheral device status detection module 101 detects that the connection status of the connected USB flash drive is disconnected, the content flow control module 102 is used to clear the cache and terminate the transmission of the content data of the connected USB flash drive; the display control module 103 is used to terminate the display of the content data of the connected USB flash drive and send a power-down command to the power management module 104 to turn off the screen power.
[0096] The display device provided in this application clears the cache, terminates transmission and display, and turns off the screen when the USB flash drive is unplugged, thereby preventing data leakage and ensuring data security through physical isolation.
[0097] In some embodiments, the peripheral device status detection module 101 is specifically used to: detect whether the connected USB flash drive is normally unloaded or forcibly unplugged when the connection status indication of the connected USB flash drive is detected as disconnected; if the connected USB flash drive is forcibly unplugged, send an abnormal disconnection signal to the content stream control module 102 and the display control module 103.
[0098] Content stream control module 102 is specifically used to: in response to the abnormal disconnection signal, clear the cache and terminate the transmission of the content data of the connected USB flash drive to the display control module 103;
[0099] The display control module 103 is specifically used to: in response to the abnormal disconnection signal, terminate the display of the content data of the connected USB flash drive, and send a power-down command to the power management module 104 to turn off the screen power.
[0100] When the connected USB flash drive is forcibly unplugged and disconnected from the display device, the peripheral status detection module directly sends an abnormal disconnection signal to both the content flow control module and the display control module simultaneously. This enables the content flow control module and the display control module to react quickly, terminate the transmission and display of the content data of the connected USB flash drive, and quickly turn off the screen to protect the data, thus preventing data leakage through physical isolation.
[0101] In some embodiments, the peripheral device status detection module 101 is further configured to: if the detected USB flash drive is being properly unloaded, send a lock command to the content flow control module 102;
[0102] The content flow control module 102 is also configured to: in response to the locking command, clear the cache and terminate the transmission of the content data of the connected USB flash drive to the display control module 103, and send a stop command to the display control module 103;
[0103] The display control module 103 is also configured to: in response to a stop command, terminate the display of the content data of the connected USB flash drive, and send a power-down command to the power management module 104 to turn off the screen power.
[0104] In the scenario of normally unloading a connected USB flash drive, compared to forcibly unplugging the USB flash drive, the display device provided in this application allows each module inside the display device to execute sequentially and orderly, locking the content data from being transmitted, stopping the display of the content data, and thus turning off the screen. This adapts to the scenario of normal unloading and avoids task conflicts.
[0105] In some embodiments, the peripheral device status detection module 101 is specifically used to detect whether the connected USB flash drive is normally unmounted or forcibly removed by at least one of the following methods: whether the operating system of the display device issues an operation command to safely remove hardware; whether the interface voltage of the connected USB flash drive changes abruptly; and whether the heartbeat data transmission corresponding to the connected USB flash drive is interrupted.
[0106] In some embodiments, such as Figure 4 As shown, the display device also includes an identity verification module 400 for authenticating the connected USB flash drive;
[0107] The peripheral device status detection module 101 is also used to: send the digital signature of the connected USB flash drive to the identity verification module 400 when the connection status indication of the connected USB flash drive is detected as normal.
[0108] The identity verification module 400 is specifically used to: verify the legality of the digital signature based on an asymmetric encryption algorithm; if the digital signature is legal, send a temporary session key to the content flow control module 102.
[0109] The content flow control module 102 is also used to: decrypt the content data of the connected USB flash drive using the temporary session key, and send the decrypted content to the display control module 103;
[0110] The display control module 103 is also used to: control the screen to display the decrypted content.
[0111] In some embodiments, the identity verification module 400 is further configured to: send a warning signal to the display control module 103 if the digital signature is found to be invalid based on an asymmetric encryption algorithm;
[0112] The display control module 103 is also used to: generate prompt information in response to a warning signal and control the screen to display the prompt information.
[0113] For specific limitations regarding the display device, please refer to the limitations of the offline display control method above, which will not be repeated here. Each module in the aforementioned display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the corresponding operations of each module.
[0114] Those skilled in the art will understand that Figure 1 The structure shown in Figure 4 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the display device to which the present application is applied. A specific display device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0115] In one embodiment, the offline display control method provided in this application can be implemented as a computer program, which can be used in various ways, such as... Figure 1 It may operate on the display device shown in Figure 4. The memory of the display device may store the various program modules that make up the offline display control device. The computer program composed of the various program modules causes the processor to execute the steps in the offline display control methods of the various embodiments of this application described in this specification.
[0116] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the offline display control methods of the various embodiments of this application described in this specification.
[0117] In one embodiment, a computer program product is provided, comprising: the computer program product including a computer program that, when run on a computer, causes the computer to implement the steps of the offline display control method of the various embodiments of this application described in this specification.
[0118] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0119] It should be understood, in the several embodiments provided in this application, that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0120] In this application, the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0121] In this application, memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0122] In this application, computer-readable media includes both permanent and non-permanent, removable and non-removable storage media. Storage media can implement information storage using any method or technology; the information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient media, such as modulated data signals and carrier waves.
[0123] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0124] The above are merely specific embodiments of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to these embodiments, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An offline display control method, characterized in that, Applied to a display device, the display device includes a peripheral status detection module for detecting the connection status of a USB flash drive, a content flow control module for transmitting USB flash drive content data, a display control module for controlling the screen display, and a power management module for controlling the screen power. The method includes: When the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive. The display control module stops displaying the content data of the connected USB flash drive and sends a power-down command to the power management module to turn off the screen power.
2. The method according to claim 1, characterized in that, When the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive, including: When the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, it detects whether the connected USB flash drive was properly unloaded or forcibly removed. If the connected USB flash drive is forcibly removed, the peripheral device status detection module sends an abnormal disconnection signal to the content flow control module and the display control module. In response to the abnormal disconnection signal, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive to the display control module.
3. The method according to claim 2, characterized in that, When the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, after detecting whether the connected USB flash drive was properly unmounted or forcibly removed, the method further includes: If the connected USB drive is successfully unloaded, the peripheral device status detection module sends a lock command to the content flow control module. In response to the lock command, the content flow control module clears the cache and terminates the transmission of the content data of the connected USB flash drive to the display control module, sends a stop command to the display control module so that the display control module stops displaying the content data of the connected USB flash drive in response to the stop command, and sends a power-down command to the power management module to turn off the screen power.
4. The method according to any one of claim 2 or 3, characterized in that, The detection of whether the connected USB drive was properly unmounted or forcibly removed includes detecting at least one of the following to determine whether the connected USB drive was properly unmounted or forcibly removed: Does the operating system of the display device issue a command to safely remove the hardware? Does the voltage of the connected USB flash drive suddenly change? Whether the heartbeat data transmission corresponding to the connected USB flash drive is interrupted.
5. The method according to claim 1, characterized in that, The display device further includes an identity verification module for authenticating the accessed USB flash drive, and the method further includes: When the peripheral device status detection module detects that the connection status of the connected USB flash drive is normal, it sends the digital signature of the connected USB flash drive to the identity verification module. The identity verification module verifies the legality of the digital signature based on an asymmetric encryption algorithm. If the digital signature is legal, it sends a temporary session key to the content flow control module. The content flow control module uses the temporary session key to decrypt the content data of the connected USB flash drive and sends the decrypted content to the display control module; The display control module controls the screen to display the decrypted content.
6. The method according to claim 5, characterized in that, The method further includes: If the identity verification module finds that the digital signature is invalid, it sends a warning signal to the display control module. The display control module generates a prompt message in response to the warning signal and controls the screen to display the prompt message.
7. A USB flash drive, characterized in that, include: The content storage module is used to encrypt and store content data using a symmetric encryption algorithm; The identity verification module is used to verify the legitimacy of connected devices and to encrypt user identity information using an asymmetric encryption algorithm to obtain a digital signature and store it.
8. A display device, characterized in that, include: Peripheral status detection module, used to detect the USB flash drive connection status; The content flow control module is used to transfer the content data of the USB flash drive; The display control module is used to control the screen display. The power management module is used to control the screen power. Specifically, when the peripheral device status detection module detects that the connection status of the connected USB flash drive is disconnected, the content flow control module is used to clear the cache and terminate the transmission of the content data of the connected USB flash drive; the display control module is used to terminate the display of the content data of the connected USB flash drive and send a power-down command to the power management module to turn off the screen power.
9. A computer-readable storage medium, characterized in that, include: A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the offline display control method as described in any one of claims 1 to 5.
10. A computer program product, characterized in that, include: The computer program product includes a computer program that, when run on a computer, causes the computer to implement the offline display control method as described in any one of claims 1 to 5.