WO2016106910A1 - Data processing method and client - Google Patents

Data processing method and client Download PDF

Info

Publication number
WO2016106910A1
WO2016106910A1 PCT/CN2015/071545 CN2015071545W WO2016106910A1 WO 2016106910 A1 WO2016106910 A1 WO 2016106910A1 CN 2015071545 W CN2015071545 W CN 2015071545W WO 2016106910 A1 WO2016106910 A1 WO 2016106910A1
Authority
WO
WIPO (PCT)
Prior art keywords
user end
network
user
configuration information
networking mode
Prior art date
Application number
PCT/CN2015/071545
Other languages
French (fr)
Chinese (zh)
Inventor
李立彬
林春亮
杨云
刘洋
张延东
Original Assignee
深圳市理奥网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市理奥网络技术有限公司 filed Critical 深圳市理奥网络技术有限公司
Publication of WO2016106910A1 publication Critical patent/WO2016106910A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present invention relates to the field of communications, and in particular, to a data processing method and a client.
  • An existing near-field zero-traffic transmission scheme mainly establishes a wireless network hotspot through a first user end, a second user end accesses the wireless network hotspot, and establishes a first user end by establishing a communication channel through the self-organizing network.
  • a data transmission channel with the second client mainly establishes a wireless network hotspot through a first user end, a second user end accesses the wireless network hotspot, and establishes a first user end by establishing a communication channel through the self-organizing network.
  • the near-field zero-traffic transmission scheme cannot select a different networking manner according to the network configuration information of the first user end and the second user end to establish a communication channel between the first user end and the second user end.
  • the embodiment of the invention provides a data processing method, which is used to establish a communication channel according to network parameters of the user end through different networking modes to implement near field transmission.
  • the first aspect of the present invention provides a data processing method, including:
  • the first user end establishes a command channel with the second user end through the Bluetooth protocol
  • the first user end negotiates network parameters with the second user end by using the command channel;
  • the first user end establishes a communication channel with the second user end by using the target networking mode
  • the first user end and the second user end transmit data through the communication channel.
  • the network parameter negotiation between the first user end and the second user end by using the command channel includes:
  • the first user end detects its own first network configuration information according to the second ad hoc protocol command
  • the method for determining the target networking mode by the first user end according to the negotiation result is specifically:
  • the first user end determines the target networking mode according to the first network configuration information and the second network configuration information.
  • the determining, by the first user end, the target networking manner according to the first network configuration information and the second network configuration information includes:
  • the first user end and the second user end support the wi-fi direct service, the first user end determines that the wi-fi direct service networking is the target networking mode.
  • the method further includes:
  • the first user end determines whether the first user end and the second user end are in the same local area network
  • the first user end determines that the local area network is a target networking mode
  • the first user end determines that the self-organized network networking is the target networking mode.
  • the first user end When the target networking mode is set up by using the wi-fi direct service, the first user end establishes a communication channel with the second user end by using the target networking mode:
  • the first user end and the second user end initiate the wi-fi direct service, and establish a peer-to-peer network by using the wi-fi direct service;
  • the first user end establishes a communication channel with the second user end through the peer-to-peer network.
  • the first user end When the target networking mode is the networking through the local area network, the first user end establishes a communication channel with the second user end by using the target networking mode:
  • the first user end and the second user end establish a communication channel by opening a network socket service through the local area network.
  • the first user end When the target networking mode is the network through the ad hoc network, the first user end establishes a communication channel with the second user end by using the target networking mode:
  • the first user end establishes a wireless ad hoc network with the second user end, and establishes a communication channel by using the wireless ad hoc network to open a network socket service.
  • a second aspect of the present invention provides a user terminal, including:
  • a first establishing module configured to establish a command channel with the second user end by using a Bluetooth protocol
  • a negotiation module configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module
  • a determining module configured to determine a target networking mode according to the negotiation result obtained by the negotiation module
  • a second establishing module configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module
  • a transmission module configured to transmit data with the communication channel established by the second user terminal by using the second setup module.
  • the negotiation module includes:
  • a protocol sending and receiving unit configured to send, by using the command channel, a first ad hoc protocol command to the second user end, and receive a second ad hoc protocol command sent by the second user end;
  • a detecting unit configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit, the first network configuration information of the first network configuration information
  • the transceiver unit is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive second network configuration information sent by the second user end;
  • the determining module is specifically configured to determine a target networking manner according to the first network configuration information and the second network configuration information.
  • the determining module includes:
  • a first determining unit configured to determine, according to the first network configuration information and the second network configuration information, whether the user end and the second user end support a wi-fi direct service
  • a first determining unit configured to: when the first determining unit determines that the user end and the second user end support a wi-fi direct service, determine that the wi-fi direct service networking is a target networking the way.
  • the determining module further includes:
  • a second determining unit configured to: when the first determining unit determines that the user end or the second user end does not support the wi-fi direct technology, determine whether the user end and the second user end are in the same In the local area network;
  • a second determining unit configured to: when the second determining unit determines that the user end and the second user end are in the same local area network, determine, by using the local area network to be a target networking mode;
  • a third determining unit configured to determine, by the second determining unit, that the user terminal and the second user end are not in the same local area network, determining, by using the ad hoc network networking, a target networking mode.
  • the second establishing module is specifically configured to: start a wi-fi direct service, and establish a peer-to-peer network by using the wi-fi direct service, when the target networking mode is a network through a wi-fi direct service.
  • the peer-to-peer network establishes a communication channel.
  • the second establishing module is specifically configured to: establish a communication channel by using the local area network to open a socket service.
  • the second establishing module is specifically configured to: establish an infinite ad hoc network with the second user, and enable the socket service by using the wireless ad hoc network. Establish a communication channel.
  • the embodiment of the present invention has the following advantages: the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and determine the target networking according to the negotiation result. After the mode is established, the communication channel is established with the second user end by using the target networking mode, that is, the first user end can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of a single wireless hotspot network.
  • the way to establish a communication channel enables multi-mode transmission.
  • FIG. 1 is a flowchart of an embodiment of a data processing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another embodiment of a data processing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of another embodiment of a data processing method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another embodiment of a data processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an embodiment of a user end according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of a user end according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another embodiment of a user end according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another embodiment of a user terminal in an embodiment of the present invention.
  • An embodiment of the present invention provides a data processing method, which is used to pass a network parameter of a user end.
  • Different networking modes establish communication channels to implement near-field transmission.
  • an embodiment of a data processing method in an embodiment of the present invention includes:
  • the first user end establishes a command channel with the second user end by using a Bluetooth protocol.
  • the command channel can be established with the second user through the Bluetooth protocol.
  • the user terminal described in this embodiment and the following embodiments may be a certain user equipment in an actual application, which is not limited herein.
  • the first user end negotiates network parameters with the second user end by using the command channel.
  • the first user end negotiates network parameters with the second user through the command channel.
  • the first user end determines a target networking mode according to the negotiation result.
  • the first user end determines the target networking mode according to the negotiation result of the network parameter negotiation with the second user end.
  • the first user end establishes a communication channel with the second user end by using a target networking manner.
  • the first user terminal After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
  • the first user end and the second user end transmit data through the communication channel.
  • the first user end After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
  • the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first
  • the second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
  • another embodiment of a data processing method in an embodiment of the present invention includes:
  • the first user end establishes a command channel with the second user end by using a Bluetooth protocol.
  • the command channel can be established with the second user through the Bluetooth protocol.
  • the first user end and the second user end can check the Bluetooth status before data transmission. If the Bluetooth is not enabled, the user end can be automatically turned on, or can be manually opened according to the user setting. There is no limit here.
  • the first user end sends the first ad hoc protocol command to the second user end by using the command channel, and receives the second ad hoc group protocol command sent by the second user end.
  • the first user terminal After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user terminal sends a first ad hoc protocol command to the second user end, and receives a second ad hoc protocol command sent by the second user end.
  • the self-organizing protocol command is used to request the peer to detect its own network configuration information.
  • the self-organizing protocol command can also be used for other operations, which is not limited herein.
  • the first user end detects the first network configuration information of the first user according to the second ad hoc protocol command.
  • the first user end receives the second ad hoc protocol command sent by the second user end, and detects the first network configuration information of the second user group according to the second ad hoc protocol command.
  • the first user end after receiving the second ad hoc protocol command, the first user end detects and analyzes the current network environment and device conditions according to the second ad hoc protocol command, and obtains the first network.
  • Network configuration information which may be the current network status and network hardware support level, including the type of network used, the IP address, or the hardware condition information of the device itself. In actual applications, the network configuration information may also include other information. limited.
  • the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
  • the first user end After detecting, according to the second self-group protocol command, the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
  • the second user end after receiving the first ad hoc protocol command sent by the first user end, the second user end detects its second network configuration information according to the first ad hoc protocol command, and The second network configuration information is sent to the first user end, so that the first user end can receive the second network configuration information.
  • the first user end determines a target networking mode according to the first network configuration information and the second network configuration information.
  • the first user end After receiving the second network configuration information sent by the second user end, the first user end determines the target networking mode according to the first network configuration information and the second network configuration information.
  • the first user end establishes a communication channel with the second user end by using a target networking mode.
  • the first user terminal After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
  • the first user end and the second user end transmit data through the communication channel.
  • the first user end After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
  • the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first
  • the second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
  • the embodiment provides a scheme for network parameter negotiation between the first user end and the second user end, which increases the selectivity of the solution.
  • the standard network mode is described in detail, specifically:
  • another embodiment of the data processing method in the embodiment of the present invention includes:
  • the first user end establishes a command channel with the second user end by using a Bluetooth protocol.
  • the command channel can be established with the second user through the Bluetooth protocol.
  • the first user end and the second user end can check the Bluetooth status before data transmission. If the Bluetooth is not enabled, the user end can be automatically turned on, or can be manually opened according to the user setting. There is no limit here.
  • the first user end sends the first ad hoc protocol command to the second user end by using the command channel, and receives the second ad hoc group protocol command sent by the second user end.
  • the first user terminal After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user terminal sends a first ad hoc protocol command to the second user end, and receives a second ad hoc protocol command sent by the second user end.
  • the self-organizing protocol command is used to request the peer to detect its own network configuration information.
  • the self-organizing protocol command can also be used for other operations, which is not limited herein.
  • the first user end detects the first network configuration information of the first user according to the second ad hoc protocol command.
  • the first user end receives the second ad hoc protocol command sent by the second user end, and detects the first network configuration information of the second user group according to the second ad hoc protocol command.
  • the first user end after receiving the second ad hoc protocol command, the first user end detects and analyzes the current network environment and device conditions according to the second ad hoc protocol command, and obtains the first network configuration information, which may be The current network state and the network hardware support level, including the network type, the IP address, or the hardware condition information of the device itself.
  • the network configuration information may also include other information, which is not limited herein.
  • the network configuration information may include the current network state and the network hardware support level. In actual applications, other information may also be included, which is not limited herein.
  • the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
  • the first user end After detecting, according to the second self-group protocol command, the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
  • the second user end after receiving the first ad hoc protocol command sent by the first user end, the second user end detects its second network configuration information according to the first ad hoc protocol command, and The second network configuration information is sent to the first user end, so that the first user end can receive the second network configuration information.
  • the first user end determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, step 306 is performed, and if no, the step is performed. 309;
  • the first user After receiving the second network configuration information sent by the second user, the first user determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, go to step 306, if no, go to step 309.
  • the first user determines that the wi-fi direct service network is used as the target networking mode.
  • the first user end determines that the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information, determining that the wi-fi direct service network is the target networking mode .
  • the first user end establishes a communication channel with the second user end by using a target networking manner.
  • the first user terminal After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
  • the communication channel may include a protocol command channel and a data channel, wherein the protocol command channel may be used to transmit a protocol or an instruction during data transmission, and the data channel may be used to perform transmission of the target data.
  • the first user end determines that the wi-fi direct service networking is the target networking mode according to the first network configuration information and the second network configuration information, the first user end adopts the target networking mode and the second The user establishes a communication channel specifically as follows:
  • the first user end and the second user end start the wi-fi direct service, and establish a peer-to-peer network through the wi-fi direct service;
  • the first user end establishes a communication channel with the second user end through the peer-to-peer network
  • the first user terminal may establish a communication channel with the second user terminal through the target networking mode.
  • the first user end and the second user end transmit data through the communication channel.
  • the first user end After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
  • the first client performs other operations.
  • the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first
  • the second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
  • the embodiment provides a scheme for network parameter negotiation between the first user end and the second user end, which increases the selectivity of the solution.
  • the method for determining the target networking mode by the first user end according to the first network configuration information and the second network configuration information is added to the embodiment, which increases the selectivity of the solution.
  • the first user terminal or the second user terminal may further determine whether the first user terminal and the second user terminal are in the same local area network, specifically:
  • another embodiment of a data processing method in an embodiment of the present invention includes:
  • the first user end establishes a command channel with the second user end by using a Bluetooth protocol.
  • the command channel can be established with the second user through the Bluetooth protocol.
  • the first user end and the second user end can check the Bluetooth status before data transmission. If the Bluetooth is not enabled, the user end can be automatically turned on, or can be manually opened according to the user setting. There is no limit here.
  • the first user end sends a first ad hoc protocol command to the second user end by using the command channel, and receives a second ad hoc group protocol command sent by the second user end.
  • the first user terminal After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user terminal sends a first ad hoc protocol command to the second user end, and receives a second ad hoc protocol command sent by the second user end.
  • the ad hoc protocol command is used to request the peer to detect its own network configuration information.
  • the self-organizing protocol command can also be used for other operations, which is not limited herein.
  • the first user end detects its first network configuration information according to the second ad hoc protocol command.
  • the first user end receives the second ad hoc protocol command sent by the second user end, and detects the first network configuration information of the second user group according to the second ad hoc protocol command.
  • the first user end after receiving the second ad hoc protocol command, the first user end detects and analyzes the current network environment and device conditions according to the second ad hoc protocol command, and obtains the first network configuration information, which may be The current network state and the network hardware support level, including the network type, the IP address, or the hardware condition information of the device itself.
  • the network configuration information may also include other information, which is not limited herein.
  • the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
  • the first user end After detecting, according to the second self-group protocol command, the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
  • the second user end after receiving the first ad hoc protocol command sent by the first user end, the second user end detects its second network configuration information according to the first ad hoc protocol command, and The second network configuration information is sent to the first user end, so that the first user end can receive the second network configuration information.
  • the first user end determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, step 406 is performed, and if no, the step is performed. 407;
  • the first user After receiving the second network configuration information sent by the second user, the first user determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, go to step 406. If no, go to step 407.
  • step 410 the first user determines to use the wi-fi direct service network as the target networking mode, step 410 is performed;
  • the wi-fi direct service network is the target networking mode Go to step 410.
  • the first user end determines whether the first user end and the second user end are in the same local area network. If yes, go to step 408, if no, go to step 409;
  • the first user terminal determines whether the first user terminal and the second user terminal are in the same local area network. If yes, step 408 is performed, and if not, Go to step 409.
  • the first user end may determine whether the second user end is in the same local area network by sending a detection frame to the second user end. In actual applications, the first user end may also determine whether the second The user is in the same local area network, which is not limited here.
  • the first user determines to use the local area network as the target networking mode, step 410 is performed;
  • the first user end determines that the network is set to the target networking mode through the local area network, and step 410 is performed.
  • the first user end determines that the self-organized network networking is the target networking mode, and step 410 is performed;
  • the first user end determines that the second user terminal is not in the same local area network
  • the first user end determines that the self-organized network networking is the target networking mode.
  • the first user end establishes a communication channel with the second user end by using a target networking manner.
  • the first user terminal After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
  • the communication channel may include a protocol command channel and a data channel, wherein the protocol command channel may be used to transmit a protocol or an instruction during data transmission, and the data channel may be used to perform transmission of the target data.
  • the first user end determines that the network is set to the target network through the local area network, the first user end establishes a communication channel with the second user end by using the target networking mode:
  • the first user end and the second user end establish a communication channel by using the local area network to open a network socket service
  • the first user determines that the network is in the target networking mode, the first user establishes a communication channel with the second user by using the target networking mode:
  • the first user terminal may establish a communication channel with the second user terminal through the target networking mode.
  • the first user end and the second user end transmit data through the communication channel.
  • the first user end After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
  • the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first
  • the second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
  • the embodiment provides a scheme for network parameter negotiation between the first user end and the second user end, which increases the selectivity of the solution.
  • the method for determining the target networking mode by the first user end according to the first network configuration information and the second network configuration information is added to the embodiment, which increases the selectivity of the solution.
  • the processing manner in which the first user end or the second user end user does not support the wi-fi direct service is added, and the selectivity of the solution is increased.
  • the first user end and the second user end need to perform data transmission
  • the first user end and the second user end both turn on the Bluetooth
  • the first user end detects the near field device by using Bluetooth: the following device information: “Bluetooth_yonghu88”, “mmxxsse65” "dieryonghuduan”, wherein "dieryonghuduan” is the second user equipment identifier
  • the first user end establishes a command channel with the second user end identified as "dieryonghuduan" through the Bluetooth protocol.
  • the first user end and the second user end respectively send an ad hoc protocol command to the peer end through the command channel, requesting the peer end to detect its own network configuration information, that is, the first user end passes the command to pass the
  • the second client sends a first ad hoc protocol command and receives a second ad hoc protocol command sent by the second client.
  • the first user end and the second user end After receiving the ad hoc protocol command sent by the peer end, the first user end and the second user end detect their own network configuration information according to the self-organizing protocol command, including the current network status, and whether the network hardware support such as the wi-fi direct service is supported.
  • the information is sent to the peer end, that is, the first user detects the first network configuration information according to the received second self-group protocol, and the first network is configured.
  • the network configuration information is sent to the second user end, and the second network configuration information sent by the second user end is received.
  • the first user end After receiving the second network configuration information, the first user end determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information, where the first Both the user end and the second user end support the first user end to determine the target networking mode through the wi-fi direct service networking.
  • the first user end and the second user enable wi-fi direct, establish a peer-to-peer network through the wi-fi direct service, and open a communication channel based on the peer-to-peer network, including a protocol command channel and a data channel, the first user terminal and The second client can perform data transmission on the communication channel.
  • an embodiment of the UE in the embodiment of the present invention includes:
  • a first establishing module 501 configured to establish a command channel with the second user end by using a Bluetooth protocol
  • the negotiation module 502 is configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module 501.
  • the determining module 503 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 502.
  • a second establishing module 504 configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 503;
  • the transmission module 505 is configured to transmit data established by the second user terminal through the second establishing module 504.
  • the first establishing module 501 can establish a command channel with the second user terminal through the Bluetooth protocol, and the negotiation module 502 performs network parameter negotiation through the command channel established by the first establishing module 501, and the determining module 503 determines the target group according to the negotiation result.
  • the second establishing module 504 establishes a communication channel with the second user end by using the target networking mode
  • the transmission module 505 can implement the first user end and the second user end by using the communication channel established by the second establishing module 504.
  • the first user can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby realizing multi-mode transmission.
  • another embodiment of the UE in the embodiment of the present invention includes:
  • a first establishing module 601 configured to establish a command channel with the second user end by using a Bluetooth protocol
  • the negotiation module 602 is configured to use the command channel established by the first establishing module 601 and the second user end. Perform network parameter negotiation;
  • the determining module 603 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 602.
  • a second establishing module 604 configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 603;
  • the transmission module 605 is configured to transmit data that is established by the second user terminal through the second establishing module 604.
  • the negotiation module 602 specifically includes:
  • the protocol transceiver unit 6021 is configured to send a first ad hoc protocol command to the second user end by using the command channel, and receive a second ad hoc protocol command sent by the second user end;
  • the detecting unit 6022 is configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit 6021, the first network configuration information of the first network configuration information.
  • the transceiver unit 6023 is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive the second network configuration information sent by the second user end;
  • the determining module 603 is specifically configured to determine a target networking mode according to the first network configuration information and the second network configuration information.
  • the first establishing module 601 can establish a command channel with the second user end through the Bluetooth protocol, and the negotiation module 602 performs network parameter negotiation through the command channel established by the first establishing module 601, and the determining module 603 determines the target group according to the negotiation result.
  • the second establishing module 604 establishes a communication channel with the second user end by using the target networking mode
  • the transmission module 605 can implement the first user end and the second user end by using the communication channel established by the second establishing module 604.
  • the first user can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby realizing multi-mode transmission.
  • another embodiment of the UE in the embodiment of the present invention includes:
  • a first establishing module 701 configured to establish a command channel with the second user end by using a Bluetooth protocol
  • the negotiation module 702 is configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module 701.
  • the determining module 703 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 702.
  • a second establishing module 704 configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 703;
  • the transmission module 705 is configured to transmit data that is established by the second user terminal through the second establishing module 704.
  • the negotiation module 702 specifically includes:
  • the protocol transceiver unit 7021 is configured to send, by using the command channel, a first ad hoc protocol command to the second user end, and receive a second ad hoc protocol command sent by the second user end;
  • the detecting unit 7022 is configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit 7021, the first network configuration information of the first network configuration information.
  • the sending and receiving unit 7023 is configured to send, to the second user end, the first network configuration information that is detected by the detecting unit, and receive the second network configuration information that is sent by the second user end;
  • the determining module 703 specifically includes:
  • the first determining unit 7031 is configured to determine, according to the first network configuration information and the second network configuration information, whether the first user end and the second user end support the wi-fi direct service;
  • the first determining unit 7032 is configured to determine, by the first determining unit, that the first user end and the second user end support the wi-fi direct service, determining, by using the wi-fi direct service networking, the target networking mode.
  • the second establishing module 704 is specifically configured to: start the wi-fi direct service, and pass the wi- The fi direct service establishes a peer-to-peer network and establishes a communication channel through the peer-to-peer network.
  • the first establishing module 701 can establish a command channel with the second user terminal through the Bluetooth protocol, and the negotiation module 702 performs network parameter negotiation through the command channel established by the first establishing module 701, and the determining module 703 determines the target group according to the negotiation result.
  • the second establishing module 704 establishes a communication channel with the second user end by using the target networking mode, and the transmission module 705 can implement the first user end and the second user end by using the communication channel established by the second establishing module 704.
  • the first user can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby realizing multi-mode transmission.
  • another embodiment of the UE in the embodiment of the present invention includes:
  • a first establishing module 801 configured to establish a command channel with the second user end by using a Bluetooth protocol
  • the negotiation module 802 is configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module 801;
  • the determining module 803 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 802.
  • a second establishing module 804 configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 803;
  • a transmission module 805, configured to transmit data established by the second user terminal through the second establishing module 804;
  • the negotiation module 802 specifically includes:
  • the protocol transceiver unit 8021 is configured to send a first ad hoc protocol command to the second user end by using the command channel, and receive a second ad hoc protocol command sent by the second user end;
  • the detecting unit 8022 is configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit 8021, the first network configuration information of the first network configuration information.
  • the transceiver unit 8023 is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive the second network configuration information sent by the second user end;
  • the determining module 803 specifically includes:
  • the first determining unit 8031 is configured to determine, according to the first network configuration information and the second network configuration information, whether the first user end and the second user end support the wi-fi direct service;
  • the first determining unit 8032 is configured to: when the first determining unit determines that the first user end and the second user end support the wi-fi direct service, determine that the wi-fi direct service networking is the target networking mode;
  • the second determining unit 8033 is configured to: when the first determining unit determines that the first user end or the second user end does not support the wi-fi direct technology, determine whether the first user end and the second user end are in the same local area network If yes, the second determining unit 8034 is triggered, and if not, the third determining unit 8035 is triggered;
  • the second determining unit 8034 is configured to determine, by the second determining unit 8033, that the first user end and the second user end are in the same local area network, determining that the networking mode is the target networking mode through the local area network;
  • the third determining unit 8035 is configured to determine, by the second determining unit 8033, that the first user end and the second user end are not in the same local area network, determining, by using the ad hoc network networking, a target networking manner.
  • the second establishing module 804 is specifically configured to: establish a communication channel by using the local area network to open the socket service;
  • the second establishing module 804 is specifically configured to: establish an infinite self-organizing network, and establish a communication channel by using the wireless ad hoc network to enable the socket service.
  • the first establishing module 801 can establish a command channel with the second user terminal through the Bluetooth protocol, and the negotiation module 802 performs network parameter negotiation through the command channel established by the first establishing module 801.
  • the second establishing module 804 establishes a communication channel with the second user terminal by using the target networking mode
  • the transmission module 805 can implement the communication channel established by the second establishing module 804.
  • Data transmission between a user end and a second user end, that is, the first user end can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network in a single manner. , achieve multi-mode transmission.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described 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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

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

Abstract

A data processing method, used for establishing a communication channel via different networking modes according to network configuration information about a client, so as to implement multimode near-field transmission. The method of the embodiments of the present invention comprises: a first client establishes a command channel with a second client through a Bluetooth protocol; the first client negotiates network parameters with the second client through the command channel; the first client determines a target networking mode according to a negotiation result; the first client establishes a communication channel with the second client through the target networking mode; and the first client and the second client transmit data via the communication channel.

Description

一种数据处理方法以及用户端Data processing method and client side
本申请要求于2014年12月29日提交中国专利局、申请号为201410835795.8、发明名称为“一种数据处理方法以及用户端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410835795.8, entitled "A Data Processing Method and User Terminal" on December 29, 2014, the entire contents of which is incorporated herein by reference. in.
技术领域Technical field
本发明涉及通信领域,尤其涉及一种数据处理方法以及用户端。The present invention relates to the field of communications, and in particular, to a data processing method and a client.
背景技术Background technique
随着无线技术的不断发展,如何实现近场零流量传输更是得到越来越多的关注。With the continuous development of wireless technology, how to achieve near-field zero-traffic transmission is getting more and more attention.
现有的一种近场零流量传输方案主要是通过第一用户端组建无线网络热点,第二用户端接入该无线网络热点,并通过该自组网络建立通信通道的方式建立第一用户端与第二用户端之间的数据传输通道。An existing near-field zero-traffic transmission scheme mainly establishes a wireless network hotspot through a first user end, a second user end accesses the wireless network hotspot, and establishes a first user end by establishing a communication channel through the self-organizing network. A data transmission channel with the second client.
但是,这种近场零流量传输方案无法根据第一用户端以及第二用户端的网络配置信息选择不同的组网方式建立第一用户端与第二用户端之间的通信通道。However, the near-field zero-traffic transmission scheme cannot select a different networking manner according to the network configuration information of the first user end and the second user end to establish a communication channel between the first user end and the second user end.
发明内容Summary of the invention
本发明实施例提供了一种数据处理方法,用于根据用户端的网络参数通过不同的组网方式建立通信通道,实现近场传输。The embodiment of the invention provides a data processing method, which is used to establish a communication channel according to network parameters of the user end through different networking modes to implement near field transmission.
有鉴于此,本发明第一方面提供了一种数据处理方法,包括:In view of this, the first aspect of the present invention provides a data processing method, including:
第一用户端通过蓝牙协议与第二用户端建立命令通道;The first user end establishes a command channel with the second user end through the Bluetooth protocol;
所述第一用户端通过所述命令通道与所述第二用户端进行网络参数协商;The first user end negotiates network parameters with the second user end by using the command channel;
所述第一用户端根据协商结果确定目标组网方式;Determining, by the first user end, a target networking mode according to the negotiation result;
所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道;The first user end establishes a communication channel with the second user end by using the target networking mode;
所述第一用户端与所述第二用户端通过所述通信通道传输数据。The first user end and the second user end transmit data through the communication channel.
可选地:Optionally:
所述第一用户端通过所述命令通道与所述第二用户端进行网络参数协商包括:The network parameter negotiation between the first user end and the second user end by using the command channel includes:
所述第一用户端通过所述命令通道向所述第二用户端发送第一自组协议 命令,并接收所述第二用户端发送的第二自组协议命令;Transmitting, by the first user end, the first ad hoc protocol to the second user end by using the command channel Commanding, and receiving a second ad hoc protocol command sent by the second user terminal;
所述第一用户端根据所述第二自组协议命令检测自身的第一网络配置信息;The first user end detects its own first network configuration information according to the second ad hoc protocol command;
所述第一用户端向所述第二用户端发送所述第一网络配置信息,并接收所述第二用户端发送的第二网络配置信息;Transmitting, by the first user end, the first network configuration information to the second user end, and receiving second network configuration information sent by the second user end;
所述第一用户端根据协商结果确定目标组网方式具体为:The method for determining the target networking mode by the first user end according to the negotiation result is specifically:
所述第一用户端根据所述第一网络配置信息以及所述第二网络配置信息确定目标组网方式。The first user end determines the target networking mode according to the first network configuration information and the second network configuration information.
可选地:所述第一用户端根据所述第一网络配置信息以及所述第二网络配置信息确定目标组网方式包括:Optionally, the determining, by the first user end, the target networking manner according to the first network configuration information and the second network configuration information includes:
所述第一用户端根据所述第一网络配置信息以及所述第二网络配置信息判断所述第一用户端以及所述第二用户端是否均支持wi-fi direct服务;Determining, by the first user end, whether the first user end and the second user end support a wi-fi direct service according to the first network configuration information and the second network configuration information;
若所述第一用户端以及所述第二用户端均支持wi-fi direct服务,则所述第一用户端确定通过所述wi-fi direct服务组网为目标组网方式。If the first user end and the second user end support the wi-fi direct service, the first user end determines that the wi-fi direct service networking is the target networking mode.
可选地:Optionally:
所述方法还包括:The method further includes:
若所述第一用户端或所述第二用户端不支持wi-fi direct技术,则所述第一用户端判断所述第一用户端以及所述第二用户端是否处于同一局域网中;If the first user end or the second user end does not support the wi-fi direct technology, the first user end determines whether the first user end and the second user end are in the same local area network;
若所述第一用户端以及所述第二用户端处于同一局域网中,则所述第一用户端确定通过所述局域网组网为目标组网方式;If the first user end and the second user end are in the same local area network, the first user end determines that the local area network is a target networking mode;
若所述第一用户端以及所述第二用户端不处于同一局域网中,则所述第一用户端确定通过自组网络组网为目标组网方式。If the first user end and the second user end are not in the same local area network, the first user end determines that the self-organized network networking is the target networking mode.
可选地:Optionally:
当所述目标组网方式为通过wi-fi direct服务组网时,所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道具体为:When the target networking mode is set up by using the wi-fi direct service, the first user end establishes a communication channel with the second user end by using the target networking mode:
所述第一用户端以及所述第二用户端启动所述wi-fi direct服务,并通过所述wi-fi direct服务建立对等网;The first user end and the second user end initiate the wi-fi direct service, and establish a peer-to-peer network by using the wi-fi direct service;
所述第一用户端通过所述对等网与所述第二用户端建立通信通道。The first user end establishes a communication channel with the second user end through the peer-to-peer network.
可选地: Optionally:
当所述目标组网方式为通过局域网组网时,所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道具体为:When the target networking mode is the networking through the local area network, the first user end establishes a communication channel with the second user end by using the target networking mode:
所述第一用户端以及所述第二用户端通过所述局域网开启网络socket服务建立通信通道。The first user end and the second user end establish a communication channel by opening a network socket service through the local area network.
可选地:Optionally:
当所述目标组网方式为通过自组网络组网时,所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道具体为:When the target networking mode is the network through the ad hoc network, the first user end establishes a communication channel with the second user end by using the target networking mode:
所述第一用户端与所述第二用户端建立无线自组网络,并通过所述无线自组网络开启网络socket服务建立通信通道。The first user end establishes a wireless ad hoc network with the second user end, and establishes a communication channel by using the wireless ad hoc network to open a network socket service.
本发明第二方面提供了一种用户端,包括:A second aspect of the present invention provides a user terminal, including:
第一建立模块,用于通过蓝牙协议与第二用户端建立命令通道;a first establishing module, configured to establish a command channel with the second user end by using a Bluetooth protocol;
协商模块,用于通过所述第一建立模块建立的所述命令通道与所述第二用户端进行网络参数协商;a negotiation module, configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module;
确定模块,用于根据所述协商模块得到的协商结果确定目标组网方式;a determining module, configured to determine a target networking mode according to the negotiation result obtained by the negotiation module;
第二建立模块,用于通过所述确定模块确定的目标组网方式与所述第二用户端建立通信通道;a second establishing module, configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module;
传输模块,用于与所述第二用户端通过所述第二建立模块建立的所述通信通道传输数据。And a transmission module, configured to transmit data with the communication channel established by the second user terminal by using the second setup module.
可选地:Optionally:
所述协商模块包括:The negotiation module includes:
协议收发单元,用于通过所述命令通道向所述第二用户端发送第一自组协议命令,并接收所述第二用户端发送的第二自组协议命令;a protocol sending and receiving unit, configured to send, by using the command channel, a first ad hoc protocol command to the second user end, and receive a second ad hoc protocol command sent by the second user end;
检测单元,用于根据所述协议收发单元接收的第二自组协议命令检测自身的第一网络配置信息;a detecting unit, configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit, the first network configuration information of the first network configuration information;
配置收发单元,用于向所述第二用户端发送所述检测单元检测到的所述第一网络配置信息,并接收所述第二用户端发送的第二网络配置信息;The transceiver unit is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive second network configuration information sent by the second user end;
所述确定模块具体用于根据所述第一网络配置信息以及所述第二网络配置信息确定目标组网方式。The determining module is specifically configured to determine a target networking manner according to the first network configuration information and the second network configuration information.
可选地: Optionally:
所述确定模块包括:The determining module includes:
第一判断单元,用于根据所述第一网络配置信息以及所述第二网络配置信息判断所述用户端以及所述第二用户端是否均支持wi-fi direct服务;a first determining unit, configured to determine, according to the first network configuration information and the second network configuration information, whether the user end and the second user end support a wi-fi direct service;
若所述用户端以及所述第二用户端均支持wi-fi direct服务,则触发第一确定单元;If the user end and the second user end support the wi-fi direct service, triggering the first determining unit;
第一确定单元,用于当所述第一判断单元确定所述用户端以及所述第二用户端均支持wi-fi direct服务时,确定通过所述wi-fi direct服务组网为目标组网方式。a first determining unit, configured to: when the first determining unit determines that the user end and the second user end support a wi-fi direct service, determine that the wi-fi direct service networking is a target networking the way.
可选地:Optionally:
所述确定模块还包括:The determining module further includes:
若所述用户端或所述第二用户端不支持wi-fi direct技术,则触发第二判断单元;If the user end or the second user end does not support the wi-fi direct technology, triggering the second determining unit;
第二判断单元,用于当所述第一判断单元确定所述用户端或所述第二用户端不支持wi-fi direct技术时,判断所述用户端以及所述第二用户端是否处于同一局域网中;a second determining unit, configured to: when the first determining unit determines that the user end or the second user end does not support the wi-fi direct technology, determine whether the user end and the second user end are in the same In the local area network;
若处于同一局域网中,则触发第二确定单元;If it is in the same local area network, triggering the second determining unit;
若不处于同一局域网中,则触发第三确定单元;If not in the same local area network, triggering the third determining unit;
第二确定单元,用于当所述第二判断单元确定所述用户端以及所述第二用户端处于同一局域网中时,确定通过所述局域网组网为目标组网方式;a second determining unit, configured to: when the second determining unit determines that the user end and the second user end are in the same local area network, determine, by using the local area network to be a target networking mode;
第三确定单元,用于当所述第二判断单元确定所述用户端以及所述第二用户端不处于同一局域网中时,确定通过自组网络组网为目标组网方式。And a third determining unit, configured to determine, by the second determining unit, that the user terminal and the second user end are not in the same local area network, determining, by using the ad hoc network networking, a target networking mode.
可选地:Optionally:
当所述目标组网方式为通过wi-fi direct服务组网时,所述第二建立模块具体用于:启动wi-fi direct服务,并通过所述wi-fi direct服务建立对等网,通过所述对等网建立通信通道。The second establishing module is specifically configured to: start a wi-fi direct service, and establish a peer-to-peer network by using the wi-fi direct service, when the target networking mode is a network through a wi-fi direct service. The peer-to-peer network establishes a communication channel.
可选地:Optionally:
当所述目标组网方式为通过局域网组网时,所述第二建立模块具体用于:通过所述局域网开启socket服务建立通信通道。When the target networking mode is a networking through a local area network, the second establishing module is specifically configured to: establish a communication channel by using the local area network to open a socket service.
可选地: Optionally:
当所述目标组网方式为通过自组网络组网时,所述第二建立模块具体用于:与所述第二用户端建立无限自组网络,并通过所述无线自组网络开启socket服务建立通信通道。When the target networking mode is the network through the ad hoc network, the second establishing module is specifically configured to: establish an infinite ad hoc network with the second user, and enable the socket service by using the wireless ad hoc network. Establish a communication channel.
从以上技术方案可以看出,本发明实施例具有以下优点:第一用户端可以通过蓝牙协议与第二用户端建立命令通道,并通过该命令通道进行网络参数协商,根据协商结果确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。As can be seen from the foregoing technical solutions, the embodiment of the present invention has the following advantages: the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and determine the target networking according to the negotiation result. After the mode is established, the communication channel is established with the second user end by using the target networking mode, that is, the first user end can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of a single wireless hotspot network. The way to establish a communication channel enables multi-mode transmission.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings according to these drawings without paying any creative work.
图1为本发明实施例中数据处理方法的一个实施例流程图;1 is a flowchart of an embodiment of a data processing method according to an embodiment of the present invention;
图2为本发明实施例中数据处理方法的另一个实施例流程图;2 is a flowchart of another embodiment of a data processing method according to an embodiment of the present invention;
图3为本发明实施例中数据处理方法的另一个实施例流程图;3 is a flowchart of another embodiment of a data processing method according to an embodiment of the present invention;
图4为本发明实施例中数据处理方法的另一个实施例流程图;4 is a flowchart of another embodiment of a data processing method according to an embodiment of the present invention;
图5本发明实施例中用户端的一个实施例示意图;FIG. 5 is a schematic diagram of an embodiment of a user end according to an embodiment of the present invention; FIG.
图6本发明实施例中用户端的另一个实施例示意图;FIG. 6 is a schematic diagram of another embodiment of a user end according to an embodiment of the present invention; FIG.
图7本发明实施例中用户端的另一个实施例示意图;FIG. 7 is a schematic diagram of another embodiment of a user end according to an embodiment of the present invention; FIG.
图8本发明实施例中用户端的另一个实施例示意图。FIG. 8 is a schematic diagram of another embodiment of a user terminal in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种数据处理方法,用于根据用户端的网络参数通过 不同的组网方式建立通信通道,实现近场传输。An embodiment of the present invention provides a data processing method, which is used to pass a network parameter of a user end. Different networking modes establish communication channels to implement near-field transmission.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present invention and the above figures are used to distinguish similar objects without being used for Describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
请参阅图1,本发明实施例中数据处理方法的一个实施例包括:Referring to FIG. 1, an embodiment of a data processing method in an embodiment of the present invention includes:
101、第一用户端通过蓝牙协议与第二用户端建立命令通道;101. The first user end establishes a command channel with the second user end by using a Bluetooth protocol.
第一用户端需要与第二用户端进行数据传输时,可以通过蓝牙协议与第二用户端建立命令通道。When the first user needs to perform data transmission with the second user, the command channel can be established with the second user through the Bluetooth protocol.
需要说明的是,本实施例以及后续实施例中所描述的用户端在实际应用中可以为某种用户设备,具体此处不做限定。It should be noted that the user terminal described in this embodiment and the following embodiments may be a certain user equipment in an actual application, which is not limited herein.
102、第一用户端通过该命令通道与第二用户端进行网络参数协商;102. The first user end negotiates network parameters with the second user end by using the command channel.
第一用户端通过蓝牙协议与第二用户端建立命令通道后,通过该命令通道与第二用户端进行网络参数协商。After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user end negotiates network parameters with the second user through the command channel.
103、第一用户端根据协商结果确定目标组网方式;103. The first user end determines a target networking mode according to the negotiation result.
第一用户端根据与第二用户端进行网络参数协商的协商结果确定目标组网方式。The first user end determines the target networking mode according to the negotiation result of the network parameter negotiation with the second user end.
104、第一用户端通过目标组网方式与第二用户端建立通信通道;104. The first user end establishes a communication channel with the second user end by using a target networking manner.
第一用户端确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道。 After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
105、第一用户端与第二用户端通过该通信通道传输数据。105. The first user end and the second user end transmit data through the communication channel.
第一用户端通过目标组网方式与第二用户端建立通信通道后,第一用户端与第二用户端通过该通信通道传输数据。After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
本实施例中,第一用户端可以通过蓝牙协议与第二用户端建立命令通道,并通过该命令通道进行网络参数协商,根据协商结果确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first The second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
下面对第一用户端通过命令通道与第二用户端进行网络参数协商进行详细描述,具体的:The following describes in detail the network parameter negotiation between the first user end and the second user end through the command channel, specifically:
请参阅图2,本发明实施例中数据处理方法的另一个实施例包括:Referring to FIG. 2, another embodiment of a data processing method in an embodiment of the present invention includes:
201、第一用户端通过蓝牙协议与第二用户端建立命令通道;201. The first user end establishes a command channel with the second user end by using a Bluetooth protocol.
第一用户端需要与第二用户端进行数据传输时,可以通过蓝牙协议与第二用户端建立命令通道。When the first user needs to perform data transmission with the second user, the command channel can be established with the second user through the Bluetooth protocol.
需要说明的是,在实际应用中,第一用户端以及第二用户端可以在进行数据传输前检查蓝牙状态,若未开启蓝牙,用户端可以自动开启,也可以根据用户的设置手动开启,具体此处不做限定。It should be noted that, in the actual application, the first user end and the second user end can check the Bluetooth status before data transmission. If the Bluetooth is not enabled, the user end can be automatically turned on, or can be manually opened according to the user setting. There is no limit here.
202、第一用户端通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令;202. The first user end sends the first ad hoc protocol command to the second user end by using the command channel, and receives the second ad hoc group protocol command sent by the second user end.
第一用户端通过蓝牙协议与第二用户端建立命令通道后,通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令。After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user terminal sends a first ad hoc protocol command to the second user end, and receives a second ad hoc protocol command sent by the second user end.
需要说明的是,自组协议命令用于请求对端检测自身的网络配置信息,在实际应用中,自组协议命令还可以用于其他操作,具体此处不做限定。It should be noted that the self-organizing protocol command is used to request the peer to detect its own network configuration information. In an actual application, the self-organizing protocol command can also be used for other operations, which is not limited herein.
203、第一用户端根据该第二自组协议命令检测自身的第一网络配置信息;203. The first user end detects the first network configuration information of the first user according to the second ad hoc protocol command.
第一用户端接收到第二用户端发送的第二自组协议命令,根据该第二自组协议命令检测自身的第一网络配置信息。The first user end receives the second ad hoc protocol command sent by the second user end, and detects the first network configuration information of the second user group according to the second ad hoc protocol command.
需要说明的是,第一用户端接收到第二自组协议命令后,根据该第二自组协议命令对自身当前所处的网络环境以及设备条件进行检测分析,得到第一网 络配置信息,可以是当前网络状态以及网络硬件支持水平,包括使用的网络类型、IP地址或设备自身的硬件条件信息,在实际应用中,网络配置信息还可以包括其他信息,具体此处不做限定。It should be noted that, after receiving the second ad hoc protocol command, the first user end detects and analyzes the current network environment and device conditions according to the second ad hoc protocol command, and obtains the first network. Network configuration information, which may be the current network status and network hardware support level, including the type of network used, the IP address, or the hardware condition information of the device itself. In actual applications, the network configuration information may also include other information. limited.
204、第一用户端向第二用户端发送该第一网络配置信息,并接收第二用户端发送的第二网络配置信息;204. The first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
第一用户端根据第二自组协议命令进行检测后,向第二用户端发送该第一网络配置信息,并接收第二用户端发送的第二网络配置信息。After detecting, according to the second self-group protocol command, the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
需要说明的是,在实际应用中,第二用户端在接收到第一用户端发送的第一自组协议命令后,根据该第一自组协议命令检测自身的第二网络配置信息,并将该第二网络配置信息发送给第一用户端,以使得第一用户端能够接收到第二网络配置信息。It should be noted that, in an actual application, after receiving the first ad hoc protocol command sent by the first user end, the second user end detects its second network configuration information according to the first ad hoc protocol command, and The second network configuration information is sent to the first user end, so that the first user end can receive the second network configuration information.
205、第一用户端根据该第一网络配置信息以及该第二网络配置信息确定目标组网方式;205. The first user end determines a target networking mode according to the first network configuration information and the second network configuration information.
第一用户端接收到第二用户端发送的第二网络配置信息后,根据该第一网络配置信息以及该第二网络配置信息确定目标组网方式。After receiving the second network configuration information sent by the second user end, the first user end determines the target networking mode according to the first network configuration information and the second network configuration information.
206、第一用户端通过目标组网方式与第二用户端建立通信通道;206. The first user end establishes a communication channel with the second user end by using a target networking mode.
第一用户端确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道。After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
207、第一用户端与第二用户端通过该通信通道传输数据。207. The first user end and the second user end transmit data through the communication channel.
第一用户端通过目标组网方式与第二用户端建立通信通道后,第一用户端与第二用户端通过该通信通道传输数据。After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
本实施例中,第一用户端可以通过蓝牙协议与第二用户端建立命令通道,并通过该命令通道进行网络参数协商,根据协商结果确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first The second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
其次,本实施例提供了一种第一用户端与第二用户端进行网络参数协商的方案,增加了方案的可选择性。Secondly, the embodiment provides a scheme for network parameter negotiation between the first user end and the second user end, which increases the selectivity of the solution.
下面对第一用户端根据第一网络配置信息以及第二网络配置信息确定目 标组网方式进行详细描述,具体的:Determining, according to the first network configuration information and the second network configuration information, the first user end The standard network mode is described in detail, specifically:
请参阅图3,本发明实施例中数据处理方法的另一个实施例包括:Referring to FIG. 3, another embodiment of the data processing method in the embodiment of the present invention includes:
301、第一用户端通过蓝牙协议与第二用户端建立命令通道;301. The first user end establishes a command channel with the second user end by using a Bluetooth protocol.
第一用户端需要与第二用户端进行数据传输时,可以通过蓝牙协议与第二用户端建立命令通道。When the first user needs to perform data transmission with the second user, the command channel can be established with the second user through the Bluetooth protocol.
需要说明的是,在实际应用中,第一用户端以及第二用户端可以在进行数据传输前检查蓝牙状态,若未开启蓝牙,用户端可以自动开启,也可以根据用户的设置手动开启,具体此处不做限定。It should be noted that, in the actual application, the first user end and the second user end can check the Bluetooth status before data transmission. If the Bluetooth is not enabled, the user end can be automatically turned on, or can be manually opened according to the user setting. There is no limit here.
302、第一用户端通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令;302. The first user end sends the first ad hoc protocol command to the second user end by using the command channel, and receives the second ad hoc group protocol command sent by the second user end.
第一用户端通过蓝牙协议与第二用户端建立命令通道后,通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令。After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user terminal sends a first ad hoc protocol command to the second user end, and receives a second ad hoc protocol command sent by the second user end.
需要说明的是,自组协议命令用于请求对端检测自身的网络配置信息,在实际应用中,自组协议命令还可以用于其他操作,具体此处不做限定。It should be noted that the self-organizing protocol command is used to request the peer to detect its own network configuration information. In an actual application, the self-organizing protocol command can also be used for other operations, which is not limited herein.
303、第一用户端根据该第二自组协议命令检测自身的第一网络配置信息;303. The first user end detects the first network configuration information of the first user according to the second ad hoc protocol command.
第一用户端接收到第二用户端发送的第二自组协议命令,根据该第二自组协议命令检测自身的第一网络配置信息。The first user end receives the second ad hoc protocol command sent by the second user end, and detects the first network configuration information of the second user group according to the second ad hoc protocol command.
需要说明的是,第一用户端接收到第二自组协议命令后,根据该第二自组协议命令对自身当前所处的网络环境以及设备条件进行检测分析,得到第一网络配置信息,可以是当前网络状态以及网络硬件支持水平,包括使用的网络类型、IP地址或设备自身的硬件条件信息,在实际应用中,网络配置信息还可以包括其他信息,具体此处不做限定。It should be noted that, after receiving the second ad hoc protocol command, the first user end detects and analyzes the current network environment and device conditions according to the second ad hoc protocol command, and obtains the first network configuration information, which may be The current network state and the network hardware support level, including the network type, the IP address, or the hardware condition information of the device itself. In actual applications, the network configuration information may also include other information, which is not limited herein.
需要说明的是,网络配置信息可以包括当前网络状态以及网络硬件支持水平,在实际应用中,还可以包括其他信息,具体此处不做限定。It should be noted that the network configuration information may include the current network state and the network hardware support level. In actual applications, other information may also be included, which is not limited herein.
304、第一用户端向第二用户端发送该第一网络配置信息,并接收第二用户端发送的第二网络配置信息;304. The first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
第一用户端根据第二自组协议命令进行检测后,向第二用户端发送该第一网络配置信息,并接收第二用户端发送的第二网络配置信息。 After detecting, according to the second self-group protocol command, the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
需要说明的是,在实际应用中,第二用户端在接收到第一用户端发送的第一自组协议命令后,根据该第一自组协议命令检测自身的第二网络配置信息,并将该第二网络配置信息发送给第一用户端,以使得第一用户端能够接收到第二网络配置信息。It should be noted that, in an actual application, after receiving the first ad hoc protocol command sent by the first user end, the second user end detects its second network configuration information according to the first ad hoc protocol command, and The second network configuration information is sent to the first user end, so that the first user end can receive the second network configuration information.
305、第一用户端根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务,若是,则执行步骤306,若否,则执行步骤309;305. The first user end determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, step 306 is performed, and if no, the step is performed. 309;
第一用户端接收到第二用户端发送的第二网络配置信息后,根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务,若是,则执行步骤306,若否,在执行步骤309。After receiving the second network configuration information sent by the second user, the first user determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, go to step 306, if no, go to step 309.
306、第一用户端确定通过wi-fi direct服务组网为目标组网方式;306. The first user determines that the wi-fi direct service network is used as the target networking mode.
当第一用户端根据第一网络配置信息以及第二网络配置信息确定第一用户端以及第二用户端均支持wi-fi direct服务时,确定通过wi-fi direct服务组网为目标组网方式。When the first user end determines that the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information, determining that the wi-fi direct service network is the target networking mode .
307、第一用户端通过目标组网方式与第二用户端建立通信通道;307. The first user end establishes a communication channel with the second user end by using a target networking manner.
第一用户端确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道。After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
需要说明的是,通信通道可以包括协议命令通道和数据通道,其中协议命令通道可以用于传输数据传输时的协议或指令,数据通道可以用于进行目标数据的传输。It should be noted that the communication channel may include a protocol command channel and a data channel, wherein the protocol command channel may be used to transmit a protocol or an instruction during data transmission, and the data channel may be used to perform transmission of the target data.
在实际应用中,若第一用户端根据第一网络配置信息以及第二网络配置信息确定通过wi-fi direct服务组网为目标组网方式,则第一用户端通过目标组网方式与第二用户端建立通信通道具体为:In the actual application, if the first user end determines that the wi-fi direct service networking is the target networking mode according to the first network configuration information and the second network configuration information, the first user end adopts the target networking mode and the second The user establishes a communication channel specifically as follows:
第一用户端以及第二用户端启动wi-fi direct服务,并通过wi-fi direct服务建立对等网;The first user end and the second user end start the wi-fi direct service, and establish a peer-to-peer network through the wi-fi direct service;
第一用户端通过该对等网与第二用户端建立通信通道;The first user end establishes a communication channel with the second user end through the peer-to-peer network;
可以理解的是,第一用户端通过目标组网方式与第二用户端建立通信通道还可以有其他方式,具体此处不做限定。It is to be understood that the first user terminal may establish a communication channel with the second user terminal through the target networking mode.
308、第一用户端与第二用户端通过该通信通道传输数据; 308. The first user end and the second user end transmit data through the communication channel.
第一用户端通过目标组网方式与第二用户端建立通信通道后,第一用户端与第二用户端通过该通信通道传输数据。After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
309、第一用户端执行其他操作。309. The first client performs other operations.
第一用户端根据第一网络配置信息以及第二网络配置信息确定第一用户端或者第二用户端不支持wi-fi direct服务时,可以执行其他操作。When the first user determines that the first user terminal or the second user terminal does not support the wi-fi direct service according to the first network configuration information and the second network configuration information, other operations may be performed.
本实施例中,第一用户端可以通过蓝牙协议与第二用户端建立命令通道,并通过该命令通道进行网络参数协商,根据协商结果确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first The second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
其次,本实施例提供了一种第一用户端与第二用户端进行网络参数协商的方案,增加了方案的可选择性。Secondly, the embodiment provides a scheme for network parameter negotiation between the first user end and the second user end, which increases the selectivity of the solution.
再次,本实施例中增加了第一用户端根据第一网络配置信息以及第二网络配置信息确定目标组网方式的方法,增加了方案的可选择性。The method for determining the target networking mode by the first user end according to the first network configuration information and the second network configuration information is added to the embodiment, which increases the selectivity of the solution.
在实际应用中,当第一用户端或第二用户端不支持wi-fi direct服务时,还可以进一步判断第一用户端与第二用户端是否处于同一局域网中,具体的:In an actual application, when the first user terminal or the second user terminal does not support the wi-fi direct service, it may further determine whether the first user terminal and the second user terminal are in the same local area network, specifically:
请参阅图4,本发明实施例中数据处理方法的另一个实施例包括:Referring to FIG. 4, another embodiment of a data processing method in an embodiment of the present invention includes:
401、第一用户端通过蓝牙协议与第二用户端建立命令通道;401. The first user end establishes a command channel with the second user end by using a Bluetooth protocol.
第一用户端需要与第二用户端进行数据传输时,可以通过蓝牙协议与第二用户端建立命令通道。When the first user needs to perform data transmission with the second user, the command channel can be established with the second user through the Bluetooth protocol.
需要说明的是,在实际应用中,第一用户端以及第二用户端可以在进行数据传输前检查蓝牙状态,若未开启蓝牙,用户端可以自动开启,也可以根据用户的设置手动开启,具体此处不做限定。It should be noted that, in the actual application, the first user end and the second user end can check the Bluetooth status before data transmission. If the Bluetooth is not enabled, the user end can be automatically turned on, or can be manually opened according to the user setting. There is no limit here.
402、第一用户端通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令;402. The first user end sends a first ad hoc protocol command to the second user end by using the command channel, and receives a second ad hoc group protocol command sent by the second user end.
第一用户端通过蓝牙协议与第二用户端建立命令通道后,通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令。After the first user establishes a command channel with the second user through the Bluetooth protocol, the first user terminal sends a first ad hoc protocol command to the second user end, and receives a second ad hoc protocol command sent by the second user end.
需要说明的是,自组协议命令用于请求对端检测自身的网络配置信息,在 实际应用中,自组协议命令还可以用于其他操作,具体此处不做限定。It should be noted that the ad hoc protocol command is used to request the peer to detect its own network configuration information. In an actual application, the self-organizing protocol command can also be used for other operations, which is not limited herein.
403、第一用户端根据第二自组协议命令检测自身的第一网络配置信息;403. The first user end detects its first network configuration information according to the second ad hoc protocol command.
第一用户端接收到第二用户端发送的第二自组协议命令,根据该第二自组协议命令检测自身的第一网络配置信息。The first user end receives the second ad hoc protocol command sent by the second user end, and detects the first network configuration information of the second user group according to the second ad hoc protocol command.
需要说明的是,第一用户端接收到第二自组协议命令后,根据该第二自组协议命令对自身当前所处的网络环境以及设备条件进行检测分析,得到第一网络配置信息,可以是当前网络状态以及网络硬件支持水平,包括使用的网络类型、IP地址或设备自身的硬件条件信息,在实际应用中,网络配置信息还可以包括其他信息,具体此处不做限定。It should be noted that, after receiving the second ad hoc protocol command, the first user end detects and analyzes the current network environment and device conditions according to the second ad hoc protocol command, and obtains the first network configuration information, which may be The current network state and the network hardware support level, including the network type, the IP address, or the hardware condition information of the device itself. In actual applications, the network configuration information may also include other information, which is not limited herein.
404、第一用户端向第二用户端发送该第一网络配置信息,并接收第二用户端发送的第二网络配置信息;404. The first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
第一用户端根据第二自组协议命令进行检测后,向第二用户端发送该第一网络配置信息,并接收第二用户端发送的第二网络配置信息。After detecting, according to the second self-group protocol command, the first user end sends the first network configuration information to the second user end, and receives the second network configuration information sent by the second user end.
需要说明的是,在实际应用中,第二用户端在接收到第一用户端发送的第一自组协议命令后,根据该第一自组协议命令检测自身的第二网络配置信息,并将该第二网络配置信息发送给第一用户端,以使得第一用户端能够接收到第二网络配置信息。It should be noted that, in an actual application, after receiving the first ad hoc protocol command sent by the first user end, the second user end detects its second network configuration information according to the first ad hoc protocol command, and The second network configuration information is sent to the first user end, so that the first user end can receive the second network configuration information.
405、第一用户端根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务,若是,则执行步骤406,若否,则执行步骤407;405. The first user end determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, step 406 is performed, and if no, the step is performed. 407;
第一用户端接收到第二用户端发送的第二网络配置信息后,根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务,若是,则执行步骤406,若否,则执行步骤407。After receiving the second network configuration information sent by the second user, the first user determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information. If yes, go to step 406. If no, go to step 407.
406、第一用户端确定通过wi-fi direct服务组网为目标组网方式,执行步骤410;406, the first user determines to use the wi-fi direct service network as the target networking mode, step 410 is performed;
当第一用户端根据第一网络配置信息以及第二网络配置信息确定第一用户端以及第二用户端均支持wi-fi direct服务时,确定通过wi-fi direct服务组网为目标组网方式,执行步骤410。When the first user end determines that the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information, determining that the wi-fi direct service network is the target networking mode Go to step 410.
407、第一用户端判断第一用户端以及第二用户端是否处于同一局域网中, 若是,则执行步骤408,若否,则执行步骤409;407. The first user end determines whether the first user end and the second user end are in the same local area network. If yes, go to step 408, if no, go to step 409;
当第一用户端或第二用户端不支持wi-fi direct服务时,第一用户端判断第一用户端以及第二用户端是否处于同一局域网中,若是,则执行步骤408,若否,则执行步骤409。When the first user terminal or the second user terminal does not support the wi-fi direct service, the first user terminal determines whether the first user terminal and the second user terminal are in the same local area network. If yes, step 408 is performed, and if not, Go to step 409.
需要说明的是,第一用户端可以通过向第二用户端发送检测帧判断与第二用户端是否处于同一局域网中,在实际应用中,第一用户端也可以通过其他方式判断是否与第二用户端处于同一局域网中,具体此处不做限定。It should be noted that the first user end may determine whether the second user end is in the same local area network by sending a detection frame to the second user end. In actual applications, the first user end may also determine whether the second The user is in the same local area network, which is not limited here.
408、第一用户端确定通过该局域网组网为目标组网方式,执行步骤410;408, the first user determines to use the local area network as the target networking mode, step 410 is performed;
当第一用户端以及第二用户端处于同一局域网时,第一用户端确定通过局域网组网为目标组网方式,执行步骤410。When the first user end and the second user end are in the same local area network, the first user end determines that the network is set to the target networking mode through the local area network, and step 410 is performed.
409、第一用户端确定通过自组网络组网为目标组网方式,执行步骤410;409, the first user end determines that the self-organized network networking is the target networking mode, and step 410 is performed;
当第一用户端确定与第二用户端不处于同一局域网时,第一用户端确定通过自组网络组网为目标组网方式。When the first user end determines that the second user terminal is not in the same local area network, the first user end determines that the self-organized network networking is the target networking mode.
410、第一用户端通过目标组网方式与第二用户端建立通信通道;410. The first user end establishes a communication channel with the second user end by using a target networking manner.
第一用户端确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道。After the first user end determines the target networking mode, the first user terminal establishes a communication channel with the second user end by using the target networking mode.
需要说明的是,通信通道可以包括协议命令通道和数据通道,其中协议命令通道可以用于传输数据传输时的协议或指令,数据通道可以用于进行目标数据的传输。It should be noted that the communication channel may include a protocol command channel and a data channel, wherein the protocol command channel may be used to transmit a protocol or an instruction during data transmission, and the data channel may be used to perform transmission of the target data.
在实际应用中,若第一用户端确定通过局域网组网为目标组网方式,则第一用户端通过目标组网方式与第二用户端建立通信通道具体为:In the actual application, if the first user end determines that the network is set to the target network through the local area network, the first user end establishes a communication channel with the second user end by using the target networking mode:
第一用户端以及第二用户端通过该局域网开启网络socket服务建立通信通道;The first user end and the second user end establish a communication channel by using the local area network to open a network socket service;
若第一用户端确定通过自组网络组网为目标组网方式,则第一用户端通过目标组网方式与第二用户端建立通信通道具体为:If the first user determines that the network is in the target networking mode, the first user establishes a communication channel with the second user by using the target networking mode:
第一用户端与第二用户端建立无线自组网络,并通过该无线自组网络开启网络socket服务建立通信通道;Establishing a wireless ad hoc network by the first user end and the second user end, and establishing a communication channel by using the wireless ad hoc network to open a network socket service;
可以理解的是,第一用户端通过目标组网方式与第二用户端建立通信通道还可以有其他方式,具体此处不做限定。 It is to be understood that the first user terminal may establish a communication channel with the second user terminal through the target networking mode.
411、第一用户端与第二用户端通过该通信通道传输数据。411. The first user end and the second user end transmit data through the communication channel.
第一用户端通过目标组网方式与第二用户端建立通信通道后,第一用户端与第二用户端通过该通信通道传输数据。After the first user end establishes a communication channel with the second user end through the target networking mode, the first user end and the second user end transmit data through the communication channel.
本实施例中,第一用户端可以通过蓝牙协议与第二用户端建立命令通道,并通过该命令通道进行网络参数协商,根据协商结果确定目标组网方式后,通过该目标组网方式与第二用户端建立通信通道,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first user end can establish a command channel with the second user end through the Bluetooth protocol, and perform network parameter negotiation through the command channel, and after determining the target networking mode according to the negotiation result, the target networking mode and the first The second user establishes a communication channel, that is, the first user can intelligently determine the networking mode according to the network configuration information of the user and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby implementing multi-mode transmission.
其次,本实施例提供了一种第一用户端与第二用户端进行网络参数协商的方案,增加了方案的可选择性。Secondly, the embodiment provides a scheme for network parameter negotiation between the first user end and the second user end, which increases the selectivity of the solution.
再次,本实施例中增加了第一用户端根据第一网络配置信息以及第二网络配置信息确定目标组网方式的方法,增加了方案的可选择性。The method for determining the target networking mode by the first user end according to the first network configuration information and the second network configuration information is added to the embodiment, which increases the selectivity of the solution.
更进一步的,本实施例中增加了第一用户端或第二用户端用户端不支持wi-fi direct服务的处理方式,增加了方案的可选择性。Further, in this embodiment, the processing manner in which the first user end or the second user end user does not support the wi-fi direct service is added, and the selectivity of the solution is increased.
为便于理解,下面以一个应用场景对本发明实施例中数据处理方法进行详细描述,具体的:For ease of understanding, the data processing method in the embodiment of the present invention is described in detail in an application scenario.
当第一用户端与第二用户端需要进行数据传输时,第一用户端以及第二用户端均开启蓝牙,第一用户端通过蓝牙检测近场设备包括以下设备信息:“Bluetooth_yonghu88”、“mmxxsse65”、“dieryonghuduan”,其中“dieryonghuduan”为第二用户端设备标识,第一用户端通过蓝牙协议与标识为“dieryonghuduan”的第二用户端建立命令通道。When the first user end and the second user end need to perform data transmission, the first user end and the second user end both turn on the Bluetooth, and the first user end detects the near field device by using Bluetooth: the following device information: “Bluetooth_yonghu88”, “mmxxsse65” "dieryonghuduan", wherein "dieryonghuduan" is the second user equipment identifier, and the first user end establishes a command channel with the second user end identified as "dieryonghuduan" through the Bluetooth protocol.
在命令通道建立后,第一用户端以及第二用户端通过该命令通道分别向对端发送自组协议命令,请求对端检测自身的网络配置信息,即第一用户端通过该命令通过向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令。After the command channel is established, the first user end and the second user end respectively send an ad hoc protocol command to the peer end through the command channel, requesting the peer end to detect its own network configuration information, that is, the first user end passes the command to pass the The second client sends a first ad hoc protocol command and receives a second ad hoc protocol command sent by the second client.
当接收到对端发送的自组协议命令后,第一用户端以及第二用户端根据自组协议命令检测自身的网络配置信息,包括当前网络状态,是否支持wi-fi direct服务等网络硬件支持信息,并将检测出的网络配置信息发送给对端,即第一用户端根据接收到的第二自组协议检测自身的第一网络配置信息,并将该第一网 络配置信息发送给第二用户端,同时接收第二用户端发送的第二网络配置信息。After receiving the ad hoc protocol command sent by the peer end, the first user end and the second user end detect their own network configuration information according to the self-organizing protocol command, including the current network status, and whether the network hardware support such as the wi-fi direct service is supported. The information is sent to the peer end, that is, the first user detects the first network configuration information according to the received second self-group protocol, and the first network is configured. The network configuration information is sent to the second user end, and the second network configuration information sent by the second user end is received.
当第一用户端接收到第二网络配置信息后,则根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务,这里假定第一用户端以及第二用户端均支持,则第一用户端确定通过wi-fi direct服务组网为目标组网方式。After receiving the second network configuration information, the first user end determines whether the first user end and the second user end support the wi-fi direct service according to the first network configuration information and the second network configuration information, where the first Both the user end and the second user end support the first user end to determine the target networking mode through the wi-fi direct service networking.
第一用户端以及第二用户开启wi-fi direct,并通过wi-fi direct服务建立对等网,并开通基于该对等网的通信通道,包括协议命令通道以及数据通道,第一用户端以及第二用户端即可在该通信通道上进行数据传输。The first user end and the second user enable wi-fi direct, establish a peer-to-peer network through the wi-fi direct service, and open a communication channel based on the peer-to-peer network, including a protocol command channel and a data channel, the first user terminal and The second client can perform data transmission on the communication channel.
上面描述了本发明实施例中的数据处理方法,下面对本发明实施例中的用户端进行描述,具体的:The data processing method in the embodiment of the present invention is described above. The following describes the user end in the embodiment of the present invention.
请参阅图5,本发明实施例中用户端的一个实施例包括:Referring to FIG. 5, an embodiment of the UE in the embodiment of the present invention includes:
第一建立模块501,用于通过蓝牙协议与第二用户端建立命令通道;a first establishing module 501, configured to establish a command channel with the second user end by using a Bluetooth protocol;
协商模块502,用于通过第一建立模块501建立的命令通道与第二用户端进行网络参数协商;The negotiation module 502 is configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module 501.
确定模块503,用于根据协商模块502得到的协商结果确定目标组网方式;The determining module 503 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 502.
第二建立模块504,用于通过确定模块503确定的目标组网方式与第二用户端建立通信通道;a second establishing module 504, configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 503;
传输模块505,用于与第二用户端通过第二建立模块504建立的传输数据。The transmission module 505 is configured to transmit data established by the second user terminal through the second establishing module 504.
本实施例中,第一建立模块501可以通过蓝牙协议与第二用户端建立命令通道,协商模块502通过第一建立模块501建立的命令通道进行网络参数协商,确定模块503根据协商结果确定目标组网方式后,由第二建立模块504通过该目标组网方式与第二用户端建立通信通道,传输模块505可以通过第二建立模块504建立的通信通道实现第一用户端与第二用户端之间的数据传输,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first establishing module 501 can establish a command channel with the second user terminal through the Bluetooth protocol, and the negotiation module 502 performs network parameter negotiation through the command channel established by the first establishing module 501, and the determining module 503 determines the target group according to the negotiation result. After the network mode, the second establishing module 504 establishes a communication channel with the second user end by using the target networking mode, and the transmission module 505 can implement the first user end and the second user end by using the communication channel established by the second establishing module 504. In the data transmission, the first user can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby realizing multi-mode transmission.
请参阅图6,本发明实施例中用户端的另一个实施例包括:Referring to FIG. 6, another embodiment of the UE in the embodiment of the present invention includes:
第一建立模块601,用于通过蓝牙协议与第二用户端建立命令通道;a first establishing module 601, configured to establish a command channel with the second user end by using a Bluetooth protocol;
协商模块602,用于通过第一建立模块601建立的命令通道与第二用户端 进行网络参数协商;The negotiation module 602 is configured to use the command channel established by the first establishing module 601 and the second user end. Perform network parameter negotiation;
确定模块603,用于根据协商模块602得到的协商结果确定目标组网方式;The determining module 603 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 602.
第二建立模块604,用于通过确定模块603确定的目标组网方式与第二用户端建立通信通道;a second establishing module 604, configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 603;
传输模块605,用于与第二用户端通过第二建立模块604建立的传输数据;The transmission module 605 is configured to transmit data that is established by the second user terminal through the second establishing module 604.
其中,协商模块602具体包括:The negotiation module 602 specifically includes:
协议收发单元6021,用于通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令;The protocol transceiver unit 6021 is configured to send a first ad hoc protocol command to the second user end by using the command channel, and receive a second ad hoc protocol command sent by the second user end;
检测单元6022,用于根据协议收发单元6021接收的第二自组协议命令检测自身的第一网络配置信息;The detecting unit 6022 is configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit 6021, the first network configuration information of the first network configuration information.
配置收发单元6023,用于向第二用户端发送所述检测单元检测到的所述第一网络配置信息,并接收第二用户端发送的第二网络配置信息;The transceiver unit 6023 is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive the second network configuration information sent by the second user end;
确定模块603具体用于根据第一网络配置信息以及第二网络配置信息确定目标组网方式。The determining module 603 is specifically configured to determine a target networking mode according to the first network configuration information and the second network configuration information.
本实施例中,第一建立模块601可以通过蓝牙协议与第二用户端建立命令通道,协商模块602通过第一建立模块601建立的命令通道进行网络参数协商,确定模块603根据协商结果确定目标组网方式后,由第二建立模块604通过该目标组网方式与第二用户端建立通信通道,传输模块605可以通过第二建立模块604建立的通信通道实现第一用户端与第二用户端之间的数据传输,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first establishing module 601 can establish a command channel with the second user end through the Bluetooth protocol, and the negotiation module 602 performs network parameter negotiation through the command channel established by the first establishing module 601, and the determining module 603 determines the target group according to the negotiation result. After the network mode, the second establishing module 604 establishes a communication channel with the second user end by using the target networking mode, and the transmission module 605 can implement the first user end and the second user end by using the communication channel established by the second establishing module 604. In the data transmission, the first user can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby realizing multi-mode transmission.
请参阅图7,本发明实施例中用户端的另一个实施例包括:Referring to FIG. 7, another embodiment of the UE in the embodiment of the present invention includes:
第一建立模块701,用于通过蓝牙协议与第二用户端建立命令通道;a first establishing module 701, configured to establish a command channel with the second user end by using a Bluetooth protocol;
协商模块702,用于通过第一建立模块701建立的命令通道与第二用户端进行网络参数协商;The negotiation module 702 is configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module 701.
确定模块703,用于根据协商模块702得到的协商结果确定目标组网方式;The determining module 703 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 702.
第二建立模块704,用于通过确定模块703确定的目标组网方式与第二用户端建立通信通道;a second establishing module 704, configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 703;
传输模块705,用于与第二用户端通过第二建立模块704建立的传输数据; The transmission module 705 is configured to transmit data that is established by the second user terminal through the second establishing module 704.
其中,协商模块702具体包括:The negotiation module 702 specifically includes:
协议收发单元7021,用于通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令;The protocol transceiver unit 7021 is configured to send, by using the command channel, a first ad hoc protocol command to the second user end, and receive a second ad hoc protocol command sent by the second user end;
检测单元7022,用于根据协议收发单元7021接收的第二自组协议命令检测自身的第一网络配置信息;The detecting unit 7022 is configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit 7021, the first network configuration information of the first network configuration information.
配置收发单元7023,用于向第二用户端发送所述检测单元检测到的所述第一网络配置信息,并接收第二用户端发送的第二网络配置信息;The sending and receiving unit 7023 is configured to send, to the second user end, the first network configuration information that is detected by the detecting unit, and receive the second network configuration information that is sent by the second user end;
确定模块703具体包括:The determining module 703 specifically includes:
第一判断单元7031,用于根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务;The first determining unit 7031 is configured to determine, according to the first network configuration information and the second network configuration information, whether the first user end and the second user end support the wi-fi direct service;
第一确定单元7032,用于当第一判断单元确定第一用户端以及第二用户端均支持wi-fi direct服务时,确定通过wi-fi direct服务组网为目标组网方式。The first determining unit 7032 is configured to determine, by the first determining unit, that the first user end and the second user end support the wi-fi direct service, determining, by using the wi-fi direct service networking, the target networking mode.
需要说明的是,本实施例中,当确定模块703确定通过wi-fi direct服务组网为目标组网方式时,第二建立模块704具体用于:启动wi-fi direct服务,并通过wi-fi direct服务建立对等网,通过对等网建立通信通道。It should be noted that, in this embodiment, when the determining module 703 determines that the wi-fi direct service networking is the target networking mode, the second establishing module 704 is specifically configured to: start the wi-fi direct service, and pass the wi- The fi direct service establishes a peer-to-peer network and establishes a communication channel through the peer-to-peer network.
本实施例中,第一建立模块701可以通过蓝牙协议与第二用户端建立命令通道,协商模块702通过第一建立模块701建立的命令通道进行网络参数协商,确定模块703根据协商结果确定目标组网方式后,由第二建立模块704通过该目标组网方式与第二用户端建立通信通道,传输模块705可以通过第二建立模块704建立的通信通道实现第一用户端与第二用户端之间的数据传输,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first establishing module 701 can establish a command channel with the second user terminal through the Bluetooth protocol, and the negotiation module 702 performs network parameter negotiation through the command channel established by the first establishing module 701, and the determining module 703 determines the target group according to the negotiation result. After the network mode, the second establishing module 704 establishes a communication channel with the second user end by using the target networking mode, and the transmission module 705 can implement the first user end and the second user end by using the communication channel established by the second establishing module 704. In the data transmission, the first user can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network, thereby realizing multi-mode transmission.
请参阅图8,本发明实施例中用户端的另一个实施例包括:Referring to FIG. 8, another embodiment of the UE in the embodiment of the present invention includes:
第一建立模块801,用于通过蓝牙协议与第二用户端建立命令通道;a first establishing module 801, configured to establish a command channel with the second user end by using a Bluetooth protocol;
协商模块802,用于通过第一建立模块801建立的命令通道与第二用户端进行网络参数协商;The negotiation module 802 is configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module 801;
确定模块803,用于根据协商模块802得到的协商结果确定目标组网方式;The determining module 803 is configured to determine a target networking mode according to the negotiation result obtained by the negotiation module 802.
第二建立模块804,用于通过确定模块803确定的目标组网方式与第二用户端建立通信通道; a second establishing module 804, configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module 803;
传输模块805,用于与第二用户端通过第二建立模块804建立的传输数据;a transmission module 805, configured to transmit data established by the second user terminal through the second establishing module 804;
其中,协商模块802具体包括:The negotiation module 802 specifically includes:
协议收发单元8021,用于通过该命令通道向第二用户端发送第一自组协议命令,并接收第二用户端发送的第二自组协议命令;The protocol transceiver unit 8021 is configured to send a first ad hoc protocol command to the second user end by using the command channel, and receive a second ad hoc protocol command sent by the second user end;
检测单元8022,用于根据协议收发单元8021接收的第二自组协议命令检测自身的第一网络配置信息;The detecting unit 8022 is configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit 8021, the first network configuration information of the first network configuration information.
配置收发单元8023,用于向第二用户端发送所述检测单元检测到的所述第一网络配置信息,并接收第二用户端发送的第二网络配置信息;The transceiver unit 8023 is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive the second network configuration information sent by the second user end;
确定模块803具体包括:The determining module 803 specifically includes:
第一判断单元8031,用于根据第一网络配置信息以及第二网络配置信息判断第一用户端以及第二用户端是否均支持wi-fi direct服务;The first determining unit 8031 is configured to determine, according to the first network configuration information and the second network configuration information, whether the first user end and the second user end support the wi-fi direct service;
第一确定单元8032,用于当第一判断单元确定第一用户端以及第二用户端均支持wi-fi direct服务时,确定通过wi-fi direct服务组网为目标组网方式;The first determining unit 8032 is configured to: when the first determining unit determines that the first user end and the second user end support the wi-fi direct service, determine that the wi-fi direct service networking is the target networking mode;
第二判断单元8033,用于当第一判断单元确定第一用户端或所述第二用户端不支持wi-fi direct技术时,判断第一用户端以及所述第二用户端是否处于同一局域网中,若是,则触发第二确定单元8034,若否,则触发第三确定单元8035;The second determining unit 8033 is configured to: when the first determining unit determines that the first user end or the second user end does not support the wi-fi direct technology, determine whether the first user end and the second user end are in the same local area network If yes, the second determining unit 8034 is triggered, and if not, the third determining unit 8035 is triggered;
第二确定单元8034,用于当第二判断单元8033确定第一用户端以及第二用户端处于同一局域网中时,确定通过该局域网组网为目标组网方式;The second determining unit 8034 is configured to determine, by the second determining unit 8033, that the first user end and the second user end are in the same local area network, determining that the networking mode is the target networking mode through the local area network;
第三确定单元8035,用于当第二判断单元8033确定第一用户端以及第二用户端不处于同一局域网中时,确定通过自组网络组网为目标组网方式。The third determining unit 8035 is configured to determine, by the second determining unit 8033, that the first user end and the second user end are not in the same local area network, determining, by using the ad hoc network networking, a target networking manner.
需要说明的是,本实施例中,当确定模块803确定通过局域网组网为目标组网方式时,第二建立模块804具体用于:通过所述局域网开启socket服务建立通信通道;It should be noted that, in this embodiment, when the determining module 803 determines that the local area network is the target networking mode, the second establishing module 804 is specifically configured to: establish a communication channel by using the local area network to open the socket service;
当确定模块803确定通过自组网络组网为目标组网方式时,第二建立模块804具体用于:建立无限自组网络,并通过所述无线自组网络开启socket服务建立通信通道。When the determining module 803 determines that the network is set to be in the target networking mode, the second establishing module 804 is specifically configured to: establish an infinite self-organizing network, and establish a communication channel by using the wireless ad hoc network to enable the socket service.
本实施例中,第一建立模块801可以通过蓝牙协议与第二用户端建立命令通道,协商模块802通过第一建立模块801建立的命令通道进行网络参数协商, 确定模块803根据协商结果确定目标组网方式后,由第二建立模块804通过该目标组网方式与第二用户端建立通信通道,传输模块805可以通过第二建立模块804建立的通信通道实现第一用户端与第二用户端之间的数据传输,即第一用户端能够根据自身以及第二用户端的网络配置信息智能确定组网方式,而不是单一的通过组建无线热点网络的方式建立通信通道,实现了多模式传输。In this embodiment, the first establishing module 801 can establish a command channel with the second user terminal through the Bluetooth protocol, and the negotiation module 802 performs network parameter negotiation through the command channel established by the first establishing module 801. After the determining module 803 determines the target networking mode according to the negotiation result, the second establishing module 804 establishes a communication channel with the second user terminal by using the target networking mode, and the transmission module 805 can implement the communication channel established by the second establishing module 804. Data transmission between a user end and a second user end, that is, the first user end can intelligently determine the networking mode according to the network configuration information of itself and the second user end, instead of establishing a communication channel by establishing a wireless hotspot network in a single manner. , achieve multi-mode transmission.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described 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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述 的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. And the foregoing The storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (14)

  1. 一种数据处理方法,其特征在于,包括:A data processing method, comprising:
    第一用户端通过蓝牙协议与第二用户端建立命令通道;The first user end establishes a command channel with the second user end through the Bluetooth protocol;
    所述第一用户端通过所述命令通道与所述第二用户端进行网络参数协商;The first user end negotiates network parameters with the second user end by using the command channel;
    所述第一用户端根据协商结果确定目标组网方式;Determining, by the first user end, a target networking mode according to the negotiation result;
    所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道;The first user end establishes a communication channel with the second user end by using the target networking mode;
    所述第一用户端与所述第二用户端通过所述通信通道传输数据。The first user end and the second user end transmit data through the communication channel.
  2. 根据权利要求1所述的数据处理方法,其特征在于,所述第一用户端通过所述命令通道与所述第二用户端进行网络参数协商包括:The data processing method according to claim 1, wherein the first user end performs network parameter negotiation with the second user end by using the command channel, including:
    所述第一用户端通过所述命令通道向所述第二用户端发送第一自组协议命令,并接收所述第二用户端发送的第二自组协议命令;The first user end sends a first ad hoc protocol command to the second user end by using the command channel, and receives a second ad hoc group protocol command sent by the second user end;
    所述第一用户端根据所述第二自组协议命令检测自身的第一网络配置信息;The first user end detects its own first network configuration information according to the second ad hoc protocol command;
    所述第一用户端向所述第二用户端发送所述第一网络配置信息,并接收所述第二用户端发送的第二网络配置信息;Transmitting, by the first user end, the first network configuration information to the second user end, and receiving second network configuration information sent by the second user end;
    所述第一用户端根据协商结果确定目标组网方式具体为:The method for determining the target networking mode by the first user end according to the negotiation result is specifically:
    所述第一用户端根据所述第一网络配置信息以及所述第二网络配置信息确定目标组网方式。The first user end determines the target networking mode according to the first network configuration information and the second network configuration information.
  3. 根据权利要求2所述的数据处理方法,其特征在于,所述第一用户端根据所述第一网络配置信息以及所述第二网络配置信息确定目标组网方式包括:The data processing method according to claim 2, wherein the determining, by the first user end, the target networking mode according to the first network configuration information and the second network configuration information comprises:
    所述第一用户端根据所述第一网络配置信息以及所述第二网络配置信息判断所述第一用户端以及所述第二用户端是否均支持wi-fi direct服务;Determining, by the first user end, whether the first user end and the second user end support a wi-fi direct service according to the first network configuration information and the second network configuration information;
    若所述第一用户端以及所述第二用户端均支持wi-fi direct服务,则所述第一用户端确定通过所述wi-fi direct服务组网为目标组网方式。If the first user end and the second user end support the wi-fi direct service, the first user end determines that the wi-fi direct service networking is the target networking mode.
  4. 根据权利要求3所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 3, wherein the method further comprises:
    若所述第一用户端或所述第二用户端不支持wi-fi direct技术,则所述第一用户端判断所述第一用户端以及所述第二用户端是否处于同一局域网中;If the first user end or the second user end does not support the wi-fi direct technology, the first user end determines whether the first user end and the second user end are in the same local area network;
    若所述第一用户端以及所述第二用户端处于同一局域网中,则所述第一用 户端确定通过所述局域网组网为目标组网方式;If the first user end and the second user end are in the same local area network, the first use The terminal determines to use the local area network networking as the target networking mode;
    若所述第一用户端以及所述第二用户端不处于同一局域网中,则所述第一用户端确定通过自组网络组网为目标组网方式。If the first user end and the second user end are not in the same local area network, the first user end determines that the self-organized network networking is the target networking mode.
  5. 根据权利要求3或4所述的数据处理方法,其特征在于,当所述目标组网方式为通过wi-fi direct服务组网时,所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道络具体为:The data processing method according to claim 3 or 4, wherein, when the target networking mode is a network through a wi-fi direct service, the first user end passes the target networking mode and the location The second user end establishes a communication channel network specifically:
    所述第一用户端以及所述第二用户端启动所述wi-fi direct服务,并通过所述wi-fi direct服务建立对等网;The first user end and the second user end initiate the wi-fi direct service, and establish a peer-to-peer network by using the wi-fi direct service;
    所述第一用户端通过所述对等网与所述第二用户端建立通信通道。The first user end establishes a communication channel with the second user end through the peer-to-peer network.
  6. 根据权利要求3或4所述的数据处理方法,其特征在于,当所述目标组网方式为通过局域网组网时,所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道具体为:The data processing method according to claim 3 or 4, wherein, when the target networking mode is a network through a local area network, the first user end passes the target networking mode and the second user The communication channel established by the terminal is specifically as follows:
    所述第一用户端以及所述第二用户端通过所述局域网开启网络socket服务建立通信通道。The first user end and the second user end establish a communication channel by opening a network socket service through the local area network.
  7. 根据权利要求3或4所述的数据处理方法,其特征在于,当所述目标组网方式为通过自组网络组网时,所述第一用户端通过所述目标组网方式与所述第二用户端建立通信通道具体为:The data processing method according to claim 3 or 4, wherein, when the target networking mode is a network through an ad hoc network, the first user end passes the target networking mode and the first The second user establishes a communication channel specifically as follows:
    所述第一用户端与所述第二用户端建立无线自组网络,并通过所述无线自组网络开启网络socket服务建立通信通道。The first user end establishes a wireless ad hoc network with the second user end, and establishes a communication channel by using the wireless ad hoc network to open a network socket service.
  8. 一种用户端,其特征在于,包括:A user terminal, comprising:
    第一建立模块,用于通过蓝牙协议与第二用户端建立命令通道;a first establishing module, configured to establish a command channel with the second user end by using a Bluetooth protocol;
    协商模块,用于通过所述第一建立模块建立的所述命令通道与所述第二用户端进行网络参数协商;a negotiation module, configured to perform network parameter negotiation with the second user end by using the command channel established by the first establishing module;
    确定模块,用于根据所述协商模块得到的协商结果确定目标组网方式;a determining module, configured to determine a target networking mode according to the negotiation result obtained by the negotiation module;
    第二建立模块,用于通过所述确定模块确定的目标组网方式与所述第二用户端建立通信通道;a second establishing module, configured to establish a communication channel with the second user end by using a target networking manner determined by the determining module;
    传输模块,用于与所述第二用户端通过所述第二建立模块建立的所述通信通道传输数据。And a transmission module, configured to transmit data with the communication channel established by the second user terminal by using the second setup module.
  9. 根据权利要求8所述的用户端,其特征在于,所述协商模块包括: The client according to claim 8, wherein the negotiation module comprises:
    协议收发单元,用于通过所述命令通道向所述第二用户端发送第一自组协议命令,并接收所述第二用户端发送的第二自组协议命令;a protocol sending and receiving unit, configured to send, by using the command channel, a first ad hoc protocol command to the second user end, and receive a second ad hoc protocol command sent by the second user end;
    检测单元,用于根据所述协议收发单元接收的第二自组协议命令检测自身的第一网络配置信息;a detecting unit, configured to detect, according to the second ad hoc protocol command received by the protocol transceiver unit, the first network configuration information of the first network configuration information;
    配置收发单元,用于向所述第二用户端发送所述检测单元检测到的所述第一网络配置信息,并接收所述第二用户端发送的第二网络配置信息;The transceiver unit is configured to send the first network configuration information detected by the detecting unit to the second user end, and receive second network configuration information sent by the second user end;
    所述确定模块具体用于根据所述第一网络配置信息以及所述第二网络配置信息确定目标组网方式。The determining module is specifically configured to determine a target networking manner according to the first network configuration information and the second network configuration information.
  10. 根据权利要求9所述的用户端,其特征在于,所述确定模块包括:The user terminal according to claim 9, wherein the determining module comprises:
    第一判断单元,用于根据所述第一网络配置信息以及所述第二网络配置信息判断所述用户端以及所述第二用户端是否均支持wi-fi direct服务;a first determining unit, configured to determine, according to the first network configuration information and the second network configuration information, whether the user end and the second user end support a wi-fi direct service;
    若所述用户端以及所述第二用户端均支持wi-fi direct服务,则触发第一确定单元;If the user end and the second user end support the wi-fi direct service, triggering the first determining unit;
    第一确定单元,用于当所述第一判断单元确定所述用户端以及所述第二用户端均支持wi-fi direct服务时,确定通过所述wi-fi direct服务组网为目标组网方式。a first determining unit, configured to: when the first determining unit determines that the user end and the second user end support a wi-fi direct service, determine that the wi-fi direct service networking is a target networking the way.
  11. 根据权利要求10所述的用户端,其特征在于,所述确定模块还包括:The user terminal according to claim 10, wherein the determining module further comprises:
    若所述用户端或所述第二用户端不支持wi-fi direct技术,则触发第二判断单元;If the user end or the second user end does not support the wi-fi direct technology, triggering the second determining unit;
    第二判断单元,用于当所述第一判断单元确定所述用户端或所述第二用户端不支持wi-fi direct技术时,判断所述用户端以及所述第二用户端是否处于同一局域网中;a second determining unit, configured to: when the first determining unit determines that the user end or the second user end does not support the wi-fi direct technology, determine whether the user end and the second user end are in the same In the local area network;
    若处于同一局域网中,则触发第二确定单元;If it is in the same local area network, triggering the second determining unit;
    若不处于同一局域网中,则触发第三确定单元;If not in the same local area network, triggering the third determining unit;
    第二确定单元,用于当所述第二判断单元确定所述用户端以及所述第二用户端处于同一局域网中时,确定通过所述局域网组网为目标组网方式;a second determining unit, configured to: when the second determining unit determines that the user end and the second user end are in the same local area network, determine, by using the local area network to be a target networking mode;
    第三确定单元,用于当所述第二判断单元确定所述用户端以及所述第二用户端不处于同一局域网中时,确定通过自组网络组网为目标组网方式。And a third determining unit, configured to determine, by the second determining unit, that the user terminal and the second user end are not in the same local area network, determining, by using the ad hoc network networking, a target networking mode.
  12. 根据权利要求10或11所述的用户端,其特征在于,当所述目标组网 方式为通过wi-fi direct服务组网时,所述第二建立模块具体用于:启动wi-fi direct服务,并通过所述wi-fi direct服务建立对等网,通过所述对等网建立通信通道。The client according to claim 10 or 11, wherein when the target network is The second establishing module is specifically configured to: start a wi-fi direct service, establish a peer-to-peer network through the wi-fi direct service, and establish a peer-to-peer network through the peer-to-peer network. Communication channel.
  13. 根据权利要求10或11所述的用户端,其特征在于,当所述目标组网方式为通过局域网组网时,所述第二建立模块具体用于:通过所述局域网开启socket服务建立通信通道。The user terminal according to claim 10 or 11, wherein when the target networking mode is a network through a local area network, the second establishing module is specifically configured to: establish a communication channel by using the local area network to open a socket service. .
  14. 根据权利要求10或11所述的用户端,其特征在于,当所述目标组网方式为通过自组网络组网时,所述第二建立模块具体用于:与所述第二用户端建立无限自组网络,并通过所述无线自组网络开启socket服务建立通信通道。 The user terminal according to claim 10 or 11, wherein the second establishing module is specifically configured to: establish with the second user end, when the target networking mode is a network through an ad hoc network The network is infinitely self-organized, and the communication channel is established by opening the socket service through the wireless ad hoc network.
PCT/CN2015/071545 2014-12-29 2015-01-26 Data processing method and client WO2016106910A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410835795.8 2014-12-29
CN201410835795.8A CN104469665A (en) 2014-12-29 2014-12-29 Data processing method and user terminals

Publications (1)

Publication Number Publication Date
WO2016106910A1 true WO2016106910A1 (en) 2016-07-07

Family

ID=52914891

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071545 WO2016106910A1 (en) 2014-12-29 2015-01-26 Data processing method and client

Country Status (2)

Country Link
CN (1) CN104469665A (en)
WO (1) WO2016106910A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469665A (en) * 2014-12-29 2015-03-25 深圳市理奥网络技术有限公司 Data processing method and user terminals
CN105376696A (en) * 2015-10-09 2016-03-02 惠州Tcl移动通信有限公司 Data transmission method and intelligent terminal
CN105792105B (en) * 2016-02-29 2022-05-31 联想(北京)有限公司 Data transmission method and electronic equipment
CN106900065B (en) * 2017-04-24 2020-02-07 钟小磊 ZigBee network establishing method and device
EP3908017A4 (en) 2019-01-25 2022-01-26 Huawei Technologies Co., Ltd. Method and apparatus for establishing bluetooth data channel
CN113055849B (en) * 2021-03-01 2023-03-24 Oppo广东移动通信有限公司 Vehicle control method and device, electronic equipment and computer readable storage medium
CN113110234B (en) * 2021-05-11 2023-03-31 武汉灏存科技有限公司 Linkage control system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035354A (en) * 2007-03-27 2007-09-12 中兴通讯股份有限公司 Remote RF unit equipment and its scanning method of networking mode
CN101843124A (en) * 2007-10-31 2010-09-22 摩托罗拉公司 Negotiation of a short range wireless communication parameters using configuration data received through RFID
CN104469665A (en) * 2014-12-29 2015-03-25 深圳市理奥网络技术有限公司 Data processing method and user terminals

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996505B2 (en) * 2003-10-24 2011-08-09 Microsoft Corporation Network and interface selection on a computing device capable of establishing connections via multiple network communications media
CN103228065B (en) * 2013-04-09 2016-05-18 天脉聚源(北京)传媒科技有限公司 Mobile device based on Wi-Fi and carry out method, the system of MANET

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035354A (en) * 2007-03-27 2007-09-12 中兴通讯股份有限公司 Remote RF unit equipment and its scanning method of networking mode
CN101843124A (en) * 2007-10-31 2010-09-22 摩托罗拉公司 Negotiation of a short range wireless communication parameters using configuration data received through RFID
CN104469665A (en) * 2014-12-29 2015-03-25 深圳市理奥网络技术有限公司 Data processing method and user terminals

Also Published As

Publication number Publication date
CN104469665A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
WO2016106910A1 (en) Data processing method and client
EP3000214B1 (en) Method for establishing device-to-device communication
US9883538B2 (en) Avoiding P2P connection failure due to push button configuration overlap
US9769732B2 (en) Wireless network connection establishment method and terminal device
US9356974B2 (en) Systems and methods for establishing a Wi-Fi display (WFD) session
US9699715B2 (en) Discovery method and device in a wireless communication system
US9693377B2 (en) Automatic internet sharing
EP2884813B1 (en) Method and apparatus for generating p2p group for wi-fi direct service
JP2018515965A5 (en)
US20130311692A1 (en) Apparatus and method for direct pairing in a wireless docking system
EP2999250B1 (en) Method and apparatus for interconnection between terminal device and gateway device
JP2016226011A5 (en)
WO2015139179A1 (en) Method and terminal for content synchronization among terminals
JP2016504788A5 (en)
CA2897007A1 (en) Method and apparatus for changing services in wireless communication system
TW201720213A (en) Method, apparatus, and system for matching a wireless device
JP2018506874A (en) Discovery and management of synchronized audio or video streaming services to multiple sinks in a wireless display system
WO2017079923A1 (en) Network switching method and apparatus
US10129343B2 (en) Method for searching for docking service and peripheral function by using direct communication and apparatus for same
US10045387B2 (en) Method for constructing docking protocol by using direct communication, and apparatus therefor
US9882880B2 (en) Communication apparatus, method for controlling the same, and storage medium
US9288740B2 (en) Communication apparatus, control method for the same, communication system, and non-transitory computer-readable storage medium
WO2016029854A1 (en) Wireless network connection method, device and system
WO2014187241A1 (en) Method and wireless device for controlling disconnection of a wireless device in a wi-fi direct group of a wireless network
EP3026942B1 (en) Discovery of neighbour peers and connection establisment for a peer to peer communication

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.12.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15874603

Country of ref document: EP

Kind code of ref document: A1