Point-to-point terminal communication method
By measuring the signals and determining the status of the Bluetooth and IoT point-to-point communication systems, and selecting the target communication system for data transmission, the problem of poor adaptability in the existing technology is solved, and the mutual complementation of the dual systems and the improvement of the diversity of the communication system are achieved. .
Patent Information
- Application Number
- CN202211014490.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-08-23
AI Technical Summary
Existing narrowband wireless communication technology has poor adaptability in point-to-point communication. The power consumption of 5G IoT technology is high and the obstacle avoidance performance and communication distance are not as good as those based on Bluetooth technology. It lacks highly adaptable communication methods.
By measuring the signals of the pre-established Bluetooth point-to-point communication system and the IoT point-to-point communication system, the status of each system is determined, and the target communication system is selected for data transmission, so as to realize the mutual complementation of the dual systems and improve the adaptability.
Through the mutual complementation of dual systems, the disadvantages of a single system are avoided, the adaptability and diversity of the communication system are improved, and the diverse needs of system selection are met.
Smart Images

Figure CN115696286B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a point-to-point terminal communication method. Background Art
[0002] At present, narrowband wireless communication technologies (such as NB-IoT, etc.) are mainly used in public networks. If a terminal wants to connect to the network, it must have a USIM card that supports the corresponding network and be within the network coverage. Too much reliance cannot achieve point-to-point communication functions. The current communication systems that realize point-to-point communication include: point-to-point communication systems based on 5G Internet of Things technology and point-to-point communication systems based on Bluetooth technology.
[0003] However, the power consumption of point-to-point communication based on 5G IoT technology is greater than that of point-to-point communication based on Bluetooth technology. And the obstacle avoidance performance and communication distance of Bluetooth point-to-point technology are not as good as those based on 5G IoT technology. Therefore, a highly adaptable communication method is urgently needed. Summary of the invention
[0004] The purpose of the present invention is to provide a point-to-point terminal communication method to solve the problems of poor adaptability of the communication system in the prior art, in view of the above-mentioned deficiencies in the prior art.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a point-to-point terminal communication method, which is applied to a first terminal, and the method includes:
[0007] Perform signal measurements on a first communication link of a pre-established Bluetooth point-to-point communication system and a second communication link of an Internet of Things point-to-point communication system, respectively, to obtain a first signal measurement value and a second signal measurement value;
[0008] determining a state of the Bluetooth point-to-point communication system according to the first signal measurement value;
[0009] Determine the state of the IoT point-to-point communication system according to the second signal measurement value;
[0010] Determine a target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system;
[0011] The communication link of the target communication system is used to perform data transmission communication with the second terminal.
[0012] Optionally, before respectively performing signal measurements on the first communication link of the pre-established Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system to obtain the first signal measurement value and the second signal measurement value, the method further includes:
[0013] respectively using the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system to establish a communication link with the second terminal;
[0014] The method of respectively performing signal measurement on a first communication link of a pre-established Bluetooth point-to-point communication system and a second communication link of an Internet of Things point-to-point communication system to obtain a first signal measurement value and a second signal measurement value includes:
[0015] If the first communication link and the second communication link are both successfully established after the preset observation period ends, signal measurements are performed on the first communication link and the second communication link respectively to obtain the first signal measurement value and the second signal measurement value.
[0016] Optionally, the first signal measurement value includes: a first signal-to-noise ratio SNR measurement value, and a first received signal strength RSSI measurement value; and determining the state of the Bluetooth point-to-point communication system according to the first signal measurement value includes:
[0017] If the first SNR measurement value is greater than or equal to a first preset signal-to-noise ratio, the first RSSI measurement value is compared with a preset first RSSI reference value and a second RSSI reference value; wherein the first RSSI reference value is greater than the second RSSI reference value;
[0018] The state of the Bluetooth point-to-point communication system is determined according to the comparison result of the first RSSI measurement value.
[0019] Optionally, determining the state of the Bluetooth point-to-point communication system according to the comparison result of the first RSSI measurement value includes:
[0020] If the first RSSI measurement value is greater than or equal to the first RSSI reference value, determining that the state of the Bluetooth point-to-point communication system is in use;
[0021] If the first RSSI measurement value is less than the first RSSI reference value, and the first RSSI measurement value is greater than or equal to the second RSSI reference value, determining that the state of the Bluetooth point-to-point communication system is an observation state;
[0022] If the first RSSI measurement value is less than the second RSSI reference value, it is determined that the state of the Bluetooth point-to-point communication system is a closed state.
[0023] Optionally, the method further comprises:
[0024] If the first SNR measurement value is less than the first preset signal-to-noise ratio, it is determined that the state of the Bluetooth point-to-point communication system is a closed state.
[0025] Optionally, the second signal measurement value includes: a second SNR measurement value, and a second reference signal received power RSRP measurement value; and determining the state of the IoT point-to-point communication system according to the second signal measurement value includes:
[0026] If the second SNR measurement value is greater than or equal to a second preset signal-to-noise ratio, comparing the second RSRP measurement value with a preset first RSRP reference value and a second RSRP reference value; wherein the first RSRP reference value is greater than the second RSRP reference value;
[0027] According to the comparison result of the second RSRP measurement value, the state of the Internet of Things point-to-point communication system is determined.
[0028] Optionally, determining the state of the IoT point-to-point communication system according to the comparison result of the second RSRP measurement value includes:
[0029] If the second RSRP measurement value is greater than or equal to the first RSRP reference value, determining that the state of the Internet of Things point-to-point communication system is a use state;
[0030] If the second RSRP measurement value is less than the first RSRP reference value, and the second RSRP measurement value is greater than or equal to the second RSRP reference value, determining that the state of the Internet of Things point-to-point communication system is an observation state;
[0031] If the second RSRP measurement value is less than the second RSRP reference value, it is determined that the state of the Internet of Things point-to-point communication system is a closed state.
[0032] Optionally, the method further comprises:
[0033] If the second SNR measurement value is less than a second preset signal-to-noise ratio, it is determined that the state of the Internet of Things point-to-point communication system is a closed state.
[0034] Optionally, determining a target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to a state of the Bluetooth point-to-point communication system and a state of the Internet of Things point-to-point communication system comprises:
[0035] If the state of the Bluetooth point-to-point communication system is in use, determining the Bluetooth point-to-point communication system as the target communication system, and shutting down the Internet of Things point-to-point communication system;
[0036] If the state of the Bluetooth point-to-point communication system is an observation state, and the state of the Internet of Things point-to-point communication system is a use state or an observation state, then determining that the Bluetooth point-to-point communication system is the target communication system, and changing the state of the Internet of Things point-to-point communication system to a discontinuous transceiver state;
[0037] If the state of the Bluetooth point-to-point communication system is an observation state, and the state of the Internet of Things point-to-point communication system is a closed state, determining the Bluetooth point-to-point communication system as the target communication system, and closing the Internet of Things point-to-point communication system;
[0038] If the state of the Bluetooth point-to-point communication system is a closed state, and the state of the Internet of Things point-to-point communication system is a use state or an observation state, then determining the Internet of Things point-to-point communication system as the target communication system, and closing the Bluetooth point-to-point communication system;
[0039] If the state of the Bluetooth point-to-point communication system is closed, and the state of the Internet of Things point-to-point communication system is also closed, then determining the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system as the target communication system;
[0040] The signal strength in the use state is higher than the signal strength in the observation state, and the signal strength in the observation state is higher than the signal strength in the closed state.
[0041] Optionally, the adopting the communication link of the target communication system to perform data transmission communication with the second terminal includes:
[0042] If the target communication system includes the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, and there is a frequency band overlap between the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, the communication frequency of another point-to-point communication system is determined according to the communication frequency of one point-to-point communication system and the preset frequency interval;
[0043] The first communication link and the second communication link are used to perform data transmission communication with the second terminal according to the communication frequencies of the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system respectively.
[0044] Optionally, the adopting the communication link of the target communication system to perform data transmission communication with the second terminal includes:
[0045] If the target communication system includes the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, copying the data to be sent in multiple copies;
[0046] respectively sending the plurality of copies of the data to be sent to the second terminal using the first communication link and the second communication link;
[0047] or, receiving first received data and second received data sent by the second terminal using the first communication link and the second communication link;
[0048] The first received data and the second received data are pieced together to obtain target data from the second terminal.
[0049] Compared with the prior art, this application has the following beneficial effects:
[0050] The present application provides a point-to-point terminal communication method, which respectively performs signal measurement on the first communication link of the pre-established Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system to obtain a first signal measurement value and a second signal measurement value; determines the state of the Bluetooth point-to-point communication system according to the first signal measurement value; determines the state of the Internet of Things point-to-point communication system according to the second signal measurement value; determines the target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system; and uses the communication link of the target communication system to communicate with the second terminal for data transmission. Thus, by determining the target communication system through the dual systems, the dual systems complement each other, avoiding the disadvantages faced by adopting a single system, improving the adaptability of the communication system, and meeting the diversity of system selection. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 It is a schematic diagram of the structure of a point-to-point terminal communication system;
[0053] Figure 2 A schematic diagram of a process flow of a point-to-point terminal communication method provided in an embodiment of the present application;
[0054] Figure 3 A flowchart of a method for establishing a link in a point-to-point communication system provided in an embodiment of the present application;
[0055] Figure 4 A flowchart of a method for determining the state of a Bluetooth point-to-point communication system provided in an embodiment of the present application;
[0056] Figure 5 A flowchart of another method for determining the state of a Bluetooth point-to-point communication system provided in an embodiment of the present application;
[0057] Figure 6 A flowchart of another method for determining the state of a Bluetooth point-to-point communication system provided in an embodiment of the present application;
[0058] Figure 7 A flowchart of a method for determining the status of an Internet of Things point-to-point communication system provided in an embodiment of the present application;
[0059] Figure 8 A flowchart of another method for determining the state of an Internet of Things point-to-point communication system provided in an embodiment of the present application;
[0060] Fig. 9 A flowchart of another method for determining the state of an Internet of Things point-to-point communication system provided in an embodiment of the present application;
[0061] Fig.10 A flowchart of a method for determining a target communication system provided in an embodiment of the present application;
[0062] Fig.11 A flowchart of a frequency hopping method provided in an embodiment of the present application;
[0063] Fig.12 A flowchart of a data transmission method provided in an embodiment of the present application;
[0064] Fig.13 A schematic diagram of a point-to-point terminal communication device provided in an embodiment of the present application;
[0065] Fig.14 A schematic diagram of a terminal device provided in an embodiment of the present application.
[0066] Icons: 100 - first terminal, 200 - second terminal, 1301 - measurement module, 1302 - first determination module, 1303 - second determination module, 1304 - third determination module, 1305 - communication module, 1401 - processor, 1402 - transmitter, 1403 - receiver. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0068] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0069] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0070] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0071] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0072] In point-to-point communication technology, point-to-point communication technology based on 5G Internet of Things technology or point-to-point communication technology based on Bluetooth technology is usually used. However, the power consumption of point-to-point communication based on 5G Internet of Things technology is greater than that of point-to-point communication based on Bluetooth technology, and the obstacle avoidance performance and communication distance of Bluetooth point-to-point technology are not as good as those based on 5G Internet of Things technology. In order to make point-to-point communication adapt to a wider range of scenarios, the present application provides a point-to-point terminal communication method.
[0073] Before introducing the point-to-point terminal communication method, the point-to-point terminal communication system is first explained. Figure 1 Figure 1 is a schematic diagram of the structure of a point-to-point terminal communication system. Figure 1 As shown, the system includes: a first terminal 100 and a second terminal 200, and the first terminal 100 is in communication connection with the second terminal 200. For example, a Bluetooth point-to-point communication system can be used to establish a communication link between the first terminal 100 and the second terminal 200, or an Internet of Things point-to-point communication system can be used to establish a communication link, and data is transmitted through the communication link.
[0074] A point-to-point terminal communication method provided by the present application is explained below through a specific example. Figure 2The present invention provides a flow chart of a point-to-point terminal communication method, wherein the execution subject of the method is a first terminal, and the terminal device may be a device with computing and processing functions. Figure 2 As shown, the method includes:
[0075] S101. Perform signal measurement on a first communication link of a pre-established Bluetooth point-to-point communication system and a second communication link of an Internet of Things point-to-point communication system to obtain a first signal measurement value and a second signal measurement value.
[0076] When the first communication link of the Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system are both successfully established in advance, the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system are in the coexistence stage. The first terminal and the second terminal can simultaneously use the first communication link and the second communication link to communicate. The communication signal on the first communication link of the Bluetooth point-to-point communication system is measured to obtain a first signal measurement value; the communication signal on the second communication link of the Internet of Things point-to-point communication system is measured to obtain a second signal measurement value. For example, the signal strength can be determined by signal measurement to know the performance strength of the point-to-point communication system.
[0077] S102: Determine a state of the Bluetooth point-to-point communication system according to the first signal measurement value.
[0078] The first signal measurement value characterizes the performance of the Bluetooth point-to-point communication system. The state corresponding to the first signal measurement value can be determined in the preset system state as the state of the Bluetooth point-to-point communication system. It should be noted that the state of the system is a description of the performance of the system, which is not limited here and can be preset according to operating habits, as long as the differences between different states can be reflected.
[0079] S103: Determine the state of the Internet of Things point-to-point communication system according to the second signal measurement value.
[0080] The second signal measurement value characterizes the performance of the Internet of Things point-to-point communication system. The state corresponding to the second signal measurement value can be determined in the preset system state as the state of the Internet of Things point-to-point communication system.
[0081] S104: Determine a target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to the state of the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system.
[0082] The performance of the Bluetooth point-to-point communication system is characterized according to the state of the Bluetooth point-to-point communication system. The performance of the Internet of Things point-to-point communication system is characterized according to the state of the Internet of Things point-to-point communication system. According to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system, a target communication system is determined from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system. That is, according to the performance of the Bluetooth point-to-point communication system and the performance of the Internet of Things point-to-point communication system, a target communication system with stronger comprehensive performance is determined. By way of example, the target communication system may be a Bluetooth point-to-point communication system and / or an Internet of Things point-to-point communication system.
[0083] S105: Use the communication link of the target communication system to perform data transmission communication with the second terminal.
[0084] After the target communication system is determined, the target communication system is the system with the best performance. The communication link of the target communication system can be used to transmit data with the second terminal. By determining the target communication system through dual systems, the dual systems complement each other, avoiding the disadvantages of using a single system, improving the adaptability of the communication system, and meeting the diversity of system selection.
[0085] In summary, in this embodiment, the first communication link of the pre-established Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system are respectively measured to obtain a first signal measurement value and a second signal measurement value; the state of the Bluetooth point-to-point communication system is determined according to the first signal measurement value; the state of the Internet of Things point-to-point communication system is determined according to the second signal measurement value; according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system, the target communication system is determined from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system; the communication link of the target communication system is used to communicate with the second terminal for data transmission. Thus, by determining the target communication system through the dual systems, the dual systems complement each other, avoiding the disadvantages faced by adopting a single system, improving the adaptability of the communication system, and satisfying the diversity of system selection.
[0086] Figure 3 The following is a flow chart of a method for establishing a link in a point-to-point communication system provided in an embodiment of the present application. Figure 3 As shown, before performing signal measurement on the first communication link of the pre-established Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system in S101 to obtain the first signal measurement value and the second signal measurement value, it also includes:
[0087] S201. Establish a communication link with a second terminal using a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system respectively.
[0088] First, try to use the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system to establish a communication link with the second terminal. After the preset observation period ends, confirm whether the link establishment of each system is successful. For example, the preset observation period can be 10 seconds.
[0089] If the first communication link of the Bluetooth point-to-point communication system is successfully established, and the second communication link of the Internet of Things point-to-point communication system fails to be established (or is successfully established during the preset observation period, but is disconnected before the preset observation period ends), in this case, the Internet of Things point-to-point communication system is closed and the Bluetooth point-to-point communication system is used for communication.
[0090] If the second communication link of the IoT point-to-point communication system is successfully established, and the first communication link of the Bluetooth point-to-point communication system fails to be established (or is successfully established during the preset observation period, but is disconnected before the preset observation period ends), in this case, the Bluetooth point-to-point communication system is closed and the IoT point-to-point communication system is used for communication.
[0091] If the first communication link of the Bluetooth point-to-point communication system is successfully established, and the second communication link of the Internet of Things point-to-point communication system is successfully established, in this case, the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system are used to communicate at the same time, and further judgment is made.
[0092] Further, the signal measurement of the first communication link of the pre-established Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system in S101 is performed to obtain a first signal measurement value and a second signal measurement value, including:
[0093] S202: If the first communication link and the second communication link are both successfully established after the preset observation period ends, perform signal measurements on the first communication link and the second communication link respectively to obtain a first signal measurement value and a second signal measurement value.
[0094] If both the first communication link and the second communication link are successfully established after the preset observation period, further judgment is required. Therefore, signal measurements are performed on the first communication link and the second communication link respectively to obtain a first signal measurement value and a second signal measurement value.
[0095] In summary, in this embodiment, a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system are respectively used to establish a communication link with the second terminal; if the first communication link and the second communication link are both successfully established after the preset observation period, the first communication link and the second communication link are respectively measured for signals to obtain a first signal measurement value and a second signal measurement value. Thus, signal measurement is performed when both the first communication link and the second communication link are successfully established, making the signal measurement more reasonable.
[0096] Figure 4 A flowchart of a method for determining the status of a Bluetooth point-to-point communication system provided in an embodiment of the present application. Figure 4 As shown, the first signal measurement value includes: a first signal-to-noise ratio SNR (SIGNAL-NOISE RATIO) measurement value, and a first received signal strength RSSI (Received Signal Strength Indicator) measurement value; determining the state of the Bluetooth point-to-point communication system according to the first signal measurement value in S102 includes:
[0097] S301, comparing a first SNR measurement value with a first preset signal-to-noise ratio;
[0098] S302: If the first SNR measurement value is greater than or equal to a first preset signal-to-noise ratio, compare the first RSSI measurement value with a preset first RSSI reference value and a second RSSI reference value.
[0099] SNR and RSSI are used as signal measurement parameters of the Bluetooth point-to-point communication system, which can both characterize the strength of the signal. If the first SNR measurement value is within the normal range, it indicates that the communication link is relatively stable; if the first SNR measurement value is small, it indicates that the communication link is poor. In order to clearly define the range of the SNR measurement value, a first preset signal-to-noise ratio can be set. If the first SNR measurement value is greater than or equal to the first preset signal-to-noise ratio, it indicates that the communication link is relatively stable; if the first SNR measurement value is less than the first preset signal-to-noise ratio, it indicates that the quality of the communication link is poor.
[0100] If the first SNR measurement value is greater than or equal to the first preset signal-to-noise ratio, the first RSSI measurement value is used for further signal strength judgment. A first RSSI reference value and a second RSSI reference value can be set, and the first RSSI measurement value is compared with the preset first RSSI reference value and second RSSI reference value. Among them, the first RSSI reference value is greater than the second RSSI reference value;
[0101] S303: Determine the state of the Bluetooth point-to-point communication system according to the comparison result of the first RSSI measurement value.
[0102] The first RSSI measurement value represents the performance of the Bluetooth point-to-point communication system. The state corresponding to the first RSSI measurement value can be determined in the preset system state as the state of the Bluetooth point-to-point communication system.
[0103] It should be noted that, in this embodiment, when the first SNR measurement value is compared with the first preset signal-to-noise ratio, the comparison symbol used is not limited. In addition to the above-mentioned "the first SNR measurement value is greater than or equal to the first preset signal-to-noise ratio", "the first SNR measurement value is greater than the first preset signal-to-noise ratio" is also within the protection scope of this application.
[0104] In summary, in this embodiment, if the first SNR measurement value is greater than or equal to the first preset signal-to-noise ratio, the first RSSI measurement value is compared with the preset first RSSI reference value and the second RSSI reference value; wherein the first RSSI reference value is greater than the second RSSI reference value; and according to the comparison result of the first RSSI measurement value, the state of the Bluetooth point-to-point communication system is determined. Thus, using SNR and RSSI as signal measurement parameters makes it more accurate to judge the system state.
[0105] Figure 5 A flowchart of another method for determining the status of a Bluetooth point-to-point communication system provided in an embodiment of the present application. Figure 5 As shown, determining the state of the Bluetooth point-to-point communication system according to the comparison result of the first RSSI measurement value in S303 includes:
[0106] S401: If the first RSSI measurement value is greater than or equal to the first RSSI reference value, determine that the state of the Bluetooth point-to-point communication system is in use.
[0107] Since the first RSSI reference value is greater than the second RSSI reference value, and the greater the RSSI, the stronger the signal. If the first RSSI measurement value is greater than or equal to the first RSSI reference value, it indicates that the communication signal strength of the Bluetooth point-to-point communication system is high, and the Bluetooth point-to-point communication system can be used for communication. Therefore, it is determined that the state of the Bluetooth point-to-point communication system is in use.
[0108] S402: If the first RSSI measurement value is less than the first RSSI reference value, and the first RSSI measurement value is greater than or equal to the second RSSI reference value, determine that the state of the Bluetooth point-to-point communication system is an observation state.
[0109] If the first RSSI measurement value is less than the first RSSI reference value, and the first RSSI measurement value is greater than or equal to the second RSSI reference value, it indicates that the communication signal of the Bluetooth point-to-point communication system is between high intensity and low intensity, and the Bluetooth point-to-point communication system can be used for communication, but the communication quality is not in the best state, and the Bluetooth point-to-point communication system can also be used as an alternative system. Therefore, it is determined that the state of the Bluetooth point-to-point communication system is an observation state.
[0110] S403: If the first RSSI measurement value is less than the second RSSI reference value, determine that the state of the Bluetooth point-to-point communication system is a closed state.
[0111] If the first RSSI measurement value is less than the second RSSI reference value, it indicates that the communication signal strength of the Bluetooth point-to-point communication system is low and is no longer suitable for communication, and it is not recommended to use the Bluetooth point-to-point communication system for communication. Therefore, it is determined that the state of the Bluetooth point-to-point communication system is closed.
[0112] It should be noted that, in this embodiment, when comparing the first RSSI measurement value with the first RSSI reference value and the second RSSI reference value, the comparison symbol used is not limited. As long as they can be compared, whether "greater than, greater than or equal to, less than, less than or equal to" is used, it is within the protection scope of this application. For example, in addition to the above-mentioned comparison forms, "the first RSSI measurement value is greater than the first RSSI reference value; the first RSSI measurement value is less than or equal to the first RSSI reference value and the first RSSI measurement value is greater than the second RSSI reference value; the first RSSI measurement value is less than or equal to the second RSSI reference value", "the first RSSI measurement value is greater than the first RSSI reference value; the first RSSI measurement value is less than or equal to the first RSSI reference value and the first RSSI measurement value is greater than or equal to the second RSSI reference value; the first RSSI measurement value is less than the second RSSI reference value", "the first RSSI measurement value is greater than or equal to the first RSSI reference value; the first RSSI measurement value is less than the first RSSI reference value and the first RSSI measurement value is greater than or equal to the second RSSI reference value; the first RSSI measurement value is less than the second RSSI reference value", "the first RSSI measurement value is greater than or equal to the first RSSI reference value; the first RSSI measurement value is less than the first RSSI reference value and the first RSSI measurement value is greater than the second RSSI reference value; the first RSSI measurement value is less than or equal to the second RSSI reference value" and other comparison forms are also within the protection scope of this application.
[0113] In summary, in this embodiment, if the first RSSI measurement value is greater than or equal to the first RSSI reference value, the state of the Bluetooth point-to-point communication system is determined to be in use; if the first RSSI measurement value is less than the first RSSI reference value, and the first RSSI measurement value is greater than or equal to the second RSSI reference value, the state of the Bluetooth point-to-point communication system is determined to be in observation; if the first RSSI measurement value is less than the second RSSI reference value, the state of the Bluetooth point-to-point communication system is determined to be closed. Thus, through multi-level judgment, the state of the Bluetooth point-to-point communication system can be determined more accurately.
[0114] Figure 6 A flowchart of another method for determining the status of a Bluetooth point-to-point communication system provided in an embodiment of the present application. Figure 6 As shown, the method also includes:
[0115] S304: If the first SNR measurement value is less than the first preset signal-to-noise ratio, determine that the state of the Bluetooth point-to-point communication system is a closed state.
[0116] If the first SNR measurement value is less than the first preset signal-to-noise ratio, it indicates that the quality of the first communication link of the Bluetooth point-to-point communication system is poor and is no longer suitable for communication. Therefore, it is determined that the state of the Bluetooth point-to-point communication system is closed.
[0117] It should be noted that if Figure 4 The corresponding embodiment adopts "the first SNR measurement value is greater than the first preset signal-to-noise ratio", then in this embodiment, "the first SNR measurement value is less than or equal to the first preset signal-to-noise ratio" may be adopted, and the comparison symbol used is not limited. As long as they can be compared, they are within the protection scope of this application.
[0118] Figure 7 A flow chart of a method for determining the state of an Internet of Things point-to-point communication system provided in an embodiment of the present application. Figure 7 As shown, the second signal measurement value includes: a second SNR measurement value, and a second reference signal received power RSRP (Reference Signal Receiving Power) measurement value; determining the state of the IoT point-to-point communication system according to the second signal measurement value includes:
[0119] S501: Compare a second SNR measurement value with a second preset signal-to-noise ratio.
[0120] S502: If the second SNR measurement value is greater than or equal to a second preset signal-to-noise ratio, compare the second RSRP measurement value with a preset first RSRP reference value and a second RSRP reference value.
[0121] SNR and RSRP are used as signal measurement parameters of the IoT point-to-point communication system, both of which can characterize the signal strength.
[0122] If the second SNR measurement value is greater than or equal to the second preset signal-to-noise ratio, the second RSRP measurement value is used for further signal strength judgment. The first RSRP reference value and the second RSRP reference value can be set, and the second RSRP measurement value is compared with the preset first RSRP reference value and the second RSRP reference value. Among them, the first RSRP reference value is greater than the second RSRP reference value;
[0123] S503: Determine the state of the Internet of Things point-to-point communication system according to the comparison result of the second RSRP measurement value.
[0124] The second RSRP measurement value characterizes the performance of the IoT point-to-point communication system. The state corresponding to the first RSRP measurement value can be determined in the preset system state as the state of the IoT point-to-point communication system.
[0125] It should be noted that, in this embodiment, when the second SNR measurement value is compared with the second preset signal-to-noise ratio, the comparison symbol used is not limited. As long as they can be compared, whether "greater than, greater than or equal to, less than, or less than or equal to" is used, it is within the protection scope of this application.
[0126] In summary, in this embodiment, if the second SNR measurement value is greater than or equal to the second preset signal-to-noise ratio, the second RSRP measurement value is compared with the preset first RSRP reference value and the second RSRP reference value; and the state of the IoT point-to-point communication system is determined according to the comparison result of the second RSRP measurement value. Thus, using SNR and RSRP as signal measurement parameters makes it more accurate to judge the system state.
[0127] Figure 8 A flowchart of another method for determining the state of an IoT point-to-point communication system provided in an embodiment of the present application. Figure 8 As shown, according to the comparison result of the second RSRP measurement value, determining the state of the IoT point-to-point communication system includes:
[0128] S601: If the second RSRP measurement value is greater than or equal to the first RSRP reference value, determine that the state of the Internet of Things point-to-point communication system is in use.
[0129] Since the first RSRP reference value is greater than the second RSRP reference value, and the greater the RSRP, the stronger the signal. If the second RSRP measurement value is greater than or equal to the first RSRP reference value, it indicates that the communication signal strength of the IoT point-to-point communication system is high, and the IoT point-to-point communication system can be used for communication. Therefore, it is determined that the state of the IoT point-to-point communication system is in use.
[0130] S602: If the second RSRP measurement value is less than the first RSRP reference value, and the second RSRP measurement value is greater than or equal to the second RSRP reference value, it is determined that the state of the IoT point-to-point communication system is an observation state.
[0131] If the second RSRP measurement value is less than the first RSRP reference value, and the first RSRP measurement value is greater than or equal to the second RSRP reference value, it indicates that the communication signal of the IoT point-to-point communication system is between high intensity and low intensity, and the IoT point-to-point communication system can be used for communication, but the communication quality is not in the best state, and the IoT point-to-point communication system can also be used as an alternative system. Therefore, it is determined that the state of the IoT point-to-point communication system is an observation state.
[0132] S603: If the second RSRP measurement value is less than the second RSRP reference value, determine that the state of the Internet of Things point-to-point communication system is a closed state.
[0133] If the second RSRP measurement value is less than the second RSRP reference value, it indicates that the communication signal strength of the IoT point-to-point communication system is low and is no longer suitable for communication, and it is not recommended to use the IoT point-to-point communication system for communication. Therefore, it is determined that the state of the IoT point-to-point communication system is closed.
[0134] It should be noted that in this embodiment, when the second RSRP measurement value is compared with the first RSRP reference value and the second RSRP reference value, the comparison symbol used is not limited. As long as they can be compared, whether "greater than, greater than or equal to, less than, less than or equal to" is used, it is within the scope of protection of this application.
[0135] In summary, in this embodiment, if the second RSRP measurement value is greater than or equal to the first RSRP reference value, the state of the IoT point-to-point communication system is determined to be in use; if the second RSRP measurement value is less than the first RSRP reference value, and the second RSRP measurement value is greater than or equal to the second RSRP reference value, the state of the IoT point-to-point communication system is determined to be in observation; if the second RSRP measurement value is less than the second RSRP reference value, the state of the IoT point-to-point communication system is determined to be closed. Thus, through multi-level judgment, the state of the IoT point-to-point communication system can be determined more accurately.
[0136] Fig. 9 A flowchart of another method for determining the state of an Internet of Things point-to-point communication system provided in an embodiment of the present application. Fig. 9 As shown, the method also includes:
[0137] S504: If the second SNR measurement value is less than the second preset signal-to-noise ratio, determine that the state of the Internet of Things point-to-point communication system is a closed state.
[0138] If the second SNR measurement value is less than the second preset signal-to-noise ratio, it indicates that the second communication link quality of the IoT point-to-point communication system is poor and is no longer suitable for communication. Therefore, it is determined that the state of the IoT point-to-point communication system is closed.
[0139] It should be noted that in this embodiment, when comparing the second SNR measurement value with the second preset signal-to-noise ratio, the comparison symbol used is not limited. As long as the comparison can be made, whether "greater than, greater than or equal to, less than, or less than or equal to" is used, it is within the protection scope of this application. Figure 7 The corresponding embodiment adopts "the second SNR measurement value is greater than the second preset signal-to-noise ratio", then the present embodiment may adopt "the second SNR measurement value is less than or equal to the second preset signal-to-noise ratio".
[0140] Fig.10 A flow chart of a method for determining a target communication system provided in an embodiment of the present application. Fig.10 As shown, in S104, according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system, determining the target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system includes:
[0141] S701. If the status of the Bluetooth point-to-point communication system is in use, determine the Bluetooth point-to-point communication system as the target communication system, and close the Internet of Things point-to-point communication system.
[0142] Due to the ultra-low power consumption characteristics of the Bluetooth point-to-point communication system, the Bluetooth point-to-point communication system is used preferentially in the Bluetooth point-to-point communication system and the IoT point-to-point communication system. If the Bluetooth point-to-point communication system is in use, it indicates that the communication quality of the Bluetooth point-to-point communication system is good. Based on the priority use right of the Bluetooth point-to-point communication system, regardless of the state of the IoT point-to-point communication system, the Bluetooth point-to-point communication system is determined as the target communication system, and the IoT point-to-point communication system is shut down.
[0143] S702: If the state of the Bluetooth point-to-point communication system is an observation state, and the state of the Internet of Things point-to-point communication system is a use state or an observation state, the Bluetooth point-to-point communication system is determined as the target communication system, and the state of the Internet of Things point-to-point communication system is changed to a discontinuous transceiver state.
[0144] If the status of the Bluetooth point-to-point communication system is the observation status, and the status of the IoT point-to-point communication system is the use status or the observation status. Based on the priority use right of the Bluetooth point-to-point communication system, the Bluetooth point-to-point communication system is determined as the target communication system. However, since the communication quality in the observation status is not the best, in order to ensure the communication quality of the entire system when the communication quality of the Bluetooth point-to-point communication system further weakens, the status of the IoT point-to-point communication system is changed to the discontinuous transceiver status (in the discontinuous transceiver status, the system does not transmit data, but only performs signal measurement to ensure that the data transmission path can be quickly restored when necessary).
[0145] When the state of the Bluetooth point-to-point communication system changes to the closed state, the IoT point-to-point communication system is triggered to exit the discontinuous transceiver state. Both ends of the Bluetooth point-to-point communication system will trigger the IoT point-to-point communication system to exit the discontinuous transceiver state immediately in the same frame. After receiving the trigger notification, both ends of the IoT point-to-point communication system will immediately exit the discontinuous transceiver state and obtain the current frame number of the Bluetooth point-to-point communication system as a reference to adjust the starting frame number of its scheduled transceiver scheduling, so that the IoT point-to-point communication system will immediately enter the normal data transceiver state.
[0146] S703: If the status of the Bluetooth point-to-point communication system is an observation status and the status of the Internet of Things point-to-point communication system is a closed status, determine the Bluetooth point-to-point communication system as a target communication system, and close the Internet of Things point-to-point communication system.
[0147] If the status of the Bluetooth point-to-point communication system is in the observation state, and the status of the IoT point-to-point communication system is in the closed state. Based on the priority use right of the Bluetooth point-to-point communication system, the Bluetooth point-to-point communication system is determined to be the target communication system. Since the status of the IoT point-to-point communication system is in the closed state, the communication quality of the Bluetooth point-to-point communication system is better than the communication quality of the IoT point-to-point communication system. Therefore, the Bluetooth point-to-point communication system is determined to be the target communication system, and the IoT point-to-point communication system is closed.
[0148] S704: If the status of the Bluetooth point-to-point communication system is closed and the status of the Internet of Things point-to-point communication system is in use or observation, determine the Internet of Things point-to-point communication system as the target communication system and close the Bluetooth point-to-point communication system.
[0149] If the status of the Bluetooth point-to-point communication system is closed, and the status of the IoT point-to-point communication system is in use or observation, it means that the communication quality of the Bluetooth point-to-point communication system is very poor, while the communication quality of the IoT point-to-point communication system is relatively good. Therefore, in order to ensure the communication quality of the entire system, the IoT point-to-point communication system is no longer determined as the target communication system based on the priority use right of the Bluetooth point-to-point communication system, and the Bluetooth point-to-point communication system is closed.
[0150] S705: If the status of the Bluetooth point-to-point communication system is closed and the status of the Internet of Things point-to-point communication system is also closed, determine the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system as target communication systems.
[0151] If the status of the Bluetooth point-to-point communication system is closed, and the status of the IoT point-to-point communication system is also closed. At this time, since the communication quality of both systems is weak, both systems need to continue to be used, start dual data channels to transmit data simultaneously, and enter the dual system sharing state to ensure data reliability under weak signal. Therefore, the Bluetooth point-to-point communication system and the IoT point-to-point communication system are determined as the target communication systems.
[0152] The signal strength in the use state is higher than the signal strength in the observation state, and the signal strength in the observation state is higher than the signal strength in the closed state.
[0153] In summary, in this embodiment, if the state of the Bluetooth point-to-point communication system is in use, the Bluetooth point-to-point communication system is determined to be the target communication system, and the Internet of Things point-to-point communication system is closed; if the state of the Bluetooth point-to-point communication system is in observation state, and the state of the Internet of Things point-to-point communication system is in use state or observation state, the Bluetooth point-to-point communication system is determined to be the target communication system, and the state of the Internet of Things point-to-point communication system is changed to a discontinuous transceiver state; if the state of the Bluetooth point-to-point communication system is in observation state, and the state of the Internet of Things point-to-point communication system is in closed state, the Bluetooth point-to-point communication system is determined to be the target communication system, and the Internet of Things point-to-point communication system is closed; if the state of the Bluetooth point-to-point communication system is in closed state, and the state of the Internet of Things point-to-point communication system is in use state or observation state, the Internet of Things point-to-point communication system is determined to be the target communication system, and the Bluetooth point-to-point communication system is closed; if the state of the Bluetooth point-to-point communication system is in closed state, and the state of the Internet of Things point-to-point communication system is in use state or observation state, the Internet of Things point-to-point communication system is determined to be the target communication system, and the Bluetooth point-to-point communication system is closed; if the state of the Bluetooth point-to-point communication system is in closed state, and the state of the Internet of Things point-to-point communication system is also in closed state, the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system are determined to be the target communication systems. Therefore, by comprehensively considering the system states of the dual systems and determining the target communication system at different times, the dual systems complement each other, avoiding the disadvantages of adopting a single system and improving the adaptability of the communication system.
[0154] Fig.11 A flowchart of a frequency hopping method provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the use of the communication link of the target communication system to perform data transmission communication with the second terminal in S105 includes:
[0155] S801. If the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system, and there is frequency overlap between the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, determine the communication frequency of another point-to-point communication system according to the communication frequency of one point-to-point communication system and a preset frequency interval.
[0156] When the frequency bands currently used by the two systems overlap, the frequency hopping frequency sharing function is started. Specifically, after the two systems turn on frequency hopping, the other point-to-point communication system will refer to the communication frequency of a point-to-point communication system (that is, the communication frequency currently used and the communication frequency expected to be used next), and choose to skip this communication frequency and use other communication frequencies. A preset frequency interval is added to the communication frequency of the other point-to-point communication system to further reduce the overlap of the bandwidth area, and the communication frequency used must exceed this interval area to further reduce the mutual interference between the communication links of the two systems. If after adding a preset frequency interval, the frequency bands currently used by the two systems still overlap, then a preset frequency interval is continued to be added to the communication frequency of the other point-to-point communication system until the frequency bands currently used by the two systems do not overlap.
[0157] When the frequency bands currently used by the two systems do not overlap and the frequency bands of the two systems do not interfere with each other, the frequency hopping frequency sharing function is turned off.
[0158] S802: Perform data transmission communication with a second terminal using a first communication link and a second communication link according to the communication frequencies of the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, respectively.
[0159] After adjusting the communication frequency, there is no overlap between the currently used frequency bands of the two systems. The first communication link and the second communication link are used to perform data transmission and communication with the second terminal according to the communication frequencies of the Bluetooth point-to-point communication system and the IoT point-to-point communication system, respectively. The two communication frequency bands do not interfere with each other, ensuring normal data transmission.
[0160] In summary, in this embodiment, if the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system, and there is frequency band overlap between the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, the communication frequency of another point-to-point communication system is determined according to the communication frequency of one point-to-point communication system and the preset frequency interval; and the first communication link and the second communication link are used to perform data transmission communication with the second terminal according to the communication frequencies of the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, respectively. As a result, the two communication frequency bands do not interfere with each other, ensuring normal data transmission and improving the compatibility of dual-system frequency hopping.
[0161] Fig.12 A flow chart of a data transmission method provided in an embodiment of the present application. Fig.11 As shown, the use of the communication link of the target communication system to perform data transmission communication with the second terminal in S105 includes:
[0162] S901. If the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system, copy the data to be sent in multiple copies.
[0163] If the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system, it is necessary to use a first communication link and a second communication link for data transmission communication. Since the communication paths of the two systems are not very stable at this time, the reliability of the two systems is not strong, and there may be packet loss or sudden link disconnection. Therefore, it is necessary to copy the data to be sent in multiple copies for data transmission on multiple links. For example, when only the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system are used for transmission, it is only necessary to copy the data to be sent in two copies.
[0164] S902: Send the plurality of copies of the to-be-sent data to the second terminal using the first communication link and the second communication link respectively.
[0165] For example, when only the first communication link and the second communication link are used, only two copies of the data to be sent need to be sent to the second terminal using the first communication link and the second communication link respectively. The second terminal will receive two copies of the data to be sent, and even if there is packet loss or a sudden link disconnection, the data is ensured to be complete and reliable as much as possible.
[0166] Alternatively, S903, receiving first received data and second received data sent by the second terminal using the first communication link and the second communication link;
[0167] The first communication link and the second communication link are used to communicate with the second terminal. The first terminal can not only send data, but also receive first received data and second received data sent by the second terminal using the first communication link and the second communication link.
[0168] S904: Combine the first received data and the second received data to obtain target data from the second terminal.
[0169] After receiving the first received data and the second received data, the target data from the second terminal is obtained by piecing together the first received data and the second received data. The target data includes the first received data and the second received data. By piecing together the first received data and the second received data, complete transmission data can be obtained as much as possible even if packet loss or a sudden link disconnection occurs. The specific data piecing method is not limited here. As long as the data piecing can be completed, it is within the protection scope of this application.
[0170] The above steps S901 and S902 are actions performed when the first terminal is at the transmitting end; steps S903 and S904 are actions performed when the first terminal is at the receiving end. In this embodiment, the actions performed by the first terminal in the two cases are described with the expression "or" to fully describe the actions performed by the first terminal.
[0171] In summary, in this embodiment, if the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system, the data to be sent is copied multiple times; the multiple copies of the data to be sent are respectively sent to the second terminal using the first communication link and the second communication link; or, the first received data and the second received data sent by the second terminal using the first communication link and the second communication link are received; the first received data and the second received data are pieced together to obtain the target data from the second terminal. Therefore, by pieced together the first received data and the second received data, even if there is a packet loss or a sudden link disconnection, the complete transmission data can be obtained as much as possible, thereby improving the reliability of the data.
[0172] The following is a description of a point-to-point terminal communication device, equipment, storage medium, etc. provided by the present application for execution. The specific implementation process and technical effects are described above and will not be repeated below.
[0173] Fig.13 A schematic diagram of a point-to-point terminal communication device provided in an embodiment of the present application, such as Fig.13 As shown, applied to a first terminal, the device includes:
[0174] The measurement module 1301 is used to perform signal measurement on a first communication link of a pre-established Bluetooth point-to-point communication system and a second communication link of an Internet of Things point-to-point communication system, respectively, to obtain a first signal measurement value and a second signal measurement value.
[0175] The first determining module 1302 is configured to determine a state of the Bluetooth point-to-point communication system according to the first signal measurement value.
[0176] The second determination module 1303 is used to determine the state of the Internet of Things point-to-point communication system according to the second signal measurement value.
[0177] The third determination module 1304 is used to determine the target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system.
[0178] The communication module 1305 is used to perform data transmission communication with the second terminal using the communication link of the target communication system.
[0179] Furthermore, the measurement module 1301 is specifically used to establish a communication link for the second terminal using a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system respectively; if the first communication link and the second communication link are successfully established after the end of a preset observation period, signal measurements are performed on the first communication link and the second communication link respectively to obtain a first signal measurement value and a second signal measurement value.
[0180] Furthermore, the first determination module 1302 is specifically used to compare the first RSSI measurement value with a preset first RSSI reference value and a second RSSI reference value if the first SNR measurement value is greater than or equal to a first preset signal-to-noise ratio; wherein the first RSSI reference value is greater than the second RSSI reference value; and determine the state of the Bluetooth point-to-point communication system based on the comparison result of the first RSSI measurement value.
[0181] Furthermore, the first determination module 1302 is specifically used to determine the state of the Bluetooth point-to-point communication system based on the comparison result of the first RSSI measurement value, including: if the first RSSI measurement value is greater than or equal to the first RSSI reference value, then the state of the Bluetooth point-to-point communication system is determined to be in use; if the first RSSI measurement value is less than the first RSSI reference value, and the first RSSI measurement value is greater than or equal to the second RSSI reference value, then the state of the Bluetooth point-to-point communication system is determined to be an observation state; if the first RSSI measurement value is less than the second RSSI reference value, then the state of the Bluetooth point-to-point communication system is determined to be a closed state.
[0182] Furthermore, the first determination module 1302 is further configured to determine that the state of the Bluetooth point-to-point communication system is a closed state if the first SNR measurement value is less than a first preset signal-to-noise ratio.
[0183] Furthermore, the second determination module 1303 is specifically used to compare the second RSRP measurement value with the preset first RSRP reference value and the second RSRP reference value if the second SNR measurement value is greater than or equal to the second preset signal-to-noise ratio; wherein the first RSRP reference value is greater than the second RSRP reference value; and determine the state of the IoT point-to-point communication system based on the comparison result of the second RSRP measurement value.
[0184] Furthermore, the second determination module 1303 is specifically used to determine that the state of the Internet of Things point-to-point communication system is in use if the second RSRP measurement value is greater than or equal to the first RSRP reference value; if the second RSRP measurement value is less than the first RSRP reference value, and the second RSRP measurement value is greater than or equal to the second RSRP reference value, determine that the state of the Internet of Things point-to-point communication system is in observation state; if the second RSRP measurement value is less than the second RSRP reference value, determine that the state of the Internet of Things point-to-point communication system is in closed state.
[0185] Furthermore, the second determination module 1303 is specifically used to determine that the state of the Internet of Things point-to-point communication system is a closed state if the second SNR measurement value is less than a second preset signal-to-noise ratio.
[0186] Furthermore, the third determination module 1304 is specifically used to determine that the Bluetooth point-to-point communication system is the target communication system and shut down the Internet of Things point-to-point communication system if the state of the Bluetooth point-to-point communication system is the use state; if the state of the Bluetooth point-to-point communication system is the observation state, and the state of the Internet of Things point-to-point communication system is the use state or the observation state, determine that the Bluetooth point-to-point communication system is the target communication system, and change the state of the Internet of Things point-to-point communication system to a discontinuous receiving and transmitting state; if the state of the Bluetooth point-to-point communication system is the observation state, and the state of the Internet of Things point-to-point communication system is the closed state, determine that the Bluetooth point-to-point communication system is the target communication system. communication system, and close the Internet of Things point-to-point communication system; if the status of the Bluetooth point-to-point communication system is closed, and the status of the Internet of Things point-to-point communication system is in use or observation state, the Internet of Things point-to-point communication system is determined as the target communication system, and the Bluetooth point-to-point communication system is closed; if the status of the Bluetooth point-to-point communication system is closed, and the status of the Internet of Things point-to-point communication system is also in the closed state, the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system are determined as the target communication systems; wherein, the signal strength in the use state is higher than the signal strength in the observation state, and the signal strength in the observation state is higher than the signal strength in the closed state.
[0187] Furthermore, the communication module 1305 is specifically used to determine the communication frequency of another point-to-point communication system according to the communication frequency of one point-to-point communication system and a preset frequency interval if the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system, and there is frequency overlap between the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system; and to perform data transmission communication with the second terminal using the first communication link and the second communication link according to the communication frequencies of the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, respectively.
[0188] Furthermore, the communication module 1305 is specifically used to copy the data to be sent in multiple copies if the target communication system includes a Bluetooth point-to-point communication system and an Internet of Things point-to-point communication system; send the multiple copies of the data to be sent to the second terminal using the first communication link and the second communication link respectively; or receive first received data and second received data sent by the second terminal using the first communication link and the second communication link; and piece together the first received data and the second received data to obtain the target data from the second terminal.
[0189] Fig.14 This is a schematic diagram of a terminal device provided in an embodiment of the present application. The terminal device may be a device with processing, sending, and receiving functions. Fig.14 As shown:
[0190] The terminal device includes: a processor 1401, a transmitter 1402, and a receiver 1403. The processor 1401 is connected with the transmitter 1402 and the receiver 1403 via a bus.
[0191] The receiver 1403 is used to receive signals sent by other terminal devices and transmit them to the processor 1401. The processor 1401 is used to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here. The transmitter 1402 is used to send the processing result of the processor 1401 to other terminal devices.
[0192] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.
[0193] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0194] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0195] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0196] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A point-to-point terminal communication method, characterized in that: Applied to a first terminal, the method includes: Perform signal measurements on a first communication link of a pre-established Bluetooth point-to-point communication system and a second communication link of an Internet of Things point-to-point communication system, respectively, to obtain a first signal measurement value and a second signal measurement value; determining a state of the Bluetooth point-to-point communication system according to the first signal measurement value; Determine the state of the IoT point-to-point communication system according to the second signal measurement value; Determine a target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system; Using the communication link of the target communication system to perform data transmission communication with the second terminal; The step of determining a target communication system from the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system according to the state of the Bluetooth point-to-point communication system and the state of the Internet of Things point-to-point communication system comprises: If the state of the Bluetooth point-to-point communication system is in use, determining the Bluetooth point-to-point communication system as the target communication system, and shutting down the Internet of Things point-to-point communication system; If the state of the Bluetooth point-to-point communication system is an observation state, and the state of the Internet of Things point-to-point communication system is a use state or an observation state, then determining that the Bluetooth point-to-point communication system is the target communication system, and changing the state of the Internet of Things point-to-point communication system to a discontinuous transceiver state; If the state of the Bluetooth point-to-point communication system is an observation state, and the state of the Internet of Things point-to-point communication system is a closed state, determining the Bluetooth point-to-point communication system as the target communication system, and closing the Internet of Things point-to-point communication system; If the state of the Bluetooth point-to-point communication system is a closed state, and the state of the Internet of Things point-to-point communication system is a use state or an observation state, then determining the Internet of Things point-to-point communication system as the target communication system, and closing the Bluetooth point-to-point communication system; If the state of the Bluetooth point-to-point communication system is closed, and the state of the Internet of Things point-to-point communication system is also closed, then determining the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system as the target communication system; Among them, the signal strength in the use state is higher than the signal strength in the observation state, the signal strength in the observation state is higher than the signal strength in the closed state, and the signal strength in the closed state is higher than the signal strength in the no-signal state; in the discontinuous transceiver state, there is no transmission data and there is signal measurement.
2. The method according to claim 1, characterized in that: Before respectively performing signal measurements on the first communication link of the pre-established Bluetooth point-to-point communication system and the second communication link of the Internet of Things point-to-point communication system to obtain the first signal measurement value and the second signal measurement value, the method further includes: respectively using the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system to establish a communication link with the second terminal; The method of respectively performing signal measurement on a first communication link of a pre-established Bluetooth point-to-point communication system and a second communication link of an Internet of Things point-to-point communication system to obtain a first signal measurement value and a second signal measurement value includes: If the first communication link and the second communication link are both successfully established after the preset observation period ends, signal measurements are performed on the first communication link and the second communication link respectively to obtain the first signal measurement value and the second signal measurement value.
3. The method according to claim 1, characterized in that The first signal measurement value includes: a first signal-to-noise ratio SNR measurement value, and a first received signal strength RSSI measurement value; and determining the state of the Bluetooth point-to-point communication system according to the first signal measurement value includes: If the first SNR measurement value is greater than or equal to a first preset signal-to-noise ratio, the first RSSI measurement value is compared with a preset first RSSI reference value and a second RSSI reference value; wherein the first RSSI reference value is greater than the second RSSI reference value; The state of the Bluetooth point-to-point communication system is determined according to the comparison result of the first RSSI measurement value.
4. The method according to claim 3, characterized in that The step of determining the state of the Bluetooth point-to-point communication system according to the comparison result of the first RSSI measurement value includes: If the first RSSI measurement value is greater than or equal to the first RSSI reference value, determining that the state of the Bluetooth point-to-point communication system is in use; If the first RSSI measurement value is less than the first RSSI reference value, and the first RSSI measurement value is greater than or equal to the second RSSI reference value, determining that the state of the Bluetooth point-to-point communication system is an observation state; If the first RSSI measurement value is less than the second RSSI reference value, it is determined that the state of the Bluetooth point-to-point communication system is a closed state.
5. The method according to claim 3, characterized in that: The method further comprises: If the first SNR measurement value is less than the first preset signal-to-noise ratio, it is determined that the state of the Bluetooth point-to-point communication system is a closed state.
6. The method according to claim 1, characterized in that The second signal measurement value includes: a second SNR measurement value, and a second reference signal received power RSRP measurement value; and determining the state of the IoT point-to-point communication system according to the second signal measurement value includes: If the second SNR measurement value is greater than or equal to a second preset signal-to-noise ratio, comparing the second RSRP measurement value with a preset first RSRP reference value and a second RSRP reference value; wherein the first RSRP reference value is greater than the second RSRP reference value; According to the comparison result of the second RSRP measurement value, the state of the Internet of Things point-to-point communication system is determined.
7. The method according to claim 6, characterized in that Determining the state of the Internet of Things point-to-point communication system according to the comparison result of the second RSRP measurement value includes: If the second RSRP measurement value is greater than or equal to the first RSRP reference value, determining that the state of the Internet of Things point-to-point communication system is a use state; If the second RSRP measurement value is less than the first RSRP reference value, and the second RSRP measurement value is greater than or equal to the second RSRP reference value, determining that the state of the Internet of Things point-to-point communication system is an observation state; If the second RSRP measurement value is less than the second RSRP reference value, it is determined that the state of the Internet of Things point-to-point communication system is a closed state.
8. The method according to claim 6, characterized in that The method further comprises: If the second SNR measurement value is less than a second preset signal-to-noise ratio, it is determined that the state of the Internet of Things point-to-point communication system is a closed state.
9. The method according to claim 7, characterized in that: The using the communication link of the target communication system to perform data transmission communication with the second terminal includes: If the target communication system includes the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, and there is a frequency band overlap between the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, the communication frequency of another point-to-point communication system is determined according to the communication frequency of one point-to-point communication system and the preset frequency interval; The first communication link and the second communication link are used to perform data transmission communication with the second terminal according to the communication frequencies of the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system respectively.
10. The method according to claim 1, characterized in that The using the communication link of the target communication system to perform data transmission communication with the second terminal includes: If the target communication system includes the Bluetooth point-to-point communication system and the Internet of Things point-to-point communication system, copying the data to be sent in multiple copies; respectively sending the plurality of copies of the data to be sent to the second terminal using the first communication link and the second communication link; or, Receiving first received data and second received data sent by the second terminal using the first communication link and the second communication link; The first received data and the second received data are pieced together to obtain target data from the second terminal.
