WO2023061180A1 - 基于多频率的数据发送和接收方法、装置和设备 - Google Patents

基于多频率的数据发送和接收方法、装置和设备 Download PDF

Info

Publication number
WO2023061180A1
WO2023061180A1 PCT/CN2022/120526 CN2022120526W WO2023061180A1 WO 2023061180 A1 WO2023061180 A1 WO 2023061180A1 CN 2022120526 W CN2022120526 W CN 2022120526W WO 2023061180 A1 WO2023061180 A1 WO 2023061180A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
conversion
sending
frequency
fragment
Prior art date
Application number
PCT/CN2022/120526
Other languages
English (en)
French (fr)
Inventor
白智德
白志得
哈米德
丁晓端
殷燕
黄坤
Original Assignee
深圳智慧林网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳智慧林网络科技有限公司 filed Critical 深圳智慧林网络科技有限公司
Publication of WO2023061180A1 publication Critical patent/WO2023061180A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format

Definitions

  • the present invention relates to the technical field of data transmission, in particular to a multi-frequency-based data sending and receiving method, device and equipment.
  • the data when transmitting data, in order to obtain higher transmission efficiency, the data is usually compressed or split into multiple sub-data of the same size for transmission.
  • compression technology compresses data by performing a large number of calculations that consume a lot of computer resources, and due to the increased bandwidth of modern routers, it usually takes longer to send data directly without compression than to send the data after compressing it. few.
  • the existing data splitting method usually splits the data into several sub-data of equal size according to the specific requirements of transmission, sends them separately, and then combines them at the receiving end.
  • due to problems such as disk writing and indexing of the split sub-data in the disk cluster not only does it not help data transmission on the network, but it reduces the data transmission speed on the network. Therefore, current methods of sending data based on compression and splitting often fail to increase the speed of data transfer over the network, and instead result in slower data transfer speeds.
  • the embodiments of the present application provide a multi-frequency-based data sending and receiving method, device and equipment, which can increase the data transmission speed on the network.
  • the embodiment of the present application provides a method for sending data based on multiple frequencies, including:
  • the preset conversion table and the sending frequency corresponding to each data fragment data conversion is performed on each data fragment respectively to obtain at least one conversion result, wherein the conversion table records that different data fragments are sent in different For the conversion results corresponding to the frequency, at least one conversion result is in one-to-one correspondence with at least one data segment;
  • Each conversion result of the at least one conversion result is sequentially sent to the data receiving end according to the sending frequency corresponding to each conversion result.
  • the embodiment of the present application provides a multi-frequency-based data receiving method, including:
  • each data to be converted in the at least one data to be converted includes a conversion result and a description file
  • the conversion results corresponding to each conversion data are respectively reverse-converted to obtain at least one data fragment.
  • the conversion table records that different data fragments are in different
  • the conversion result corresponding to the sending frequency, at least one data fragment corresponds to at least one conversion result;
  • the at least one data fragment is arranged and combined to obtain the original data.
  • the embodiment of the present application provides a data transmission device based on multiple frequencies, including:
  • the first receiving module the first processing module, the first conversion module and the sending module; wherein,
  • a first receiving module configured to obtain data to be sent
  • the first processing module is used to perform binary conversion on the data to be sent to obtain binary data, divide the binary data into data to obtain at least one data fragment, and determine at least one data fragment according to the number of bits in each data fragment in at least one data fragment A sending frequency, according to the arrangement position of each data fragment in the binary data, determine the sending frequency corresponding to each data fragment in at least one sending frequency;
  • the first conversion module is configured to perform data conversion on each data fragment respectively according to a preset conversion table and a sending frequency corresponding to each data fragment to obtain at least one conversion result, wherein the conversion table records different Conversion results corresponding to data fragments at different sending frequencies, at least one conversion result corresponds to at least one data fragment one-to-one;
  • the sending module is configured to sequentially send each conversion result of the at least one conversion result to the data receiving end according to the sending frequency corresponding to each conversion result.
  • the embodiment of the present application provides a multi-frequency data receiving device, including:
  • the second receiving module, the second processing module, the second conversion module and the reduction module wherein,
  • the second receiving module is configured to receive at least one data to be converted from the data sending end, wherein each data to be converted in the at least one data to be converted includes a conversion result and a description file;
  • the second processing module is used to determine the sending frequency and sequence number corresponding to each conversion data according to the description file;
  • the second conversion module is used to perform inverse conversion on the conversion result corresponding to each conversion data according to the preset conversion table and the sending frequency of each conversion data to obtain at least one data fragment, wherein the conversion table records Different data fragments correspond to conversion results at different sending frequencies, and at least one data fragment corresponds to at least one conversion result;
  • the restore module is configured to arrange and combine at least one data slice according to the sequence number corresponding to each data slice in the at least one data slice to obtain original data.
  • the embodiment of the present application provides a multi-frequency-based data transmission device, including: a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that The electronic device executes the method as in the first aspect.
  • the embodiment of the present application provides a multi-frequency-based data receiving device, including: a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that The electronic device executes the method as in the second aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program causes a computer to execute the method of the first aspect and/or the second aspect.
  • the embodiment of the present application provides a computer program product
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program
  • the computer is operable to cause the computer to perform the first aspect and/or the second aspect Methods.
  • the conversion result can be used multiple times during data conversion. That is, the conversion results may correspond to different data fragments at different sending frequencies.
  • the transformation result can be reused, thereby reducing the complexity of the transformation table and transformation rules, effectively reducing the number and size of files transferred in network data transmission, and then improving the network transmission speed.
  • data transfers are performed by storage units such as memory units (RAM) that can handle bits at their original size, it is usually done with storage units at both the sending and receiving ends.
  • RAM memory units
  • the alignment operation of the data is realized, so that neither the sending end nor the receiving end needs to occupy additional memory, and the disk writing of data segmentation in the disk cluster is avoided. , indexing and other issues, and then further improve the network transmission speed.
  • FIG. 1 is a schematic diagram of a hardware structure of a multi-frequency-based data sending device or a multi-frequency-based data receiving device provided in an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a multi-frequency-based data transmission method provided in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for sequentially sending each conversion result in at least one conversion result to a data receiving end according to the sending frequency corresponding to each conversion result provided by the embodiment of the present application;
  • FIG. 4 is a schematic flowchart of a multi-frequency-based data receiving method provided in an embodiment of the present application
  • FIG. 5 is a block diagram of functional modules of a multi-frequency-based data transmission device provided in an embodiment of the present application.
  • FIG. 6 is a block diagram of functional modules of a multi-frequency-based data receiving device provided in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a multi-frequency-based data sending device provided in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a multi-frequency-based data receiving device provided in an embodiment of the present application.
  • an embodiment means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application.
  • the occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are independent or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
  • FIG. 1 is a schematic diagram of a hardware structure of a multi-frequency-based data sending device or a multi-frequency-based data receiving device provided in an embodiment of the present application.
  • the multi-frequency based data sending device or the multi-frequency based data receiving device includes at least one processor 101 , a communication line 102 , a memory 103 and at least one communication interface 104 .
  • the processor 101 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more An integrated circuit that controls the program execution of the program of this application.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication line 102 which may include a path, transmits information between the aforementioned components.
  • the communication interface 104 may be any device such as a transceiver (such as an antenna) for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (wireless local area networks, WLAN) and the like.
  • a transceiver such as an antenna
  • WLAN wireless local area networks
  • Memory 103 may be read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types that can store information and instructions
  • Type of dynamic storage device also can be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), read-only disc (compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by Any other medium accessed by a computer, but not limited to.
  • the memory 103 may exist independently and be connected to the processor 101 through the communication line 102 .
  • the memory 103 can also be integrated with the processor 101 .
  • the memory 103 provided in this embodiment of the present application may generally be non-volatile.
  • the memory 103 is used to store computer-executed instructions for implementing the solutions of the present application, and the execution is controlled by the processor 101 .
  • the processor 101 is configured to execute computer-executed instructions stored in the memory 103, so as to implement the methods provided in the following embodiments of the present application.
  • computer-executed instructions may also be referred to as application code, which is not specifically limited in the present application.
  • the processor 101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 1 .
  • the device for sending data based on multiple frequencies or the device for receiving data based on multiple frequencies may also include multiple processors, such as processor 101 and processor 107 in FIG. 1 .
  • processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the data sending device based on multi-frequency or the data receiving device based on multi-frequency may also include an output device 105 and input device 106 .
  • Output device 105 is in communication with processor 101 and may display information in a variety of ways.
  • the output device 105 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a cathode ray tube (cathode ray tube, CRT) display device, or a projector (projector) wait.
  • the input device 106 communicates with the processor 101 and can receive user input in various ways.
  • the input device 106 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
  • the above-mentioned multi-frequency-based data sending device or multi-frequency-based data receiving device may be a general-purpose device or a special-purpose device.
  • the embodiment of the present application does not limit the type of the multi-frequency data sending device or the multi-frequency data receiving device.
  • FIG. 2 is a schematic flowchart of a multi-frequency-based data sending method provided in an embodiment of the present application.
  • the multi-frequency data transmission method includes the following steps:
  • the number of division bits n may be determined, and then, the binary data is divided into at least one data segment with equal number of bits according to the number of division bits n.
  • n may be any integer greater than 1.
  • the case where n is equal to 2 will be taken as an example to describe the multi-frequency-based data sending method provided by this application.
  • n when n is equal to 2, it means that the number of division bits is set to 2.
  • the binary data can be divided into groups of 2 bits for data splitting.
  • the binary data is 11010101, and when the number of division digits is 2, it can be divided into [11, 01, 01, 01].
  • the number of split digits may also be a dynamic, cyclic value.
  • the number of split digits can be regarded as a split sequence [m, x, y], and then when splitting binary data, you can first split m bits, then split x bits, then split y bits, and then split m bits again , the binary data has been cyclically set to be divided. Specifically, when the sequence [1, 2, 3] is segmented and the binary data is 110101011010, the segmented result [1, 10, 101, 0, 11, 010] can be obtained.
  • the number of required sending frequencies may be determined according to the number of bits of each data fragment.
  • the first number may be the same as the number of bits of each data slice, that is, the first number is n.
  • the relationship between the first number k and the number of bits n of each data slice The relationship between can be expressed by formula 1:
  • the case where the first number is n will be taken as an example to describe the multi-frequency-based data sending method provided by the present application. Based on this, following the above example where n is equal to 2, it can be determined that the first number is also 2. Therefore, 2 transmission frequencies can be randomly selected from the preset transmission frequency library as the at least one transmission frequency.
  • the at least one transmission frequency obtained in step 204 may be randomly sorted, so that each data fragment is sequentially selected one of the sorted at least one transmission frequency according to the arrangement position in the binary data.
  • the sending frequency is used as the sending frequency corresponding to itself.
  • n 2
  • two sending frequencies are selected, named sending frequency A and sending frequency B respectively, and after sorting them, the sequence [sending frequency A, sending frequency B].
  • the binary data is 11010101, and the corresponding data slice sequence is [11, 01, 01, 01]. Based on this, it is determined that the first data fragment "11" corresponds to the transmission frequency A, the second data fragment "01” corresponds to the transmission frequency B, the third data fragment “01” corresponds to the transmission frequency A, and the fourth data fragment "01” corresponds to the transmission frequency A. Fragment "01" corresponds to transmission frequency B.
  • the conversion table records conversion results corresponding to different data fragments at different sending frequencies, wherein at least one conversion result is in one-to-one correspondence with at least one data fragment.
  • the data fragmentation sequence is the conversion result of [11, 01, 01, 01] at the corresponding sending frequency, as follows:
  • the conversion result sequence [1, 1, 0, 1] can be obtained.
  • the converted data only contains half of the original data bits, which reduces the size of the data to be sent by 50%, further improving network transmission s efficiency.
  • a method for sequentially sending each conversion result of at least one conversion result to the data receiving end according to the sending frequency corresponding to each conversion result is provided, as shown in FIG. 3 , the method includes:
  • the description file is used to record the corresponding arrangement position of each conversion result in the data to be sent and the name of the sending frequency corresponding to each conversion result, and at least one description file corresponds to at least one conversion result .
  • the description file may also include information such as file size, file name, and file format file hash value, wherein the file hash value can be used to compare the correctness of the decoded file to ensure data consistency before and after transmission .
  • FIG. 4 is a schematic flowchart of a multi-frequency-based data receiving method provided in an embodiment of the present application.
  • the data receiving method based on multi-frequency includes the following steps:
  • each data to be converted in the at least one data to be converted may include a conversion result and a description file.
  • the conversion table records conversion results corresponding to different data fragments at different sending frequencies, and at least one data fragment corresponds to at least one conversion result.
  • the multi-frequency-based data transmission method by binarizing the data to be sent, data segmentation is performed on the binarized data, and then according to the The number of bits per data slice determines at least one sending frequency. Then, according to the arrangement position of each data fragment in the binary data, the sending frequency corresponding to each data fragment is determined. Then, perform data conversion on each data segment according to the preset conversion table and the corresponding sending frequency of each data segment, and send the result of the data conversion to the data receiving end through the corresponding sending frequency. Therefore, in this application, by introducing multiple sending frequencies, the conversion result can be used multiple times during data conversion. That is, the conversion results may correspond to different data fragments at different sending frequencies.
  • the transformation result can be reused, thereby reducing the complexity of the transformation table and transformation rules, effectively reducing the number and size of files transferred in network data transmission, and then improving the network transmission speed.
  • a storage unit such as a memory unit (RAM)
  • RAM memory unit
  • it is usually done through the storage units at the sending and receiving ends.
  • the alignment operation of the data is realized, so that neither the sending end nor the receiving end needs to occupy additional memory, and the disk writing of data segmentation in the disk cluster is avoided. , indexing and other issues, and then further improve the network transmission speed.
  • FIG. 5 is a block diagram of functional modules of a multi-frequency-based data sending device provided in an embodiment of the present application.
  • the multi-frequency-based data sending device 500 includes: a first receiving module 501, a first processing module 502, a first conversion module 503 and a sending module 504; wherein:
  • the first receiving module 501 is configured to obtain data to be sent
  • the first processing module 502 is used to perform binary conversion on the data to be sent to obtain binary data, perform data segmentation on the binary data to obtain at least one data fragment, and determine at least one according to the number of digits of each data fragment in the data fragment.
  • Sending frequency according to the arrangement position of each data fragment in the binary data, determine the sending frequency corresponding to each data fragment in at least one sending frequency;
  • the first conversion module 503 is configured to perform data conversion on each data fragment respectively according to a preset conversion table and the sending frequency corresponding to each data fragment to obtain at least one conversion result, wherein the conversion table records different The conversion results corresponding to the data fragments at different sending frequencies, at least one conversion result corresponds to at least one data fragment one-to-one;
  • a sending module 504 configured to sequentially send each conversion result of the at least one conversion result to the data receiving end according to the sending frequency corresponding to each conversion result.
  • the first processing module 502 is specifically used for:
  • the first processing module 502 in terms of determining at least one transmission frequency according to the number of bits of each data fragment in at least one data fragment, is specifically configured to:
  • the sending module 504 in terms of sequentially sending each conversion result in at least one conversion result to the data receiving end according to the sending frequency corresponding to each conversion result, is specifically used for:
  • At least one sequence number is determined, wherein at least one sequence number corresponds to at least one conversion result
  • Each conversion data in the at least one conversion data is sequentially sent to the data receiving end according to the sending frequency corresponding to each conversion data.
  • the multi-frequency-based data receiving device 600 includes: a second receiving module 601, a second processing module 602, a second converting module 603 and a restoring module 604; wherein:
  • the second receiving module 601 is configured to receive at least one data to be converted from the data sending end, wherein each data to be converted in the at least one data to be converted includes a conversion result and a description file;
  • the second processing module 602 is configured to determine the sending frequency and serial number corresponding to each conversion data according to the description file;
  • the second conversion module 603 is configured to reversely convert the conversion results corresponding to each conversion data according to the preset conversion table and the sending frequency of each conversion data to obtain at least one data fragment, wherein the conversion table records Different data fragments correspond to conversion results at different sending frequencies, and at least one data fragment is in one-to-one correspondence with at least one conversion result;
  • the restore module 604 is configured to arrange and combine at least one data slice according to the sequence number corresponding to each data slice in the at least one data slice to obtain original data.
  • FIG. 7 is a schematic structural diagram of a multi-frequency-based data sending device provided in an embodiment of the present application.
  • the multi-frequency-based data sending device 700 includes a transceiver 701 , a processor 702 and a memory 703 . They are connected through a bus 704 .
  • the memory 703 is used to store computer programs and data, and can transmit the data stored in the memory 703 to the processor 702 .
  • the processor 702 is used to read the computer program in the memory 703 to perform the following operations:
  • the preset conversion table and the sending frequency corresponding to each data fragment data conversion is performed on each data fragment respectively to obtain at least one conversion result, wherein the conversion table records that different data fragments are sent in different For the conversion results corresponding to the frequency, at least one conversion result is in one-to-one correspondence with at least one data segment;
  • Each conversion result of the at least one conversion result is sequentially sent to the data receiving end according to the sending frequency corresponding to each conversion result.
  • the processor 702 in terms of dividing the binary data into data to obtain at least one data fragment, is specifically configured to perform the following operations:
  • the processor 702 in terms of determining at least one sending frequency according to the number of bits of each data slice in at least one data slice, the processor 702 is specifically configured to perform the following operations:
  • the processor 702 in terms of sequentially sending each of the at least one conversion result to the data receiving end according to the sending frequency corresponding to each conversion result, the processor 702 is specifically configured to perform the following operations:
  • At least one sequence number is determined, wherein at least one sequence number corresponds to at least one conversion result
  • Each conversion data in the at least one conversion data is sequentially sent to the data receiving end according to the sending frequency corresponding to each conversion data.
  • FIG. 8 is a schematic structural diagram of a multi-frequency-based data receiving device provided in an embodiment of the present application.
  • the multi-frequency-based data receiving device 800 includes a transceiver 801 , a processor 802 and a memory 803 . They are connected through a bus 804 .
  • the memory 803 is used to store computer programs and data, and can transmit the data stored in the memory 803 to the processor 802 .
  • the processor 802 is used to read the computer program in the memory 803 to perform the following operations:
  • each data to be converted in the at least one data to be converted includes a conversion result and a description file
  • the conversion results corresponding to each conversion data are respectively reverse-converted to obtain at least one data fragment.
  • the conversion table records that different data fragments are in different
  • the conversion result corresponding to the sending frequency, at least one data fragment corresponds to at least one conversion result;
  • the at least one data fragment is arranged and combined to obtain the original data.
  • the multi-frequency-based data sending device and the multi-frequency data receiving device in the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, palmtop computers, notebook computers, mobile phones, etc. Internet devices MID (Mobile Internet Devices, MID for short), robots or wearable devices, etc.
  • the above multi-frequency based data sending device and multi-frequency based data receiving device are just examples, not exhaustive, including but not limited to the above multi-frequency based data sending device and multi-frequency based data receiving device.
  • the multi-frequency data sending device and the multi-frequency data receiving device may also include: intelligent vehicle-mounted terminals, computer equipment, and the like.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any one of the above-mentioned method implementations based on Some or all steps of the multi-frequency data sending method and the multi-frequency data receiving method.
  • the storage medium may include a hard disk, a floppy disk, an optical disk, a magnetic tape, a magnetic disk, a flash memory, and the like.
  • the embodiments of the present application also provide a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the computer to execute the method as described in the above-mentioned method embodiment. Some or all steps of any multi-frequency-based data sending method and multi-frequency-based data receiving method.
  • the disclosed device may be implemented in other ways.
  • the device implementation described above is only illustrative.
  • the division of the units is only a logical function division.
  • multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented not only in the form of hardware, but also in the form of software program modules.
  • the integrated units may be stored in a computer-readable memory if implemented in the form of software program modules and sold or used as independent products. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the aforementioned memory includes: various media that can store program codes such as U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Communication Control (AREA)

Abstract

本申请公开了一种基于多频率的数据发送和接收方法、装置和设备,其中,数据发送方法包括:获取待发送数据;对待发送数据进行二进制转化,得到二进制数据;将二进制数据进行数据分割,得到至少一个数据分片;根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率;根据每个数据分片在二进制数据中的排列位置,在至少一个发送频率中确定每个数据分片对应的发送频率;根据预设的转化表,以及每个数据分片对应的发送频率,分别对每个数据分片进行数据转换,得到至少一个转化结果;将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端。

Description

基于多频率的数据发送和接收方法、装置和设备
本申请要求于2021年10月12日提交中国专利局、申请号为202111191391.6、申请名称为“基于多频率的数据发送和接收方法、装置和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及数据传输技术领域,具体涉及一种基于多频率的数据发送和接收方法、装置和设备。
背景技术
目前,在传输数据时,为了获取更高的传输效率,通常会将数据进行压缩或拆分为多个大小相同的子数据进行传输。但是,压缩技术通过会消耗大量的计算机资源进行大量计算来压缩数据,同时,由于现代路由器的带宽增加,在不压缩的情况下直接进行数据发送通常比将数据进行压缩后再发送花费的时间更少。而现有的数据拆分方式通常是根据传输的特定需求将数据拆分为等大小的若干个子数据分别发送,再在接收端进行组合。但是,实际上由于拆分后的子数据在磁盘集群中的磁盘写入、索引等问题,不仅对网络上的数据传输没有任何帮助,反而降低了网络上的数据传输速度。因此,当前基于压缩和拆分的数据发送方法通常无法提高网络上的数据传输速度,反而会导致数据传输速度变慢。
发明内容
为了解决现有技术中存在的上述问题,本申请实施方式提供了一种基于多频率的数据发送和接收方法、装置和设备,可以提高网络上的数据传输速度。
第一方面,本申请的实施方式提供了一种基于多频率的数据发送方法,包括:
获取待发送数据;
对待发送数据进行二进制转化,得到二进制数据;
将二进制数据进行数据分割,得到至少一个数据分片;
根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率;
根据每个数据分片在二进制数据中的排列位置,在至少一个发送频率中确定每个数据分片对应的发送频率;
根据预设的转化表,以及每个数据分片对应的发送频率,分别对每个数据分片进行数 据转换,得到至少一个转化结果,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个转化结果与至少一个数据分片一一对应;
将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端。
第二方面,本申请的实施方式提供了一种基于多频率的数据接收方法,包括:
从数据发送端接收至少一个待转化数据,其中,至少一个待转化数据中的每个待转化数据包括转化结果和描述文件;
根据描述文件确定对应每个转化数据的发送频率和序号;
根据预设的转化表,以及每个转化数据的发送频率,分别对每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个数据分片与至少一个转化结果一一对应;
根据至少一个数据分片中每个数据分片对应的序号,对至少一个数据分片进行排列组合,得到原始数据。
第三方面,本申请的实施方式提供了一种基于多频率的数据发送装置,包括:
第一接收模块、第一处理模块、第一转化模块和发送模块;其中,
第一接收模块,用于获取待发送数据;
第一处理模块,用于对待发送数据进行二进制转化,得到二进制数据,将二进制数据进行数据分割,得到至少一个数据分片,根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率,根据每个数据分片在二进制数据中的排列位置,在至少一个发送频率中确定每个数据分片对应的发送频率;
第一转化模块,用于根据预设的转化表,以及每个数据分片对应的发送频率,分别对每个数据分片进行数据转换,得到至少一个转化结果,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个转化结果与至少一个数据分片一一对应;
发送模块,用于将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端。
第四方面,本申请的实施方式提供了一种基于多频率的数据接收装置,包括:
第二接收模块、第二处理模块、第二转化模块和还原模块;其中,
第二接收模块,用于从数据发送端接收至少一个待转化数据,其中,至少一个待转化数据中的每个待转化数据包括转化结果和描述文件;
第二处理模块,用于根据描述文件确定对应每个转化数据的发送频率和序号;
第二转化模块,用于根据预设的转化表,以及每个转化数据的发送频率,分别对每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个数据分片与至少一个转化结果一一对应;
还原模块,用于根据至少一个数据分片中每个数据分片对应的序号,对至少一个数据分片进行排列组合,得到原始数据。
第五方面,本申请实施方式提供一种基于多频率的数据发送设备,包括:处理器,处理器与存储器相连,存储器用于存储计算机程序,处理器用于执行存储器中存储的计算机程序,以使得电子设备执行如第一方面的方法。
第六方面,本申请实施方式提供一种基于多频率的数据接收设备,包括:处理器,处理器与存储器相连,存储器用于存储计算机程序,处理器用于执行存储器中存储的计算机程序,以使得电子设备执行如第二方面的方法。
第七方面,本申请实施方式提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序使得计算机执行如第一方面和/或第二方面的方法。
第八方面,本申请实施方式提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机可操作来使计算机执行如第一方面和/或第二方面的方法。
实施本申请实施方式,具有如下有益效果:
在本申请实施方式中,通过将待发送的数据二进制化,对二进制化后的数据进行数据分割,继而根据分割得到的至少一个数据分片中的每个数据分片的位数,确定至少一个发送频率。再根据每个数据分片在二进制数据中的排列位置,确定每个数据分片对应的发送频率。然后,根据预设的转化表,和每个数据分片对应的发送频率,将每个数据分片进行数据转化,并将数据转化的结果通过对应的发送频率发送至数据接收端。由此,在本申请中,通过引入多个发送频率,使得在进行数据转化时,转化结果可以被多次利用。即,转化结果在不同的发送频率下,可以对应不同的数据分片。基于此,在实现对原始数据的精简的同时,使转化结果可复用,从而降低转化表和转化规则的复杂度,有效降低网络数据传输中传输文件的数量和大小,继而提升网络传输速度。此外,由于数据传输过程中,存储单元,例如内存单元(RAM)能够以原始大小处理位,因此,通常是通过发送端和接收 端的存储单元完成。而在本申请中,通过将待发送数据转化为二进制数据,实现了数据的对位操作,从而在发送端和接收端都不必占用额外的内存,避免了数据分割在磁盘集群中的磁盘写入、索引等问题,继而进一步提升了网络传输速度。
附图说明
为了更清楚地说明本申请实施方式中的技术方案,下面将对实施方式描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施方式提供的一种基于多频率的数据发送装置或基于多频率的数据接收装置的硬件结构示意图;
图2为本申请实施方式提供的一种基于多频率的数据发送方法的流程示意图;
图3为本申请实施方式提供的一种将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端的方法的流程示意图;
图4为本申请实施方式提供的一种基于多频率的数据接收方法的流程示意图;
图5为本申请实施方式提供的一种基于多频率的数据发送装置的功能模块组成框图;
图6为本申请实施方式提供的一种基于多频率的数据接收装置的功能模块组成框图;
图7为本申请实施方式提供的一种基于多频率的数据发送设备的结构示意图。
图8为本申请实施方式提供的一种基于多频率的数据接收设备的结构示意图。
具体实施方式
下面将结合本申请实施方式中的附图,对本申请实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本申请一部分实施方式,而不是全部的实施方式。基于本申请中的实施方式,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施方式,都属于本申请保护的范围。
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单 元。
在本文中提及“实施方式”意味着,结合实施方式描述的特定特征、结果或特性可以包含在本申请的至少一个实施方式中。在说明书中的各个位置出现该短语并不一定均是指相同的实施方式,也不是与其它实施方式互斥的独立的或备选的实施方式。本领域技术人员显式地和隐式地理解的是,本文所描述的实施方式可以与其它实施方式相结合。
首先,参阅图1,图1为本申请实施方式提供的一种基于多频率的数据发送装置或基于多频率的数据接收装置的硬件结构示意图。该基于多频率的数据发送装置或基于多频率的数据接收装置包括至少一个处理器101,通信线路102,存储器103以及至少一个通信接口104。
在本实施方式中,处理器101,可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信线路102,可以包括一通路,在上述组件之间传送信息。
通信接口104,可以是任何收发器一类的装置(如天线等),用于与其他设备或通信网络通信,例如以太网,RAN,无线局域网(wireless local area networks,WLAN)等。
存储器103,可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。
在本实施方式中,存储器103可以独立存在,通过通信线路102与处理器101相连接。存储器103也可以和处理器101集成在一起。本申请实施方式提供的存储器103通常可以具有非易失性。其中,存储器103用于存储执行本申请方案的计算机执行指令,并由处理器101来控制执行。处理器101用于执行存储器103中存储的计算机执行指令,从而实现本申请下述实施方式中提供的方法。
在可选的实施方式中,计算机执行指令也可以称之为应用程序代码,本申请对此不作具体限定。
在可选的实施方式中,处理器101可以包括一个或多个CPU,例如图1中的CPU0和CPU1。
在可选的实施方式中,基于多频率的数据发送装置或基于多频率的数据接收装置也可以包括多个处理器,例如图1中的处理器101和处理器107。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
在可选的实施方式中,若基于多频率的数据发送装置或基于多频率的数据接收装置为服务器,则基于多频率的数据发送装置或基于多频率的数据接收装置还可以包括输出设备105和输入设备106。输出设备105和处理器101通信,可以以多种方式来显示信息。例如,输出设备105可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备106和处理器101通信,可以以多种方式接收用户的输入。例如,输入设备106可以是鼠标、键盘、触摸屏设备或传感设备等。
上述的基于多频率的数据发送装置或基于多频率的数据接收装置可以是一个通用设备或者是一个专用设备。本申请实施方式不限定基于多频率的数据发送装置或基于多频率的数据接收装置的装置类型。
以下,将对本申请所公开的基于多频率的数据发送方法进行说明:
参阅图2,图2为本申请实施方式提供的一种基于多频率的数据发送方法的流程示意图。该基于多频率的数据发送方法包括以下步骤:
201:获取待发送数据。
202:对待发送数据进行二进制转化,得到二进制数据。
203:将二进制数据进行数据分割,得到至少一个数据分片。
在本实施方式中,首先,可以确定分割位数n,然后,将该二进制数据按照分割位数n分割为位数相等的至少一个数据分片。示例性的,n可以为任意大于1的整数,在本实施方式中,将以n等于2的情况为例,对本申请所提供的基于多频率的数据发送方法进行说明。
具体而言,当n等于2时,说明分割位数设置为2,此时,可以将二进制数据每2位分成一组,进行数据拆分。例如,二进制数据为11010101,在分割位数为2的情况下,可以分割为【11,01,01,01】。
在可选的实施方式中,分割位数也可以是一个动态的、循环的数值。例如,可以将分割位数视为一个分割序列【m,x,y】,继而对二进制数据进行数据分割时,可以先分割m位,再分割x位,再分割y位,然后再次分割m位,一直循环置该二进制数据被分割完成。具体而言,当分割序列【1,2,3】,二进制数据为110101011010时,可以得到分割结果【1,10,101,0,11,010】。
204:根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率。
在本实施方式中,首先可以根据每个数据分片的位数,确定需要的发送频率的数量,即第一数量。示例性的,该第一数量可以与每个数据分片的位数相同,即第一数量为n。当然,该第一数量和每个数据分片的位数之间也可以是其他函数关系,例如,在一种可能的实施方式中,第一数量k与每个数据分片的位数n之间的关系可以通过公式①表示:
k=2 n.........①
在本实施方式中,将以第一数量为n的情况为例,对本申请所提供的基于多频率的数据发送方法进行说明。基于此,沿用上述n等于2的示例,可以确定第一数量也为2,因此,可以在预设的发送频率库中随机选择2个发送频率,作为该至少一个发送频率。
205:根据每个数据分片在二进制数据中的排列位置,在至少一个发送频率中确定每个数据分片对应的发送频率。
在本实施方式中,可以将通过步骤204得到的至少一个发送频率进行随机排序,从而令每个数据分片按照在二进制数据中的排列位置,依次循环选取排序后的至少一个发送频率中的一个发送频率作为自身对应的发送频率。
具体而言,沿用上述n等于2的示例,在该示例中,选出了2个发送频率,分别命名为发送频率A和发送频率B,对其进行排序后得到序列【发送频率A,发送频率B】。二进制数据11010101,对应的数据分片序列为【11,01,01,01】。基于此,确定第一个数据分片“11”对应发送频率A,第二个数据分片“01”对应发送频率B,第三个数据分片“01”对应发送频率A,第四个数据分片“01”对应发送频率B。
206:根据预设的转化表,以及每个数据分片对应的发送频率,分别对每个数据分片进行数据转换,得到至少一个转化结果。
在本实施方式中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,其中,至少一个转化结果与至少一个数据分片一一对应。
具体而言,沿用上述n等于2的示例,在该示例中,转化表如表1所示:
表1
  发送频率A 发送频率B
11 1 0
00 0 1
01 0 1
10 1 0
根据该表查询,即可确定数据分片序列为【11,01,01,01】在各自对应的发送频率下的转化结果,具体如下:
11=>1(发送频率A);
01=>1(发送频率B);
01=>0(发送频率A);
01=>1(发送频率B);
由此,即可得到转化结果序列【1,1,0,1】,同时,转化完成的数据仅包含原始数据位的一半,使待发送数据的大小缩小了50%,进一步的提升了网络传输的效率。
207:将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端。
在本实施方式中,提供了一种将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端的方法,如图3所示,该方法包括:
301:根据每个转化结果对应的数据分片在二进制数据中的排列位置,确定至少一个序号。
在本实施方式中,至少一个序号和至少一个转化结果一一对应。具体而言,沿用上述示例,对于转化结果序列【1,1,0,1】,其中,位于第一位的转化结果“1”的序号为1,位于第二位的转化结果“1”的序号为2,位于第三位的转化结果“0”的序号为3,位于第四位的转化结果“1”的序号为4。
302:根据每个转化结果对应的序号和发送频率,生成至少一个描述文件。
在本实施方式中,该描述文件用于记录对应的每个转化结果在待发送数据中的排列位 置和每个转化结果对应的发送频率的名称,至少一个描述文件和至少一个转化结果一一对应。
示例性的,该描述文件还可以包括文件大小、文件名、文件格式文件哈希值等信息,其中,文件哈希值可以用于比较解码后文件的正确性,以保证传输前后数据的一致性。
303:将每个转化结果和每个转化结果对应的描述文件进行封装处理,得到至少一个转化数据。
304:将至少一个转化数据中的每个转化数据按照每个转化数据对应的发送频率依次发送至数据接收端。
此外,参阅图4,图4为本申请实施方式提供的一种基于多频率的数据接收方法的流程示意图。该基于多频率的数据接收方法包括以下步骤:
401:从数据发送端接收至少一个待转化数据。
在本实施方式中,该至少一个待转化数据中的每个待转化数据可以包括转化结果和描述文件。
402:根据描述文件确定对应每个转化数据的发送频率和序号。
403:根据预设的转化表,以及每个转化数据的发送频率,分别对每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片。
在本实施方式中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个数据分片与至少一个转化结果一一对应。
404:根据至少一个数据分片中每个数据分片对应的序号,对至少一个数据分片进行排列组合,得到原始数据。
综上所述,本发明所提供的基于多频率的数据发送方法中,通过将待发送的数据二进制化,对二进制化后的数据进行数据分割,继而根据分割得到的至少一个数据分片中的每个数据分片的位数,确定至少一个发送频率。再根据每个数据分片在二进制数据中的排列位置,确定每个数据分片对应的发送频率。然后,根据预设的转化表,和每个数据分片对应的发送频率,将每个数据分片进行数据转化,并将数据转化的结果通过对应的发送频率发送至数据接收端。由此,在本申请中,通过引入多个发送频率,使得在进行数据转化时,转化结果可以被多次利用。即,转化结果在不同的发送频率下,可以对应不同的数据分片。基于此,在实现对原始数据的精简的同时,使转化结果可复用,从而降低转化表和转化规则的复杂度,有效降低网络数据传输中传输文件的数量和大小,继而提升网络传输速度。 此外,由于数据传输过程中,存储单元,例如内存单元(RAM)能够以原始大小处理位,因此,通常是通过发送端和接收端的存储单元完成。而在本申请中,通过将待发送数据转化为二进制数据,实现了数据的对位操作,从而在发送端和接收端都不必占用额外的内存,避免了数据分割在磁盘集群中的磁盘写入、索引等问题,继而进一步提升了网络传输速度。
参阅图5,图5为本申请实施方式提供的一种基于多频率的数据发送装置的功能模块组成框图。如图5所示,该基于多频率的数据发送装置500包括:第一接收模块501、第一处理模块502、第一转化模块503和发送模块504;其中:
第一接收模块501,用于获取待发送数据;
第一处理模块502,用于对待发送数据进行二进制转化,得到二进制数据,将二进制数据进行数据分割,得到至少一个数据分片,根据数据分片中每个数据分片的位数,确定至少一个发送频率,根据每个数据分片在二进制数据中的排列位置,在至少一个发送频率中确定每个数据分片对应的发送频率;
第一转化模块503,用于根据预设的转化表,以及每个数据分片对应的发送频率,分别对每个数据分片进行数据转换,得到至少一个转化结果,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个转化结果与至少一个数据分片一一对应;
发送模块504,用于将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端。
在本发明的实施方式中,在将二进制数据进行数据分割,得到至少一个数据分片方面,第一处理模块502,具体用于:
确定分割位数n;
根据分割位数n,将二进制数据分割为至少一个数据分片,其中,至少一个数据分片中的每个数据分片的位数相同,每个数据分片的位数为n。
在本发明的实施方式中,在根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率方面,第一处理模块502,具体用于:
根据每个数据分片的位数,确定第一数量,其中,第一数量与每个数据分片的位数相同;
在预设的发送频率库中随机选择第一数量的发送频率,作为至少一个发送频率。
在本发明的实施方式中,在将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端方面,发送模块504,具体用于:
根据每个转化结果对应的数据分片在二进制数据中的排列位置,确定至少一个序号,其中,至少一个序号和至少一个转化结果一一对应;
根据每个转化结果对应的序号和发送频率,生成至少一个描述文件,其中,描述文件用于记录对应的每个转化结果在待发送数据中的排列位置和每个转化结果对应的发送频率的名称,至少一个描述文件和至少一个转化结果一一对应;
将每个转化结果和每个转化结果对应的描述文件进行封装处理,得到至少一个转化数据;
将至少一个转化数据中的每个转化数据按照每个转化数据对应的发送频率依次发送至数据接收端。
同时,参阅图6,图6为本申请实施方式提供的一种基于多频率的数据接收装置的功能模块组成框图。如图6所示,该基于多频率的数据接收装置600包括:第二接收模块601、第二处理模块602、第二转化模块603和还原模块604;其中:
第二接收模块601,用于从数据发送端接收至少一个待转化数据,其中,至少一个待转化数据中的每个待转化数据包括转化结果和描述文件;
第二处理模块602,用于根据描述文件确定对应每个转化数据的发送频率和序号;
第二转化模块603,用于根据预设的转化表,以及每个转化数据的发送频率,分别对每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个数据分片与至少一个转化结果一一对应;
还原模块604,用于根据至少一个数据分片中每个数据分片对应的序号,对至少一个数据分片进行排列组合,得到原始数据。
参阅图7,图7为本申请实施方式提供的一种基于多频率的数据发送设备的结构示意图。如图7所示,该基于多频率的数据发送设备700包括收发器701、处理器702和存储器703。它们之间通过总线704连接。存储器703用于存储计算机程序和数据,并可以将存储器703存储的数据传输给处理器702。
处理器702用于读取存储器703中的计算机程序执行以下操作:
获取待发送数据;
对待发送数据进行二进制转化,得到二进制数据;
将二进制数据进行数据分割,得到至少一个数据分片;
根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率;
根据每个数据分片在二进制数据中的排列位置,在至少一个发送频率中确定每个数据分片对应的发送频率;
根据预设的转化表,以及每个数据分片对应的发送频率,分别对每个数据分片进行数据转换,得到至少一个转化结果,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个转化结果与至少一个数据分片一一对应;
将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端。
在本发明的实施方式中,在将二进制数据进行数据分割,得到至少一个数据分片方面,处理器702,具体用于执行以下操作:
确定分割位数n;
根据分割位数n,将二进制数据分割为至少一个数据分片,其中,至少一个数据分片中的每个数据分片的位数相同,每个数据分片的位数为n。
在本发明的实施方式中,在根据至少一个数据分片中每个数据分片的位数,确定至少一个发送频率方面,处理器702,具体用于执行以下操作:
根据每个数据分片的位数,确定第一数量,其中,第一数量与每个数据分片的位数相同;
在预设的发送频率库中随机选择第一数量的发送频率,作为至少一个发送频率。
在本发明的实施方式中,在将至少一个转化结果中的每个转化结果按照每个转化结果对应的发送频率依次发送至数据接收端方面,处理器702,具体用于执行以下操作:
根据每个转化结果对应的数据分片在二进制数据中的排列位置,确定至少一个序号,其中,至少一个序号和至少一个转化结果一一对应;
根据每个转化结果对应的序号和发送频率,生成至少一个描述文件,其中,描述文件用于记录对应的每个转化结果在待发送数据中的排列位置和每个转化结果对应的发送频率的名称,至少一个描述文件和至少一个转化结果一一对应;
将每个转化结果和每个转化结果对应的描述文件进行封装处理,得到至少一个转化数 据;
将至少一个转化数据中的每个转化数据按照每个转化数据对应的发送频率依次发送至数据接收端。
同时,参阅图8,图8为本申请实施方式提供的一种基于多频率的数据接收设备的结构示意图。如图8所示,该基于多频率的数据接收设备800包括收发器801、处理器802和存储器803。它们之间通过总线804连接。存储器803用于存储计算机程序和数据,并可以将存储器803存储的数据传输给处理器802。
处理器802用于读取存储器803中的计算机程序执行以下操作:
从数据发送端接收至少一个待转化数据,其中,至少一个待转化数据中的每个待转化数据包括转化结果和描述文件;
根据描述文件确定对应每个转化数据的发送频率和序号;
根据预设的转化表,以及每个转化数据的发送频率,分别对每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片,其中,转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,至少一个数据分片与至少一个转化结果一一对应;
根据至少一个数据分片中每个数据分片对应的序号,对至少一个数据分片进行排列组合,得到原始数据。
应理解,本申请中的基于多频率的数据发送装置和基于多频率的数据接收装置可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备MID(Mobile Internet Devices,简称:MID)、机器人或穿戴式设备等。上述基于多频率的数据发送装置和基于多频率的数据接收装置仅是举例,而非穷举,包含但不限于上述基于多频率的数据发送装置和基于多频率的数据接收装置。在实际应用中,基于多频率的数据发送装置和基于多频率的数据接收装置还可以包括:智能车载终端、计算机设备等等。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件结合硬件平台的方式来实现。基于这样的理解,本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施方式或者实施方式的某些部分所述的 方法。
因此,本申请实施方式还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现如上述方法实施方式中记载的任何一种基于多频率的数据发送方法和基于多频率的数据接收方法的部分或全部步骤。例如,所述存储介质可以包括硬盘、软盘、光盘、磁带、磁盘、优盘、闪存等。
本申请实施方式还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施方式中记载的任何一种基于多频率的数据发送方法和基于多频率的数据接收方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施方式,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施方式均属于可选的实施方式,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施方式中,对各个实施方式的描述都各有侧重,某个实施方式中没有详述的部分,可以参见其他实施方式的相关描述。
在本申请所提供的几个实施方式中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。
另外,在本申请各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可 以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施方式的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施方式进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施方式的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (10)

  1. 一种基于多频率的数据发送方法,其特征在于,所述方法应用于数据发送端,所述方法包括:
    获取待发送数据;
    对所述待发送数据进行二进制转化,得到二进制数据;
    将所述二进制数据进行数据分割,得到至少一个数据分片;
    根据所述至少一个数据分片中每个数据分片的位数,确定至少一个发送频率;
    根据所述每个数据分片在所述二进制数据中的排列位置,在所述至少一个发送频率中确定所述每个数据分片对应的发送频率;
    根据预设的转化表,以及所述每个数据分片对应的发送频率,分别对所述每个数据分片进行数据转换,得到至少一个转化结果,其中,所述转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,所述至少一个转化结果与所述至少一个数据分片一一对应;
    将所述至少一个转化结果中的每个转化结果按照所述每个转化结果对应的发送频率依次发送至数据接收端。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述二进制数据进行数据分割,得到至少一个数据分片,包括:
    确定分割位数n;
    根据所述分割位数n,将所述二进制数据分割为所述至少一个数据分片,其中,所述至少一个数据分片中的每个数据分片的位数相同,所述每个数据分片的位数为n,n为大于1的整数。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述至少一个数据分片中每个数据分片的位数,确定至少一个发送频率,包括:
    根据所述每个数据分片的位数,确定第一数量,其中,所述第一数量与所述每个数据分片的位数相同;
    在预设的发送频率库中随机选择所述第一数量的发送频率,作为所述至少一个发送频率。
  4. 根据权利要求1-3中任意一项所述的方法,其特征在于,所述将所述至少一个转化结果中的每个转化结果按照所述每个转化结果对应的发送频率依次发送至数据接收端,包括:
    根据所述每个转化结果对应的数据分片在所述二进制数据中的排列位置,确定至少一个序号,其中,所述至少一个序号和所述至少一个转化结果一一对应;
    根据所述每个转化结果对应的序号和发送频率,生成至少一个描述文件,其中,所述描述文件用于记录对应的所述每个转化结果在所述待发送数据中的排列位置和所述每个转化结果对应的发送频率的名称,所述至少一个描述文件和所述至少一个转化结果一一对应;
    将所述每个转化结果和所述每个转化结果对应的描述文件进行封装处理,得到至少一个转化数据;
    将所述至少一个转化数据中的每个转化数据按照所述每个转化数据对应的发送频率依次发送至所述数据接收端。
  5. 一种基于多频率的数据接收方法,其特征在于,所述方法应用于数据接收端,所述方法包括:
    从所述数据发送端接收至少一个待转化数据,其中,所述至少一个待转化数据中的每个待转化数据包括转化结果和描述文件;
    根据所述描述文件确定对应所述每个转化数据的发送频率和序号;
    根据预设的转化表,以及所述每个转化数据的发送频率,分别对所述每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片,其中,所述转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,所述至少一个数据分片与所述至少一个转化结果一一对应;
    根据所述至少一个数据分片中每个数据分片对应的序号,对所述至少一个数据分片进行排列组合,得到原始数据。
  6. 一种基于多频率的数据发送装置,其特征在于,
    所述装置包括:第一接收模块、第一处理模块、第一转化模块和发送模块;其中
    所述第一接收模块,用于获取待发送数据;
    所述第一处理模块,用于对所述待发送数据进行二进制转化,得到二进制数据,将所述二进制数据进行数据分割,得到至少一个数据分片,根据所述至少一个数据分片中每个数据分片的位数,确定至少一个发送频率,根据所述每个数据分片在所述二进制数据中的排列位置,在所述至少一个发送频率中确定所述每个数据分片对应的发送频率;
    所述第一转化模块,用于根据预设的转化表,以及所述每个数据分片对应的发送频率,分别对所述每个数据分片进行数据转换,得到至少一个转化结果,其中,所述转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,所述至少一个转化结果与所述至少一个数据分片一一对应;
    所述发送模块,用于将所述至少一个转化结果中的每个转化结果按照所述每个转化结果对应的发送频率依次发送至数据接收端。
  7. 一种基于多频率的数据接收装置,其特征在于,
    所述装置包括:第二接收模块、第二处理模块、第二转化模块和还原模块;其中
    所述第二接收模块,用于从所述数据发送端接收至少一个待转化数据,其中,所述至少一个待转化数据中的每个待转化数据包括转化结果和描述文件;
    所述第二处理模块,用于根据所述描述文件确定对应所述每个转化数据的发送频率和序号;
    所述第二转化模块,用于根据预设的转化表,以及所述每个转化数据的发送频率,分别对所述每个转化数据对应的转化结果进行逆转换,得到至少一个数据分片,其中,所述转化表记录了不同的数据分片在不同的发送频率下对应的转化结果,所述至少一个数据分片与所述至少一个转化结果一一对应;
    所述还原模块,用于根据所述至少一个数据分片中每个数据分片对应的序号,对所述至少一个数据分片进行排列组合,得到原始数据。
  8. 一种基于多频率的数据发送设备,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述一个或多个程序包括用于执行权利要求1-4任一项方法中的步骤的指令。
  9. 一种基于多频率的数据接收设备,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述一个或多个程序包括用于执行权利要求5中的步骤的指令。
  10. 一种可读计算机存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现如权利要求1-5任一项所述的方法。
PCT/CN2022/120526 2021-10-12 2022-09-22 基于多频率的数据发送和接收方法、装置和设备 WO2023061180A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111191391.6A CN114039698A (zh) 2021-10-12 2021-10-12 基于多频率的数据发送和接收方法、装置和设备
CN202111191391.6 2021-10-12

Publications (1)

Publication Number Publication Date
WO2023061180A1 true WO2023061180A1 (zh) 2023-04-20

Family

ID=80141196

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120526 WO2023061180A1 (zh) 2021-10-12 2022-09-22 基于多频率的数据发送和接收方法、装置和设备

Country Status (2)

Country Link
CN (1) CN114039698A (zh)
WO (1) WO2023061180A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039698A (zh) * 2021-10-12 2022-02-11 深圳智慧林网络科技有限公司 基于多频率的数据发送和接收方法、装置和设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150382352A1 (en) * 2013-11-20 2015-12-31 Cyborg Inc. Variable Frequency Data Transmission
CN105281877A (zh) * 2014-07-14 2016-01-27 碁晔科技股份有限公司 宽频式多声波频段传递数据方法及其系统
CN107645343A (zh) * 2016-07-20 2018-01-30 阿里巴巴集团控股有限公司 基于声波的数据发送/接收方法及数据传输系统
CN108988958A (zh) * 2018-08-20 2018-12-11 广东工业大学 一种声波通信方法与装置
CN111865952A (zh) * 2020-07-10 2020-10-30 腾讯音乐娱乐科技(深圳)有限公司 数据处理方法、装置、存储介质及电子设备
CN114039698A (zh) * 2021-10-12 2022-02-11 深圳智慧林网络科技有限公司 基于多频率的数据发送和接收方法、装置和设备
CN114064308A (zh) * 2021-10-12 2022-02-18 深圳智慧林网络科技有限公司 基于列式数据扫描的多数据发送和接收方法、装置和设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003043246A1 (en) * 2001-10-24 2003-05-22 Larson Mykel G System and method for transmitting and storing data using an enhanced encoding system
JP4005400B2 (ja) * 2002-04-10 2007-11-07 富士通株式会社 送信フォーマット組み合わせ情報選択方法及び移動端末装置
KR102659349B1 (ko) * 2016-12-13 2024-04-19 에스케이텔레콤 주식회사 데이터 압축 장치 및 방법
CN112131049A (zh) * 2020-09-24 2020-12-25 平安科技(深圳)有限公司 基于云存储的数据存储方法、装置、计算机设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150382352A1 (en) * 2013-11-20 2015-12-31 Cyborg Inc. Variable Frequency Data Transmission
CN105281877A (zh) * 2014-07-14 2016-01-27 碁晔科技股份有限公司 宽频式多声波频段传递数据方法及其系统
CN107645343A (zh) * 2016-07-20 2018-01-30 阿里巴巴集团控股有限公司 基于声波的数据发送/接收方法及数据传输系统
CN108988958A (zh) * 2018-08-20 2018-12-11 广东工业大学 一种声波通信方法与装置
CN111865952A (zh) * 2020-07-10 2020-10-30 腾讯音乐娱乐科技(深圳)有限公司 数据处理方法、装置、存储介质及电子设备
CN114039698A (zh) * 2021-10-12 2022-02-11 深圳智慧林网络科技有限公司 基于多频率的数据发送和接收方法、装置和设备
CN114064308A (zh) * 2021-10-12 2022-02-18 深圳智慧林网络科技有限公司 基于列式数据扫描的多数据发送和接收方法、装置和设备

Also Published As

Publication number Publication date
CN114039698A (zh) 2022-02-11

Similar Documents

Publication Publication Date Title
WO2023061177A1 (zh) 基于列式数据扫描的多数据发送和接收方法、装置和设备
CN108197324B (zh) 用于存储数据的方法和装置
CN110489440B (zh) 数据查询方法和装置
US20200274943A1 (en) Data Processing Method and Apparatus, Server, and Controller
WO2014173151A1 (en) Method, device and terminal for data processing
WO2017128632A1 (zh) 一种图像压缩方法、图像重构方法、装置及系统
WO2023061180A1 (zh) 基于多频率的数据发送和接收方法、装置和设备
CN111880967A (zh) 云场景下的文件备份方法、装置、介质和电子设备
CN115567589B (zh) Json数据的压缩传输方法、装置、设备及存储介质
US20200204688A1 (en) Picture book sharing method and apparatus and system using the same
WO2021258512A1 (zh) 数据的聚合处理装置、方法和存储介质
WO2021027331A1 (zh) 基于图数据的全量关系计算方法、装置、设备及存储介质
US11190620B2 (en) Methods and electronic devices for data transmission and reception
CN114742000A (zh) 基于FPGA集群的SoC芯片验证系统、验证方法、装置
CN109710502B (zh) 日志传输方法、装置及存储介质
WO2023051319A1 (zh) 基于多数据对齐的数据发送和接收方法、装置和设备
CN113691466B (zh) 一种数据的传输方法、智能网卡、计算设备及存储介质
CN107643906B (zh) 数据处理方法及装置
CN115905168B (zh) 基于数据库的自适应压缩方法和装置、设备、存储介质
CN111858586A (zh) 一种数据处理的方法和装置
WO2023071893A1 (zh) 一种基于三种模式的数据压缩方法和数据解压方法
WO2023016407A1 (zh) 数据传输方法、系统、装置及设备
CN113485951B (zh) 一种基于fpga的dma读操作实现方法、fpga设备以及通信系统
CN116540938A (zh) 数据读取方法、装置、分布式存储系统、设备和存储介质
EP4142258A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22880120

Country of ref document: EP

Kind code of ref document: A1