CN115250453A - Data transmission method and equipment - Google Patents

Data transmission method and equipment Download PDF

Info

Publication number
CN115250453A
CN115250453A CN202110877284.2A CN202110877284A CN115250453A CN 115250453 A CN115250453 A CN 115250453A CN 202110877284 A CN202110877284 A CN 202110877284A CN 115250453 A CN115250453 A CN 115250453A
Authority
CN
China
Prior art keywords
data
equipment
channel
message
application data
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110877284.2A
Other languages
Chinese (zh)
Inventor
姜光许
李腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2022/084184 priority Critical patent/WO2022228015A1/en
Publication of CN115250453A publication Critical patent/CN115250453A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Abstract

The embodiment of the application provides a data transmission method and equipment, and relates to the field of terminals. In the case where the first device has established a Wi-Fi channel with the second device, or the first device may establish a Wi-Fi channel with the second device, the first device transmits the application data to the second device over the Wi-Fi channel based on a transport protocol that is simplified over TCP. Due to the fact that the simplified transmission protocol can avoid the complicated inner core message forwarding process of the TCP, near field transmission time delay can be reduced by sending application data based on the simplified transmission protocol, and near field transmission throughput is improved.

Description

Data transmission method and equipment
The present application claims priority of chinese patent application having application number 202110456191.2 entitled "a high performance near field communication method" filed by the national intellectual property office at 26/04/2021, the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of terminals, and in particular, to a data transmission method and device.
Background
With the more and more abundant equipment forms, the more and more multiple equipment collaborative work scenes. Because a Transmission Control Protocol (TCP) has a relatively perfect acknowledgement mechanism, retransmission mechanism, congestion control mechanism, and the like, in order to ensure the reliability of data interaction between devices, a TCP protocol stack of a kernel is generally used when data is transmitted between devices, and the data is transmitted through a kernel message forwarding flow.
However, since the TCP has a relatively perfect acknowledgement mechanism, retransmission mechanism, congestion control mechanism, and the like, the TCP transmission data based on the kernel needs to go through a complicated kernel message forwarding process, and the data transmission delay is relatively large.
Disclosure of Invention
The application provides a data transmission method and equipment, when near-field high-speed transmission is performed, data are sent based on a simplified transmission protocol, and message forwarding is performed without using a TCP (transmission control protocol) of an inner core, so that near-field transmission delay is reduced, and near-field transmission throughput is improved.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method may include: when first equipment sends application data to second equipment, if first equipment and the second equipment establish a first wireless fidelity Wi-Fi channel, the first equipment sends the application data to the second equipment through the first Wi-Fi channel based on a simplified transmission protocol; or if the first equipment finds the second equipment through the near field communication mode, establishing a second wireless fidelity Wi-Fi channel, and sending application data to the second equipment through the second Wi-Fi channel based on the simplified transmission protocol; wherein, the transport layer message header of the simplified transmission protocol reduces at least one of the following fields compared with the transmission control protocol message header: an acknowledgment number, a header length, a reserved field, a flag bit field, a checksum, an emergency pointer, and an option; and/or, the network layer message header of the simplified transmission protocol is reduced by at least one of the following fields compared with the network protocol message header: identification, flag, segment offset, protocol, checksum, options.
In the method, if the first device determines that the scenario is a near-field high-speed transmission scenario (the first device has established a Wi-Fi channel with the second device, or the first device may establish a Wi-Fi channel with the second device), data transmission is performed based on a reduced transmission protocol. Because the near-field high-speed transmission belongs to a short fertilizer pipeline (high bandwidth and short transmission distance), the packet loss rate is very low, and a complex confirmation mechanism, a retransmission mechanism, a congestion control mechanism and the like of TCP are not needed; and a simplified transmission protocol is adopted during near-field high-speed transmission, so that a complex message forwarding process caused by data transmission by using TCP can be avoided, and the time delay of the near-field high-speed transmission is reduced.
With reference to the first aspect, in a possible design manner, a first device discovers a second device through a near field communication method, and establishes a first Wi-Fi channel between the first device and the second device; the first device receives a first operation that a user shares application data of the first device to the second device, and in response to the first operation, the first device sends the application data to the second device through the first Wi-Fi channel based on a simplified transmission protocol. In this scenario, when the first device sends application data to the second device, the first device has already established a Wi-Fi channel with the second device.
With reference to the first aspect, in a possible design manner, the first device receives a second operation of the user to share application data of the first device, and in response to the second operation, the first device discovers the second device through a near field communication manner, and establishes a second Wi-Fi channel between the first device and the second device; the first device receives a third operation that the user shares the application data of the first device with the second device, and in response to the third operation, the first device sends the application data to the second device through a second Wi-Fi channel based on a simplified transmission protocol. This scenario is that the first device does not establish a Wi-Fi channel with the second device. When the first device sends the application data to the second device, the first device and the second device discover each other in a near field communication mode, and establish a Wi-Fi channel.
With reference to the first aspect, in one possible design, the Wi-Fi channel includes a channel based on a Wi-Fi P2P mode, or a channel based on a Wi-Fi AP mode, or a channel based on a Wi-Fi STA mode.
With reference to the first aspect, in one possible design manner, the near field communication manner includes NFC, bluetooth, or infrared.
With reference to the first aspect, in a possible design manner, before the first device sends the application data to the second device, the first device sorts the application data of the first device in order of sending priorities from high to low. Wherein the transmission priority is determined according to the data type of the application data, and the data type comprises message data, stream data, byte data and file data. The transmission priority of the following data types is from high to low in sequence: message data, stream data, byte data, file data.
Therefore, the situation that large file data or byte data occupies high bandwidth for a long time and influences the timely sending of the message can be avoided. For example, a video on a mobile phone is transmitted to a large screen for playing by using streaming transmission, and the data type of the video is streaming data. In the process of sending the stream data, the mobile phone sends control messages such as volume adjustment, playing progress adjustment and the like to the large screen. Because the sending priority of the message data is higher than the sending priority of the stream data, the control message data such as volume adjustment, playing progress adjustment and the like is sent in preference to the video stream data which is not sent, the volume adjustment, the playing progress adjustment and the like can be realized in the video playing process, and the control message is ensured to be sent in time.
With reference to the first aspect, in one possible design, a first device receives a first message from a second device; and according to the data message number in the first message, retransmitting the data message corresponding to the data message number to the second equipment.
In the method, a simplified transmission protocol divides application data to be transmitted into data messages, and each data message is numbered. And if the receiving equipment confirms that the Nth data message of the application data is not received from the sending equipment, sending a first message to the sending equipment, wherein the first message comprises the number of the unreceived data message. That is, the second device does not need to send an ACK to the first device every time a message is received; instead, a NACK is sent to the first device once when packet loss is determined. Generally, the packet loss rate in a near-field high-speed transmission scenario is low, and compared with a mechanism for confirming each message in TCP, the message confirmation mechanism using a simplified transmission protocol can reduce the number of message interactions between a sending device and a receiving device.
With reference to the first aspect, in a possible design manner, the first device further adjusts a congestion window for sending the data packet according to the number of the application data to be sent and the number of the first messages received in the unit time.
In a second aspect, the present application provides a device, which may implement the data transmission method described in the first aspect and possible design manners thereof, and may implement the method by software, hardware, or by executing corresponding software by hardware. In one possible design, the apparatus may include a communication interface, a processor, and a memory; the memory comprises a memory and an external memory. The processor is configured to support the device to perform the corresponding functions of the first aspect and its possible design forms. The memory is for coupling to the processor and holds the program instructions and data necessary for the device.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the data transmission method as described in the first aspect and possible design manners thereof.
In a fourth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to execute the data transmission method as described in the first aspect and its possible design.
In a fifth aspect, an embodiment of the present application provides a communication system, which includes a device for implementing the first aspect and the corresponding method in the possible design manners.
For technical effects brought by the device of the second aspect, the computer-readable storage medium of the third aspect, the computer program product of the fourth aspect, and the communication system of the fifth aspect, reference may be made to technical effects brought by the above corresponding methods, and details are not repeated here.
Drawings
Fig. 1 is a schematic diagram of a system architecture to which a data transmission method according to an embodiment of the present disclosure is applied;
fig. 2 is a schematic diagram of a system architecture to which a data transmission method according to an embodiment of the present disclosure is applied;
fig. 3 is a schematic diagram of a system architecture to which a data transmission method according to an embodiment of the present disclosure is applied;
fig. 4 is a schematic diagram of a hardware structure of a device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a scene example of a data transmission method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a scene example of a data transmission method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a data transmission method according to an embodiment of the present application;
fig. 8 is a schematic diagram of a data transmission method according to an embodiment of the present application;
fig. 9 is a schematic structural component diagram of an apparatus according to an embodiment of the present application.
Detailed Description
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a exists singly, A and B exist simultaneously, and B exists singly, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically stated. The term "coupled" includes both direct and indirect connections, unless otherwise noted.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the application provides a data transmission method, which is suitable for a system shown in fig. 1. As shown in fig. 1, the system includes a device 100 and a device 200, and the device 100 transmits data to the device 200 by wireless communication. The device 100 or the device 200 may include a mobile phone, a tablet computer, a notebook computer, a Personal Computer (PC), an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a smart home device (e.g., a smart tv, a smart screen, a large screen, a smart speaker, etc.), a Personal Digital Assistant (PDA), a wearable device (e.g., a smart watch, a smart bracelet, etc.), an in-vehicle device, a virtual reality device, etc., which is not limited in this embodiment. The wireless communication includes mobile communication, internet, wireless Local Area Network (WLAN) (e.g., wireless fidelity (Wi-Fi) network), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like.
The device 100 sends data to the device 200 via wireless transmission. According to the data transmission method provided by the embodiment of the application, if the wireless transmission mode for sending data to the device 200 by the device 100 is near-field high-speed transmission, data transmission is performed based on a simplified transmission protocol. If the wireless transmission mode of the device 100 sending data to the device 200 is non-near-field high-speed transmission, data transmission is performed based on other transport layer protocols (such as TCP). Because the near-field high-speed transmission belongs to a short fertilizer pipeline (high bandwidth and short transmission distance), the packet loss rate is very low, and a complex confirmation mechanism, a retransmission mechanism, a congestion control mechanism and the like of TCP are not needed; and a simplified transmission protocol is adopted during near-field high-speed transmission, so that a complicated message forwarding process caused by data transmission by using TCP can be avoided, and the time delay of the near-field high-speed transmission is reduced.
The near-field high-speed transmission includes Wi-Fi Direct (also referred to as Wi-Fi Direct or Wi-Fi P2P) transmission, network transmission with few hops such as wireless local area network, or a high-speed transmission mode without operator network participation.
In one example, as shown in fig. 2, the mobile phone and the tablet computer establish a Wi-Fi direct channel, and perform data interaction through the Wi-Fi direct channel, that is, the mobile phone and the tablet computer transmit interaction data at a high speed through a near field.
In another example, as shown in fig. 3, devices such as a mobile phone, a tablet computer, a television, and a PC access the same router to form a local area network. And data interaction between the devices in the local area network, namely near-field high-speed transmission. It can be understood that the data interaction between the devices in the local area network includes data forwarding between the devices in the local area network through the router, and data interaction is performed. It should be noted that fig. 3 exemplifies a case where devices such as a mobile phone, a tablet computer, a television, and a PC access the same router to form a local area network. In other examples, multiple routers may be included in a local area network, and devices within the local area network may belong to the same network segment. The near field high speed transmission comprises data interaction between devices which are accessed to different routers in the same local area network. And establishing a Wi-Fi channel between the devices in the local area network, and transmitting data through the Wi-Fi channel. In some examples, a device accessing a local area network starts a Wi-Fi Access Point (AP) mode, establishes a Wi-Fi channel; in other examples, a device accessing a local area network initiates a Wi-Fi Station (STA) mode, establishing a Wi-Fi channel.
It should be noted that, in some scenarios, both a Wi-Fi direct channel and a Wi-Fi channel in the local area network may be established between the device 100 and the device 200.
Non-near-field high speed transmission includes far field transmission; for example, a mobile phone, a tablet computer, a television or a PC in the lan performs data interaction with a device not belonging to the lan. The non-near-field high-speed transmission further comprises near-field low-speed transmission; for example, a cell phone sends data to a PC via bluetooth.
By way of example, fig. 4 shows a schematic diagram of the structure of the apparatus 100 described above. As shown in fig. 4, the apparatus 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 170, and the like. The sensor module may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the apparatus 100. In other embodiments of the present application, the apparatus 100 may include more or fewer components than illustrated, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The I2S interface may be used for audio communication. The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. A MIPI interface may be used to connect processor 110 with peripheral devices. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. USB interface 130 may be used to connect a charger to charge device 100 and may also be used to transfer data between device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not limit the structure of the apparatus 100. In other embodiments of the present application, the apparatus 100 may also adopt different interface connection manners or a combination of a plurality of interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives an input of the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In other embodiments, the power management module 141 may be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication and the like applied on the device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through an audio device or displays images or videos through a display screen. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (infrared, IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that device 100 can communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the apparatus 100 is in frequency bin selection, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The device 100 may support one or more video codecs. In this way, the device 100 can play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent learning of the device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The internal memory 121 may include one or more Random Access Memories (RAMs) and one or more non-volatile memories (NVMs).
The random access memory may include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), such as fifth generation DDR SDRAM generally referred to as DDR5 SDRAM, and the like.
The nonvolatile memory may include a magnetic disk storage device, a flash memory (flash memory). The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operation principle, may include single-level cells (SLC), multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), etc. according to the storage unit potential order division, and may include universal FLASH memory (UFS), embedded multimedia memory cards (eMMC), etc. according to the storage specification division.
The external memory interface 120 may be used to connect an external nonvolatile memory to implement the storage capability of the expansion device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are saved in an external nonvolatile memory.
The data transmission method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
Illustratively, device 100 sends device 200 data for applications on device 100; i.e. the device 100 is a transmitting device and the device 200 is a receiving device.
In one scenario, when the device 100 sends application data to the device 200, a Wi-Fi channel (for example, a Wi-Fi P2P mode or a Wi-Fi AP mode or a Wi-Fi STA mode channel) is already established between the device 100 and the device 200, and the device 100 sends the application data to the device 200 through the already established Wi-Fi channel based on the abbreviated transmission protocol.
Illustratively, as shown in fig. 5, the interface 101 of the handset 100 includes a plurality of pictures. The user can select a picture and share the picture to other equipment. For example, the user clicks on the picture 102 and selects the picture 102. Interface 101 also includes a sharing list that includes one or more names (e.g., device names, user names, etc.). The user can select a name in the sharing list and share the selected picture to the device corresponding to the name. Illustratively, the sharing list includes a "cell phone of user 1" button 103 and a "tablet of user 2" button 104. The "user 1's handset" and "user 2's tablet" are names of devices stored by the handset 100 that have established a wireless connection with the handset 100. For example, "user 1's phone" is the name of the phone 300, and "user 2's tablet" is the name of the tablet 400.
In one example, the handset 100 and the handset 300 discover each other via near field communication (NFC, bluetooth, etc.) and establish a Wi-Fi channel. Clicking the picture 102 by the user, and selecting the picture 102; and clicks on the "user 1's cell phone" button 103 and selects the "user 1's cell phone" button 103. The mobile phone 100 receives an operation of selecting the "mobile phone of user 1" button 103 by the user, and determines a corresponding device (the mobile phone 300) according to the device identifier corresponding to the "mobile phone of user 1". The handset 100 determines that a Wi-Fi channel has been established with the handset 300 and sends the picture 102 to the handset 300 over the established Wi-Fi channel based on the reduced transmission protocol.
In one example, tablet 400 does not enable bluetooth or NFC functionality. Clicking the picture 102 by the user, and selecting the picture 102; and clicks on the "user 2 tablet" button 104, selecting the "user 2 tablet" button 104. The mobile phone 100 receives an operation of the user selecting the "tablet of user 2" button 104, and determines a corresponding device (the tablet 400) according to the device identifier corresponding to the "tablet of user 2". The handset 100 determines that the tablet 400 cannot be discovered by a close range communication means (such as bluetooth, NFC, etc.). The handset 100 sends the picture 102 to the tablet 400 over the internet based on TCP.
In one scenario, when the device 100 transmits application data to the device 200, the device 100 discovers the device 200 through a near field communication method, establishes a Wi-Fi channel (e.g., a Wi-Fi P2P mode, a Wi-Fi AP mode, or a Wi-Fi STA mode channel), and the device 100 transmits the application data to the device 200 through the established Wi-Fi channel based on a simplified transmission protocol.
Illustratively, as shown in fig. 6, the interface 101 of the handset 100 includes a plurality of pictures. The user can select a picture and share the picture to other equipment. For example, the user clicks on the picture 102 and selects the picture 102. Interface 101 also includes a sharing list that includes one or more names (e.g., device names, user names, etc.). The user can select a name in the sharing list and share the selected picture to the device corresponding to the name. The interface 101 also includes a "more" button 105. The user may select the "more" button 105 to locate devices that can discover each other with the handset 100.
In one example, the user clicks on the picture 102, selecting the picture 102; and click the "more" button 105. The mobile phone 100 receives an operation of clicking the "more" button 105 by the user, and searches for the device through a short-range communication means (such as bluetooth, NFC, etc.). For example, the cell phone 100 discovers with the cell phone 500 via bluetooth and displays the "cell phone of user 3" button 106 on the interface 101. The user clicks the "user 3 cell phone" button 106 and selects the "user 3 cell phone" button 106. The mobile phone 100 receives an operation of selecting the "mobile phone of user 3" button 106 by the user, and determines a corresponding device (the mobile phone 500) according to the device identifier corresponding to the "mobile phone of user 3"; a Wi-Fi channel (such as a Wi-Fi P2P mode channel) is established with the handset 500. The handset 100 sends the picture 102 to the handset 500 over the established Wi-Fi channel based on the reduced transport protocol.
In one implementation, as shown in FIG. 7, an application of a sending device (such as device 100) calls a system framework interface to send data to a receiving device; the input parameters include indication information indicating a device identification of the receiving device, such as device 200. A scene recognition unit in the system framework determines a wireless transmission mode according to the equipment identification of the receiving equipment; the wireless transmission modes comprise near-field high-speed transmission (Wi-Fi channel transmission) and non-near-field high-speed transmission. In one implementation, if it is determined that the receiving device and the sending device establish a near-field high-speed transmission channel (such as a Wi-Fi direct channel or a Wi-Fi channel in a local area network); or the receiving equipment and the sending equipment are discovered through near field communication modes such as NFC, bluetooth, infrared and the like so as to establish a near field high-speed transmission channel; or the receiving equipment and the sending equipment belong to a converged networking or trust ring comprising near-field high-speed transmission; the wireless transmission mode is determined to be near-field high-speed transmission. If the scene recognition unit determines that the transmission is near-field high-speed transmission, data is sent to the receiving device based on a simplified transmission protocol; the time delay of near-field high-speed transmission is reduced under the condition of ensuring the reliability of data transmission. If the scene recognition unit determines that the transmission is non-near-field high-speed transmission, data are sent to the receiving device based on other transmission layer protocols; for example, TCP may be used to ensure data transmission reliability; for example, a User Datagram Protocol (UDP) may be used to ensure fast response and low latency for data transmission.
The simplified transport protocol is a reliable server/client (C/S) mode transport protocol. In one implementation, one or more socket channels are established between a sending device (client) and a receiving device (server) prior to sending application data. Illustratively, table 1 shows an example of an interface function for creating a server socket and an interface function for creating a client socket.
TABLE 1
Figure BDA0003190804910000081
The receiving equipment calls StartServer (), creates a server and returns a socket identifier; and the sending equipment calls the StartClient (), creates a client communicated with the server and returns a socket identifier, and establishes a socket channel between the sending equipment and the receiving equipment. For example, a socket channel is established for each service on the sending device. The sending equipment also stores the corresponding relation between the equipment identification of the receiving equipment and the socket identification.
After the socket channel is established, the application on the sending equipment calls a data sending interface of the simplified transmission protocol to send data to the receiving equipment. The application data includes data types such as message data, byte data, stream data, or file data. In one implementation, the message data, the byte data, the stream data, and the file data each provide a data transmission interface. The application may invoke a message sending interface of the abbreviated transmission protocol to transmit message data, a byte sending interface of the abbreviated transmission protocol to transmit byte data, a stream sending interface of the abbreviated transmission protocol to transmit stream data, or a file sending interface of the abbreviated transmission protocol to transmit file data.
Illustratively, table 2 shows an example of a data transmission interface function that simplifies the transmission protocol.
TABLE 2
Figure BDA0003190804910000091
In another implementation, a data transmission interface function may also be provided for transmitting message data, byte data, stream data or file data; the input parameters of the data transmission interface function include a data type for indicating that the transmitted application data is message data, byte data, stream data or file data.
Optionally, the receiving device may call an interface provided by the system framework to set a saving path of the received application data. Illustratively, table 3 shows an example of an interface function for setting up an application data storage path on a receiving device.
TABLE 3
Figure BDA0003190804910000092
It should be noted that the above-mentioned interface functions are only examples. In other embodiments, the interface function may take other forms. For example, the input parameter of the file sending interface may include an application data storage path parameter, and when the client calls the file sending interface to send the file data, the client may specify a storage path of the file data at the server.
In one implementation, the simplified transport protocol includes a priority control mechanism that transmits application data in order of transmission priority from high to low. For example, the transmission priority of the application data is determined according to the data type of the application data. Illustratively, the transmission priority of the application data is in the order from high to low: message data > stream data > byte data > file data. In one implementation, according to a priority control mechanism, the application data to be sent in the application data sending queue are sorted from high sending priority to low sending priority, and the application data with high sending priority is sent preferentially. In one example, data to be sent of the same application is sorted from high to low in transmission priority, that is, data to be sent of each application is sorted from high to low in transmission priority respectively. In another example, data to be sent of different applications in the sending queue are sorted in order of sending priority from high to low. Therefore, the situation that large file data or byte data occupies high bandwidth for a long time and influences the timely sending of the message can be avoided. For example, a video on a mobile phone is transmitted to a large screen for playing by using streaming transmission, and the data type of the video is streaming data. In the process of sending the stream data, the mobile phone sends control messages such as volume adjustment, playing progress adjustment and the like to the large screen. Because the sending priority of the message data is greater than the sending priority of the stream data, the control message data such as volume adjustment, playing progress adjustment and the like are sent in preference to the video stream data which is not sent, the volume adjustment, the playing progress adjustment and the like can be realized in the video playing process, and the control message is ensured to be sent in time.
In one implementation, the simplified transport protocol includes a message acknowledgement mechanism. The simplified transmission protocol divides application data to be transmitted into data messages, and numbers each data message. If the receiving device confirms that the nth data message of the application data is not received from the sending device, sending a first message (such as a Non-acknowledgement (NACK) message) to the sending device; wherein the first message includes the number of the data packet that was not received. And the sending equipment receives the first message and retransmits the data message corresponding to the number to the receiving equipment according to the number of the data message which is not received in the first message. Illustratively, each data packet of application data to be sent on the sending device is numbered, and written into the sending queue according to the numbering sequence for sending. The receiving equipment writes each received data message into a receiving queue after sequencing according to the number; if the serial numbers of the data messages in the receiving queue are continuous, the data messages in the receiving queue are sequentially written into a buffer area read by the service; and if the number of the data message in the receiving queue is discontinuous, the receiving equipment replies a NACK message, wherein the NACK message comprises the number of the data message which is not received. And the transmitting equipment receives the NACK message and retransmits the corresponding data message according to the number in the NACK message. Generally, the packet loss rate in a near-field high-speed transmission scenario is low, and compared with a mechanism for confirming each message in TCP, the number of message interactions between a sending device and a receiving device can be reduced by using a message confirmation mechanism of a simplified transmission protocol in the near-field high-speed transmission scenario.
In one implementation, the simplified transport protocol includes a congestion control mechanism. And the sending equipment dynamically adjusts the congestion window according to the data volume to be sent and the number of the received first messages in the application data sending queue. In one example, if the amount of data to be sent by the application data sending queue is greater than M (M is a preset value, such as M = 10) times the amount of data transmitted by the network in a unit time (e.g., measured in seconds), and the number of first messages (such as NACK messages) received in the unit time is less than a first preset threshold (such as 10), the congestion window is increased (e.g., the congestion window is adjusted to 2 times the current congestion window). In one example, if the amount of data transmitted by the network per unit time (e.g., measured in seconds) is less than a second predetermined threshold, or the number of first messages (e.g., NACK messages) received per unit time is greater than a third predetermined threshold (which may be the same or different than the first predetermined threshold), the congestion window is decreased (e.g., adjusted to half the amount of data transmitted by the network per unit time). Optionally, if the congestion window is decreased by the first duration, it is not satisfied that the amount of data transmitted by the network in unit time (for example, in seconds) is less than the second preset threshold, and it is not satisfied that the number of received first messages (for example, NACK messages) in unit time is greater than the third preset threshold, the application data sending rate is increased (for example, the application data sending rate is increased by 50%). The larger the congestion window is, the larger the number of data messages sent at one time is, that is, the higher the sending rate of application data is.
In other implementations, the simplified transport protocol may further include: and load balancing is carried out on different socket channels for near-field high-speed transmission, the bandwidth of one socket channel is dynamically adjusted, and the like. The simplified transport protocol may further include: load balancing is carried out on different physical links (such as Wi-Fi direct channels, wi-Fi channels among devices in a local area network and the like) of near-field high-speed transmission, or multi-channel transmission and the like are carried out.
The reduced transport protocol adds a reduced transport protocol header to each data packet. In one example, the simplified transport protocol header reduces at least one of the following fields compared to the TCP/IP header:
a) The transport layer header of the reduced transmission protocol is reduced by at least one of the following fields compared to a Transmission Control Protocol (TCP) header: an acknowledgement number (32 bit), a header length (4 bit), a reserved field (6 bit), a flag bit field (U, A, P, R, S, F) (6 bit), a checksum (16 bit), an urgent pointer (16 bit), and options (0-40 bytes). Illustratively, the TCP headers are shown in Table 4, and the transport layer headers of a simplified transport protocol are shown in Table 5.
TABLE 4
Figure BDA0003190804910000111
TABLE 5
Figure BDA0003190804910000112
b) The network layer message header of the simplified transmission protocol is reduced by at least one of the following fields compared with a network protocol (IP) message header: an identifier (16 bit), a flag bit (3 bit), a segment offset (13 bit), a protocol (8 bit), a checksum (16 bit), and options (0-40 bytes).
Illustratively, the IP headers are shown in table 6, and the network layer headers of a simplified transport protocol are shown in table 7.
TABLE 6
Figure BDA0003190804910000113
TABLE 7
Figure BDA0003190804910000114
It will be appreciated that the above reduction refers to the direct removal of fields. The fields are directly removed, and correspondingly, the processing flow of the removed fields can be simplified or deleted.
For example, the transport layer headers of the reduced transport protocol have acknowledgement numbers removed from them compared to the TCP headers. The acknowledgement number is used for the message acknowledgement mechanism of TCP. Illustratively, the sending device sends a message to the receiving device based on TCP, where an acknowledgement number in a message header of the message is 1, and is used to instruct the receiving device to reply an ACK message to the sending device after receiving the message. The receiving equipment receives the message, determines that the acknowledgement number in the header of the received message is 1, and replies an ACK message to the sending equipment; the value of the acknowledgement number of the message header in the ACK message is the sum of the value of the data number in the message header of the received message and the data length of the message. It can be understood that the transport layer packet header of the simplified transmission protocol does not include an acknowledgement number, and accordingly, in the process of sending a packet to the receiving device by the sending device based on the simplified transmission protocol, the sending device and the receiving device may delete the processing of the above-mentioned packet acknowledgement mechanism based on the acknowledgement number.
It should be noted that, in an implementation manner, to ensure the integrity of the header, the simplified transport protocol header includes a checksum of 16 bits (i.e., 2 bytes). Therefore, compared with a TCP/IP message header, the simplified transmission protocol message header can save 16-96 bytes, can improve the data carrying capacity of the data message, and can improve the effective load rate of the data message.
In some embodiments, as shown in fig. 8, after the application data is processed based on the priority control mechanism, the congestion control mechanism, and/or the message acknowledgement mechanism of the abbreviated transport protocol, the data message is sent to the receiving device through the physical link after adding the abbreviated transport protocol header based on the abbreviated transport protocol kernel. Based on the simplified transmission protocol to transmit the application data, the complex confirmation mechanism, retransmission mechanism and congestion control mechanism of the TCP can be avoided, and the time delay of near-field high-speed transmission is reduced.
In other embodiments, after the application data is processed based on the priority control mechanism, the congestion control mechanism, and/or the message acknowledgement mechanism of the simplified transport protocol, the application data may be sent to the receiving device through the physical link after adding the UDP packet header based on the UDP core.
In other embodiments, after the application data is processed based on the priority control mechanism, the congestion control mechanism, and/or the message acknowledgement mechanism of the abbreviated transmission protocol, the application data may be sent to the receiving device through the physical link after adding the TCP message header based on the TCP core.
It is understood that the above-described apparatus includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
In the embodiment of the present application, the device may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In an example, please refer to fig. 9, which shows a schematic structural diagram of a possible apparatus involved in the above embodiments. The apparatus 700 comprises: a processing unit 701, a storage unit 702 and a communication unit 703.
The processing unit 701 is configured to control and manage an operation of the device 700. For example, the method may be used to determine a wireless transmission mode, process application data based on a simplified transmission protocol (e.g., perform priority control on application data, perform congestion control on application data, perform packet acknowledgement, etc.), process application data based on TCP, process application data based on UDP, and/or perform other processing steps in this embodiment.
The memory unit 702 is used for storing program codes and data of the apparatus 700. For example, it may be used to save the correspondence between the identifier of the receiving device and the identifier of the socket, and the like.
The communication unit 703 is used to enable the device 700 to communicate with other electronic devices. For example, it may be used to discover each other, establish Wi-Fi direct with the receiving device; or access to a local area network; or sending application data to a receiving device via near field high speed transmission, etc.
Of course, the unit modules in the apparatus 700 include, but are not limited to, the processing unit 701, the storage unit 702, and the communication unit 703. For example, a display unit, a power supply unit, and the like may also be included in the device 700. The display unit is used to display an interface of the device 700, and the power supply unit is used to supply power to the device 700.
The processing unit 701 may be a processor or a controller, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The storage unit 702 may be a memory. The communication unit 703 may be a transceiver, a transceiver circuit, or the like.
For example, the processing unit 701 is a processor (such as the processor 110 shown in fig. 4), the storage unit 702 may be a memory (such as the internal memory 121 shown in fig. 4), and the communication unit 703 may be referred to as a communication interface, and includes a mobile communication module (such as the mobile communication module 150 shown in fig. 4) and a wireless communication module (such as the wireless communication module 160 shown in fig. 4). The device 700 provided by the embodiment of the present application may be the device 100 shown in fig. 4. Wherein the above-mentioned processors, memories, communication interfaces, etc. may be connected together, e.g. by a bus.
Embodiments of the present application further provide a computer-readable storage medium, in which computer program codes are stored, and when a processor executes the computer program codes, the electronic device executes the method in the foregoing embodiments.
Embodiments of the present application further provide a computer program product, which, when run on a computer, causes the computer to execute the method in the above embodiments.
The device 700, the computer-readable storage medium, or the computer program product provided in the embodiment of the present application are all configured to execute the corresponding methods provided above, and therefore, the beneficial effects that can be achieved by the device 700, the computer-readable storage medium, or the computer program product may refer to the beneficial effects in the corresponding methods provided above, which are not described herein again.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A data transmission method is applied to a first device, and is characterized by comprising the following steps:
when the first device sends application data to the second device,
if the first device and the second device establish a first wireless fidelity Wi-Fi channel, the first device sends the application data to the second device through the first Wi-Fi channel based on a simplified transmission protocol;
alternatively, the first and second liquid crystal display panels may be,
if the first equipment finds the second equipment through a near field communication mode, establishing a second wireless fidelity Wi-Fi channel, and sending the application data to the second equipment through the second Wi-Fi channel based on a simplified transmission protocol;
wherein the simplified transport protocol comprises:
the transport layer header of the simplified transport protocol is reduced by at least one of the following fields compared with the transport control protocol header:
an acknowledgment number, a header length, a reserved field, a flag bit field, a checksum, an emergency pointer, and an option;
and/or the presence of a gas in the gas,
the network layer message header of the simplified transmission protocol is reduced by at least one of the following fields compared with the network protocol message header:
identification, flag, segment offset, protocol, checksum, options.
2. The method of claim 1, wherein if the first device and the second device have established a first Wi-Fi channel, the first device sending the application data to the second device over the first Wi-Fi channel based on a reduced transmission protocol comprises:
the first equipment discovers the second equipment in a near field communication mode and establishes a first Wi-Fi channel between the first equipment and the second equipment;
the first device receives a first operation that a user shares application data of the first device with the second device, and in response to the first operation, the first device sends the application data to the second device through the first Wi-Fi channel based on a simplified transmission protocol.
3. The method of claim 1, wherein if the first device discovers the second device via close-range communication, establishing a second Wi-Fi channel, and sending the application data to the second device via the second Wi-Fi channel based on a reduced transmission protocol comprises:
the first equipment receives a second operation of sharing the application data of the first equipment by a user, responds to the second operation, discovers the second equipment by the first equipment in a near field communication mode, and establishes a second Wi-Fi channel between the first equipment and the second equipment;
the first device receives a third operation that a user shares application data of the first device with the second device, and in response to the third operation, the first device sends the application data to the second device through the second Wi-Fi channel based on a simplified transmission protocol.
4. The method of any of claims 1-3, wherein the Wi-Fi channel comprises a Wi-Fi P2P mode based channel, a Wi-Fi AP mode based channel, or a Wi-Fi STA mode based channel.
5. The method according to any one of claims 1 to 4, wherein the close range communication means comprises NFC, bluetooth or infrared.
6. The method of any of claims 1-5, wherein before the first device sends the application data to the second device, the method further comprises:
and the first equipment sorts the application data of the first equipment according to the sequence of the sending priority from high to low.
7. The method of claim 6, wherein the transmission priority is determined according to a data type of the application data, the data type including message data, stream data, byte data, and file data.
8. The method of claim 7, wherein the transmission priority of the following data types is in order from high to low: message data, stream data, byte data, file data.
9. The method according to any one of claims 1-8, further comprising:
the first device receiving a first message from the second device;
and the first equipment retransmits the data message corresponding to the data message number to the second equipment according to the data message number in the first message.
10. The method of claim 9, further comprising:
and the first equipment adjusts a congestion window for sending the data message according to the quantity of the application data to be sent and the quantity of the first messages received in unit time.
11. An apparatus, characterized in that the apparatus comprises:
a communication interface, a memory, the memory including a memory and an external storage;
a processor invoking one or more computer programs stored in the memory, the one or more computer programs comprising instructions that, when executed by the processor, cause the apparatus to perform:
when the device sends application data to the second device,
if the first wireless fidelity Wi-Fi channel is established between the equipment and the second equipment, the equipment sends the application data to the second equipment through the first Wi-Fi channel based on a simplified transmission protocol;
alternatively, the first and second electrodes may be,
if the device finds the second device through a near field communication mode, a second wireless fidelity Wi-Fi channel is established, and the application data is sent to the second device through the second Wi-Fi channel based on a simplified transmission protocol;
wherein the simplified transport protocol comprises:
the transport layer header of the simplified transport protocol is reduced by at least one of the following fields compared with the transport control protocol header:
an acknowledgement number, a header length, a reserved field, a flag bit field, a checksum, an emergency pointer, and a selectable option;
and/or the presence of a gas in the atmosphere,
the network layer message header of the simplified transmission protocol is reduced by at least one of the following fields compared with the network protocol message header:
identification, flag, segment offset, protocol, checksum, optional.
12. The device according to claim 11, wherein, if the device and the second device have established a first Wi-Fi channel, the sending, by the device and based on a reduced transmission protocol, the application data to the second device through the first Wi-Fi channel specifically includes:
the equipment discovers the second equipment in a near field communication mode, and establishes a first Wi-Fi channel between the equipment and the second equipment;
the device receives a first operation that a user shares application data of the device with the second device, and in response to the first operation, the device sends the application data to the second device through the first Wi-Fi channel based on a simplified transmission protocol.
13. The device according to claim 11, wherein the establishing a second Wi-Fi channel if the device discovers the second device through near field communication, and the sending the application data to the second device through the second Wi-Fi channel based on a reduced transmission protocol specifically includes:
the equipment receives a second operation of sharing the application data of the equipment by the user, responds to the second operation, discovers the second equipment by the equipment in a near field communication mode, and establishes a second Wi-Fi channel between the equipment and the second equipment;
the device receives a third operation that a user shares application data of the device with the second device, and in response to the third operation, the device sends the application data to the second device through the second Wi-Fi channel based on a simplified transmission protocol.
14. The device according to any of claims 11-13, wherein the Wi-Fi channel comprises a Wi-Fi P2P mode based channel, or a Wi-Fi AP mode based channel, or a Wi-Fi STA mode based channel.
15. The device according to any of claims 11-14, wherein the close range communication means comprises NFC, bluetooth or infrared.
16. An apparatus according to any of claims 11-15, wherein the instructions, when executed by the processor, further cause the apparatus to perform:
the device sorts the application data of the device in the order of the transmission priority from high to low.
17. The apparatus of claim 16, wherein the transmission priority is determined according to a data type of application data, the data type including message data, stream data, byte data, and file data.
18. The apparatus of claim 17, wherein the transmission priority of the following data types is in order from high to low: message data, stream data, byte data, file data.
19. The apparatus of any of claims 11-18, wherein the instructions, when executed by the processor, further cause the apparatus to perform:
the device receiving a first message from the second device;
and the equipment retransmits the data message corresponding to the data message number to the second equipment according to the data message number in the first message.
20. The apparatus of claim 19, wherein the instructions, when executed by the processor, further cause the apparatus to perform:
the equipment adjusts a congestion window for sending the data message according to the number of the application data to be sent and the number of the first messages received in unit time.
21. A computer-readable storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
22. A computer program product, characterized in that it causes a computer to carry out the method according to any one of claims 1-10, when said computer program product is run on the computer.
CN202110877284.2A 2021-04-26 2021-07-31 Data transmission method and equipment Pending CN115250453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/084184 WO2022228015A1 (en) 2021-04-26 2022-03-30 Data transmission method, and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021104561912 2021-04-26
CN202110456191 2021-04-26

Publications (1)

Publication Number Publication Date
CN115250453A true CN115250453A (en) 2022-10-28

Family

ID=83696449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110877284.2A Pending CN115250453A (en) 2021-04-26 2021-07-31 Data transmission method and equipment

Country Status (2)

Country Link
CN (1) CN115250453A (en)
WO (1) WO2022228015A1 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3183343B2 (en) * 1999-02-26 2001-07-09 日本電気株式会社 Data communication method, terminal device, relay device, data communication system and recording medium thereof
US20090016334A1 (en) * 2007-07-09 2009-01-15 Nokia Corporation Secured transmission with low overhead
CN102186207A (en) * 2011-04-06 2011-09-14 重庆大学 Cross-layer method for reducing TCP repeated response under wireless local area network
US9762508B2 (en) * 2014-10-02 2017-09-12 Microsoft Technology Licensing, Llc Relay optimization using software defined networking
CN104618961A (en) * 2015-01-21 2015-05-13 普天信息技术有限公司 Single-channel TCP/ IP header compression method and system for intelligent power grid
EP3791528A1 (en) * 2018-05-11 2021-03-17 Telefonaktiebolaget LM Ericsson (publ) Systems and methods for downlink control information (dci) size alignment
US11184799B2 (en) * 2018-09-27 2021-11-23 Apple Inc. WiFi TCP performance in multi-radio coexistence cases
CN111147483B (en) * 2019-12-25 2021-11-12 武汉绿色网络信息服务有限责任公司 Lossy compression storage method and device for original network data packet

Also Published As

Publication number Publication date
WO2022228015A1 (en) 2022-11-03

Similar Documents

Publication Publication Date Title
WO2022143034A1 (en) Method for transmitting screen-projection audio and video data, and related devices
WO2023030152A1 (en) Network switching method, and related device
WO2022001147A1 (en) Positioning method and electronic device
WO2023020028A1 (en) Service processing method and apparatus in terminal device supporting double cards
WO2023011362A1 (en) Control method and system for outbound transport in beidou communication system, and related apparatus
KR20210049335A (en) Method of translating ip packet for tethering service and communication system performing the same
WO2022179468A1 (en) Data processing method and electronic device
CN115694598A (en) Multiframe fusion transmission method and related device in Beidou communication system
US11341981B2 (en) Method for processing audio data and electronic device therefor
WO2023011605A1 (en) Mail download and query method in beidou communication system, and system and related apparatus
WO2022228015A1 (en) Data transmission method, and device
WO2023103830A1 (en) Satellite short message multicast method and related apparatus
WO2023273763A1 (en) Video data transmission method and device
WO2021254211A1 (en) Electronic device and method for wireless communication, and computer-readable storage medium
CN115842799A (en) Mailbox general query method, system and related device in Beidou communication system
CN114765831A (en) Method and related equipment for pre-applying uplink resources
WO2023039890A1 (en) Video transmission method and electronic device
CN115037671B (en) Multi-path aggregation scheduling method and electronic equipment
WO2023065782A1 (en) Data transmission method and electronic device
WO2021244160A1 (en) Communication method and apparatus
WO2023011594A1 (en) Mailbox profile query method and system in beidou communication system, and related device
WO2022068486A1 (en) Data sending method, electronic device, chip system, and storage medium
WO2023011329A1 (en) Data transmission control method and system in beidou communication system, and related apparatus
WO2023001044A1 (en) Data processing method and electronic device
WO2024027674A1 (en) Communication method and device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination