Data communication method and apparatus, electronic device, storage medium
Patent Information
- Application Number
- CN202510560938.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2026-10-30
AI Technical Summary
[0004]本公开提供一种数据通信方法及装置、电子设备、存储介质,能够避免设备通信质量不稳定,而导致的通信质量不佳的问题
[0064]在本公开的技术方案中,优先采用短距离通信技术加入或构建短距离通信网络,以使该短距离通信网络中包含至少两个设备。在此基础上,在需要获取目标数据,可以优先从短距离通信网络中确定出针对目标数据的通信质量满足预设通信条件的目标通信设备,再通过该目标通信设备获取目标数据。
Smart Images

Figure CN123021183A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communications, and more particularly to a data communication method and apparatus, electronic device, and storage medium. Background Technology
[0002] With the continuous development of intelligent devices, more and more devices have data processing capabilities and have the need to communicate with the outside world.
[0003] However, due to inevitable changes in the objective environment, the communication quality of devices fluctuates and is difficult to maintain stability. As a result, poor communication quality often occurs, affecting the user experience. Summary of the Invention
[0004] This disclosure provides a data communication method, apparatus, electronic device, and storage medium that can avoid the problem of poor communication quality caused by unstable device communication quality.
[0005] According to a first aspect of this disclosure, a data communication method is provided, comprising:
[0006] Using short-range communication technology to join or build a short-range communication network, wherein the short-range communication network includes at least two communication devices;
[0007] A target communication device is determined from the at least two communication devices, wherein the communication quality of the target communication device for the target data meets preset communication conditions;
[0008] The target data is obtained based on the target communication device.
[0009] Optionally, in one implementation, determining the target communication device from the at least two communication devices includes:
[0010] A communication quality detection signal is generated, which is used to detect the communication quality of the target data;
[0011] Receive communication quality detection results fed back by the at least two communication devices, wherein the communication quality detection results are generated based on the communication quality detection signals;
[0012] The target communication device is determined based on the communication quality detection results of each of the at least two communication devices.
[0013] This implementation method enables the acquisition of the communication quality of each communication device in a short-range communication network by generating a communication quality detection signal, which can then be used to identify the target communication device.
[0014] Optionally, in one implementation, generating the communication quality detection signal includes:
[0015] A communication quality detection signal is generated according to a preset period to periodically update the target communication device used to acquire the target data; or,
[0016] In the event that any of the at least two communication devices requests to acquire the target data, a communication quality detection signal is generated to determine the target communication device for acquiring the target data in real time.
[0017] This implementation method allows for the determination of target communication devices for acquiring target data, either through periodic updates or real-time determination, based on real-time needs. The former eliminates the need for temporary determination of the target communication device, enabling rapid acquisition of target data, while the latter reduces the consumption of processing resources compared to the former.
[0018] Optionally, in one embodiment, determining the target communication device based on the communication quality detection result of each of the at least two communication devices includes:
[0019] Obtain the comparison results of the communication quality scores of the at least two communication devices, and determine the communication device with the highest communication quality score as the target communication device; or,
[0020] The communication quality scores of the at least two communication devices are compared with a preset communication score threshold, and the communication devices with communication quality scores higher than the communication score threshold are identified as target communication devices.
[0021] The communication quality score of each communication device is positively correlated with either the communication signal strength or the communication signal quality of the corresponding device.
[0022] This implementation method allows for the selection of the device with the best communication quality or that meets a preset standard within a short-range communication network as the target communication device for acquiring target data. The former maximizes the efficiency or quality of acquiring target data, while the latter eliminates the need for communication quality comparisons, reducing the operational complexity of determining the target communication device.
[0023] Optionally, in one implementation, the target data includes at least one of the following: location data, network data.
[0024] This implementation method allows for the determination of target data to be acquired based on real-time needs. For example, when implementing functions that rely on location data, such as navigation, the target data can be location data; when implementing functions such as video viewing and text chat, the target data can be network data.
[0025] Optionally, in one implementation, the target data includes first target data and second target data;
[0026] The step of determining the target communication device from the at least two communication devices includes:
[0027] A first target communication device and a second target communication device are determined from the at least two communication devices; the communication quality of the first target communication device for the first target data meets a preset first communication condition; the communication quality of the second target communication device for the second target data meets a preset second communication condition.
[0028] The step of acquiring the target data based on the target communication device includes:
[0029] The first target data is acquired based on the first target communication device; and the second target data is acquired based on the second target communication device;
[0030] The first target communication device is different from the second target communication device.
[0031] This implementation method allows for the simultaneous identification of two target communication devices for acquiring different data, enabling the acquisition of their respective corresponding data based on each device, thus simultaneously meeting the need for efficient acquisition of both types of data.
[0032] Optionally, in one embodiment, when the short-range communication network uses the target communication device as the host device, acquiring the target data based on the target communication device includes:
[0033] The short-range communication network provides the target communication device with its own request for acquiring the target data, so that the target communication device can generate and send an access request based on the acquisition request.
[0034] The target data is received from the target communication device; the target data is obtained by the target communication device based on the access request.
[0035] Through this implementation method, when the target communication device is a host device, the device can provide its own data requirements to the target communication device so that the host device can obtain the target data and then share the target data.
[0036] Optionally, in one embodiment, when the short-range communication network does not use the target communication device as the host device, the step of acquiring the target data based on the target communication device includes:
[0037] An access request for obtaining the target data is generated, and the access request is sent to the target communication device through the short-range communication network, so that the target communication device can forward the access request outward;
[0038] The target communication device receives the data it obtains and returns by forwarding the access request.
[0039] With this implementation method, when the target communication device is not a host device, the target communication device can be used as a routing device to forward its own access requests for target data in order to obtain the target data from the communication service provider of the target communication device.
[0040] Optionally, in one implementation, after determining the target communication device, the method further includes:
[0041] If the short-range communication link between the target communication device and the target communication device has poor communication quality, the short-range communication method is changed to improve the short-range communication quality.
[0042] This implementation method avoids the problem that target data cannot be shared in a timely manner in short-range communication networks due to poor short-range communication quality.
[0043] Optionally, in one embodiment, the target communication device supports a first short-range communication technology and a second short-range communication technology, wherein the short-range communication quality of the first short-range communication technology is higher than that of the second short-range communication technology;
[0044] In the event of poor communication quality of the short-range communication link with the target communication device, changing the short-range communication method includes: if the short-range communication link with the target communication device is established using a second short-range communication technology, rebuilding the short-range communication link with the target communication device based on a first short-range communication technology.
[0045] This implementation method allows for the improvement of short-range communication quality by changing the short-range communication technology used when the communication quality is poor.
[0046] Optionally, in one embodiment, the short-range communication module for establishing a short-range communication link with the target communication device includes a high-power mode and a low-power mode.
[0047] In the event of poor communication quality of the short-range communication link with the target communication device, the method of changing the short-range communication mode includes: when the short-range communication module used to construct the short-range communication link with the target communication device is in a low-power mode, switching the short-range communication module to a high-power mode.
[0048] This implementation method can improve the quality of short-range communication by switching the short-range communication module to a high-power mode when the short-range communication module is in a low-power mode, resulting in poor short-range communication quality.
[0049] Optionally, in one embodiment, the communication quality of the target data is: the communication quality of a non-short-range communication network.
[0050] Through this implementation method, the target data can be other data that is different from short-range communication data, and correspondingly, the communication quality of the detected target data can be the communication quality of non-short-range communication networks.
[0051] Optionally, in one embodiment, the various communication devices in the short-range communication network are interconnected using the same or different short-range communication technologies;
[0052] The short-range communication network employs at least one of the following short-range communication technologies: WiFi, Bluetooth, and NFC.
[0053] This implementation method enables the construction of short-range communication networks between devices employing different short-range communication technologies, thereby expanding the search range of target communication devices used to acquire target data.
[0054] According to a second aspect of this disclosure, a data communication apparatus is provided, comprising:
[0055] A short-range communication unit, which uses short-range communication technology to join or build a short-range communication network, wherein the short-range communication network includes at least two communication devices;
[0056] A device determination unit determines a target communication device from the at least two communication devices, wherein the target communication device meets preset communication conditions for the communication quality of the target data.
[0057] The data acquisition unit acquires the target data based on the target communication device.
[0058] According to a third aspect of this disclosure, an electronic device is provided, comprising:
[0059] processor;
[0060] Memory used to store processor-executable instructions;
[0061] The processor implements the method as described in the first aspect by running the executable instructions.
[0062] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method as described in the first aspect.
[0063] According to a fifth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method as described in the first aspect.
[0064] In the technical solution disclosed herein, short-range communication technology is preferentially used to join or construct a short-range communication network, so that the short-range communication network contains at least two devices. Based on this, when it is necessary to acquire target data, a target communication device that meets the preset communication conditions for the target data can be preferentially identified from the short-range communication network, and then the target data can be acquired through the target communication device.
[0065] It should be understood that this disclosure is equivalent to using short-range communication technology to selectively perform target data communication operations from within a short-range communication network. In this way, when the communication quality of a single device for target data is poor, other devices within the same short-range communication network can be used to achieve the target data communication operation, maintaining long-term stable communication quality of the target data and avoiding communication quality instability caused by the device's own poor communication quality. Attached Figure Description
[0066] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0067] Figure 1 This is a flowchart illustrating a data communication method according to an exemplary embodiment of this disclosure;
[0068] Figure 2 This is a schematic diagram of the architecture of an in-vehicle network shown in an exemplary embodiment of this disclosure;
[0069] Figure 3 This is a flowchart illustrating a network data communication method under an in-vehicle network, as shown in an exemplary embodiment of this disclosure;
[0070] Figure 4 This is a block diagram illustrating a data communication device according to an exemplary embodiment of the present disclosure;
[0071] Figure 5 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0072] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0073] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0074] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0075] In the internet age, most devices need to communicate with the outside world to perform their various functions. However, the quality of a device's communication is usually related to its environment, and as the environment changes over time or space, the quality of communication inevitably fluctuates. In certain situations, it may even be unable to communicate with the outside world at all.
[0076] For example, many cars have been equipped with relatively complete in-vehicle systems, becoming smart cars. Due to their vehicle nature, their geographical location changes constantly as the car moves. When entering certain areas, such as mountainous areas or tunnels, problems such as poor positioning signals and poor network signals may occur.
[0077] It is evident that the data communication methods in related technologies suffer from problems such as poor communication quality and instability.
[0078] To address this issue, this disclosure proposes a data communication method to avoid the problems of poor or unstable communication quality of devices due to changes in the environment, as seen in related technologies.
[0079] Figure 1 This embodiment of the present disclosure illustrates a data communication method. For example... Figure 1 As shown, the method may include the following steps:
[0080] Step 102: Join or build a short-range communication network using short-range communication technology, wherein the short-range communication network includes at least two communication devices.
[0081] As can be seen from the above introduction, the reason why the data communication methods in the related technologies have problems with poor communication quality and instability is due to the changes in the environment over time or space.
[0082] Further analysis of this disclosure reveals that the data communication methods in the related technologies essentially rely solely on their own communication capabilities for data communication, and the data communication capabilities of a single device inevitably fluctuate with changes in various factors.
[0083] In view of this, this disclosure no longer relies solely on its own communication capabilities for data communication, but instead prioritizes the use of short-range communication technology to join or construct a short-range communication network, so as to use target communication devices in the short-range communication network whose communication quality meets the preset communication conditions for data communication.
[0084] It should be understood that the data communication methods in related technologies rely solely on the device itself for data communication, which is a "lone wolf" communication method. In contrast, this disclosure establishes a collective first, with the more capable member of the collective responsible for communication. Compared with related technologies, this is a "collective-dependent" communication method.
[0085] It is evident that, through the technical solution disclosed herein, even if the communication quality of any individual in the group for the required data is poor, the data can still be communicated using a device in the group with better communication quality for that data, thus avoiding the problems of poor and unstable data communication quality of devices in related technologies.
[0086] Before providing a detailed description of the technical solutions disclosed herein, the concepts involved in this disclosure will be introduced first:
[0087] In this disclosure, a short-range communication network refers to a network constructed using short-range communication technology, wherein each communication device in the network has established a short-range communication link with at least one other communication device in the network. Target data refers to the data that needs to be obtained through communication. Target communication device refers to a device whose communication quality for the target data meets preset communication conditions. Preset communication conditions refer to the conditions used to evaluate whether each communication device can successfully perform the data communication task for the target data, and can be considered as a selection rule.
[0088] In one embodiment of this disclosure, this disclosure can be integrated into an existing short-range communication network. For example, this disclosure can use short-range communication technology to establish a short-range communication link with any device in the short-range communication network, thereby joining the short-range communication network.
[0089] In another embodiment of this disclosure, a standalone short-range communication network can be constructed. For example, this disclosure can employ short-range communication technology to establish a short-range communication link with at least one device to form a short-range communication network.
[0090] It is worth noting that devices in a short-range communication network can be interconnected using either the same short-range communication technology or different short-range communication technologies. The short-range communication technologies used in the network can include at least one of WiFi (Wireless Fidelity), Bluetooth (BT), and NFC (Near Field Communication). For example, assuming a short-range communication network contains three devices, O, P, and Q, the interconnection relationship could be: device O connects to device P using Bluetooth, and device P connects to device Q using WiFi. It should be understood that, whether directly or indirectly, as long as there is a link between the devices, they can be considered to be in the same short-range communication network. The specific method of connecting the devices to construct the short-range communication network can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions in this regard.
[0091] Step 104: Determine a target communication device from the at least two communication devices, wherein the target communication device meets preset communication conditions for the communication quality of the target data.
[0092] In this disclosure, after joining or building a short-range communication network, a target communication device whose communication quality for the target data meets preset communication conditions can be determined from the short-range communication network according to communication requirements.
[0093] In this disclosure, when it is necessary to determine the target communication device, a communication quality detection signal can be generated. This communication quality detection signal is used to detect the communication quality of the target data. Each device in the short-range communication network can generate a communication quality detection result based on the communication quality detection signal. This disclosure can receive the communication quality detection results fed back by at least two communication devices in the short-range communication network and determine the target communication device based on the communication quality detection result of each of these at least two communication devices.
[0094] In this disclosure, the method for generating the communication quality detection signal can be determined according to the actual situation. For example, in one case, the communication quality detection signal can be generated according to a preset period to periodically update the target communication device used to acquire the target data; in another case, the communication quality detection signal can be generated when any of the above at least two communication devices requests to acquire the target data, so as to determine the target communication device used to acquire the target data in real time.
[0095] It should be understood that, regarding the two timing options for determining the target communication device, the former does not require temporary determination of the target communication device and can quickly acquire target data, while the latter, compared to the former, although requires temporary determination of the target communication device, does not require continuous updating of the target communication device, thus reducing the consumption of processing resources.
[0096] In this disclosure, the target data can be any one or more types of data that need to be used, which can be determined by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions. For example, the target data can be at least one of network data and location data.
[0097] When the target data is of one type, it can be network data. In this case, a communication device whose network data communication quality meets the preset network data communication conditions can be identified from the short-range communication network, and that communication device can be used as the target communication device to acquire network data. Alternatively, the target data can be location data. In this case, a communication device whose location data communication quality meets the preset location data communication conditions can be identified from the short-range communication network, and that communication device can be used as the target communication device to acquire location data.
[0098] In cases where the target data includes multiple types, for ease of understanding, we will use an example where the target data includes two types. In this example, the target data can include a first target data and a second target data. Then, from at least two communication devices included in the short-range communication network, a first target communication device and a second target communication device can be identified. The first target communication device satisfies a preset first communication condition for the communication quality of the first target data, while the second target communication device satisfies a preset second communication condition for the communication quality of the second target data. After identifying the first and second target communication devices, the first target data can be obtained based on the first target communication device, and the second target data can be obtained based on the second target communication device.
[0099] It should be noted that the operations of determining the first target communication device and determining the second target communication device can be performed asynchronously, and the acquisition processes of the two types of data do not interfere with each other. The specific types of data for the first and second targets can be determined by those skilled in the art based on actual needs. For example, the first target data can be the aforementioned network data, while the second target data can be location data; this disclosure does not impose any limitations in this regard. The first and second target communication devices can be the same or different; in the latter case, the burden on a single device can be reduced.
[0100] It should also be noted that the examples given here are merely illustrative. The type of target data can be determined by those skilled in the art based on actual needs. For example, in addition to network data and positioning data, it can also be long-distance communication technology (including satellite phone data, satellite navigation data, etc.). This disclosure does not impose any restrictions on this.
[0101] In this disclosure, different communication conditions can be preset according to actual needs to identify target communication devices from short-range communication networks.
[0102] In one embodiment, the preset communication condition can be: the data communication quality for the target data is optimal within the corresponding short-range communication network. In other words, in this embodiment, the operation of determining the target communication device is: identifying the device with the best communication quality for the target data from the short-range communication network.
[0103] In other words, in this embodiment, the device with the best communication quality for the target data from the short-range communication network can be determined by comparing the data communication quality of each communication device for the target data, and thus selected as the target communication device. It should be noted that this comparison operation can be performed by the entity implementing this disclosure or by other devices in the short-range communication network.
[0104] Specifically, when the comparison operation is performed by the entity executing this disclosure, this disclosure can obtain the communication quality of each communication device in the short-range communication network for the target data, and compare the obtained communication quality of each communication device to determine the target communication device with the best communication quality for the target data; when the comparison operation is performed by other devices, this disclosure can receive indication information for indicating the communication device with the best communication quality for the target data in the short-range communication network, and determine the communication device specified by the indication information as the target communication device.
[0105] In this embodiment, the criteria for judging the best communication quality can be set by those skilled in the art according to actual needs. For example, it can be the best communication parameters in a specific dimension, such as the fastest transmission speed, the largest transmission bandwidth, the best data quality, etc.; it can also be the best of at least one of the following: the largest channel power, the largest RSSI (Received Signal Strength Indicator), the largest signal-to-noise ratio, the smallest bit error rate, etc.; or it can be the strongest communication signal strength, the highest communication signal quality, etc.
[0106] Alternatively, a communication quality algorithm can be pre-defined to calculate a communication quality score based on at least one of the aforementioned parameters, and the device with the highest score can be considered to have the best communication quality.
[0107] For example, where communication quality optimally depends on either communication signal strength or communication signal quality, the operation described above, after obtaining the communication quality detection results of each of at least two communication devices, and determining the target communication device based on the communication quality detection results, can be as follows: obtain a comparison result of the communication quality scores of the at least two communication devices, and determine the communication device with the highest communication quality score as the target communication device. Here, the communication quality score of each communication device can be positively correlated with either the communication signal strength or the communication signal quality of the corresponding device.
[0108] As can be easily understood from the above explanation, the specific criteria for judging the best communication quality can be set by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on this.
[0109] It should be understood that, in this embodiment, if the target data is network data, the preset communication standard can be the network data communication quality being optimal; if the target data is location data, the preset communication standard can be the location data communication quality being optimal.
[0110] In another embodiment, the preset communication condition can be: the parameter value of the communication quality for the target data in a preset communication dimension reaches a preset threshold. In other words, in this embodiment, the operation of determining the target communication device is: from the short-range communication network, determining the device whose parameter value of the communication quality for the target data in a preset communication dimension reaches the preset threshold.
[0111] It should be understood that, in this embodiment, if the target data is network data, the preset communication standard can be that the parameter value of the network data communication quality in the preset communication dimension reaches a preset threshold; if the target data is location data, the preset communication standard can be that the parameter value of the location data communication quality in the preset communication dimension reaches a preset threshold.
[0112] In this embodiment, the dimensions used to judge whether the communication conditions are met can be preset according to requirements. For example, the preset dimensions may include at least one of transmission speed, transmission bandwidth, and transmission data quality, or at least one of channel power, signal-to-noise ratio, etc., or at least one of communication signal strength and communication signal quality. This disclosure does not limit this.
[0113] In this embodiment, if there are multiple devices whose data communication quality for the target data reaches a preset threshold in a preset communication dimension parameter value, the target data can be acquired jointly by these multiple target communication devices in a multi-channel manner, or one of them can be selected for acquiring the target data. In the latter case, a selection rule can be preset, such as random selection, user-specified selection, or selection of the best one, etc., and this disclosure does not limit this.
[0114] Of course, the above examples are merely illustrative. The specific settings for the preset communication standards can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on this.
[0115] It should be noted that, similar to the previous embodiment, a comprehensive score can also be calculated to determine whether the preset communication conditions are met based on whether the comprehensive score reaches a preset score threshold.
[0116] For example, taking the evaluation dimension as including at least one of communication signal strength and communication signal quality, the operation of determining the target communication device based on the communication quality detection results of each of the at least two communication devices can be as follows: obtaining the comparison results of the communication quality scores of the at least two communication devices with a preset communication score threshold, and determining the communication device with a communication quality score higher than the communication score threshold as the target communication device. Similar to the previous embodiment, the communication quality score of each communication device can be positively correlated with either the communication signal strength or the communication signal quality of the corresponding device. How to specifically determine the target communication device can be determined by those skilled in the art according to actual needs, and this disclosure does not impose any limitations on this.
[0117] In this disclosure, a host device can be installed among the devices included in the short-range communication network, and the target communication device can be determined by the host device after evaluating the communication quality of each device in the short-range communication network for the target data. For example, the operation of comparing the communication quality of each device can be performed by the host device.
[0118] In different situations, different devices can be designated as the host device. For example, if the short-range communication network is an in-vehicle network for a smart car, the host device can be the car's infotainment system; while if the short-range communication network is a home network for a smart home, the host device can be the smart gateway in the home network. Of course, these examples are merely illustrative. In the presence of a host device, the specific device in the short-range communication network designated as the host device can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on this.
[0119] In this disclosure, when a host device is present, it can establish short-range communication links with all devices in the short-range communication network. Data transmission between different devices can be forwarded by the host device to quickly achieve data synchronization between them. Of course, this example is merely illustrative; how the host device and other devices are specifically interconnected can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any limitations on this.
[0120] Step 106: Obtain the target data based on the target communication device.
[0121] In this disclosure, once the target communication device is identified, communication operations for the target data can be performed based on the target communication device.
[0122] In the case where the target communication device is itself, it can initiate an access request to obtain the target data.
[0123] When the target communication device is not itself, different methods can be used to obtain the target data. For example, in one embodiment, an access request for obtaining the target data can be generated and sent to the target communication device via a short-range communication network. The target communication device can then forward the access request and obtain the target data. Upon receiving the returned target data, it returns the target data to the entity executing this disclosure, which only needs to receive the returned data. Alternatively, in another embodiment, the target communication device can generate its own access request to obtain the target data and send it outwards to obtain the target data. The target communication device can then return the obtained data to the entity executing this disclosure, which only needs to receive the returned data.
[0124] It should be understood that the former is equivalent to data access based on the name of the entity implementing this disclosure, with the target communication device acting as a router, while the latter involves the target communication device accessing data in its own name. In short-range communication networks, this is equivalent to only data sharing without a routing process.
[0125] It should be noted that the former is mostly used in the case of "short-range communication network not using the target communication device as the host device". In this case, the operation of obtaining target data may include: generating an access request for obtaining target data and sending the access request to the target communication device through the short-range communication network so that the target communication device can forward the access request. However, this disclosure only needs to receive the data obtained and returned by the target communication device by forwarding the access request.
[0126] The latter is mostly used in the case of "the target communication device as the host device". In this case, the operation of obtaining target data includes: providing the target communication device with its own demand for obtaining target data through a short-range communication network, so that the target communication device can generate and send an access request based on the demand. On this basis, the target communication device can obtain target data based on the access request. This disclosure only needs to receive the target data returned by the target communication device.
[0127] Of course, this example is merely illustrative. The specific method used to acquire data through the target communication device can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on it.
[0128] In this disclosure, when the device corresponding to the target communication device has not yet been designated as the target communication device, this disclosure may use a short-range communication method with relatively poor communication quality to communicate with the device. Therefore, after the target communication device is determined, if the short-range communication link between the target communication device and the target communication device has poor communication quality, the short-range communication method can be changed to improve the short-range communication quality.
[0129] In this disclosure, various methods can be used to change the short-range communication method.
[0130] In one embodiment, the target communication device supports a first short-range communication technology and a second short-range communication technology, and the short-range communication quality of the first short-range communication technology is higher than that of the second short-range communication technology. In this case, after the target communication device is identified, if a short-range communication link with the target communication device is established using the second short-range communication technology, the short-range communication link with the target communication device can be reconstructed based on the first short-range communication technology.
[0131] In another embodiment, the short-range communication module used to establish a short-range communication link with the target communication device may include a high-power mode and a low-power mode. In this case, after the target communication device is determined, if the short-range communication module used to establish the short-range communication link with the target communication device is in a low-power mode, the short-range communication module can be switched to a high-power mode.
[0132] It should be understood that both changing to a short-range communication technology with better communication quality and increasing the power of the short-range communication module can effectively improve the quality of short-range communication. In this way, when acquiring target data using the target communication device, the problem of low data acquisition efficiency due to poor short-range communication quality can be avoided.
[0133] It should be stated that the communication quality fluctuations of a single device caused by environmental changes as described in this disclosure can be caused by factors in multiple dimensions. For example, a smartphone equipped with a SIM card from a specific operator may have varying base station deployments in different areas. If a user travels from location M to location N by vehicle, and the operator has a large number of base stations at location M, the smartphone will have better network communication quality at location M. However, upon arriving at location N, the operator will have fewer base stations at location N, resulting in poorer network communication quality. Of course, this example is merely illustrative. Factors causing communication quality fluctuations of a single device for a specific data type, besides the distribution of operator base stations, may also include changes in the state of its own components, signal obstruction at its location, etc. This disclosure does not limit these factors.
[0134] It should also be stated that the implementing entity of the technical solution disclosed herein can be any type of electronic device. For example, the electronic device can be a mobile terminal such as a smartphone or tablet computer, a fixed terminal such as a smart TV or PC (Personal Computer), or a vehicle such as a smart car. It should be understood that any electronic device that has short-range communication capability and data communication needs can be used as the electronic device in this disclosure. The specific type of electronic device used as the implementing entity of the technical solution disclosed herein can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on this.
[0135] It should also be stated that the aforementioned target data generally does not refer to short-range communication data, and the communication quality of the aforementioned target data generally does not refer to the communication quality of short-range communication networks. In other words, the communication quality of the target data in this disclosure generally refers to the communication quality of non-short-range communication networks.
[0136] As can be seen from the above technical solution, this disclosure can preferentially employ short-range communication technology to join or construct a short-range communication network, so that the short-range communication network contains at least two devices. Based on this, when it is necessary to acquire target data, a target communication device whose communication quality for the target data meets preset communication conditions can be preferentially identified from the short-range communication network, and then the target data can be acquired through that target communication device.
[0137] It should be understood that this disclosure is equivalent to using short-range communication technology to selectively perform target data communication operations from within a short-range communication network. In this way, when the communication quality of a single device for target data is poor, other devices within the same short-range communication network can be used to achieve the target data communication operation, maintaining long-term stable communication quality of the target data and avoiding communication quality instability caused by the device's own poor communication quality.
[0138] The following section will use "the optimization of network data by various mobile terminals in an intelligent vehicle through the vehicle network" as an example to introduce the technical solution disclosed herein.
[0139] Figure 2 This is a schematic diagram illustrating the architecture of an in-vehicle network as an exemplary embodiment of this disclosure. Figure 2 As shown, the intelligent car contains four devices: the vehicle-mounted T-BOX, mobile phone X, mobile phone Y, and mobile phone Z. The vehicle-mounted T-BOX is connected to the mobile network of operator A; mobile phone X is connected to the mobile network of operator B; and mobile phones Y and Z are connected to the mobile network of operator C.
[0140] In addition to connecting to their respective mobile network operators, phones X, Y, and Z can also connect to the in-vehicle WiFi network of the T-BOX infotainment system. Once connected, this in-vehicle WiFi network becomes the aforementioned short-range communication network. It's clear that this method allows the previously independently operating mobile terminals to form a collective that shares the optimal communication path via the in-vehicle WiFi network.
[0141] Under this premise, the vehicle-mounted T-BOX can monitor and compare the network communication quality of each terminal in the vehicle's WiFi network, so as to conduct network communication through the device with the best network communication quality.
[0142] The following section will use "using the vehicle-mounted T-BOX as the host device in the vehicle WiFi network" as an example to introduce the technical solution disclosed herein.
[0143] Figure 3 This diagram illustrates an interaction diagram of a network data communication method in a vehicle-mounted network, as shown in an exemplary embodiment of this disclosure. Figure 3 As shown, the method may include the following steps:
[0144] Step 301: The vehicle-mounted T-BOX sends communication quality feedback commands to mobile phones X, Y, and Z via the vehicle's WiFi network.
[0145] In this embodiment, the vehicle-mounted T-BOX can activate its built-in in-vehicle WiFi network so that other devices can join. Under this premise, mobile phones X, Y, and Z can join the in-vehicle WiFi network through their built-in WiFi function, so as to achieve data sharing among the four devices through the in-vehicle WiFi network.
[0146] In this embodiment, the vehicle-mounted T-BOX, as the host device in the vehicle-mounted WiFi network, can send communication quality feedback commands to mobile phones X, Y, and Z, instructing mobile phones X, Y, and Z to transmit their own communication quality-related information to the vehicle-mounted T-BOX, so that the vehicle-mounted T-BOX can compare the network communication quality of the four devices and select the best one to acquire network data.
[0147] Step 302A: Mobile phones X, Y, and Z return parameters related to their own network communication quality to the vehicle's T-BOX.
[0148] In this embodiment, after receiving the communication quality feedback instruction, mobile phones X, Y and Z can return parameters related to their own network communication quality to the vehicle-mounted T-BOX. These parameters can be either parameters reflecting signal strength or parameters reflecting signal quality. For example, these parameters can include at least one of channel power, RSSI (Received Signal Strength Indicator), signal-to-noise ratio, bit error rate, carrier-to-interference ratio, etc.
[0149] Step 302B: The vehicle's T-BOX acquires its own parameters related to network communication quality.
[0150] In this embodiment, while obtaining the parameters of mobile phone X, Y, and Z related to network communication quality, it is also necessary to obtain the parameters of the phone itself related to network communication quality in order to compare the four and select the best one.
[0151] Step 303: The vehicle-mounted T-BOX calculates the network communication quality score of each device based on the parameters obtained from each device.
[0152] In this embodiment, after the vehicle-mounted T-BOX obtains the parameters related to network communication quality of each device in the smart car, it can calculate the network communication quality score to characterize the overall network communication quality of each device based on a preset algorithm, and compare the network communication quality scores of the four devices to determine the one with the highest score, which is the one with the best network communication quality.
[0153] Step 304: The vehicle-mounted T-BOX compares the network communication quality scores of each device and determines the device with the highest score.
[0154] Step 305A: If the vehicle-mounted T-BOX has the highest score, the vehicle-mounted T-BOX initiates a network data request to the base station of operator A to obtain network data.
[0155] In this embodiment, assuming the highest score belongs to the vehicle-mounted T-BOX itself, the T-BOX can initiate a network data request to operator A's base station to obtain network data. After obtaining the network data, the T-BOX can further share the obtained network data with mobile phones X, Y, and Z via the vehicle's Wi-Fi network.
[0156] At this time, mobile phones X, Y, and Z can also obtain network data from operator A's base station through the vehicle's T-BOX system when they need to obtain network data.
[0157] Step 305B: If mobile phone X has the highest score, the vehicle's T-BOX sends a data acquisition command to mobile phone X.
[0158] In this embodiment, assuming that the highest scorer is mobile phone X, the vehicle-mounted T-BOX can send a data acquisition command to mobile phone X, so that mobile phone X can obtain network data from the base station of operator B on its behalf.
[0159] Step 306B: Mobile phone X initiates a network data request to operator B's base station to obtain network data, and returns the obtained network data to the vehicle's T-BOX.
[0160] In this embodiment, upon receiving a data acquisition command, mobile phone X can initiate a network data request to operator B's base station to obtain network data. After obtaining the network data from operator B's base station, the data can be shared to the vehicle's T-BOX via the in-vehicle WiFi network. Of course, the vehicle's T-BOX can further share this network data with mobile phones Y and Z via the in-vehicle WiFi network.
[0161] Correspondingly, when mobile phones Y and Z need to obtain network data, they can also obtain it from operator B's base station through mobile phone X.
[0162] In step 305C, if mobile phone Y has the highest score, the vehicle's T-BOX sends a data acquisition command to mobile phone Y.
[0163] In this embodiment, assuming that the highest score belongs to mobile phone Y, the vehicle-mounted T-BOX can send a data acquisition command to mobile phone Y, so that mobile phone Y can obtain network data from the base station of operator C on its behalf.
[0164] Step 306C: Mobile phone Y initiates a network data request to operator C's base station to obtain network data, and returns the obtained network data to the vehicle's T-BOX.
[0165] In this embodiment, upon receiving a data acquisition command, mobile phone Y can initiate a network data request to operator C's base station to obtain network data. After obtaining the network data from operator C's base station, the data can be shared to the vehicle's T-BOX via the in-vehicle WiFi network. Of course, the vehicle's T-BOX can further share this network data with mobile phones X and Z via the in-vehicle WiFi network.
[0166] Correspondingly, when mobile phones X and Z need to obtain network data, they can also obtain it from the base station of operator C through mobile phone Y.
[0167] In step 305D, if mobile phone Z has the highest score, the vehicle's T-BOX system sends a data acquisition command to mobile phone Z.
[0168] In this embodiment, assuming that the highest scorer is mobile phone Z, the vehicle-mounted T-BOX can send a data acquisition command to mobile phone Z, so that mobile phone Z can obtain network data from the base station of operator C on its behalf.
[0169] Step 306D: Mobile phone Z initiates a network data request to operator C's base station to obtain network data, and returns the obtained network data to the vehicle's T-BOX.
[0170] In this embodiment, upon receiving a data acquisition command, mobile phone Z can initiate a network data request to operator C's base station to obtain network data. After obtaining the network data from operator C's base station, the data can be shared to the vehicle's T-BOX via the in-vehicle WiFi network. Of course, the vehicle's T-BOX can further share this network data with mobile phones X and Y via the in-vehicle WiFi network.
[0171] Correspondingly, when mobile phones X and Y need to obtain network data, they can also obtain it from the base station of operator C through mobile phone Z.
[0172] As can be seen from the above embodiments, when the technical solution of this disclosure is applied to an in-vehicle network, it can determine in real time the network with the best communication quality in the in-vehicle network, and the best network data can be acquired by the best network data acquisition device. For example, in region R, operator A has deployed the most base stations, resulting in the best network communication quality for the vehicle's T-BOX. In this case, all devices in the in-vehicle WiFi network can acquire network data through the T-BOX. However, after entering region S, operator A has deployed fewer base stations, while operator B has the most base stations. At this time, mobile phone X has the best network communication quality in the in-vehicle WiFi network, so the acquisition of network data can be changed to mobile phone X.
[0173] It is worth noting that during the aforementioned intelligent vehicle's movement, another set of location data acquisition logic can be executed asynchronously. This logic also compares the communication quality of location data based on the aforementioned in-vehicle WiFi network, and the best performing network acquires and shares the location data. However, the network data in the above method is replaced with location data, which will not be elaborated upon here. This method ensures stable acquisition of location data during the intelligent vehicle's movement, avoiding the problem of navigation functions failing to provide continuous service due to unstable location data acquisition.
[0174] Figure 4 This is a block diagram illustrating a data communication apparatus according to an exemplary embodiment of this disclosure. (Refer to...) Figure 4 The device includes a short-range communication unit 401, a device determination unit 402, and a data acquisition unit 403.
[0175] The short-range communication unit 401 uses short-range communication technology to join or build a short-range communication network, wherein the short-range communication network includes at least two communication devices;
[0176] The device determination unit 402 determines a target communication device from the at least two communication devices, wherein the target communication device meets preset communication conditions for the communication quality of the target data.
[0177] The data acquisition unit 403 acquires the target data based on the target communication device.
[0178] Optionally, the device determination unit 402 is further used for:
[0179] A communication quality detection signal is generated, which is used to detect the communication quality of the target data;
[0180] Receive communication quality detection results fed back by the at least two communication devices, wherein the communication quality detection results are generated based on the communication quality detection signals;
[0181] The target communication device is determined based on the communication quality detection results of each of the at least two communication devices.
[0182] Optionally, the device determination unit 402 is further used for:
[0183] A communication quality detection signal is generated according to a preset period to periodically update the target communication device used to acquire the target data; or,
[0184] In the event that any of the at least two communication devices requests to acquire the target data, a communication quality detection signal is generated to determine the target communication device for acquiring the target data in real time.
[0185] Optionally, the device determination unit 402 is further used for:
[0186] Obtain the comparison results of the communication quality scores of the at least two communication devices, and determine the communication device with the highest communication quality score as the target communication device; or,
[0187] The communication quality scores of the at least two communication devices are compared with a preset communication score threshold, and the communication devices with communication quality scores higher than the communication score threshold are identified as target communication devices.
[0188] The communication quality score of each communication device is positively correlated with either the communication signal strength or the communication signal quality of the corresponding device.
[0189] Optionally, the target data includes at least one of the following: location data, network data.
[0190] Optionally, the target data includes first target data and second target data;
[0191] The device determination unit 402 is further used for:
[0192] A first target communication device and a second target communication device are determined from the at least two communication devices; the communication quality of the first target communication device for the first target data meets a preset first communication condition; the communication quality of the second target communication device for the second target data meets a preset second communication condition.
[0193] The data acquisition unit 403 is further used for:
[0194] The first target data is acquired based on the first target communication device; and the second target data is acquired based on the second target communication device;
[0195] The first target communication device is different from the second target communication device.
[0196] Optionally, when the short-range communication network uses the target communication device as the host device, the data acquisition unit 403 is further used to:
[0197] The short-range communication network provides the target communication device with its own request for acquiring the target data, so that the target communication device can generate and send an access request based on the acquisition request.
[0198] The target data is received from the target communication device; the target data is obtained by the target communication device based on the access request.
[0199] Optionally, if the short-range communication network does not use the target communication device as the host device, the data acquisition unit 403 is further used to:
[0200] An access request for obtaining the target data is generated, and the access request is sent to the target communication device through the short-range communication network, so that the target communication device can forward the access request outward;
[0201] The target communication device receives the data it obtains and returns by forwarding the access request.
[0202] Optionally, the device determination unit 402 is also used for:
[0203] If the short-range communication link between the target communication device and the target communication device has poor communication quality, the short-range communication method is changed to improve the short-range communication quality.
[0204] Optionally, the target communication device supports a first short-range communication technology and a second short-range communication technology, wherein the short-range communication quality of the first short-range communication technology is higher than that of the second short-range communication technology;
[0205] The device determination unit 402 is further configured to: rebuild the short-range communication link with the target communication device based on the first short-range communication technology when the short-range communication link with the target communication device is established using the second short-range communication technology.
[0206] Optionally, the short-range communication module used to establish a short-range communication link with the target communication device includes a high-power mode and a low-power mode;
[0207] The device determination unit 402 is further configured to: switch the short-range communication module to a high-power mode when the short-range communication module used to establish a short-range communication link with the target communication device is in a low-power mode.
[0208] Optionally, the communication quality of the target data is: the communication quality of a non-short-range communication network.
[0209] Optionally, the various communication devices in the short-range communication network are interconnected using the same or different short-range communication technologies;
[0210] The short-range communication network employs at least one of the following short-range communication technologies: WiFi, Bluetooth, and NFC. For the device embodiments, since they basically correspond to the method embodiments, relevant details can be found in the descriptions of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0211] Accordingly, this disclosure also provides a data communication device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the data communication method as described in any of the above embodiments, for example, the method may include: joining or constructing a short-range communication network using short-range communication technology, the short-range communication network including at least two communication devices; determining a target communication device from the at least two communication devices, the target communication device meeting preset communication conditions for communication quality of target data; and acquiring the target data based on the target communication device.
[0212] Accordingly, this disclosure also provides an electronic device, which includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for implementing the data communication method as described in any of the above embodiments. For example, the method may include: joining or constructing a short-range communication network using short-range communication technology, the short-range communication network including at least two communication devices; determining a target communication device from the at least two communication devices, the target communication device meeting preset communication conditions for communication quality of target data; and acquiring the target data based on the target communication device.
[0213] Accordingly, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements instructions for a data communication method as described in any of the above embodiments. For example, the method may include: joining or constructing a short-range communication network using short-range communication technology, the short-range communication network including at least two communication devices; determining a target communication device from the at least two communication devices, the target communication device meeting preset communication conditions for communication quality of target data; and acquiring the target data based on the target communication device.
[0214] Figure 5This is a block diagram illustrating an apparatus 500 for implementing a data communication method according to an exemplary embodiment. For example, apparatus 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0215] Reference Figure 5 The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0216] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0217] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0218] Power supply component 506 provides power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.
[0219] Multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0220] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0221] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0222] Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0223] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0224] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0225] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of the device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0226] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0227] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0228] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A data communication method, characterized in that, include: Using short-range communication technology to join or build a short-range communication network, wherein the short-range communication network includes at least two communication devices; A target communication device is determined from the at least two communication devices, wherein the communication quality of the target communication device for the target data meets preset communication conditions; The target data is obtained based on the target communication device.
2. The method according to claim 1, characterized in that, The step of determining the target communication device from the at least two communication devices includes: A communication quality detection signal is generated, which is used to detect the communication quality of the target data; Receive communication quality detection results fed back by the at least two communication devices, wherein the communication quality detection results are generated based on the communication quality detection signals; The target communication device is determined based on the communication quality detection results of each of the at least two communication devices.
3. The method according to claim 2, characterized in that, The generated communication quality detection signal includes: A communication quality detection signal is generated according to a preset period to periodically update the target communication device used to acquire the target data; or, In the event that any of the at least two communication devices requests to acquire the target data, a communication quality detection signal is generated to determine the target communication device for acquiring the target data in real time.
4. The method according to claim 2, characterized in that, The step of determining the target communication device based on the communication quality detection result of each of the at least two communication devices includes: Obtain the comparison results of the communication quality scores of the at least two communication devices, and determine the communication device with the highest communication quality score as the target communication device; or, The communication quality scores of the at least two communication devices are compared with a preset communication score threshold, and the communication devices with communication quality scores higher than the communication score threshold are identified as target communication devices. The communication quality score of each communication device is positively correlated with either the communication signal strength or the communication signal quality of the corresponding device.
5. The method according to claim 1, characterized in that, The target data includes at least one of the following: location data, network data.
6. The method according to any one of claims 1 to 5, characterized in that, The target data includes first target data and second target data; The step of determining the target communication device from the at least two communication devices includes: A first target communication device and a second target communication device are determined from the at least two communication devices; the communication quality of the first target communication device for the first target data meets a preset first communication condition; the communication quality of the second target communication device for the second target data meets a preset second communication condition. The step of acquiring the target data based on the target communication device includes: The first target data is acquired based on the first target communication device; and the second target data is acquired based on the second target communication device; The first target communication device is different from the second target communication device.
7. The method according to claim 1, characterized in that, When the short-range communication network uses the target communication device as the host device, the step of acquiring the target data based on the target communication device includes: The short-range communication network provides the target communication device with its own request for acquiring the target data, so that the target communication device can generate and send an access request based on the acquisition request. The target data is received from the target communication device; the target data is obtained by the target communication device based on the access request.
8. The method according to claim 1, characterized in that, In the case where the short-range communication network does not use the target communication device as the host device, the step of acquiring the target data based on the target communication device includes: An access request for obtaining the target data is generated, and the access request is sent to the target communication device through the short-range communication network, so that the target communication device can forward the access request outward; The target communication device receives the data it obtains and returns by forwarding the access request.
9. The method according to claim 1, characterized in that, After identifying the target communication device, the process also includes: If the short-range communication link between the target communication device and the target communication device has poor communication quality, the short-range communication method is changed to improve the short-range communication quality.
10. The method according to claim 9, characterized in that, The target communication device supports a first short-range communication technology and a second short-range communication technology, wherein the short-range communication quality of the first short-range communication technology is higher than that of the second short-range communication technology; In the event of poor communication quality of the short-range communication link with the target communication device, changing the short-range communication method includes: if the short-range communication link with the target communication device is established using a second short-range communication technology, rebuilding the short-range communication link with the target communication device based on a first short-range communication technology.
11. The method according to claim 9, characterized in that, The short-range communication module for establishing a short-range communication link with the target communication device includes a high-power mode and a low-power mode. In the event of poor communication quality of the short-range communication link with the target communication device, the method of changing the short-range communication mode includes: when the short-range communication module used to construct the short-range communication link with the target communication device is in a low-power mode, switching the short-range communication module to a high-power mode.
12. The method according to claim 1, characterized in that, The communication quality of the target data is defined as the communication quality of a non-short-range communication network.
13. The method according to claim 1, characterized in that, The various communication devices in the short-range communication network are interconnected using the same or different short-range communication technologies. The short-range communication network employs at least one of the following short-range communication technologies: WiFi, Bluetooth, and NFC.
14. A data communication device, characterized in that, include: A short-range communication unit, which uses short-range communication technology to join or build a short-range communication network, wherein the short-range communication network includes at least two communication devices; A device determination unit determines a target communication device from the at least two communication devices, wherein the target communication device meets preset communication conditions for the communication quality of the target data. The data acquisition unit acquires the target data based on the target communication device.
15. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1-13 by executing the executable instructions.
16. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-13.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-13.
