A short-range wireless transmission method, electronic device and storage medium
By dynamically adjusting the wireless transmission priority table in high-altitude or underground equipment, the transmission of high-performance equipment terminals is prioritized, thus solving the sleep delay and channel congestion problems of wireless transmission systems, improving transmission efficiency and reliability, and adapting to changes in equipment terminals and fluctuations in the network environment.
Patent Information
- Application Number
- CN202310862677.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2043-07-13
AI Technical Summary
Existing wireless transmission systems suffer from problems such as sleep delay, transmission channel congestion, high energy consumption, and unstable data transmission in high-altitude or underground equipment. In particular, they cannot respond quickly when the equipment terminal changes, affecting transmission efficiency and security.
By determining the detection area centered on the second terminal, calculating the transmission distance of each first terminal, generating an initial sorting table, and updating the sorting table in real time based on the transmission distance and wireless transmission evaluation coefficient, priority is given to transmitting devices with better performance, and wireless transmission control is dynamically adjusted.
The data transmission order and priority have been optimized, reducing transmission latency and improving transmission efficiency, stability and reliability. It adapts to changes in device terminals and network environment fluctuations, and meets real-time requirements.
Smart Images

Figure CN116709285B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless data transmission technology, and more specifically, to a short-range wireless transmission method, electronic device, and storage medium. Background Technology
[0002] The current environments in which high-altitude or underground equipment are located are harsh, making it difficult for personnel to manage and monitor in real time, and the deployment cost of remote monitoring systems is high. Furthermore, since high-altitude or underground equipment only needs to check data periodically and does not need to transmit data in real time, and the power supply system is also inadequate, relying solely on battery power, a sleep function is set for the wireless transmission system when data transmission is not needed. When data transmission is required, a wake-up operation is performed, which inevitably results in sleep delays, severely impacting the user experience.
[0003] For example, Chinese patent publication number CN109618357A discloses a wireless transmission method and network, which divides the wireless transmission network into partitions and uses a sleep scheduling mechanism to divide different sleep scheduling strategies for each partition; it can achieve low power consumption and low latency data transmission in strip wireless sensor networks, and is particularly suitable for strip wireless sensor network applications that require low latency and low power consumption.
[0004] However, the remaining problem is that the partitioning method only considers the data transmission end, and the location of the data receiver by default has no impact on the data transmission end. Therefore, it only considers how to configure the wireless transmission network, which can reduce the impact of sleep latency. However, in actual short-range transmission applications, if it cannot quickly respond to changes in the device terminal, the data transmission end will send the collected data directly to the data receiver end, which will cause the transmission channel to be blocked. It will also affect the transmission efficiency of the data transmission end with good transmission status, causing transmission latency and unnecessary energy consumption. It cannot flexibly control the wireless transmission system, and it cannot guarantee the efficiency and reliability of data transmission while ensuring data transmission security.
[0005] In view of this, the present invention provides a short-range wireless transmission method, an electronic device, and a storage medium. Summary of the Invention
[0006] To overcome the above-mentioned deficiencies of the prior art, embodiments of the present invention provide a short-range wireless transmission method, an electronic device, and a storage medium.
[0007] According to one aspect of the present invention, a short-range wireless transmission method is provided, applicable to a wireless transmission system between multiple device terminals, wherein the device terminals include a first terminal for acquiring data and a second terminal for receiving data; the method includes the following steps:
[0008] Determine the detection area centered on the second terminal, calculate the transmission distance from each first terminal to the second terminal, match the transmission distance with the corresponding first terminal label number, and sort the first terminals from largest to smallest according to the transmission distance to generate an initial sorting table;
[0009] The second terminal sequentially sends a wake-up command to the first terminal in the initial sorting table. The first terminal sends a response data packet to the second terminal according to the wake-up command, generating the first target time to wake up the first terminal.
[0010] Collect the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time of each first terminal; obtain the wireless transmission evaluation coefficient corresponding to the first terminal based on the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time of the first terminal;
[0011] The sorting table is updated in real time from largest to smallest based on the wireless transmission evaluation coefficient of the first terminal to generate the first sorting table;
[0012] All of the first terminals transmit data to the second terminals at close range according to the first sorting table.
[0013] In a preferred embodiment, the specific analysis process for initializing the sorting table is as follows:
[0014] The transmission distance CD between the first terminal and the second terminal is obtained based on the location information of the first terminal and the location information of the second terminal.
[0015] The transmission distance CD between the first terminal and the second terminal is compared and analyzed with the preset detection transmission distance YD;
[0016] If CD≥YD, then the corresponding first terminal is located in the detection area centered on the second terminal, and the corresponding first terminal is marked.
[0017] If CD < YD, then the corresponding first terminal is not in the detection area centered on the second terminal, and the corresponding first terminal is deleted.
[0018] Pair the labeled first terminal with the corresponding transmission distance between the first terminal and the second terminal, and sort the first terminals according to the transmission distance from largest to smallest to generate an initial sorting table;
[0019] The initial sorting table is labeled as {A1, A2, ..., A...} n A N}, where: n = 1, 2, 3, ..., N; N is the total number of labeled first terminals, and N is a positive integer, completing the processing of the initial sorting table.
[0020] In a preferred embodiment, the specific analysis process for the first target time is as follows:
[0021] Step S201: Obtain the initial sorting table. The second terminal sequentially sends wake-up commands to the first terminals in the initial sorting table. The wake-up commands are pre-stored in the memory of the first terminals.
[0022] Step S202: The first terminal starts the WIFI module according to the wake-up command. After successfully starting the WIFI module, the first terminal sends a response data packet to the second terminal, records the response time from the second terminal sending the wake-up command to receiving the response data packet, and marks the response time as the first target time.
[0023] Repeat steps S201 to S202 until a wake-up command has been sent to all first terminals and the first target time has been recorded.
[0024] In a preferred embodiment, the wireless transmission evaluation coefficient The generation logic is as follows:
[0025] The nth first terminal A n After removing units from the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time, dimensionless processing is performed to obtain the dimensionless bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time. These parameters are then denoted as BP. n XZ n CD n XD n and CS n ;
[0026] The wireless transmission evaluation coefficient of the first terminal is obtained through the formula. The specific expression is:
[0027]
[0028] In the formula, 1 > α1 > α2 > α3 > α4 > α5 > 0; α1, α2, α3, α4 and α5 are the proportional coefficients of the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate and first target time corresponding to the nth first terminal, respectively.
[0029] In a preferred embodiment, the method is to collect timestamped measured environmental information corresponding to multiple first terminals, convert each measured environmental information into environmental digital information through digital-analog conversion, generate integrated sensing data information based on the environmental digital information, and store the integrated sensing data information in the corresponding first terminal. The integrated sensing data information includes, but is not limited to, one or more of the following: text data information, list data information, and image data information.
[0030] In a preferred embodiment, the logic for generating text data information is as follows:
[0031] Keywords are obtained from the actual test environment information. Keyword support and keyword co-occurrence are calculated based on the detection time. The keyword support is used to represent the total number of times the detection time appears in all actual test environment information. The keyword co-occurrence is used to represent how many actual test environment information has the detection time appeared in. The detection time is any two time nodes when the first terminal collects the actual test environment information.
[0032] If the keyword support for any two time points is greater than a preset keyword support threshold, and the keyword co-occurrence is greater than a preset keyword co-occurrence threshold, then the corresponding keyword will be used as the target data in the measured environment information.
[0033] All target data will be presented in text format, including but not limited to one or more of the following text formats: text report, log, or text summary.
[0034] In a preferred embodiment, the logic for generating the image data information is as follows:
[0035] Various measured environmental information are converted into environmental digital information through digital-analog conversion. A first encrypted data stream is generated based on the environmental digital information. The first encrypted data stream is then fused with a preset encrypted image to generate a first transmitted image.
[0036] The measured environmental information consists of sensing electrical signals collected by various sensors. These sensing electrical signals are converted into sensing digital signals by a digital-to-analog converter. The sensing digital signals with timestamps are then integrated into environmental digital information through a time series.
[0037] The environmental digital information is parsed to generate a first encrypted data stream. The first encrypted data stream is then encapsulated into an array of 8 bytes each, with zeros added if necessary, to generate a standardized first encrypted data stream.
[0038] The first encrypted data stream is standardized and added to the data stream corresponding to the preset encrypted image to generate the first target transmission data stream;
[0039] The first target transmission data stream is converted to generate a first target transmission sequence, and the image data information after fusion is generated through the first target transmission sequence.
[0040] According to another aspect of the present invention, a short-range wireless transmission system is provided, the implementation of which based on the above-described short-range wireless transmission method includes:
[0041] The initialization module determines the detection area centered on the second terminal, calculates the transmission distance from each first terminal to the second terminal, pairs the transmission distance with the corresponding first terminal label number, and sorts the first terminals from largest to smallest according to the transmission distance to generate an initial sorting table.
[0042] The wake-up module involves the second terminal sequentially sending wake-up commands to the first terminal in the initial sorting table, and the first terminal sending a response data packet to the second terminal according to the wake-up command, thereby generating the first target time for waking up the first terminal.
[0043] The acquisition module collects the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time for each first terminal;
[0044] The processing module obtains the wireless transmission evaluation coefficients corresponding to the first terminal based on the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate and first target time of the first terminal.
[0045] The sorting module updates the sorting table in real time from largest to smallest based on the wireless transmission evaluation coefficient of the first terminal, and generates the first sorting table.
[0046] The wireless transmission module enables all the first terminals to transmit data to the second terminals at close range according to the first sorting table.
[0047] According to another aspect of the present invention, an electronic device is provided, comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0048] The processor executes the aforementioned short-range wireless transmission method by calling a computer program stored in the memory.
[0049] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores instructions that, when executed on a computer, cause the computer to perform the aforementioned short-range wireless transmission method.
[0050] The technical effects and advantages of the short-range wireless transmission method, electronic device and storage medium of the present invention are as follows:
[0051] This invention first sorts the first terminals by evaluation parameters such as transmission distance, bandwidth, signal-to-noise ratio, signal jitter rate, and first target time. This can optimize the order and priority of data transmission, thereby improving transmission efficiency. Device terminals that are closer and have better transmission capabilities can be prioritized for data transmission, reducing transmission delay and avoiding unnecessary energy consumption; it can also improve the stability and reliability of transmission.
[0052] The sorting table is updated in real time based on actual conditions to adapt to changes in device terminals and fluctuations in the network environment. By dynamically adjusting the sorting table, it is possible to quickly respond to changes in device terminals and achieve flexible wireless transmission control. This improves transmission efficiency, stability, and energy consumption, while meeting real-time requirements, thereby optimizing the performance and reliability of the wireless transmission system between multiple device terminals. Attached Figure Description
[0053] Figure 1 This is a schematic diagram of the short-range wireless transmission system of the present invention;
[0054] Figure 2 This is a schematic diagram of the short-range wireless transmission method of the present invention. Figure 1 ;
[0055] Figure 3 This is a schematic diagram of the short-range wireless transmission method of the present invention. Figure 2 ;
[0056] Figure 4 This is a schematic diagram of an electronic device structure according to the present invention. Detailed Implementation
[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0058] Example 1
[0059] Please see Figure 1 As shown, this embodiment discloses a short-range wireless transmission system suitable for wireless transmission between multiple device terminals. The device terminals include a first terminal for data acquisition and a second terminal for data reception. Multiple first terminals are connected to the same second terminal through a wireless transmission channel. The system includes: an initialization module 1, a wake-up module 2, a data acquisition module 3, a processing module 4, a sorting module 5, and a wireless transmission module 6. The modules are connected via wired and / or wireless connections to achieve data transmission between the modules.
[0060] Initialization module 1 determines the detection area centered on the second terminal, calculates the transmission distance from each first terminal to the second terminal, and pairs the transmission distance with the corresponding first terminal label number. It then sorts the first terminals from largest to smallest according to the transmission distance to generate an initial sorting table and sends the initial sorting table to wake-up module 2.
[0061] Specifically, the first terminal is configured according to the specific needs of the high-altitude or well environment. In this example, the first terminal is mainly a sensor combination. Different types of sensors are configured according to the current detection needs of the high-altitude or well environment. The second terminal is a portable electronic device that can install a corresponding application APP, such as a mobile phone, tablet or sensing application device. The following is an overview using a mobile phone APP as an example.
[0062] The detailed analysis process for initializing the sorted table is as follows:
[0063] The transmission distance CD between the first terminal and the second terminal is obtained based on the location information of the first terminal and the location information of the second terminal.
[0064] The transmission distance CD between the first terminal and the second terminal is compared and analyzed with the preset detection transmission distance YD;
[0065] If CD≥YD, then the corresponding first terminal is located in the detection area centered on the second terminal, and the corresponding first terminal is marked.
[0066] If CD < YD, then the corresponding first terminal is not in the detection area centered on the second terminal, and the corresponding first terminal is deleted.
[0067] Pair the labeled first terminal with the corresponding transmission distance between the first terminal and the second terminal, and sort the first terminals according to the transmission distance from largest to smallest to generate an initial sorting table;
[0068] The initial sorting table is labeled as {A1, A2, ..., A...} n A N}, where: n = 1, 2, 3, ..., N; N is the total number of labeled first terminals, and N is a positive integer, completing the processing of the initial sorting table.
[0069] It's important to note that since the location of the first terminal is fixed, the mobile app can directly obtain its coordinates. Additionally, the phone uses its built-in GPS system to determine its current location. The app then calculates the transmission distance from each first terminal to the second terminal, thus obtaining the wireless transmission channel distance between them. In principle, the wireless transmission distance is proportional to the transmission time from the first terminal to the second terminal. Therefore, an initial sorting table is generated based on the transmission distance from the first terminal to the second terminal. This initial sorting table is equivalent to the initial transmission channel. Following the order in the initial sorting table, the first terminal transmits data to the second terminal sequentially.
[0070] Wake-up module 2: The second terminal sequentially sends wake-up commands to the first terminal in the initial sorting table. The first terminal sends a response data packet to the second terminal according to the wake-up command, generating the first target time to wake up the first terminal; the first target time is sent to the acquisition module 3.
[0071] It should be noted here that the first target time is the wake-up time of the first terminal device, in order to assess the network latency caused by the first terminal's sleep settings.
[0072] The specific analysis process for the first target time is as follows:
[0073] Step S201: Obtain the initial sorting table. The second terminal sequentially sends wake-up commands to the first terminals in the initial sorting table. The wake-up commands are pre-stored in the memory of the first terminals.
[0074] Step S202: The first terminal starts the WIFI module according to the wake-up command. After successfully starting the WIFI module, the first terminal sends a response data packet to the second terminal, records the response time from the second terminal sending the wake-up command to receiving the response data packet, and marks the response time as the first target time.
[0075] Repeat steps S201 to S202 until a wake-up command has been sent to all first terminals and the first target time has been recorded.
[0076] Specifically, the first target time is the wake-up time of each first terminal, that is, the time from when the second terminal sends a wake-up command to when the first terminal responds. The first target time is used to evaluate the wake-up speed of the first terminal, calculate the average response time, etc., and serves as an analysis and evaluation factor for subsequent wireless transmission evaluation.
[0077] It should be noted that the wireless transmission method used in this embodiment is mainly in a specific system where the devices used by the first terminal and the second terminal have already established identity authentication, and the second terminal has the authority to collect data from the first terminal.
[0078] Acquisition module 3 acquires data from each first terminal A. n The bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time are collected and sent to the processing module 4.
[0079] It should be noted that: the wider the bandwidth, the smaller the signal attenuation, and the slower the decrease in transmission rate; the higher the signal-to-noise ratio, the less interference the transmission rate generates, resulting in a slower decrease in transmission rate; the transmission distance is the distance between the first and second terminals, and the greater the transmission distance, the faster the signal attenuation, and the greater the impact on the transmission rate; the higher the signal jitter rate, the more interference the transmission rate generates, resulting in a faster decrease in transmission rate; and the longer the first target time, the more interference the transmission rate generates, resulting in a faster decrease in transmission rate.
[0080] Specifically: the transmission distance can be obtained through the positioning device built into the mobile APP, such as a GPS positioning device; the bandwidth and signal-to-noise ratio are collected in real time by a spectrum analyzer; the signal jitter rate is monitored in real time by filtering; and the first target time is collected by the system processor from the wake-up module.
[0081] Processing module 4 obtains the wireless transmission evaluation coefficients corresponding to the first terminal based on the first terminal's bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time; and sends the wireless transmission evaluation coefficients to sorting module 5.
[0082] Wireless transmission evaluation coefficient The generation logic is as follows:
[0083] The nth first terminal A n After removing units from the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time, dimensionless processing is performed to obtain the dimensionless bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time. These parameters are then denoted as BP. n XZ n CD n XD n and CS n ;
[0084] The wireless transmission evaluation coefficient of the first terminal is obtained through the formula. The specific expression is:
[0085]
[0086] In the formula, 1 > α1 > α2 > α3 > α4 > α5 > 0; α1, α2, α3, α4 and α5 are the proportional coefficients of the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate and first target time corresponding to the nth first terminal, respectively.
[0087] Sorting module 5, based on the wireless transmission evaluation coefficient of the first terminal The sorting table is updated in real time from largest to smallest to generate the first sorting table; the first sorting table is sent to the wireless transmission module 6.
[0088] It should be noted that the following steps are taken: The corresponding wireless transmission evaluation coefficient is obtained from each first terminal. The sorting table is updated in real-time based on the wireless transmission evaluation coefficient of the first terminal. The evaluation coefficient of each first terminal is compared with the terminals already in the sorting table. If the evaluation coefficient of a first terminal is larger, it is inserted into the appropriate position in the sorting table. If the evaluation coefficient of a first terminal is smaller, it is discarded or inserted at the end of the sorting table as needed. A first sorting table is generated based on the real-time updated sorting table. The first sorting table is arranged in descending order of the wireless transmission evaluation coefficient of the first terminals; that is, the first terminal with a higher evaluation coefficient is placed at the beginning of the sorting table to prioritize transmission to the better-performing first terminal.
[0089] Wireless transmission module 6: All the first terminals transmit data to the second terminals at close range according to the first sorting table.
[0090] It should be noted that all first terminals can transmit data to the second terminals according to the order in the first sorting table, using a short-distance transmission method. This allows for optimization of the data transmission process based on the performance evaluation results of the first terminals, improving transmission efficiency and reliability.
[0091] The process involves sequentially selecting the next terminal in the sorting list and transmitting data to the second terminal, continuing until all first terminals have completed data transmission. The specific transmission method may depend on system design and application requirements, and can include sending and receiving data via Wi-Fi, Bluetooth, infrared, or other wireless transmission technologies. Transmitting data according to the sorting list prioritizes terminals with better performance, thus improving data transmission efficiency and reliability.
[0092] Example 2
[0093] The difference from Example 1 is that, as Figure 3 As shown, in the step of optimizing transmission efficiency in this embodiment, the data collected by the first terminal is integrated and analyzed, and then sent as a whole to the second terminal in real time, which can ensure improved data transmission security.
[0094] The acquisition module 3 also includes a function for collecting timestamped measured environment information corresponding to multiple first terminals and sending the measured environment information to the processing module 4.
[0095] Specifically, environmental monitoring values collected by different types of sensors are collectively referred to as measured environmental information. For example, the temperature value corresponding to the current environment is collected by a temperature sensor, the humidity value corresponding to the current environment is collected by a humidity sensor, the gas concentration value corresponding to the current environment is collected by a gas sensor, and so on. There is no limitation on the type of sensor here. It can be fixed to the integrated circuit board of the first terminal by wires.
[0096] Processing module 4 converts various measured environmental information into digital environmental information through digital-to-analog conversion, and generates integrated sensing data information based on the digital environmental information; the integrated sensing data information is stored in the corresponding first terminal;
[0097] It is important to note that during each measurement, the timestamp of the collected environmental information must be recorded. The timestamp marks the acquisition time of each data point for subsequent data processing and analysis. The measured environmental information is then converted into digital environmental information using analog-to-digital conversion (ADC). This involves converting analog signals into digital signals, which can be done using an ADC to convert the analog signals output by the sensor into digital form for subsequent processing and storage. The converted digital environmental information is then stored in the corresponding first terminal. Suitable storage media, such as RAM or flash memory, can be used to store the digital information in the storage device of the first terminal. Based on the stored digital environmental information, data analysis and processing are performed to generate integrated sensor data. This may include statistical analysis of environmental parameters, data filtering, feature extraction, and other operations to obtain more meaningful and usable data.
[0098] Transmitting the generated integrated sensor data wirelessly means that the receiver can promptly acquire and process the latest data, enabling faster decision-making and applications. It allows for real-time monitoring and remote access, provides high-speed data transmission, and reduces data transmission time costs. Furthermore, wireless transmission saves resources required for physical connections, such as cables and interfaces.
[0099] The integrated sensor data information includes, but is not limited to, one or more of the following: text data information, list data information, and image data information;
[0100] The logic for generating text data information is as follows:
[0101] Keywords are obtained from the actual test environment information. Keyword support and keyword co-occurrence are calculated based on the detection time. The keyword support is used to represent the total number of times the detection time appears in all actual test environment information. The keyword co-occurrence is used to represent how many actual test environment information has the detection time appeared in. The detection time is any two time nodes when the first terminal collects the actual test environment information.
[0102] If the keyword support for any two time points is greater than a preset keyword support threshold, and the keyword co-occurrence is greater than a preset keyword co-occurrence threshold, then the corresponding keyword will be used as the target data in the measured environment information.
[0103] All target data will be presented in text format, including but not limited to one or more of the following text formats: text report, log, or text summary.
[0104] It's important to note that keywords in the measured environment information refer to key terms or features related to the measured environment, such as environmental parameters, device status, and event markers. Through statistical analysis of keyword support and co-occurrence, meaningful and important target data can be extracted from the measured environment information and presented in text form. This text can include a text report, log, or text summary, containing the detection time points and corresponding target data keywords. This data processing method, which statistically analyzes the support (frequency of occurrence at the detection time) and co-occurrence (frequency of simultaneous occurrences at the same detection time), helps extract useful information from large amounts of measured environment data, enabling users to better understand and utilize the collected data.
[0105] The logic for generating the image data information is as follows:
[0106] Various measured environmental information are converted into environmental digital information through digital-analog conversion. A first encrypted data stream is generated based on the environmental digital information. The first encrypted data stream is then fused with a preset encrypted image to generate a first transmitted image.
[0107] The measured environmental information consists of sensing electrical signals collected by various sensors. These sensing electrical signals are converted into sensing digital signals by a digital-to-analog converter. The sensing digital signals with timestamps are then integrated into environmental digital information through a time series.
[0108] The environmental digital information is parsed to generate a first encrypted data stream. The first encrypted data stream is then encapsulated into an array of 8 bytes each, with zeros added if necessary, to generate a standardized first encrypted data stream.
[0109] The first encrypted data stream is standardized and added to the data stream corresponding to the preset encrypted image to generate the first target transmission data stream;
[0110] The first target transmission data stream is converted to generate a first target transmission sequence, and the image data information after fusion is generated through the first target transmission sequence.
[0111] It should be noted that: various measured environmental information is converted into a first transmitted image, and the data stream is encoded, compressed, or otherwise processed to obtain a specific transmission sequence. The image is then fused using the first target transmission sequence. Based on the information of the first target transmission sequence, it is applied to the original image data to generate fused image data information. Compressing all measured environmental information into the first transmitted image can reduce the load on wireless transmission while ensuring data transmission security.
[0112] This invention first sorts the first terminals by evaluation parameters such as transmission distance, bandwidth, signal-to-noise ratio, signal jitter rate, and first target time. This can optimize the order and priority of data transmission, thereby improving transmission efficiency. Device terminals that are closer and have better transmission capabilities can be prioritized for data transmission, reducing transmission delay and avoiding unnecessary energy consumption; it can also improve the stability and reliability of transmission.
[0113] The sorting table is updated in real time based on actual conditions to adapt to changes in device terminals and fluctuations in the network environment. By dynamically adjusting the sorting table, it is possible to quickly respond to changes in device terminals and achieve flexible wireless transmission control. This improves transmission efficiency, stability, and energy consumption, while meeting real-time requirements, thereby optimizing the performance and reliability of the wireless transmission system between multiple device terminals.
[0114] Example 3
[0115] Please see Figure 2 As shown, parts not described in detail in this embodiment are described in Embodiment 1. This embodiment provides a short-range wireless transmission method applicable to wireless transmission systems between multiple device terminals. The device terminals include a first terminal for collecting data and a second terminal for receiving data; the method includes the following steps:
[0116] Determine the detection area centered on the second terminal, calculate the transmission distance from each first terminal to the second terminal, match the transmission distance with the corresponding first terminal label number, and sort the first terminals from largest to smallest according to the transmission distance to generate an initial sorting table;
[0117] The second terminal sequentially sends a wake-up command to the first terminal in the initial sorting table. The first terminal sends a response data packet to the second terminal according to the wake-up command, generating the first target time to wake up the first terminal.
[0118] Collect the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time of each first terminal; obtain the wireless transmission evaluation coefficient corresponding to the first terminal based on the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time of the first terminal;
[0119] The sorting table is updated in real time from largest to smallest based on the wireless transmission evaluation coefficient of the first terminal to generate the first sorting table;
[0120] All of the first terminals transmit data to the second terminals at close range according to the first sorting table.
[0121] The detailed analysis process for initializing the sorted table is as follows:
[0122] The transmission distance CD between the first terminal and the second terminal is obtained based on the location information of the first terminal and the location information of the second terminal.
[0123] The transmission distance CD between the first terminal and the second terminal is compared and analyzed with the preset detection transmission distance YD;
[0124] If CD≥YD, then the corresponding first terminal is located in the detection area centered on the second terminal, and the corresponding first terminal is marked.
[0125] If CD < YD, then the corresponding first terminal is not in the detection area centered on the second terminal, and the corresponding first terminal is deleted.
[0126] Pair the labeled first terminal with the corresponding transmission distance between the first terminal and the second terminal, and sort the first terminals according to the transmission distance from largest to smallest to generate an initial sorting table;
[0127] The initial sorting table is labeled as {A1, A2, ..., A...} n A N}, where: n = 1, 2, 3, ..., N; N is the total number of labeled first terminals, and N is a positive integer, completing the processing of the initial sorting table.
[0128] The specific analysis process for the first target time is as follows:
[0129] Step S201: Obtain the initial sorting table. The second terminal sequentially sends wake-up commands to the first terminals in the initial sorting table. The wake-up commands are pre-stored in the memory of the first terminals.
[0130] Step S202: The first terminal starts the WIFI module according to the wake-up command. After successfully starting the WIFI module, the first terminal sends a response data packet to the second terminal, records the response time from the second terminal sending the wake-up command to receiving the response data packet, and marks the response time as the first target time.
[0131] Repeat steps S201 to S202 until a wake-up command has been sent to all first terminals and the first target time has been recorded.
[0132] Wireless transmission evaluation coefficient The generation logic is as follows:
[0133] The nth first terminal A n After removing units from the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time, dimensionless processing is performed to obtain the dimensionless bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time. These parameters are then denoted as BP. n XZ n CD n XD n and CS n ;
[0134] The wireless transmission evaluation coefficient of the first terminal is obtained through the formula. The specific expression is:
[0135]
[0136] In the formula, 1 > α1 > α2 > α3 > α4 > α5 > 0; α1, α2, α3, α4 and α5 are the proportional coefficients of the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate and first target time corresponding to the nth first terminal, respectively.
[0137] This is used to collect timestamped measured environmental information corresponding to multiple first terminals, convert each measured environmental information into environmental digital information through digital-analog conversion, generate integrated sensing data information based on the environmental digital information, and store the integrated sensing data information in the corresponding first terminal. The integrated sensing data information includes, but is not limited to, one or more of the following: text data information, list data information, and image data information.
[0138] The logic for generating text data information is as follows:
[0139] Keywords are obtained from the actual test environment information. Keyword support and keyword co-occurrence are calculated based on the detection time. The keyword support is used to represent the total number of times the detection time appears in all actual test environment information. The keyword co-occurrence is used to represent how many actual test environment information has the detection time appeared in. The detection time is any two time nodes when the first terminal collects the actual test environment information.
[0140] If the keyword support for any two time points is greater than a preset keyword support threshold, and the keyword co-occurrence is greater than a preset keyword co-occurrence threshold, then the corresponding keyword will be used as the target data in the measured environment information.
[0141] All target data will be presented in text format, including but not limited to one or more of the following text formats: text report, log, or text summary.
[0142] The logic for generating the image data information is as follows:
[0143] Various measured environmental information are converted into environmental digital information through digital-analog conversion. A first encrypted data stream is generated based on the environmental digital information. The first encrypted data stream is then fused with a preset encrypted image to generate a first transmitted image.
[0144] The measured environmental information consists of sensing electrical signals collected by various sensors. These sensing electrical signals are converted into sensing digital signals by a digital-to-analog converter. The sensing digital signals with timestamps are then integrated into environmental digital information through a time series.
[0145] The environmental digital information is parsed to generate a first encrypted data stream. The first encrypted data stream is then encapsulated into an array of 8 bytes each, with zeros added if necessary, to generate a standardized first encrypted data stream.
[0146] The first encrypted data stream is standardized and added to the data stream corresponding to the preset encrypted image to generate the first target transmission data stream;
[0147] The first target transmission data stream is converted to generate a first target transmission sequence, and the image data information after fusion is generated through the first target transmission sequence.
[0148] Example 4
[0149] An electronic device according to an exemplary embodiment includes: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0150] The processor executes the aforementioned short-range wireless transmission method by calling a computer program stored in the memory.
[0151] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can vary significantly due to differences in configuration or performance. It can include one or more Central Processing Units (CPUs) and one or more memories, wherein the memory stores at least one computer program, which is loaded and executed by the processor to implement the stock algorithm trading method based on deep neural networks provided in the various method embodiments described above. The electronic device can also include other components for implementing device functions; for example, it can have wired or wireless network interfaces and input / output interfaces for input and output. Further details are not elaborated upon in the embodiments of this application.
[0152] Example 5
[0153] A computer-readable storage medium is shown in an exemplary embodiment, on which an erasable and rewritable computer program is stored;
[0154] When the computer program is run on a computer device, the computer device performs one of the above-described short-range wireless transmission methods.
[0155] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including at least one computer program executed by a processor to perform a short-range wireless transmission method as described above. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0156] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0157] It should be understood that determining B based on A does not mean determining B solely based on A; it also means determining B based on A and / or other information.
[0158] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.
[0159] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0160] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0161] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only one method, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0162] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0163] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0164] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0165] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0166] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A short-range wireless transmission method, applicable to a wireless transmission system between multiple device terminals, wherein the device terminals include a first terminal for collecting data and a second terminal for receiving data; characterized in that, Includes the following steps: The detection area centered on the second terminal is determined. The transmission distance from each first terminal to the second terminal is calculated, and the transmission distance is matched with the corresponding first terminal label number. The first terminals are then sorted from largest to smallest transmission distance to generate an initial sorting table. The specific analysis process for initializing the sorting table is as follows: The transmission distance between the first terminal and the second terminal is obtained based on the location information of the first terminal and the location information of the second terminal. ; The transmission distance between the first terminal and the second terminal With respect to the preset detection transmission distance Comparative analysis; like Then the corresponding first terminal is located in the detection area centered on the second terminal, and the corresponding first terminal is marked. like If the corresponding first terminal is not in the detection area centered on the second terminal, then the corresponding first terminal is deleted. Pair the labeled first terminal with the corresponding transmission distance between the first terminal and the second terminal, and sort the first terminals according to the transmission distance from largest to smallest to generate an initial sorting table; The initial sorting table is labeled as ,in: ; The total number of the first terminals labeled. If the integer is positive, it completes the processing of the initial sorted table; The second terminal sequentially sends a wake-up command to the first terminal in the initial sorting table. The first terminal sends a response data packet to the second terminal according to the wake-up command, generating the first target time to wake up the first terminal. The bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time of each first terminal are collected; based on the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time of each first terminal, the wireless transmission evaluation coefficients corresponding to the first terminal are obtained; the wireless transmission evaluation coefficients... The generation logic is as follows: The first The first terminal After removing units from the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time, dimensionless processing is performed to obtain the dimensionless bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time. These parameters are then labeled as follows: , , , and ; The wireless transmission evaluation coefficient of the first terminal is obtained through the formula. The specific expression is: ; In the formula, ; , , , and The first The ratio of the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time corresponding to each first terminal; The sorting table is updated in real time from largest to smallest based on the wireless transmission evaluation coefficient of the first terminal to generate the first sorting table; All of the first terminals transmit data to the second terminals at close range according to the first sorting table.
2. The short-range wireless transmission method according to claim 1, characterized in that, The specific analysis process for the first target time is as follows: Step S201: Obtain the initial sorting table. The second terminal sequentially sends wake-up commands to the first terminals in the initial sorting table. The wake-up commands are pre-stored in the memory of the first terminals. Step S202: The first terminal starts the WIFI module according to the wake-up command. After successfully starting the WIFI module, the first terminal sends a response data packet to the second terminal, records the response time from the second terminal sending the wake-up command to receiving the response data packet, and marks the response time as the first target time. Repeat steps S201 to S202 until a wake-up command has been sent to all first terminals and the first target time has been recorded.
3. The short-range wireless transmission method according to claim 2, characterized in that, This is used to collect timestamped measured environmental information corresponding to multiple first terminals, convert each measured environmental information into environmental digital information through digital-analog conversion, generate integrated sensing data information based on the environmental digital information, and store the integrated sensing data information in the corresponding first terminal. The integrated sensing data information includes, but is not limited to, one or more of the following: text data information, list data information, and image data information.
4. The short-range wireless transmission method according to claim 3, characterized in that, The logic for generating text data information is as follows: Keywords are obtained from the actual test environment information. Keyword support and keyword co-occurrence are calculated based on the detection time. The keyword support is used to represent the total number of times the detection time appears in all actual test environment information. The keyword co-occurrence is used to represent how many actual test environment information has the detection time appeared in. The detection time is any two time nodes when the first terminal collects the actual test environment information. If the keyword support for any two time points is greater than a preset keyword support threshold, and the keyword co-occurrence is greater than a preset keyword co-occurrence threshold, then the corresponding keyword will be used as the target data in the measured environment information. All target data will be presented in text format, including but not limited to one or more of the following text formats: text report, log, or text summary.
5. A short-range wireless transmission method according to claim 4, characterized in that, The logic for generating the image data information is as follows: Various measured environmental information are converted into environmental digital information through digital-analog conversion. A first encrypted data stream is generated based on the environmental digital information. The first encrypted data stream is then fused with a preset encrypted image to generate a first transmitted image. The measured environmental information consists of sensing electrical signals collected by various sensors. These sensing electrical signals are converted into sensing digital signals by a digital-to-analog converter. The sensing digital signals with timestamps are then integrated into environmental digital information through a time series. The environmental digital information is parsed to generate a first encrypted data stream. The first encrypted data stream is then encapsulated into an array of 8 bytes each, with zeros added if necessary, to generate a standardized first encrypted data stream. The first encrypted data stream is standardized and added to the data stream corresponding to the preset encrypted image to generate the first target transmission data stream; The first target transmission data stream is converted to generate a first target transmission sequence, and the image data information after fusion is generated through the first target transmission sequence.
6. A short-range wireless transmission system, based on the implementation of a short-range wireless transmission method according to any one of claims 1-5, characterized in that, include: The initialization module determines the detection area centered on the second terminal, calculates the transmission distance from each first terminal to the second terminal, and pairs the transmission distance with the corresponding first terminal label number. The first terminals are then sorted from largest to smallest according to the transmission distance to generate an initial sorting table. The wake-up module involves the second terminal sequentially sending wake-up commands to the first terminal in the initial sorting table, and the first terminal sending a response data packet to the second terminal according to the wake-up command, thereby generating the first target time for waking up the first terminal. The acquisition module collects the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate, and first target time for each first terminal; The processing module obtains the wireless transmission evaluation coefficients corresponding to the first terminal based on the bandwidth, signal-to-noise ratio, transmission distance, signal jitter rate and first target time of the first terminal. The sorting module updates the sorting table in real time from largest to smallest based on the wireless transmission evaluation coefficient of the first terminal, and generates the first sorting table. The wireless transmission module enables all the first terminals to transmit data to the second terminals at close range according to the first sorting table.
7. An electronic device, characterized in that, include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes a short-range wireless transmission method according to any one of claims 1-5 by calling a computer program stored in the memory.
8. A computer-readable storage medium, characterized in that: The device stores instructions that, when executed on a computer, cause the computer to perform a short-range wireless transmission method as described in any one of claims 1-5.
Citation Information
Patent Citations
Wireless transmission method and network
CN109618357A
Systems and methods for reducing collisions after traffic indication map paging
CN104160753A
Underwater acoustic communication method for time slot adaptive selection based on length of distance
CN105933985A
Equipment awakening method, system and device, equipment and storage medium
CN111629045A