DATA EXPORT PROCEDURES AND END DEVICE
Patent Information
- Application Number
- DE112023007114
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2026-09-03
Smart Images

Figure 00000014_0000 
Figure 00000014_0001 
Figure 00000015_0000
Abstract
Description
TECHNICAL AREA The present application relates to the technical field of communication technologies, in particular a data export method and an end device. BACKGROUND An imaging device contains a large number of data files, such as images and videos. The imaging device can be connected to a terminal device, and an application (app) on the terminal device can be used to transfer the data stored on the imaging device to the terminal device. However, this process can take some time. Therefore, a user can move the app on the terminal device to the background to export the imaging device's data files. However, the device's operating system manages the apps running in the background. If an app is running in the background, the system often prevents it from running normally, thus preventing the imaging device's data files from being exported. OVERVIEW OF THE INVENTION In light of the above, it is necessary to provide a method for data export and an end device that keeps an application active so that it can continue to run normally in the background in order to solve the aforementioned technical problems. In a first aspect, the present application provides a method for data export that is applied in an end device, wherein the method includes: maintaining a communication link with an imaging device; exporting a data file from the imaging device to an application of the end device based on the communication link; applying the specified keep-alive strategy to ensure that the application continues to export the data file when running in the background of the end device. In one embodiment of the present application, the communication connection is a WLAN connection. In one embodiment of the present application, the keep-alive strategy includes the following: establishing a Bluetooth communication connection with the imaging device in the event that the application switches to the background of the terminal device. In one embodiment of the present application, the keep-alive strategy further includes: sending a heartbeat packet to the imaging device based on the Bluetooth connection so that the imaging device remains switched on and in a state with an activated communication connection. In one embodiment of the present application, the keep-alive strategy further includes the following: activating a Bluetooth mode for sampling based on a preset time interval. In one embodiment of the present application, the keep-alive strategy further includes the sending of position information. In one embodiment of the present application, the keep-alive strategy further includes the following: playing a silent audio signal. In one embodiment of the present application, the keep-alive strategy is designed to cause the imaging device to determine whether the imaging device is in a data export state, and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In one embodiment of the present application, the method further includes the following: Disconnecting the Bluetooth connection if the application returns to the foreground of the terminal device. In one embodiment of the present application, the method further includes: displaying the export progress of the data file on the terminal device if the application switches to the background of the terminal device; and / or, synchronizing the export progress of the data file with the imaging device based on the communication link, so that the export progress of the data file is displayed on the imaging device if the application switches to the background of the terminal device. In a second aspect, the present application further provides a data export device used in an end device, the device comprising: a connection module configured to maintain a communication link with an imaging device; a first export module configured to export a data file from the imaging device to an application of the end device based on the communication; a second export module configured to apply a predefined keep-alive strategy to ensure that the application continues to export the data file if the application is running in the background of the end device. In a third aspect, the present application further provides for an end device comprising a memory, a communication component, and a processor, wherein the memory stores a computer program; the communication component maintains a communication link with an imaging device; wherein the processor is configured to execute the computer program and, during the execution of the computer program, controls an application of the end device such that a data file is exported to the imaging device; wherein the processor applies a predetermined keep-alive strategy to ensure that the application continues to export the data file if the application is running in the background of the end device. In one embodiment of the present application, the communication connection is a WLAN connection. In one embodiment of the present application, the keep-alive strategy includes the following: The processor controls the communication component so that a Bluetooth connection is established with the imaging device if the application switches to the background of the terminal device. In one embodiment of the present application, the keep-alive strategy further includes the following: The processor sends a heartbeat packet to the imaging device based on the Bluetooth connection, so that it remains switched on and the communication link is activated. In one embodiment of the present application, the keep-alive strategy further includes: activating a Bluetooth mode for sampling based on a preset time interval in the event that the processor is executing the application. In one embodiment of the present application, the keep-alive strategy further includes the following: sending position information in the event that the processor is executing the application. In one embodiment of the present application, the keep-alive strategy further includes the following: playing a silent audio signal in the event that the processor is executing the application. In one embodiment of the present application, the keep-alive strategy is designed to cause the imaging device to determine whether the imaging device is in a data export state, and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In one embodiment of the present application, the processor controls the communication component in such a way that the Bluetooth connection is disconnected if the application returns to the foreground of the terminal device. In one embodiment of the present application, the progress of the data file export is displayed on the terminal device if the application switches to the background of the terminal device; and / or, the data file export progress to the imaging device is synchronized based on the communication link so that the data file export progress is displayed on the imaging device if the application switches to the background of the terminal device. In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the following steps: maintaining a communication link with an imaging device; exporting a data file from the imaging device to an application of the terminal device based on the communication link; applying the specified keep-alive strategy to ensure that the application continues to export the data file when running in the background of the terminal device. In a fifth aspect, the present application further provides a computer program product that includes a computer program which, when executed by a processor, implements the following steps: maintaining a communication link with an imaging device; exporting a data file from the imaging device to an application of the terminal device based on the communication link; applying the predefined keep-alive strategy to ensure that the application continues to export the data file when running in the background of the terminal device. According to the data export method and terminal described above, an application on the terminal maintains a communication link with the imaging device; a data file in the imaging device is exported to the terminal application based on this communication link; and the application applies a predetermined keep-alive strategy to maintain the export of the data file when the application is running in the background of the terminal. In embodiments of the present application, if the application maintains a communication link with the imaging device, the execution of a task to export the imaging device's data file is initiated; if the application is running in the background of the terminal, a predetermined keep-alive strategy is applied so that the application is not stopped by the operating system and continues exporting the imaging device's data file.Thus, the requirement that the application be able to export the imaging device's data file in a stable and long-term manner while running in the background can be easily met. BRIEF DESCRIPTION OF THE DRAWINGS To illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, the drawings necessary for describing the embodiments or the prior art are briefly presented below. It is understood that the drawings in the following description only represent some embodiments of the present application and that a person skilled in the art can derive further embodiments from these drawings without any creative effort. Fig. 1 shows a diagram of the application environment of a method for data export according to an embodiment of the present application; Fig. 2 shows a schematic flowchart of a method for data export according to an embodiment of the present application; Fig. 3 shows a schematic flowchart of a method for data export according to a further embodiment of the present application; Fig.Figure 4 shows a block diagram of a device for data export according to an embodiment of the present application; Figure 5 shows a schematic structure diagram of an end device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EXECUTION FORMS To better illustrate the objectives, technical solutions, and advantages of the present application, it is further described with reference to the attached drawings and embodiments. It is understood that the specific embodiments described here are used solely to explain the present application and are not intended to limit it. In current technology, data files are exported by using a download interface provided by the operating system and setting the download mode to background mode. However, the operating system's download interface delegates the download task to an operating system process for management. In this case, the operating system comprehensively controls the export process based on the overall operating state of the end device; therefore, the export speed cannot be guaranteed, and the export process can easily be interrupted, or the application can be terminated directly by the operating system. The data export method according to embodiments of the present application can be used in an application environment as shown in Fig. 1. The application includes an end device 1 and an imaging device 2. When the end device 1 establishes a communication link with the imaging device 2, the end device 1 is used to export data files from the imaging device 2. The imaging device 2 can be understood as an electronic device with a photo or video recording function, for example, an action camera, a gimbal with photo or video recording function, or a drone with photo or video recording function, etc. The end device 1 can include a mobile phone, a tablet computer, a desktop computer, a wearable device, or a remote control with computing function, etc. For example, consider the case where the imaging device is an action camera. Since action cameras are small and easy to transport, and typically used for sports photography, their battery capacity is limited due to the demands of their size. Therefore, it's necessary to manage the action camera's low power consumption. All currently available action cameras have a power-saving mode. For instance, if a user doesn't perform any operation for a certain period of time, the action camera will turn off or enter sleep mode. With conventional action cameras, the application on the end device must be running in the foreground when a user exports data such as videos or images from the action camera to prevent the application from being moved to the background and paused, which could cause the data export to fail.This also prevents the action camera from switching off or entering sleep mode during data transfer and interaction. However, exporting large files from such action cameras requires the user to keep the application running in the foreground for an extended period, which restricts other user activities on the device. Furthermore, unexpected events such as phone calls, alarms, and the mobile phone screen turning off cause the application to continue running in the background, interrupting the export process and potentially causing the action camera to shut down or enter sleep mode. To address these technical issues, the solution presented here sends a heartbeat packet from the device to the action camera, ensuring its continuous operation without altering its power-saving logic.Furthermore, the following applies: If the operating system of the end device is an iOS system and an application is running in the background of the end device, this application is subject to the control of the iOS system, so that a Bluetooth connection can be continuously maintained without violating the rules of the iOS system and without any audit risk. In an exemplary embodiment, as shown in Fig. 2, a method for data export is provided. As an example, the method applied to the terminal device in Fig. 1 is described, which includes the following steps S201 to S203: S201: Maintaining a communication link with an imaging device. In the present embodiment, the terminal device maintains a communication link with the imaging device. This communication link can be a Wi-Fi connection, a Bluetooth connection, an NFC connection, etc. The communication link is used to transfer data files between the terminal device and the imaging device. Therefore, a suitable communication mode can be selected based on actual needs. For example, based on a requirement regarding the transmission rate, the communication link mode can be selected as a Wi-Fi connection. In one embodiment of the present application, an application can scan the imaging device to obtain a specified WLAN list, since the imaging device has a network card. When establishing a connection to the imaging device, the application can automatically connect to a corresponding WLAN of the imaging camera via the interface "NEHotspotConfigurationManager::apply(_ configuration: (NEHotspotConfiguration)". S202: Exporting a data file from the imaging device to an application of the terminal device based on the communication link. In the present embodiment, the terminal receives an external instruction and uses the application to export the data file from the imaging device in response to this instruction. Exporting the data file includes, for example, saving the data file from the imaging device to the terminal or migrating the data file from the imaging device to the terminal. S203: Applying a predefined keep-alive strategy to ensure that the application continues to export the data file while running in the background of the terminal device. In the present embodiment, the keep-alive strategy can consist of establishing a Bluetooth communication connection with the imaging device if the application moves to the background of the terminal device, or of the application activating a Bluetooth scan mode based on a preset time interval, or of the terminal device instructing the application to send location information or play a silent audio signal, etc. For example, playing the silent audio file does not affect the user's perception, such as when viewing content, if the user is using other applications on the terminal device. In the present embodiment, after switching to the background, the application runs actively for a specific period and is then placed in an inactive state by the operating system, in which no further operations can be performed. By applying the defined keep-alive strategy, the application can be prevented from being stopped by the operating system while running in the background, thus enabling continuous export of the imaging device's data file. In one embodiment of the present application, it is possible to determine whether the application has switched to the background via “UIApplication.didEnterBackgroundNotification”. In the data export method described above, the terminal device maintains the communication link with the imaging device; the data file in the imaging device is exported in the terminal device application based on this communication link; and the predetermined keep-alive strategy is configured such that the application continues exporting the data file when the application is running in the background of the terminal device. In embodiments of the present application, if the application maintains the communication link with the imaging device, the execution of a task to export the imaging device's data file is initiated; if the application is running in the background of the terminal device, the predetermined keep-alive strategy is applied so that the application is not stopped by the operating system and continues exporting the imaging device's data file.Thus, the requirement that the application be able to export the imaging device's data file in a stable and long-term manner while running in the background can be easily met. In one embodiment of the present application, the communication link between the terminal device and the imaging device for exporting the data file can be a WLAN connection, a Bluetooth connection, or a near-field communication link, etc., when the application is in the foreground; when the application is in the background, the communication link between the terminal device and the imaging device for exporting the data file can be another of the following: a WLAN connection, a Bluetooth communication link, or a near-field communication link, etc., in order to balance power consumption and data export speed.For example, a Wi-Fi connection is characterized by high data transfer speeds and high power consumption, while a Bluetooth connection has low data transfer speeds and low power consumption. Different communication modes can be switched while communication is maintained to create different performance modes. In one embodiment of the present application, the mode of communication between the terminal device and the imaging device for exporting the data file, regardless of whether the application is in the foreground or background, can be the same as for a WLAN connection, a Bluetooth connection, or a near-field communication connection, etc., so that the data file export speed when the application is in the background is nearly the same as when the application is running in the foreground. A user can estimate the expected duration of a data export after the application has moved to the background based on the speed at which the data export occurs when the application is in the foreground. In one embodiment of the present application, the keep-alive strategy further includes: sending a heartbeat packet to the imaging device based on the Bluetooth communication link, so that the imaging device is kept in a powered-on state and in a state with the communication link enabled. In this embodiment, the heartbeat packet is continuously sent to the imaging device via the Bluetooth connection to indicate to the imaging device that the application or the imaging device itself is currently in a data export state, so that the imaging device remains powered on and with communication enabled. In one embodiment of the present application, the Bluetooth function of the imaging device can be activated when the imaging device is switched on. When the terminal processor detects that the application has switched to the background of the terminal, the application calls the interface "scanForPeripheralsWithServices" to search for the imaging device and, after locating the imaging device, calls the interface "TelinkBluetoothManager::connectPeripheral:(CBPeripheral*)peripheral timeout:(NSTimeInterval)timeout resultBlock:(peripheralResultCallBack)block" to establish the Bluetooth connection with the imaging device. In one embodiment of the present application, after the application has established a connection to the Bluetooth of the imaging device, data can be written via the interface “writeValue:(NSData *)value toPeripheral:(CBPeripheral *)peripheral”, and the data can be transferred once per second to inform the imaging device that it is in data export mode. In one embodiment of the present application, a firmware in the imaging device, after receiving the heartbeat packet, operates the switched-on state and the state in which the communication link is activated. In one possible implementation, the application sends the heartbeat packet to the imaging device at a preset time interval, thus keeping it powered on and activating the communication link. Alternatively, the time interval for sending the heartbeat packet can be continuously adjusted according to the current operating state of the application, so that the imaging device remains powered on and the communication link is active. In embodiments of the present application, the imaging device is kept powered on and in the state of communication connection activation by sending the heartbeat packet via the Bluetooth communication link. Since the connection is established via Bluetooth, no additional system resources are consumed, and no conflicts arise with audio playback on the terminal device. Therefore, the method is well-suited for data export from a hardware-oriented application such as an imaging device, as it does not violate system rules and poses no audit risk. In one embodiment of the present application, the keep-alive strategy is configured to cause the imaging device to check whether it is in a data export state and to activate a keep-alive program if the keep-alive strategy includes any of the following actions: activating the Bluetooth sampling mode based on the preset time interval; sending the position information; or playing the silent audio signal, wherein the keep-alive strategy is configured to cause the imaging device to determine whether the imaging device is in a data export state and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In this embodiment, Bluetooth mode is activated for sampling based on the preset time interval, or position information is sent, or a silent audio signal is played to prevent the application from being stopped by the operating system. In this case, no state interaction takes place between the application and the imaging device; that is, the terminal device does not send a heartbeat packet to the imaging device to inform it whether the application is currently in a data export state.The imaging device must determine whether it is in the data export state; if the imaging device is in the data export state, a keep-alive program is activated in the imaging device so that the imaging device remains powered on and in the communication link state, and the application can export the data file in the imaging device based on the communication link. In one embodiment of the present application, the data export method further includes the following: disconnecting the Bluetooth communication connection if the application returns to the foreground of the terminal device. In this embodiment, the Bluetooth connection is disconnected and communication is terminated if the export of the data file by the imaging device is completed and the application returns to the foreground of the terminal device. In one embodiment of the present application, the data export method further includes: displaying the export progress of the data file on the terminal device if the application on the terminal device switches to the background; and / or synchronizing the export progress of the data file with the imaging device based on the communication link to cause the export progress of the data file to be displayed on the imaging device if the application on the terminal device switches to the background. In one embodiment of the present application, when the application returns to the foreground or the data export is complete, the interface “TelinkBluetoothManager::cancelConnectionPeripheral:(CBPeripheral *)peripheral timeout:(NSTimeInterval)timeout resultBlock:(_Nullable peripheralResultCallBack)block” can be called to disconnect the Bluetooth connection and terminate Bluetooth communication. In one embodiment of the present application, it is possible to determine whether the application has come to the foreground by monitoring a system notification “UIApplication.willEnterForegroundNotification”. With existing imaging devices, especially action cameras, after recording a video or multiple images, it is necessary to transfer the video or images to a device such as a mobile phone to check the angle or exposure and quickly adjust the settings for the next shot. During such an export, the user must be informed of the download progress at all times so that they can make appropriate adjustments when shooting under time-dependent conditions – such as the scene or lighting.In this embodiment, if the application moves to the background of the terminal device, a floating window with a small download progress bar is displayed in the foreground of the terminal device, or a percentage value for the download progress is displayed in the terminal device's top status bar to make the download progress visible in the foreground, allowing the user to monitor the export status of the data file in real time; and / or, if the application moves to the background of the terminal device, the terminal device synchronizes the export progress of the data file based on the communication link with the imaging device, and the export progress of the data file is visually displayed on the imaging device via a progress bar or a percentage value, etc., making it easier for the user to monitor the export status of the data file in real time and improving the user experience. Once the application has established a connection to the imaging device's Bluetooth, for example, data can be written via the "writeValue:(NSData *)value toPeripheral:(CBPeripheral *)peripheral" interface and a notification can be transmitted once per second to inform the imaging device about the current status of the data export. Figure 3 shows a schematic flowchart of a data export method according to an embodiment of the present application. As shown in Figure 3, an end device establishes a communication link with an imaging device and initiates a data export based on this communication link. When an application on the end device moves to the background, a Bluetooth connection is established with the imaging device, and a heartbeat packet is transmitted to the imaging device based on this connection. The imaging device receives the heartbeat packet sent by the end device and remains powered on and in a communication link state. The application is in a long-term keep-alive state and performs the data export. Once the application is running in the foreground of the end device, the Bluetooth connection is disconnected, and the communication is terminated. It should be noted that while the steps in the flowcharts of the aforementioned embodiments are shown sequentially, as indicated by the arrows, they are not necessarily executed in the order shown. Unless expressly stated otherwise herein, the sequence of steps is not strictly fixed, and the steps may be executed in a different order. Furthermore, at least some of the steps in the flowcharts of the aforementioned embodiments may comprise multiple sub-steps or multiple phases. The sub-steps or phases are not necessarily executed simultaneously but may occur at different times. The sequence of the sub-steps or phases need not be sequential; they may be performed alternately or consecutively with at least some of other steps, sub-steps, or phases of other steps. Based on the same inventive concept, an embodiment of the present application further provides a data export device with which the data export method described above can be implemented. The solution provided by the device for solving a problem is similar to the solution set forth in the method described above. Therefore, certain limitations in one or more embodiments of the data export device provided below may relate to limitations of the data export method described above, which are not repeated here. In an exemplary embodiment, as shown in Fig. 4, a data export device is provided comprising: a connection module 11, a first export module 12, and a second export module 13, wherein: the connection module 11 is configured to maintain a communication link with an imaging device; the first export module 12 is configured to export a data file from the imaging device to an application of the terminal device based on the communication link; the second export module 13 is configured for the application to apply a predefined keep-alive strategy to ensure that the application continues to export the data file when the application is running in the background of the terminal device. In one embodiment of the present application, the communication connection is a WLAN connection. In one embodiment of the present application, the keep-alive strategy includes the following: establishing a Bluetooth communication connection with the imaging device in the event that the application switches to the background of the terminal device. In one embodiment of the present application, the keep-alive strategy further includes: sending a heartbeat packet to the imaging device based on the Bluetooth communication link, so that the imaging device is kept in a powered-on state and in a state with the communication link enabled. In one embodiment of the present application, the keep-alive strategy further includes the following: activating a Bluetooth mode for sampling based on a preset time interval. In one embodiment of the present application, the keep-alive strategy further includes the sending of position information. In one embodiment of the present application, the keep-alive strategy further includes the following: playing a silent audio signal. In one embodiment of the present application, the keep-alive strategy is designed to cause the imaging device to determine whether the imaging device is in a data export state, and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In one embodiment of the present application, the data export device further includes the following: a disconnection module designed to disconnect the Bluetooth connection if the application returns to the foreground of the terminal device. In one embodiment of the present application, the data export device further includes: a display module configured to show the export progress of the data file on the terminal device if the application on the terminal device switches to the background; and / or a synchronization module configured to synchronize the progress of the data file export to the imaging device on the basis of communication, in order to cause the progress of the data file export to be displayed on the imaging device if the application switches to the background of the terminal device. Each module of the data export device described above can be implemented wholly or partially by software, hardware, or a combination of both. The modules mentioned above can be integrated into the processor of an end device as hardware, be independent of it, or be stored in memory as software in the form of the end device, allowing the processor to call and execute the operations corresponding to the modules mentioned above. In one embodiment of the present application, an end device is provided. Fig. 5 shows a schematic diagram of the end device's structure. The end device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are interconnected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The end device's processor is configured to provide computing and control functions. The end device's memory comprises a non-volatile medium and internal storage. The non-volatile medium stores an operating system and a computer program. The internal storage provides an environment for the operation of the operating system and the computer program on the non-volatile medium.The terminal's input / output interface is used to exchange information between the processor and external devices. The terminal's communication interface enables wired or wireless communication with external devices; a wireless mode can be implemented via Wi-Fi, cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a method for exporting data. The terminal's display unit is designed to form a visually perceptible image, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen may be a liquid crystal display or an e-ink display screen, and the terminal's input device may be a touch layer covering the display screen or a button, trackball, or touchpad.that is provided on the casing of the terminal device, or an external keyboard, touchpad or mouse, etc. A person skilled in the art will recognize that the structure shown in Fig. 5 merely represents a block diagram of some of the structures related to the solution of the present application and does not represent a limitation with respect to any terminal device to which the solution of the present application is applied. A particular terminal device may contain more or fewer components than shown in the drawings, combine certain components, or have a different arrangement of components. In an exemplary embodiment, an end device is provided which includes a memory and a processor, wherein the memory stores a computer program and the processor, when executing the computer program, implements the following steps: Maintaining a communication link with an imaging device; Exporting a data file from the imaging device to an application of the end device based on the communication link; Applying the predefined keep-alive strategy to ensure that the application continues to export the data file when running in the background of the end device. In one embodiment of the present application, the communication connection is a WLAN connection. In one embodiment of the present application, the keep-alive strategy includes the following: establishing a Bluetooth communication connection with the imaging device in the event that the application switches to the background of the terminal device. In one embodiment of the present application, the keep-alive strategy further includes: sending a heartbeat packet to the imaging device based on the Bluetooth communication link, so that the imaging device is kept in a powered-on state and in a state with the communication link enabled. In one embodiment of the present application, the keep-alive strategy further includes the following: activating a Bluetooth mode for sampling based on a preset time interval. In one embodiment of the present application, the keep-alive strategy further includes the sending of position information. In one embodiment of the present application, the keep-alive strategy further includes the following: playing a silent audio signal. In one embodiment of the present application, the keep-alive strategy is designed to cause the imaging device to determine whether the imaging device is in a data export state, and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In one embodiment of the present application, the processor further implements the following step during the execution of the computer program: Disconnecting the Bluetooth connection if the application returns to the foreground of the terminal device. In one embodiment of the present application, the processor further implements the following steps during the execution of the computer program: displaying the export progress of the data file on the terminal device if the application switches to the background of the terminal device; and / or, synchronizing the export progress of the data file with the imaging device based on the communication link, so that the export progress of the data file is displayed on the imaging device if the application switches to the background of the terminal device. In one embodiment of the present application, a computer-readable storage medium is provided on which a computer program is stored, wherein the computer program, when executed by a processor, implements the following steps: Maintaining a communication link with an imaging device; Exporting a data file from the imaging device to an application of the terminal device based on the communication link; Applying the predefined keep-alive strategy to ensure that the application continues to export the data file when running in the background of the terminal device. In one embodiment of the present application, the communication connection is a WLAN connection. In one embodiment of the present application, the keep-alive strategy includes the following: establishing a Bluetooth communication connection with the imaging device in the event that the application switches to the background of the terminal device. In one embodiment of the present application, the keep-alive strategy further includes: sending a heartbeat packet to the imaging device based on the Bluetooth communication link, so that the imaging device is kept in a powered-on state and in a state with the communication link enabled. In one embodiment of the present application, the keep-alive strategy further includes the following: activating a Bluetooth mode for sampling based on a preset time interval. In one embodiment of the present application, the keep-alive strategy further includes the sending of position information. In one embodiment of the present application, the keep-alive strategy further includes the following: playing a silent audio signal. In one embodiment of the present application, the keep-alive strategy is designed to cause the imaging device to determine whether the imaging device is in a data export state, and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In one embodiment of the present application, when executed by the processor, the computer program further implements the following step: Disconnecting the Bluetooth connection if the application returns to the foreground of the terminal device. In one embodiment of the present application, the computer program, when executed by the processor, further implements the following steps: displaying the export progress of the data file on the terminal device if the application switches to the background of the terminal device; and / or, synchronizing the export progress of the data file with the imaging device based on the communication link, so that the export progress of the data file is displayed on the imaging device if the application switches to the background of the terminal device. In one embodiment of the present application, a computer program product is provided which includes a computer program wherein the computer program, when executed by a processor, implements the following steps: Maintaining a communication link with an imaging device; Exporting a data file from the imaging device to an application of the terminal device based on the communication link; Applying the predefined keep-alive strategy to ensure that the application continues to export the data file when running in the background of the terminal device. In one embodiment of the present application, the communication connection is a WLAN connection. In one embodiment of the present application, the keep-alive strategy includes the following: establishing a Bluetooth communication connection with the imaging device in the event that the application switches to the background of the terminal device. In one embodiment of the present application, the keep-alive strategy further includes: sending a heartbeat packet to the imaging device based on the Bluetooth communication link, so that the imaging device is kept in a powered-on state and in a state with the communication link enabled. In one embodiment of the present application, the keep-alive strategy further includes the following: activating a Bluetooth mode for sampling based on a preset time interval. In one embodiment of the present application, the keep-alive strategy further includes the sending of position information. In one embodiment of the present application, the keep-alive strategy further includes the following: playing a silent audio signal. In one embodiment of the present application, the keep-alive strategy is designed to cause the imaging device to determine whether the imaging device is in a data export state, and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. In one embodiment of the present application, when executed by the processor, the computer program further implements the following step: Disconnecting the Bluetooth connection if the application returns to the foreground of the terminal device. In one embodiment of the present application, the computer program, when executed by the processor, further implements the following steps: displaying the export progress of the data file on the terminal device if the application switches to the background of the terminal device; and / or, synchronizing the export progress of the data file with the imaging device based on the communication link, so that the export progress of the data file is displayed on the imaging device if the application switches to the background of the terminal device. It should be noted that the user information (including, but not limited to, information about the user's device or personal data, etc.) and data (including, but not limited to, data for analytical purposes, stored data, or displayed data, etc.) used in this application consist exclusively of information and data whose use has been fully authorized by the user or all parties involved, and that the collection, use, and processing of the data in question must be in accordance with the relevant regulations. A person skilled in the art will recognize that the methods of the aforementioned embodiments can be implemented wholly or partially by issuing instructions to appropriate hardware using a computer program. The computer program can be stored on a non-volatile, computer-readable storage medium. The execution of the computer program may include steps of the aforementioned method implementations. Any reference to a memory, database, or other media used in the embodiments provided in the present application may include at least one non-volatile memory and / or one volatile memory.Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, embedded high-density non-volatile memory, resistive random-access memory (ReRAM), magnetoresistive random-access memory (MRAM), ferroelectric random-access memory (FRAM), phase-change memory (PCM), or graphene memory, etc. Volatile memory can include random-access memory (RAM) or external cache memory, etc. For example, but not limited to, working memory can take various forms, such as static random-access memory (SRAM) or dynamic random-access memory (DRAM), etc.A database included in the embodiments provided in the present application may include at least either a relational database or a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, etc. A processor used in the embodiments described in the present application may be, but is not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic circuit, or a quantum computer-based data processing logic circuit. The technical features of the aforementioned embodiments can be combined in any way. For the sake of clarity, not all possible combinations of the technical features of the aforementioned embodiments are described. However, as long as there is no contradiction between these technical features, it can be assumed that the combination falls within the scope of this description. The preceding examples describe only some embodiments of the present application; although their description is relatively specific and detailed, it should not be construed as limiting the scope of the present application. It should be noted that a person skilled in the art can make various modifications and improvements without departing from the concept of the present application, and that all of these fall within the scope of protection of the present application. The scope of protection of the present application is therefore determined by the attached claims.
Claims
A data export method applied in an end device, comprising: maintaining a communication link with an imaging device; exporting a data file from the imaging device to an application of the end device based on the communication link; applying the predefined keep-alive strategy to ensure that the application continues to export the data file while running in the background of the end device. Method according to claim 1, wherein the communication connection is a WLAN connection. The method of claim 1, wherein the keep-alive strategy comprises: establishing a Bluetooth communication connection with the imaging device in the event that the application switches to the background of the terminal device. The method of claim 3, wherein the keep-alive strategy further comprises: sending a heartbeat packet to the imaging device based on the Bluetooth connection so that the imaging device remains switched on and in a state with an activated communication connection. Method according to claim 1, wherein the keep-alive strategy further comprises: activating a Bluetooth mode for sampling based on a preset time interval. Method according to claim 1, wherein the keep-alive strategy further comprises sending position information. The method of claim 1, wherein the keep-alive strategy further comprises: playing a silent audio signal. Method according to one of claims 5-7, wherein the keep-alive strategy is configured to determine whether the imaging device is in a data export state and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. The method according to claim 3, wherein the method further comprises: disconnecting the Bluetooth connection if the application returns to the foreground of the terminal device. The method according to claim 1, wherein the method further comprises: displaying the export progress of the data file on the terminal device if the application switches to the background of the terminal device; and / or, synchronizing the export progress of the data file with the imaging device based on the communication link so that the export progress of the data file is displayed on the imaging device if the application switches to the background of the terminal device. Terminal device comprising a memory, a communication component, and a processor, wherein the memory stores a computer program; the communication component maintains a communication link with an imaging device; wherein the processor is configured to execute the computer program and, during the execution of the computer program, controls an application of the terminal device to export a data file to the imaging device; the processor uses a predefined keep-alive strategy to ensure that the application continues to export the data file when running in the background of the terminal device. Terminal device according to claim 11, wherein the communication connection is a WLAN connection. Terminal device according to claim 11, wherein the keep-alive strategy comprises the processor controlling the communication component in such a way that a Bluetooth communication connection is established with the imaging device if the application on the terminal device switches to the background. Terminal device according to claim 13, wherein the keep-alive strategy further comprises: sending, by the processor, based on the Bluetooth connection, a heartbeat packet to the imaging device, so that it remains in the switched-on state and in the state of an activated communication connection. Terminal device according to claim 11, wherein the keep-alive strategy further comprises: activating a Bluetooth sampling mode based on a preset time interval in the event that the processor is running the application. Terminal device according to claim 11, wherein the keep-alive strategy further comprises: sending position information in the event that the processor is executing the application. Terminal device according to claim 11, wherein the keep-alive strategy further comprises: playing a silent audio signal in the event that the processor is executing the application. Terminal device according to one of claims 15-17, wherein the keep-alive strategy is configured to determine whether the imaging device is in a data export state and to activate a keep-alive program in the imaging device if the imaging device is in a data export state. Terminal device according to claim 13, wherein the processor is configured to control the communication component in such a way that the Bluetooth connection is disconnected if the application returns to the foreground of the terminal device. Terminal device according to claim 11, wherein the export progress of the data file is displayed on the terminal device if the application switches to the background of the terminal device; and / or, the export progress of the data file to the imaging device is synchronized on the basis of the communication link so that the export progress of the data file is displayed on the imaging device if the application switches to the background of the terminal device.