WO2022142033A1 - 数据传输方法、装置、电子设备及可读存储介质 - Google Patents

数据传输方法、装置、电子设备及可读存储介质 Download PDF

Info

Publication number
WO2022142033A1
WO2022142033A1 PCT/CN2021/091391 CN2021091391W WO2022142033A1 WO 2022142033 A1 WO2022142033 A1 WO 2022142033A1 CN 2021091391 W CN2021091391 W CN 2021091391W WO 2022142033 A1 WO2022142033 A1 WO 2022142033A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transmitted
transmission
encoded data
receiving
Prior art date
Application number
PCT/CN2021/091391
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 WO2022142033A1 publication Critical patent/WO2022142033A1/zh

Links

Definitions

  • the present application relates to the field of transmission protocols, and in particular, to a data transmission method, apparatus, electronic device, and readable storage medium.
  • a data transmission method provided by this application includes:
  • the present application also provides a data transmission device, the device comprising:
  • the data processing module is used for receiving the transmission request and obtaining the data to be transmitted, and correspondingly encodes the data to be transmitted according to the network bandwidth in the transmission request to obtain the encoded data; Preprocessing to get the object to be transmitted;
  • a data transmission module configured to construct a transmission channel, and use the transmission channel to transmit the object to be transmitted to a preset receiving end to obtain the receiving object;
  • the data receiving module is used for identifying and restoring the receiving object to obtain the received data.
  • the present application also provides an electronic device, the electronic device comprising:
  • the processor executes the computer program stored in the memory to realize the following steps:
  • the present application also provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is executed by a processor in an electronic device to implement the following steps:
  • FIG. 1 is a schematic flowchart of a data transmission method provided by an embodiment of the present application
  • FIG. 2 is a schematic block diagram of a data transmission device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an internal structure of an electronic device implementing a data transmission method provided by an embodiment of the present application
  • the embodiments of the present application provide a data transmission method.
  • the execution body of the data transmission method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal.
  • the data transmission method can be executed by software or hardware installed on the terminal device or the server device, and the software can be a blockchain platform.
  • the server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
  • the data transmission method includes:
  • the transmission request is data transmission request information, including: network bandwidth for data transmission and data transmission parameters, and the transmission parameters are the address information of the transmission client and the data receiving client, including: IP address and port information.
  • the data to be transmitted is the multimedia data collected by the data acquisition device and needs to be transmitted, including one or more of audio data and video data. Further, in order to reduce the data transmission speed in the data transmission process, the embodiment of the present application encodes the data to be transmitted, compresses and reduces redundant information by encoding the data to be transmitted, and improves the speed of subsequent data transmission.
  • the collected data to be transmitted may be coded according to the set coding rate.
  • the set coding rate is proportional to the amount of data encoded in a unit time, and different amounts of data require different network bandwidths, when the network bandwidth that the data needs to occupy exceeds the actual network bandwidth, it will cause transmission delays. Therefore, in order to make the data transmission have a small delay, the set coding rate can also be adjusted according to the real-time change of the network state.
  • the embodiment of the present application calculates the difference between the network bandwidth and the data capacity of the data to be transmitted, uses the difference as an encoding bit rate, and encodes the data to be transmitted according to the encoding bit rate, to obtain the encoded data.
  • the embodiments of the present application there may be various ways of encoding the data to be transmitted.
  • the encoding methods will also be different. Different encoding methods can encode data of corresponding types. Therefore, , the embodiment of the present application encodes the data of the type corresponding to the encoding method in the data to be transmitted by using the preset encoding method according to the encoding bit rate, and obtains the encoded data.
  • alphabet encoding can encode audio data
  • h264 The encoding can encode video data, for example: the data to be transmitted includes video data and audio data, and the encoding bit rate is A, and the video data in the data to be transmitted is encoded with a bit rate of A by using the h264 encoding method.
  • the alphabet encoding method performs data encoding on the audio data in the data to be transmitted with a code rate of A, and summarizes the encoded video data and audio data to obtain the encoded data.
  • the embodiment of the present application preprocesses the encoded data according to the data capacity of the encoded data, and obtains Object to be transferred.
  • preprocessing the encoded data according to the data capacity of the encoded data to obtain the object to be transmitted includes: when the data capacity of the encoded data is less than or equal to the preset data capacity threshold, The encoded data is used as a transmission object, and further, in order to facilitate the sorting of the received data after data transmission, a preset first object label is used to mark the to-be-transmitted object to obtain the standard to-be-transmitted object; When the data is larger than the preset data capacity threshold, the encoded data is segmented and marked to obtain the object to be transmitted, and further, in order to facilitate the sorting and restoration of the received data after the data transmission, the preset second object tag is used The object to be transmitted is marked to obtain the standard object to be transmitted.
  • performing fragment marking on the encoded data to obtain the object to be transmitted includes: performing fragmentation and id index marking on the encoded data according to a preset fragmentation length, Obtain the fragmented data set, and determine the fragmented data set as the object to be transmitted; for example: the size of the encoded data A is 5T, and the preset fragment length is 1T, then the encoded data A can be sequentially divided into data Block A ⁇ 0, data block A ⁇ 1, data block A ⁇ 2, data block A ⁇ 3, and data block A ⁇ 4 have a total of 5 data blocks, where A ⁇ 0 is the id index of the fragmented data, and A represents the fragmented data.
  • the id of the shard data, 0 indicates the order of sharding
  • the shard data A ⁇ 0, A ⁇ 1, A ⁇ 2, A ⁇ 3, and A ⁇ 4 form the sharded data set, which is marked by the id index of the sharded data, It is convenient for the data receiving terminal to perform sequential identification and combination after receiving the fragmented data.
  • a data transmission channel needs to be constructed to transmit the object to be transmitted.
  • the embodiment of the present application extracts the transmission parameters in the transmission request, uses the transmission parameters to replace the corresponding parameters in the transmission protocol, and obtains the data transmission channel, where the transmission protocol is SCTP (Stream Control Protocol). Transmission Protocol, stream control transmission protocol), further, when the data transmission terminal is a browser, the transmission protocol may also be a data transmission protocol of the WebRTC interface in the browser.
  • SCTP Stream Control Protocol
  • the transmission protocol may also be a data transmission protocol of the WebRTC interface in the browser.
  • the object to be transmitted is transmitted to a preset receiving end by using the transmission channel to obtain the receiving object.
  • data is dynamically encoded and transmitted according to the data transmission bandwidth, and at the same time, data fragmentation transmission is used to break through the transmission limitation of the data transmission terminal, thereby improving the efficiency of data transmission and reducing the delay of data transmission.
  • the receiving object in order to ensure the privacy of data, may be stored in a blockchain node.
  • the transmission process will not affect the label corresponding to the transmission object, and the data in the receiving object is not the final received data. Therefore, performing an identification and restoration operation on the receiving object to obtain the received data, including: identifying The label corresponding to the receiving object, when the label corresponding to the receiving object is the first object label, the data in the receiving object is used as the receiving data; when the label corresponding to the receiving object is the When the second object tag is used, the received data is obtained by sequentially combining all the fragmented data contained in the received object according to the ID index corresponding to each fragmented data.
  • the receiving object only contains data A, the label corresponding to the receiving object is the first object label, then the data A is the receiving data; the label corresponding to the receiving object is the second object label, so
  • the receiving object includes data A ⁇ 1 and A ⁇ 0, and the corresponding data is combined according to the order of the id index A ⁇ 0 and A ⁇ 1 to obtain the received data.
  • FIG. 2 it is a functional block diagram of the data transmission device of the present application.
  • the data transmission apparatus 100 described in this application can be installed in an electronic device.
  • the data transmission device may include a data processing module 101, a data transmission module 102, and a data receiving module 103.
  • the modules described in the present invention may also be called units, which refer to a type of data that can be processed by an electronic device processor.
  • each module/unit is as follows:
  • the data processing module 101 is configured to receive a transmission request and obtain the data to be transmitted, perform corresponding encoding on the data to be transmitted according to the network bandwidth in the transmission request, and obtain the encoded data; encode the data according to the data capacity of the encoded data.
  • the data is preprocessed to obtain the object to be transmitted.
  • the transmission request is data transmission request information, including: network bandwidth for data transmission and data transmission parameters, and the transmission parameters are the address information of the transmission client and the data receiving client, including: IP address and port information.
  • the data to be transmitted is the multimedia data collected by the data acquisition device and needs to be transmitted, including one or more of audio data and video data. Further, in order to reduce the data transmission speed in the data transmission process, the embodiment of the present application encodes the data to be transmitted, compresses and reduces redundant information by encoding the data to be transmitted, and improves the speed of subsequent data transmission.
  • the data processing module 101 may encode the collected data to be transmitted according to the set encoding rate.
  • the encoding bit rate is proportional to the amount of data encoded in a unit time, and different amounts of data require different network bandwidths, when the network bandwidth that the data needs to occupy exceeds the actual network bandwidth, it will cause transmission delays. Therefore, in order to make the data transmission have a small time delay, the data processing module 101 can also adjust the set encoding bit rate according to the real-time change of the network state.
  • the data processing module 101 in this embodiment of the present application calculates the difference between the network bandwidth and the data capacity of the data to be transmitted, takes the difference as an encoding bit rate, and determines the encoding bit rate according to the encoding bit rate.
  • the data to be transmitted is encoded to obtain the encoded data.
  • the data to be transmitted includes video data and audio data
  • the encoding code rate is A
  • the video data in the data to be transmitted is encoded with a code rate of A using the h264 encoding method
  • the alphabet encoding method is used.
  • the audio data in the data to be transmitted is encoded with a code rate of A, and the encoded video data and audio data are aggregated to obtain the encoded data.
  • the data processing module 101 in this embodiment of the present application encodes the encoded data according to the data capacity of the encoded data.
  • the data is preprocessed to obtain the object to be transmitted.
  • the data processing module 101 preprocesses the encoded data according to the data capacity of the encoded data to obtain the object to be transmitted, including: when the data capacity of the encoded data is less than or equal to a preset value When the data capacity threshold is set, the encoded data is used as the transmission object, and further, in order to facilitate the sorting of the received data after data transmission, the object to be transmitted is marked with a preset first object label, and the standard to be transmitted is obtained.
  • the encoded data when the encoded data is larger than the preset data capacity threshold, the encoded data is segmented and marked to obtain the object to be transmitted, and further, in order to facilitate the sorting and restoration of the received data after data transmission, the pre- The set second object label marks the to-be-transmitted object to obtain the standard to-be-transmitted object.
  • the data processing module 101 marks the encoded data into segments to obtain the object to be transmitted, including: segmenting the encoded data according to a preset segment length and id index mark, obtain the fragmented data set, and determine the fragmented data set as the object to be transmitted; for example: the size of the encoded data A is 5T, and the preset fragment length is 1T, then the encoded data A can be Divided into data block A ⁇ 0, data block A ⁇ 1, data block A ⁇ 2, data block A ⁇ 3, data block A ⁇ 4, a total of 5 data blocks, where A ⁇ 0 is the id index of the fragmented data , A represents the id of the fragmented data, 0 represents the order of the fragmentation, and the fragmented data A ⁇ 0, A ⁇ 1, A ⁇ 2, A ⁇ 3, and A ⁇ 4 form the fragmented data set.
  • the id index mark is convenient for the data receiving terminal to perform sequential identification and combination after receiving the fragmented data.
  • the data transmission module 102 is configured to construct a transmission channel, and use the transmission channel to transmit the object to be transmitted to a preset receiving end to obtain the receiving object.
  • a data transmission channel needs to be constructed to transmit the object to be transmitted.
  • the data transmission module 102 in the embodiment of the present application extracts the transmission parameters in the transmission request, and replaces the corresponding parameters in the transmission protocol with the transmission parameters to obtain the transmission channel, wherein the transmission protocol It is SCTP (Stream Control Transmission Protocol, Stream Control Transmission Protocol).
  • SCTP Stream Control Transmission Protocol, Stream Control Transmission Protocol
  • the transmission protocol may also be a data transmission protocol of a WebRTC interface in the browser.
  • the object to be transmitted is transmitted to a preset receiving end by using the transmission channel to obtain the receiving object.
  • data is dynamically encoded and transmitted according to the data transmission bandwidth, and at the same time, data fragmentation transmission is used to break through the transmission limitation of the data transmission terminal, thereby improving the efficiency of data transmission and reducing the delay of data transmission.
  • the receiving object in order to ensure the privacy of data, may be stored in a blockchain node.
  • the data receiving module 103 is used for identifying and restoring the received object to obtain the received data.
  • the transmission process will not affect the label corresponding to the transmission object, and the data in the reception object is not the final reception data. Therefore, the data reception module 103 performs an identification and restoration operation on the reception object, and obtains Receiving data includes: identifying the label corresponding to the receiving object, and when the label corresponding to the receiving object is the first object label, taking the data in the receiving object as the receiving data; when the receiving object is When the corresponding tag is the second object tag, the received data is obtained by sequentially combining all fragmented data contained in the receiving object according to the ID index corresponding to each fragmented data.
  • the receiving object only contains data A, the label corresponding to the receiving object is the first object label, then the data A is the receiving data; the label corresponding to the receiving object is the second object label, so
  • the receiving object includes data A ⁇ 1 and A ⁇ 0, and the corresponding data is combined according to the order of the id index A ⁇ 0 and A ⁇ 1 to obtain the received data.
  • FIG. 3 it is a schematic structural diagram of an electronic device implementing the data transmission method of the present application.
  • the electronic device 1 may include a processor 10 , a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a data transmission program 12 .
  • the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, CD etc.
  • the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1 .
  • the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart memory card) provided on the electronic device 1.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 can not only be used to store application software installed in the electronic device 1 and various types of data, such as codes of data transmission programs, etc., but also can be used to temporarily store data that has been output or will be output.
  • the processor 10 may be composed of integrated circuits, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more integrated circuits.
  • central processing unit Processing unit, CPU central processing unit Processing unit
  • microprocessor microprocessor
  • digital processing chip graphics processor and combination of various control chips, etc.
  • the processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and by running or executing the programs or modules (such as data) stored in the memory 11. transfer programs, etc.), and call data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
  • the bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard structure (extended). industry standard architecture, referred to as EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.
  • FIG. 3 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the figure. components, or a combination of certain components, or a different arrangement of components.
  • the electronic device 1 may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power source can be managed by the power source.
  • the device implements functions such as charge management, discharge management, and power consumption management.
  • the power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
  • the electronic device 1 may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • a network interface optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • the electronic device 1 may further include a user interface, and the user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface or a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Touch, etc.
  • the display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
  • the data transmission program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple computer programs, and when running in the processor 10, it can realize:
  • the modules/units integrated in the electronic device 1 may be stored in a computer-readable storage medium.
  • the computer-readable medium may be non-volatile or volatile.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only). Memory).
  • Embodiments of the present application may further provide a computer-readable storage medium, where the readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
  • the computer usable storage medium may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like; using the created data, etc.
  • modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
  • the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Landscapes

  • Information Transfer Between Computers (AREA)
  • Communication Control (AREA)

Abstract

本申请涉及传输协议技术,揭露一种数据传输方法,包括:接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;对所述接收对象进行识别还原操作,得到接收数据。本申请还涉及一种区块链技术,所述接收对象可以存储在区块链中。本申请还提出一种数据传输装置、电子设备以及可读存储介质。本申请可以提高数据传输的效率。

Description

数据传输方法、装置、电子设备及可读存储介质
本申请要求于2020年12月29日提交中国专利局、申请号为CN202011600114.1、名称为“数据传输方法、装置、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及传输协议领域,尤其涉及一种数据传输方法、装置、电子设备及可读存储介质。
背景技术
随着互联网技术发展,人们对信息的交互的及时性有了新的要求,因此,数据传输技术也逐渐受到了人们的关注。
技术问题
但是发明人发现目前的数据传输技术依靠中间服务器对数据进行中转,同时数据传输不能动态改变受到传输带宽的及传输终端的传输能力的限制,传输的文件的时延高、不能传输大文件,导致文件传输的效率低。
技术解决方案
本申请提供的一种数据传输方法,包括:
接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
对所述接收对象进行识别还原操作,得到接收数据。
本申请还提供一种数据传输装置,所述装置包括:
数据处理模块,用于接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
数据传输模块,用于构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
数据接收模块,用于对所述接收对象进行识别还原操作,得到接收数据。
本申请还提供一种电子设备,所述电子设备包括:
存储器,存储至少一个计算机程序;及
处理器,执行所述存储器中存储的计算机程序以实现如下步骤:
接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
对所述接收对象进行识别还原操作,得到接收数据。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个计算机程序,所述至少一个计算机程序被电子设备中的处理器执行以实现如下步骤:
接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
对所述接收对象进行识别还原操作,得到接收数据。
附图说明
图1为本申请一实施例提供的数据传输方法的流程示意图;
图2为本申请一实施例提供的数据传输装置的模块示意图;
图3为本申请一实施例提供的实现数据传输方法的电子设备的内部结构示意图;
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例提供一种数据传输方法。所述数据传输方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述数据传输方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。
参照图1所示的本申请一实施例提供的数据传输方法的流程示意图,在本申请实施例中,所述数据传输方法包括:
S1、接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
本申请实施例中,所述传输请求为数据的传输请求信息,包含:数据传输的网络带宽及数据的传输参数,所述传输参数为传输客户端及数据接收客户端的地址信息,包括:IP地址及端口信息。所述待传输数据为数据采集设备采集到的需要传输的多媒体数据,包括音频数据、视频数据中的一种或者多种。进一步地,本申请实施例为了减少数据传输过程中的数据传输速度,对所述待传输数据进行编码,通过对待传输数据编码来压缩减少冗余的信息,提升后续数据传输的速度。
进一步地,由于编码码率是编码的重要参数,在本申请实施例中,可以按照设定的编码码率对采集到的待传输数据进行编码。考虑到编码码率与单位时间内编码出的数据量成正比,而不同数据量的数据需要占用的网络带宽大小不同,在数据需要占用的网络带宽超过实际网络带宽时,会造成传输延迟。因此,为了使得数据传输具有较小时延,还可以根据网络状态的实时变化对设定的编码码率进行调整。
详细地,本申请实施例计算所述网络带宽与所述待传输数据的数据容量的差值,将所述差值作为编码码率,根据所述编码码率对所述待传输数据进行编码,得到所述编码数据。
进一步地,本申请实施例中编码待传输数据的方式可以有多种,在待传输数据所包含的数据类型不同时,编码方式也会有所不同,不同编码方式可以编码对应类型的数据,因此,本申请实施例根据所述编码码率利用预设的编码方式对所述待传输数据中所述编码方式对应类型的数据进行编码,得到所述编码数据,如opus编码可以编码音频数据,h264编码可以编码视频数据,例如:所述待传输数据包含视频数据及音频数据,编码码率为A,利用h264编码方式对所述待传输数据中的视频数据进行码率为A的数据编码,利用opus编码方式对所述待传输数据中的音频数据进行码率为A的数据编码,将编码后的视频数据及音频数据进行汇总,得到所述编码数据。
S2、根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
由于数据传输终端会有数据大小的传输限制,导致单个传输的数据的数据容量过大时,无法直接传输,因此,本申请实施例根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象。
详细地,本申请实施例中,根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象,包括:当所述编码数据的数据容量小于或等于预设数据容量阈值时,将所述编码数据作为传输对象,进一步地为了数据传输后便于对接收的数据进行整理,利用预设第一对象标签对所述待传输对象进行标记,得到所述标准待传输对象;当所述编码数据大于预设的数据容量阈值时,将所述编码数据进行分片标记,得到所述待传输对象,进一步地为了数据传输后便于对接收的数据进行整理还原,利用预设的第二对象标签对所述待传输对象进行标记,得到所述标准待传输对象。
进一步地,本申请实施例中,所述将所述编码数据进行分片标记,得到所述待传输对象,包括:根据预设的分片长度对所述编码数据进行分片及id索引标记,得到分片数据集,将所述分片数据集确定为所述待传输对象;例如:编码数据A的大小为5T,预设的分片长度为1T,那么可以将编码数据A依次分为数据块A\0、数据块A\1、数据块A\2、数据块A\3、数据块A\4共5个数据块,其中,A\0为分片数据的id索引,A表示分片数据的id,0表示分片的顺序,分片数据A\0、A\1、A\2、A\3、A\4组成分片数据集,通过对分片数据的id索引标记,便于数据接收终端接收到所述分片数据后进行顺序识别组合。
S3、构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
本申请实施中为了保证数据安全,降低延迟,省略中间服务器,实现点对点的数据传输,需要构建数据传输通道对所述待传输对象进行传输。
详细地,本申请实施例提取所述传输请求中的传输参数,利用所述传输参数替换所述传输协议中对应的参数,得到所述数据传输通道,其中,所述传输协议为SCTP(Stream Control Transmission Protocol,流控制传输协议),进一步地,当所述数据传输终端为浏览器时,所述传输协议还可以为浏览器中WebRTC接口的数据传输协议。
进一步地,本申请实施例中,利用所述传输通道将所述待传输对象传输至预设的接收端,得到所述接收对象。
本申请根据数据传输带宽进行数据动态编码传输,同时利用数据分片传输突破数据传输终端的传输限制,提高了数据传输的效率,较低了数据传输的时延。
本申请的另一实施例中,为了保障数据的隐私性,所述接收对象可以存储在区块链节点中。
S4、对所述接收对象进行识别还原操作,得到接收数据。
本申请是实施例中,传输过程不会影响传输对象对应的标签,所述接收对象中的数据不是最终的接收数据,因此,对所述接收对象进行识别还原操作,得到接收数据,包括:识别所述接收对象对应的标签,当所述接收对象对应的标签为所述第一对象标签时,将所述接收对象中的数据作为所述接收数据;当所述接收对象对应的标签为所述第二对象标签时,将所述接收对象中包含的所有分片数据按照每个分片数据对应的ID索引进行顺序合并,得到所述接收数据。如:所述接收对象中仅包含数据A,所述接收对象对应的标签为所述第一对象标签,那么数据A为接收数据;所述接收对象对应的标签为所述第二对象标签,所述接收对象中包含数据A\1、A\0,按照id索引的顺序A\0、A\1将对应的数据进行合并,得到所述接收数据。
如图2所示,是本申请数据传输装置的功能模块图。
本申请所述数据传输装置100可以安装于电子设备中。根据实现的功能,所述数据传输装置可以包括数据处理模块101、数据传输模块102、数据接收模块103,本发所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。
在本实施例中,关于各模块/单元的功能如下:
所述数据处理模块101用于接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象。
本申请实施例中,所述传输请求为数据的传输请求信息,包含:数据传输的网络带宽及数据的传输参数,所述传输参数为传输客户端及数据接收客户端的地址信息,包括:IP地址及端口信息。所述待传输数据为数据采集设备采集到的需要传输的多媒体数据,包括音频数据、视频数据中的一种或者多种。进一步地,本申请实施例为了减少数据传输过程中的数据传输速度,对所述待传输数据进行编码,通过对待传输数据编码来压缩减少冗余的信息,提升后续数据传输的速度。
进一步地,由于编码码率是编码的重要参数,在本申请实施例中,所述数据处理模块101可以按照设定的编码码率对采集到的待传输数据进行编码。考虑到编码码率与单位时间内编码出的数据量成正比,而不同数据量的数据需要占用的网络带宽大小不同,在数据需要占用的网络带宽超过实际网络带宽时,会造成传输延迟。因此,为了使得数据传输具有较小时延,所述数据处理模块101还可以根据网络状态的实时变化对设定的编码码率进行调整。
详细地,本申请实施例所述数据处理模块101计算所述网络带宽与所述待传输数据的数据容量的差值,将所述差值作为编码码率,根据所述编码码率对所述待传输数据进行编码,得到所述编码数据。
进一步地,本申请实施例中编码待传输数据的方式可以有多种,在待传输数据所包含的数据类型不同时,编码方式也会有所不同,因此,本申请实施例所述数据处理模块101根据所述编码码率利用预设的编码方式对所述待传输数据中所述编码方式对应类型的数据进行编码,得到所述编码数据,如opus编码可以编码音频数据,h264编码可以编码视频数据,,例如:所述待传输数据包含视频数据及音频数据,编码码率为A,利用h264编码方式对所述待传输数据中的视频数据进行码率为A的数据编码,利用opus编码方式对所述待传输数据中的音频数据进行码率为A的数据编码,将编码后的视频数据及音频数据进行汇总,得到所述编码数据。
由于数据传输终端会有数据大小的传输限制,导致单个传输的数据的数据容量过大时,无法直接传输,因此,本申请实施例所述数据处理模块101根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象。
详细地,本申请实施例中,所述数据处理模块101根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象,包括:当所述编码数据的数据容量小于或等于预设数据容量阈值时,将所述编码数据作为传输对象,进一步地为了数据传输后便于对接收的数据进行整理,利用预设第一对象标签对所述待传输对象进行标记,得到所述标准待传输对象;当所述编码数据大于预设的数据容量阈值时,将所述编码数据进行分片标记,得到所述待传输对象,进一步地为了数据传输后便于对接收的数据进行整理还原,利用预设的第二对象标签对所述待传输对象进行标记,得到所述标准待传输对象。
进一步地,本申请实施例中,所述数据处理模块101将所述编码数据进行分片标记,得到所述待传输对象,包括:根据预设的分片长度对所述编码数据进行分片及id索引标记,得到分片数据集,将所述分片数据集确定为所述待传输对象;例如:编码数据A的大小为5T,预设的分片长度为1T,那么可以将编码数据A依次分为数据块A\0、数据块A\1、数据块A\2、数据块A\3、数据块A\4共5个数据块,其中,A\0为分片数据的id索引,A表示分片数据的id,0表示分片的顺序,分片数据A\0、A\1、A\2、A\3、A\4组成分片数据集,通过对分片数据的id索引标记,便于数据接收终端接收到所述分片数据后进行顺序识别组合。
所述数据传输模块102用于构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象。
本申请实施中为了保证数据安全,降低延迟,省略中间服务器,实现点对点的数据传输,需要构建数据传输通道对所述待传输对象进行传输。
详细地,本申请实施例所述数据传输模块102提取所述传输请求中的传输参数,利用所述传输参数替换所述传输协议中对应的参数,得到所述传输通道,其中,所述传输协议为SCTP(Stream Control Transmission Protocol,流控制传输协议),进一步地,当所述数据传输终端为浏览器时,所述传输协议还可以为浏览器中WebRTC接口的数据传输协议。
进一步地,本申请实施例中,利用所述传输通道将所述待传输对象传输至预设的接收端,得到所述接收对象。
本申请根据数据传输带宽进行数据动态编码传输,同时利用数据分片传输突破数据传输终端的传输限制,提高了数据传输的效率,较低了数据传输的时延。
本申请的另一实施例中,为了保障数据的隐私性,所述接收对象可以存储在区块链节点中。
所述数据接收模块103用于对所述接收对象进行识别还原操作,得到接收数据。
本申请是实施例中,传输过程不会影响传输对象对应的标签,所述接收对象中的数据不是最终的接收数据,因此,所述数据接收模块103对所述接收对象进行识别还原操作,得到接收数据,包括:识别所述接收对象对应的标签,当所述接收对象对应的标签为所述第一对象标签时,将所述接收对象中的数据作为所述接收数据;当所述接收对象对应的标签为所述第二对象标签时,将所述接收对象中包含的所有分片数据按照每个分片数据对应的ID索引进行顺序合并,得到所述接收数据。如:所述接收对象中仅包含数据A,所述接收对象对应的标签为所述第一对象标签,那么数据A为接收数据;所述接收对象对应的标签为所述第二对象标签,所述接收对象中包含数据A\1、A\0,按照id索引的顺序A\0、A\1将对应的数据进行合并,得到所述接收数据。
如图3所示,是本申请实现数据传输方法的电子设备的结构示意图。
所述电子设备1可以包括处理器10、存储器11和总线,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如数据传输程序12。
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备1的内部存储单元,例如该电子设备1的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备1的外部存储设备,例如电子设备1上配备的插接式移动硬盘、智能存储卡(Smart Media Card, SMC)、安全数字(Secure Digital, SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备1的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备1的应用软件及各类数据,例如数据传输程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。
所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如数据传输程序等),以及调用存储在所述存储器11内的数据,以执行电子设备1的各种功能和处理数据。
所述总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。
图3仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图3示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。
例如,尽管未示出,所述电子设备1还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备1还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。
进一步地,所述电子设备1还可以包括网络接口,可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备1与其他电子设备之间建立通信连接。
可选地,该电子设备1还可以包括用户接口,用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备1中处理的信息以及用于显示可视化的用户界面。
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。
所述电子设备1中的所述存储器11存储的数据传输程序12是多个计算机程序的组合,在所述处理器10中运行时,可以实现:
接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
对所述接收对象进行识别还原操作,得到接收数据。
具体地,所述处理器10对上述计算机程序的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。所述计算机可读介质可以是非易失性的,也可以是易失性的。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。
本申请实施例还可以提供一种计算机可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:
接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
对所述接收对象进行识别还原操作,得到接收数据。
进一步地,所述计算机可用存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (22)

  1. 一种数据传输方法,其中,所述方法包括:
    接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
    根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
    构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
    对所述接收对象进行识别还原操作,得到接收数据。
  2. 如权利要求1所述的数据传输方法,其中,所述根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据,包括:
    计算所述网络带宽与所述待传输数据的数据容量的差值,将所述差值确定为编码码率;
    根据所述编码码率对所述待传输数据进行编码,得到所述编码数据。
  3. 如权利要求2所述的数据传输方法,其中,所述根据所述编码码率对所述待传输数据进行编码,得到所述编码数据,包括:
    根据所述编码码率利用预设的编码方式对所述待传输数据中所述编码方式对应类型的数据进行编码,得到所述编码数据。
  4. 如权利要求1所述的数据传输方法,其中,所述根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象,包括:
    当所述编码数据的数据容量小于或等于预设数据容量阈值时,将所述编码数据作为待传输对象,利用预设第一对象标签对所述待传输对象进行标记,得到所述标准待传输对象;
    当所述编码数据大于预设的数据容量阈值时,将所述编码数据进行分片标记,得到待传输对象,利用预设的第二对象标签对所述待传输对象进行标记,得到所述标准待传输对象。
  5. 如权利要求4所述的数据传输方法,其中,所述将所述编码数据进行分片标记,得到所述待传输对象,包括:
    根据预设的分片长度对所述编码数据进行分片及id索引标记,得到分片数据集;
    将所述分片数据集确定为所述待传输对象。
  6. 如权利要求1所述的数据传输方法,其中,所述构建传输通道,包括:
    提取所述传输请求中的传输参数;
    利用所述传输参数替换预设传输协议中对应的参数,得到所述传输通道。
  7. 如权利要求1至6中任意一项所述的数据传输方法,其中,所述对所述接收对象进行识别还原操作,得到接收数据,包括:
    识别所述接收对象对应的标签;
    当所述接收对象对应的标签为所述第一对象标签时,将所述接收对象中的数据作为所述接收数据;
    当所述接收对象对应的标签为所述第二对象标签时,将所述接收对象中包含的所有分片数据按照每个分片数据对应的id索引进行顺序合并,得到所述接收数据。
  8. 一种数据传输装置,其中,包括:
    数据处理模块,用于接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
    数据传输模块,用于构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
    数据接收模块,用于对所述接收对象进行识别还原操作,得到接收数据。
  9. 一种电子设备,其中,所述电子设备包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的计算机程序指令,所述计算机程序指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下步骤:
    接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
    根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
    构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
    对所述接收对象进行识别还原操作,得到接收数据。
  10. 如权利要求9所述的电子设备,其中,所述根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据,包括:
    计算所述网络带宽与所述待传输数据的数据容量的差值,将所述差值确定为编码码率;
    根据所述编码码率对所述待传输数据进行编码,得到所述编码数据。
  11. 如权利要求10所述的电子设备,其中,所述根据所述编码码率对所述待传输数据进行编码,得到所述编码数据,包括:
    根据所述编码码率利用预设的编码方式对所述待传输数据中所述编码方式对应类型的数据进行编码,得到所述编码数据。
  12. 如权利要求9所述的电子设备,其中,所述根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象,包括:
    当所述编码数据的数据容量小于或等于预设数据容量阈值时,将所述编码数据作为待传输对象,利用预设第一对象标签对所述待传输对象进行标记,得到所述标准待传输对象;
    当所述编码数据大于预设的数据容量阈值时,将所述编码数据进行分片标记,得到待传输对象,利用预设的第二对象标签对所述待传输对象进行标记,得到所述标准待传输对象。
  13. 如权利要求12所述的电子设备,其中,所述将所述编码数据进行分片标记,得到所述待传输对象,包括:
    根据预设的分片长度对所述编码数据进行分片及id索引标记,得到分片数据集;
    将所述分片数据集确定为所述待传输对象。
  14. 如权利要求9所述的电子设备,其中,所述构建传输通道,包括:
    提取所述传输请求中的传输参数;
    利用所述传输参数替换预设传输协议中对应的参数,得到所述传输通道。
  15. 如权利要求9至14中任意一项所述的电子设备,其中,所述对所述接收对象进行识别还原操作,得到接收数据,包括:
    识别所述接收对象对应的标签;
    当所述接收对象对应的标签为所述第一对象标签时,将所述接收对象中的数据作为所述接收数据;
    当所述接收对象对应的标签为所述第二对象标签时,将所述接收对象中包含的所有分片数据按照每个分片数据对应的id索引进行顺序合并,得到所述接收数据。
  16. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤:
    接收传输请求并获取待传输数据,根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据;
    根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象;
    构建传输通道,利用所述传输通道将所述待传输对象传输至预设的接收端,得到接收对象;
    对所述接收对象进行识别还原操作,得到接收数据。
  17. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述传输请求中的网络带宽对所述待传输数据进行对应编码,得到编码数据,包括:
    计算所述网络带宽与所述待传输数据的数据容量的差值,将所述差值确定为编码码率;
    根据所述编码码率对所述待传输数据进行编码,得到所述编码数据。
  18. 如权利要求17所述的计算机可读存储介质,其中,所述根据所述编码码率对所述待传输数据进行编码,得到所述编码数据,包括:
    根据所述编码码率利用预设的编码方式对所述待传输数据中所述编码方式对应类型的数据进行编码,得到所述编码数据。
  19. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述编码数据的数据容量对编码数据进行预处理,得到待传输对象,包括:
    当所述编码数据的数据容量小于或等于预设数据容量阈值时,将所述编码数据作为待传输对象,利用预设第一对象标签对所述待传输对象进行标记,得到所述标准待传输对象;
    当所述编码数据大于预设的数据容量阈值时,将所述编码数据进行分片标记,得到待传输对象,利用预设的第二对象标签对所述待传输对象进行标记,得到所述标准待传输对象。
  20. 如权利要求19所述的计算机可读存储介质,其中,所述将所述编码数据进行分片标记,得到所述待传输对象,包括:
    根据预设的分片长度对所述编码数据进行分片及id索引标记,得到分片数据集;
    将所述分片数据集确定为所述待传输对象。
  21. 如权利要求16所述的计算机可读存储介质,其中,所述构建传输通道,包括:
    提取所述传输请求中的传输参数;
    利用所述传输参数替换预设传输协议中对应的参数,得到所述传输通道。
  22. 如权利要求16至21中任意一项所述的计算机可读存储介质,其中,所述对所述接收对象进行识别还原操作,得到接收数据,包括:
    识别所述接收对象对应的标签;
    当所述接收对象对应的标签为所述第一对象标签时,将所述接收对象中的数据作为所述接收数据;
    当所述接收对象对应的标签为所述第二对象标签时,将所述接收对象中包含的所有分片数据按照每个分片数据对应的id索引进行顺序合并,得到所述接收数据。
PCT/CN2021/091391 2020-12-29 2021-04-30 数据传输方法、装置、电子设备及可读存储介质 WO2022142033A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011600114.1 2020-12-29
CN202011600114.1A CN112671921A (zh) 2020-12-29 2020-12-29 数据传输方法、装置、电子设备及可读存储介质

Publications (1)

Publication Number Publication Date
WO2022142033A1 true WO2022142033A1 (zh) 2022-07-07

Family

ID=75410463

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/091391 WO2022142033A1 (zh) 2020-12-29 2021-04-30 数据传输方法、装置、电子设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN112671921A (zh)
WO (1) WO2022142033A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361032A (zh) * 2022-08-17 2022-11-18 佛山市朗盛通讯设备有限公司 一种用于5g通信的天线单元
CN115603865A (zh) * 2022-12-13 2023-01-13 广东广宇科技发展有限公司(Cn) 一种基于云存储的大数据快速传输方法
CN116208297A (zh) * 2023-05-06 2023-06-02 中科航迈数控软件(深圳)有限公司 一种数控机床传输数据自适应编码方法、装置及相关设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671921A (zh) * 2020-12-29 2021-04-16 平安普惠企业管理有限公司 数据传输方法、装置、电子设备及可读存储介质
CN113378226A (zh) * 2021-06-24 2021-09-10 平安普惠企业管理有限公司 生物数据处理方法、装置、设备及计算机可读存储介质
CN113448933B (zh) * 2021-06-29 2024-04-02 平安证券股份有限公司 业务数据处理方法、装置、电子设备及介质
CN113890712A (zh) * 2021-10-14 2022-01-04 微位(深圳)网络科技有限公司 数据传输方法、装置、电子设备及可读存储介质
CN114900480B (zh) * 2022-04-20 2023-03-10 合肥亚慕信息科技有限公司 基于数据平台的通讯安全管控系统
CN115225710A (zh) * 2022-06-17 2022-10-21 中国电信股份有限公司 数据包的传输方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167170A1 (en) * 2009-01-30 2011-07-07 Movik Networks Adaptive Chunked and Content-aware Pacing of Multi-Media Delivery over HTTP Transport and Network Controlled Bit Rate Selection
CN103957389A (zh) * 2014-05-13 2014-07-30 重庆大学 基于压缩感知的3g视频传输方法及系统
CN104618337A (zh) * 2014-12-31 2015-05-13 浙江理工大学 一种基于tcp/udp混合协议的流媒体无线自适应传输方法
CN112671921A (zh) * 2020-12-29 2021-04-16 平安普惠企业管理有限公司 数据传输方法、装置、电子设备及可读存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100568966C (zh) * 2006-01-24 2009-12-09 成都索贝数码科技股份有限公司 一种音/视频数据的网络传输方法
CN106657197B (zh) * 2015-11-02 2021-10-15 腾讯科技(深圳)有限公司 文件上传的方法和装置
US10491329B1 (en) * 2016-12-08 2019-11-26 Amazon Technologies, Inc. Transfer of data-redundancy encoded data via unreliable, connectionless protocol
CN109862386A (zh) * 2019-03-27 2019-06-07 北京奇艺世纪科技有限公司 直播数据传输方法及装置
CN110602548B (zh) * 2019-09-20 2021-11-02 北京市博汇科技股份有限公司 一种超高清视频高质量无线传输的方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167170A1 (en) * 2009-01-30 2011-07-07 Movik Networks Adaptive Chunked and Content-aware Pacing of Multi-Media Delivery over HTTP Transport and Network Controlled Bit Rate Selection
CN103957389A (zh) * 2014-05-13 2014-07-30 重庆大学 基于压缩感知的3g视频传输方法及系统
CN104618337A (zh) * 2014-12-31 2015-05-13 浙江理工大学 一种基于tcp/udp混合协议的流媒体无线自适应传输方法
CN112671921A (zh) * 2020-12-29 2021-04-16 平安普惠企业管理有限公司 数据传输方法、装置、电子设备及可读存储介质

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361032A (zh) * 2022-08-17 2022-11-18 佛山市朗盛通讯设备有限公司 一种用于5g通信的天线单元
CN115361032B (zh) * 2022-08-17 2023-04-18 佛山市朗盛通讯设备有限公司 一种用于5g通信的天线单元
CN115603865A (zh) * 2022-12-13 2023-01-13 广东广宇科技发展有限公司(Cn) 一种基于云存储的大数据快速传输方法
CN116208297A (zh) * 2023-05-06 2023-06-02 中科航迈数控软件(深圳)有限公司 一种数控机床传输数据自适应编码方法、装置及相关设备
CN116208297B (zh) * 2023-05-06 2023-08-08 中科航迈数控软件(深圳)有限公司 一种数控机床传输数据自适应编码方法、装置及相关设备

Also Published As

Publication number Publication date
CN112671921A (zh) 2021-04-16

Similar Documents

Publication Publication Date Title
WO2022142033A1 (zh) 数据传输方法、装置、电子设备及可读存储介质
WO2021151279A1 (zh) 基于边缘计算的云监控方法、装置、电子设备及存储介质
US10862871B2 (en) Hardware-accelerated payload filtering in secure communication
CN111683069B (zh) 一种基于netty框架的自定义通信协议及服务方法
WO2020140394A1 (zh) 文件存储方法及终端设备
WO2022088779A1 (zh) 深度报文处理方法、装置、电子设备及存储介质
CN111352889B (zh) 一种基于mctp协议的设备管理方法、设备、装置和介质
EP3588914A1 (en) Data storage method, encoding device and decoding device
WO2014135038A1 (zh) 基于pcie总线的报文传输方法与装置
CN114124502B (zh) 消息传输方法、装置、设备及介质
WO2022143536A1 (zh) 基于APSoC的国密计算方法、系统、设备及介质
US7991008B2 (en) Method for identifying the transmission control protocol stack of a connection
CN108460044B (zh) 数据的处理方法和装置
WO2021189905A1 (zh) 分布式数据调取方法、装置、电子设备及存储介质
CN114124878B (zh) 行情数据下发方法、装置、系统、设备及介质
WO2014029081A1 (zh) 压缩方法及设备
CN114513792B (zh) 基于eSIM卡的远程网络控制方法及装置
WO2023173551A1 (zh) 短地址生成方法、装置、电子设备及计算机可读存储介质
CN115250246A (zh) 一种监测虚拟机集群中节点状态的方法和计算机系统
CN113452703B (zh) 组合通信请求响应方法、装置、电子设备及可读存储介质
CN115002100B (zh) 文件传输方法、装置、电子设备及存储介质
WO2023130801A1 (zh) 基于函数的数据发送方法、装置、设备和数据接收方法
CN116471103B (zh) 基于边界网络的内外网数据安全交换方法、装置及设备
CN116095015B (zh) 电子哨兵数据传输效率提升方法、装置、设备及存储介质
WO2022134345A1 (zh) 文件访问方法、装置、设备及可读存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 13/09/2023)

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

Ref document number: 21912795

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21912795

Country of ref document: EP

Kind code of ref document: A1