CN112118539A - Method and device for device information interaction between terminals - Google Patents

Method and device for device information interaction between terminals Download PDF

Info

Publication number
CN112118539A
CN112118539A CN201910537820.7A CN201910537820A CN112118539A CN 112118539 A CN112118539 A CN 112118539A CN 201910537820 A CN201910537820 A CN 201910537820A CN 112118539 A CN112118539 A CN 112118539A
Authority
CN
China
Prior art keywords
terminal
connection
group
gatt
connection group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910537820.7A
Other languages
Chinese (zh)
Other versions
CN112118539B (en
Inventor
王双
董亮亮
常琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910537820.7A priority Critical patent/CN112118539B/en
Publication of CN112118539A publication Critical patent/CN112118539A/en
Application granted granted Critical
Publication of CN112118539B publication Critical patent/CN112118539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a method and equipment for equipment information interaction between terminals, which are used for solving the problem of poor stability of a mode that members in a conventional Wi-Fi group acquire equipment information of terminals in the group in a TCP mode. According to the embodiment of the invention, after a Wi-Fi connection group is established, a first terminal scans the preset BLE broadcast message, a second terminal searches for the group and simultaneously broadcasts the preset BLE broadcast message, the first terminal can establish GATT connection with the second terminal according to the scanned preset BLE broadcast message of the second terminal, and after the GATT connection is established, the first terminal sends the device information of all terminals in the group to the second terminal through the GATT connection instead of the original TCP connection. Because the GATT connection of the low-power-consumption Bluetooth is stable relative to the TCP connection, the system stability can be improved through the GATT connection interaction data of the low-power-consumption Bluetooth, and the power consumption of the system is reduced due to the use of the low-power-consumption Bluetooth.

Description

Method and device for device information interaction between terminals
Technical Field
The present invention relates to the field of terminals, and in particular, to a method and device for device information interaction between terminals.
Background
At present, data mass sending can be realized between terminals by establishing a local area network. There are a variety of applications for implementing mass data transmission between mobile terminals.
These applications generally have a function of establishing a Wi-Fi (Wireless Fidelity) connection group through a Wi-Fi hotspot and a Wi-Fi direct connection mode, and a terminal may establish a local area network as shown in fig. 1 by joining the same Wi-Fi connection group. After the group is established, the terminal establishing the group can acquire the device information of the other terminals in the group, then establish a TCP (transmission Control Protocol) connection with the other terminals in the group, and send the device information of the terminal in the group to the terminal in the group through the TCP connection.
After acquiring the device information of other devices in the group, the terminals in the group can establish connection to the terminals in the group to initiate data transmission, so that one-to-many file sharing, namely data mass sending, is realized.
However, during the process of establishing TCP connection between the terminal of the group and other devices in the group, the connection is not established or is accidentally disconnected.
In summary, the existing method for acquiring the device information of the terminals in the group by the members in the Wi-Fi group through the TCP method has poor stability.
Disclosure of Invention
The invention provides a method and equipment for equipment information interaction between terminals, which are used for solving the problem of poor stability of a mode that members in a conventional Wi-Fi group acquire equipment information of terminals in the group in a TCP mode.
In a first aspect, a method for device information interaction between terminals provided in an embodiment of the present invention includes:
after establishing a Wi-Fi connection group, a first terminal scans a preset BLE (Bluetooth Low Energy) broadcast message;
the first terminal determines a second terminal selected by a user from the scanned sending end of the BLE broadcast message;
the first terminal sends the device information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection after establishing a GATT (Generic Attribute Profile) connection with the second terminal selected by the user and detecting that the second terminal joins the Wi-Fi connection group.
According to the method, the first terminal scans the preset BLE broadcast message after establishing the Wi-Fi connection group, the second terminal searches the group and simultaneously broadcasts the preset BLE broadcast message, the first terminal can establish GATT connection with the second terminal according to the scanned preset BLE broadcast message of the second terminal, and after the GATT connection is established, the first terminal sends the device information of all terminals in the group to the second terminal through the GATT connection instead of the original TCP connection. Because the GATT connection of BLE bluetooth is stable relative to TCP connection, the system stability can be improved by connecting interactive data through the Bluetooth GATT, and the power consumption of the system is also reduced due to the use of the low-power Bluetooth.
In an optional implementation manner, the establishing, by the first terminal, a GATT connection with the second terminal selected by the user includes:
the first terminal determines a Bluetooth MAC (Media Access Control) address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
the first terminal sends a GATT connection establishment request to a second terminal according to the Bluetooth MAC address;
and the first terminal receives a response fed back by the second terminal and agreeing to establish the GATT connection.
In an optional implementation manner, after the first terminal establishes the GATT connection with the second terminal selected by the user, the method further includes:
and the first terminal sends the name and the password of the Wi-Fi connection group to the second terminal through GATT connection, so that the second terminal joins the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
According to the method, the first terminal and the second terminal are connected through the GATT to transmit information such as the name of the Wi-Fi hotspot group, the Wi-Fi hotspot password and the like, the second terminal can perform equipment verification according to the received Wi-Fi hotspot password, the second terminal can be enabled to be rapidly added into the Wi-Fi group, and meanwhile safety is improved.
In a second aspect, a method for device information interaction between terminals provided in an embodiment of the present invention includes:
the method comprises the steps that after a second terminal receives a Wi-Fi connection group joining instruction triggered by a user, the second terminal scans a Wi-Fi connection group and sends a preset BLE broadcast message;
the second terminal determines that the user selects the Wi-Fi connection group established by the first terminal from the scanned Wi-Fi connection groups;
and after the second terminal establishes GATT connection with the first terminal establishing the Wi-Fi connection group selected by the user and joins the Wi-Fi connection group established by the first terminal, the second terminal receives the equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
In an optional implementation manner, the establishing, by the second terminal, a GATT connection with the first terminal selected by the user includes:
and after receiving the request for establishing the GATT connection sent by the first terminal, the second terminal sends a response for agreeing to establish the GATT connection to the first terminal.
In an optional implementation manner, after the second terminal establishes the GATT connection with the first terminal that establishes the Wi-Fi connection group selected by the user, the method further includes:
the second terminal receives the name and the password of the Wi-Fi connection group sent by the first terminal through GATT connection;
and the second terminal joins the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
In a third aspect, an embodiment of the present invention further provides a first terminal for device information interaction between terminals, where the terminal includes: a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the terminal to perform the following:
scanning a preset BLE broadcast message after a Wi-Fi connection group is established;
determining a second terminal selected by a user from a scanned sending end of the BLE broadcast message;
and after the GATT connection is established with the second terminal selected by the user and the second terminal is detected to join the Wi-Fi connection group, sending the equipment information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection.
In one possible implementation, the processor is specifically configured to:
determining a Bluetooth MAC address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
sending a GATT connection establishing request to a second terminal according to the Bluetooth MAC address;
and receiving a response fed back by the second terminal and agreeing to establish the GATT connection.
In one possible implementation, the processor is further configured to:
after GATT connection is established with the second terminal selected by the user, the password of the Wi-Fi connection group is sent to the second terminal through the GATT connection, so that the second terminal is added into the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
In a fourth aspect, an embodiment of the present invention further provides another first terminal for device information interaction between terminals, where the terminal includes:
the first scanning module: the method comprises the steps of scanning a preset BLE broadcast message after a Wi-Fi connection group is established;
a first determination module: the second terminal is used for determining the user selection from the sending end of the scanned BLE broadcast message;
a transmission module: the terminal equipment information sending method comprises the steps of establishing GATT connection with a second terminal selected by a user and sending the equipment information of the terminal in the Wi-Fi connection group to the second terminal through the GATT connection after detecting that the second terminal joins the Wi-Fi connection group.
In a fifth aspect, an embodiment of the present invention further provides a second terminal for device information interaction between terminals, where the terminal includes: a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the terminal to perform the following:
after a Wi-Fi connection group joining instruction triggered by a user is received, scanning a Wi-Fi connection group and sending a preset BLE broadcast message;
determining that a Wi-Fi connection group established by a first terminal is selected from the scanned Wi-Fi connection groups by a user;
and after a GATT connection is established with a first terminal establishing the Wi-Fi connection group selected by the user and the terminal joins the Wi-Fi connection group established by the first terminal, receiving equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
In one possible implementation, the processor is specifically configured to:
and after receiving a request for establishing the GATT connection sent by the first terminal, sending a response for agreeing to establish the GATT connection to the first terminal.
In one possible implementation, the processor is further configured to:
after a GATT connection is established with a first terminal of the Wi-Fi connection group selected by the user, receiving the name and the password of the Wi-Fi connection group sent by the first terminal through the GATT connection;
and joining the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
In a sixth aspect, an embodiment of the present invention further provides another second terminal for device information interaction between terminals, where the terminal includes:
a second scanning module: the system comprises a wireless sensor network and a wireless local area network (Wi-Fi) connection group, wherein the wireless sensor network is used for scanning a Wi-Fi connection group and sending a preset BLE broadcast message after receiving a Wi-Fi connection group joining instruction triggered by a user;
a second determination module: the terminal comprises a Wi-Fi connection group used for determining that a user selects a first terminal to establish from scanned Wi-Fi connection groups;
a receiving module: the terminal information sending method comprises the steps of establishing a GATT connection with a first terminal of the Wi-Fi connection group selected by the user, and receiving the equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection after the GATT connection is established with the first terminal of the Wi-Fi connection group established by the first terminal and the terminal is joined in the Wi-Fi connection group established by the first terminal.
In a seventh aspect, the present application further provides a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method of the first or second aspect.
In addition, for technical effects brought by any one implementation manner of the third aspect to the seventh aspect, reference may be made to technical effects brought by different implementation manners of the first aspect or the second aspect, and details are not described here again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a network topology diagram corresponding to a Wi-Fi connection group according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a system for device information interaction between terminals according to an embodiment of the present invention;
fig. 3 is a network topology diagram of a BLE broadcast phase based on GAP (Generic Access Profile, general Access Profile) according to an embodiment of the present invention;
fig. 4 is a network topology of a GATT connection based on GAP according to an embodiment of the present invention;
fig. 5 is a schematic interface diagram of an application for performing device information interaction between terminals according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an application interface for creating a Wi-Fi connection group according to an embodiment of the present invention;
fig. 7 is a schematic view of an application interface after a group is established according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an application interface for performing group search according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of an application interface for searching connectable groups according to an embodiment of the present invention;
fig. 10 is a schematic view of an application interface where a first terminal receives a group entry request according to an embodiment of the present invention;
fig. 11 is a schematic two-dimensional code of a Wi-Fi connection group according to an embodiment of the present invention;
fig. 12 is a schematic interface diagram of group information displayed on a first terminal according to an embodiment of the present invention;
fig. 13 is a schematic interface diagram of group information displayed on a terminal B according to an embodiment of the present invention;
fig. 14 is a schematic diagram of a preset BLE broadcast message format according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a PDU (Protocol Data Unit) in a preset BLE broadcast packet according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a PDU Header in a preset BLE broadcast packet according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of a PDU Payload (basic necessary data) in a preset BLE broadcast message according to an embodiment of the present invention;
fig. 18 is a network topology diagram of a Wi-Fi connection group based on GATT connection according to an embodiment of the present invention;
fig. 19 is a schematic diagram of a complete interaction flow of a system for device information interaction between terminals according to an embodiment of the present invention;
fig. 20 is a schematic structural diagram of a first terminal for device information interaction between terminals according to an embodiment of the present invention;
fig. 21 is a schematic structural diagram of a first terminal for device information interaction between second terminals according to an embodiment of the present invention;
fig. 22 is a schematic structural diagram of a first terminal for device information interaction between third terminals according to an embodiment of the present invention;
fig. 23 is a schematic structural diagram of a second terminal for device information interaction between terminals according to an embodiment of the present invention;
fig. 24 is a schematic structural diagram of a second terminal for device information interaction between second terminals according to an embodiment of the present invention;
fig. 25 is a schematic structural diagram of a second terminal for device information interaction between third terminals according to an embodiment of the present invention;
fig. 26 is a schematic flowchart of a first terminal side method for device information interaction between terminals according to an embodiment of the present invention;
fig. 27 is a schematic flowchart of a second terminal side method for device information interaction between terminals according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
1. the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
2. In the embodiments of the present application, the term "plurality" means two or more, and other terms are similar thereto.
3. The terms "first terminal" and "second terminal" in the embodiments of the present invention refer to smart devices, such as mobile phones, tablets, smart cameras, smart printers, and the like, which have Wi-Fi functionality and bluetooth functionality.
4. The term "BLE" in the embodiment of the present invention refers to a key technology proposed by the bluetooth 4.0 specification, which is used for discovering devices and performing some simple communications, and has the advantages of low operating power consumption and low standby power consumption, but the transmission rate of BLE is relatively low, and is not suitable for transmitting a large amount of data streams.
5. The term "packet" in the embodiments of the present invention refers to a data unit, i.e., a data block, exchanged and transmitted in a network, and includes complete data information to be sent.
6. In the embodiment of the present invention, the term "group creator" refers to a terminal that establishes a Wi-Fi connection group, that is, the first terminal in the embodiment of the present invention may also be a hotspot creator for a Wi-Fi hotspot group.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
At present, one-to-one file sharing can be realized between terminals through technologies such as Bluetooth, and for a scheme of one-to-many file sharing between multiple terminals, a Wi-Fi connection group can be established through a Wi-Fi direct connection mode and a Wi-Fi hotspot connection mode, that is, after a terminal added into the same Wi-Fi connection group acquires device information of other terminals in the group, a connection can be established with the other terminals according to the acquired device information, so that data group sending is realized.
At present, terminals in a Wi-Fi connection group established in a Wi-Fi direct connection mode or a Wi-Fi hotspot connection mode interact with device information in a TCP mode, however, as is well known, the TCP mode is unstable in the stages of device searching, connection establishment in the early stage and the like, the device scanning and connection establishment speeds are slow, and the situations of no searching, accidental disconnection and the like often occur, so that bad experience is brought to users.
Further, for a Wi-Fi connection group (Wi-Fi hotspot group for short) established by a Wi-Fi hotspot connection mode, the terminal needs to join the Wi-Fi hotspot group, and may need to manually input the Wi-Fi hotspot password for device verification.
In the embodiment of the invention, the first terminal and the second terminal can be connected with each other through Bluetooth to exchange data, for example, the first terminal and the second terminal can transmit information such as the name of a Wi-Fi hotspot group and a Wi-Fi hotspot password through the GATT connection of BLE (Bluetooth Low Energy), so that the search process of Wi-Fi direct connection or Wi-Fi hotspots can be replaced, the second terminal can be rapidly added into the Wi-Fi group, and meanwhile, the safety is improved; subsequently, after the second terminal joins the group, the first terminal and the second terminal can also connect the device information of the terminals in the interactive group and the like through the GATT.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 2, an embodiment of the present invention provides a system for device information interaction between terminals, where the system includes: a first terminal 10 and a second terminal 20.
The first terminal 10: the method comprises the steps of scanning a preset BLE broadcast message after a Wi-Fi connection group is established; determining a second terminal selected by a user from a scanned sending end of the BLE broadcast message; and after the GATT connection is established with the second terminal selected by the user and the second terminal is detected to join the Wi-Fi connection group, sending the equipment information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection.
The second terminal 20: the system comprises a wireless sensor network and a wireless local area network (Wi-Fi) connection group, wherein the wireless sensor network is used for scanning a Wi-Fi connection group and sending a preset BLE broadcast message after receiving a Wi-Fi connection group joining instruction triggered by a user; determining that a Wi-Fi connection group established by a first terminal is selected from the scanned Wi-Fi connection groups by a user; and after a GATT connection is established with a first terminal establishing the Wi-Fi connection group selected by the user and the terminal joins the Wi-Fi connection group established by the first terminal, receiving equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
According to the scheme, the first terminal scans the preset BLE broadcast message after establishing the Wi-Fi connection group, the second terminal broadcasts the preset BLE broadcast message after selecting to join the group, the message contains the Bluetooth MAC address information of the second terminal, the first terminal can determine the Bluetooth MAC address of the second terminal according to the scanned preset BLE broadcast message of the second terminal and establishes GATT connection with the second terminal, and after the GATT connection is established, the first terminal replaces the original TCP connection to send the equipment information of all terminals in the group to the second terminal through the GATT connection. Those skilled in the art can know that the GATT connection of BLE bluetooth is relatively stable, and the data interaction through the GATT connection of BLE bluetooth can improve the stability of the system and reduce the power consumption of the system due to the use of low power consumption bluetooth.
The embodiment of the invention is based on the application of BLE, firstly, the BLE is introduced and explained:
the connection between BLE devices is established over the GATT protocol. GATT builds on GAP bases. The GAP defines several roles for devices, the main two being: BLE Peripheral devices (Peripheral) and BLE Central devices (Central). BLE peripheral devices, peripheral devices for short, are used to provide data, and are generally low-power consumption devices with a relatively simple structure, such as smart bracelets, bluetooth sphygmomanometers, bluetooth game pads, and the like; the BLE central device is used for connecting other BLE peripheral devices and receiving data provided by the BLE peripheral devices, and generally is a device with a relatively complete function, such as a mobile phone, a Pad, and the like. For example: for example, when a user uses a mobile phone to play an electronic game, the user can operate the electronic game through a touch screen on the mobile phone or connect a bluetooth game handle.
A network topology diagram of a GAP-based BLE broadcast phase is shown in fig. 3, where BLE peripheral devices enable BLE central devices to discover themselves by sending BLE broadcasts, the BLE central devices establish a GATT connection with the BLE peripheral devices according to the scanned BLE broadcasts, one BLE peripheral device may send BLE broadcasts to multiple BLE central devices, but one BLE peripheral device may only connect one BLE central device at a time, once the BLE peripheral device is in a connected state, sending of the BLE broadcasts is stopped, and then the BLE peripheral device is in an invisible state for other BLE central devices, and when the BLE peripheral device is disconnected from the BLE central devices, sending of the BLE broadcasts is continued.
GAP-based GATT-connected network topology As shown in figure 4, one BLE center device can connect a plurality of BLE peripheral devices at the same time, wherein the maximum number of BLE peripheral devices that the BLE center device can connect to is determined by the Bluetooth chip of the BLE center device. After the BLE central equipment and the BLE peripheral equipment establish GATT connection, the BLE peripheral equipment connected to the same terminal equipment can transfer through the BLE central equipment, and equipment information interaction is carried out.
Wherein, BLE peripheral equipment can also be called as broadcast sender, and BLE central equipment can also be called as broadcast receiver. The BLE broadcast sent by the BLE peripheral device is actually embodied in a form of a message, that is, a BLE broadcast message, where the BLE broadcast message may carry information such as a bluetooth MAC address, a device name, and a UUID (universal Unique Identifier) of the BLE peripheral device itself, and the BLE central device determines the bluetooth MAC address of the BLE peripheral device sending the BLE broadcast message according to the scanned BLE broadcast message, and establishes a GATT connection with the BLE peripheral device according to the determined bluetooth MAC address.
The embodiment of the invention has a plurality of flows which are mainly divided into a building process of a Wi-Fi connection group, an interactive flow of equipment information of terminals in the group and a file sharing flow among the terminals in the group; during the process of establishing the Wi-Fi connection group, the first terminal and the second terminal establish a GATT connection through a preset BLE broadcast message, and interact information required by the second terminal to join the Wi-Fi connection group through the GATT connection, wherein in the process, the first terminal is a group establisher and is also BLE center equipment; in the interaction process of the device information of the terminals in the group, when the terminals in the Wi-Fi connection group all have the device information of other terminals in the group, the file group sending can be performed by establishing a TCP connection, and the following specific description is respectively given to each process:
the first process is as follows: a Wi-Fi connection group building process;
the Wi-Fi connection group building process mainly comprises the steps that a first terminal builds a group and other terminals (second terminals) join the group. In the embodiment of the present invention, the establishment of a Wi-Fi connection group by a first terminal and the joining of the Wi-Fi connection group by a second terminal are both implemented based on an application of the present application, where an interface schematic diagram of the application is shown in fig. 5, and a main flow of a user a operating the first terminal to establish the Wi-Fi connection group and a main flow of a user B joining the Wi-Fi connection group established by the first terminal include the following steps:
step 1: with reference to fig. 5, a user a clicks a create group icon in an application interface of a first terminal, and operates the first terminal to create a Wi-Fi connection group;
step 2: after the user a clicks the group creation icon on the first terminal, the first terminal jumps to the application interface shown in fig. 6, and the application interface displays a manner of creating a Wi-Fi connection group, including: the method comprises the steps of establishing a Wi-Fi direct connection mode and a Wi-Fi hotspot mode, wherein correspondingly, a first terminal is a group builder, and if the first terminal establishes a Wi-Fi connection group in the Wi-Fi hotspot mode, the first terminal can also be called as a Wi-Fi hotspot builder.
And step 3: the user a selects one of the two modes of the Wi-Fi hotspot and the Wi-Fi direct connection to create a Wi-Fi connection group, after the group creation is completed, an application interface as shown in fig. 7 is displayed on the first terminal, and assuming that the device name of the first terminal is "Android (Android) _ a", the application interface displays the name of the Wi-Fi connection group created by the first terminal and the device name of a group creator, that is, the device name of the first terminal, and information such as other group member lists in the group, it can be understood that no other terminal is added to the group at this time. Here, the "group member" refers to a terminal connected to a Wi-Fi connection group or a terminal within a WLAN connection group except for a group creator.
And 4, step 4: in the embodiment of the invention, after a Wi-Fi connection group is created by a first terminal, scanning of a preset BLE broadcast message is started at the same time, wherein the preset BLE broadcast message is a BLE broadcast message containing a preset UUID. The first terminal screens BLE broadcast messages through preset UUID information. In this process, the first terminal is also a BLE central device for the group establisher.
And 5: correspondingly, if other terminals need to join the Wi-Fi connection group established by the first terminal, the application also needs to be installed. Assuming that the other terminals include a terminal B, after the application is opened by the user operating the terminal B, the displayed application interface can refer to fig. 6, and the user B clicks the join group icon on the application interface to trigger the terminal B to start the process of searching for the Wi-Fi connection group, as shown in fig. 8, an application interface schematic diagram of searching for the Wi-Fi connection group for the terminal B is shown; meanwhile, the terminal B serving as BLE peripheral equipment starts to send a preset BEL broadcast message and waits for the BLE central equipment to find itself.
After the user B clicks the join group icon of the terminal B, the terminal B jumps to the application interface shown in fig. 9, assuming that the device name of the terminal B is "Android _ B", the application interface displays information such as the device name of the second terminal and the scanned connectable group list, and the terminal B adds the scanned group to the connectable group list.
Step 6: after a first terminal serving as BLE center equipment scans a preset BLE broadcast message sent by a terminal B, the Bluetooth MAC address of the terminal B is determined according to the scanned preset BLE broadcast message, and GATT connection is established with the terminal B according to the determined Bluetooth MAC address.
And 7: the terminal B receives group information sent by the first terminal through GATT connection, and when the user B selects one of the groups in the connectable group list scanned by the user B on the terminal B, the terminal B is triggered to send a request for establishing Wi-Fi connection to the group establisher of the group, that is, after the user B operates the terminal B to select a group named "Android _ a" on the application interface shown in fig. 6, the terminal B sends a request for establishing Wi-Fi connection to the group establisher (i.e., the first terminal) who establishes the group.
And 8: if the Wi-Fi connection group is a Wi-Fi direct connection group, the first terminal displays an application interface shown in fig. 10 after receiving a connection establishment request sent by the terminal B, and after the user clicks an accept button of the first terminal, the first terminal sends a response agreeing to establish Wi-Fi connection to the terminal B. If the Wi-Fi connection group is a Wi-Fi hotspot group, the first terminal can directly establish Wi-Fi connection after receiving a connection establishment request sent by the terminal B, and a connection invitation dialog box cannot pop up.
If the Wi-Fi connection group is a Wi-Fi direct connection group, due to the characteristic of Wi-Fi direct connection, after receiving a response of agreeing to establish Wi-Fi connection fed back by the first terminal, the terminal B does not need to perform password verification, and after obtaining the agreeing response of the first terminal, the terminal B can be directly added into the Android _ A group;
in addition to sending the group information such as the name and the group password of the Wi-Fi connection group to the terminal B through GATT connection, the method for joining the Wi-Fi connection group in the embodiment of the present invention may further manually input the group password or the terminal B may join the Wi-Fi connection group created by the first terminal by scanning the two-dimensional code shown in fig. 11, where the two-dimensional code is the two-dimensional code of the Wi-Fi connection group created by the first terminal (group creator) and includes the information such as the name and the group password of the group.
The above-described complete process of joining the terminal B to the "Android _ a" group established by the terminal a. At this time, the terminals in the group include "Android _ a" and "Android _ B", that is, the first terminal and the terminal B. Schematic diagrams for viewing the group information through respective applications of the first terminal and the terminal B are shown in fig. 12 and 13, respectively: FIG. 12 is a schematic diagram of an interface of the application related to group information displayed by the first terminal; fig. 13 is a schematic diagram of an interface of the application related to the group information displayed by the terminal B.
By analogy, if other terminals also join the group, the step of joining the group by the other terminals may refer to the complete flow of the terminal B, which is not described herein again.
It should be noted that, the above steps are only examples, and in the process, after the first terminal creates the Wi-Fi connection group, the second terminal scans the Wi-Fi connection group of the first terminal again, and when in actual use, there is no sequential requirement that the user a operates the first terminal to create the Wi-Fi connection group and the user B operates the second terminal to scan the Wi-Fi connection group.
Further, the first terminal and the second terminal in the embodiment of the present invention both need to turn on bluetooth and Wi-Fi functions. In the building process of the Wi-Fi connection group, the first terminal and the second terminal which start Bluetooth and Wi-Fi functions establish GATT connection through interactive preset BLE broadcast messages, and establish group information such as passwords and the like required by Wi-Fi connection through GATT connection interaction. The preset BLE broadcast message is a BLE broadcast message containing a preset UUID. The first terminal screens BLE broadcast messages through preset UUID information. The preset BLE broadcast message in the device information interaction flow between terminals provided by the invention is introduced as follows:
as shown in fig. 14, a schematic structural diagram of a BLE broadcast message format according to an embodiment of the present invention is provided.
The BLE broadcast message comprises the following four parts:
preamble (Preamble): the broadcast channel is fixed to 10101010b, and the data channel is 10101010b or 01010101 b;
access Address: the broadcast channel is fixed to 0x8E89BED6, the data channel is a random value, different connections have different values, and the data channel is used between two devices after the connection is established;
CRC: CRC checking;
PDU: as shown in FIG. 15, the PDU includes a PDU Header and PDU Payload data;
as shown in fig. 16, the PDU Header includes a PDU Type (Type) for representing the Type of the BLE broadcast packet, where the PDU Type is used to represent the Type of the BLE broadcast packet, and mainly includes: connectable non-directional broadcasts, connectable directional broadcasts, non-connectable non-directional broadcasts, scannable non-directional broadcasts, and the like.
As shown in table 1 below, the maximum length of a PDU Payload data packet of this type is 37 bytes, where AdvA is a broadcast device address part including a bluetooth MAC address of a broadcast sender and is 6 bytes, and AdvData is a PDU data part including two parts, namely, significant (valid data) and non-significant (invalid data), and is 31 bytes.
Figure BDA0002101637970000151
TABLE 1 BLE broadcast message-PDU Payload structure
AdvData is described in detail below, and includes, but is not limited to, the following:
1, a valid data portion;
the valid Data portion contains a number of broadcast Data units called AD Structure, which contains Length and Data. As shown in fig. 17, the composition of the AD Structure includes, but is not limited to, the following:
1) the Length indicates the Length of Data included after the Length in the AD Structure, that is, the Length of Data.
2) AD Type, which indicates the Type of content represented by AD Data, such as device name, UUID, etc.;
3) AD Data, specific Data content.
For example, the content 020106 of an AD Structure is 02 for Len (indicating that the next 2 bytes of content all belong to AD Structure 1), 01 for AD Type, and 06 for AD Data.
2, invalid data portion;
the length of AdvData in PDU Payload must be 31 bytes, if the valid data part is less than 31 bytes, then it is complemented with 0, and the data in this part is invalid.
The AD types involved in the embodiments of the present invention include, but are not limited to, the following types, which are described below:
type 1: incomplete 16-bit UUID information;
an important concept in BLE applications is UUID, which identifies bluetooth services and communication feature access attributes, with different access methods being used for different bluetooth services and attributes.
Three types of service UUID formats are defined in the bluetooth broadcast, namely, a 16-bit UUID, a 32-bit UUID and a 128-bit UUID. The difference between complete and incomplete is that the device supports various service UUIDs, but only broadcasting a part of the services is called incomplete, and the embodiment of the invention adds a self-defined service in a broadcast data packet, so that the monitoring broadcaster Observer can determine an available device supporting combined transmission of bluetooth and Wi-Fi P2P by judging whether a scanned BLE broadcast message carries UUID information corresponding to the self-defined service.
In the embodiment of the invention, 0x02 represents incomplete 16-bit UUID information, and if the AD Type is 02, the content of AD Data is incomplete UUID information.
Such as: if the self-defined Service name is My _ Service _ UUID, and if the My _ Service _ UUID generated by using the UUID random generator is E953, when the UUID obtained by analyzing the received BLE broadcast message contains E953, the BLE broadcast message is represented as a preset BLE broadcast message.
For example, the following steps are carried out: the AD Structure 1 in the BLE broadcast message received by the broadcast receiver is 030253E 9, where length is 03, 3 bytes after length belong to AD Structure 1, AD Type is 02, the content of AD Data is UUID information, and the corresponding UUID information is E953, that is, My _ Service _ UUID, then the broadcast receiver determines that the BLE broadcast message is a preset BLE broadcast message.
It should be noted that, the My _ Service _ UUID is E953, which is only an example, for example: the complete 128-bit UUID can be used and randomly generated by a random generator, wherein the AD Type of the BLE broadcast message corresponding to the 128-bit UUID is 0X07, any value representing meaning or Type is not limited to a fixed real number, and any value or length combination meeting the condition requirement is suitable for the invention.
Type 2: a device name;
in the embodiment of the invention, 0x08 represents equipment abbreviation, 0x09 represents equipment full name, correspondingly, AD Data is a character string of names, and if AD Type is 08, the AD Data is the abbreviation of the names of the equipment; if the AD Type is 09, the AD Data device is called fully, and the added part is to enable the broadcast monitor Observer to obtain the device name of the Broadcaster, so as to display the device name, which is convenient for the user to view.
For example, the content of an AD Structure is 0E 09454 d 393330342046696E 646 d 65, where Len is 0E (indicating that the contents of the next 14 bytes all belong to the AD Structure 3), AD Type is 09 for the device generic name, and AD Data is 454 d 393330342046696E 646 d 65 for "E" M "9" 3 "0" 4 "space" F "i" n "d" M "E' (see ASCII code hexadecimal).
Type 3: customizing data;
in the embodiment of the invention, 0xFF represents vendor self-defined data, the first two bytes represent vendor ID, the default is 6F4D, and the rest are added according to requirements, so that the data content in the data can be self-defined.
It should be noted that, because the first terminal may create the Wi-Fi connection group in two ways, namely, the Wi-Fi direct connection and the Wi-Fi hotspot, the Wi-Fi connection group in the embodiment of the present invention also includes a Wi-Fi direct connection group and a Wi-Fi hotspot group. In the following, a Wi-Fi direct connection mode and a Wi-Fi hotspot mode are described by taking the first terminal as a group creator and the terminal B as one of the second terminals, respectively:
establishing a first mode and a Wi-Fi direct connection mode;
the Wi-Fi connection group created by the first terminal in a Wi-Fi direct connection mode is a Wi-Fi direct connection group, and after the group creation is completed, the first terminal configures an IP address for the first terminal, such as: 192.168.0.1.
after the terminal B selects to join the group, the terminal B sends a request for establishing the Wi-Fi direct connection to the first terminal, and the first terminal feeds back a response for agreeing to establish the Wi-Fi direct connection or refusing to establish the Wi-Fi direct connection to the terminal B.
And if the response which is sent to the terminal B by the first terminal and agrees to establish the Wi-Fi direct connection is received by the terminal B, the terminal B determines to join the Wi-Fi direct connection group.
And after the first terminal sends a response agreeing to establish the Wi-Fi direct connection to the terminal B, configuring different IP addresses of the same network segment as the first terminal for the terminal B. It can be understood by those skilled in the art that the IP addresses of the terminals in the same lan are necessarily different, for example: the IP address of the first terminal is 192.168.0.1, and the first terminal configures 192.168.0 for terminal B, the IP addresses in the network segment other than 192.168.0.1, for example, the IP address configured for terminal B by the first terminal is 192.168.0.2.
By analogy, if other terminals join the Wi-Fi direct connection group, the complete process of the terminal B may be referred to, and details are not described here.
Establishing a second mode and a Wi-Fi hotspot mode;
the Wi-Fi connection group created by the first terminal in the Wi-Fi hotspot mode is a Wi-Fi hotspot group, after the group creation is completed, the same as the Wi-Fi direct connection mode is achieved, and the first terminal configures an IP address for the first terminal.
The terminal B selects to join the Wi-Fi hotspot group, and it should be noted that, because the group is a Wi-Fi hotspot group, the terminal B may need to input a password of the Wi-Fi hotspot to verify and then join the group. In the embodiment of the invention, the mode that the terminal B joins the group is various, for example, after a certain Wi-Fi hotspot group is selected, the password of the group is manually input; or join the group by scanning the group two-dimensional code on the first terminal, and the like, it can be understood that the group two-dimensional code of the group on the first terminal includes information such as the name and the password of the group.
And after the terminal B selects to join the group, sending a request for establishing the Wi-Fi hotspot connection to the first terminal, and feeding back a response for agreeing to establish the Wi-Fi hotspot connection or refusing to establish the Wi-Fi hotspot connection to the second terminal by the first terminal.
And if the first terminal sends a response to the terminal B for agreeing to establish the Wi-Fi hotspot connection, the terminal B determines to join the Wi-Fi hotspot group after receiving the response.
And after the first terminal sends a response agreeing to establish the Wi-Fi hotspot connection to the terminal B, configuring different IP addresses in the same network segment as the first terminal for the terminal B.
By analogy, if other terminals join the Wi-Fi direct connection group, the complete process of the terminal B may be referred to, and details are not described here.
The device information includes an IP address of the terminal, a MAC address of the terminal, a device name, and the like. There are various specific ways for the terminal to report its own device information, such as: reporting in a point-to-point mode, in a broadcast mode, in a multicast mode or in a GATT connection.
Correspondingly, after receiving the device information reported by each terminal in the group, the first terminal stores the received device information of each terminal into a device list which is locally connected with the Wi-Fi hotspot, and if any terminal exits the group, the first terminal needs to delete the device information of the terminal which exits the group from the device list which is locally connected with the Wi-Fi hotspot. Similarly, for the Wi-Fi direct connection group, when acquiring the device information of the terminal in the group, the group creator may also perform statistics and update in a manner of a device list of a local connected group, and notify the updated device information in the device list to other terminals in the group. A specific procedure for notifying the first terminal of the device information of the terminals in the group to the terminals in the group through the procedure will be described below.
And a second process: the interactive process of the equipment information of the terminals in the group;
fig. 18 is a network topology diagram of a Wi-Fi connection group based on GATT connection according to an embodiment of the present invention, where the Wi-Fi connection group includes a first terminal, a terminal B, and a terminal C, and the first terminal replaces device information such as an IP address of a terminal in an original TCP connection and a second terminal interaction group through GATT connection;
and when the first terminal detects that a newly-added Wi-Fi connection group is established or a quit of the Wi-Fi connection group is detected, the updated equipment information of the terminals in the group is sent to each terminal equipment in the current group one by one through GATT connection.
And a third process: sharing data among terminals in the group;
when the terminals in the Wi-Fi connection group have the equipment information of other terminals in the group, the TCP connection can be established with other group members according to the IP address information to perform file group sending.
As shown in fig. 19, a schematic diagram of a complete interaction flow of device information interaction between terminals provided in the embodiment of the present invention includes the following steps:
step 1900, the first terminal establishes a Wi-Fi connection group and starts scanning a preset BLE broadcast message;
step 1901, clicking a joining group of the terminal B, and starting to send a preset BLE broadcast message;
step 1902, after scanning a preset BLE broadcast message of terminal B, the first terminal sends a request for establishing GATT connection to terminal B;
step 1903, terminal B sends a response to the first terminal agreeing to establish GATT connection;
step 1904, the first terminal sends the group information of the Wi-Fi connection group to terminal B through GATT connection;
step 1905, the terminal B receives the group information sent by the first terminal through GATT connection, and joins the Wi-Fi connection group selected by the user according to the group information;
step 1906, the first terminal obtains and stores the device information of terminal B including the IP address, and sends the device information of the first terminal itself to terminal B through GATT connection;
step 1907, clicking a joining group of the terminal C, and starting to send a preset BLE broadcast message;
step 1908, after scanning the preset BLE broadcast message of terminal C, the first terminal sends a request for establishing GATT connection to terminal C;
step 1909, terminal C sends a response to the first terminal agreeing to establish GATT connection;
step 1910, the first terminal sends the group information of the Wi-Fi connection group to terminal C through GATT connection;
step 1911, terminal C receives the group information sent by the first terminal through GATT connection, and joins the Wi-Fi connection group selected by the user according to the group information;
step 1912, the first terminal acquires and stores the device information of the terminal C including the IP address, and sends the device information of the first terminal itself and the terminal C to the terminal B through GATT connection, and sends the device information of itself and the terminal B to the terminal C;
step 1913, receiving the device information sent by the first terminal through GATT connection, and establishing TCP connection with terminal C according to the IP address of terminal C;
step 1914, receiving the device information sent by the first terminal through GATT connection, and establishing TCP connection with terminal B according to the IP address of terminal B;
in step 1915, the terminals in the group share data through TCP connections.
Here, step 1906 and step 1912 are only examples, and the first terminal may send the device information of all current terminals in the Wi-Fi connection group to the terminals of the group, for example: for step 1906, the first terminal may send its own and device information of terminal B to terminal B; for step 1912, the first terminal may transmit device information of itself, terminal B, and terminal C to terminal B and terminal C.
It should be noted that there is no order relationship between step 1900 and step 1901, which is only an example. Between step 1913 and step 1914, it is only indicated that the terminal B/terminal C establishes TCP connection with other terminals in the group, but not that both terminals need to initiate TCP connection, and if terminal B establishes TCP connection with terminal C first, terminal C may directly perform data sharing through the established TCP connection with terminal B.
Based on the same concept, as shown in fig. 20, an embodiment of the present invention provides a first terminal for device information interaction between terminals, where the first terminal includes: a processor 2000 and a memory 2001, wherein the memory 2001 has stored program code, which when executed by the processor 2000 causes the terminal to perform the following processes, one or more computer programs stored in the memory 2001:
scanning a preset BLE broadcast message after a Wi-Fi connection group is established;
determining a second terminal selected by a user from a scanned sending end of the BLE broadcast message;
and after the GATT connection is established with the second terminal selected by the user and the second terminal is detected to join the Wi-Fi connection group, sending the equipment information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection.
Optionally, the processor 2000 is specifically configured to:
determining a Bluetooth MAC address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
sending a GATT connection establishing request to a second terminal according to the Bluetooth MAC address;
and receiving a response fed back by the second terminal and agreeing to establish the GATT connection.
Optionally, the processor 2000 is further configured to:
after GATT connection is established with the second terminal selected by the user, the name and the password of the Wi-Fi connection group are sent to the second terminal through the GATT connection, so that the second terminal is added into the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
As shown in fig. 21, an embodiment of the present invention provides another first terminal for device information interaction between terminals, including:
the first scanning module 2100: the method comprises the steps of scanning a preset BLE broadcast message after a Wi-Fi connection group is established;
the first determination module 2101: the second terminal is used for determining the user selection from the sending end of the scanned BLE broadcast message;
the transport module 2102: the terminal equipment information sending method comprises the steps of establishing GATT connection with a second terminal selected by a user and sending the equipment information of the terminal in the Wi-Fi connection group to the second terminal through the GATT connection after detecting that the second terminal joins the Wi-Fi connection group.
Optionally, the transmission module 2102 is specifically configured to:
determining a Bluetooth MAC address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
sending a GATT connection establishing request to a second terminal according to the Bluetooth MAC address;
and receiving a response fed back by the second terminal and agreeing to establish the GATT connection.
Optionally, the transmission module 2102 is further configured to:
after GATT connection is established with the second terminal selected by the user, the name and the password of the Wi-Fi connection group are sent to the second terminal through the GATT connection, so that the second terminal is added into the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
As shown in fig. 22, the first terminal 2200 for providing device information interaction between third terminals in the embodiment of the present invention includes: radio Frequency (RF) circuit 2210, power supply 2220, processor 2230, memory 2240, input unit 2250, display unit 2260, camera 2270, communication interface 2280, and Wireless Fidelity (Wi-Fi) module 2290. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 22 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The following describes the components of the first terminal 2200 in detail with reference to fig. 22:
the RF circuit 2210 may be used for receiving and transmitting data during a communication or conversation. In particular, the RF circuit 2210 sends downlink data of the base station to the processor 2230 for processing; and in addition, sending the uplink data to be sent to the base station. In general, the RF circuit 2210 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, RF circuit 2210 may also communicate with networks and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
Wi-Fi technology belongs to short-distance wireless transmission technology, and the first terminal 2200 may be connected to an Access Point (AP) through a Wi-Fi module 2290, thereby implementing Access to a data network. The Wi-Fi module 2290 may be used for receiving and transmitting data during communication.
The first terminal 2200 may be physically connected to other terminals via the communication interface 2280. Optionally, the communication interface 2280 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between the first terminal 2200 and the other terminals.
In this embodiment of the application, the first terminal 2200 may be capable of implementing a communication service to send information to other contacts, so that the first terminal 2200 needs to have a data transmission function, that is, the first terminal 2200 needs to include a communication module therein. Although fig. 22 shows communication modules such as the RF circuit 2210, the Wi-Fi module 2290, and the communication interface 2280, it is understood that at least one of the above-mentioned components or other communication modules (e.g., bluetooth module) for implementing communication exists in the first terminal 2200 for data transmission.
For example, when the first terminal 2200 is a mobile phone, the first terminal 2200 may include the RF circuit 2210, and may further include the Wi-Fi module 2290; when the first terminal 2200 is a computer, the first terminal 2200 may include the communication interface 2280, and may further include the Wi-Fi module 2290; when the first terminal 2200 is a tablet computer, the first terminal 2200 may include the Wi-Fi module.
The memory 2240 may be used to store software programs and modules. The processor 2230 executes various functional applications and data processing of the first terminal 2200 by executing software programs and modules stored in the memory 2240, and can implement part or all of the processes in fig. 2 according to the embodiments of the present invention when the processor 2230 executes the program codes in the memory 2240.
Alternatively, the memory 2240 may mainly include a program storage area and a data storage area. The storage program area can store an operating system, various application programs (such as communication application), a face recognition module and the like; the storage data area may store data (such as various multimedia files like pictures, video files, etc., and face information templates) created according to the use of the terminal, etc.
Further, the memory 2240 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage device.
The input unit 2250 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the first terminal 2200.
Alternatively, the input unit 2250 may include a touch panel 2251 and other input terminals 2252.
The touch panel 2251, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 2251 (e.g., operations performed by the user on or near the touch panel 2251 by using any suitable object or accessory such as a finger, a stylus, etc.), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 2251 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 2230, and can receive and execute commands sent from the processor 2230. In addition, the touch panel 2251 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
Optionally, the other input terminals 2252 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 2260 may be used to display information input by a user or information provided to a user and various menus of the first terminal 2200. The display unit 2260 is a display system of the first terminal 2200, and is configured to present an interface to implement human-computer interaction.
The display unit 2260 may include a display panel 2261. Alternatively, the Display panel 2261 may be configured by using a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 2251 may cover the display panel 2261, and when the touch panel 2251 detects a touch operation on or near the touch panel 2251, the touch operation is transmitted to the processor 2230 to determine the type of the touch event, and then the processor 2230 provides a corresponding visual output on the display panel 2261 according to the type of the touch event.
Although the touch panel 2251 and the display panel 2261 are implemented as two separate components in fig. 22 to implement the input and output functions of the first terminal 2200, in some embodiments, the touch panel 2251 may be integrated with the display panel 2261 to implement the input and output functions of the first terminal 2200.
The processor 2230 is a control center of the first terminal 2200, connects various components using various interfaces and lines, and performs various functions of the first terminal 2200 and processes data by operating or executing software programs and/or modules stored in the memory 2240 and calling data stored in the memory 2240, thereby implementing various services based on the terminal.
Optionally, the processor 2230 may include one or more processing units. Optionally, the processor 2230 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 2230.
The camera 2270 is configured to implement a shooting function of the first terminal 2200, and shoot a picture or a video. The camera 2270 may be further configured to implement a scanning function of the first terminal 2200, and scan a scanned object (two-dimensional code/barcode).
The first terminal 2200 also includes a power supply 2220 (such as a battery) for supplying power to the respective components. Optionally, the power supply 2220 may be logically connected to the processor 2230 through a power management system, so that the power management system may manage charging, discharging, power consumption, and the like.
It is noted that the processor 2230 may perform the functions of the processor 2000 in fig. 20, and the memory 2240 stores the contents of the memory 2001 in the embodiment of the present invention.
Based on the same concept, as shown in fig. 23, an embodiment of the present invention provides a second terminal for device information interaction between terminals, where the second terminal includes: a processor 2300 and a memory 2301, wherein the memory 2301 stores program code that, when executed by the processor 2300, causes the terminal to perform the following:
after a Wi-Fi connection group joining instruction triggered by a user is received, scanning a Wi-Fi connection group and sending a preset BLE broadcast message;
determining that a Wi-Fi connection group established by a first terminal is selected from the scanned Wi-Fi connection groups by a user;
and after a GATT connection is established with a first terminal establishing the Wi-Fi connection group selected by the user and the terminal joins the Wi-Fi connection group established by the first terminal, receiving equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
Optionally, the processor 2300 is specifically configured to:
and after receiving a request for establishing the GATT connection sent by the first terminal, sending a response for agreeing to establish the GATT connection to the first terminal.
Optionally, the processor 2300 is further configured to:
receiving the name and the password of the Wi-Fi connection group sent by the first terminal through a GATT connection;
and joining the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
As shown in fig. 24, an embodiment of the present invention provides another second terminal for device information interaction between terminals, including:
the second scanning module 2400: the system comprises a wireless sensor network and a wireless local area network (Wi-Fi) connection group, wherein the wireless sensor network is used for scanning a Wi-Fi connection group and sending a preset BLE broadcast message after receiving a Wi-Fi connection group joining instruction triggered by a user;
the second determination module 2401: the terminal comprises a Wi-Fi connection group used for determining that a user selects a first terminal to establish from scanned Wi-Fi connection groups;
the receiving module 2402: the terminal information sending method comprises the steps of establishing a GATT connection with a first terminal of the Wi-Fi connection group selected by the user, and receiving the equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection after the GATT connection is established with the first terminal of the Wi-Fi connection group established by the first terminal and the terminal is joined in the Wi-Fi connection group established by the first terminal.
Optionally, the receiving module 2402 is specifically configured to:
and after receiving a request for establishing the GATT connection sent by the first terminal, sending a response for agreeing to establish the GATT connection to the first terminal.
Optionally, the receiving module 2402 is further configured to:
receiving the name and the password of the Wi-Fi connection group sent by the first terminal through a GATT connection;
and joining the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
As shown in fig. 25, the second terminal 2500 for providing device information interaction between third terminals in the embodiment of the present invention includes: a Radio Frequency (RF) circuit 2510, a power supply 2520, a processor 2530, a memory 2540, an input unit 2550, a display unit 2560, a camera 2570, a communication interface 2580, and a Wireless Fidelity (Wi-Fi) module 2590. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 25 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The following describes each component of the second terminal 2500 in detail with reference to fig. 25:
the RF circuit 2510 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 2510 sends the downlink data of the base station to the processor 2530 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 2510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
Further, the RF circuit 2510 may also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The Wi-Fi technology belongs to a short-distance wireless transmission technology, and the second terminal 2500 may connect to an Access Point (AP) through a Wi-Fi module 2590, thereby implementing Access to a data network. The Wi-Fi module 2590 can be used for receiving and transmitting data during communication.
The second terminal 2500 can be physically connected to other terminals through the communication interface 2580. Optionally, the communication interface 2580 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between the second terminal 2500 and the other terminals.
In this embodiment of the application, the second terminal 2500 can implement a communication service to send information to other contacts, so that the second terminal 2500 needs to have a data transmission function, that is, the second terminal 2500 needs to include a communication module inside. Although fig. 25 shows communication modules such as the RF circuit 2510, the Wi-Fi module 2590 and the communication interface 2580, it is understood that at least one of the above-mentioned components or other communication modules (e.g., a bluetooth module) for implementing communication exists in the second terminal 2500 for data transmission.
For example, when the second terminal 2500 is a mobile phone, the second terminal 2500 may include the RF circuit 2510 and may further include the Wi-Fi module 2590; when the second terminal 2500 is a computer, the second terminal 2500 may include the communication interface 2580 and may further include the Wi-Fi module 2590; when the second terminal 2500 is a tablet computer, the second terminal 2500 may include the Wi-Fi module.
The memory 2540 may be used to store software programs and modules. The processor 2530 executes software programs and modules stored in the memory 2540 to perform various functional applications and data processing of the second terminal 2500, and when the processor 2530 executes the program codes in the memory 2540, part or all of the processes in fig. 2 according to the embodiment of the present invention can be implemented.
Alternatively, the memory 2540 may mainly include a program storage area and a data storage area. The storage program area can store an operating system, various application programs (such as communication application), a face recognition module and the like; the storage data area may store data (such as various multimedia files like pictures, video files, etc., and face information templates) created according to the use of the terminal, etc.
In addition, the memory 2540 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 2550 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the second terminal 2500.
Alternatively, the input unit 2550 may include a touch panel 2551 and other input terminals 2552.
The touch panel 2551, also called a touch screen, can collect touch operations of a user on or near the touch panel 2551 (for example, operations of the user on or near the touch panel 2551 by using any suitable object or accessory such as a finger or a stylus), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 2551 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 2530, and can receive and execute commands sent by the processor 2530. In addition, the touch panel 2551 can be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
Optionally, the other input terminals 2552 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 2560 may be used to display information input by or provided to a user and various menus of the second terminal 2500. The display unit 2560 is a display system of the second terminal 2500, and is configured to present an interface to implement human-computer interaction.
The display unit 2560 may include a display panel 2561. Alternatively, the Display panel 2561 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 2551 can cover the display panel 2561, and when the touch panel 2551 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 2530 to determine the type of the touch event, and then the processor 2530 provides a corresponding visual output on the display panel 2561 according to the type of the touch event.
Although the touch panel 2551 and the display panel 2561 are shown as two separate components in fig. 25 to implement the input and output functions of the second terminal 2500, in some embodiments, the touch panel 2551 and the display panel 2561 may be integrated to implement the input and output functions of the second terminal 2500.
The processor 2530 is a control center of the second terminal 2500, connects various components using various interfaces and lines, and performs various functions of the second terminal 2500 and processes data by operating or executing software programs and/or modules stored in the memory 2540 and calling data stored in the memory 2540, thereby implementing various services based on the terminal.
Optionally, the processor 2530 may include one or more processing units. Optionally, the processor 2530 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 2530.
The camera 2570 is configured to implement a shooting function of the second terminal 2500, and take pictures or videos. The camera 2570 may also be configured to implement a scanning function of the second terminal 2500, so as to scan a scanned object (two-dimensional code/barcode).
The second terminal 2500 also includes a power supply 2520 (such as a battery) for powering the various components. Optionally, the power source 2520 may be logically connected to the processor 2530 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
It is to be noted that the processor 2530 can execute the functions of the processor 2300 in fig. 23, and the memory 2540 stores the contents of the memory 2301 according to the embodiment of the present invention.
The embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes a program code, and when the program code runs on a computing terminal, the program code is configured to enable the computing terminal to execute the following steps of the method for device information interaction between terminals according to the embodiment of the present invention.
Based on the same inventive concept, the embodiment of the present invention further provides a method for device information interaction between terminals, and since the device corresponding to the method is a method corresponding to the first terminal in the system for device information interaction between terminals in the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the terminal, the implementation of the method can refer to the implementation of the first terminal in the process of the system for device information interaction between terminals, and repeated parts are not described again.
As shown in fig. 26, an embodiment of the present invention provides a method for device information interaction between terminals, where the method includes:
step 2600, after the first terminal establishes the Wi-Fi connection group, scanning a preset BLE broadcast message
Step 2601, the first terminal determines a second terminal selected by a user from the scanned sending end of the BLE broadcast message;
step 2602, after the first terminal establishes a GATT connection with the second terminal selected by the user and detects that the second terminal joins the Wi-Fi connection group, the first terminal sends the device information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection.
Optionally, the establishing, by the first terminal, a GATT connection with the second terminal selected by the user through the following manner includes:
the first terminal determines a Bluetooth MAC address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
the first terminal sends a GATT connection establishment request to a second terminal according to the Bluetooth MAC address;
and the first terminal receives a response fed back by the second terminal and agreeing to establish the GATT connection.
Optionally, after the first terminal establishes the GATT connection with the second terminal selected by the user, the method further includes:
and the first terminal sends the password of the Wi-Fi connection group to the second terminal through GATT connection, so that the second terminal joins in the Wi-Fi connection group according to the password of the Wi-Fi connection group.
Based on the same inventive concept, the embodiment of the present invention further provides a method for device information interaction between terminals, and since the device corresponding to the method is a method corresponding to the second terminal in the system for device information interaction between terminals in the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the terminal, the implementation of the method can refer to the implementation of the second terminal in the interaction flow of the system for device information interaction between terminals, and repeated parts are not described again.
As shown in fig. 27, an embodiment of the present invention provides a method for device information interaction between terminals, where the method includes:
step 2700, after receiving a command of joining the Wi-Fi connection group triggered by a user, the second terminal scans the Wi-Fi connection group and sends a preset BLE broadcast message;
step 2701, the second terminal determines that the user selects the Wi-Fi connection group established by the first terminal from the scanned Wi-Fi connection groups;
step 2702, after the second terminal establishes GATT connection with the first terminal establishing the Wi-Fi connection group selected by the user and joins the Wi-Fi connection group established by the first terminal, the second terminal receives the device information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
Optionally, the establishing, by the second terminal, a GATT connection with the first terminal selected by the user through the following manner includes:
and after receiving the request for establishing the GATT connection sent by the first terminal, the second terminal sends a response for agreeing to establish the GATT connection to the first terminal.
Optionally, after the second terminal establishes the GATT connection with the first terminal that establishes the Wi-Fi connection group selected by the user, the method further includes:
the second terminal receives the name and the password of the Wi-Fi connection group sent by the first terminal through GATT connection;
and the second terminal joins the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for device information interaction between terminals is characterized in that the method comprises the following steps:
after a wireless fidelity Wi-Fi connection group is established, a first terminal scans a preset low-power Bluetooth BLE broadcast message;
the first terminal determines a second terminal selected by a user from the scanned sending end of the BLE broadcast message;
and after the first terminal establishes a GATT connection with the second terminal selected by the user and detects that the second terminal joins the Wi-Fi connection group, the first terminal sends the equipment information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection.
2. The method of claim 1, wherein the first terminal establishes the GATT connection with the second terminal selected by the user by:
the first terminal determines a Bluetooth Media Access Control (MAC) address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
the first terminal sends a GATT connection establishment request to a second terminal according to the Bluetooth MAC address;
and the first terminal receives a response fed back by the second terminal and agreeing to establish the GATT connection.
3. The method of claim 1, wherein the first terminal, after establishing the GATT connection with the second terminal selected by the user, further comprises:
and the first terminal sends the name and the password of the Wi-Fi connection group to the second terminal through GATT connection, so that the second terminal joins the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
4. A method for device information interaction between terminals is characterized in that the method comprises the following steps:
the method comprises the steps that after a second terminal receives a Wi-Fi connection group joining instruction triggered by a user, the second terminal scans a Wi-Fi connection group and sends a preset BLE broadcast message;
the second terminal determines that the user selects the Wi-Fi connection group established by the first terminal from the scanned Wi-Fi connection groups;
and after the second terminal establishes GATT connection with the first terminal establishing the Wi-Fi connection group selected by the user and joins the Wi-Fi connection group established by the first terminal, the second terminal receives the equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
5. The method of claim 4, wherein the second terminal establishes the GATT connection with the first terminal selected by the user by:
and after receiving the request for establishing the GATT connection sent by the first terminal, the second terminal sends a response for agreeing to establish the GATT connection to the first terminal.
6. The method of claim 4, wherein the second terminal, after establishing the GATT connection with the first terminal that established the user-selected Wi-Fi connection group, further comprises:
the second terminal receives the name and the password of the Wi-Fi connection group sent by the first terminal through GATT connection;
and the second terminal joins the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
7. A first terminal for device information interaction between terminals, the terminal comprising: a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the terminal to perform the following:
scanning a preset BLE broadcast message after a Wi-Fi connection group is established;
determining a second terminal selected by a user from a scanned sending end of the BLE broadcast message;
and after the GATT connection is established with the second terminal selected by the user and the second terminal is detected to join the Wi-Fi connection group, sending the equipment information of the terminals in the Wi-Fi connection group to the second terminal through the GATT connection.
8. The terminal of claim 7, wherein the processor is further configured to:
determining a Bluetooth MAC address of the second terminal according to the scanned preset BLE broadcast of the second terminal;
sending a GATT connection establishing request to a second terminal according to the Bluetooth MAC address;
and receiving a response fed back by the second terminal and agreeing to establish the GATT connection.
9. The terminal of claim 7, wherein the processor is further configured to:
after GATT connection is established with the second terminal selected by the user, the name and the password of the Wi-Fi connection group are sent to the second terminal through the GATT connection, so that the second terminal is added into the Wi-Fi connection group according to the name and the password of the Wi-Fi connection group.
10. A second terminal for device information interaction between terminals, the terminal comprising: a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the terminal to perform the following:
after a Wi-Fi connection group joining instruction triggered by a user is received, scanning a Wi-Fi connection group and sending a preset BLE broadcast message;
determining that a Wi-Fi connection group established by a first terminal is selected from the scanned Wi-Fi connection groups by a user;
and after a GATT connection is established with a first terminal establishing the Wi-Fi connection group selected by the user and the terminal joins the Wi-Fi connection group established by the first terminal, receiving equipment information of the terminal in the Wi-Fi connection group sent by the first terminal through the GATT connection.
CN201910537820.7A 2019-06-20 2019-06-20 Method and device for device information interaction between terminals Active CN112118539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910537820.7A CN112118539B (en) 2019-06-20 2019-06-20 Method and device for device information interaction between terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910537820.7A CN112118539B (en) 2019-06-20 2019-06-20 Method and device for device information interaction between terminals

Publications (2)

Publication Number Publication Date
CN112118539A true CN112118539A (en) 2020-12-22
CN112118539B CN112118539B (en) 2022-08-02

Family

ID=73795977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910537820.7A Active CN112118539B (en) 2019-06-20 2019-06-20 Method and device for device information interaction between terminals

Country Status (1)

Country Link
CN (1) CN112118539B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395667A (en) * 2021-05-31 2021-09-14 佛山市利升光电有限公司 Lamp control method and system based on mobile terminal
CN113438628A (en) * 2021-06-23 2021-09-24 京东科技控股股份有限公司 Method and device for data interaction
CN113596809A (en) * 2021-07-30 2021-11-02 思必驰科技股份有限公司 Device discovery method and system based on natural language coding
CN113765682A (en) * 2021-09-13 2021-12-07 三星电子(中国)研发中心 Method and system for performing group functions
CN114125727A (en) * 2021-11-18 2022-03-01 北京字节跳动网络技术有限公司 Information processing method and device and electronic equipment
WO2022135341A1 (en) * 2020-12-25 2022-06-30 华为技术有限公司 Communication method and system, and electronic device
CN115529579A (en) * 2022-04-12 2022-12-27 荣耀终端有限公司 Device discovery method and device
CN115567997A (en) * 2022-04-11 2023-01-03 荣耀终端有限公司 Method and device for selecting central node of equipment discovery group

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702291A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Wi-Fi (wireless fidelity)-based group establishing method and WiFi directly-connecting equipment
CN104539324A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Bluetooth low-power-consumption networking interconnecting method and system
CN105530589A (en) * 2014-09-29 2016-04-27 樊明延 Bluetooth beacon device, wireless LAN terminal authentication access system and wireless LAN terminal authentication access method
CN106375934A (en) * 2015-07-24 2017-02-01 马维尔国际有限公司 A wireless communication method and terminal based on bluetooth low-power consumption techniques and user equipment
CN106535092A (en) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 Network sharing method, network accessing method and system
CN106792479A (en) * 2017-01-11 2017-05-31 南京邮电大学 A kind of D2D node discovery methods based on adjacent service
CN107360636A (en) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 A kind of data transmission method, device, terminal and computer-readable recording medium
WO2018103206A1 (en) * 2016-12-09 2018-06-14 华为技术有限公司 Method for establishing hotspot connection, and terminal device
CN207689937U (en) * 2018-01-24 2018-08-03 深圳市硅传科技有限公司 Temperature controller networked system based on bluetooth
CN108540544A (en) * 2018-03-27 2018-09-14 维沃移动通信有限公司 A kind of movable information sharing method and terminal
CN108540297A (en) * 2018-03-29 2018-09-14 努比亚技术有限公司 A kind of chat management method, mobile terminal and computer readable storage medium
CN108601061A (en) * 2018-07-02 2018-09-28 珠海格力电器股份有限公司 Network access method, home equipment control method, device, system, terminal and medium
EP3382528A1 (en) * 2017-03-31 2018-10-03 Canon Kabushiki Kaisha Information processing method to be performed by information processing apparatus configured to communicate with communication apparatus using predetermined communication method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702291A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Wi-Fi (wireless fidelity)-based group establishing method and WiFi directly-connecting equipment
CN105530589A (en) * 2014-09-29 2016-04-27 樊明延 Bluetooth beacon device, wireless LAN terminal authentication access system and wireless LAN terminal authentication access method
CN104539324A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Bluetooth low-power-consumption networking interconnecting method and system
CN106375934A (en) * 2015-07-24 2017-02-01 马维尔国际有限公司 A wireless communication method and terminal based on bluetooth low-power consumption techniques and user equipment
CN106535092A (en) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 Network sharing method, network accessing method and system
WO2018103206A1 (en) * 2016-12-09 2018-06-14 华为技术有限公司 Method for establishing hotspot connection, and terminal device
CN106792479A (en) * 2017-01-11 2017-05-31 南京邮电大学 A kind of D2D node discovery methods based on adjacent service
EP3382528A1 (en) * 2017-03-31 2018-10-03 Canon Kabushiki Kaisha Information processing method to be performed by information processing apparatus configured to communicate with communication apparatus using predetermined communication method
CN107360636A (en) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 A kind of data transmission method, device, terminal and computer-readable recording medium
CN207689937U (en) * 2018-01-24 2018-08-03 深圳市硅传科技有限公司 Temperature controller networked system based on bluetooth
CN108540544A (en) * 2018-03-27 2018-09-14 维沃移动通信有限公司 A kind of movable information sharing method and terminal
CN108540297A (en) * 2018-03-29 2018-09-14 努比亚技术有限公司 A kind of chat management method, mobile terminal and computer readable storage medium
CN108601061A (en) * 2018-07-02 2018-09-28 珠海格力电器股份有限公司 Network access method, home equipment control method, device, system, terminal and medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022135341A1 (en) * 2020-12-25 2022-06-30 华为技术有限公司 Communication method and system, and electronic device
CN113395667A (en) * 2021-05-31 2021-09-14 佛山市利升光电有限公司 Lamp control method and system based on mobile terminal
CN113395667B (en) * 2021-05-31 2023-08-15 佛山市利升光电有限公司 Lamp control method and system based on mobile terminal
CN113438628A (en) * 2021-06-23 2021-09-24 京东科技控股股份有限公司 Method and device for data interaction
CN113438628B (en) * 2021-06-23 2022-07-05 京东科技控股股份有限公司 Method and device for data interaction
CN113596809A (en) * 2021-07-30 2021-11-02 思必驰科技股份有限公司 Device discovery method and system based on natural language coding
CN113596809B (en) * 2021-07-30 2023-10-13 思必驰科技股份有限公司 Equipment discovery method and system based on natural language coding
CN113765682A (en) * 2021-09-13 2021-12-07 三星电子(中国)研发中心 Method and system for performing group functions
CN113765682B (en) * 2021-09-13 2024-05-24 三星电子(中国)研发中心 Method and system for performing group functions
CN114125727A (en) * 2021-11-18 2022-03-01 北京字节跳动网络技术有限公司 Information processing method and device and electronic equipment
CN115567997A (en) * 2022-04-11 2023-01-03 荣耀终端有限公司 Method and device for selecting central node of equipment discovery group
CN115529579A (en) * 2022-04-12 2022-12-27 荣耀终端有限公司 Device discovery method and device

Also Published As

Publication number Publication date
CN112118539B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN112118539B (en) Method and device for device information interaction between terminals
EP3893109B1 (en) Method and device for connecting bluetooth devices
RU2572615C2 (en) Method for wireless communication in local domain and terminal supporting same
CN106533711B (en) Multimedia conference method and device
CN111866824A (en) Method and equipment for establishing communication connection and data transmission
CN110933653B (en) Message transmission method, device, terminal and storage medium
EP2557825A2 (en) Method and apparatus for forming wi-fi p2p group using wi-fi direct
EP2901799B1 (en) Method and system for establishing wireless fidelity direct(wfd) connection in a wfd network environment
US20130311692A1 (en) Apparatus and method for direct pairing in a wireless docking system
US11330065B2 (en) Application connection for devices in a network
CN111867148A (en) Method and equipment for establishing equipment connection and data transmission
CN107147549B (en) Intelligent household equipment networking method and device
CN112118538A (en) Method and device for device information interaction between terminals
JP2021192521A (en) Method for establishing hot spot connection and terminal device
JP7049086B2 (en) Communication equipment, control methods, and programs
CN112492569A (en) Intelligent device control method and terminal
CN110832947B (en) Networking method and equipment
CN112691363A (en) Cross-terminal switching method and related device for cloud games
US20220286731A1 (en) Multimedia apparatus and cast method
CN106330681B (en) Method, system and related equipment for sharing film watching information
Wang et al. A wi-fi direct based p2p application prototype for mobile social networking in proximity (msnp)
US10582555B2 (en) Devices and methods for establishing an ad hoc peer-to-peer network
JP2018107779A (en) Computer program for communication equipment
JP2018107778A (en) Communication equipment
US10853008B2 (en) Non-transitory computer-readable medium storing program for communication apparatus, communication apparatus and method for controlling communication apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder