Communication method and electronic equipment
By enabling electronic devices to determine the frequency band for direct communication and perform frequency division duplex communication in a base station-free communication mode, communication problems in base station-free environments such as remote areas are solved, and efficient long-distance communication between electronic devices is achieved.
Patent Information
- Application Number
- CN202510900197.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-03
AI Technical Summary
In remote areas, mountainous or underground locations, and where base stations are destroyed by natural disasters, electronic devices cannot communicate efficiently.
In the base station-free communication mode, the electronic device determines the transmitting and receiving frequency bands for direct communication with other devices, and performs data transmission without the help of a base station, using the standard transmitting and receiving frequency bands supported by the electronic device itself for frequency division duplex communication.
It achieves efficient and long-distance communication between electronic devices in a base station-free environment, avoids hardware changes, and improves communication bandwidth and anti-interference capabilities.
Smart Images

Figure CN120751502A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method and electronic equipment. Background Art
[0002] Currently, electronic devices can achieve high throughput and long-distance communication based on mobile networks provided by mobile operators. However, in some remote areas, mountainous areas, underground locations, or when communication infrastructure such as base stations is destroyed by natural disasters, electronic devices may not be able to communicate efficiently with other electronic devices. Summary of the Invention
[0003] In one aspect, the present application provides a communication method, applied to a first electronic device, comprising:
[0004] If the communication mode of the first electronic device is a base station-free communication mode, determining a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device, wherein the first transmitting frequency band and the second receiving frequency band used by the second electronic device have the same frequency range, and the first receiving frequency band and the second transmitting frequency band used by the second electronic device have the same frequency range; in the base station-free communication mode, no data communication occurs between the first electronic device and the base station;
[0005] When the first electronic device is in a base station-free communication mode, the first communication data is sent to the second electronic device based on the first transmitting frequency band, and the second communication data sent by the second electronic device is received based on the first receiving frequency band.
[0006] In one possible implementation, determining a first transmitting frequency band and a first receiving frequency band that can be used for direct communication with the second electronic device includes:
[0007] Determine a test frequency band combination, where the test frequency band combination belongs to one of a plurality of configured frequency band combinations, and the test frequency band combination includes: a test transmit frequency band and a test receive frequency band;
[0008] transmitting a first broadcast signal based on the test transmit frequency band, and receiving a signal based on the test receive frequency band;
[0009] If a second broadcast signal sent by a second electronic device is received based on the test receiving frequency band, or a response signal returned by the second electronic device to the first broadcast signal is received, it is determined that the first transmitting frequency band used for direct communication with the second electronic device is the test transmitting frequency band, and the first receiving frequency band is the test receiving frequency band.
[0010] In yet another possible implementation, determining the test frequency band combination includes at least one of the following:
[0011] Randomly select a test frequency band combination from multiple configured frequency band combinations;
[0012] Based on the user's selection operation on the configuration interface, a test frequency band combination is obtained.
[0013] In yet another possible implementation, determining the first transmitting frequency band and the first receiving frequency band that can be used for direct communication with the second electronic device further includes at least one of the following:
[0014] If the second broadcast signal and the response signal are not received based on the test receiving frequency band within the set detection time period, returning to the operation of randomly selecting a test frequency band combination from the configured multiple groups of frequency band combinations to re-determine the test frequency band combination;
[0015] If the second broadcast signal and the response signal are not received based on the test receiving frequency band within the set detection time, a configuration interface is output and the user is prompted to reselect a test frequency band combination to re-determine the test frequency band combination.
[0016] In yet another possible implementation, the communication method further includes:
[0017] In response to a target event, the communication mode of the first electronic device is switched to a base station-free communication mode.
[0018] In yet another possible implementation, in response to the target event, switching the communication mode of the first electronic device to a base station-free communication mode includes at least one of the following:
[0019] In response to the interruption of the communication connection between the first electronic device and the base station, switching the communication mode of the first electronic device to a base station-free communication mode;
[0020] In response to the target mode switching instruction, the communication mode of the first electronic device is switched to a base station-free communication mode.
[0021] In another possible implementation, there are multiple second electronic devices;
[0022] The communication method further includes:
[0023] Determining a period length of a communication cycle based on the number of devices corresponding to the plurality of second electronic devices;
[0024] respectively determining a communication time period during which each second electronic device communicates with the first electronic device within the communication cycle;
[0025] Based on the first transmission frequency band, the period length of the communication cycle and the communication time period corresponding to the second electronic device are sent to the second electronic device.
[0026] In another possible implementation, the sending the first communication data to the second electronic device based on the first transmission frequency band, and receiving the second communication data sent by the second electronic device based on the first reception frequency band includes:
[0027] In the current communication cycle, if the communication time period corresponding to the second electronic device is currently reached, the first communication data is sent to the second electronic device based on the first transmitting frequency band, and / or the second communication data sent by the second electronic device is received based on the first receiving frequency band.
[0028] In yet another possible implementation, the first transmitting frequency band and the first receiving frequency band have different frequency ranges;
[0029] The frequency range corresponding to the first transmission frequency band belongs to a part of the frequency range corresponding to the standard transmission frequency band supported by the first electronic device;
[0030] The frequency range corresponding to the first receiving frequency band belongs to a part of the frequency range corresponding to the standard receiving frequency band supported by the first electronic device;
[0031] The standard transmitting frequency band belongs to at least one transmitting frequency band that can be used by the first electronic device to communicate with the base station, and the standard receiving frequency band belongs to at least one receiving frequency band that can be used by the first electronic device to communicate with the base station.
[0032] In yet another aspect, the present application further provides an electronic device comprising: a processor, a modem, and a radio frequency front-end module;
[0033] The processor is configured to, if the communication mode of the electronic device is a base station-free communication mode, determine a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device, wherein the frequency range between the first transmitting frequency band and the second receiving frequency band used by the second electronic device is the same, and the frequency range between the first receiving frequency band and the second transmitting frequency band used by the second electronic device is the same; in the base station-free communication mode, there is no data communication between the first electronic device and the base station; and instruct the modem to set the transmitting frequency band of the electronic device to the first transmitting frequency band, and the receiving frequency band to the first receiving frequency band;
[0034] The modem is configured to set the signal transmission frequency band of the RF front-end module to the first transmission frequency band, and set the signal reception frequency band of the RF front-end module to the first reception frequency band;
[0035] The RF front-end module is configured to send first communication data to the second electronic device based on the first transmitting frequency band, and receive second communication data sent by the second electronic device based on the first receiving frequency band. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0037] Figure 1 A flow chart of the communication method provided in this application;
[0038] Figure 2 This is an example diagram of communication between a first electronic device and a second electronic device through a radio frequency front-end module in this application;
[0039] Figure 3 This is an example diagram of a transmission path for transmitting data between a first electronic device and a second electronic device in this application;
[0040] Figure 4 This is another schematic diagram of the composition architecture of the radio frequency front-end module in the first electronic device in this application;
[0041] Figure 5 A schematic diagram of another flow chart of the communication method provided by this application;
[0042] Figure 6 A schematic diagram of another flow chart of the communication method provided by this application;
[0043] Figure 7 A schematic diagram of another flow chart of the communication method provided by this application;
[0044] Figure 8 An example diagram showing each second electronic device connected to the first electronic device and each communication period of each second electronic device within a communication cycle in the present application is shown;
[0045] Figure 9 An example diagram of the composition architecture of an electronic device provided in this application is shown. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation methods of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0047] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0048] The communication method provided in this application can realize communication between different electronic devices without the help of a base station, so that even if an abnormality occurs in the base station or the electronic device enters a place without base station coverage, communication can still be established through the electronic device with other electronic devices.
[0049] like Figure 1 , which shows a flow chart of the communication method provided by this application. The method of this embodiment is applied to a first electronic device, which can be any terminal device having a hardware module for establishing a communication connection with a base station. For example, the first electronic device can be a communication terminal such as a mobile phone including a modem and a radio frequency front-end module, without limitation.
[0050] The method of this embodiment may include:
[0051] S101: If the communication mode of the first electronic device is a base station-free communication mode, determine a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device.
[0052] S102 : When the first electronic device is in a base station-free communication mode, the first electronic device sends first communication data to the second electronic device based on a first transmitting frequency band, and receives second communication data sent by the second electronic device based on a first receiving frequency band.
[0053] In the embodiment of the present application, the second electronic device may be any electronic device other than the first electronic device, and there is no limitation on this.
[0054] In the base station-free communication mode, there is no data communication between the first electronic device and the base station. Based on this, in the base station-free communication mode, the first electronic device will not establish a communication connection with the base station, and naturally it is impossible to establish a communication connection with other electronic devices through the base station. On this basis, direct communication between the first electronic device and the second electronic device refers to the establishment of point-to-point direct communication between the first electronic device and the second electronic device without the help of a base station or other electronic devices.
[0055] The frequency range between the first transmitting frequency band and the second receiving frequency band used by the second electronic device is the same, and the frequency range between the first receiving frequency band and the second transmitting frequency band used by the second electronic device is the same.
[0056] It is understandable that, because the first transmission frequency band used by the first electronic device to send data is consistent with the frequency range of the second reception frequency band used by the second electronic device to receive data, after the first electronic device sends the first communication data using the first transmission frequency band, the second electronic device can receive the first communication data based on the second reception frequency band. Similarly, because the first reception frequency band used by the first electronic device to receive data is consistent with the second transmission frequency band used by the second electronic device to send data, the first electronic device can receive the second communication data sent by the second electronic device via the second transmission frequency band based on the first reception frequency band.
[0057] Moreover, since the respective communication frequency bands for transmitting data from the first electronic device to the second electronic device and for transmitting data from the second electronic device to the first electronic device are determined respectively, the first electronic device can transmit the first communication data based on the first transmission frequency band while also receiving the second communication data sent by the second electronic device through the second transmission frequency band through the first reception frequency band.
[0058] Based on this, the frequency ranges of the first transmit frequency band and the first receive frequency band are different. For example, the frequency ranges corresponding to the first transmit frequency band and the first receive frequency band do not overlap. Based on this, the first electronic device effectively communicates with the second electronic device using a frequency division duplex communication mode, thereby achieving highly efficient communication between the first and second electronic devices.
[0059] It should be noted that although the first electronic device has the function of transmitting data through the first transmitting frequency band and receiving data sent by the second electronic device through the first receiving frequency band at the same time, it is not necessarily the case that the first electronic device and the second electronic device will transmit data at every moment. Therefore, at a certain moment, the first communication data and the second communication data may both be not empty, or at least one of the first communication data and the second communication data may be empty.
[0060] For example, at a certain moment, the first electronic device sends the first communication data based on the first transmission frequency band, but the second electronic device does not send the second communication data based on the second transmission frequency band. Then the first communication data sent by the first electronic device is not empty, but the first electronic device will not receive the second communication data, that is, the second communication data is empty.
[0061] From the above content, it can be seen that in this application, if the communication mode of the first electronic device is a base station-free communication mode, the first electronic device will respectively determine the first transmission frequency band and the first receiving frequency band used for direct communication with the second electronic device, so that the first transmission frequency band is the same as the frequency range of the second transmission frequency band used by the second electronic device, and the first receiving frequency band is the same as the frequency range of the second receiving frequency band used by the second electronic device. On this basis, when the first electronic device is in a base station-free communication mode, the first electronic device can transmit the first communication data to the second electronic device through the first transmission frequency band while also receiving the second communication data sent by the second electronic device through the first receiving frequency band. In this way, without the help of a base station, two-way synchronous communication can be achieved between the first electronic device and the second electronic device, so that efficient communication can be achieved between the electronic devices without the help of a base station.
[0062] It is understandable that, in the present application, the frequency ranges of the first transmitting frequency band and the first receiving frequency band are different, and the frequency ranges of the first transmitting frequency band and the first receiving frequency band can have many possibilities, which are not specifically limited.
[0063] In one possible implementation, in order to enable a first electronic device and a second electronic device to have a higher communication rate and to achieve longer-distance communication while avoiding hardware design changes, in this application, the frequency range corresponding to the first transmit frequency band belongs to a portion of the frequency range corresponding to the standard transmit frequency band supported by the first electronic device. Correspondingly, the frequency range corresponding to the first receive frequency band belongs to a portion of the frequency range corresponding to the standard receive frequency band supported by the first electronic device. The standard transmit frequency band belongs to at least one transmit frequency band that can be used by the first electronic device to communicate with a base station, and the standard receive frequency band belongs to at least one receive frequency band that can be used by the first electronic device to communicate with a base station.
[0064] It can be seen that in this implementation method, the first transmitting frequency band and the first receiving frequency band adopted by the first electronic device both reuse the relevant frequency bands supported by the first electronic device itself and capable of communicating with the base station, and also reuse the relevant hardware modules required for the first electronic device to conduct wireless communication with the base station to enable the first electronic device to support the first transmitting frequency band and the first receiving frequency band, thereby enabling the first electronic device to send data based on the first transmitting frequency band and receive data based on the first receiving frequency band without making special hardware improvements to the electronic device.
[0065] Moreover, compared with short-range wireless communications such as Bluetooth or WiFi, since the frequency band for communication between the first electronic device and the base station and the hardware used can support a longer communication distance, when the first transmitting frequency band and the first receiving frequency band respectively belong to the standard transmitting frequency band and the standard receiving frequency band used by the first electronic device to communicate with the base station, the first electronic device can reuse the hardware modules used for communication with the base station to support the first transmitting frequency band and the first receiving frequency band, so that the first electronic device can also support long-distance communication with the second electronic device without the aid of a base station, thereby improving the communication distance between electronic devices in the absence of a base station.
[0066] In addition, compared with short-range wireless communications such as Bluetooth or WiFi, since the bandwidth corresponding to the standard transmit frequency band and the standard receive frequency band is relatively high, when the first transmit frequency band and the first receive frequency band belong to the transmit frequency band and the standard receive frequency band respectively, the first transmit frequency band and the first receive frequency band can be reasonably determined, which can increase the communication bandwidth.
[0067] For example, in the present application, the bandwidth of the first transmitting frequency band and the first receiving frequency band may both be 30 MHz.
[0068] It is understandable that based on the type and model of the first electronic device, the standard transmission frequency band and standard reception frequency band supported by the first electronic device may also be different. Accordingly, the first transmission frequency band and first reception frequency band that may be adopted by the first electronic device may also be different.
[0069] For ease of understanding, the first electronic device supports at least one of the fourth generation mobile communication technology (4G) and the fifth generation mobile communication technology (5G) as an example. When the first electronic device supports 4G / 5G, the radio frequency front-end module (also called the radio frequency front-end architecture) of the first electronic device generally includes the following frequency bands, such as the B1 frequency band to the B3 frequency band. Table 1 below shows the corresponding transmit frequency range and receive frequency range of the B1 frequency band to the B3 frequency band.
[0070] Table 1
[0071] frequency band Transmit (TX) frequency range (MHz) Receive (RX) frequency range (MHz) B1 1920–1980 2110–2170 B2 1850–1910 1930–1990 B3 1710–1785 1805–1880
[0072] As can be seen from Table 1, the transmit frequency range of the B1 frequency band partially overlaps with the receive frequency range corresponding to the B2 frequency band, while the transmit frequency range of the B2 frequency band partially overlaps with the receive frequency range of the B3 frequency band. Based on this, the combinations of the first transmit frequency band and the first receive frequency band that can be selected by the first electronic device in this application can be shown in Table 2 below.
[0073] Table 2
[0074] Transmitting frequency range (MHz) Receiving frequency range (MHz) A B2 TX: 1850–1880 B2 RX: 1930–1960 B B1 TX: 1930–1960 B3 RX: 1850–1880 A<--->B 30MHz bandwidth 30MHz bandwidth
[0075] As can be seen from Table 2 above, in the base station-free mode, the first electronic device can select two types of frequency band combinations, namely, frequency band combination A and frequency band combination B. In frequency band combination A, the frequency range corresponding to the transmit frequency band belongs to the transmit (TX) frequency range in the B2 frequency band, that is, 1850 MHZ-1880 MHZ; and the frequency range corresponding to the receive frequency band belongs to the receive (RX) frequency range in the B2 frequency band, that is, 1930 MHZ-1960 MHZ.
[0076] Similarly, the transmit frequency range corresponding to the transmit band in band combination B belongs to the transmit frequency range in band B1, that is, 1930 MHz to 1960 MHz; and the frequency range corresponding to the receive band belongs to the receive frequency range in band B3, that is, 1850 MHz to 1880 MHz.
[0077] Based on Table 2, the first electronic device may determine the first transmitting frequency band and the first receiving frequency band based on the frequency band combination provided in Table 2.
[0078] For example, if the first transmit frequency band is 1850 MHz to 1880 MHz in frequency band combination A, and the first receive frequency band is 1930 MHz to 1960 MHz in frequency band combination A, then the second electronic device will inevitably use frequency band combination B. That is, the second transmit frequency band of the second electronic device will be the transmit frequency range of 1930 MHz to 1960 MHz in frequency band combination B, which is consistent with the frequency range corresponding to the first receive frequency band used by the first electronic device. Correspondingly, the second receive frequency band of the second electronic device will be the receive frequency range of 1850 MHz to 1880 MHz in frequency band combination B, which is consistent with the frequency range of the first transmit frequency band of the first electronic device.
[0079] In addition, it can be seen from Table 2 that no matter which frequency band combination in Table 2 the first transmitting frequency band and the first receiving frequency band used by the first electronic device are, the corresponding frequency band bandwidth corresponding to the first transmitting frequency band and the first receiving frequency band is 30 MHz, which is larger than the bandwidth of Bluetooth or WiFi.
[0080] Of course, the above is only an example of the first electronic device supporting 4G / 5G and some standard receiving frequency bands and standard transmitting frequency bands supported by the first electronic device. In actual applications, there may be other possible situations for the first transmitting frequency band and the first receiving frequency band that can be determined by the first electronic device, which will not be repeated here.
[0081] For ease of understanding, the first electronic device and the second electronic device are both communication devices that support 4G or 5G. Figure 2 An example diagram shows how a first electronic device and a second electronic device implement bidirectional duplex communication at different frequencies with the help of their respective radio frequency front-end modules.
[0082] exist Figure 2 The left side in the middle is the first RF front-end module 201 of the first electronic device, and the right side is the RF front-end module 202 of the second electronic device.
[0083] Depend on Figure 2 It can be seen that the first RF front-end module 201 of the first electronic device includes: a transceiver, a power amplifier ( Figure 2 Amplifier A in the box), multiple low noise amplifiers (referred to as low noise amplifiers, such as Figure 2 Low noise amplifier 1A to low noise amplifier 4A), a quad duplexer, four duplexers, four switches for controlling the antenna (such as Figure 2 Switch 1A to switch 4A), and 4-way antenna (such as Figure 2 antenna 1A to antenna 4A).
[0084] Among them, a duplexer refers to a device that integrates two bandpass filters. These two bandpass filters form two paths, namely the receiving path and the transmitting path. Figure 2The bandpass filters corresponding to the multiple duplexers in the first RF front-end module may include filter 1A, filter 2A, filter 3A, and filter 4A. The quadplexer is equivalent to the integration of two duplexers.
[0085] The second RF front-end module 202 in the second electronic device is similar to the first RF front-end module, including: a transceiver, a power amplifier ( Figure 2 Amplifier B in the), multiple low noise amplifiers (referred to as low noise amplifiers, such as Figure 2 LNA 1B to LNA 4B), a quad duplexer, four duplexers, four switches for controlling the antenna (such as Figure 2 Switch 1B to switch 4B), and 4-way antenna (such as Figure 2 middle antenna 1B to antenna 4B).
[0086] Among them, Figure 2 The channel between the transceiver and the power amplifier is the transmit (TX) channel, and each low noise amplifier (i.e. Figure 2 The channel between the low noise amplifier (LNA) and the transceiver is the receive (RX) channel.
[0087] Depend on Figure 2 It can be seen that both the first electronic device and the second electronic device support the three frequency bands B1, B2 and B3 mentioned in Table 1 above.
[0088] exist Figure 2 Based on this, assume that the first electronic device selects B2 TX: 1850–1880 MHz in frequency band combination A in Table 2 as the first transmit frequency band and B2 RX: 1930–1960 MHz as the first receive frequency band. Then the second electronic device can use frequency band combination B to receive and send data, that is, use B1 TX: 1930–1960 as the second transmit frequency band and use B3 RX: 1850–1880 as the second receive frequency band. Then the example diagram of the communication path between the first electronic device and the second electronic device via their respective RF front-end modules can be as follows: Figure 3 shown.
[0089] like Figure 3 In the figure, the pink arrow is a transmission path for the first electronic device to send data to the second electronic device, and the blue arrow is a transmission path for the second electronic device to send data to the first electronic device.
[0090] Compared to Bluetooth, which only has one receiving channel, the first and second electronic devices each have four receiving channels. Multiple receiving channels can improve data reception sensitivity and anti-interference capabilities, and can also improve reception performance by 6dB. In addition, because the B2 frequency band supports power consumption level PC3, it can achieve 23dB, which is 3dB higher than Bluetooth (maximum power 20dB).
[0091] In addition, if the first electronic device supports power consumption level PC2, that is, the first electronic device supports two transmission channels, so that the first electronic device can have two transmission channels using the B2 frequency band, then these two transmission channels transmit simultaneously, each with a power of 23dBm, and the combined power can reach 26dBm. Figure 4 , shows an example diagram of a first electronic device having two transmission (TX) channels, in which the first electronic device adopts Figure 4 Based on the RF front-end architecture shown, the power can be increased by 6dB compared to Bluetooth, thereby increasing the transmission distance by 2-4 times.
[0092] In any of the above embodiments of the present application, the specific implementation of the first electronic device determining the first transmitting frequency band and the first receiving frequency band can be implemented in a variety of ways, without any specific limitation. For ease of understanding, the following is an example of a specific implementation method for determining the first transmitting frequency band and the first receiving frequency band. Figure 5 Another flow chart of the communication method provided by the present application is shown. The method of this embodiment is applied to a first electronic device. This embodiment includes:
[0093] S401: If the communication mode of the first electronic device is a base station-free communication mode, determine a test frequency band combination.
[0094] This test frequency band combination belongs to one of multiple configured frequency band combinations. The test frequency band combination includes: a test transmit frequency band and a test receive frequency band.
[0095] Each frequency band combination includes a transmit band and a receive band, and the transmit and receive bands differ in different frequency band combinations. For ease of distinction, a frequency band combination determined from multiple segment combinations for testing is referred to as a test frequency band combination. The transmit band in the test frequency band combination is referred to as a test transmit band, and the receive band is referred to as a test receive band.
[0096] In this embodiment, there are also multiple possibilities for determining the test frequency band combination. Several possible implementations are described below as examples:
[0097] In one possible implementation, a test frequency band combination is randomly selected from multiple configured frequency band combinations. For example, as shown in Table 2 above, two frequency band combinations, frequency band combination A and frequency band combination B, can be configured. One of these two frequency band combinations can then be randomly selected as the test frequency band combination.
[0098] The advantage of this implementation method is that it does not require user intervention and is suitable for situations such as sudden abnormal interruption between the first electronic device and the base station. The first electronic device can automatically determine the appropriate transmitting and receiving frequency bands to establish a communication connection with other electronic devices.
[0099] In another possible implementation, the test frequency band combination may be obtained based on a selection operation by the user in the configuration interface. In this implementation, the test frequency band combination selected by the user also belongs to one of the multiple configured frequency band combinations.
[0100] In this implementation, the test frequency band combination can be more reasonably determined based on the user's selection, which helps reduce the number of tests and more efficiently determine the first transmit frequency band and the first receive frequency band. For example, if the user of the first electronic device and the user of the second electronic device have pre-negotiated the transmit frequency band and receive frequency band used to establish direct communication, the first electronic device can directly select the corresponding transmit frequency band and receive frequency band. Subsequently, the first electronic device will inevitably be able to establish a communication connection with the second electronic device, which can reduce the number of tests.
[0101] It is understandable that in actual applications, the above two implementation methods can also be used simultaneously to determine the first transmitting frequency band and the first receiving frequency band. For example, based on the user's selection operation, a test frequency band combination can be obtained and subsequent operations can be performed. If the first transmitting frequency band and the first receiving frequency band cannot be determined, a test frequency band combination is randomly selected as the test frequency band combination.
[0102] S402: Transmit a first broadcast signal based on a test transmission frequency band, and receive a signal based on a test reception frequency band.
[0103] S403, if a second broadcast signal sent by a second electronic device is received based on the test receiving frequency band, or a response signal returned by the second electronic device to the first broadcast signal is received, it is determined that the first transmitting frequency band used for direct communication with the second electronic device is the test transmitting frequency band, and the first receiving frequency band is the test receiving frequency band.
[0104] The first broadcast signal is a broadcast signal sent by the first electronic device and used for testing, and the second broadcast signal is a broadcast signal sent by the second electronic device and used for testing.
[0105] It is understood that if a second broadcast signal transmitted by a second electronic device is received based on the test reception frequency band, it indicates that the frequency range corresponding to the second transmission frequency band used by the second electronic device to transmit the second broadcast signal is the same as the frequency range of the test reception frequency band. Furthermore, the test transmission frequency band and the test reception frequency band used by the first electronic device belong to a preconfigured, mutually corresponding set of frequency band combinations. Accordingly, the second transmission frequency band and the second reception frequency band used by the second electronic device also belong to a preconfigured, mutually corresponding set of frequency band combinations. For details, see Table 2 and its related description.
[0106] On this basis, if the test receive frequency band used by the first electronic device is consistent with the frequency range of the second transmit frequency band used by the second electronic device, then this also indicates that the test transmit frequency band used by the first electronic device is consistent with the frequency range of the first transmit frequency band used by the first electronic device. On this basis, the first electronic device can send data to the second electronic device based on the test transmit frequency band and receive data sent by the second electronic device based on the test receive frequency band. Therefore, the test transmit frequency band is set as the first transmit frequency band of the first electronic device, and the test receive frequency band is set as the first receive frequency band of the first electronic device.
[0107] Similarly, if the first electronic device receives a response signal returned by the second electronic device in response to the first broadcast signal, it indicates that the second electronic device and the first electronic device are able to receive data sent to each other. Therefore, the frequency range between the test transmit frequency band and the second receive frequency band used by the second electronic device is consistent, and the frequency range between the test receive frequency band and the second transmit frequency band used by the second electronic device is consistent. Accordingly, the test transmit frequency band can be set as the first transmit frequency band of the first electronic device, and the test receive frequency band can be set as the first receive frequency band of the first electronic device.
[0108] It is understandable that if the second broadcast signal sent by the second electronic device is not received based on the test receiving frequency band, and the response signal returned by the second electronic device to the first broadcast signal is not received, it means that the frequency range between the test receiving frequency band and the second transmitting frequency band used by the second electronic device is different, and the frequency range between the test transmitting frequency band and the first receiving frequency band used by the second electronic device is also different. On this basis, in order to determine the first transmitting frequency band and the first receiving frequency band suitable for establishing direct communication with the second electronic device, the present application can also return to the operation of determining the test frequency band combination to redetermine the test frequency band combination, and perform steps S202 and S203 based on the redetermined test frequency band combination.
[0109] For example, in one possible implementation, if the test frequency band combination is determined to be a randomly selected test frequency band combination from a configured plurality of frequency band combinations, then if the second broadcast signal and the response signal returned for the first broadcast signal are not received based on the test receiving frequency band within the set detection time, the operation of randomly selecting the test frequency band combination from the configured plurality of frequency band combinations can be returned to re-determine the test frequency band combination.
[0110] In another possible implementation, if the test frequency band combination is determined to be obtained based on the user's selection operation in the configuration interface, then if the second broadcast signal and the response signal are not received based on the test receiving frequency band within the set detection time, the configuration interface can be output and the user can be prompted to reselect the test frequency band combination to re-determine the test frequency band combination.
[0111] Of course, the above two implementation methods may be combined to redetermine the test frequency band combination, without any specific limitation.
[0112] In particular, in order to enable the second electronic device to confirm that the test transmission frequency band currently used by the first electronic device is the first transmission frequency band of the first electronic device, after the first electronic device receives the second broadcast signal sent by the second electronic device based on the test receiving frequency band, the first electronic device will also return a response signal corresponding to the second broadcast signal to the second electronic device based on the test receiving frequency band.
[0113] It is understandable that while the first electronic device is transmitting the first broadcast signal based on the test transmission frequency band, the second electronic device is also performing similar operations as the first electronic device to attempt to connect to the first electronic device. Therefore, the second electronic device will also transmit the second broadcast signal based on the second transmission frequency band currently used and attempt to receive the broadcast signal using the second receiving frequency band. The second transmission frequency band currently used by the second electronic device is also the transmission frequency band currently used by the second electronic device for testing. However, after the second electronic device receives the first broadcast signal or the response signal returned by the first electronic device based on the second broadcast signal, the second electronic device will set its own transmission frequency band to the second transmission frequency band and the receiving frequency band to the second receiving frequency band.
[0114] S404 : When the first electronic device is in a base station-free communication mode, the first electronic device sends first communication data to the second electronic device based on the first transmitting frequency band, and receives second communication data sent by the second electronic device based on the first receiving frequency band.
[0115] For step S404, reference may be made to the relevant introduction of the previous embodiment, and no specific limitation is imposed.
[0116] It can be understood that in the above embodiments of the present application, there is no limitation on the specific implementation of the electronic device entering the base station-free communication mode.
[0117] The following is an introduction to a specific implementation method of entering the base station-free communication mode. Figure 6 , shows another flow chart of the communication method provided by the present application. This embodiment is applied to a first electronic device and may include:
[0118] S501: In response to a target event, switch the communication mode of the first electronic device to a base station-free communication mode.
[0119] The target event can be set according to actual needs.
[0120] For example, the target event can be at least one of the following:
[0121] In one possible scenario, the target event may be the interruption of the communication connection between the first electronic device and the base station. Accordingly, in response to the interruption of the communication connection between the first electronic device and the base station, the communication mode of the first electronic device may be switched to a base station-free communication mode.
[0122] The interruption of the communication connection between the first electronic device and the base station may be due to the first electronic device being outside the coverage of the base station, or due to a base station communication failure caused by a natural disaster or other reasons, without specific limitation.
[0123] In another possible scenario, the target event may be the detection of a mode switching instruction. Accordingly, in response to the target mode switching instruction, the communication mode of the first electronic device may be switched to a base station-free communication mode. The mode switching instruction may be a user-input instruction for instructing the switch to the base station-free communication mode. In this case, even if the communication connection between the first electronic device and the base station is normal, the user may, according to actual needs, switch the communication mode of the first electronic device to a base station-free communication mode by inputting a mode switching instruction.
[0124] S502: In response to the first electronic device switching to a base station-free communication mode, determine a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device.
[0125] For example, if the target event is the interruption of the communication connection between the first electronic device and the base station, the first electronic device can randomly select a test frequency band combination from the configured multiple groups of frequency band combinations, transmit a first broadcast signal based on the test transmit frequency band in the test frequency band combination, and receive a signal based on the test receive frequency band in the test frequency band combination; if a second broadcast signal sent by a second electronic device is received based on the test receive frequency band or a response signal returned by the second electronic device for the first broadcast signal is received, it is determined that the first transmit frequency band used for direct communication with the second electronic device is the test transmit frequency band, and the first receive frequency band is the test receive frequency band.
[0126] For another example, if the target event is detecting a mode switch instruction, the first electronic device may display a configuration interface and, based on the user's selections on the configuration interface, obtain and test a test frequency band combination to determine a first transmit frequency band and a first receive frequency band. The process of determining the first receive frequency band and the first transmit frequency band based on the test frequency band combination is described previously and will not be further elaborated.
[0127] Of course, the above is merely an example. In actual applications, regardless of the target event, the first transmit frequency band and the first receive frequency band can be determined using any one or more of the aforementioned methods. For example, even if the target event is the interruption of the communication connection between the first electronic device and the base station, the first electronic device can still output a configuration interface and, based on the user's selection operation on the configuration interface, obtain a test frequency band combination, and determine the first transmit frequency band and the first receive frequency band based on the test frequency band combination. The details will not be repeated here.
[0128] S503: When the first electronic device is in a base station-free communication mode, the first electronic device sends first communication data to the second electronic device based on the first transmitting frequency band, and receives second communication data sent by the second electronic device based on the first receiving frequency band.
[0129] This step can be referred to the relevant introduction of the previous embodiment and will not be repeated here.
[0130] It is understandable that, in the present application, the first electronic device may establish direct communication with only one second electronic device, or may establish direct communication with multiple second electronic devices.
[0131] In the case where there are multiple second electronic devices, the second transmission frequency band used by each second electronic device is the same, and the second receiving frequency band is the same. In this case, considering that in some cases, the first electronic device may want to send the first communication data to a second electronic device alone, based on this, in order to reflect the target second electronic device corresponding to the first communication data, when the first electronic device sends the first communication data based on the first transmission frequency band, the device identification of the target second electronic device can be carried in the first communication data. Among them, the target second electronic device is the second electronic device among the multiple second electronic devices that currently needs to receive the communication data sent by the first electronic device.
[0132] However, since each second electronic device does not know whether the first electronic device needs to send communication data to it at the current moment, all second electronic devices must control their hardware modules to operate in the second receiving frequency band at each moment, which will inevitably lead to resource consumption.
[0133] Based on this, in order to reduce the resource consumption of the second electronic device and to ensure reliable communication between the first electronic device and each second electronic device, in this application, it is also possible to combine the time division multiple access (TDD) communication method with the frequency division duplexing (FDD) communication method. Specifically, the period length of the communication cycle can be determined based on the number of devices corresponding to the multiple second electronic devices. Accordingly, the communication time period of each second electronic device communicating with the first electronic device within the communication cycle can be determined separately. Among them, the communication time periods of different second electronic devices within the communication cycle are different.
[0134] On this basis, the first electronic device can send the period duration of the communication cycle and the communication time period corresponding to the second electronic device to the corresponding second electronic device based on the first transmission frequency band, so that the second electronic device can communicate with the first electronic device within its corresponding communication time period.
[0135] The relationship between the duration of the communication cycle and the number of devices can be set according to actual needs and is not specifically limited. For example, if there are five second electronic devices, the communication cycle can be set to 5 milliseconds.
[0136] Furthermore, the data transmission process between the first electronic device and each second electronic device may be at least one of the following:
[0137] In the current communication cycle, if the communication time period corresponding to the second electronic device is reached, the first communication data is sent to the second electronic device based on the first transmission frequency band;
[0138] In the current communication cycle, if the communication time period corresponding to the second electronic device is reached, the second communication data sent by the second electronic device is received based on the first receiving frequency band.
[0139] In some embodiments, the transmitting frequency band and the receiving frequency band used by the first electronic device to communicate with each second electronic device may be configured in advance.
[0140] The following is an example of a specific implementation method for easy understanding. Figure 7 , shows another flow chart of the communication method provided by the present application. The method of this embodiment may include:
[0141] S601: In response to a target event, switch the communication mode of the first electronic device to a base station-free communication mode.
[0142] The target event may be any of the aforementioned situations, without limitation.
[0143] In the base station-free communication mode, there is no data communication between the first electronic device and the base station.
[0144] S602: In response to the communication mode being switched to the base station-free communication mode, a test frequency band combination is obtained based on a selection operation of the user on the configuration interface.
[0145] The test frequency band combination belongs to one of multiple configured frequency band combinations, and the test frequency band combination includes: a test transmission frequency band and a test reception frequency band.
[0146] It can be understood that in this embodiment, the example is taken where the first electronic device needs to establish a direct communication connection with multiple second electronic devices in a base station-free communication mode. On this basis, if the first electronic device and each second device respectively randomly selects a test frequency band combination to test the first transmitting frequency band and the first receiving frequency band required for the first electronic device to communicate with the second electronic device, then it may result in the first transmitting frequency band and the first receiving frequency band being unable to be determined for a long time.
[0147] Based on this, in this embodiment, the user can pre-determine the transmission frequency band and the reception frequency band used by the first electronic device to communicate with each second electronic device, and directly select the corresponding transmission frequency band and the reception frequency band as the test frequency band combination in the configuration interface, so that the first electronic device can establish a connection with the second electronic device more efficiently.
[0148] Of course, if the first electronic device randomly selects the test frequency band combination, this embodiment is also applicable.
[0149] S603: Transmit a first broadcast signal based on a test transmission frequency band, and receive a signal based on the test reception frequency band.
[0150] S604: If a second broadcast signal sent by at least one second electronic device is received based on the test receiving frequency band, or a response signal returned by at least one second electronic device to the first broadcast signal is received, it is determined that the first transmitting frequency band used for direct communication with the second electronic device is the test transmitting frequency band, and the first receiving frequency band is the test receiving frequency band.
[0151] For example, in one possible scenario, after receiving a second broadcast signal sent by a second electronic device or a response signal returned in response to the first broadcast signal, the first electronic device sets the currently used test transmission frequency band to the first transmission frequency band and the currently used test reception frequency band to the first reception frequency band. In this scenario, after the first electronic device determines the first transmission frequency band and the first reception frequency band, it can still receive second broadcast signals sent by other second electronic devices and response signals returned in response to the first broadcast signal, so that the other second electronic devices also need to be second electronic devices that need to establish direct communication with the first electronic device.
[0152] In another possible scenario, the first electronic device may also pre-set a target number of second electronic devices to be connected, where the target number is greater than 1. Based on this, only after receiving second broadcast signals sent by the target number of second electronic devices based on the test reception frequency band, or receiving response signals returned by the target number of second electronic devices in response to the first broadcast signal, will the currently used test transmission frequency band be set as the first transmission frequency band, and the currently used test reception frequency band be set as the first reception frequency band.
[0153] In this embodiment, the frequency ranges of the first transmit frequency band and the first receive frequency band are different. The frequency range of the first transmit frequency band and the second receive frequency band used by the at least one second electronic device is the same, and the frequency range of the first receive frequency band and the second transmit frequency band used by the at least one second electronic device is the same.
[0154] S605: If there are multiple second electronic devices, determine the duration of the communication cycle based on the number of devices corresponding to the multiple second electronic devices.
[0155] Among them, the communication cycle period refers to the total time period required for multiple second electronic devices to complete a round of communication with the first electronic device in time periods. Therefore, the period length of the communication cycle period is the sum of the communication time periods of each second electronic device communicating with the first electronic device.
[0156] It is understandable that, for the case where there is only one second electronic device, reference can be made to the relevant introduction of the previous embodiment, which will not be repeated here.
[0157] S606: Determine a communication time period during which each second electronic device communicates with the first electronic device within the communication cycle.
[0158] S607: Based on the first transmission frequency band, the period length of the communication cycle and the communication time period corresponding to each second electronic device are sent to each second electronic device.
[0159] For example, a first electronic device may send a targeted broadcast message to each second electronic device based on a first transmission frequency band. The targeted broadcast message includes the duration of the communication cycle and the corresponding communication time period of each second electronic device. Based on this, each second electronic device may extract the duration of the communication cycle and its corresponding communication time period from the targeted broadcast message.
[0160] For another example, for each second electronic device, the first electronic device may send a periodic notification to the second electronic device based on the first transmission frequency band. The periodic notification includes the identification information of the second electronic device, the duration of the communication cycle, and the corresponding communication time period of each second electronic device. Based on this, only after the second electronic device receives the periodic notification containing its own identification information will it extract the cycle duration and corresponding communication time period from the periodic notification.
[0161] It can be understood that the cycle duration of the communication cycle not only includes the time length of the communication cycle, but also can include the starting time of the first communication cycle, so that each second electronic device can accurately determine each communication cycle and its own communication time period in different communication cycles according to a unified clock.
[0162] S608, within the current communication cycle, if the current communication time period corresponding to the second electronic device is reached, first communication data is sent to the second electronic device based on the first transmitting frequency band, and / or second communication data sent by the second electronic device is received based on the first receiving frequency band.
[0163] It is understood that a communication cycle is composed of multiple communication periods. During each communication period, the communication data sent by the first electronic device is sent to the second electronic device corresponding to that communication period. During that communication period, only the second electronic device corresponding to that communication period will establish a communication connection with the second electronic device and perform at least one of receiving the first communication data and sending the second communication data. For example, during that communication period, only the first communication data is received; or, during that communication period, only the second communication data is sent; or, during that communication period, both the first communication data is received and the second communication data is sent.
[0164] To facilitate understanding of the Figure 8 Provide explanation.
[0165] exist Figure 8 In the description, the first electronic device is device A, and the plurality of second electronic devices are devices C1 to C5.
[0166] Depend on Figure 8 As can be seen on the left, device A has a direct communication connection with each of devices C1 through C5. Based on this, each communication cycle can be divided into five parts, each part being a communication period. Based on this, the five communication periods within a communication cycle can be allocated sequentially to devices C1 through C5.
[0167] like Figure 8 As can be seen on the right, device C1 corresponds to the first communication period of the communication cycle, device C2 corresponds to the second communication period, and so on. Therefore, device C1 only needs to operate during the first communication period, controlling the transmit frequency band to the second transmit frequency band and the receive frequency band to the second receive frequency band, thereby communicating data with device A. Similarly, devices C2 through C5 can communicate with device A during their respective communication periods.
[0168] On the other hand, the present application also provides an electronic device. Figure 9 A schematic diagram of the composition structure of an electronic device provided in this application is shown. The electronic device of this embodiment may include: a processor 901, a modem 902 and a radio frequency front-end module 903.
[0169] The processor 901 is configured to, if the communication mode of the electronic device is a base station-free communication mode, determine a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device, wherein the frequency range between the first transmitting frequency band and the second receiving frequency band used by the second electronic device is the same, and the frequency range between the first receiving frequency band and the second transmitting frequency band used by the second electronic device is the same; in the base station-free communication mode, there is no data communication between the first electronic device and the base station; and instruct the modem to set the transmitting frequency band of the electronic device to the first transmitting frequency band, and the receiving frequency band to the first receiving frequency band;
[0170] The modem 902 is configured to set the signal transmission frequency band of the RF front-end module to the first transmission frequency band, and to set the signal reception frequency band of the RF front-end module to the first reception frequency band;
[0171] The RF front-end module 903 is configured to send first communication data to the second electronic device based on the first transmitting frequency band, and receive second communication data sent by the second electronic device based on the first receiving frequency band.
[0172] The first communication data sent by the RF front-end module may be the communication data transmitted to the RF front-end module by the processor 901 via the modem. Accordingly, the RF front-end module may also process the second communication data via the modem and transmit the processed second communication data to the processor.
[0173] The RF front-end module may include: a transceiver, at least one power amplifier, at least one low noise amplifier, at least one bandpass filter, and at least one antenna. The data of the power amplifier, low noise amplifier, bandpass filter, and antenna in the RF front-end module may be set according to actual needs without limitation. For example, please refer to the previous Figure 2 and Figure 3 The relevant introduction will not be repeated here.
[0174] In one possible implementation, the processor is further configured to determine a test frequency band combination, where the test frequency band combination belongs to one of a plurality of configured frequency band combinations, and the test frequency band combination includes: a test transmit frequency band and a test receive frequency band; and send a frequency band setting signal to the modem, where the frequency band setting signal indicates that the test frequency band combination exists;
[0175] The modem is further configured to set the signal transmission frequency band of the RF front-end module to the test transmission frequency band, and to set the signal reception frequency band of the RF front-end module to the test reception frequency band;
[0176] The RF front-end module is further configured to transmit a first broadcast signal based on the test transmit frequency band, and receive a signal based on the test receive frequency band;
[0177] When determining the first transmitting frequency band and the first receiving frequency band used for direct communication with the second electronic device, the processor is specifically used to determine that if a second broadcast signal sent by the second electronic device is received based on the test receiving frequency band or a response signal returned by the second electronic device for the first broadcast signal is received, the first transmitting frequency band used for direct communication with the second electronic device is determined to be the test transmitting frequency band, and the first receiving frequency band is the test receiving frequency band.
[0178] The specific implementation of the processor determining the test frequency band combination and determining the first transmitting frequency band and the first receiving frequency band used for direct communication with the second electronic device can be referred to the relevant introduction of the previous embodiment and will not be repeated here.
[0179] In yet another possible implementation, the processor is further configured to, in response to a target event, switch the communication mode of the first electronic device to a base station-free communication mode via the modem.
[0180] In another possible implementation, the processor is further configured to, based on the number of devices corresponding to the plurality of second electronic devices, determine a cycle duration of a communication cycle; respectively determine a communication time period during which each second electronic device communicates with the first electronic device within the communication cycle; and, based on the first transmission frequency band, instruct the modem to transmit the cycle duration of the communication cycle and the communication time period corresponding to the second electronic device to the second electronic device;
[0181] The modem is further configured to send the duration of the communication cycle and the communication time period corresponding to the second electronic device to the second electronic device via the radio frequency front-end module.
[0182] The processor is further configured to, within a current communication cycle, instruct the modem to send first communication data to the second electronic device based on the first transmitting frequency band, and / or instruct the modem to receive second communication data sent by the second electronic device based on the first receiving frequency band, if the communication time period corresponding to the second electronic device is currently reached.
[0183] A computer program product is also provided in an embodiment of the present application, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the communication methods provided in the embodiments of the present application.
[0184] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any communication method provided in the embodiment of the present application.
[0185] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0186] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0187] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0188] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
Claims
1. A communication method, applied to a first electronic device, comprising: If the communication mode of the first electronic device is a base station-free communication mode, determining a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device, wherein the first transmitting frequency band and the second receiving frequency band used by the second electronic device have the same frequency range, and the first receiving frequency band and the second transmitting frequency band used by the second electronic device have the same frequency range; in the base station-free communication mode, no data communication occurs between the first electronic device and the base station; When the first electronic device is in a base station-free communication mode, the first communication data is sent to the second electronic device based on the first transmitting frequency band, and the second communication data sent by the second electronic device is received based on the first receiving frequency band.
2. The communication method according to claim 1, wherein determining a first transmitting frequency band and a first receiving frequency band that can be used for direct communication with the second electronic device comprises: Determine a test frequency band combination, where the test frequency band combination belongs to one of a plurality of configured frequency band combinations, and the test frequency band combination includes: a test transmit frequency band and a test receive frequency band; transmitting a first broadcast signal based on the test transmit frequency band, and receiving a signal based on the test receive frequency band; If a second broadcast signal sent by a second electronic device is received based on the test receiving frequency band, or a response signal returned by the second electronic device to the first broadcast signal is received, it is determined that the first transmitting frequency band used for direct communication with the second electronic device is the test transmitting frequency band, and the first receiving frequency band is the test receiving frequency band.
3. The communication method according to claim 2, wherein determining the test frequency band combination comprises at least one of the following: Randomly select a test frequency band combination from multiple configured frequency band combinations; Based on the user's selection operation on the configuration interface, a test frequency band combination is obtained.
4. The communication method according to claim 3, wherein determining the first transmitting frequency band and the first receiving frequency band that can be used for direct communication with the second electronic device further comprises at least one of the following: If the second broadcast signal and the response signal are not received based on the test receiving frequency band within the set detection time period, returning to the operation of randomly selecting a test frequency band combination from the configured multiple groups of frequency band combinations to re-determine the test frequency band combination; If the second broadcast signal and the response signal are not received based on the test receiving frequency band within the set detection time, a configuration interface is output and the user is prompted to reselect a test frequency band combination to re-determine the test frequency band combination.
5. The communication method according to claim 1, further comprising: In response to a target event, the communication mode of the first electronic device is switched to a base station-free communication mode.
6. The communication method according to claim 5, wherein, in response to the target event, switching the communication mode of the first electronic device to a base station-free communication mode comprises at least one of the following: In response to the interruption of the communication connection between the first electronic device and the base station, switching the communication mode of the first electronic device to a base station-free communication mode; In response to the target mode switching instruction, the communication mode of the first electronic device is switched to a base station-free communication mode.
7. The communication method according to claim 1, wherein the second electronic device is a plurality of devices; The communication method further includes: Determining a period length of a communication cycle based on the number of devices corresponding to the plurality of second electronic devices; respectively determining a communication time period during which each second electronic device communicates with the first electronic device within the communication cycle; Based on the first transmission frequency band, the period length of the communication cycle and the communication time period corresponding to the second electronic device are sent to the second electronic device.
8. The communication method according to claim 7, wherein the sending of the first communication data to the second electronic device based on the first transmission frequency band and the receiving of the second communication data sent by the second electronic device based on the first reception frequency band comprise: In the current communication cycle, if the communication time period corresponding to the second electronic device is currently reached, the first communication data is sent to the second electronic device based on the first transmitting frequency band, and / or the second communication data sent by the second electronic device is received based on the first receiving frequency band.
9. The communication method according to any one of claims 1 to 8, wherein the frequency ranges of the first transmitting frequency band and the first receiving frequency band are different; The frequency range corresponding to the first transmission frequency band belongs to a part of the frequency range corresponding to the standard transmission frequency band supported by the first electronic device; The frequency range corresponding to the first receiving frequency band belongs to a part of the frequency range corresponding to the standard receiving frequency band supported by the first electronic device; in, The standard transmitting frequency band belongs to at least one transmitting frequency band that can be used by the first electronic device to communicate with the base station, and the standard receiving frequency band belongs to at least one receiving frequency band that can be used by the first electronic device to communicate with the base station.
10. An electronic device comprising: processors, modems, and RF front-end modules; The processor is configured to, if the communication mode of the electronic device is a base station-free communication mode, determine a first transmitting frequency band and a first receiving frequency band used for direct communication with a second electronic device, wherein the frequency range between the first transmitting frequency band and the second receiving frequency band used by the second electronic device is the same, and the frequency range between the first receiving frequency band and the second transmitting frequency band used by the second electronic device is the same; in the base station-free communication mode, there is no data communication between the first electronic device and the base station; and instruct the modem to set the transmitting frequency band of the electronic device to the first transmitting frequency band, and the receiving frequency band to the first receiving frequency band; The modem is configured to set the signal transmission frequency band of the RF front-end module to the first transmission frequency band, and set the signal reception frequency band of the RF front-end module to the first reception frequency band; The RF front-end module is configured to send first communication data to the second electronic device based on the first transmitting frequency band, and receive second communication data sent by the second electronic device based on the first receiving frequency band.