Data exporting method and terminal device

By using the keep-alive policy to maintain communication connection with the shooting device when running the application in the background of the terminal device, the problem of export failure caused by hanging the operating system is solved, and the effect of stable export is achieved for a long time.

WO2025102292A1PCT designated stage expired Publication Date: 2025-05-22ARASHI VISION INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/131982
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-22

AI Technical Summary

Technical Problem

The operating system on the terminal device will hang up applications running in the background, resulting in the inability to export the data files of the shooting device normally.

Method used

When running the application in the background of the terminal device, maintain communication connection with the shooting device using a predetermined keep-alive policy, such as establishing a Bluetooth communication connection, sending a heartbeat packet, turning on Bluetooth scanning mode, sending positioning information or playing soundless audio, to ensure that the application is not suspended.

Benefits of technology

It realizes that the data files of the shooting device are continuously exported when the terminal device is running in the background, avoiding export interrupts and device shutdown or hibernation, and meeting the needs of long-term stable export.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023131982_22052025_PF_FP_ABST
    Figure CN2023131982_22052025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a data exporting method and a terminal device. An application program on the terminal device maintains a communication connection with a photographing device and, on the basis of the communication connection, data files in the photographing device are exported to the application program on the terminal device, and a preset keep-alive policy is used to allow data files to continue being exported when the application program is running in the background of the terminal device. In the embodiments of the present application, while the application program maintains a communication connection with the photographing device, execution of the task of exporting the data files of the photographing device begins, and the preset keep-alive policy is used while the application program is running in the background of the terminal device, so that the application program is not suspended by the operating system and the data files in the photographing device continue to be exported, thus meeting the need to stably export data files of a photographing device over a long period of time while an application program is running in the background.
Need to check novelty before this filing date? Find Prior Art

Description

Data export method and terminal device Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data export method and terminal device. Background Art

[0002] The shooting device contains a large number of data files such as pictures and videos. The shooting device can be connected to the terminal device, and the data files in the shooting device can be exported to the terminal device using the application on the terminal device. However, this process takes a long time, so the user will put the application in the background of the terminal device to export the data files of the shooting device.

[0003] However, the operating system on the terminal device manages the applications running in the background. When the applications are running in the background, they are often suspended by the operating system, causing the applications to be unable to run normally and thus unable to export the data files of the shooting device.

[0004] Summary of the Invention

[0005] Based on this, it is necessary to provide a data export method and terminal device that can keep the application alive so that the application can run normally in the background to address the above technical problems.

[0006] In a first aspect, the present application provides a data export method, applied to a terminal device, comprising:

[0007] Maintain communication connection with the shooting device;

[0008] Based on the communication connection, exporting the data file in the shooting device in the application of the terminal device;

[0009] A predetermined keep-alive strategy is used to enable the application to keep exporting the data file when running in the background of the terminal device.

[0010] In one embodiment, the communication connection is a WiFi connection.

[0011] In one embodiment, the keep-alive strategy includes: establishing a Bluetooth communication connection with the shooting device when the application enters the background of the terminal device.

[0012] In one embodiment, the keep-alive strategy further includes:

[0013] A heartbeat packet is sent to the photographing device based on the Bluetooth communication connection, so that the photographing device is in a power-on state and a communication connection-open state.

[0014] In one embodiment, the keep-alive strategy further includes: enabling a Bluetooth scanning mode based on a preset time interval.

[0015] In one embodiment, the keep-alive strategy further includes: sending positioning information.

[0016] In one embodiment, the keep-alive strategy further includes: playing silent audio.

[0017] In one embodiment, the keep-alive strategy is used to enable the shooting device to determine whether the state of the shooting device is in the data export state, and when the state of the shooting device is in the data export state, activate the keep-alive program in the shooting device.

[0018] In one embodiment, the method further comprises:

[0019] If the application returns to the foreground of the terminal device, the Bluetooth communication connection is disconnected.

[0020] In one embodiment, the method further comprises:

[0021] When the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or,

[0022] When the application enters the background of the terminal device, the export progress of the data file is synchronized with the shooting device based on the communication connection, so that the export progress of the data file is displayed on the shooting device.

[0023] In a second aspect, the present application further provides a data export device, which is applied to a terminal device and includes:

[0024] A connection module, used to maintain communication connection with the shooting device;

[0025] A first exporting module, configured to export the data file in the shooting device in the application of the terminal device based on the communication connection;

[0026] The second export module is configured to use a predetermined keep-alive strategy to enable the application to keep exporting the data file when the application is running in the background of the terminal device.

[0027] In a third aspect, the present application further provides a terminal device, comprising a memory, a communication component, and a processor, wherein the memory stores a computer program; the communication component maintains a communication connection with a camera;

[0028] The processor is configured to execute the computer program and, when executing the computer program, control an application program of the terminal device to export the data file in the shooting device;

[0029] The processor uses a predetermined keep-alive strategy to enable the application to keep exporting the data file when the application runs in the background of the terminal device.

[0030] In one embodiment, the communication connection is a WiFi connection.

[0031] In one embodiment, the keep-alive strategy includes: when the application enters the background of the terminal device, the processor controls the communication component to establish a Bluetooth communication connection with the shooting device.

[0032] In one embodiment, the keep-alive strategy further includes:

[0033] The processor sends a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and a communication connection-open state.

[0034] In one embodiment, the keep-alive strategy further includes: when the processor executes the application, enabling a Bluetooth scanning mode based on a preset time interval.

[0035] In one embodiment, the keep-alive strategy further includes: sending positioning information when the processor executes the application.

[0036] In one embodiment, the keep-alive strategy further includes: playing silent audio when the processor executes the application.

[0037] In one embodiment, the keep-alive strategy is used to enable the shooting device to determine whether the state of the shooting device is in the data export state, and when the state of the shooting device is in the data export state, activate the keep-alive program in the shooting device.

[0038] In one embodiment, if the application returns to the foreground of the terminal device, the processor controls the communication component to disconnect the Bluetooth communication connection.

[0039] In one embodiment, when the application enters the background of the terminal device, the export progress of the data file is displayed on the terminal device; and / or,

[0040] When the application enters the background of the terminal device, the export progress of the data file is synchronized with the shooting device based on the communication connection, so that the export progress of the data file is displayed on the shooting device.

[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0042] Maintain communication connection with the shooting device;

[0043] Based on the communication connection, exporting the data file in the shooting device in the application of the terminal device;

[0044] A predetermined keep-alive strategy is used to enable the application to keep exporting the data file when running in the background of the terminal device.

[0045] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:

[0046] Maintain communication connection with the shooting device;

[0047] Based on the communication connection, exporting the data file in the shooting device in the application of the terminal device;

[0048] A predetermined keep-alive strategy is used to enable the application to keep exporting the data file when running in the background of the terminal device.

[0049] In the above-mentioned data export method and terminal device, the application on the terminal device maintains a communication connection with the shooting device, and based on the communication connection, the data files in the shooting device are exported in the application of the terminal device, and a predetermined keep-alive strategy is used to enable the application to maintain the export of data files when the terminal device is running in the background. In the embodiment of the present application, when the application maintains a communication connection with the shooting device, the task of exporting the data files of the shooting device is started. When the application is running in the background of the terminal device, the predetermined keep-alive strategy is adopted so that the application is not suspended by the operating system and continues to export the data files of the shooting device. This can well meet the requirement of being able to export the data files of the shooting device for a long time and stably when the application is running in the background. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0051] FIG1 is a diagram illustrating an application environment of a data export method according to an embodiment;

[0052] FIG2 is a schematic diagram of a flow chart of a data export method in one embodiment;

[0053] FIG3 is a schematic flow chart of a data export method in another embodiment;

[0054] FIG4 is a structural block diagram of a data export device in one embodiment;

[0055] FIG5 is a schematic structural diagram of a data terminal device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0057] In the related art, data files are exported by using the download interface provided by the operating system and setting the download mode to background mode. However, the download interface provided by the operating system actually entrusts the download task to the operating system process for management. The operating system will manage the export task based on the overall operation status of the terminal device, so the export speed cannot be guaranteed, and it is easy for the export to be disconnected / the application to be directly killed by the operating system.

[0058] The data export method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. The application environment includes a terminal device 1 and a shooting device 2. When the terminal device 1 establishes a communication connection with the shooting device 2, the terminal device 2 is used to export the data file in the shooting device 3. The shooting device 3 can be understood as an electronic device with a photo or video recording function, such as a sports camera, a gimbal with a photo or video recording function, or a drone with a photo or video recording function. The terminal device 1 can include a mobile phone, a tablet computer, a desktop computer, a wearable device, a remote control with a processing function, etc.

[0059] In the case of an action camera, due to its compact size and portability, it is often used in sports scenarios. Furthermore, due to the size requirements of action cameras, their battery capacity is limited. Therefore, low-power control is essential for action cameras. Existing action cameras all have a low-power mode, for example, shutting down or putting them into sleep mode if the user does not operate them for a period of time. In existing action cameras, when a user exports data such as videos or images from the action camera within an application on a terminal device, the application must remain running in the foreground of the terminal device to prevent the application from being suspended in the background, leading to data export failure. Data transmission and interaction can also prevent the action camera from shutting down or going into sleep mode. However, exporting large files from such action cameras requires the user to keep the application running in the foreground for a long time, limiting other user operations on the terminal device. Furthermore, unexpected actions such as phone calls, alarms, and turning off the phone screen can interrupt the application's background operation, causing the action camera to shut down or go into sleep mode. To address the above technical issues, the solution of the present application ensures the action camera's continuous operation by sending heartbeat packets to the action camera from the terminal device without changing the action camera's low-power logic. Moreover, when the operating system of the terminal device is the IOS system, in the IOS system, the application will be controlled by the IOS system when running in the background of the terminal device, and the Bluetooth communication connection can be kept active continuously without violating the rules of the IOS system and without audit risks.

[0060] In an exemplary embodiment, as shown in FIG2 , a data export method is provided, which is described by taking the method applied to the terminal device in FIG1 as an example, and includes the following S201 to S203 .

[0061] S201, maintaining a communication connection with a shooting device.

[0062] In this embodiment, the terminal device maintains a communication connection with the shooting device. The communication connection can be a WiFi connection, a Bluetooth communication connection, a near-field communication connection, etc. The communication connection is used to transfer data files between the terminal device and the shooting device. Therefore, an appropriate communication connection method can be selected based on actual needs. For example, based on the export rate requirement, the communication connection method can be selected as a WiFi connection.

[0063] In one embodiment, since the camera has its own network card, the application can obtain the specified Wi-Fi list by scanning the camera, and automatically connect to the corresponding camera's Wi-Fi through the interface NEHotspotConfigurationManager::apply(_configuration:NEHotspotConfiguration) when connecting to the camera.

[0064] S202 : Based on the communication connection, export the data file in the shooting device in the application of the terminal device.

[0065] In this embodiment, the terminal device receives an external operation instruction and, in response to the external operation instruction, uses an application to export data files from the camera device. For example, exporting data files includes backing up data files from the camera device to the terminal device, or migrating data files from the camera device to the terminal device.

[0066] S203: Using a predetermined keep-alive strategy, the application program keeps exporting the data file when running in the background of the terminal device.

[0067] The keep-alive strategy can include establishing a Bluetooth connection with a camera when the application enters the background of the terminal device, enabling Bluetooth scanning mode at preset intervals, or controlling the terminal device to send location information or play silent audio. For example, playing silent audio can prevent the user from experiencing any visual issues while using other applications on the terminal device.

[0068] In this embodiment, after entering the background, the application will be actively executed for a period of time, and then it will be suspended by the operating system and become inactive, during which time it cannot perform any operations. Using a predetermined keep-alive strategy, the application can be prevented from being suspended by the operating system while running in the background, thereby allowing the data files of the camera device to be continuously exported.

[0069] In one embodiment, it can be determined whether the application enters the background through UIApplication.didEnterBackgroundNotification.

[0070] In the above-mentioned data export method, the terminal device maintains a communication connection with the shooting device, and based on the communication connection, the data files in the shooting device are exported in the application of the terminal device, and a predetermined keep-alive strategy is used to enable the application to maintain the export of data files when the terminal device is running in the background. In the embodiment of the present application, when the application maintains a communication connection with the shooting device, the task of exporting the data files of the shooting device is started. When the application is running in the background of the terminal device, the predetermined keep-alive strategy is adopted so that the application is not suspended by the operating system and continues to export the data files of the shooting device. This can well meet the requirement of being able to export the data files of the shooting device for a long time and stably when the application is running in the background.

[0071] In one embodiment, when the application is in the foreground, the communication connection between the terminal device and the camera for exporting data files can be one of multiple methods, such as WiFi, Bluetooth, or Near Field Communication. When the application is in the background, the communication connection between the terminal device and the camera for exporting data files can be another of multiple methods, such as WiFi, Bluetooth, or Near Field Communication, to balance power consumption and data export speed. For example, WiFi connection has a fast data export speed and high power consumption, while Bluetooth connection has a slow data export speed and low power consumption. Different communication connection methods can be switched while maintaining the communication connection to form different power modes.

[0072] In one embodiment, when the application is in the foreground and the background, the communication connection method between the terminal device and the shooting device for exporting data files can be the same as a WiFi connection, Bluetooth communication connection, near-field communication connection, etc., so that the data file export speed when the application is in the background is close to or consistent with that when the application is running in the foreground. The user can estimate the data export completion time after the application enters the background based on the data export speed of the application when it is in the foreground.

[0073] In one embodiment, the keep-alive strategy further includes: sending a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and the communication connection is in an open state.

[0074] In this embodiment, heartbeat packets are continuously sent to the shooting device based on the Bluetooth communication connection to indicate to the shooting device that the application or the shooting device itself is currently in the data export state, so that the shooting device is in the power-on state and the communication connection is opened.

[0075] In one embodiment, the Bluetooth of the camera can be enabled when the camera is turned on. When the processor on the terminal device detects that the application has entered the background of the terminal device, the application calls the scanForPeripheralsWithServices interface to search for the camera. After finding the camera, it calls the TelinkBluetoothManager::connectPeripheral:(CBPeripheral*)peripheral timeout:(NSTimeInterval)timeout resultBlock:(peripheralResultCallBack) block interface to establish a Bluetooth communication connection with the camera.

[0076] In one embodiment, after the application connects to the Bluetooth of the shooting device, it can write data through the interface writeValue:(NSData*)value toPeripheral:(CBPeripheral*)peripheral. The data can be transmitted once per second to inform the shooting device that it is in the data export state.

[0077] In one embodiment, after the heartbeat packet is received in the photographing device, the firmware operation in the photographing device remains in a powered-on state and a communication connection open state.

[0078] In one possible implementation, the application sends heartbeat packets to the camera at preset intervals to keep the camera powered on and the communication connection open. Alternatively, the heartbeat packet transmission interval can be continuously adjusted based on the application's running state to keep the camera powered on and the communication connection open.

[0079] In an embodiment of the present application, a heartbeat packet is sent to the shooting device via a Bluetooth communication connection, so that the shooting device is in a powered-on state and a communication connection is enabled. The Bluetooth communication connection does not occupy additional performance resources of the operating system and does not conflict with the audio playback on the terminal device. It is well suitable for exporting data files of hardware applications such as shooting devices, does not violate the operating system rules, and does not pose an audit risk.

[0080] In one embodiment, when the keep-alive strategy includes any one of: turning on the Bluetooth scanning mode based on a preset time interval; sending positioning information; playing silent audio, the keep-alive strategy is used to enable the shooting device to determine whether the status of the shooting device is in the data export state, and when the status of the shooting device is in the data export state, activate the keep-alive program in the shooting device.

[0081] In this embodiment, the Bluetooth scanning mode is turned on based on a preset time interval, a positioning message is sent, or silent audio is played so that the application is not suspended by the operating system. At this time, there is no status interaction between the application and the shooting device, that is, the terminal device does not send a heartbeat packet to the shooting device to inform the shooting device whether the application is in the data export state at this moment. The shooting device needs to determine whether its own state is in the data export state; if the state of the shooting device is the data export state, the keep-alive program in the shooting device is activated to keep the shooting device in the power-on state and the communication connection state, and the application can export the data files in the shooting device based on the communication connection.

[0082] In one embodiment, the data export method further includes: if the application returns to the foreground of the terminal device, disconnecting the Bluetooth communication connection.

[0083] In this embodiment, if the data file export of the shooting device is completed and the application returns to the foreground of the terminal device, the Bluetooth communication connection is disconnected and the communication connection is terminated.

[0084] In one embodiment, the data export method also includes: when the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or, when the application enters the background of the terminal device, synchronizing the export progress of the data file to the shooting device based on the communication connection, so that the export progress of the data file is displayed on the shooting device.

[0085] In one embodiment, when the application returns to the foreground or the data export is completed, the interface TelinkBluetoothManager::cancelConnectionPeripheral:(CBPeripheral*)peripheral timeout:(NSTimeInterval)timeout resultBlock:(_Nullable peripheralResultCallBack)block can be called to disconnect the Bluetooth communication connection and terminate Bluetooth communication.

[0086] In one embodiment, it is possible to determine whether the application enters the foreground by monitoring the system notification UIApplication.willEnterForegroundNotification.

[0087] With existing shooting devices, especially sports cameras, users need to export videos or multiple pictures to terminal devices such as mobile phones after shooting them, so as to view and confirm the viewing angle, lighting, etc., so as to quickly adjust them for the next shooting. This type of export requires users to know the download progress at any time so that users can make adjustments when shooting under time-related conditions such as scene and lighting. In this embodiment, when the application enters the background of the terminal device, a small window with a download progress bar is displayed in the foreground of the terminal device, or a download progress percentage value is displayed in the status bar at the top of the terminal device, so that the download progress is visualized in the foreground, and the user can observe the export status of the data file in real time. And / or, when the application enters the background of the terminal device, the terminal device synchronizes the export progress of the data file to the shooting device based on the communication connection, and the export progress of the data file is visually displayed on the shooting device through a progress bar, percentage value, etc., so that the user can observe the export status of the data file in real time, thereby improving the user experience.

[0088] For example, after the application connects to the Bluetooth of the camera, it can write data through the interface writeValue:(NSData*)value toPeripheral:(CBPeripheral*)peripheral and transmit it once per second to inform the camera of the specific stage of data export.

[0089] Figure 3 is a flow chart illustrating a data export method according to one embodiment. As shown in Figure 3, a terminal device establishes a communication connection with a camera, and based on this connection, the data file export task begins. When the application enters the background of the terminal device, a Bluetooth communication connection is established with the camera, and a heartbeat packet is sent to the camera based on the Bluetooth communication connection. The camera receives the heartbeat packet from the terminal device and maintains the camera in a powered-on state and a communication connection. The application is kept alive for a long time and performs data export. When the application enters the foreground of the terminal device, the Bluetooth communication connection is disconnected and the communication connection is terminated.

[0090] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0091] Based on the same inventive concept, the present application also provides a data export device for implementing the aforementioned data export method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations in one or more data export device embodiments provided below can be found in the above-mentioned limitations on the data export method and will not be repeated here.

[0092] In an exemplary embodiment, as shown in FIG4 , a data export device is provided, comprising: a connection module 11 , a first export module 12 , and a second export module 13 , wherein:

[0093] A connection module 11 is used to maintain a communication connection with the shooting device;

[0094] A first exporting module 12 is configured to export data files in the photographing device in an application of the terminal device based on the communication connection;

[0095] The second exporting module 13 is configured to use a predetermined keep-alive strategy to enable the application to keep exporting the data file when the application is running in the background of the terminal device.

[0096] In one embodiment, the communication connection is a WiFi connection.

[0097] In one embodiment, the keep-alive strategy includes: establishing a Bluetooth communication connection with the camera when the application enters the background of the terminal device.

[0098] In one embodiment, the keep-alive strategy further includes: sending a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and the communication connection is in an open state.

[0099] In one embodiment, the keep-alive strategy further includes: starting a Bluetooth scanning mode based on a preset time interval.

[0100] In one embodiment, the keep-alive strategy further includes: sending positioning information.

[0101] In one embodiment, the keep-alive strategy further includes: playing silent audio.

[0102] In one embodiment, the keep-alive policy is used to enable the photographing device to determine whether the state of the photographing device is in the data export state, and activate the keep-alive program in the photographing device when the state of the photographing device is in the data export state.

[0103] In one embodiment, the data exporting device further comprises:

[0104] The disconnection module is used to disconnect the Bluetooth communication connection if the application returns to the foreground of the terminal device.

[0105] In one embodiment, the data exporting device further comprises:

[0106] A display module is configured to display the export progress of the data file on the terminal device when the application enters the background of the terminal device; and / or,

[0107] The synchronization module is used to synchronize the export progress of the data file to the shooting device based on the communication connection when the application enters the background of the terminal device, so that the export progress of the data file is displayed on the shooting device.

[0108] Each module in the above-mentioned data export device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device in hardware form, or can be stored in the memory of the terminal device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0109] In one embodiment, a terminal device is provided, the internal structure of which may be shown in Figure 5. The terminal 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 connected 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 processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the terminal device is used to exchange information between the processor and external devices. The communication interface of the terminal device is used to communicate with external terminals via wired or wireless means, and the wireless means may be implemented via Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When executed by the processor, the computer program implements a data export method. The display unit of the terminal device is used to form a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the terminal device shell, or an external keyboard, touchpad or mouse.

[0110] Those skilled in the art will understand that the structure shown in Figure 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the terminal device to which the solution of the present application is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0111] In an exemplary embodiment, a terminal device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0112] Maintain communication connection with the shooting device;

[0113] Based on the communication connection, export the data files in the shooting device in the application of the terminal device;

[0114] A predetermined keep-alive strategy is used to enable the application to keep exporting data files when the application runs in the background of the terminal device.

[0115] In one embodiment, the communication connection is a WiFi connection.

[0116] In one embodiment, the keep-alive strategy includes: establishing a Bluetooth communication connection with the camera when the application enters the background of the terminal device.

[0117] In one embodiment, the keep-alive strategy further includes: sending a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and the communication connection is in an open state.

[0118] In one embodiment, the keep-alive strategy further includes: starting a Bluetooth scanning mode based on a preset time interval.

[0119] In one embodiment, the keep-alive strategy further includes: sending positioning information.

[0120] In one embodiment, the keep-alive strategy further includes: playing silent audio.

[0121] In one embodiment, the keep-alive policy is used to enable the photographing device to determine whether the state of the photographing device is in the data export state, and activate the keep-alive program in the photographing device when the state of the photographing device is in the data export state.

[0122] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0123] If the application returns to the foreground of the terminal device, the Bluetooth communication connection is disconnected.

[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0125] When the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or,

[0126] When the application enters the background of the terminal device, the export progress of the data file is synchronized with the photographing device based on the communication connection, so that the export progress of the data file is displayed on the photographing device.

[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0128] Maintain communication connection with the shooting device;

[0129] Based on the communication connection, export the data files in the shooting device in the application of the terminal device;

[0130] A predetermined keep-alive strategy is used to enable the application to keep exporting data files when the application runs in the background of the terminal device.

[0131] In one embodiment, the communication connection is a WiFi connection.

[0132] In one embodiment, the keep-alive strategy includes: establishing a Bluetooth communication connection with the camera when the application enters the background of the terminal device.

[0133] In one embodiment, the keep-alive strategy further includes: sending a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and the communication connection is in an open state.

[0134] In one embodiment, the keep-alive strategy further includes: starting a Bluetooth scanning mode based on a preset time interval.

[0135] In one embodiment, the keep-alive strategy further includes: sending positioning information.

[0136] In one embodiment, the keep-alive strategy further includes: playing silent audio.

[0137] In one embodiment, the keep-alive policy is used to enable the photographing device to determine whether the state of the photographing device is in the data export state, and activate the keep-alive program in the photographing device when the state of the photographing device is in the data export state.

[0138] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0139] If the application returns to the foreground of the terminal device, the Bluetooth communication connection is disconnected.

[0140] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0141] When the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or,

[0142] When the application enters the background of the terminal device, the export progress of the data file is synchronized with the photographing device based on the communication connection, so that the export progress of the data file is displayed on the photographing device.

[0143] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0144] Maintain communication connection with the shooting device;

[0145] Based on the communication connection, export the data files in the shooting device in the application of the terminal device;

[0146] A predetermined keep-alive strategy is used to enable the application to keep exporting data files when the application runs in the background of the terminal device.

[0147] In one embodiment, the communication connection is a WiFi connection.

[0148] In one embodiment, the keep-alive strategy includes: establishing a Bluetooth communication connection with the camera when the application enters the background of the terminal device.

[0149] In one embodiment, the keep-alive strategy further includes: sending a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and the communication connection is in an open state.

[0150] In one embodiment, the keep-alive strategy further includes: starting a Bluetooth scanning mode based on a preset time interval.

[0151] In one embodiment, the keep-alive strategy further includes: sending positioning information.

[0152] In one embodiment, the keep-alive strategy further includes: playing silent audio.

[0153] In one embodiment, the keep-alive policy is used to enable the photographing device to determine whether the state of the photographing device is in the data export state, and activate the keep-alive program in the photographing device when the state of the photographing device is in the data export state.

[0154] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0155] If the application returns to the foreground of the terminal device, the Bluetooth communication connection is disconnected.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0157] When the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or,

[0158] When the application enters the background of the terminal device, the export progress of the data file is synchronized with the photographing device based on the communication connection, so that the export progress of the data file is displayed on the photographing device.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0160] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0161] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A data export method, applied to a terminal device, wherein, the method includes: maintaining a communication connection with a shooting device; based on the communication connection, exporting a data file in the shooting device in an application of the terminal device; using a predetermined keep-alive policy to keep the export of the data file when the application runs in the background of the terminal device.

2. The method according to claim 1, wherein, the communication connection is a WiFi connection.

3. The method according to claim 1, wherein, the keep-alive policy includes: when the application enters the background of the terminal device, establishing a Bluetooth communication connection with the shooting device.

4. The method according to claim 3, wherein, the keep-alive policy further includes: sending a heartbeat packet to the shooting device based on the Bluetooth communication connection so that the shooting device is in a powered-on state and a communication connection enabled state.

5. The method according to claim 1, wherein, the keep-alive policy further includes: enabling a Bluetooth scanning mode based on a preset time interval.

6. The method according to claim 1, wherein, the keep-alive policy further includes: sending location information.

7. The method according to claim 1, wherein, the keep-alive policy further includes: playing a silent audio.

8. The method according to any one of claims 5-7, wherein, the keep-alive policy is used to enable the shooting device to judge whether the state of the shooting device is in a data export state, and when the state of the shooting device is in a data export state, activating a keep-alive program in the shooting device.

9. The method according to claim 3, wherein, the method further includes: if the application returns to the foreground of the terminal device, disconnecting the Bluetooth communication connection.

10. The method according to claim 1, wherein, the method further includes: when the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or, when the application enters the background of the terminal device, synchronizing the export progress of the data file to the shooting device based on the communication connection so that the export progress of the data file is displayed on the shooting device.

11. A terminal device, wherein, including a memory, a communication component and a processor, the memory stores a computer program; the communication component maintains a communication connection with a shooting device; the processor is used to execute the computer program and when executing the computer program, control the export of the data file in the shooting device in an application of the terminal device; the processor uses a predetermined keep-alive policy to keep the export of the data file when the application runs in the background of the terminal device.

12. The terminal device according to claim 11, wherein, the communication connection is a WiFi connection.

13. The terminal device according to claim 11, wherein, The keep-alive strategy includes: when the application enters the background of the terminal device, the processor controls the communication component to establish a Bluetooth communication connection with the shooting device.

14. The terminal device according to claim 13, in, The keep-alive strategy also includes: The processor sends a heartbeat packet to the shooting device based on the Bluetooth communication connection, so that the shooting device is in a power-on state and a communication connection-open state.

15. The terminal device according to claim 11, in, The keep-alive strategy further includes: when the processor executes the application, starting a Bluetooth scanning mode based on a preset time interval.

16. The terminal device according to claim 11, in, The keep-alive strategy further includes: sending positioning information when the processor executes the application.

17. The terminal device according to claim 11, in, The keep-alive strategy further includes: playing silent audio when the processor executes the application.

18. The terminal device according to any one of claims 15 to 17, in, The keep-alive strategy is used to enable the photographing device to determine whether the state of the photographing device is in the data export state, and to activate the photographing device if the state of the photographing device is in the data export state. Keep-alive procedure in the camera device.

19. The terminal device according to claim 13, in, If the application returns to the foreground of the terminal device, the processor controls the communication component to disconnect the Bluetooth communication connection.

20. The terminal device according to claim 11, in, When the application enters the background of the terminal device, displaying the export progress of the data file on the terminal device; and / or, When the application enters the background of the terminal device, the export progress of the data file is synchronized to the shooting device based on the communication connection, so that the export progress of the data file is displayed on the shooting device.

Citation Information

Patent Citations

  • Secure and encrypted heartbeat protocol

    CN110999223A

  • Shooting method and device, electronic equipment and storage medium

    CN111953903A

  • Method and system for continuously connecting BLE based on Android equipment in screen-off state

    CN112306216A

  • Communication method and device, electronic equipment and computer storage medium

    CN113825123A