WO2022257654A1 - 共享数据网络的方法、装置、电子设备及存储介质 - Google Patents

共享数据网络的方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2022257654A1
WO2022257654A1 PCT/CN2022/090996 CN2022090996W WO2022257654A1 WO 2022257654 A1 WO2022257654 A1 WO 2022257654A1 CN 2022090996 W CN2022090996 W CN 2022090996W WO 2022257654 A1 WO2022257654 A1 WO 2022257654A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
protocol format
protocol
terminal
format
Prior art date
Application number
PCT/CN2022/090996
Other languages
English (en)
French (fr)
Inventor
张一凡
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022257654A1 publication Critical patent/WO2022257654A1/zh

Links

Images

Classifications

    • 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/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice 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/03Protocol definition or specification 
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technology, and in particular to a method, device, electronic equipment and storage medium for sharing a data network.
  • the terminal connects to the wearable device via Bluetooth, and transmits data through the network layer to realize mobile data network sharing with the wearable device.
  • This method of realizing network sharing based on the network layer has the problem of poor device compatibility and cannot be widely used. Applicable to all types of terminals.
  • embodiments of the present application provide a method, device, electronic device, and storage medium for sharing a data network.
  • An embodiment of the present application provides a method for sharing a data network, which is applied to a first terminal, including:
  • the first protocol format represents the Internet Protocol (IP, Internet Protocol); the second protocol format represents the Transmission Control Protocol (TCP, Transmission Control Protocol) and/or User Datagram Protocol (UDP, User Datagram Protocol).
  • IP Internet Protocol
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • the embodiment of the present application also provides a device for sharing a data network, including:
  • the first conversion unit is configured to convert the first data packet in the first protocol format sent by the first virtual network card into the first data packet in the second protocol format based on the set application layer protocol;
  • the first sending unit is configured to send the first data packet in the second protocol format to the second terminal through the Bluetooth network, and receive the second data packet in the second protocol format returned by the second terminal; wherein, the second The data packet represents a response to the first data packet returned by the corresponding server;
  • the second conversion unit is configured to convert the second data packet in the second protocol format into the second data packet in the first protocol format based on the application layer protocol, and transmit the second data packet in the first protocol format to the The first virtual network card;
  • the first protocol format represents the IP protocol
  • the second protocol format represents the TCP protocol and/or the UDP protocol.
  • the embodiment of the present application also provides another device for sharing a data network, including:
  • the first receiving unit is configured to receive the first data packet in the second protocol format sent by the first terminal through the Bluetooth network, and obtain the first data packet in the first protocol format returned by the server based on the first data packet in the second protocol format. Two data packets; wherein, the second data packet represents a response to the first data packet returned by the corresponding server;
  • the third conversion unit is configured to convert the second data packet in the first protocol format into the second data packet in the second protocol format based on the set application layer protocol;
  • the second sending unit is configured to send the second data packet in the second protocol format to the first terminal through the Bluetooth network;
  • the first protocol format represents the IP protocol
  • the second protocol format represents the TCP protocol and/or the UDP protocol.
  • the embodiment of the present application also provides an electronic device, including:
  • processors and memory configured to store a computer program capable of running on the processor
  • the processor is configured to execute the steps of any one of the above methods when running the computer program.
  • the embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
  • FIG. 1 is a schematic diagram of an implementation flow of a method for sharing a data network provided by an embodiment of the present application
  • FIG. 2 is a schematic flow chart of data conversion on the first terminal provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the implementation flow of a method for sharing a data network provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a shared data network of a first terminal in a working mode provided by an embodiment of the present application
  • FIG. 5 is a network hardware block diagram of a first terminal equipped with multiple processors provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of data packet transmission of a first terminal configured with multiple processors according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of an implementation flow of a method for sharing a data network provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an implementation flow of a method for sharing a data network provided by another embodiment of the present application.
  • FIG. 9 is a schematic diagram of a data packet conversion process on a second terminal provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a device for sharing a data network provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a device for sharing a data network provided by another embodiment of the present application.
  • FIG. 12 is a schematic diagram of a hardware composition structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for sharing a data network according to an embodiment of the present application. As shown in Figure 1, the method is applied to the first terminal, including:
  • S101 Based on a set application layer protocol, convert the first data packet in the first protocol format sent by the first virtual network card into the first data packet in the second protocol format.
  • the application data on the application program of the first terminal follows a certain protocol format during the data transmission process.
  • the first protocol format issued by the first virtual network card is The first data packet of the second protocol format is converted into the first data packet of the second protocol format, wherein the first protocol format represents the IP protocol, and the second protocol format represents the TCP protocol and/or UDP protocol, so that the first data packet of the IP protocol format can be
  • the packet is converted into a first data packet in the TCP protocol and/or UDP protocol format, wherein the first data packet in the second protocol format is application layer data, so that the application data transmission of the first terminal can be realized on the application layer.
  • the first data packet in the first protocol format is converted from application data in the TCP protocol and/or UDP protocol format into IP protocol format application data.
  • the first terminal may be a smart watch.
  • the second terminal with network access capability may be used to The pairing connection realizes the shared data network between the first terminal and the second terminal.
  • the set application layer protocol can be the light IP protocol LwIP, which can reduce the RAM occupation of the terminal while maintaining the main functions of the TCP protocol, thereby saving the resources and power consumption of the terminal.
  • setting The application layer protocol can be encapsulated based on Bluetooth Low Energy Generic Attribute Profile (BLE GATT, Bluetooth Low Energy Generic Attribute Profile) or Bluetooth Serial Port Protocol (BT SPP, Serial Port Profile).
  • S102 Send the first data packet in the second protocol format to the second terminal through the Bluetooth network, and receive the second data packet in the second protocol format returned by the second terminal; wherein the second data packet represents the corresponding The response to the first packet returned by the server.
  • the first terminal and the second terminal perform a Bluetooth pairing connection, send the first data packet in the second protocol format to the second terminal through the Bluetooth network, and receive the second data packet in the second protocol format returned by the second terminal , where the second data packet represents the response to the first data packet returned by the corresponding server, so that the first terminal can obtain the response of the first data packet from the network through the second terminal, so that the first terminal can obtain the response of the first data packet based on the second terminal Realize the sharing of data network.
  • the first terminal needs to obtain permission for the Internet Access authority
  • the second terminal needs to open the authority based on Bluetooth shared network, so that the data packet of the first protocol format can be successfully transmitted between the first terminal and the second terminal, and, when the first terminal or the second terminal
  • it is impossible to share the network based on Bluetooth between the first terminal and the second terminal so it is impossible to transmit data between the first terminal and the second terminal.
  • the data packets transmitted between the first terminal and the second terminal are in the second protocol format, that is to say, the mutual transmission of data is realized at the application layer, and the underlying data packets are not directly transmitted, so there is no need to obtain the second protocol format.
  • the user authority of the first terminal and the second terminal therefore, Bluetooth network sharing can be realized even on terminals that do not support the standard BT-PAN Bluetooth protocol, so that network sharing can be realized on different terminals, and the compatibility of network sharing is improved .
  • the first protocol format represents the IP protocol
  • the second protocol format represents the TCP protocol and/or the UDP protocol.
  • the first terminal needs to perform format conversion on the second data packet in the second protocol format.
  • the second data packet in the second protocol format can be converted into the second data packet in the first protocol format, and the second data packet in the first protocol format will be sent to the first virtual network card.
  • the first virtual network card After the first virtual network card receives the second data in the first protocol format, it converts the second data in the first protocol format into the second data application in the second protocol format through the kernel network protocol stack, thereby The second data can be returned to the application layer, so that the application program can obtain corresponding response data from the network.
  • Figure 2 shows a schematic flow chart of data conversion on the first terminal.
  • the application data in the application program belongs to the data of the application layer.
  • the application data of the second protocol format of the application program is sent to the kernel through the intermediate software abstraction layer, wherein, the intermediate software abstraction layer can be a socket socket, and according to the TCP/IP protocol, the kernel
  • the application data in the second protocol format is converted into the first data packet in the first protocol format, so that the application data can be converted into data that can be transmitted on the Internet.
  • the first virtual network card can be used to simulate a network environment and a network adapter
  • the first terminal when the first terminal has a physical network card, the first terminal can directly connect to the network through the physical network card, and when the first terminal is equipped with a virtual network card, it can realize data network sharing with the second terminal.
  • the virtual network card can build a network environment according to the data network sharing provided by the second terminal.
  • the network proxy layer sends the first data packet in the first protocol format to the application layer, and the first data packet in the first protocol format is converted into the first data packet in the second protocol format through the set application layer protocol, wherein,
  • the set application layer protocol can be the LwIP protocol, so that the data sent by the first terminal to the second terminal is the data of the application layer, and the interaction of application data is realized on two different terminals without additional acquisition of network permissions, thereby improving The scope of application of data network sharing is defined.
  • the first terminal may also receive the second data packet in the second protocol format returned by the second terminal through the Bluetooth network, and in the network proxy layer, based on the application layer protocol, convert the second data packet in the second protocol format into the second data packet in the second protocol format.
  • a second data packet in a protocol format, and return the second data packet in the first protocol format to the first virtual network card, and the first virtual network card returns the second data packet in the first protocol format to the kernel, according to the TCP/IP protocol Converting the second data packet in the first protocol format into TCP/UDP application data, and returning to the application layer, ending the data transmission between the first terminal and the second terminal.
  • the first terminal is configured with at least two processors; the Bluetooth chip of the first terminal is mounted on the first processor; the method further includes:
  • S301 Based on a remote procedure call, transmit the third data packet in the second protocol format to the first processor; the third data packet in the second protocol format is sent by the first processor running on the second processor
  • the virtual network card is generated based on the application layer protocol conversion.
  • the first terminal may be equipped with different numbers of processors in order to meet different requirements.
  • the Bluetooth chip of the first terminal is mounted on the first processor, and the first virtual network card is configured by The first processor runs, that is to say, the first processor of the first terminal is responsible for processing the first data packet and the second data packet.
  • Figure 4 shows a schematic diagram of the shared data network of the first terminal in a working mode, in Figure 4, the data output by the first virtual network card is the first data packet in the first protocol format After the first data packet in the first protocol format is converted into the first data packet in the second protocol format through the set application layer protocol, the first data packet is sent to the second terminal through the Bluetooth connection.
  • FIG. 5 shows a network hardware block diagram of a first terminal equipped with multiple processors.
  • the processor currently running on the first terminal is the second processor, based on the set application layer protocol, the third data packet in the first protocol format sent by the second virtual network card on the second processor is converted into the second A third data packet in a protocol format, wherein the third data packet is application data during the running of the application.
  • the Bluetooth chip of the first terminal is mounted on the first processor, when the data on the second processor is transmitted through Bluetooth, the data on the second processor needs to be transmitted to the first terminal through a remote procedure call. On the processor, the data on the second processor is sent out through the Bluetooth chip mounted on the first processor.
  • S302 Send the third data packet in the second protocol format to the second terminal through the Bluetooth network.
  • the first processor obtains the third data packet in the second protocol format, it sends the third data packet in the second protocol format to the second terminal through the Bluetooth chip mounted on the first processor, thereby completing
  • the data interaction between the second processor of the first terminal and the second terminal enables the first terminal to use the network function of the second terminal to obtain network data required by the second processor.
  • the bluetooth chip of the first terminal receives the response data about the third data packet returned by the second terminal, it can transmit the response data about the third data packet to the second processor through a remote procedure call , so that the second processor can correspond to the network data and complete subsequent data processing.
  • FIG. 6 shows a schematic diagram of data packet transmission when the first terminal is configured with multiple processors, so as to ensure that the first terminal can share the data network when different processors are running.
  • the operating power consumption of the first processor is less than the operating power consumption of the second processing.
  • the operating power consumption of the first processor is less than that of the second processing, so that the Bluetooth chip mounted on multiple processors consumes less power on the first processor.
  • each of the at least two processors configured in the first terminal can work at different voltages and frequencies, and the heavy calculation tasks are handed over to processors working at high frequencies for processing. Small tasks are handed over to processors working at low frequencies for processing, so that different tasks can be assigned to different processors for processing, reducing the power consumption of the first terminal.
  • the first working mode is to improve the battery life of the smart watch and enable the smart watch to complete routine tasks.
  • the corresponding running processor When the smart watch is in the first working mode, the required frequency parameters do not need to be If the value is too high, the corresponding running processor is the first processor with low power consumption. When the smart watch is in the second working mode, it is to complete complex processes. For example, in the map online navigation scene, the corresponding running processor is Running the second processor with higher power consumption and mounting the Bluetooth chip on the first processor not only realizes that the first processor and the second processor share the same Bluetooth chip, but also saves power consumption.
  • the data packets are converted to the corresponding protocol format through the set application layer protocol, and the data packets are exchanged on the application layer through the Bluetooth network. Without obtaining the underlying authority of the terminal, The data network sharing between different terminals is realized, and the compatibility of data network sharing is improved.
  • the embodiment of the present application also provides a method for sharing a data network, as shown in FIG. 7, applied to the second terminal, including:
  • S701 Receive the first data packet in the second protocol format sent by the first terminal through the Bluetooth network, and obtain the second data packet in the first protocol format returned by the server based on the first data packet in the second protocol format; wherein , the second data packet represents the response returned by the corresponding server to the first data packet.
  • the second terminal receives the first data packet in the second protocol format sent by the first terminal through the Bluetooth network, and the second terminal will obtain the second data packet in the first protocol format from the server based on the first data packet in the second protocol format.
  • a data packet wherein the second data packet represents a response returned by the corresponding server to the first data packet.
  • the intermediate software abstraction layer can send the first data packet in the second protocol format to the kernel of the second terminal, and the kernel converts the first data packet in the second protocol format into the first data packet in the first protocol format , and send the first data packet in the first protocol format to the server through the physical network card, thereby obtaining the second data packet in the first protocol format, wherein the second data packet is acquired through network access through the physical network card of the second terminal , so that the first terminal indirectly implements data network sharing through the second terminal, and obtains corresponding data.
  • S702 Based on the set application layer protocol, convert the second data packet in the first protocol format into the second data packet in the second protocol format.
  • the first protocol is converted into the second data packet in the second protocol format, so that the data packet in the TCP and/or UDP protocol format can be transmitted.
  • the set application layer protocol can be encapsulated based on the Bluetooth low energy general attribute profile or the Bluetooth serial port protocol (BT SPP, Serial Port Profile).
  • BT SPP Bluetooth serial port protocol
  • the second data in the first protocol format acquired from the server can convert the second data in the first protocol format into second data in the second protocol format in the kernel according to a set application layer protocol.
  • S703 Send the second data packet in the second protocol format to the first terminal through the Bluetooth network; wherein,
  • the first protocol format represents the IP protocol
  • the second protocol format represents the TCP protocol and/or the UDP protocol.
  • the first terminal and the second terminal perform a Bluetooth pairing connection, and send the second data packet in the second protocol format to the first terminal through the Bluetooth network, so that data transmission between different terminals can be realized based on the application layer.
  • the first terminal and the second terminal need to obtain a certain network authority to transmit the data packet of the first protocol format. For example, the first terminal needs to obtain the authority to allow Internet access, and the second terminal needs to open the authority based on Bluetooth sharing network.
  • the first terminal and the second terminal can have the corresponding network authority can the data packet of the first protocol format be successfully transmitted between the first terminal and the second terminal, and there is an inconsistency between the first terminal or the second terminal.
  • the standard BT-PAN Bluetooth protocol that is to say, network sharing cannot be realized based on Bluetooth, and the first terminal or the second terminal cannot obtain the corresponding network authority, so that data transmission based on Bluetooth network sharing cannot be realized.
  • the second data packet transmitted between the first terminal and the second terminal is in the second protocol format, rather than transmitting the second data packet in the first protocol format, there is no need to communicate between the first terminal and the second terminal.
  • the second terminal obtains a certain network authority to realize network sharing, and the second data packet in the second protocol format is a response to the first data packet sent by the first terminal obtained in the network, therefore, the first data packet and
  • the data interaction process between the second data packets substantially realizes network sharing by the first terminal based on the Bluetooth connection of the second terminal, enables network sharing on different terminals, and improves the compatibility of network sharing.
  • the Bluetooth network of the first terminal and the second terminal is paired and connected based on a first setting application.
  • the Bluetooth network between the first terminal and the second terminal is paired and connected based on the first setting application.
  • the first setting application is installed on the second terminal, The first terminal is paired and set through the first setting application, so that the first terminal and the second terminal can be paired and connected based on the first setting application.
  • the first setting application can play the role of a network proxy, The first setting application can be responsible for correspondingly processing the first data packet in the second protocol format received by the second terminal and the second data packet in the second protocol format.
  • the first setting application can obtain the The second data packet in the second protocol format is sent to the bluetooth chip of the second terminal, and the second data packet in the second protocol format is sent to the first terminal through the bluetooth network, so that different terminals can realize the connection between terminals through the first setting application. Data network sharing among them.
  • the second data packet in the first protocol format returned by the server based on the first data packet in the second protocol format includes:
  • S801 Based on the first setting application, send the first data packet in the second protocol format to a kernel through an intermediate software abstraction layer.
  • the first setting application first sends the first data packet in the second protocol format to the kernel through the middle software abstraction layer.
  • the intermediate software abstraction layer may be a socket, so that the kernel obtains the first data packet in the second protocol format.
  • S802 Based on the application layer protocol, convert the first data packet in the second protocol format into the first data packet in the first protocol format.
  • the first data packet in the second protocol format is converted into the first data packet in the first protocol format, and the converted first data in the first protocol format can be transmission over the Internet.
  • S803 Send the first data packet in the first protocol format in the kernel to the server through the physical network card, and receive the second data packet in the first protocol format returned by the server.
  • the kernel sends the first data packet in the first protocol format to the server through the physical network card of the second terminal, because the first data in the first protocol format can be transmitted on the Internet, and the physical network card of the second terminal makes the second terminal Capable of network access, therefore, the second terminal can obtain the second data packet returned by the server on the Internet according to the first data in the first protocol format.
  • FIG. 9 shows a schematic diagram of a data packet conversion process on the second terminal.
  • the second terminal In the data packet conversion process of the second terminal, it can be considered that what the first terminal sends is the application data of the first set application, and the second terminal will send the application data of the first set application to the first terminal, that is, , it can be considered that the application data of the first setting application realizes data interaction between the first terminal and the second terminal, and what is transmitted is the application data. Therefore, it is not necessary to obtain certain network permissions on both the first terminal and the second terminal
  • the data packet can be successfully transmitted only when the first setting application is installed, and the data network sharing can be realized between the two terminals when the first setting application is installed, which improves the scope of application of the data network sharing.
  • the first data packet in the second protocol format sent by the first terminal is received through the Bluetooth network, and the first data packet in the second protocol format is converted into the first data packet in the first protocol format, so that According to the physical network card of the second terminal, the second data packet of the response information of the first data packet can be obtained in the network and returned to the first terminal, so that the first terminal can realize data network sharing through the network card of the second terminal .
  • the embodiment of the present application also provides a device for sharing a data network, as shown in FIG. 10 , the device includes:
  • the first conversion unit 1001 is configured to convert the first data packet in the first protocol format sent by the first virtual network card into the first data packet in the second protocol format based on the set application layer protocol;
  • the first sending unit 1002 is configured to send the first data packet in the second protocol format to the second terminal through the Bluetooth network, and receive the second data packet in the second protocol format returned by the second terminal; wherein, the first The second data packet represents the response to the first data packet returned by the corresponding server;
  • the second conversion unit 1003 is configured to convert the second data packet in the second protocol format into the second data packet in the first protocol format based on the application layer protocol, and transmit the second data packet in the first protocol format to The first virtual network card;
  • the first protocol format represents the IP protocol
  • the second protocol format represents the TCP protocol and/or the UDP protocol.
  • the first terminal is configured with at least two processors; the Bluetooth chip of the first terminal is mounted on the first processor; the shared data network device is further configured as:
  • the third data packet in the second protocol format is transmitted to the first processor; the third data packet in the second protocol format is sent by the first virtual network card run by the second processor Generated based on the application layer protocol conversion of the settings;
  • the operating power consumption of the first processor is less than the operating power consumption of the second processing.
  • the first converting unit 1001, the first sending unit 1002, and the second converting unit 1003 may be implemented by a processor in a device sharing a data network.
  • the processor needs to run the programs stored in the memory to realize the functions of the above-mentioned program modules.
  • the device for sharing data network provided by the above-mentioned embodiment in FIG.
  • the program modules are completed, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processing described above.
  • the device for sharing a data network provided by the above embodiment and the method embodiment for sharing a data network belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
  • the embodiment of the present application also provides another device for sharing a data network, as shown in Figure 11, the device includes:
  • the first receiving unit 1101 is configured to receive the first data packet in the second protocol format sent by the first terminal through the Bluetooth network, and obtain the first data packet in the first protocol format returned by the server based on the first data packet in the second protocol format.
  • the second data packet wherein, the second data packet represents a response to the first data packet returned by the corresponding server;
  • the third conversion unit 1102 is configured to convert the second data packet in the first protocol format into the second data packet in the second protocol format based on the set application layer protocol;
  • the second sending unit 1103 is configured to send the second data packet in the second protocol format to the first terminal through a Bluetooth network; wherein,
  • the first protocol format represents the IP protocol
  • the second protocol format represents the TCP protocol and/or the UDP protocol.
  • the Bluetooth network of the first terminal and the second terminal is paired and connected based on a first setting application.
  • the first receiving unit 1101 when the first receiving unit 1101 obtains the second data packet in the first protocol format returned by the server based on the first data packet in the second protocol format, it is configured to:
  • the first receiving unit 1101, the third converting unit 1102, and the second sending unit 1103 may be implemented by processors in devices sharing a data network.
  • the processor needs to run the programs stored in the memory to realize the functions of the above-mentioned program modules.
  • the device for sharing data network provided by the above-mentioned embodiment in FIG.
  • the program modules are completed, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processing described above.
  • the device for sharing a data network provided by the above embodiment and the method embodiment for sharing a data network belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
  • FIG. 12 is a schematic diagram of the hardware composition structure of the electronic device of the embodiment of the present application, as shown in FIG. 12 , the electronic equipment includes:
  • Communication interface 1 which can exchange information with other devices such as network devices;
  • the processor 2 is connected to the communication interface 1 to realize information interaction with other devices, and is configured to execute the method for sharing data network provided by one or more technical solutions above when running a computer program. Instead, the computer program is stored on the memory 3 .
  • bus system 4 is configured to realize connection communication between these components.
  • bus system 4 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 4 in FIG. 12 .
  • the memory 3 in the embodiment of the present application is configured to store various types of data to support the operation of the electronic device.
  • Examples of such data include: any computer program configured to operate on an electronic device.
  • the memory may be a volatile memory or a nonvolatile memory, and may also include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • RAM Random Access Memory
  • many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory ).
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • a processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
  • the aforementioned processor may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a storage medium, and the storage medium is located in a memory, and the processor reads the program in the memory, and combines with its hardware to complete the steps of the foregoing method.
  • the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory storing a computer program, and the above-mentioned computer program can be executed by a processor to complete Steps described in the aforementioned method.
  • the computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
  • the disclosed device, electronic equipment and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes several instructions for Make an electronic device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROM, RAM, magnetic disks or optical disks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种共享数据网络的方法、装置、电子设备及存储介质。其中,方法包括:第一终端基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。

Description

共享数据网络的方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请基于申请号为202110647008.7,申请日为2021年6月10日的中国专利申请提出,并要求上述中国专利申请的优先权,上述中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及通信技术领域,具体涉及一种共享数据网络的方法、装置、电子设备及存储介质。
背景技术
相关技术中,终端与可穿戴设备进行蓝牙连接,并通过网络层互传数据,与可穿戴设备实现移动数据网络共享,这种基于网络层实现网络共享的方式存在设备兼容性差的问题,无法广泛地适用于各类终端。
发明内容
为解决相关技术问题,本申请实施例提供了一种共享数据网络的方法、装置、电子设备及存储介质。
本申请实施例提供了一种共享数据网络的方法,应用于第一终端,包括:
基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
所述第一协议格式表征国际互连协议(IP,Internet Protocol);所述第二协议格式表征传输控制协议(TCP,Transmission Control Protocol)和/或用户数据报协议(UDP,User Datagram Protocol)。
本申请实施例还提供了一种共享数据网络的装置,包括:
第一转换单元,配置为基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
第一发送单元,配置为通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
第二转换单元,配置为基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
本申请实施例还提供了另一种共享数据网络的装置,包括:
第一接收单元,配置为通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
第三转换单元,配置为基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包;
第二发送单元,配置为通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
本申请实施例还提供了一种电子设备,包括:
处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
其中,所述处理器配置为运行所述计算机程序时,执行上述任一方法的步骤。
本申请实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一方法的步骤。
附图说明
图1为本申请一实施例提供的共享数据网络的方法的实现流程示意图;
图2为本申请一实施例提供的第一终端上数据转换的流程示意图;
图3为本申请一实施例提供的共享数据网络的方法的实现流程示意图;
图4为本申请一实施例提供的在一种工作模式下的第一终端的共享数据网络的示意图;
图5为本申请一实施例提供的配备多个处理器的第一终端的网络硬件框图;
图6为本申请一实施例提供的第一终端在配置多个处理器下数据包的传输示意图;
图7为本申请一实施例提供的共享数据网络的方法的实现流程示意图;
图8为本申请又一实施例提供的共享数据网络的方法的实现流程示意图;
图9为本申请一实施例提供的第二终端上的数据包转换流程示意图;
图10为本申请一实施例提供的共享数据网络的装置的结构示意图;
图11为本申请又一实施例提供的共享数据网络的装置的结构示意图;
图12为本申请一实施例提供电子设备的硬件组成结构示意图。
具体实施方式
本申请实施例提供了一种共享数据网络的方法。图1为本申请实施例的共享数据网络的方法的一种流程示意图。如图1所示,所述方法应用于第一终端,包括:
S101:基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包。
这里,第一终端的应用程序上的应用数据在进行数据传输的过程中,遵循一定的协议格式,在本申请中,基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包,其中,第一协议格式表征IP协议,第二协议格式表征TCP协议和/或UDP协议,从而能够将IP协议格式的第一数据包转换为TCP协议和/或UDP协议格式的第一数据包,其中,第二协议格式的第一数据包为应用层数据,从而能够在应用层上实现第一终端的应用数据的传输。
在实际应用中,第一协议格式的第一数据包是由将TCP协议和/或UDP协议格式的应用数据转换为IP协议格式的应用数据。其中,第一终端可以为智能手表,当第一终端处于无网络的状态下,例如,第一终端的蜂窝网络功能以及无线网络连接均处于关闭状态,可以通过具备网络访问能力的第二终端进行配对连接,实现第一终端与第二终端的共享数据网络。
在实际应用中,设定的应用层协议可以为轻型IP协议LwIP,能够在保持TCP协议主要功能的同时,减少对终端的RAM的占用,从而能够节省终端的资源与功耗,其中,设定的应用层协议可以基于蓝牙低功耗通用属性配置文件(BLE GATT,Bluetooh Low Energy Generic Attribute profile)或者蓝牙串口协议(BT SPP,Serial Port Profile)进行封装。
S102:通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应。
这里,第一终端与第二终端进行蓝牙配对连接,通过蓝牙网络,将第 二协议格式的第一数据包发送至第二终端,并接收第二终端返回的第二协议格式的第二数据包,其中,第二数据包表征对应的服务器返回的对第一数据包的响应,从而第一终端能够通过第二终端从网络中获取第一数据包的响应,使得第一终端能够基于第二终端实现数据网络的共享。
在实际应用中,使用标准的BT-PAN蓝牙协议在第一终端与第二终端之间传输第一协议格式的数据包的时候,需要获取一定的权限,示例地,第一终端需要获取允许互联网访问的权限,第二终端需要打开基于蓝牙共享网络的权限,从而才能在第一终端与第二终端之间成功传输第一协议格式的数据包,并且,当第一终端或第二终端之中存在不支持标准的BT-PAN蓝牙协议的情况下,无法实现第一终端与第二终端之间基于蓝牙共享网络,因此无法在第一终端与第二终端之间进行数据的传输,而在本申请中,在第一终端与第二终端之间传输的数据包为第二协议格式,也就是说,是在应用层实现数据的互传,并不是直接传输底层数据包,从而不需要获取第一终端与第二终端的用户权限,因此,即使在不支持标准的BT-PAN蓝牙协议的终端上也可以实现蓝牙网络共享,从而能够在不同终端上实现网络共享,提高了网络共享的兼容性。
S103:基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
这里,第一终端在接收到第二协议格式的第二数据包后,需要对第二协议格式的第二数据包进行格式转换,基于应用层协议,能够将第二协议格式的第二数据包转换成第一协议格式的第二数据包,第一协议格式的第二数据包会传送至第一虚拟网卡。
在实际应用中,当第一虚拟网卡接收到第一协议格式的第二数据之后,经过内核网络协议栈,将第一协议格式的第二数据转换为第二协议格式的第二数据应用,从而能够将第二数据返回至应用层,使得应用程序能够从网络中获取相应的响应数据。
如图2所示,图2示出了第一终端上数据转换的流程示意图,应用程序中的应用数据属于应用层的数据,当应用层中的数据需要传输到其他层的时候,需要通过数据接口进行传输,在本申请中,通过中间软件抽象层将应用程序的第二协议格式的应用数据发送到内核,其中,中间软件抽象层可以为套接字socket,根据TCP/IP协议,将内核中的第二协议格式的应用数据转换为第一协议格式的第一数据包,从而可以将应用数据转换为可以在因特网上传输的数据。将第一协议格式的第一数据发送至第一虚拟网卡,从而可以将第一协议格式的第一数据从应用层传输到网络代理层,第一虚拟网卡能够用于模拟网络环境与网络适配器,在实际应用中,当第一 终端具备物理网卡,第一终端可以直接通过物理网卡与网络连接,而当第一终端配备的是虚拟网卡,则可以通过与第二终端实现数据网络共享,第一虚拟网卡能够根据第二终端提供的数据网络共享,构建网络环境。网络代理层将第一协议格式的第一数据包发送到应用层,第一协议格式的第一数据包在经过设定的应用层协议,转换为第二协议格式的第一数据包,其中,设定的应用层协议可以为LwIP协议,使得第一终端向第二终端发送的数据为应用层的数据,在两个不同终端上实现应用数据的交互,不需要额外地获取网络权限,从而提高了数据网络共享的适用范围。
此外,第一终端还可以通过蓝牙网络接收第二终端返回的第二协议格式的第二数据包,在网络代理层中,基于应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传回第一虚拟网卡,第一虚拟网卡将第一协议格式的第二数据包返回至内核,根据TCP/IP协议,将第一协议格式的第二数据包转换会TCP/UDP应用数据,并返回至应用层,结束第一终端与第二终端之间的数据传输。
在一实施例中,如图3所示,所述第一终端配置有至少两个处理器;所述第一终端的蓝牙芯片挂载在第一处理器上;所述方法还包括:
S301:基于远程过程调用,将所述第二协议格式的第三数据包传输至所述第一处理器;所述第二协议格式的第三数据包由所述第二处理器运行的第一虚拟网卡基于所述应用层协议转换生成的。
这里,第一终端为了满足不同的需求,可以配备不同数量的处理器,当第一终端中含有一个处理器时,第一终端的蓝牙芯片挂载在第一处理器上,第一虚拟网卡由第一处理器运行,也就是说由第一终端的第一处理器负责对第一数据包与第二数据包进行处理。如图4所示,图4示出了在一种工作模式下的第一终端的共享数据网络的示意图,在图4中,第一虚拟网卡输出的数据为第一协议格式的第一数据包,通过设定的应用层协议将第一协议格式的第一数据包转换为第二协议格式的第一数据包后,通过蓝牙连接发出到第二终端。
当第一终端配置有至少两个处理器的情况下,在实际应用中,说明第一终端当前可以支持多种不同的工作模式,将第一终端的蓝牙芯片挂载在第一处理器上,能够使第一终端在不同工作模式下均可使用蓝牙连接,不需要为每个处理器配备一个蓝牙芯片,可以节省第一终端的能耗。如图5所示,图5示出了配备多个处理器的第一终端的网络硬件框图。当第一终端当前运行的处理器为第二处理器时,基于设定的应用层协议,将第二处理器上的第二虚拟网卡发出的第一协议格式的第三数据包转换为第二协议格式的第三数据包,其中,第三数据包为应用运行过程中的应用数据。由于第一终端的蓝牙芯片挂载在第一处理器上,因此,当通过蓝牙方式传输第二处理器上的数据的时候,需要将第二处理器上的数据通过远程过程调 用传输到第一处理器上,再通过第一处理器上挂载的蓝牙芯片,将第二处理器上的数据发出。
S302:通过蓝牙网络,将所述第二协议格式的第三数据包发送至所述第二终端。
这里,在第一处理器获得第二协议格式的第三数据包后,通过挂载在第一处理器上的蓝牙芯片,将第二协议格式的第三数据包发送到第二终端,从而完成第一终端的第二处理器与第二终端之间的数据交互,使第一终端能够利用第二终端的网络功能,获取第二处理器所需要的网络数据。在实际应用中,当第一终端的蓝牙芯片接收到第二终端返回的关于第三数据包的响应数据时,可以通过远程过程调用,将关于第三数据包的响应数据传输到第二处理器,从而使得第二处理器能够相应的网络数据并完成后续的数据处理。如图6所示,图6示出了第一终端在配置多个处理器下数据包的传输示意图,从而可以保证第一终端在不同处理器运行时,均可以实现数据网络的共享。
在一实施例中,所述第一处理器的运行功耗小于所述第二处理的运行功耗。
这里,当第一终端配置有至少两个处理器的情况下,第一处理器的运行功耗小于第二处理的运行功耗,使得蓝牙芯片挂载在多个处理器中运行功耗较小的第一处理器上。在实际应用中,第一终端配置的至少两个处理器中每个处理器可以工作在不同的电压和频率下,将计算繁重的任务交给工作在高频的处理器进行处理,将压力较小的任务交给工作在低频的处理器进行处理,从而能够将不同的任务分配到不同的处理器进行处理,减少了第一终端的功耗,示例地,对于配置有两个处理器的智能手表而言,存在两种工作模式,第一工作模式是为了提高智能手表的续航,使智能手表完成常规的任务,当智能手表处于第一工作模式时,由于任务简单,所需要的频率参数不用过高,对应运行的处理器为运行功耗较小的第一处理器,当智能手表处于第二工作模式时,是为了完成复杂的进程,例如,地图在线导航场景,对应运行的处理器为运行功耗较大的第二处理器,将蓝牙芯片挂载在第一处理器上,不仅能实现第一处理器与第二处理器共用相同的蓝牙芯片,还可以节省功耗。
在上述实施例中,通过设定的应用层协议,将数据包进行相应的协议格式的转换,通过蓝牙网络在应用层上进行数据包的交互,在不需要获取终端的底层权限的情况下,实现不同终端之间的数据网络共享,提高了数据网络共享的兼容性。
本申请实施例还提供了一种共享数据网络的方法,如图7所示,应用于第二终端,包括:
S701:通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格 式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应。
这里,第二终端通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,第二终端会基于第二协议格式的第一数据包从服务器端得到第一协议格式的第二数据包,其中,第二数据包表征对应的服务器返回的对第一数据包的响应。在实际应用中,中间软件抽象层能够将第二协议格式的第一数据包发送到第二终端的内核,内核将第二协议格式的第一数据包转换为第一协议格式的第一数据包,并通过物理网卡将第一协议格式的第一数据包发送到服务端,从而获取第一协议格式的第二数据包,其中,第二数据包是通过第二终端的物理网卡进行网络访问获取的,从而使第一终端间接地通过第二终端实现数据网络共享,并获取相应的数据。
S702:基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包。
这里,由于第一终端与第二终端之间是基于应用层进行数据传输的,因此在得到服务器返回的第一协议格式的第二数据包后,基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包,从而能够基于TCP和/或UDP协议格式的数据包进行传输。在实际应用中,设定的应用层协议可以基于蓝牙低功耗通用属性配置文件或者蓝牙串口协议(BT SPP,Serial Port Profile)进行封装。在实际应用中,当从服务器获取的第一协议格式的第二数据能够在内核根据设定的应用层协议,将第一协议格式的第二数据转换为第二协议格式的第二数据。
S703:通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
这里,第一终端与第二终端进行蓝牙配对连接,通过蓝牙网络,将第二协议格式的第二数据包发送至第一终端,从而能够基于应用层实现不同终端之间的数据传输。在实际应用中,使用标准的BT-PAN蓝牙协议在第一终端与第二终端之间传输第一协议格式的数据包的时候,由于第一协议格式的数据包是在因特网上传输的数据包,需要第一终端与第二终端获取一定的网络权限才能传输第一协议格式的数据包,示例地,第一终端需要获取允许互联网访问的权限,第二终端需要打开基于蓝牙共享网络的权限,使得第一终端与第二终端能够拥有相应的网络权限后,才能在第一终端与第二终端之间成功传输第一协议格式的数据包,而在第一终端或第二终端之间存在不支持标准的BT-PAN蓝牙协议的情况下,也就是说,无法基于蓝牙实现网络共享,第一终端或第二终端不能获取相应的网络权限,从而无法实现基于蓝牙网络共享进行数据传输。而在本申请中,由于在第一终端与第二终端之间传输的第二数据包为第二协议格式,而不是传输第一协 议格式的第二数据包,因此不需要在第一终端与第二终端获取一定的网络权限上才能实现网络共享,并且,第二协议格式的第二数据包为在网络中获取的第一终端发出的第一数据包的响应,因此,第一数据包与第二数据包之间的数据交互过程实质上实现了第一终端基于第二终端的蓝牙连接实现网络共享,能够在不同终端上实现网络共享,提高了网络共享的兼容性。
在一实施例中,所述第一终端与所述第二终端的蓝牙网络是基于第一设定应用配对连接的。
这里,为了在不同终端上实现共享数据网络,第一终端与第二终端之间的蓝牙网络是基于第一设定应用配对连接的,示例地,在第二终端上安装第一设定应用,通过第一设定应用配对设置第一终端,从而能够基于第一设定应用将第一终端与第二终端进行配对连接,在实际应用中,第一设定应用可以起到网络代理的作用,第一设定应用能够负责对第二终端接收的第二协议格式的第一数据包与第二协议格式的第二数据包进行相应的处理,示例地,第一设定应用能够将拿到的第二协议格式的第二数据包发送给第二终端的蓝牙芯片,通过蓝牙网络将第二协议格式的第二数据包发送至第一终端,使得不同终端能够通过第一设定应用实现终端之间的数据网络共享。
在一实施例中,如图8所示,所述基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包,包括:
S801:基于所述第一设定应用,通过中间软件抽象层将所述第二协议格式的第一数据包发送至内核。
这里,对于第二终端接收到的第二协议格式的第一数据包,首先由第一设定应用通过中间软件抽象层将第二协议格式的第一数据包发送到内核,在实际应用中,中间软件抽象层可以为套接字socket,使内核获取第二协议格式的第一数据包。
S802:基于所述应用层协议,将所述第二协议格式的第一数据包转换为第一协议格式的第一数据包。
这里,在内核中,会基于设定的应用层协议,将第二协议格式的第一数据包转换为第一协议格式的第一数据包,转换后的第一协议格式的第一数据能够在因特网上进行传输。
S803:通过物理网卡将内核中的第一协议格式的第一数据包发送至所述服务器,并接收所述服务器返回的第一协议格式的第二数据包。
这里,内核通过第二终端的物理网卡将第一协议格式的第一数据包发送至服务器,由于第一协议格式的第一数据能够在因特网上传输,而第二终端的物理网卡使第二终端具备网络访问的能力,因此,第二终端能够根据第一协议格式的第一数据在因特网上获取到服务器返回的第二数据包。如图9所示,图9示出了第二终端上的数据包转换流程示意图。在第二终端的数据包转换流程中,可以认为第一终端发送的是第一设定应用的应用 数据,并且第二终端会将第一设定应用的应用数据发送至第一终端,也就是,可以认为是第一设定应用的应用数据在第一终端与第二终端之间实现数据交互,传输的是应用数据,因此,并不需要在第一终端与第二终端均获取一定网络权限的情况下才能将数据包成功传输,并且在安装第一设定应用的情况下,能够在两个终端之间实现数据网络共享,提高了数据网络共享的适用范围。
在上述实施例中,通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,通过将第二协议格式的第一数据包转换为第一协议格式的第一数据包,使得能够根据第二终端的物理网卡,在网络中能够获取到第一数据包的响应信息第二数据包,并返回到第一终端,从而能够使第一终端通过第二终端的网卡实现数据网络共享。
为实现本申请实施例的方法,本申请实施例还提供了一种共享数据网络的装置,如图10所示,该装置包括:
第一转换单元1001,配置为基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
第一发送单元1002,配置为通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
第二转换单元1003,配置为基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
在一实施例中,所述第一终端配置有至少两个处理器;所述第一终端的蓝牙芯片挂载在第一处理器上;所述共享数据网络装置还配置为:
基于远程过程调用,将所述第二协议格式的第三数据包传输至所述第一处理器;所述第二协议格式的第三数据包由所述第二处理器运行的第一虚拟网卡基于所述设定的应用层协议转换生成的;
通过蓝牙网络,将所述第二协议格式的第三数据包发送至所述第二终端。
在一实施例中,所述第一处理器的运行功耗小于所述第二处理的运行功耗。
实际应用时,第一转换单元1001、第一发送单元1002、第二转换单元1003可由共享数据网络的装置中的处理器来实现。当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。
需要说明的是,上述图10实施例提供的共享数据网络的装置在进行共享数据网络时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部 结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的共享数据网络的装置与共享数据网络的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本申请实施例还提供了另一种共享数据网络的装置,如图11所示,该装置包括:
第一接收单元1101,配置为通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
第三转换单元1102,配置为基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包;
第二发送单元1103,配置为通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
在一实施例中,所述第一终端与所述第二终端的蓝牙网络是基于第一设定应用配对连接的。
在一实施例中,所述第一接收单元1101在基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包时,配置为:
基于所述第一设定应用,通过中间软件抽象层将所述第二协议格式的第一数据包发送至内核;
基于所述应用层协议,将所述第二协议格式的第一数据包转换为第一协议格式的第一数据包;
通过物理网卡将内核中的第一协议格式的第一数据包发送至所述服务器,并接收所述服务器返回的第一协议格式的第二数据包。
实际应用时,第一接收单元1101、第三转换单元1102、第二发送单元1103可由共享数据网络的装置中的处理器来实现。当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。
需要说明的是,上述图11实施例提供的共享数据网络的装置在进行共享数据网络时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的共享数据网络的装置与共享数据网络的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种电子设备,图12为本申请实施例电子设备的硬件组成结构示意图,如图12所示,电子设备包括:
通信接口1,能够与其它设备比如网络设备等进行信息交互;
处理器2,与通信接口1连接,以实现与其它设备进行信息交互,配置为运行计算机程序时,执行上述一个或多个技术方案提供的共享数据网络的方法。而所述计算机程序存储在存储器3上。
当然,实际应用时,电子设备中的各个组件通过总线系统4耦合在一起。可理解,总线系统4配置为实现这些组件之间的连接通信。总线系统4除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图12中将各种总线都标为总线系统4。
本申请实施例中的存储器3配置为存储各种类型的数据以支持电子设备的操作。这些数据的示例包括:配置为在电子设备上操作的任何计算机程序。
可以理解,存储器可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
上述本申请实施例揭示的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理 器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,处理器读取存储器中的程序,结合其硬件完成前述方法的步骤。
处理器执行所述程序时实现本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器,上述计算机程序可由处理器执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、电子设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。 而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
另外,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种共享数据网络的方法,应用于第一终端,包括:
    基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
    通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  2. 根据权利要求1所述的方法,其中,所述第一终端配置有至少两个处理器;所述第一终端的蓝牙芯片挂载在第一处理器上;所述方法还包括:
    基于远程过程调用,将所述第二协议格式的第三数据包传输至所述第一处理器;所述第二协议格式的第三数据包由所述第二处理器运行的第一虚拟网卡基于所述应用层协议转换生成的;
    通过蓝牙网络,将所述第二协议格式的第三数据包发送至所述第二终端。
  3. 根据权利要求2所述的方法,其中,所述第一处理器的运行功耗小于所述第二处理的运行功耗。
  4. 一种共享数据网络的方法,其中,应用于第二终端,包括:
    通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包;
    通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  5. 根据权利要求4所述的方法,其中,所述第一终端与所述第二终端的蓝牙网络是基于第一设定应用配对连接的。
  6. 根据权利要求5所述的方法,其中,所述基于所述第二协议格式 的第一数据包得到服务器返回的第一协议格式的第二数据包,包括:
    基于所述第一设定应用,通过中间软件抽象层将所述第二协议格式的第一数据包发送至内核;
    基于所述应用层协议,将所述第二协议格式的第一数据包转换为第一协议格式的第一数据包;
    通过物理网卡将内核中的第一协议格式的第一数据包发送至所述服务器,并接收所述服务器返回的第一协议格式的第二数据包。
  7. 一种共享数据网络的装置,包括:
    第一转换单元,配置为基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
    第一发送单元,配置为通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    第二转换单元,配置为基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  8. 根据权利要求7所述的共享数据网络的装置,其中,所述第一终端配置有至少两个处理器;所述第一终端的蓝牙芯片挂载在第一处理器上;所述共享数据网络的装置还配置为:
    基于远程过程调用,将所述第二协议格式的第三数据包传输至所述第一处理器;所述第二协议格式的第三数据包由所述第二处理器运行的第一虚拟网卡基于所述应用层协议转换生成的;
    通过蓝牙网络,将所述第二协议格式的第三数据包发送至所述第二终端。
  9. 根据权利要求8所述的共享数据网络的装置,其中,所述第一处理器的运行功耗小于所述第二处理的运行功耗。
  10. 一种共享数据网络的装置,包括:
    第一接收单元,配置为通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    第三转换单元,配置为基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包;
    第二发送单元,配置为通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  11. 根据权利要求10所述的共享数据网络的装置,其中,所述第一终端与所述第二终端的蓝牙网络是基于第一设定应用配对连接的。
  12. 根据权利要求11所述的共享数据网络的装置,其中,所述第一接收单元在基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包时,配置为:
    基于所述第一设定应用,通过中间软件抽象层将所述第二协议格式的第一数据包发送至内核;
    基于所述应用层协议,将所述第二协议格式的第一数据包转换为第一协议格式的第一数据包;
    通过物理网卡将内核中的第一协议格式的第一数据包发送至所述服务器,并接收所述服务器返回的第一协议格式的第二数据包。
  13. 一种电子设备,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,
    其中,所述处理器配置为运行所述计算机程序时,执行以下步骤:
    基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
    通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  14. 根据权利要求13所述的电子设备,其中,所述第一终端配置有至少两个处理器;所述第一终端的蓝牙芯片挂载在第一处理器上;所述处理器还执行:
    基于远程过程调用,将所述第二协议格式的第三数据包传输至所述第一处理器;所述第二协议格式的第三数据包由所述第二处理器运行的第一虚拟网卡基于所述应用层协议转换生成的;
    通过蓝牙网络,将所述第二协议格式的第三数据包发送至所述第二终端。
  15. 根据权利要求14所述的电子设备,其中,所述第一处理器的运行功耗小于所述第二处理的运行功耗。
  16. 一种电子设备,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
    其中,所述处理器配置为运行所述计算机程序时,执行以下步骤:
    通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包;
    通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  17. 根据权利要求16所述的电子设备,其中,第一终端与所述第二终端的蓝牙网络是基于第一设定应用配对连接的。
  18. 根据权利要求17所述的电子设备,其中,所述基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式的第二数据包,包括:
    基于所述第一设定应用,通过中间软件抽象层将所述第二协议格式的第一数据包发送至内核;
    基于所述应用层协议,将所述第二协议格式的第一数据包转换为第一协议格式的第一数据包;
    通过物理网卡将内核中的第一协议格式的第一数据包发送至所述服务器,并接收所述服务器返回的第一协议格式的第二数据包。
  19. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以下的步骤:
    基于设定的应用层协议,将第一虚拟网卡发出的第一协议格式的第一数据包转换为第二协议格式的第一数据包;
    通过蓝牙网络,将第二协议格式的第一数据包发送至第二终端,并接收所述第二终端返回的第二协议格式的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    基于所述应用层协议,将第二协议格式的第二数据包转换成第一协议格式的第二数据包,并将第一协议格式的第二数据包传送至所述第一虚拟网卡;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
  20. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以下的步骤:
    通过蓝牙网络,接收第一终端发送的第二协议格式的第一数据包,并基于所述第二协议格式的第一数据包得到服务器返回的第一协议格式 的第二数据包;其中,第二数据包表征对应的服务器返回的对第一数据包的响应;
    基于设定的应用层协议,将第一协议格式的第二数据包转换为第二协议格式的第二数据包;
    通过蓝牙网络,将所述第二协议格式的第二数据包发送至所述第一终端;其中,
    所述第一协议格式表征IP协议;所述第二协议格式表征TCP协议和/或UDP协议。
PCT/CN2022/090996 2021-06-10 2022-05-05 共享数据网络的方法、装置、电子设备及存储介质 WO2022257654A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110647008.7A CN113242261B (zh) 2021-06-10 2021-06-10 共享数据网络的方法、装置、电子设备及存储介质
CN202110647008.7 2021-06-10

Publications (1)

Publication Number Publication Date
WO2022257654A1 true WO2022257654A1 (zh) 2022-12-15

Family

ID=77139477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/090996 WO2022257654A1 (zh) 2021-06-10 2022-05-05 共享数据网络的方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN113242261B (zh)
WO (1) WO2022257654A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242261B (zh) * 2021-06-10 2023-04-07 Oppo广东移动通信有限公司 共享数据网络的方法、装置、电子设备及存储介质
CN116033592B (zh) * 2021-10-26 2023-10-20 荣耀终端有限公司 蜂窝通信功能的使用方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103785A (ja) * 2008-10-24 2010-05-06 Toshiba Corp 機器連携システム、機器連携方法
CN101778346A (zh) * 2009-01-09 2010-07-14 华为终端有限公司 基于蓝牙个人局域网的多媒体信息发送、处理方法及设备
CN109936566A (zh) * 2019-01-28 2019-06-25 北京和利时工业软件有限公司 一种数据传输方法系统、装置及计算机可读存储介质
CN111935196A (zh) * 2020-10-13 2020-11-13 之江实验室 基于EdgeX Foundry的Modbus与dnp3的协议转换方法
CN113242261A (zh) * 2021-06-10 2021-08-10 Oppo广东移动通信有限公司 共享数据网络的方法、装置、电子设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100547133B1 (ko) * 2003-07-11 2006-01-26 삼성전자주식회사 이종 단말들의 애드-혹 망을 구축하는 장치 및 방법
CN102724666B (zh) * 2011-03-31 2015-07-01 中国移动通信集团公司 一种终端数据中继方法、装置和系统
CN103532802A (zh) * 2013-10-11 2014-01-22 小米科技有限责任公司 一种网络共享的方法、装置及终端设备
US9980304B2 (en) * 2015-04-03 2018-05-22 Google Llc Adaptive on-demand tethering
CN108462701B (zh) * 2018-02-12 2021-06-01 武汉卡比特信息有限公司 一种免热点的共享手机网络上网系统和方法
CN109067718B (zh) * 2018-07-23 2021-04-27 浙江吉利汽车研究院有限公司 车载多媒体主机与移动终端共享网络的方法、装置、系统
CN112995895B (zh) * 2019-01-08 2023-02-28 中国联合网络通信集团有限公司 网络共享的方法、装置、终端及计算机可读存储介质
CN112422453B (zh) * 2020-12-09 2022-05-24 新华三信息技术有限公司 一种报文处理的方法、装置、介质及设备
CN112769794B (zh) * 2020-12-30 2022-06-21 神州绿盟成都科技有限公司 一种数据转换方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103785A (ja) * 2008-10-24 2010-05-06 Toshiba Corp 機器連携システム、機器連携方法
CN101778346A (zh) * 2009-01-09 2010-07-14 华为终端有限公司 基于蓝牙个人局域网的多媒体信息发送、处理方法及设备
CN109936566A (zh) * 2019-01-28 2019-06-25 北京和利时工业软件有限公司 一种数据传输方法系统、装置及计算机可读存储介质
CN111935196A (zh) * 2020-10-13 2020-11-13 之江实验室 基于EdgeX Foundry的Modbus与dnp3的协议转换方法
CN113242261A (zh) * 2021-06-10 2021-08-10 Oppo广东移动通信有限公司 共享数据网络的方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN113242261B (zh) 2023-04-07
CN113242261A (zh) 2021-08-10

Similar Documents

Publication Publication Date Title
WO2022257654A1 (zh) 共享数据网络的方法、装置、电子设备及存储介质
US11151010B2 (en) Resource configuration method, mobile terminal and storage medium
JP7389264B2 (ja) 無線通信方法及び無線通信機能を有する装置
CN104956347B (zh) 将一种互连协议的枚举和/或配置机制用于不同的互连协议
US20180357199A1 (en) Slave-to-slave communication in i3c bus topology
US8839403B2 (en) Local proxy system and method
EP2339792A1 (en) Method for accessing USB device attached to home gateway, home gateway and terminal
WO2022171083A1 (zh) 基于物联网设备的信息处理方法、相关设备及存储介质
US7280843B2 (en) Plug-and-play mass storage reflector
WO2024041412A1 (zh) 存储系统、方法以及硬件卸载卡
WO2020038443A1 (zh) 桥接通信的方法和设备
TW201403451A (zh) 儲存裝置的控制方法
US20090213824A1 (en) Wireless local area network packet transmitting and receiving system
US20180329838A1 (en) Bus communication enhancement based on identification capture during bus arbitration
US20190089738A1 (en) Establishing a proprietary link layer connection with a proprietary device
US20190090287A1 (en) Performing proprietary link layer control procedures with a proprietary device
US20230269791A1 (en) Networking Method, Networking System, and Electronic Device
WO2023081202A1 (en) Mec dual edge apr registration on behalf of edge platform in dual edge deployments
US20210320875A1 (en) Switch-based adaptive transformation for edge appliances
CN217607980U (zh) 一种智能手表
WO2022262529A1 (zh) 控制方法、装置、电子设备及存储介质
WO2024130593A1 (en) Gatt solution for dual bluetooth stack
CN111970748B (zh) 数据传输方法及装置、ap设备和存储介质
Pereira et al. Integration of TCP/IP and PROFIBUS protocols
JP4146426B2 (ja) コンピュータ・リソース利用方法および小型電子機器

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: 22819256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22819256

Country of ref document: EP

Kind code of ref document: A1