WO2024066757A1 - 数据帧传输方法、装置及可读存储介质 - Google Patents
数据帧传输方法、装置及可读存储介质 Download PDFInfo
- Publication number
- WO2024066757A1 WO2024066757A1 PCT/CN2023/111801 CN2023111801W WO2024066757A1 WO 2024066757 A1 WO2024066757 A1 WO 2024066757A1 CN 2023111801 W CN2023111801 W CN 2023111801W WO 2024066757 A1 WO2024066757 A1 WO 2024066757A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data frame
- module
- address
- data
- application
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 43
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000004044 response Effects 0.000 claims abstract description 11
- 238000010586 diagram Methods 0.000 description 16
- 239000011521 glass Substances 0.000 description 14
- 238000004891 communication Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 10
- 239000004984 smart glass Substances 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 6
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910001416 lithium ion Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/08—Access point devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the technical field of data transmission, and more specifically, to a data frame transmission method, device and readable storage medium.
- WiFi direct connection can be called WiFi peer-to-peer (P2P) connection, which enables terminal devices to easily connect to each other without the need for a wireless access point (AP) as an intermediary.
- WiFi direct connection has a wide range of applications in the field of terminal devices, such as WiFi direct connection between electronic devices and smart speakers, WiFi direct connection between electronic devices and projectors, or direct connection between electronic devices and head-mounted display devices. It allows users to transfer calls on electronic devices to smart speakers, and also allows users to play videos on electronic devices on projectors and head-mounted display devices.
- an application is run on both the electronic device and the head-mounted display device.
- the application on the electronic device can download data through WiFi, encode the data, and then send it to the head-mounted display device through WiFi direct connection, and then the application on the head-mounted display device decodes and displays it.
- One object of the present application is to provide a new data frame transmission method, device and readable storage medium.
- an embodiment of the present application provides a data frame transmission method, comprising: upon receiving a data request sent by an application, obtaining first port information occupied by the application; in response to the data request, obtaining a data frame corresponding to the data request, wherein the data frame includes second port information, and the second port information includes a source address and a destination address; in the second When the port information corresponds to the first port information, the source address of the data frame is replaced with the address of the first module, and the destination address of the data frame is replaced with the address of the second module to obtain modified address information; and the data frame is sent based on the connection channel and the modified address information.
- the obtaining the data frame corresponding to the data request includes: when the network mode of the third module is a WiFi mode, obtaining the data frame corresponding to the data request through the WiFi network.
- the data frame transmission method further includes: sending the data frame to the application when the data frame arrives at a third module.
- the data frame transmission method further includes: establishing a connection channel between the first module and the second module.
- connection channel is a point-to-point connection channel based on a P2P network.
- an embodiment of the present application provides a data frame transmission device, characterized in that it includes: a first acquisition module, used to obtain the first port information occupied by the application when a data request sent by the application is received; a second acquisition module, used to respond to the data request, and obtain the data frame corresponding to the data request, wherein the data frame includes second port information, and the second port information includes a source address and a destination address; a replacement module, used to replace the source address of the data frame with the address of the first module, and replace the destination address of the data frame with the address of the second module when the second port information corresponds to the first port information, so as to obtain the modified address information; a first sending module, used to send the data frame based on the connection channel and the modified address information.
- the second acquisition module is specifically used to: when the network mode of the third module is a WiFi mode, acquire the data frame corresponding to the data request through the WiFi network.
- the data frame transmission device also includes: a second sending module, used to send the data frame to the application when the data frame arrives at a third module; and/or an establishing module, used to establish a connection channel between the first module and the second module.
- a second sending module used to send the data frame to the application when the data frame arrives at a third module
- an establishing module used to establish a connection channel between the first module and the second module.
- connection channel is a point-to-point connection channel based on a P2P network.
- a computer-readable storage medium on which computer instructions are stored.
- the computer instructions are executed by a processor, the data frame transmission method according to the first aspect is executed.
- the port information of the application when a data request is received from an application, the port information of the application is obtained, and in response to the data request, the corresponding data frame is obtained.
- the port information in the data frame corresponds to the first port information
- the original address of the data frame is replaced with the address of the first module
- the destination address is replaced with the address of the second module
- the data frame is sent according to the address.
- FIG1 is a schematic block diagram of a computing device that can be used to implement an embodiment of the present application
- FIG2 is a schematic block diagram of a system that can be used to implement an embodiment of the present application
- FIG3 shows a flow chart of a data frame transmission method according to an embodiment of the present application
- FIG4 is a schematic diagram showing an example of data frame transmission according to an embodiment of the present application.
- FIG5 shows a schematic structural diagram of a data frame transmission device according to an embodiment of the present application.
- FIG1 shows a hardware schematic block diagram of a computing device according to another embodiment.
- computing device 100 includes a processor 102 and a readable storage medium 104 .
- the computing device 100 may further include a display screen 110, a user interface 112, a camera 114, an audio/video interface 116, a sensor 118, a communication component 120, etc.
- the computing device 100 may further include a power management chip 106 and a battery 108, etc.
- the computing device 100 may be various smart devices, such as smart phones, virtual reality glasses, augmented reality glasses, etc.
- the various components shown in FIG1 are merely schematic.
- the computing device 100 may include one or more of the components shown in FIG1, but does not necessarily include all of the components in FIG1.
- the computing device 100 shown in FIG1 is merely illustrative and is by no means intended to limit the embodiments herein, their applications, or uses.
- the processor 102 may be any of a variety of processors.
- the readable storage medium 104 may store underlying software, system software, application software, data, etc. required for the operation of the computing device 100.
- the readable storage medium 104 may include various forms of memory, such as ROM, RAM, Flash, etc.
- the display screen 110 may be a liquid crystal display screen, an OLED display screen, etc.
- the display screen 110 may be a touch screen.
- the user may perform input operations through the display screen 110.
- the user may also perform fingerprint recognition, etc. through the touch screen.
- the user interface 112 may include a USB interface, a lightning interface, a keyboard, etc.
- the camera 114 can be a single camera or multiple cameras. In addition, the camera 114 can be used for user's face recognition.
- the audio/video interface 116 may include, for example, a speaker interface, a microphone interface, an HDMI interface, or a Video transmission interface, etc.
- the sensor 118 may include, for example, a gyroscope, an accelerometer, a temperature sensor, a humidity sensor, a pressure sensor, etc.
- a gyroscope for example, an accelerometer, a temperature sensor, a humidity sensor, a pressure sensor, etc.
- the environment around the computing device may be determined through the sensor.
- the communication component 120 may include, for example, a WiFi communication component, a Bluetooth communication component, a 3G, 4G and 5G communication component, etc. Through the communication component 120, the computing device 100 may be arranged in a network.
- the power management chip 106 can be used to manage the power input to the computing device 100 and can also manage the battery 108 to ensure greater utilization efficiency.
- the battery 108 is, for example, a lithium-ion battery.
- the computing device shown in FIG. 1 is illustrative only and is in no way intended to limit the embodiments herein, their application, or uses.
- FIG. 2 is a schematic block diagram of a system that can be used to implement an embodiment of the present application.
- FIG. 2 shows a plurality of terminal devices 21, 23, smart glasses 22, 24, and a communication network 20.
- a plurality of servers 201, 202 may be provided in the network 20.
- Each of the terminal devices 21, 23, smart glasses 22, 24, and servers 201, 202 may be, for example, a computing device as shown in FIG. 1.
- a computing device according to an embodiment includes at least one processor and at least one readable storage medium.
- the at least one processor and at least one readable storage medium may be distributed in the terminal devices 21, 23, smart glasses 22, 24, and servers 201, 202.
- the readable storage medium stores executable instructions. When the processor executes the executable instructions, the executable instructions enable the processor to implement the method according to the embodiment.
- Servers 201, 202 may be used to assist in processing in the terminal devices 21, 23.
- Smart glasses 22 and smart glasses 24 can be connected to network 20, and can also be connected to terminal devices 21 and 22 respectively through communication methods such as Bluetooth.
- smart glasses 22 and smart glasses 24 are connected to terminal devices 21 and 22 respectively only through communication methods such as Bluetooth.
- the embodiment of the present application discloses a data frame transmission detection method, which can be executed by a first terminal, such as a mobile phone, etc., to send the data frame to a second terminal, such as a projector, AR glasses, VR glasses, etc. As shown in FIG3 , the method includes steps S11-S14.
- Step S11 upon receiving a data request sent by an application, obtaining information about a first port occupied by the application.
- the application may be an APK (Android application package) in the first terminal, and the application may send a data request for data that needs to be transmitted via WiFi direct connection to obtain relevant data.
- APK Android application package
- each application when each application obtains data through the network, such as through WiFi, it will occupy and monitor the port in the local network.
- the data frame downloaded from the network will carry the port number of the port. Through the port number, it can be determined which application obtained the data frame, so that the application can receive the data.
- the first terminal locally maintains a record table of process information and occupied ports to determine the corresponding relationship between the application program and the port.
- the first port information is information about the port occupied by the application to obtain data, and specifically, may include the port number or other label information, and corresponding IP address information, etc.
- a data request from an application when a data request from an application is received, before obtaining the information of the first port occupied by the application, it also includes establishing a connection channel between the first module and the second module.
- connection channel is a point-to-point connection channel based on a P2P network.
- the first module and the second module can be P2P network modules, wherein the first module is the P2P network module in the first terminal, and the second module is the P2P module in the second terminal.
- the first module and the second module can establish a P2P connection channel based on the WiFi network, and realize WiFi direct connection through the connection channel for data transmission.
- Step S12 in response to the data request, obtaining a data frame corresponding to the data request, wherein the data frame includes second port information, and the second port information includes a source address and a destination address.
- the corresponding data frame can be obtained through the wireless communication module in the first terminal.
- obtaining a data frame corresponding to the data request includes: when the network mode of the third module is a WiFi mode, obtaining a data frame corresponding to the data request through a WiFi network.
- the wireless communication module in the first terminal can obtain the first port information occupied by the application.
- the third module can be a wireless communication module, such as a WiFi module, and more specifically, it can be a station module in the WiFi module.
- the module can receive a data frame corresponding to the data request through a WiFi network, and send the corresponding data frame to the first module.
- the second port information is the port information contained in the data frame, and specifically, may include the port number or other tag information corresponding to the data frame. Through the port number or other tag information in the second port information, the port corresponding to the data frame can be known, and the application corresponding to the data frame can be obtained.
- the second port information may also include information such as the source address and destination address of the data frame. Among them, the source address is the source IP address of the data frame, and the destination address is the IP address of the first terminal receiving the data frame, such as the IP address of the station module.
- Step S13 when the second port information corresponds to the first port information, the source address of the data frame is replaced with the address of the first module, and the destination address of the data frame is replaced with the address of the second module to obtain modified address information.
- the second port information corresponds to the first port information, and the port number or other tag information in the second port information is consistent with the port number or other tag information in the first port information.
- the port number of the local network port occupied is 1000.
- the port number of the acquired data frame is 1000, it can be determined that the data frame is acquired by application A.
- the second port information corresponds to the first port information, and the port numbers or other tag information of the two satisfy the corresponding relationship.
- the port number of the local network port occupied is 1000.
- the port number of the port can be predetermined, and the port number of the corresponding data frame, such as 2000, can be determined when a data frame with a port number of 2000 is received.
- the data frame is acquired by application A.
- the source address of the data frame can be changed to the address of the first module, for example, the IP address of the P2P module of the same terminal as the third module, that is, the first terminal.
- the destination address of the data frame is changed to the address of the second module, for example, the IP address of the P2P module in the target terminal sent from the first terminal.
- Step S14 sending the data frame based on the connection channel and the modified address information.
- the data frame can be sent to the second module of the second terminal based on a channel between the first terminal and the second terminal, such as a P2P channel.
- the second module may directly send the data frame to an application in the second terminal for use.
- the application upon receiving a data request sent by an application, the application is obtained
- the port information of the first module is obtained, and in response to the data request, the corresponding data frame is obtained.
- the port information in the data frame corresponds to the first port information
- the original address of the data frame is replaced with the address of the first module
- the destination address is replaced with the address of the second module
- the data frame is sent according to the address.
- the WiFi protocol stack can directly forward the data, and the data can be directly transferred to the AR glasses without the need for the application to encode and send it, thereby improving the transmission efficiency, greatly reducing the transmission delay, and improving the user experience.
- the method further includes: when the data frame arrives at the third module, sending the data frame to the application.
- the third module can also send the data frame to the application of this terminal.
- the application of this terminal can use it locally in the terminal without encoding it and sending it to the second terminal, thereby meeting the diversified needs of users.
- a complete process can be shown in FIG. 4, where the first terminal is a mobile phone and the second terminal is an AR glasses.
- the P2P module in the WIFI module in the mobile phone can pre-establish a connection channel with the P2P module of the AR glasses.
- the application in the mobile phone sends a data request and obtains the occupied first port information.
- the station module in the mobile phone obtains the corresponding data frame from the WiFi hotspot, that is, the data frame corresponding to the port information and the first port information.
- the source address and the target address of the data frame are replaced respectively, and the source address is replaced with the IP address of the P2P module in the mobile phone, and the target address is replaced with the IP address of the P2P module in the AR glasses.
- the data frame is sent to the P2P module in the mobile phone.
- the P2P module in the mobile phone sends the data frame to the AR glasses based on the P2P connection channel established by the meta to realize P2P transmission of data.
- the P2P module in the AR glasses sends the data frame to the application in the glasses for use.
- the data frame can also be sent to the application in the mobile phone to meet the diversified needs of users.
- the computing device shown in Figure 1 can be used to execute the method described above according to Figures 3-4.
- the readable storage medium 204 stores executable instructions.
- the processor 102 executes the executable instructions
- the executable instructions enable the processor 102 to implement the data frame transmission method described in Figures 3-4.
- a terminal device 23 such as a smart phone and smart glasses 24 may constitute a system for data frame transmission.
- Smart glasses may be, for example, augmented reality glasses, virtual reality glasses, etc.
- this embodiment provides a data frame transmission device 300, including:
- the first acquisition module 301 is used to obtain the first port information occupied by the application program when receiving a data request sent by the application program.
- the second acquisition module 302 is used to obtain the data frame corresponding to the data request in response to the data request, wherein the data frame includes the second port information, and the second port information includes the source address and the destination address.
- the replacement module 303 is used to replace the source address of the data frame with the address of the first module and the destination address of the data frame with the address of the second module when the second port information corresponds to the first port information, so as to obtain the modified address information.
- the first sending module 304 is used to send the data frame based on the connection channel and the modified address information.
- the second acquisition module is specifically used to: when the network mode of the third module is a wifi mode, acquire a data frame corresponding to the data request through a wifi network.
- the device further includes: a second sending module, used to send the data frame to the application when the data frame reaches the third module, and/or an establishing module, used to establish a connection channel between the first module and the second module.
- a second sending module used to send the data frame to the application when the data frame reaches the third module
- an establishing module used to establish a connection channel between the first module and the second module.
- connection channel is a point-to-point connection channel based on a P2P network.
- This embodiment provides a computer-readable storage medium, which stores executable commands.
- the various processes of the above-mentioned data frame transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
- the content of the present application may also include a computer program product.
- the computer program product may include a computer-readable storage medium carrying computer-readable program instructions, ie, executable instructions, for causing a processor to implement various aspects of the present application.
- a computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device.
- a computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), a detachable memory, a hard disk ...
- EPROM or flash memory Erasable programmable read-only memory
- SRAM static random access memory
- CD-ROM portable compact disk read-only memory
- DVD digital versatile disk
- memory stick floppy disk
- mechanical encoding device such as punch card or raised structure in groove with instructions stored thereon, and any suitable combination of the above.
- Computer readable storage medium as used herein is not to be interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
- the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing/processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
- the network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and/or edge servers.
- the network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device.
- the computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages.
- Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server.
- the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
- LAN local area network
- WAN wide area network
- an Internet service provider for example, using an Internet service provider to connect through the Internet.
- the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.
- These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions/actions specified in one or more boxes in the flowchart and/or block diagram is generated.
- These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and/or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions/actions specified in one or more boxes in the flowchart and/or block diagram.
- Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions/actions specified in one or more boxes in the flowchart and/or block diagram.
- each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function.
- the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
- each box in the block diagram and/or the flowchart, and the combination of the boxes in the block diagram and/or the flowchart can be implemented by a dedicated hardware-based computing device that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请一些实施例公开涉及数据传输技术领域,更具体地,涉及一种数据帧传输方法、装置及可读存储介质。所述数据帧传输方法包括:在接收到应用程序发送的数据请求的情况下,获取所述应用程序占用的第一端口信息,响应于所述数据请求,获取所述数据请求对应的数据帧,其中,所述数据帧包括第二端口信息,所述第二端口信息包括源地址和目的地址,在所述第二端口信息与所述第一端口信息相对应的情况下,将所述数据帧的源地址替换为第一模块的地址,并将所述数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息,基于连接通道和所述修改后的地址信息,发送所述数据帧。
Description
本申请要求于2022年09月29日提交中国专利局、申请号为202211213309.X、发明名称为“数据帧传输方法、装置及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据传输技术领域,更具体地,涉及一种数据帧传输方法、装置及可读存储介质。
WiFi直连可称为WiFi点对点(peer to peer,P2P)连接,能够使终端设备之间轻松连接彼此而不再需要无线接入点(access point,AP)作为中介。WiFi直连在终端设备领域有着广泛的应用,例如,电子设备与智能音箱之间的WiFi直连连接、电子设备与投影仪之间的WiFi直连连接,或者电子设备与头戴显示设备之间的直连连接。使得用户可以将电子设备上的通话转移到智能音箱上,还可以使得用户在投影仪、头戴显示设备上播放电子设备上的视频。
目前电子设备在与头戴显示设备进行WiFi直连的过程中,电子设备和头戴显示设备两端都会运行一个应用程序,电子设备端的应用程序可以通过WiFi下载数据,并对该数据进行编码,再通过WiFi直连,将其发送至头戴显示设备,再由头戴显示设备上的应用程序进行解码和显示。但是,头戴显示设备从电子设备上获取数据的过程需要较长时间,用户体验差。
发明内容
本申请的一个目的是提供一种新的数据帧传输方法、装置及可读存储介质。
第一方面,本申请实施例提供了一种数据帧传输方法,包括:在接收到应用程序发送的数据请求的情况下,获取所述应用程序占用的第一端口信息;响应于所述数据请求,获取所述数据请求对应的数据帧,其中,所述数据帧包括第二端口信息,所述第二端口信息包括源地址和目的地址;在所述第二
端口信息与所述第一端口信息相对应的情况下,将所述数据帧的源地址替换为第一模块的地址,并将所述数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息;基于连接通道和所述修改后的地址信息,发送所述数据帧。
可选地,所述获取所述数据请求对应的数据帧,包括:在第三模块的网络模式为WiFi模式的情况下,通过所述WiFi网络获取所述数据请求对应的数据帧。
可选地,在所述响应于所述应用程序的数据请求,获取所述数据请求对应的数据帧之后,所述数据帧传输方法还包括:在所述数据帧到达第三模块的情况下,发送所述数据帧至所述应用程序。
可选地,在所述在接收到应用程序的数据请求的情况下,获取所述应用程序占用的第一端口信息之前,所述数据帧传输方法还包括:建立所述第一模块和所述第二模块之间的连接通道。
可选地,所述连接通道为基于P2P网络的点对点连接通道。
第二方面,本申请实施例提供了一种数据帧传输装置,其特征在于,包括:第一获取模块,用于在接收到应用程序发送的数据请求的情况下,获取所述应用程序占用的第一端口信息;第二获取模块,用于响应于所述数据请求,获取所述数据请求对应的数据帧,其中,所述数据帧包括第二端口信息,所述第二端口信息包括源地址和目的地址;替换模块,用于在所述第二端口信息与所述第一端口信息相对应的情况下,将所述数据帧的源地址替换为第一模块的地址,并将所述数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息;第一发送模块,用于基于连接通道和所述修改后的地址信息,发送所述数据帧。
可选地,所述第二获取模块具体用于:在第三模块的网络模式为WiFi模式的情况下,通过所述WiFi网络获取所述数据请求对应的数据帧。
可选地,所述数据帧传输装置还包括:第二发送模块,用于在所述数据帧到达第三模块的情况下,发送所述数据帧至所述应用程序;和/或建立模块,用于建立所述第一模块和所述第二模块之间的连接通道。
可选地,所述连接通道为基于P2P网络的点对点连接通道。
第三方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机指令,所述计算机指令被处理器运行时执行如第一方面所述的数据帧传输方法。
根据本申请的实施例,在接收到应用程序发送数据请求的情况下,获取应用程序的端口信息,并响应于数据请求,获取对应的数据帧,在数据帧中的端口信息与第一端口信息对应的情况下,将该数据帧的原地址替换为第一模块的地址,目的地址替换为第二模块的地址,并依照该地址,发送数据帧。通过这种方式,可以在通过WiFi热点获取到数据后,在WiFi协议栈直接进行转发,可以实现将数据直接转到AR眼镜,不在需要应用程序进行编码和发送,从而提高了传输效率,大大降低传输时延,提升了用户的体验。
通过以下参照附图对本申请的示例性实施例的详细描述,本申请的其它特征及其优点将会变得清楚。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一部分附图,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1是可以用于实施根据本申请的实施例的计算设备的示意性框图;
图2是可以用于实施根据本申请的实施例的系统的示意性框图;
图3示出了本申请实施例的数据帧传输方法的流程图;
图4示出了本申请实施例的数据帧传输的例子的示意图;
图5示出了本申请实施例的数据帧传输装置的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
现在将参照附图来详细描述本申请的各种示例性实施例。应注意到:除
非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本申请的范围。
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本申请及其应用或使用的任何限制。
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
图1示出了根据另一个实施例的计算设备的硬件示意性框图。
如图1所示,计算设备100包括处理器102、可读存储介质104。
计算设备100还可以包括显示屏110、用户接口112、摄像头114、音频/视频接口116、传感器118和通信部件120等。此外,计算设备100还可以还包括电源管理芯片106以及电池108等。
计算设备100可以各种智能设备等,例如,智能手机、虚拟现实眼镜、增强现实眼镜等。图1所示的各个部件仅仅是示意性的。计算设备100可以包括图1所示的部件中的一个或多个,而不必包括图1中的全部部件。图1所示的计算设备100仅是解释性的,并且决不是为了要限制这里的实施例、其应用或用途。
处理器102可以是各种处理器。可读存储介质104可以存储计算设备100运行所需的底层软件、系统软件、应用软件、数据等。可读存储介质104可以包括多种形式的存储器,例如,ROM、RAM、Flash等。
显示屏110可以是液晶显示屏、OLED显示屏等。在一个例子中,显示屏110可以是触摸屏。用户可以通过显示屏110进行输入操作。此外,用户还可以通过触摸屏进行指纹识别等。
用户接口112可以包括USB接口、闪电接口、键盘等。
摄像头114可以是单摄像头,也可以是多摄像头。此外,摄像头114可以用于用户的面容识别。
音频/视频接口116例如可以包括扬声器接口、麦克风接口、诸如HDMI
的视频传输接口等。
传感器118例如可以包括陀螺仪、加速度计、温度传感器、湿度传感器、压力传感器等等。例如,通过传感器可以确定计算设备周围的环境等。
通信部件120例如可以包括WiFi通信部件、蓝牙通信部件、3G、4G和5G通信部件等。通过通信部件120,计算设备100可以被布置中网络中。
电源管理芯片106可以用于管理输入计算设备100电源功率,还可以对电池108进行管理,以保证较大的利用效率。电池108例如是锂离子电池等。
图1所示的计算设备仅是解释性的,并且决不是为了要限制这里的实施例、其应用或用途。
图2是可以用于实施根据本申请的实施例的系统的示意性框图。图2示出了多个终端设备21、23、智能眼镜22、24以及通信网络20。在网络20中可以设置多个服务器201、202。终端设备21、23、智能眼镜22、24以及服务器201、202中的每个例如可以是图1所示的计算设备。根据一个实施例的计算设备包括至少一个处理器和至少一个可读存储介质。在该实施例中,所述至少一个处理器和至少一个可读存储介质可以被分布在终端设备21、23、智能眼镜22、24以及服务器201、202中。所述可读存储介质存储可执行指令。当所述处理器执行所述可执行指令时,所述可执行指令使得所述处理器实现根据实施例所述的方法。服务器201、202可以用于协助终端设备21、23中的处理。
智能眼镜22和智能眼镜24可以连接到网络20,并且还可以通过诸如蓝牙等的通信方式分别与终端设备21、22连接。在一个实施例中,智能眼镜22和智能眼镜24仅通过诸如蓝牙等的通信方式分别与终端设备21、22连接。
本申请实施例公开了一种数据帧传输检测方法,该方法可以通过第一终端,如手机等进行执行,将数据帧发送到第二终端,如投影仪、AR眼镜、VR眼镜等。如图3所示,该方法包括步骤S11-S14。
步骤S11,在接收到应用程序发送的数据请求的情况下,获取所述应用程序占用的第一端口信息。
在本实施例的一个示例中,应用程序可以是第一终端中的APK(Android application package,安卓应用程序包),该应用程序可以对需要WiFi直连进行传输的数据发送数据请求,来获取相关数据。
在本实施例的一个示例中,每个应用程序在通过网络获取数据时,例如通过WiFi获取数据时,都会占用、监听本地网络中的端口,当获取的数据到达第一终端时,从网络中下载的数据帧会携带该端口的端口号。通过该端口号,就可以确定该数据帧是哪个应用程序获取的,从而使该应用程序可以收到该数据。
在本实施例的一个示例中,第一终端本地会维护一个进程信息与占用端口的记录表,以确定应用程序与端口之间的对应关系。
在本实施例的一个示例中,第一端口信息就是该应用程序获取数据占用的端口的信息,具体的,可以包括该端口号或其他标签信息,以及对应的IP地址信息等。
在本实施例的一个示例中,在接收到应用程序的数据请求的情况下,获取应用程序占用的第一端口信息之前,还包括建立第一模块和第二模块之间的连接通道。
在本实施例的一个示例中,连接通道为基于P2P网络的点对点连接通道。
在本实施例中,第一模块和第二模块可以是P2P网络模块,其中,第一模块为第一终端中的P2P网络模块,第二模块为第二终端中的P2P模块,第一模块和第二模块可以基于WiFi网络建立P2P连接通道,通过该连接通道,实现WiFi直连,以进行数据传输。
步骤S12,响应于数据请求,获取数据请求对应的数据帧,其中,数据帧包括第二端口信息,第二端口信息包括源地址和目的地址。
具体的,在接收到应用程序发送的数据请求后,可以通过第一终端中的无线通信模块,获取对应的数据帧。
在本实施例的一个示例中,获取数据请求对应的数据帧,包括:在第三模块的网络模式为WiFi模式的情况下,通过WiFi网络获取数据请求对应的数据帧。
在本实施例的一个示例中,在接收到应用程序发送的数据请求的情况下,第一终端中的无线通信模块可以获取应用程序占用的第一端口信息。其中,第三模块,可以是无线通信模块,例如WiFi模块,更具体的可以是WiFi模块中station(工作站)模块。该模块可以通过WiFi网络,接收数据请求相对应的数据帧,并将对应的数据帧发送到第一模块中。
在本实施例的一个示例中,第二端口信息就是数据帧中包含的端口信息,具体的,可以包括该数据帧对应的端口号或者其他标签信息,通过第二端口信息中的端口号或者其他标签信息,就可以获知该数据帧对应的端口,即可获取数据帧对应的应用程序。第二端口信息中还可以包括数据帧的源地址和目的地址等信息。其中,源地址就是该数据帧的源头IP地址,目的地址就是该第一终端接收该数据帧的IP地址,例如station模块的IP的地址。
步骤S13,在第二端口信息与第一端口信息相对应的情况下,将数据帧的源地址替换为第一模块的地址,并将数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息。
在本实施例的一个示例中,第二端口信息与第一端口信息相对应可以是第二端口信息中的端口号或其他标签信息与第一端口信息中的端口号或其他标签信息一致。例如,A应用程序通过WiFi获取数据时,占用本地网络端口的端口号为1000,当获取的数据帧的端口号为1000时,就可以确定该数据帧是A应用程序获取的。在另一个例子中,第二端口信息与第一端口信息相对应可以是二者的端口号或其他标签信息满足对应关系。例如,A应用程序通过WiFi获取数据时,占用本地网络端口的端口号为1000,在占用该端口时,就可以预先确定该端口的端口号,对应的数据帧的端口号,例如2000,在接收到端口号为2000的数据帧时就可以确定该数据帧是A应用程序获取的。
在本实施例的一个示例中,在第二端口信息与第一端口信息相对应的情况下,可以将该数据帧的源地址,改为第一模块的地址。例如与第三模块同一终端,即第一终端的P2P模块的IP地址。同时,将该数据帧的目的地址,改为第二模块的地址,例如从第一终端中发送到的目标终端中的P2P模块的IP地址。
步骤S14,基于连接通道和所述修改后的地址信息,发送所述数据帧。
在本实施例的一个示例中,在将数据帧的源地址和目的地址进行替换之后,就可以基于第一终端与第二终端中的通道,例如P2P通道,将数据帧发送到第二终端的第二模块之中。
在本实施例的一个示例中,第二模块在接收到该数据帧后,就可以将该数据帧直接发送到第二终端中的应用程序中,进行使用。
在本例中,在接收到应用程序发送的数据请求的情况下,获取应用程序
的端口信息,并响应于数据请求,获取对应的数据帧,在数据帧中的端口信息与第一端口信息对应的情况下,将该数据帧的原地址替换为第一模块的地址,目的地址替换为第二模块的地址,并依照该地址,发送数据帧。通过这种方式,可以在通过WiFi热点获取到数据后,在WiFi协议栈直接进行转发,可以实现将数据直接转到AR眼镜,不在需要应用程序进行编码和发送,从而提高了传输效率,大大降低传输时延,提升了用户的体验。
在本实施例的一个示例中,在响应于应用程序的数据请求,获取数据请求对应的数据帧之后,还包括:在数据帧到达第三模块的情况下,发送数据帧至应用程序。
在本实施例的一个示例中,第三模块在获取到对应的数据帧之后,还可以将该数据帧发送到本终端的应用程序之中,本终端的应用程序可以在接收到该数据帧后,在终端本地进行使用,不再进行编码,发送到第二终端中,满足用户的多元化需求。
在本实施例的一个示例中,一个完整的流程可以如图4所示,第一终端为手机,第二终端为AR眼镜。手机中WIFI模块中的P2P模块可以与AR眼镜的P2P模块预先建立连接通道,建立连接通道之后,手机中的应用程序发送数据请求,并获取占用的第一端口信息。来获取需要传输的数据。手机中的station模块响应于该数据请求,从WiFi热点中,获取对应的数据帧,即端口信息与第一端口信息对应的数据帧。在获取到对应的数据帧后,将该数据帧的源地址和目标地址分别进行替换,将源地址替换为手机中的P2P模块的IP地址,将目标地址替换为AR眼镜中的P2P模块的IP地址。并将该数据帧发送到手机中的P2P模块中,手机中的P2P模块基于元建立的P2P连接通道,将该数据帧发送到AR眼镜中,实现数据的P2P传输。AR眼镜中的P2P模块,将该数据帧发送到眼镜中的应用程序,进行使用。可选的,还可以将该数据帧也发送到手机中的应用程序中,满足用户的多元化需求。
例如,图1所示的计算设备可以用于执行上面根据图3-4所描述的方法。例如,可读存储介质204存储可执行指令。当处理器102执行可执行指令时,所述可执行指令使得处理器102实现图3-4所描述的数据帧传输方法。
如图2所示,诸如智能手机的终端设备23和智能眼镜24可以组成用于数据帧传输的系统。智能眼镜例如可以是增强现实眼镜、虚拟现实眼镜等。
参见图3所示,本实施例提供了一种数据帧传输装置300,包括:
第一获取模块301,用于在接收到应用程序发送的数据请求的情况下,获取应用程序占用的第一端口信息。第二获取模块302,用于响应于数据请求,获取数据请求对应的数据帧,其中,数据帧包括第二端口信息,第二端口信息包括源地址和目的地址。替换模块303,用于在第二端口信息与第一端口信息相对应的情况下,将数据帧的源地址替换为第一模块的地址,并将数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息。第一发送模块304,用于基于连接通道和修改后的地址信息,发送数据帧。
可选地,第二获取模块具体用于:在第三模块的网络模式为wifi模式的情况下,通过wifi网络获取数据请求对应的数据帧。
可选地,装置还包括:第二发送模块,用于在数据帧到达第三模块的情况下,发送数据帧至应用程序,和/或建立模块,用于建立第一模块和第二模块之间的连接通道。
可选地,连接通道为基于P2P网络的点对点连接通道。
本实施例提供了一种计算机可读存储介质,该存储介质中存储有可执行命令,该可执行命令被处理器执行时实现上述数据帧传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请的内容还可以包括计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本申请的各个方面的计算机可读程序指令,即,可执行指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是,但不限于,电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可
擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。
这里参照根据本申请实施例的方法、计算设备和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方
框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本申请的多个实施例的计算设备、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的计算设备来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显
而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
Claims (10)
- 一种数据帧传输方法,其特征在于,包括:在接收到应用程序发送的数据请求的情况下,获取所述应用程序占用的第一端口信息;响应于所述数据请求,获取所述数据请求对应的数据帧,其中,所述数据帧包括第二端口信息,所述第二端口信息包括源地址和目的地址;在所述第二端口信息与所述第一端口信息相对应的情况下,将所述数据帧的源地址替换为第一模块的地址,并将所述数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息;基于连接通道和所述修改后的地址信息,发送所述数据帧。
- 根据权利要求1所述的数据帧传输方法,其特征在于,所述获取所述数据请求对应的数据帧,包括:在第三模块的网络模式为WiFi模式的情况下,通过所述WiFi网络获取所述数据请求对应的数据帧。
- 根据权利要求2所述的数据帧传输方法,其特征在于,在所述响应于所述应用程序的数据请求,获取所述数据请求对应的数据帧之后,还包括:在所述数据帧到达第三模块的情况下,发送所述数据帧至所述应用程序。
- 根据权利要求1所述的数据帧传输方法,其特征在于,在所述在接收到应用程序的数据请求的情况下,获取所述应用程序占用的第一端口信息之前,还包括:建立所述第一模块和所述第二模块之间的连接通道。
- 根据权利要求1所述的数据帧传输方法,其特征在于,所述连接通道为基于P2P网络的点对点连接通道。
- 一种数据帧传输装置,其特征在于,包括:第一获取模块,用于在接收到应用程序发送的数据请求的情况下,获取 所述应用程序占用的第一端口信息;第二获取模块,用于响应于所述数据请求,获取所述数据请求对应的数据帧,其中,所述数据帧包括第二端口信息,所述第二端口信息包括源地址和目的地址;替换模块,用于在所述第二端口信息与所述第一端口信息相对应的情况下,将所述数据帧的源地址替换为第一模块的地址,并将所述数据帧的目的地址替换为第二模块的地址,得到修改后的地址信息;第一发送模块,用于基于连接通道和所述修改后的地址信息,发送所述数据帧。
- 根据权利要求6所述的数据帧传输装置,其特征在于,所述第二获取模块具体用于:在第三模块的网络模式为WiFi模式的情况下,通过所述WiFi网络获取所述数据请求对应的数据帧。
- 根据权利要求6所述的数据帧传输装置,其特征在于,还包括:第二发送模块,用于在所述数据帧到达第三模块的情况下,发送所述数据帧至所述应用程序;和/或建立模块,用于建立所述第一模块和所述第二模块之间的连接通道。
- 根据权利要求6所述的数据帧传输装置,其特征在于,所述连接通道为基于P2P网络的点对点连接通道。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机指令,所述计算机指令被处理器运行时执行权利要求1-5中任一项所述的数据帧传输方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211213309.X | 2022-09-29 | ||
CN202211213309.XA CN115914251A (zh) | 2022-09-29 | 2022-09-29 | 数据帧传输方法、装置及可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024066757A1 true WO2024066757A1 (zh) | 2024-04-04 |
Family
ID=86481424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/111801 WO2024066757A1 (zh) | 2022-09-29 | 2023-08-08 | 数据帧传输方法、装置及可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115914251A (zh) |
WO (1) | WO2024066757A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115914251A (zh) * | 2022-09-29 | 2023-04-04 | 歌尔科技有限公司 | 数据帧传输方法、装置及可读存储介质 |
CN118354004B (zh) * | 2024-06-17 | 2024-09-24 | 之江实验室 | 一种卫星图像传输方法、装置、介质及设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881519A (zh) * | 2018-08-08 | 2018-11-23 | 成都俊云科技有限公司 | 一种nat穿透方法及装置 |
US20190324930A1 (en) * | 2018-04-20 | 2019-10-24 | EMC IP Holding Company LLC | Method, device and computer program product for enabling sr-iov functions in endpoint device |
CN112788160A (zh) * | 2020-12-30 | 2021-05-11 | 普联技术有限公司 | 一种地址信息的切换方法及切换装置 |
CN115914251A (zh) * | 2022-09-29 | 2023-04-04 | 歌尔科技有限公司 | 数据帧传输方法、装置及可读存储介质 |
-
2022
- 2022-09-29 CN CN202211213309.XA patent/CN115914251A/zh active Pending
-
2023
- 2023-08-08 WO PCT/CN2023/111801 patent/WO2024066757A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190324930A1 (en) * | 2018-04-20 | 2019-10-24 | EMC IP Holding Company LLC | Method, device and computer program product for enabling sr-iov functions in endpoint device |
CN108881519A (zh) * | 2018-08-08 | 2018-11-23 | 成都俊云科技有限公司 | 一种nat穿透方法及装置 |
CN112788160A (zh) * | 2020-12-30 | 2021-05-11 | 普联技术有限公司 | 一种地址信息的切换方法及切换装置 |
CN115914251A (zh) * | 2022-09-29 | 2023-04-04 | 歌尔科技有限公司 | 数据帧传输方法、装置及可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN115914251A (zh) | 2023-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2024066757A1 (zh) | 数据帧传输方法、装置及可读存储介质 | |
US11483382B2 (en) | Method, apparatus and system for transmitting data | |
EP3389230A2 (en) | System for providing dialog content | |
US10019591B1 (en) | Low-latency media sharing | |
CN109150677B (zh) | 跨域访问的处理方法、装置及电子设备 | |
WO2021027610A1 (zh) | 一种切换通信协议的方法、装置和系统 | |
US10135763B2 (en) | System and method for secure and efficient communication within an organization | |
JP7524231B2 (ja) | ビデオデータの処理方法、装置、電子機器およびコンピュータ可読媒体 | |
CN112328318B (zh) | 专有云平台自动规划的方法、装置及存储介质 | |
CN110070592B (zh) | 特效包的生成方法、装置和硬件装置 | |
WO2023284708A1 (zh) | 一种视频处理方法、装置、电子设备和存储介质 | |
WO2019062667A1 (zh) | 会议内容的传输方法及装置 | |
WO2016127796A1 (zh) | 信息交互方法及服务器 | |
WO2014092372A1 (en) | Method and apparatus for cloud based power management of local network devices | |
US20150199169A1 (en) | Universal serial bus-to-bluetooth audio bridging devices | |
US10659539B2 (en) | Independent internet connection generation | |
US9531678B1 (en) | On-premises data access and firewall tunneling | |
CN112995005B (zh) | 虚拟网络数据交换方法和装置 | |
CN114513552A (zh) | 数据处理方法、装置、设备及存储介质 | |
CN112788362B (zh) | 一种视频播放方法、视频播放装置及存储介质 | |
CN112256372A (zh) | 信息处理方法、装置和电子设备 | |
WO2023109045A1 (zh) | WebRTC连接方法及系统 | |
JP7500776B2 (ja) | ビデオ特殊効果の配置方法、ビデオ特殊効果の配置装置、デバイス及び記憶媒体 | |
CN109783409A (zh) | 用于处理数据的方法和装置 | |
US10270643B2 (en) | Peer-to-peer interconnection between service providers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23870003 Country of ref document: EP Kind code of ref document: A1 |