Data sending method, electronic device, communication system, storage medium, and chip
By realizing intermittent data transmission with the second electronic device in the first electronic device such as a code table, the problem of power consumption and transmission time consumption of data connection is solved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2023/137960
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2025-06-19
AI Technical Summary
In the prior art, the battery life of the code table is shortened due to maintaining data connections, and the data transmission time is taken after the exercise, which affects the user experience.
By controlling the first electronic device (such as a code table) to establish a communication connection with the second electronic device (such as a watch or a mobile phone) when the preset condition is met, a portion of the user data is sent, and the connection is disconnected.
The power consumption of the first electronic device and the second electronic device is reduced, the time for users to wait for the end of data transmission is reduced, and the user experience is improved.
Smart Images

Figure CN2023137960_19062025_PF_FP_ABST
Abstract
Description
Data transmission method, electronic device, communication system, storage medium and chip Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data sending method, electronic equipment, communication system, storage medium and chip. Background Art
[0002] A computer is usually installed on a cycling vehicle to display and record data in multiple dimensions, such as cycling distance, duration, speed, heart rate, and cadence, providing data support for scientific cycling.
[0003] Currently, a bike meter usually synchronizes recorded data to mobile phones, watches, and other terminal devices in real time via Bluetooth connection while the user is riding. This requires the bike meter and the terminal device to maintain a Bluetooth connection at all times, which consumes too much power to synchronize data and affects the battery life of the bike meter. Another approach is to establish a Bluetooth connection with a terminal device such as a mobile phone or watch after the user finishes riding, and send the recorded data to the terminal device via Bluetooth connection to complete data synchronization. However, the amount of data generated during the riding process is usually large, and the data transmission rate of Bluetooth is low, resulting in a long data transmission time. This may cause the user to stay next to the vehicle after each ride and wait for the data transmission to be completed before leaving, or to remove the bike meter from the vehicle and carry it with them to transmit data, resulting in a poor user experience. Technical issues
[0004] Embodiments of the present application provide a data sending method, electronic device, communication system, storage medium, and chip to address the problems in the prior art of reduced battery life due to maintaining data connection, and the user experience being affected by the long waiting time for data transmission after exercise. Technical Solutions
[0005] A first aspect of an embodiment of the present application provides a data sending method, which is applied to a communication system, wherein the communication system includes a first electronic device and a second electronic device, and the method includes: controlling the first electronic device to continuously collect user data; when it is detected that the user data meets a first preset condition, controlling the first electronic device to establish a communication connection with the second electronic device; controlling the first electronic device to determine first target data from the user data; and controlling the first electronic device to send the first target data to the second electronic device via the communication connection.
[0006] In combination with the first aspect, in a first possible implementation of the first aspect, controlling the first electronic device to determine the first target data from the user data includes: controlling the first electronic device to determine the user data collected between a first moment and a second moment as the first target data; wherein the first moment is the moment when the first electronic device starts collecting user data, and the second moment is the moment when it is detected that the user data meets the first preset condition.
[0007] In conjunction with the first aspect, in a second possible implementation of the first aspect, the first preset condition includes at least one of the following:
[0008] detecting that the amount of user data collected by the first electronic device between the first moment and the second moment is greater than or equal to a data amount threshold;
[0009] It is detected that the time interval between the first moment and the second moment is greater than or equal to a time threshold.
[0010] In combination with the first aspect, in a third possible implementation manner of the first aspect, the method further includes: upon detecting that the sending of the first target data is completed, controlling the first electronic device or the second electronic device to disconnect the communication connection.
[0011] In combination with the first aspect, in a fourth possible implementation of the first aspect, the method further includes: when it is detected that the first electronic device meets the second preset condition, controlling the first electronic device to stop collecting user data and controlling the establishment of a communication connection between the first electronic device and the second electronic device; controlling the first electronic device to determine second target data from the user data; and controlling the first electronic device to send the second target data to the second electronic device via the communication connection.
[0012] In conjunction with the first aspect, in a fifth possible implementation of the first aspect, controlling the first electronic device to determine the second target data from the user data includes: controlling the first electronic device to determine the user data collected between a first moment and a third moment as the first target data. The first moment is the moment when the first electronic device begins collecting the user data, and the third moment is the moment when the first electronic device detects that it meets the second preset condition.
[0013] In combination with the first aspect, in a sixth possible implementation manner of the first aspect, the second preset condition includes: detecting that the first electronic device receives a control instruction for controlling the first electronic device to stop collecting user data.
[0014] In combination with the first aspect, in a seventh possible implementation manner of the first aspect, the method further includes: upon detecting that the sending of the second target data is completed, controlling the first electronic device or the second electronic device to disconnect the communication connection.
[0015] In combination with the first aspect, in the eighth possible implementation of the first aspect, the system also includes a third electronic device and a server, and the method also includes: controlling the second electronic device to send the received first target data and second target data to the third electronic device; controlling the third electronic device to send the received first target data and second target data to the server.
[0016] In combination with the first aspect, in a ninth possible implementation of the first aspect, the user data includes: at least one of riding distance, riding time, riding speed, user heart rate, calorie consumption, slope during riding, riding trajectory and pedaling frequency.
[0017] A second aspect of an embodiment of the present application provides a data sending method, applied to a first electronic device, the method comprising: continuously collecting user data; establishing a communication connection with a second electronic device when it is detected that the user data meets a first preset condition; determining first target data from the user data; and sending the first target data to the second electronic device via the communication connection.
[0018] In combination with the second aspect, in a first possible implementation of the second aspect, determining the first target data from the user data includes: determining the user data collected between the first moment and the second moment as the second target data; wherein the first moment is the moment when the first electronic device starts to collect user data, and the second moment is the moment when the user data is detected to meet the first preset condition.
[0019] In conjunction with the second aspect, in a second possible implementation manner of the second aspect, the first preset condition includes at least one of the following:
[0020] The amount of user data collected by the first electronic device between the first moment and the second moment is greater than or equal to a data amount threshold.
[0021] The time interval between the first moment and the second moment is greater than or equal to the time threshold.
[0022] In combination with the second aspect, in a third possible implementation manner of the second aspect, the method further includes: upon detecting that the sending of the first target data is completed, disconnecting the communication connection.
[0023] In combination with the second aspect, in a fourth possible implementation of the second aspect, the method further includes: when it is detected that the first electronic device meets the second preset condition, stopping collecting user data and establishing a communication connection with the second electronic device; determining second target data from the user data; and sending the second target data to the second electronic device via the communication connection.
[0024] In combination with the second aspect, in the fifth possible implementation of the second aspect, determining the second target data from the user data includes: determining the user data collected between the first moment and the third moment as the second target data; wherein the first moment is the moment when the first electronic device starts to collect user data, and the third moment is the moment when it is detected that the first electronic device meets the second preset condition.
[0025] In combination with the second aspect, in a sixth possible implementation manner of the second aspect, the second preset condition includes: detecting that the first electronic device receives a control instruction for controlling the first electronic device to stop collecting user data.
[0026] In combination with the second aspect, in a seventh possible implementation manner of the second aspect, the method further includes: upon detecting that the sending of the second target data is completed, disconnecting the communication connection.
[0027] In combination with the second aspect, in an eighth possible implementation of the second aspect, the user data includes: at least one of riding distance, riding time, riding speed, user heart rate, calorie consumption, slope during riding, riding trajectory and pedaling frequency.
[0028] A third aspect of an embodiment of the present application provides a communication system, including a first electronic device and a second electronic device, wherein the first electronic device is configured to execute the data sending method shown in the second aspect above; and the second electronic device is configured to receive user data sent by the first electronic device.
[0029] In combination with the third aspect, in a first possible implementation of the third aspect, the system also includes a third electronic device, wherein the second electronic device is further configured to send the received user data to the third electronic device; the third electronic device is configured to receive the user data and send the received user data to the server.
[0030] In combination with the third aspect, in a second possible implementation of the third aspect, the second electronic device is a wearable device.
[0031] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the data sending method shown in the first and second aspects above.
[0032] A fifth aspect of an embodiment of the present application provides a chip, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the data sending method shown in the first and second aspects above is implemented.
[0033] A sixth aspect of the embodiments of the present application provides a computer program product, which stores a computer program. When the computer program is executed by a processor, it can implement the data sending method shown in the first and second aspects above. Beneficial effects
[0034] Using the method provided in this embodiment, while a first electronic device (such as a cycling computer) collects user data in real time, it establishes a communication connection with a second electronic device (such as a watch or mobile phone) at intervals, based on preset conditions. The connection then transmits a portion of the user data to the second electronic device, and then disconnects. This method not only reduces power consumption for both the first and second electronic devices, but also ensures that most of the user data has been transferred to the second electronic device by the time the first electronic device completes its data collection task. This eliminates the need for users to wait, or only requires a short wait, for data transfer to complete, resulting in a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1 is a schematic diagram of a communication system to which a data transmission method provided in an embodiment of the present application is applicable;
[0036] FIG2A is a schematic diagram of a scenario of a data sending method provided in an embodiment of the present application;
[0037] FIG2B is a schematic diagram of a scenario of a data sending method provided by another embodiment of the present application;
[0038] FIG3 is a schematic interactive flow chart of a data sending method provided in an embodiment of the present application;
[0039] FIG4 is a schematic interactive flow chart of a data sending method provided in another embodiment of the present application;
[0040] FIG5 is a schematic diagram of sending data to a server according to an embodiment of the present application;
[0041] FIG6 is a schematic diagram of sending data to a server provided by another embodiment of the present application. Modes for Carrying Out the Invention
[0042] The technical solutions provided in the embodiments of the present application are described below with reference to the accompanying drawings.
[0043] It should be understood that in the description of the embodiments of this application, unless otherwise specified, " / " means or. For example, A / B can mean A or B. The term "and / or" herein is merely a description of an association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of this embodiment, unless otherwise specified, "a plurality" means two or more.
[0044] In this embodiment, the terms "first," "second," "third," etc. are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first," "second," or "third" may explicitly or implicitly include one or more of the features.
[0045] FIG1 is a schematic diagram of a communication system applicable to the data transmission method provided in an embodiment of the present application. The communication system includes a first electronic device, a second electronic device, and a server. Optionally, the communication system also includes a third electronic device. Each device is described in detail below.
[0046] The first electronic device can be installed on a bicycle, motorcycle, or other cycling vehicle and is used to collect and display user data during cycling. For example, the first electronic device can be a cycling computer. The user data includes at least one of multiple dimensions, such as cycling distance, cycling duration, cycling speed, user heart rate, calorie consumption, slope during cycling, cycling trajectory, pedaling frequency, altitude information, air pressure, and user body temperature. This embodiment does not limit the specific content of the user data.
[0047] It should be noted that the user data may be collected by the first electronic device itself, or may be collected and sent by other sensors or other electronic devices to the first electronic device. This embodiment does not limit the source of the user data.
[0048] For example, after the bike is turned on in sports mode, it can automatically collect user data such as riding distance and riding time. When the bike is connected to electronic devices such as heart rate belts, cadence meters, power meters, sensors, etc. through ANT+, Bluetooth, etc., it can also receive data such as user body temperature, calorie consumption, and pedaling frequency sent by the electronic devices, thereby increasing the data dimension and providing data support for the user's scientific training and riding. The built-in sensors of the bike can also generate corresponding other user data based on the received user heart rate or user body temperature data.
[0049] Furthermore, the storage space of the first electronic device, such as a bike computer, is limited, and the amount of data collected during each ride is large. Understandably, after a long period of operation, the storage space of the first electronic device may become full, preventing the newly collected data from being stored or overwriting other data. To properly preserve user data and synchronize data with apps associated with the first electronic device, after each ride, the first electronic device needs to send the collected user data to a server for storage based on user operations to prevent data loss.
[0050] Since first electronic devices such as cycling computers typically support short-range wireless communication technologies such as Bluetooth (BT), ultra-wideband (UWB), and near-field communication (NFC), but do not support long-range wireless communication technologies such as wireless fidelity (Wi-Fi) and cellular communication technologies, they need to first send the collected user data to a second electronic device, which then uses the second electronic device to send the user data to the server.
[0051] The second electronic device is connected to the first electronic device via BT, UWB, NFC, or other methods, and receives user data sent by the first electronic device based on the communication connection. For example, the second electronic device can be a wearable device such as a smartwatch or smart bracelet, or a terminal device such as a mobile phone, tablet computer, or laptop computer.
[0052] It should be noted that the second electronic device may or may not have the ability to communicate with the server.
[0053] In some embodiments, as shown in FIG2A , the second electronic device has the ability to communicate with the server, such as a smartwatch that supports cellular communication, or a mobile phone that supports cellular communication and Wi-Fi. After receiving the user data, the second electronic device can directly send the user data to the server.
[0054] In other embodiments, as shown in FIG2B , the second electronic device does not have the ability to communicate with the server, such as a smartwatch that does not support cellular communication. In this case, during the ride, the user of the second electronic device temporarily stores the user data sent by the first electronic device, so that after the ride ends and the user is away from the first electronic device, the user data can be sent to the server using the communication capabilities of a third electronic device.
[0055] It should be noted that a user may carry multiple electronic devices while riding, such as a smartwatch and a mobile phone. In this case, the first electronic device preferably selects an electronic device with Wi-Fi and cellular communication capabilities (such as a mobile phone) as the second electronic device.
[0056] Optionally, when the second electronic device is a wearable device, it can also assist the first electronic device in collecting some user data and send the user data to the first electronic device for display. For example, when the second electronic device is a smartwatch, it can collect the user's heart rate data and send the heart rate data to a cycling computer for display, so that the user can observe their heart rate changes during cycling. Of course, the heart rate data can also be collected by a dedicated heart rate monitoring device such as a heart rate belt and sent to the first electronic device, and this embodiment is not limited to this.
[0057] The third electronic device is an optional device that receives user data sent by the second electronic device and sends the user data to the server for data synchronization if the second electronic device does not support communication with the server. Exemplarily, the third electronic device may be a mobile phone, tablet computer, laptop computer, or other terminal device, which is not limited in this embodiment.
[0058] It can be understood that when the second electronic device supports communication with the server, the communication system may not include the third electronic device.
[0059] The server is used to receive user data sent by the second electronic device or the third electronic device, store the user data, and synchronize App data.
[0060] It should be noted that, in this communication system, it is not required that each device maintains a communication connection at the same time. For example, during a ride, the second electronic device and the server may or may not maintain a communication connection. Alternatively, when the system includes a third electronic device, the second electronic device and the third electronic device, as well as the third electronic device and the server, may or may not maintain a communication connection. For another example, after the ride is over, the data transmission between the first electronic device and the second electronic device is usually completed, and the user will carry the second electronic device away from the first electronic device. At this time, the communication connection between the first electronic device and the second electronic device can be disconnected.
[0061] Based on the communication system provided in the above embodiment, the communication method provided in the embodiment of the present application is exemplarily described below.
[0062] In the communication method provided in this embodiment, the communication system can control each electronic device to implement the following two control functions:
[0063] (1) Controlling the first electronic device to send user data to the second electronic device.
[0064] Exemplarily, the process includes the following steps S11 to S14:
[0065] S11: Control the first electronic device to continuously collect user data.
[0066] S12: When it is detected that the user data meets the first preset condition, control the first electronic device to establish a communication connection with the second electronic device.
[0067] S13: Control the first electronic device to determine first target data from the user data.
[0068] S14: Control the first electronic device to send the first target data to the second electronic device via the communication connection.
[0069] (2) Controlling the second electronic device to send user data to the server.
[0070] Exemplarily, the process includes the following steps S21 to S23:
[0071] S21: When it is detected that the first electronic device meets the second preset condition, controlling the first electronic device to stop collecting user data and controlling the first electronic device to establish a communication connection with the second electronic device;
[0072] S22: controlling the first electronic device to determine second target data from the user data;
[0073] S23: Control the first electronic device to send the second target data to the second electronic device via the communication connection.
[0074] It should be noted that the communication system can control the execution of the data sending method provided in this embodiment through a specific control chip or controller, or each electronic device, such as the first electronic device, the second electronic device or the third electronic device, can independently control each other to implement the data sending method provided in this embodiment.
[0075] The following takes the autonomous decision-making and control of each electronic device in the communication system as an example to specifically illustrate the communication method provided in this embodiment in combination with content (1) and content (2).
[0076] (1) Controlling the first electronic device to send user data to the second electronic device
[0077] FIG3 is a schematic interactive flow chart of a data sending method provided in an embodiment of the present application. Referring to FIG3 , the method includes the following steps S301 to S306 .
[0078] S301: The first electronic device continuously collects user data.
[0079] In this embodiment, the first electronic device (e.g., a cycling computer) continuously collecting user data includes the first electronic device collecting user data in real time during operation, or collecting user data at preset intervals (e.g., 3 seconds or 5 seconds). It should be noted that the process of collecting user data by the first electronic device is not affected by the transmission process until it receives a user control instruction to stop collecting or a pause instruction.
[0080] While the first electronic device continuously collects user data, the first electronic device cyclically executes steps S302 to S306 to send the collected user data to the second electronic device.
[0081] S302: The first electronic device determines whether the user data meets a first preset condition. If so, step S303 is executed.
[0082] In some embodiments, the first preset condition is: the first electronic device detects that the amount of user data collected by the first electronic device between the first moment and the second moment is greater than or equal to a data amount threshold.
[0083] Optionally, the data volume threshold is 4nKb, where n is a positive integer. Exemplarily, the data volume threshold may be 4kb, 8kb, or 16kb, etc. This is because the minimum read / write unit (referred to as a sector) of current electronic device memory is typically 4kb. Therefore, setting the data volume threshold to 4nKb allows user data in each fully populated sector to be identified as the first target data, helping to fully utilize the electronic device's storage space.
[0084] In other embodiments, the first preset condition is that the time interval between the first moment and the second moment is greater than or equal to a time threshold. Exemplarily, the time threshold is 2 to 8 minutes, such as 4 minutes, 5 minutes, or 6 minutes. This is because within this time range, for example, within 5 minutes, the first electronic device collects approximately 4 nanobytes of data, which helps fully utilize the storage space of the first electronic device.
[0085] The first moment is the moment when the first electronic device starts to collect user data, and the second moment is the moment when it is detected that the user data meets the first preset condition.
[0086] In some further embodiments, the first electronic device may receive a pause instruction during the data collection process, and the pause instruction is used to control the first electronic device to pause the collection of user data. Optionally, the first electronic device may continue to collect heart rate data during the pause process. In addition, if the first electronic device receives a resume instruction during the pause process, it resumes collecting user data.
[0087] Based on this, the first electronic device starts collecting user data at the first moment T1, receives a pause instruction at the fourth moment T4, and receives a resume instruction at the fifth moment T5. Then, when (T4-T1)+(T2-T5)≥the time threshold, it is determined that the user data meets the first preset condition at the second moment T2.
[0088] It should be noted that in this embodiment, the "time when the first electronic device begins collecting user data" may be when the first electronic device initially begins collecting user data in response to a user instruction. Furthermore, each time the first electronic device detects that the first device satisfies the first preset condition / third preset condition (see below), it may be considered to have entered a new data collection phase, i.e., the "time when the first electronic device begins collecting user data" may be the start time of the new data collection phase.
[0089] Based on this, after determining that the first preset condition is met, the first electronic device not only needs to determine the first target data (see S304), but also needs to determine the second moment as the first moment, so that the first electronic device can determine the new first target data based on the first moment and the new second moment when it determines a new second moment based on the first preset condition next time.
[0090] S303: The first electronic device establishes a communication connection with the second electronic device.
[0091] When the first electronic device detects that the user data meets the first preset condition, it sends a connection request to the second electronic device, where the connection request is used to request to establish a communication connection with the second electronic device. Exemplarily, the connection request may be a Bluetooth connection request, where the Bluetooth connection request is used to request to establish a Bluetooth connection with a smartwatch. When the second electronic device receives the connection request sent by the first electronic device, it establishes a corresponding communication connection with the first electronic device according to the connection request.
[0092] S304: The first electronic device determines first target data from the user data.
[0093] In some embodiments, the first electronic device determines user data collected between the first moment and the second moment as first target data.
[0094] Exemplarily, when determining the first target data from the user data, the first electronic device first determines the time when the user data collection begins, such as when the first electronic device is started, or when the first electronic device enters a motion recording mode; or when the user data last detected to meet the first preset condition, and determines this time as the first time. It then determines the time when the user data is detected to meet the first preset condition this time, and determines this time as the second time. Finally, the user data between the first time and the second time is determined as the first target data.
[0095] This embodiment does not limit the order of S304 and S305 , that is, the first electronic device may execute S304 first and then S305 ; or may execute S305 first and then S304 .
[0096] S305: The first electronic device sends first target data to the second electronic device.
[0097] The first electronic device may send the first target data to the second electronic device via a communication connection established with the second electronic device. If the communication connection is a Bluetooth connection, the first target data is sent to the second electronic device based on the Bluetooth communication link.
[0098] S306: When the first electronic device detects that the transmission of the first target data is completed, the first electronic device disconnects the communication connection with the second electronic device.
[0099] In some embodiments, the first electronic device may also clear the first target data upon detecting that the first target data has been sent, so that the first electronic device can reserve more storage space; or mark the sent first target data as transmitted data.
[0100] Optionally, this step S306 may also be that the second electronic device disconnects the communication with the first electronic device when detecting that the second electronic device has not received the user data sent by the first electronic device within a certain period of time.
[0101] Optionally, in the above steps S301 to S306, S303 and S306 may not be performed. That is, the first electronic device and the second electronic device maintain a continuous communication connection, but only when the user data meets the first preset condition, the first electronic device sends the first target data to the second electronic device, and when the data transmission is completed, the connection mode between the first electronic device and the second electronic device is changed from the transmission mode to the low power mode.
[0102] In this embodiment, the first electronic device sends user data to the second electronic device at a certain time interval or according to a preset data volume threshold, and disconnects the communication connection with the second electronic device after the user data is sent, or maintains the communication connection with the second electronic device, but changes the connection mode from the sending mode to the low power mode. By limiting the amount of data transmitted each time, intermittent transmission of data between the first electronic device and the second electronic device during exercise is achieved. Therefore, the second electronic device does not need to receive the user data collected by the first electronic device in real time, that is, the second electronic device does not need to be in a high-energy consumption state for transmitting data in real time, thereby saving device power consumption to avoid power consumption of the first electronic device or the second electronic device. Even after a long period of riding, the power consumption of the second electronic device remains very low, thereby improving the user experience.
[0103] FIG4 is a schematic interactive flow chart of a data sending method provided in another embodiment of the present application. Referring to FIG4 , the method includes the following steps S401 to S406 .
[0104] S401: The first electronic device determines whether a second preset condition is met. If so, step S402 is executed.
[0105] The second preset condition includes: the first electronic device receiving a control instruction for controlling the first electronic device to stop collecting user data. For example, the first electronic device generates the control instruction in response to a user operating a control in an operating interface of the first electronic device to stop collecting user data; or the first electronic device generates the control instruction in response to a user operating a stop button; or the first electronic device receives a control instruction sent by another electronic device to control the first electronic device to stop collecting user data.
[0106] S402: The first electronic device stops collecting user data.
[0107] In some embodiments, upon receiving a control instruction to stop collecting user data, the first electronic device stops collecting user data according to the control instruction.
[0108] S403: The first electronic device establishes a communication connection with the second electronic device.
[0109] In this step, the manner of establishing a communication connection between the first electronic device and the second electronic device can refer to the implementation in the aforementioned step S303, and this step is not described in detail.
[0110] S404: The first electronic device determines second target data from the user data.
[0111] In some embodiments, the first electronic device determines the user data collected between the first moment and the third moment as the second target data; wherein the first moment is the moment when the first electronic device starts to collect user data, and the third moment is the moment when it is detected that the first electronic device meets the second preset condition.
[0112] Exemplarily, when the first electronic device determines the second target data from the user data, it first determines a first moment. The method for determining the first moment is described in step S304 above and is not further described here. Then, the moment when the first electronic device detects that it meets the second preset condition, such as the moment when it receives the control instruction, is determined as a third moment. Finally, the user data between the first and third moments is determined as the second target data.
[0113] In some other embodiments, the first electronic device determines all user data collected but not sent to the second electronic device as the second target data.
[0114] S405: The first electronic device sends second target data to the second electronic device.
[0115] In some embodiments, the first electronic device may send the second target data to the second electronic device via a communication connection established with the second electronic device, such as a Bluetooth communication connection.
[0116] S406: When detecting that the second target data has been sent, the first electronic device disconnects the communication connection with the second electronic device.
[0117] The first electronic device disconnects the communication connection with the second electronic device when the second target data transmission is completed, thereby saving device power consumption, avoiding power consumption of the first electronic device or the second electronic device, and improving user experience.
[0118] Optionally, this step S406 may also be that the second electronic device disconnects the communication with the first electronic device when detecting that the second electronic device has not received the data sent by the first electronic device within a certain period of time.
[0119] Optionally, in the above steps S401 to S406, S403 and S406 may not be performed. That is, the first electronic device and the second electronic device maintain a continuous communication connection, but only when the user data meets the second preset condition, the first electronic device sends the second target data to the second electronic device, and when the data transmission is completed, the connection mode between the first electronic device and the second electronic device is changed from the transmission mode to the low power mode.
[0120] In this embodiment, the amount of data transferred between the first and second electronic devices must be less than the data volume threshold. Therefore, the time required for data transfer is significantly shorter than the time it would take for the first electronic device to transfer all data to the second electronic device at once. This allows the user to quickly dismount the bicycle after exercising without disassembling the first electronic device, thus significantly facilitating the user experience.
[0121] Optionally, after the first electronic device stops collecting data, it may display data transfer ratio information, indicating the proportion of user data transferred to the second electronic device relative to all user data collected during the current session. This allows the user to understand the data transfer status and determine whether they can move the second electronic device away from the first electronic device. For example, this ratio information may be presented in the form of a number and / or a progress bar, which is not limited in this embodiment.
[0122] Alternatively, after the first electronic device has transmitted the first target data and the second target data, it may output a prompt message to inform the user that the data transmission has ended, so that the user can stay away from the first electronic device. For example, the prompt message may be a text message, a voice message, or an icon message, and this embodiment is not limited to this.
[0123] (2) Controlling the second electronic device to send user data to the server
[0124] In some embodiments, as shown in Figure 5, the second electronic device has the ability to communicate with the server. At this time, the second electronic device can directly send the received first target data and second target data to the server, so that the server can store and synchronize the user data collected by the first electronic device.
[0125] Optionally, when the second electronic device has the ability to communicate with the server, it can immediately send the user data to the server after receiving the first target data. It can also send the first target data and the second target data together to the server after receiving the second target data. This embodiment is not limited to this.
[0126] In other embodiments, as shown in FIG6 , the second electronic device does not have the ability to communicate with the server and is primarily used to temporarily store user data collected by the first device. The second electronic device may first send the received first target data and second target data to a third electronic device that has the ability to communicate with the server, and the third electronic device may then send the received first target data and second target data to the server.
[0127] Exemplarily, the second electronic device and the third electronic device can be connected in communication via BT, Wi-Fi, UWB, cellular data, etc., and the second electronic device / the third electronic device and the server can be connected in communication via Wi-Fi, cellular data, etc.
[0128] In summary, through the data transmission method provided in this embodiment, while a first electronic device (e.g., a cycling watch) collects user data in real time, it establishes a communication connection with a second electronic device (e.g., a watch or mobile phone) at intervals, based on preset conditions. The connection then transmits a portion of the user data to the second electronic device, and then closes the communication connection or switches the connection mode to a low-power mode. This method not only reduces power consumption for both the first and second electronic devices, but also ensures that most of the user data has been transferred to the second electronic device by the time the first electronic device completes its data collection task. This ensures that the exercise data has essentially been transferred from the first electronic device to the second electronic device at the end of the workout. This allows the user to quickly leave the first electronic device after completing their workout without having to wait for a long time for data transmission or remove the cycling watch from their device, resulting in a better user experience.
[0129] For example, if the first electronic device is a cycling computer, and the user is carrying both a smartwatch and a mobile phone while cycling, the cycling computer prioritizes the mobile phone as the second electronic device and sends the first and second target data to the mobile phone, which then directly transmits the first and second target data to the server. By the time the user finishes riding, the data collected by the cycling computer has essentially been transmitted, allowing the user to quickly leave the cycling computer, providing a better user experience.
[0130] For example, if the first electronic device is a cycling computer, and the user is carrying a smartwatch that doesn't support server communication while cycling, but not a mobile phone or other electronic device that does, the cycling computer will select the smartwatch as the second electronic device. The smartwatch then acts as a transit device to store the received first and second target data. When the user finishes their ride, the user data collected by the cycling computer is essentially transferred to the smartwatch, allowing the user to quickly leave the cycling computer without having to wait for a long time for the data to be transmitted or having to remove the computer and take it away. The smartwatch can then send the received user data, namely the first and second target data, to the server via a mobile phone, tablet, or other electronic device, providing a better user experience.
[0131] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0132] The present application also provides an electronic device including a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the method for adjusting screen brightness provided in the above embodiment.
[0133] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method for adjusting the screen brightness provided in the above embodiments.
[0134] In the embodiments provided in this application, the division of each framework or module is merely a logical function division. In actual implementation, there may be other division methods, for example, multiple frameworks or modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0135] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0136] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0137] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0138] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A data sending method, characterized in that, Applied to a communication system, the communication system includes a first electronic device and a second electronic device, and the method includes: Controlling the first electronic device to continuously collect user data; When it is detected that the user data meets a first preset condition, controlling to establish a communication connection between the first electronic device and the second electronic device; Controlling the first electronic device to determine first target data from the user data; Controlling the first electronic device to send the first target data to the second electronic device via the communication connection.
2. The method according to claim 1, characterized in that, The controlling the first electronic device to determine first target data from the user data includes: Controlling the first electronic device to determine the user data collected between a first time and a second time as the first target data; Wherein, the first time is the time when the first electronic device starts to collect the user data, and the second time is the time when it is detected that the user data meets the first preset condition.
3. The method according to claim 2, characterized in that, The first preset condition includes at least one of the following: Detecting that the amount of the user data collected by the first electronic device between the first time and the second time is greater than or equal to a data amount threshold; Detecting that the time interval between the first time and the second time is greater than or equal to a time threshold.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When it is detected that the sending of the first target data ends, controlling the first electronic device or the second electronic device to disconnect the communication connection.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When it is detected that the first electronic device meets a second preset condition, controlling the first electronic device to stop collecting the user data, and controlling to establish a communication connection between the first electronic device and the second electronic device; Controlling the first electronic device to determine second target data from the user data; Controlling the first electronic device to send the second target data to the second electronic device via the communication connection.
6. The method according to claim 5, characterized in that, The controlling the first electronic device to determine second target data from the user data includes: Controlling the first electronic device to determine the user data collected between the first time and a third time as the second target data; Wherein, the first time is the time when the first electronic device starts to collect the user data; the third time is the time when it is detected that the first electronic device meets the second preset condition.
7. The method according to claim 5 or 6, characterized in that, The second preset condition includes: detecting that the first electronic device receives a control instruction for controlling the first electronic device to stop collecting the user data.
8. The method according to any one of claims 5 to 7, characterized in that, The method further includes: When it is detected that the sending of the second target data ends, controlling the first electronic device or the second electronic device to disconnect the communication connection.
9. The method according to any one of claims 5 to 8, characterized in that, The system further includes a third electronic device and a server, and the method further includes: Controlling the second electronic device to send the received first target data and second target data to the third electronic device; Controlling the third electronic device to send the received first target data and second target data to the server.
10. The method according to any one of claims 1 to 9, characterized in that, The user data includes at least one of: riding distance, riding duration, riding speed, user heart rate, calorie consumption value, slope during riding, riding trajectory, and pedaling frequency.
11. A data sending method, characterized in that, Applied to a first electronic device, the method includes: Continuously collecting user data; When it is detected that the user data meets a first preset condition, controlling a communication connection to be established between the first electronic device and a second electronic device; Determining first target data from the user data; Sending the first target data to the second electronic device via the communication connection.
12. The method according to claim 11, wherein, The determining first target data from the user data includes: Determining the user data collected between a first moment and a second moment as the second target data; Wherein, the first moment is the moment when the first electronic device starts collecting the user data; the second moment is the moment when it is detected that the user data meets the first preset condition.
13. The method according to claim 11 or 12, wherein, The first preset condition includes at least one of the following: The amount of the user data collected by the first electronic device between the first moment and the second moment is greater than or equal to a data amount threshold; The time interval between the first moment and the second moment is greater than or equal to a time threshold.
14. The method according to any one of claims 11 to 13, wherein, The method further includes: after it is detected that the sending of the first target data ends, disconnecting the communication connection.
15. The method according to any one of claims 11 to 14, wherein, The method further includes: When it is detected that the first electronic device meets a second preset condition, stopping collecting the user data and establishing a communication connection with the second electronic device; Determining second target data from the user data; Sending the second target data to the second electronic device via the communication connection.
16. The method according to claim 15, wherein, The determining second target data from the user data includes: Determining the user data collected between the first moment and a third moment as the second target data; Wherein, the first moment is the moment when the first electronic device starts collecting the user data, and the third moment is the moment when it is detected that the first electronic device meets the second preset condition.
17. The method according to claim 15 or 16, wherein, The second preset condition includes: detecting that the first electronic device receives a control instruction for controlling the first electronic device to stop collecting the user data.
18. The method according to any one of claims 15 to 17, wherein, The method further includes: when it is detected that the sending of the second target data ends, disconnecting the communication connection.
19. The method according to any one of claims 11 to 18, wherein, The user data includes at least one of: riding distance, riding duration, riding speed, user heart rate, calorie consumption value, slope during riding, riding trajectory, and pedaling frequency.
20. A communication system, wherein, Including a first electronic device and a second electronic device, The first electronic device is configured to execute the method according to any one of claims 11 to 19; The second electronic device is configured to receive the user data sent by the first electronic device.
21. The system according to claim 20, wherein, The system further includes a third electronic device, wherein the second electronic device is further configured to send the received user data to the third electronic device; the third electronic device is configured to receive the user data and send the received user data to a server.
22. The system according to claim 21, wherein, The second electronic device is a wearable device.
23. A computer-readable storage medium storing a computer program, wherein, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 19 above.
24. A chip, characterized in that, The chip includes a processor and a memory. A computer program is stored in the memory. When the computer program is executed by the processor, it implements the method according to any one of claims 1 to 19.
25. A computer program product, characterized in that, The computer program product stores a computer program. When the computer program is run by a processor, it can implement the method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Data transmission method and system, electronic equipment and storage medium
CN115209393A
Information processing method and device, wearable equipment and electronic equipment
CN115240850A
Fitness assisting method and related device
CN116020104A
Bluetooth Communication Method, Wearable Device, and System
US20230299806A1