Synchronous communication method and device, computer equipment and storage medium
By using preset training sequences and frequency offset compensation technology in wireless short-range communication systems, the problem of time synchronization errors in dynamic environments is solved, and communication quality and synchronization efficiency are improved.
Patent Information
- Application Number
- CN202410831232.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-03
AI Technical Summary
In a dynamically changing wireless environment, multipath propagation and signal delays lead to time synchronization errors, which affect the communication quality of wireless short-range communication systems and lead to synchronization failures.
In the wireless short-range communication system, the target terminal node receives the communication data sent by the target management node, determines the initial position in the communication data through the preset first training sequence and the second training sequence, and performs frequency offset compensation to accurately determine Sync location.
It improves synchronization efficiency, ensures communication quality, and achieves accurate time synchronization in dynamic environments.
Smart Images

Figure CN118590982A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a synchronous communication method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of information technology, wireless short-range communication technology, as a key technology in the fields of Internet of Things, smart home, mobile payment, wearable devices, etc., has received extensive attention and application in recent years. With the development of applications, new requirements are put forward for wireless short-range communication technology in terms of communication synchronization. In order to ensure that the data packet can be correctly received within the scheduled time, the wireless short-range communication system usually adopts a precise time synchronization mechanism, such as the network time protocol or adaptive clock recovery technology. However, this requires the device to have high time accuracy, and in a dynamically changing wireless environment, multipath propagation and signal delay may cause time synchronization errors, communication cannot be synchronized, and affect the communication quality. Summary of the invention
[0003] In view of this, the present invention provides a synchronous communication method, apparatus, computer equipment and storage medium to solve the problem in the related art that time synchronization has errors, communication cannot be synchronized, and communication quality is affected.
[0004] In a first aspect, the present invention provides a synchronous communication method, which is applied to a wireless short-range communication system, and the method comprises:
[0005] In the frequency scanning stage, the target terminal node receives the communication data sent by the target management node; wherein the communication data sent by the target management node includes a target first training sequence and a target second training sequence located at a position of a preset time length after the target first training sequence; the target terminal node pre-stores a preset first training sequence and a preset second training sequence; the preset first training sequence includes at least one first training sequence, and the preset second training sequence includes at least one second training sequence;
[0006] Determining an initial position of the target first training sequence in the communication data according to a preset first training sequence pre-stored in the target terminal node;
[0007] Determining an initial position of the target second training sequence in the communication data according to a preset second training sequence pre-stored in the target terminal node and an initial position of the target first training sequence in the communication data;
[0008] Frequency offset compensation is performed on an initial position of the target first training sequence and an initial position of the target second training sequence in the communication data to determine a synchronization position.
[0009] In an optional implementation, determining the initial position of the target first training sequence in the communication data according to a preset first training sequence pre-stored by the target terminal node includes:
[0010] Dividing the communication data into a plurality of sequence segments according to the length of a preset first training sequence pre-stored by the target terminal node;
[0011] Determine a sequence segment having the greatest similarity with each first training sequence in the preset first training sequences pre-stored in the target terminal node among all the sequence segments;
[0012] The position of the sequence segment with the greatest similarity in the communication data is determined as the initial position of the target first training sequence in the communication data.
[0013] In an optional implementation, determining the initial position of the target second training sequence in the communication data according to a preset second training sequence pre-stored by the target terminal node and the initial position of the target first training sequence in the communication data includes:
[0014] Determine a target sequence at a position of a preset time length after an initial position of the target first training sequence in the communication data;
[0015] Determine a second training sequence having the greatest similarity to the target sequence among preset second training sequences pre-stored in the target terminal node;
[0016] Determine whether the second training sequence with the greatest similarity satisfies a preset condition;
[0017] When the second training sequence with the greatest similarity meets a preset condition, the position of the target sequence in the communication data is determined as the initial position of the target second training sequence in the communication data.
[0018] In an optional implementation, before determining the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored by the target terminal node, the method further includes:
[0019] Dividing all communication domains in the wireless short-range communication system into advanced communication domains and general communication domains according to a preset division standard;
[0020] Setting an advanced communication domain synchronization identifier corresponding to the advanced communication domain and a general communication domain synchronization identifier corresponding to the general communication domain;
[0021] Determine a first training sequence determined according to an advanced communication domain synchronization identifier corresponding to the advanced communication domain and a first training sequence determined according to a general communication domain synchronization identifier corresponding to the general communication domain as a preset first training sequence pre-stored by the target terminal node;
[0022] Set the standard communication domain synchronization identifier corresponding to each communication domain in all communication domains;
[0023] The second training sequence determined according to the standard communication domain synchronization identifier corresponding to each communication domain in all the communication domains is determined as the preset second training sequence pre-stored by the target terminal node.
[0024] In an optional implementation, in the frequency scanning stage, the target terminal node receives the communication data sent by the target management node, including: in the frequency scanning stage, the target terminal node receives the communication data sent by the target management node with a superframe as a period.
[0025] In an optional implementation, the method further includes: determining a target management node in the wireless short-range communication system and a target terminal node corresponding to the target management node.
[0026] In an optional implementation, the determining the target management node in the wireless short-range communication system and the target terminal node corresponding to the target management node includes:
[0027] Perform frequency scanning according to the working frequency band of the wireless short-range communication system to determine the management node to be accessed;
[0028] A target management node among the management nodes to be accessed and a target terminal node corresponding to the target management node are determined according to user requirements.
[0029] In a second aspect, the present invention provides a synchronous communication device, which is applied to a wireless short-range communication system, and the device includes:
[0030] A first processing module is configured to receive, at a frequency scanning stage, communication data sent by a target management node at a target terminal node; wherein the communication data sent by the target management node includes a target first training sequence and a target second training sequence located at a position of a preset time length after the target first training sequence; the target terminal node pre-stores a preset first training sequence and a preset second training sequence; the preset first training sequence includes at least one first training sequence, and the preset second training sequence includes at least one second training sequence;
[0031] A second processing module, configured to determine an initial position of the target first training sequence in the communication data according to a preset first training sequence pre-stored in the target terminal node;
[0032] A third processing module, configured to determine an initial position of the target second training sequence in the communication data according to a preset second training sequence pre-stored by the target terminal node and an initial position of the target first training sequence in the communication data;
[0033] The fourth processing module is used to perform frequency offset compensation on the initial position of the target first training sequence and the initial position of the target second training sequence in the communication data to determine a synchronization position.
[0034] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of synchronous communication of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0035] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for synchronous communication of the first aspect or any corresponding embodiment thereof.
[0036] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for synchronous communication of the first aspect or any corresponding embodiment thereof.
[0037] The technical solution provided by the present invention has the following technical effects:
[0038] In the embodiment of the present invention, a target first training sequence and a target second training sequence located at a preset time length after the target first training sequence can be set in the communication data sent by the target management node to the target terminal node, so that the communication data received by the target terminal node carries the identification information of the target first training sequence and the target second training sequence. In order to distinguish the communication between the target management node and different terminal nodes, the target management node includes different first training sequences and second training sequences in the communication data sent when communicating with different terminal nodes. In the present invention, the first training sequence and the second training sequence set in the communication data sent by the target management node to different terminal nodes are pre-stored in each terminal node, so that when the target terminal node receives the communication data sent by the target management node, the initial positions of the target first training sequence and the target second training sequence in the communication data received by the target terminal node can be determined by the preset first training sequence (the first training sequence set in the communication data sent by the target management node to different terminal nodes) and the preset second training sequence (the second training sequence set in the communication data sent by the target management node to different terminal nodes) pre-stored by the target terminal node, and then the precise position can be obtained by performing frequency offset compensation on the initial position, and the synchronization position is determined according to the precise positions of the target first training sequence and the target second training sequence, which can improve the synchronization efficiency, realize synchronous communication, and ensure the communication quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is a schematic flow chart of a synchronous communication method according to an embodiment of the present invention;
[0041] Figure 2 is a structural block diagram of a synchronous communication device according to an embodiment of the present invention;
[0042] Figure 3 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0044] The embodiments of the present invention provide a synchronous communication method, apparatus, computer equipment and storage medium to solve the above problems.
[0045] According to an embodiment of the present invention, a method embodiment of synchronous communication is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0046] Figure 1 FIG. 1 is a flow chart of a synchronous communication method according to an embodiment of the present invention. Figure 1 As shown, a synchronous communication method provided in an embodiment of the present invention is applied to a wireless short-range communication system, and the synchronous communication method includes:
[0047] S101: In the frequency scanning phase, the target terminal node receives communication data sent by the target management node.
[0048] In this embodiment, the communication data sent by the target management node includes a target first training sequence and a target second training sequence located at a preset time length after the target first training sequence. The target terminal node pre-stores a preset first training sequence and a preset second training sequence. The preset first training sequence includes at least one first training sequence, and the preset second training sequence includes at least one second training sequence. All terminal nodes in the wireless short-range communication system pre-store a preset first training sequence and a preset second training sequence. The target management node can be a WIFI signal, Bluetooth, etc., and the target terminal node can be a smart terminal, such as a mobile phone, a headset, etc.
[0049] In this embodiment, in the frequency scanning stage, the target terminal node can receive the communication data sent by the target management node with a superframe as a period. The communication data of a superframe sent by the target management node includes a target first training sequence and a target second training sequence located at a position of a preset time length after the target first training sequence. In this embodiment, steps S102-S104 can be performed on the communication data of a superframe. In this embodiment, the management node is the node that sends the data scheduling information of the wireless short-range communication system, and the terminal node is the node that receives the data scheduling information of the wireless short-range communication system.
[0050] In this embodiment, in the frequency scanning stage, the target management node needs to send communication data to the target terminal node with a superframe as a period, and the target terminal node needs to receive the communication data sent by the target management node with a superframe as a period. As an example, if the wireless short-range communication system is built based on the star flash technology, a superframe is 1ms, that is, 30720 sampling points, and a superframe is composed of 48 wireless frames, that is, a wireless frame length is 640 sampling points, and the length of a first training sequence or a second training sequence is 64 sampling points. In this embodiment, the communication data sent by the target management node to the target terminal node carries identification information, and the identification information is the target first training sequence and the target second training sequence located at a preset time length after the target first training sequence. As an example, the preset time length is a wireless frame. Considering the existence of delay, the communication data of a superframe (30720 sampling points) sent by the target management node and the communication data of a superframe (30720 sampling points) received by the target terminal node are usually different.
[0051] In this embodiment, the target first training sequence and the target second training sequence are determined according to the communication domain synchronization identifier of the communication domain corresponding to the target management node and the target terminal node, and the preset first training sequence and the preset second training sequence are determined according to the communication domain synchronization identifier of the communication domain corresponding to the target management node and all terminal nodes in the wireless short-range communication system.
[0052] S102: Determine an initial position of a target first training sequence in communication data according to a preset first training sequence pre-stored in the target terminal node.
[0053] In this embodiment, for a superframe of communication data received by the target terminal node, a cross-correlation operation can be performed on the target first training sequence and the communication data of a superframe, and the position of the sequence segment with the highest correlation in the communication data of a superframe is determined as the initial position of the target first training sequence in the communication data of a superframe received by the target terminal node.
[0054] S103: Determine an initial position of a target second training sequence in the communication data according to a preset second training sequence pre-stored in the target terminal node and an initial position of a target first training sequence in the communication data.
[0055] In this embodiment, according to the positional relationship between the target first training sequence and the target second training sequence: the target second training sequence is located at a position of a preset time length after the target first training sequence, and according to the initial position of the target first training sequence in the communication data received by the target terminal node, the target sequence located at a position of a preset time length after the initial position of the target first training sequence in the communication data received by the target terminal node can be determined. A cross-correlation operation can be performed on the target sequence and the preset second training sequence pre-stored by the target terminal node to determine the second training sequence with the greatest similarity to the target sequence in the preset second training sequence pre-stored by the target terminal node, and determine whether the second training sequence with the greatest similarity meets a preset condition, and the preset condition can be that the maximum value of the similarity is greater than a preset threshold. When the second training sequence with the greatest similarity meets the preset condition, the position of the target sequence in the communication data received by the target terminal node is determined as the initial position of the target second training sequence in the communication data received by the target terminal node.
[0056] S104: Perform frequency offset compensation on the initial position of the target first training sequence and the initial position of the target second training sequence in the communication data to determine the synchronization position.
[0057] In this embodiment, as an example, after determining the initial position of the target first training sequence and the initial position of the target second training sequence, it is also necessary to estimate the frequency offset of the communication data received by the target terminal node so as to perform corresponding frequency offset compensation. The frequency offset compensation can remove the carrier frequency deviation and sampling clock deviation caused by the frequency offset. The initial position of the target first training sequence and the initial position of the target second training sequence in the communication data received by the target terminal node are compensated for the frequency offset to determine the precise position of the target first training sequence and the precise position of the target second training sequence in the communication data received by the target terminal node. The synchronization position can be determined according to the precise position of the target first training sequence and the precise position of the target second training sequence in the communication data received by the target terminal node, and finally the broadcast information is blindly decoded. As an example, the precise position of the target first training sequence and the precise position of the target second training sequence in the communication data received by the target terminal node can be determined as the synchronization position. For example: in the communication data of a superframe sent by the target management node, the target first training sequence corresponds to the end position of the first wireless frame, and the target second training sequence corresponds to the beginning position of the third wireless frame. According to the technical solution of the present invention, the target first training sequence in the communication data of a superframe received by the target terminal node corresponds to the end position of the fourth wireless frame, and the target second training sequence corresponds to the start position of the sixth wireless frame, and the position of the target first training sequence corresponding to the fourth wireless frame and the position of the target second training sequence corresponding to the sixth wireless frame are used as the synchronization position. Based on the technical solution of the present invention, communication synchronization can be performed, and the synchronization position can be accurately, quickly and effectively determined to reduce communication delay.
[0058] In the embodiment of the present invention, a target first training sequence and a target second training sequence located at a preset time length after the target first training sequence can be set in the communication data sent by the target management node to the target terminal node, so that the communication data received by the target terminal node carries the identification information of the target first training sequence and the target second training sequence. In order to distinguish the communication between the target management node and different terminal nodes, the target management node includes different first training sequences and second training sequences in the communication data sent when communicating with different terminal nodes. In the present invention, the first training sequence and the second training sequence set in the communication data sent by the target management node to different terminal nodes are pre-stored in each terminal node. In this way, when the target terminal node receives the communication data sent by the target management node, the initial positions of the target first training sequence and the target second training sequence in the communication data received by the target terminal node can be determined by the preset first training sequence (the first training sequence set in the communication data sent by the target management node to different terminal nodes) and the preset second training sequence (the second training sequence set in the communication data sent by the target management node to different terminal nodes) pre-stored by the target terminal node. Then, the precise position can be obtained by performing frequency offset compensation on the initial position. The synchronization position is determined according to the precise positions of the target first training sequence and the target second training sequence, which can improve the synchronization efficiency, realize synchronous communication, and ensure the communication quality.
[0059] In an optional implementation, S102 determines the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored by the target terminal node, specifically including:
[0060] S1021: Divide the communication data into a plurality of sequence segments according to the length of a preset first training sequence pre-stored in the target terminal node.
[0061] In this embodiment, for communication data of a superframe received by the target terminal node, a window with a length of 64 sampling points can be slid on a superframe to divide the communication data of a superframe received by the target terminal node into multiple sequence segments.
[0062] S1022: Determine a sequence segment having the greatest similarity with each first training sequence in the preset first training sequences pre-stored in the target terminal node among all the sequence segments.
[0063] In this embodiment, when calculating the cross-correlation function, the similarity between all sequence segments and each first training sequence in the preset first training sequence pre-stored by the target terminal node can be determined by convolution, specifically, the first training sequence is subjected to fast Fourier transform, the time domain signal is converted into a frequency domain signal, channel estimation is performed, and then a cross-correlation operation is performed. The maximum value of the convolution is also the maximum value of the similarity, and the sequence segments of the 64 sampling points with the largest similarity among all sequence segments are determined.
[0064] S1023: Determine the position of the sequence segment with the greatest similarity in the communication data as the initial position of the target first training sequence in the communication data.
[0065] In this embodiment, before determining the position of the sequence segment of the 64 sampling points with the largest similarity in the communication data as the initial position of the target first training sequence in the communication data of a superframe received by the target terminal node, it is necessary to determine whether the maximum value of the similarity is greater than the preset similarity. When the maximum value of the similarity is greater than the preset similarity, the position of the sequence segment with the largest similarity in the communication data can be determined as the initial position of the target first training sequence in the communication data of a superframe received by the target terminal node. When the maximum value of the similarity is not greater than the preset similarity, the preset similarity can be readjusted. If the maximum value of the similarity is still not greater than the preset similarity after adjusting the preset similarity, the subsequent steps, such as determining the initial position of the target second training sequence and the step of frequency offset compensation, are not performed, but the initial position of the target first training sequence in the communication data of the next superframe is re-determined, which can effectively reduce the synchronization time.
[0066] In an optional implementation, S103 determines the initial position of the target second training sequence in the communication data according to the preset second training sequence pre-stored by the target terminal node and the initial position of the target first training sequence in the communication data, specifically including:
[0067] S1031: Determine a target sequence at a position of a preset time length after an initial position of a target first training sequence in the communication data.
[0068] In this embodiment, after determining the initial position of the target first training sequence in the communication data of a superframe received by the target terminal node, the target sequence at the position of the preset time length in the communication data of a superframe received by the target terminal node can be determined based on the positional relationship between the target first training sequence and the target second training sequence: the target second training sequence is located at the position of the preset time length after the target first training sequence. When the preset time length is one wireless frame, in theory, after determining the initial position of the target first training sequence in the communication data of a superframe received by the target terminal node, pushing back one wireless frame length (640 sampling points) is the initial position of the target second training sequence.
[0069] S1032: Determine a second training sequence that has the greatest similarity to the target sequence among preset second training sequences pre-stored in the target terminal node.
[0070] S1033: Determine whether the second training sequence with the greatest similarity meets a preset condition.
[0071] S1034: When the second training sequence with the greatest similarity meets a preset condition, the position of the target sequence in the communication data is determined as the initial position of the target second training sequence in the communication data.
[0072] In this embodiment, on the basis of theory, in order to improve the accuracy of determining the initial position of the target second training sequence in the communication data of a superframe received by the target terminal node, it is necessary to further judge whether the position of the target sequence is the initial position of the target second training sequence in the communication data of a superframe received by the target terminal node according to S1032-S1034.
[0073] In this embodiment, according to the star flash protocol, the theoretical position of the target first training sequence reported in the frequency scanning phase can be used to save the target first training sequence, and according to the star flash protocol, the target second training sequence corresponding to the theoretical position of the target second training sequence can be pushed back 640 sampling points. In the actual communication process, after the target first training sequence and the preset first training sequence pre-stored locally are mutually correlated to find the maximum value, 640 sampling points are pushed back to perform the mutual correlation between the target sequence and the preset second training sequence pre-stored locally. Only when the second training sequence with the largest similarity meets the preset condition, that is, the maximum value of the similarity is greater than the preset threshold, the position of the target sequence will be retained, and the position of the target sequence in the communication data will be determined as the initial position of the target second training sequence in the communication data received by the target terminal node. When the preset condition is not met, the preset threshold can be readjusted. If the maximum value of the similarity is still not greater than the preset threshold after adjusting the preset threshold, the subsequent steps, such as the step of not performing frequency offset compensation, are not performed, but the initial position of the target first training sequence and the initial position of the target second training sequence in the communication data of the next superframe are re-determined to reduce the synchronization time.
[0074] In an optional embodiment, before determining the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored by the target terminal node, the method for synchronous communication also includes: determining the communication domain synchronization identifiers corresponding to all communication domains in the wireless short-range communication system. Determine the preset first training sequence and the preset second training sequence according to the communication domain synchronization identifier. The communication domain synchronization identifier corresponding to a communication domain includes two parts, one of which is an advanced communication domain synchronization identifier and a general communication domain synchronization identifier, and the other is a standard communication domain synchronization identifier corresponding to the communication domain.
[0075] All communication domains in the wireless short-range communication system are divided into advanced communication domains and general communication domains according to a preset division standard. An advanced communication domain synchronization identifier corresponding to the advanced communication domain and a general communication domain synchronization identifier corresponding to the general communication domain are set. A first training sequence determined according to the advanced communication domain synchronization identifier corresponding to the advanced communication domain and a first training sequence determined according to the general communication domain synchronization identifier corresponding to the general communication domain are determined as preset first training sequences pre-stored by a target terminal node.
[0076] A standard communication domain synchronization identifier corresponding to each communication domain in all communication domains is set. A second training sequence determined according to the standard communication domain synchronization identifier corresponding to each communication domain in all communication domains is determined as a preset second training sequence pre-stored by the target terminal node.
[0077] In this embodiment, as an example, the wireless short-range communication system can be a wireless short-range communication system constructed using the Star Flash technology. The wireless short-range communication system constructed using the Star Flash technology is divided into a bottom layer and an upper layer, the bottom layer is used for data access, and the upper layer is used for services and applications. The bottom layer and the Star Flash access layer of Star Flash mainly include basic access and low-power access, among which the basic access has fast speed, low latency, and large data bandwidth, and the low-power access has low power consumption. The two transmission modes can be automatically switched in the face of different access devices, providing an ultra-short time slot frame structure and an ultra-short wireless frame scheduling cycle. The network architecture of Star Flash supports two types of network nodes, management nodes and terminal nodes. A management node and several terminal nodes can form a general communication domain to jointly complete specific communication functions. At the same time, the management node can also serve as a terminal node of another communication domain to form an advanced communication domain. In theory, a management node can access 4096 terminal node devices at the same time. Therefore, Star Flash technology can adapt to the needs of star, tree, or star and tree composite topologies.
[0078] In this embodiment, the first training sequence d FTS (n) The generation method is as follows:
[0079]
[0080] Among them, the advanced communication domain synchronization flag u=1, the general communication domain synchronization flag u=40, j, n represent synchronization flag control variables, d FTS (n) represents the first training sequence.
[0081] In this embodiment, the preset first training sequence includes two fixed sequences, so the target first training sequence is one of the two fixed sequences. When calculating the similarity between all sequence segments and each first training sequence in the preset first training sequence pre-stored by the target terminal node, the first training sequences with root indexes of 40 and 1 are used for correlation respectively, and the similarity between all sequence segments and the first training sequence determined according to the advanced communication domain synchronization identifier corresponding to the advanced communication domain is calculated, and the similarity between all sequence segments and the first training sequence determined according to the general communication domain synchronization identifier corresponding to the general communication domain is calculated, and the two sets of similarities are saved, which can effectively reduce the search time in the frequency point search stage.
[0082] In this embodiment, the second training sequence d STS (n) The generation method is as follows:
[0083]
[0084] Wherein, u=1,2,…,20 represents the standard communication domain synchronization identifier, d STS (n) represents the second training sequence.
[0085] In this embodiment, the target management node can access multiple terminal nodes at the same time. For the terminal nodes that want to access, the target management node will send different standard communication domain synchronization identifiers to different terminal nodes. For the terminal node, it is unknown what the standard communication domain synchronization identifier sent to it is. Since the signal characteristics of the second training sequence generated by different standard communication domain synchronization identifiers are different, the terminal node needs to traverse the second training sequences generated by 20 standard communication domain synchronization identifiers, and cross-correlate them with the target second training sequence sent by the target management node to obtain the standard communication domain synchronization identifier corresponding to the second training sequence with the greatest similarity, which is the standard communication domain synchronization identifier sent by the target management node to the terminal node. In this embodiment, all terminal nodes in the wireless short-range communication system pre-store their corresponding standard communication domain synchronization identifiers.
[0086] In an optional implementation, the synchronous communication method further includes: determining a target management node in the wireless short-range communication system and a target terminal node corresponding to the target management node. Determining a target management node in the wireless short-range communication system and a target terminal node corresponding to the target management node includes:
[0087] Perform frequency scanning according to the working frequency band of the wireless short-range communication system to determine the management node to be accessed.
[0088] Determine the target management node among the management nodes to be accessed and the target terminal node corresponding to the target management node according to user needs.
[0089] In this embodiment, the frequency point is the channel center frequency used in the working frequency band of the wireless short-range communication system. As an example, the working frequency band of the wireless short-range communication system includes three working frequency bands, and the frequency ranges of the three working frequency bands include: [5150MHz, 5350MHz], [5470MHz, 5725MHz], [5725MHz, 5825MHz]. Different management nodes will use different channel center frequencies. After scanning the frequency points according to the working frequency band of the wireless short-range communication system, all accessible management nodes can be searched, and then the management node to be added can be selected according to user needs, that is, the target management node. The terminal node pre-stores its corresponding standard communication domain synchronization identifier locally. When there is one terminal node to be accessed, the terminal node is the target terminal node corresponding to the target management node, and the target management node sends communication data to the terminal node. When there are multiple terminal nodes to be accessed, the target terminal node corresponding to the target management node can be determined according to the standard communication domain synchronization identifier corresponding to the communication data. The terminal node can determine whether the communication data is sent to itself by the target management node according to the standard communication domain synchronization identifier corresponding to the communication data. Only when the standard communication domain synchronization identifier corresponding to the communication data is the standard communication domain synchronization identifier pre-stored locally in the terminal node, the terminal node will be determined as the target terminal node and synchronization will be performed. If the standard communication domain synchronization identifier corresponding to the communication data is not the standard communication domain synchronization identifier pre-stored locally in the terminal node, the terminal node is not the target terminal node, and the terminal node ignores the communication data.
[0090] It should be noted that the contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.
[0091] In the present embodiment, a synchronous communication device is also provided, which is used to implement the above-mentioned embodiment and optional implementation methods, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0092] This embodiment provides a synchronous communication device, which is applied to a wireless short-range communication system. Figure 2 is a structural block diagram of a synchronous communication device according to an embodiment of the present invention, such as Figure 2 As shown, the synchronous communication device includes:
[0093] The first processing module 11 is used for the target terminal node to receive the communication data sent by the target management node in the frequency scanning stage. The communication data sent by the target management node includes a target first training sequence and a target second training sequence located at a position of a preset time length after the target first training sequence. The target terminal node pre-stores a preset first training sequence and a preset second training sequence. The preset first training sequence includes at least one first training sequence, and the preset second training sequence includes at least one second training sequence.
[0094] The second processing module 12 is used to determine the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored in the target terminal node.
[0095] The third processing module 13 is used to determine the initial position of the target second training sequence in the communication data according to the preset second training sequence pre-stored by the target terminal node and the initial position of the target first training sequence in the communication data.
[0096] The fourth processing module 14 is used to perform frequency offset compensation on the initial position of the target first training sequence and the initial position of the target second training sequence in the communication data to determine the synchronization position.
[0097] In an optional embodiment, the second processing module 12 includes:
[0098] The first processing unit is used to divide the communication data into a plurality of sequence segments according to the length of a preset first training sequence pre-stored in the target terminal node.
[0099] The second processing unit is configured to determine a sequence segment having the greatest similarity with each first training sequence in the preset first training sequences pre-stored in the target terminal node among all the sequence segments.
[0100] The third processing unit is used to determine the position of the sequence segment with the greatest similarity in the communication data as the initial position of the target first training sequence in the communication data.
[0101] In an optional implementation, the third processing module 13 includes:
[0102] The first processing unit is used to determine a target sequence at a position of a preset time length after an initial position of a target first training sequence in the communication data.
[0103] The second processing unit is configured to determine a second training sequence having the greatest similarity to the target sequence among preset second training sequences pre-stored in the target terminal node.
[0104] The third processing unit is configured to determine whether the second training sequence with the greatest similarity satisfies a preset condition.
[0105] The fourth processing unit is configured to determine the position of the target sequence in the communication data as the initial position of the target second training sequence in the communication data when the second training sequence with the greatest similarity meets a preset condition.
[0106] In an optional implementation, the synchronous communication device further includes: a fifth processing module;
[0107] The fifth processing module includes:
[0108] The first processing unit is used to divide all communication domains in the wireless short-range communication system into advanced communication domains and general communication domains according to a preset division standard before determining the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored in the target terminal node.
[0109] The second processing unit is configured to set an advanced communication domain synchronization identifier corresponding to the advanced communication domain and a general communication domain synchronization identifier corresponding to the general communication domain.
[0110] The third processing unit is used to determine the first training sequence determined according to the advanced communication domain synchronization identifier corresponding to the advanced communication domain and the first training sequence determined according to the general communication domain synchronization identifier corresponding to the general communication domain as the preset first training sequence pre-stored by the target terminal node.
[0111] The fourth processing unit is used to set a standard communication domain synchronization identifier corresponding to each communication domain in all communication domains.
[0112] The fifth processing unit is configured to determine the second training sequence determined according to the standard communication domain synchronization identifier corresponding to each communication domain in all the communication domains as the preset second training sequence pre-stored in the target terminal node.
[0113] In an optional implementation, the first processing module 11 is specifically configured to, during the frequency scanning phase, enable the target terminal node to receive communication data sent by the target management node with a superframe as a period.
[0114] In an optional implementation, the synchronous communication device further includes: a sixth processing module; the sixth processing module is used to determine a target management node in the wireless short-range communication system and a target terminal node corresponding to the target management node.
[0115] In an optional implementation, the sixth processing module is specifically configured to perform frequency scanning according to the working frequency band of the wireless short-range communication system to determine the management node to be accessed, determine the target management node among the management nodes to be accessed, and the target terminal node corresponding to the target management node according to user requirements.
[0116] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0117] The synchronous communication device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0118] The embodiment of the present invention also provides a computer device having the above Figure 2 The synchronous communication device shown.
[0119] See also Figure 3 , Figure 3 Schematic diagram of the hardware structure of the computer device according to the embodiment of the present invention. Figure 3 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In an optional embodiment, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.
[0120] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0121] The memory 20 stores instructions executable by the preset processor 10 so that the preset processor 10 executes the method shown in the above embodiment.
[0122] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for a preset function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as a preset disk storage device, a flash memory device, or other non-transient solid-state storage device. In an optional embodiment, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0123] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive. The memory 20 may also include a combination of the above types of memory.
[0124] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0125] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0126] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0127] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A synchronous communication method, applied to a wireless short-range communication system, characterized in that: The method comprises: In the frequency scanning stage, the target terminal node receives the communication data sent by the target management node; wherein the communication data sent by the target management node includes a target first training sequence and a target second training sequence located at a position of a preset time length after the target first training sequence; the target terminal node pre-stores a preset first training sequence and a preset second training sequence; the preset first training sequence includes at least one first training sequence, and the preset second training sequence includes at least one second training sequence; Determining an initial position of the target first training sequence in the communication data according to a preset first training sequence pre-stored in the target terminal node; Determining an initial position of the target second training sequence in the communication data according to a preset second training sequence pre-stored in the target terminal node and an initial position of the target first training sequence in the communication data; Frequency offset compensation is performed on an initial position of the target first training sequence and an initial position of the target second training sequence in the communication data to determine a synchronization position.
2. The method according to claim 1, characterized in that The determining the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored by the target terminal node includes: Dividing the communication data into a plurality of sequence segments according to the length of a preset first training sequence pre-stored by the target terminal node; Determine a sequence segment having the greatest similarity with each first training sequence in the preset first training sequences pre-stored in the target terminal node among all the sequence segments; The position of the sequence segment with the greatest similarity in the communication data is determined as the initial position of the target first training sequence in the communication data.
3. The method according to claim 1, characterized in that: The determining the initial position of the target second training sequence in the communication data according to the preset second training sequence pre-stored by the target terminal node and the initial position of the target first training sequence in the communication data comprises: Determine a target sequence at a position of a preset time length after an initial position of the target first training sequence in the communication data; Determine a second training sequence having the greatest similarity to the target sequence among preset second training sequences pre-stored in the target terminal node; Determine whether the second training sequence with the greatest similarity satisfies a preset condition; When the second training sequence with the greatest similarity meets a preset condition, the position of the target sequence in the communication data is determined as the initial position of the target second training sequence in the communication data.
4. The method according to claim 1, characterized in that: Before determining the initial position of the target first training sequence in the communication data according to the preset first training sequence pre-stored by the target terminal node, the method further includes: Dividing all communication domains in the wireless short-range communication system into advanced communication domains and general communication domains according to a preset division standard; Setting an advanced communication domain synchronization identifier corresponding to the advanced communication domain and a general communication domain synchronization identifier corresponding to the general communication domain; Determine a first training sequence determined according to an advanced communication domain synchronization identifier corresponding to the advanced communication domain and a first training sequence determined according to a general communication domain synchronization identifier corresponding to the general communication domain as a preset first training sequence pre-stored by the target terminal node; Set the standard communication domain synchronization identifier corresponding to each communication domain in all communication domains; The second training sequence determined according to the standard communication domain synchronization identifier corresponding to each communication domain in all the communication domains is determined as the preset second training sequence pre-stored by the target terminal node.
5. The method according to claim 1, characterized in that The target terminal node receives the communication data sent by the target management node during the frequency scanning phase, including: during the frequency scanning phase, the target terminal node receives the communication data sent by the target management node with a superframe as a period.
6. The method according to claim 1, characterized in that The method further includes: determining a target management node in the wireless short-range communication system and a target terminal node corresponding to the target management node.
7. The method according to claim 6, characterized in that The determining of the target management node in the wireless short-range communication system and the target terminal node corresponding to the target management node includes: Perform frequency scanning according to the working frequency band of the wireless short-range communication system to determine the management node to be accessed; A target management node among the management nodes to be accessed and a target terminal node corresponding to the target management node are determined according to user requirements.
8. A synchronous communication device, applied to a wireless short-range communication system, characterized in that: The device comprises: A first processing module is configured to receive, at a frequency scanning stage, communication data sent by a target management node at a target terminal node; wherein the communication data sent by the target management node includes a target first training sequence and a target second training sequence located at a position of a preset time length after the target first training sequence; the target terminal node pre-stores a preset first training sequence and a preset second training sequence; the preset first training sequence includes at least one first training sequence, and the preset second training sequence includes at least one second training sequence; A second processing module, configured to determine an initial position of the target first training sequence in the communication data according to a preset first training sequence pre-stored in the target terminal node; A third processing module, configured to determine an initial position of the target second training sequence in the communication data according to a preset second training sequence pre-stored by the target terminal node and an initial position of the target first training sequence in the communication data; The fourth processing module is used to perform frequency offset compensation on the initial position of the target first training sequence and the initial position of the target second training sequence in the communication data to determine a synchronization position.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the steps of the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the steps of the method according to any one of claims 1 to 7.
