WO2017000619A1 - 基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及*** - Google Patents

基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及*** Download PDF

Info

Publication number
WO2017000619A1
WO2017000619A1 PCT/CN2016/078634 CN2016078634W WO2017000619A1 WO 2017000619 A1 WO2017000619 A1 WO 2017000619A1 CN 2016078634 W CN2016078634 W CN 2016078634W WO 2017000619 A1 WO2017000619 A1 WO 2017000619A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
peripheral device
central device
peripheral
bluetooth
Prior art date
Application number
PCT/CN2016/078634
Other languages
English (en)
French (fr)
Inventor
虞龙杰
蔡海
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Priority to US15/309,446 priority Critical patent/US9924304B2/en
Publication of WO2017000619A1 publication Critical patent/WO2017000619A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • 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/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of intelligent terminal technologies, and in particular, to a method and system for interconnecting piconet networking based on low power consumption Bluetooth and traditional Bluetooth.
  • smart TVs wireless audio, smart phones, tablets, notebooks, computers, wireless routers, wireless cameras, wireless projectors, smart lights, smart windows. , smart curtains, smart refrigerators, smart water heaters, smart printers, etc.
  • wireless connection services such as WIFI Display between smart TVs and smartphones, high-speed video transmission between devices, and video projection services between smart phones and wireless projectors.
  • the technical problem to be solved by the present invention is to provide a method and system for interconnecting piconet networking based on low power consumption Bluetooth and traditional Bluetooth, and aim to solve the trouble of wireless interconnection operation of two smart terminals existing in the prior art. Inconvenient question.
  • a piconet networking interconnection method based on low power consumption Bluetooth and traditional Bluetooth comprising the following steps:
  • the plurality of peripheral devices periodically broadcast the corresponding service type information and the service address information in a low-power mode and use the broadcast data packet to connect to the surrounding in a connectable non-directional manner; the central device passively scans and acquires the Bluetooth address corresponding to each peripheral device.
  • the service type information and the service address information; the service type information is service type information supported by a plurality of wireless connections, and the service address information is service address information corresponding to multiple wireless connections;
  • the central device generates a corresponding peripheral device service list according to the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device, to complete networking of the central device and multiple peripheral devices; as well as
  • the central device After the networking is completed, when the central device actively triggers the service or receives a service trigger request from the peripheral device, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and forms a corresponding piconet. And any two devices are wirelessly connected according to the peripheral device service list.
  • a piconet networking interconnection method based on low power consumption Bluetooth and traditional Bluetooth comprising the following steps:
  • the plurality of peripheral devices broadcast respective corresponding service type information and service address information in a connectable non-directional manner in a low-power mode; the central device scans and acquires a Bluetooth address, a service type information, and a service address information corresponding to each peripheral device;
  • the service type information is service type information that is supported by multiple wireless connections, and the service address information is service address information corresponding to multiple wireless connections;
  • the central device generates a corresponding peripheral device service list according to the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device, to complete the networking of the central device and the plurality of peripheral devices;
  • the central device After the networking is completed, the central device establishes the tradition of the central device and peripheral devices according to the service request. Bluetooth is connected, and a corresponding piconet is formed, and any two devices are wirelessly connected according to the peripheral device service list.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection method wherein the plurality of peripheral devices broadcast respective corresponding service type information and services to the surrounding in a connectable non-directional manner in a low power consumption mode.
  • Address information the step of the central device scanning and acquiring the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device, specifically including:
  • a plurality of peripheral devices In a low-power mode, a plurality of peripheral devices periodically broadcast all of the service type information and service address information to the surroundings in a connectable non-directional manner by using broadcast data packets;
  • the central device periodically scans surrounding peripheral devices, and the scan period is set to be consistent with the broadcast period of all peripheral devices;
  • the central device After a round of scanning, the central device obtains the corresponding Bluetooth address, supported service type information, and service address information of all peripheral devices.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection method wherein the plurality of peripheral devices broadcast respective corresponding service type information and services to the surrounding in a connectable non-directional manner in a low power consumption mode.
  • Address information; the step of the central device scanning and acquiring the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device specifically includes:
  • the plurality of peripheral devices periodically broadcast the supported service type information and service address information in a non-directional manner by using broadcast data packets in a low-power mode;
  • the central device periodically scans the surrounding peripheral devices, and the scanning period is T. If the number of services supported by a peripheral device is x, the broadcast period of the peripheral device is Waiting time is Where [log 2 x] represents a minimum integer greater than or equal to log 2 x;
  • the central device After a round of scanning, the central device obtains the corresponding Bluetooth address, supported service type information, and service address information of all peripheral devices.
  • the method for interconnecting piconet networking based on low power consumption Bluetooth and traditional Bluetooth wherein After the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and sets up a corresponding piconet, and the steps of wirelessly connecting any two devices according to the service list of the peripheral device include:
  • the central device triggers the service request, and sends the connection request signaling to the first peripheral device through the traditional Bluetooth.
  • the first peripheral device sends the connection reply signaling to the central device through the traditional Bluetooth; the central device establishes a connection with the first peripheral device to form a corresponding pico network;
  • the central device sends the connection request signaling to the second peripheral device through the traditional Bluetooth while maintaining the connection with the first peripheral device in a time division multiplexing manner, and the second peripheral device sends the connection reply signaling to the central device through the traditional Bluetooth; the central device and the central device a second peripheral device establishes a connection, and the second peripheral device is added to the piconet;
  • the central device sends service type information, service address information, and master-slave mode information to the first peripheral device and the second peripheral device through the piconet;
  • the first peripheral device and the second peripheral device directly interconnect according to the service type information, the service address information, and the master-slave mode information sent by the center device.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection method wherein after the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and forms a corresponding pico
  • the step of wirelessly connecting any two devices according to the service list of the peripheral device includes:
  • the first peripheral device When the first peripheral device actively triggers a service request to the central device, the first peripheral device sends a connection request signaling to the central device through the traditional Bluetooth, and the central device sends a connection reply signaling to the first peripheral device, the central device and the first peripheral device. establish connection;
  • the first peripheral device sends corresponding service type information to the central device
  • the central device searches for, according to the peripheral device service list, a second peripheral device that supports the same service type information as the service type information of the first peripheral device;
  • the central device sends connection request signaling to the second peripheral device through the traditional Bluetooth, the second peripheral device sends a connection reply signaling to the central device, and the central device establishes a connection with the second peripheral device, Forming a corresponding piconet;
  • the central device sends service type information, service address information, and master-slave mode information to the first peripheral device and the second peripheral device through the piconet; the first peripheral device and the second peripheral device according to the service type information sent by the central device
  • the service address information and the master-slave mode information directly correspond to the wireless interconnection.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection method wherein after the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and forms a corresponding pico
  • the step of wirelessly connecting any two devices according to the service list of the peripheral device includes:
  • the central device triggers a service request, and sends a connection request signaling to the first peripheral device through the traditional Bluetooth, and the first peripheral device sends the connection reply signaling to the central device through the traditional Bluetooth; the central device establishes a connection with the first peripheral device;
  • the central device sends service type information, service address information, and master-slave mode information to the first peripheral device;
  • the first peripheral device and the central device are wirelessly interconnected according to the service type information, the service address information, and the master-slave mode information.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection method wherein after the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and forms a corresponding pico
  • the step of wirelessly connecting any two devices according to the service list of the peripheral device includes:
  • the first peripheral device triggers a service request, and sends a connection request signaling to the central device through the traditional Bluetooth, and the central device sends a connection reply signaling to the first peripheral device through the traditional Bluetooth; the central device establishes a connection with the first peripheral device;
  • the first peripheral device sends service type information, service address information, and master-slave mode information to the center device;
  • the first peripheral device and the central device according to the service type information, service address information, and the main Wireless interconnection is directly performed from the mode information.
  • a piconet networking interconnection system based on low power consumption Bluetooth and traditional Bluetooth comprising:
  • a broadcast and scan module configured to broadcast respective corresponding service type information and service address information in a connectable non-directional manner to a surrounding area in a low power consumption mode by using a plurality of peripheral devices;
  • the central device scans and acquires a Bluetooth address corresponding to each peripheral device, Service type information and service address information;
  • the service type information is service type information supported by a plurality of wireless connections, and the service address information is service address information corresponding to multiple wireless connections;
  • the networking module is configured to generate a corresponding peripheral device service list according to the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device by the central device, so as to complete the networking of the central device and the plurality of peripheral devices;
  • the central device After the wireless connection module is used for the networking, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and sets up a corresponding piconet, and wirelessly connects any two devices according to the service list of the peripheral device.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection system wherein the broadcast and scan module comprises:
  • a first broadcast unit configured to periodically broadcast all of the service type information and service address information in a connectable non-directional manner to the surrounding by using a plurality of peripheral devices in a low power consumption mode
  • a first scanning unit configured to periodically scan surrounding peripheral devices by the central device, and the scanning period is set to be consistent with a broadcast period of all peripheral devices
  • the first information acquiring unit is configured to obtain a corresponding Bluetooth address, supported service type information, and service address information of all peripheral devices after one round of scanning by the center device.
  • the low-power Bluetooth and traditional Bluetooth-based piconet networking interconnection system wherein the broadcast and scan module comprises:
  • a second broadcast unit configured to periodically periodically broadcast the supported service type information and the surrounding non-directional manner by using a broadcast data packet by using a plurality of peripheral devices in a low-power mode and Business address information;
  • a second scanning unit configured to periodically scan the surrounding peripheral devices by the central device, and set the scanning period to T, and the number of types of services supported by a peripheral device is x, then the broadcasting period of the peripheral device is Waiting time is
  • [log 2 x] represents a minimum integer greater than or equal to log 2 x;
  • the second information acquiring unit is configured to obtain a corresponding Bluetooth address, a supported service type information, and service address information of all the peripheral devices after one round of scanning by the center device.
  • the invention provides a piconet networking interconnection method and system based on low power consumption Bluetooth and traditional Bluetooth, which effectively solves the problem that the wireless interconnection operation between two existing smart terminals is troublesome and inconvenient.
  • the service type information supported by the respective plurality of wireless connections and the service addresses corresponding to the plurality of wireless connections are broadcasted to the surrounding by a plurality of peripheral devices in a connectable non-directional manner in a connectable non-directional manner.
  • the central device scans and acquires the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device; the center device generates a corresponding peripheral device service list according to the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device, After completing the networking of the central device and the plurality of peripheral devices; after the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and forms a corresponding piconet, which is arbitrarily made according to the service list of the peripheral device.
  • Two devices are connected wirelessly; by setting up a Piconet piconet, making the central device And a plurality of peripheral devices can realize wireless interconnection of any two devices, and the user is easy to operate in the whole process, and at the same time, the device has ultra-low standby power consumption in normal times; according to the low-power Bluetooth function of the smart terminal, the present invention provides The method can automatically complete the networking work of the intelligent terminal, which is fast and convenient; when the user wants two smart terminals in the network to perform the wireless connection service, only the traditional Bluetooth function of the smart terminal needs to be triggered on any smart terminal. The connection can be completed, the interconnection is convenient, and the user is greatly facilitated.
  • FIG. 1 is a flowchart of a preferred embodiment of a piconet networking interconnection method based on low power consumption Bluetooth and traditional Bluetooth provided by the present invention
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for interconnecting piconets based on Bluetooth low energy and traditional Bluetooth provided by the present invention
  • FIG. 3 is a schematic flowchart diagram of a second embodiment of a method for interconnecting piconets based on Bluetooth low energy and traditional Bluetooth provided by the present invention
  • FIG. 4 is a schematic flowchart diagram of a third embodiment of a method for interconnecting piconets based on Bluetooth low energy and traditional Bluetooth provided by the present invention
  • FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a method for interconnecting piconet networking based on low power consumption Bluetooth and traditional Bluetooth according to the present invention
  • FIG. 6 is a structural block diagram of a preferred embodiment of a piconet networking interconnection system based on Bluetooth low energy and traditional Bluetooth provided by the present invention.
  • the present invention provides a method and system for interconnecting piconet networking based on Bluetooth low energy and traditional Bluetooth.
  • piconet networking based on Bluetooth low energy and traditional Bluetooth.
  • Bluetooth Low Energy Compared with traditional Bluetooth, Bluetooth Low Energy (BLE) has the advantages of saving power and transmitting a small amount of data, which is suitable for the networking process between intelligent terminals.
  • the development of the BLE protocol is mainly in the link layer (LL), the Generic Access Profile (GAP) and the Generic Attribute Profile (GATT), which will be separately introduced below.
  • the link layer defines the signaling of the BLE channel, the role and state of the broadcast channel.
  • the signaling format of the BLE channel is shown in Table 1, which is applicable to broadcast letters.
  • Channel and data channel The pilot code Preamble and the access address Access Address are fixed data for the BLE channel, and the Protocol Data Unit (PDU) can carry information in the BLE channel, and the CRC (Cyclic Redundancy Check) Check code) is used as a loop check.
  • PDU Protocol Data Unit
  • CRC Cyclic Redundancy Check
  • the signaling PDU of the broadcast channel is composed of a header header and a payload Payload, as shown in Table 2.
  • the 4-bit PDU Type in the Header determines the signaling type of the broadcast channel, such as connectable non-directional broadcast signaling (ADV_IND), connectable directed broadcast signaling (ADV_DIRECT_IND), non-connected non-directional broadcast signaling (ADV_NONCONN_IND), scan Request signaling (SCAN_REQ), scan reply signaling (SCAN_RSP), connection request signaling (CONNECT_REQ), scanning non-directional broadcast signaling (ADV_SCAN_IND), as shown in Table 3.
  • Table 3 shows the signaling types of the broadcast channel.
  • AdvA means The broadcaster's Bluetooth address
  • AdvData indicates a broadcast packet, which can carry up to 31 bytes of messages.
  • ADStructure represents a message segment
  • a broadcast data packet can accommodate multiple message segments
  • AD Type represents the type of message segment, such as Bluetooth name, Bluetooth manufacturer, UUID, etc.
  • AD Data represents the content of the message segment
  • Length (length) The value represents the number of bytes of Data.
  • the AD Type field that has been defined by the Bluetooth Alliance is shown in Table 6, and the reserved field is reserved.
  • the link layer defines three roles in the broadcast channel: the broadcaster (Advertiser), the scanner (Scanner), and the initiator (Initiator) in the unconnected state.
  • the link layer defines three states in the broadcast channel: broadcast state, scan state, and origination state.
  • the broadcast status includes:
  • Connectable undirected event broadcast direction week All scanning parties broadcast ADV_IND signaling and declare themselves in connectable mode.
  • the broadcaster listens to the SCAN_REQ signaling sent by the scanner and then sends the SCAN_RSP signaling to the scanner.
  • the broadcaster also listens to the CONNECT_REQ signaling sent by the initiator;
  • Connectable directed event A specific scanning party around the broadcast direction broadcasts ADV_DIRECT_IND signaling and declares itself in connectable mode. The broadcaster only listens to the CONNECT_REQ signaling sent by a specific initiator;
  • Non-connectable undirected event All scanning parties around the broadcast direction broadcast ADV_NONCONN_IND signaling and declare that they are in the unconnectable mode. The broadcaster does not monitor the signaling sent by the scanning party;
  • Scannable undirected event All scanning parties around the broadcast direction broadcast ADV_SCAN_IND signaling. The broadcaster only listens to the SCAN_REQ signaling sent by the scanner and then sends the SCAN_RSP signaling to the scanner.
  • Scan status includes:
  • Active scanning the scanning party in the active scanning mode listens to the broadcaster's broadcast signaling, and only sends the SCAN_REQ signaling to the broadcaster who broadcasts the ADV_IND signaling and the ADV_SCAN_IND signaling, and continues to listen to the SCAN_RSP letter sent by the broadcaster after the transmission is completed. make.
  • the launch status includes:
  • the initiator in the initiating state may send CONNECT_REQ signaling to the broadcaster broadcasting the ADV_IND signaling and the ADV_DIRECT_IND signaling.
  • the GAP layer defines four roles: Broadcaster Role, Observer Role, Peripheral Role, and Central Role.
  • Broadcast role A device in the broadcast role broadcasts to the surrounding in a low-power mode, but does not respond to connection requests from other devices, that is, devices in the broadcast role are in a disconnected mode.
  • the device in the observing role can scan the device in the broadcast role, but cannot initiate a connection request, that is, the device in the observing role is in the unconnectable mode.
  • Peripheral role A device in a peripheral role broadcasts to the surrounding in a low-power mode, responding to connection requests from other devices, that is, devices in a peripheral role are in connectable mode.
  • a device in a central role can scan for devices in a peripheral role and can initiate a connection request, that is, the device in the central role is in connectable mode.
  • E means no support
  • M means support
  • O means support support
  • O/E means if the central role supports passive scanning, then the central role selection supports active scanning, otherwise the central role must Support for active scanning.
  • Central equipment at the center of the network, with low-power Bluetooth and traditional Bluetooth
  • peripherals in the peripheral location of the network, with low-power Bluetooth and traditional Bluetooth.
  • the central device can obtain the Bluetooth address and broadcast data packet of the peripheral device through passive scanning, as shown in Table 9. .
  • Table 9 shows the connectable non-directional broadcasts of the GAP layer. Passive scanning mechanism.
  • the advantage of the traditional Bluetooth is that the amount of data transmitted is large, and the data transmission rate is also fast, which is suitable for the interconnection process between intelligent terminals.
  • the development of the traditional Bluetooth protocol is mainly in the Logical Link Control and Adaptation Protocol (L2CAP) and the Generic Access Profile (GAP), which will be respectively introduced below.
  • L2CAP Logical Link Control and Adaptation Protocol
  • GAP Generic Access Profile
  • L2CAP Logical Link Control and Adaptation Protocol
  • Length indicates the byte length of Commands; Channel ID is fixed to 0x0001; Code in Commands indicates the type of command, such as Connection request and Connection response.
  • Table 11 shows the meaning of the command code, as shown in Table 11; the Identifier in Commands is used to match the request and reply; the Length in Commands indicates the byte length of Data in Commands; and the Data in Commands indicates the information that the command can carry.
  • the Commands format of the connection request is shown in Table 12.
  • PSM stands for protocol/service multiplexing and is divided into two parts. The first part is fixed by the Bluetooth Alliance for use as a protocol, and the second part is dynamically allocated by the system for service, which is at least 2 bytes long.
  • Source CID Source Channel
  • the Destination CID indicates the channel ID of the Bluetooth device that sends the connection reply
  • the Source CID indicates the channel ID of the Bluetooth device that receives the connection reply, and is directly copied from the Source CID of the connection request command
  • Result indicates The result of the connection request signaling, such as Connection successful, Connection pending, and Connection refused, is as shown in Table 14.
  • Table 14 shows the result values of the connection request signaling.
  • the status Status is used to further explain the reason for the pending, as shown in Table 15.
  • Table 15 shows the Status value.
  • the data packet transmission format is as shown in Table 16, and Table 16 shows the data packet transmission format of the two Bluetooth devices.
  • Length indicates the byte length of the Information payload
  • Channel ID indicates the ID of the destination channel, which is dynamically allocated by the system
  • Information payload indicates the content of the packet, and the length can be set from 0 to 65535 bytes.
  • the format of the packet sent by the host is shown in Table 17.
  • Length indicates the total number of bytes of PSM and Information payload; Channel ID is fixed to 0x0002; PSM indicates protocol/service multiplexing, which is divided into two parts. The first part is fixedly allocated by the Bluetooth Alliance as the protocol, and the second part is dynamically allocated by the system. Used as a service, which is at least 2 bytes long; Information payload represents the contents of the packet, and the length can be set from 0 to 65533 bytes.
  • the format of the packet sent by the slave in Piconet is the same as that of Table 16.
  • the generic access protocol layer defines actions and states such as queries, discoverable, connected, connectable, and connected.
  • Bluetooth devices can simultaneously query nearby Bluetooth devices and be discovered by nearby Bluetooth devices through time-division multiplexing. That is, traditional Bluetooth devices can serve as both Inquiring device and Discoverable device. .
  • the querying device obtains the Bluetooth address of the discoverable device by querying.
  • the querying device and the discoverable device may have been connected to another Bluetooth device, but still maintain the query and discoverable functions.
  • connection and the connection can be connected: the Bluetooth device can simultaneously connect to the nearby Bluetooth device through the time division multiplexing mode and be connected by the nearby Bluetooth device, that is, the Bluetooth device can simultaneously serve as a connecting device and a connectable device.
  • the connection device sends a Connection Request signaling to the connectable device; the connected device can send a Connection Response signaling to the connected device, as shown in Table 18.
  • Table 18 is the signaling interaction between the connectable device and the connectable device.
  • the connected device and the connectable device may already be connected to another Bluetooth device, but remain connected and connectable.
  • Connected state When two Bluetooth devices are successfully connected, they can send string messages to each other.
  • the two Bluetooth devices have the ability to query, discover, connect, and connect while remaining connected.
  • multiple Bluetooth devices can form a network by connecting.
  • Piconet that is, a Bluetooth device is hosted, and another Bluetooth device is a slave's Piconet.
  • the host can simultaneously send string messages to all slaves in the network. All slaves can be individually The host sends a string message.
  • FIG. 1 is a flowchart of a preferred embodiment of a method for interconnecting a piconet network based on Bluetooth low energy and traditional Bluetooth. As shown in the figure, the method includes the following steps:
  • Step S100 The plurality of peripheral devices broadcast the service type information supported by the plurality of wireless connections corresponding to the plurality of wireless connections and the service address information corresponding to the plurality of wireless connections in a connectable non-directional manner in a low-power mode; the central device scans and acquires Bluetooth address, service type information, and service address information corresponding to each peripheral device;
  • Step S200 The central device generates a corresponding peripheral device service list according to the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device, to complete the networking of the central device and the plurality of peripheral devices;
  • Step S300 After the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and sets up a corresponding piconet, and wirelessly connects any two devices according to the peripheral device service list.
  • the plurality of peripheral devices broadcast the service type information supported by the respective plurality of wireless connections and the service address information corresponding to the plurality of wireless connections in a connectable non-directional manner in a low-power mode; the central device scans And obtain the Bluetooth address, service type information, and service address information corresponding to each peripheral device.
  • the peripheral device and the central device specifically refer to various intelligent terminals, such as smart TV, wireless audio, smart phone, tablet, notebook, computer, wireless router, wireless camera, wireless projector, smart light, smart refrigerator, smart Water heaters and smart printers, etc. These smart terminals generally have Bluetooth capabilities.
  • the peripheral device broadcasts its own supported wireless connection service type and service address to the surrounding in a "connectable non-directional" manner in a low-power mode, as shown in Table 19 (central device and external).
  • the surrounding equipment has this business table).
  • the central device passively scans the surrounding peripheral devices, obtains the Bluetooth address of all the peripheral devices, the supported service type, and the service address to form a list of peripheral device services. As shown in Table 20, the networking is completed.
  • the non-directional broadcast signaling modification point can be connected as follows: in the low power mode, the peripheral device uses the broadcast data packet to periodically broadcast the service type supported by the user in a "connectable non-directional" manner.
  • the service address and the customized broadcast data packet are shown in Table 21.
  • the value of Length indicates the total number of bytes of Service Type, Service Support and Service Address in AD Type, Data; the value of AD Type is "22", which is not defined by the Bluetooth Alliance to prevent interference to other BLE devices.
  • AD Type that has been defined by the Bluetooth Alliance The fields are shown in Table 6.
  • the Service Type in Data indicates the service type and can represent up to 256 types of services.
  • Service Support indicates whether the peripheral device supports the service. It is supported by "11111111” and not supported by "00000000"; Service Address Indicates the supported service address. If the service is not supported, the value of Service Address is "00000000"; the remaining broadcast packet bytes are padded with zeros.
  • the step S100 has two implementation manners, wherein the first implementation manner, the step S100 specifically includes:
  • the plurality of peripheral devices periodically broadcast the entire service type information and the service address information in a non-directional manner by using a broadcast data packet in a low-power mode.
  • the central device periodically scans surrounding peripheral devices, and the scan period is set to be consistent with the broadcast period of all peripheral devices;
  • the central device After a round of scanning, the central device obtains the corresponding Bluetooth address, the supported service type information, and the service address information of all the peripheral devices.
  • the peripheral device periodically broadcasts all 256 service types and service addresses (the service addresses of the unsupported service types are represented by "00000000”), and the central device periodically scans surrounding peripheral devices, and the scanning period (Scanning period) is set.
  • the central device can obtain the Bluetooth address of all peripheral devices, the supported service types and service addresses, as shown in Table 20, and the networking is completed. .
  • step S100 specifically includes:
  • the plurality of peripheral devices periodically broadcast the supported service type information and service address information in a non-directional manner by using a broadcast data packet in a low-power mode.
  • the central device periodically scans surrounding peripheral devices, and the scanning period is T. If the number of services supported by a peripheral device is x, the broadcast period of the peripheral device is Waiting for the time at the same time
  • [log 2 x] represents a minimum integer greater than or equal to log 2 x;
  • the central device After a round of scanning, the central device obtains the corresponding Bluetooth address, the supported service type information, and the service address information of all the peripheral devices.
  • the peripheral device periodically broadcasts the supported service type and service address, does not broadcast the unsupported service type and service address, and the central device periodically scans the surrounding peripheral devices.
  • the green font peripheral device only supports 1 The type of service is broadcast every 256 scan cycles.
  • the peripherals of the red font support 256 service types and are broadcast every other scan cycle.
  • the broadcast period of the peripheral device is Waiting time is
  • [log 2 x] represents the smallest integer greater than or equal to log 2 x. That is to say, the broadcast period and waiting time of the peripheral device differ depending on the type of service supported, as shown in Table 22. Table 22 shows the correspondence between the broadcast period and the waiting time of different service types of peripheral devices.
  • the central device can obtain a list of all peripheral Bluetooth addresses, supported service types and service addresses, as shown in Table 20, and the networking is completed.
  • the first implementation manner and the second implementation manner have advantages.
  • the first implementation manner is simple to set up the broadcast party, and the second implementation manner is different according to the service types supported by the broadcaster, and different broadcast periods are saved. Power consumption.
  • step S200 the central device generates a corresponding peripheral device service list according to the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device, to complete the networking of the central device and the plurality of peripheral devices.
  • step S300 after the networking is completed, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and constructs a corresponding piconet, and wirelessly connects any two devices according to the peripheral device service list.
  • the central device obtains a list of peripheral device services (Table 20), and the center device and the peripheral device maintain the function of the conventional Bluetooth while maintaining the low-power Bluetooth function, and Rely on traditional Bluetooth to complete the interconnection process.
  • the central device Only when the central device actively triggers the service or receives the service trigger request from the peripheral device, the central device and the peripheral device establish a traditional Bluetooth connection to form a Piconet network, and notify the wireless connection service type, service address, and master-slave mode.
  • the interconnection process can be divided into four application scenarios, which are described below.
  • the invention is based on the low-power Bluetooth and the traditional Bluetooth piconet networking interconnection method, and any two devices can realize wireless interconnection, such as WIFI or NFC, through the service type, service address and master-slave mode of the corresponding wireless connection.
  • Near Field Communication which enables wireless connection services and facilitates interconnection. If a device wants to connect to the W device of the B device, it only needs to set up the corresponding device through the central device to form the corresponding piconet, and then the device A and the device B send their respective Bluetooth addresses through the traditional Bluetooth, according to the WIFI service type and the master-slave mode and the other party.
  • the corresponding WIFI service address of the WIFI connection can realize the corresponding WIFI connection.
  • both the A device and the B device are peripheral devices, or one of the devices may be the center device. In this way, the user is greatly facilitated to operate. It is easy to operate, easy to control and trigger the wireless connection service between the intelligent terminals, and the intelligent terminal has lower standby power consumption.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for interconnecting piconets based on Bluetooth low energy and traditional Bluetooth.
  • the central device actively triggers the service request, and sends the service type and service address to the two peripheral devices respectively.
  • the two peripheral devices implement the interconnection after receiving the message.
  • the peripheral device 1 represents the first peripheral device below
  • the peripheral device 2 represents the second peripheral device below.
  • step S300 specifically includes:
  • the central device triggers a service request, and sends a connection request signaling to the first peripheral device by using the traditional Bluetooth.
  • the first peripheral device sends the connection reply signaling to the central device by using the traditional Bluetooth.
  • the central device establishes a connection with the first peripheral device, and forms a corresponding Piconet
  • the central device sends a connection request signaling to the second peripheral device through the traditional Bluetooth while maintaining the connection with the first peripheral device in a time division multiplexing manner, and the second peripheral device sends the connection reply signaling to the central device through the traditional Bluetooth;
  • the device establishes a connection with the second peripheral device, and adds the second peripheral device to the piconet;
  • the central device sends service type information, service address information, and master-slave mode information to the first peripheral device and the second peripheral device by using the piconet.
  • the first peripheral device and the second peripheral device directly perform wireless interconnection according to the service type information, the service address information, and the master-slave mode information sent by the center device.
  • the central device and peripheral devices maintain the traditional Bluetooth function.
  • the "connection request” signaling is first sent to the first peripheral device (peripheral device 1), and then the peripheral device sends a "connection reply” signaling to the central device.
  • the central device establishes a connection with the first peripheral device to form a Piconet, the central device becomes a host, and the peripheral device becomes a slave device; then, the center device maintains connection with the first peripheral device in a time division multiplex manner while being connected to the second peripheral device (peripheral The device 2) sends a "connection request” signaling, and likewise, the second peripheral device sends a "connection reply” signaling to the central device, the central device establishing a connection with the second peripheral device. See the description of the traditional Bluetooth section for "connection request" signaling and "connection reply” signaling.
  • the central device becomes the master and the two peripheral devices become the slave.
  • the central device can send string messages to the two peripheral devices at the same time, including the service type, business object address, and master-slave mode data.
  • the Piconet host shown in Table 17 is sent in the data packet.
  • Information Payload is customized as shown in Table 23.
  • Table 23 shows the Information Payload format in a custom Piconet packet.
  • the value of the length indicates the total number of bytes of the service type (Type), the service object address (Object Address), and the mode (Mode); the mode is used to select the host and the slave that perform the wireless connection service, and "11111111" indicates The host, "00000000" represents the slave.
  • the two peripheral devices After receiving the message from the central device, the two peripheral devices are interconnected according to the service type, the service object address, and the master-slave mode.
  • the central device sends the service type information and the master-slave mode information to the first peripheral device and the second peripheral device in the piconet by setting up the corresponding piconet, and sends the service address information corresponding to the first peripheral device to the second periphery. And transmitting the service address information corresponding to the second peripheral device to the first peripheral device; enabling the first peripheral device and the second peripheral device to perform wireless interconnection according to the service type, the service object address, and the master-slave mode.
  • FIG. 3 is a schematic flowchart diagram of a second embodiment of a method for interconnecting piconets based on Bluetooth low energy and traditional Bluetooth.
  • the peripheral device actively triggers a service request to the central device, and sends a service type.
  • the central device finds another peripheral device having the same service type in the peripheral device service list according to the service type, and then the central device separately sends the two peripheral devices to the two peripheral devices.
  • the service type and service address enable the two peripheral devices to interconnect after receiving the message.
  • the peripheral device 1 represents the first peripheral device below
  • the peripheral device 2 represents the second peripheral device below.
  • step S300 specifically includes:
  • the first peripheral device When the first peripheral device actively triggers a service request to the central device, the first peripheral device sends the connection request signaling to the central device by using the traditional Bluetooth, and the central device sends the connection request signaling to the first peripheral device. Sending connection reply signaling, and the central device establishes a connection with the first peripheral device;
  • the first peripheral device sends corresponding service type information to the central device.
  • the central device searches for, according to the peripheral device service list, a second peripheral device that supports the same service type information as the service type information of the first peripheral device.
  • the central device sends a connection request signaling to the second peripheral device by using the traditional Bluetooth, the second peripheral device sends a connection reply signaling to the central device, and the central device establishes a connection with the second peripheral device to form a corresponding piconet;
  • the central device sends service type information, service address information, and master-slave mode information to the first peripheral device and the second peripheral device by using the piconet; and the first peripheral device and the second peripheral device send services according to the central device.
  • the type information, the service address information, and the master-slave mode information directly correspond to each other for wireless interconnection.
  • the central device and peripheral devices maintain the traditional Bluetooth function.
  • the "connection request" signaling is first sent to the central device, and the central device sends a "connection reply” signaling to the peripheral device.
  • the peripheral device sends a service type string message, and the Information Payload in the Piconet slave data packet shown in Table 16 is customized as shown in Table 23, where Object Address and Mode No need to set, it is represented by "00000000".
  • the central device After receiving the above message, the central device finds another peripheral device supporting the same service type in the peripheral device service list according to the service type (if there are multiple peripheral devices supporting the same service type, then the first one in the selection list that meets the condition) The peripheral device) then sends a "connection request” signaling to the peripheral device, and the peripheral device sends a "connection reply” signaling to the central device.
  • the central device and two peripheral devices form a Piconet, where the central device becomes the host and the two peripheral devices become the slave.
  • the central device can simultaneously send string messages to the two peripheral devices, including the service type, service object address, and master. From mode data.
  • the central device sends a string message as shown in Table 23 to the two peripheral devices.
  • the two peripheral devices are based on the service type, the service object address, and the master-slave mode.
  • Interconnect After receiving the signaling sent by the central device, the two peripheral devices wirelessly interconnect according to the service type, the service object address, and the master-slave mode to perform wireless connection services, such as WIFI or NFC.
  • FIG. 4 is a schematic flowchart diagram of a third embodiment of a method for interconnecting piconets based on Bluetooth low energy and traditional Bluetooth.
  • the central device actively triggers the service request, and sends the service type and the service address to the peripheral device. After the peripheral device receives the message, the central device and the peripheral device are interconnected. Further, the step S300 specifically includes:
  • the central device triggers a service request, and sends connection request signaling to the first peripheral device by using the traditional Bluetooth.
  • the first peripheral device sends the connection reply signaling to the central device by using the traditional Bluetooth; the central device establishes a connection with the first peripheral device;
  • the central device sends service type information, service address information, and master-slave mode information to the first peripheral device.
  • the first peripheral device and the central device directly perform wireless interconnection according to the service type information, the service address information, and the master-slave mode information.
  • the central device and the first peripheral device maintain the traditional Bluetooth function.
  • a "connection request” signaling is sent to the designated peripheral device, and the peripheral device sends a "connection reply” signaling to the central device.
  • the central device sends a string message to the peripheral device, including the service type, the service object address, and the master-slave mode data, as shown in Table 23, wherein the content of the Object Address is changed to the center device. Business address.
  • the central device also knows the type of service (consistent with the transmission), the address of the business object (ie, the service address of the peripheral device), and the data of the master-slave mode (as opposed to the transmission).
  • the peripheral device receives the message from the central device
  • the central device and the peripheral device are interconnected according to the service type, the service object address, and the master-slave mode.
  • the central device actively triggers the service, and sends the service type and the service address to the first peripheral device.
  • the first peripheral device implements interconnection between the central device and the first peripheral device.
  • FIG. 5 is a piconet based on low power consumption Bluetooth and traditional Bluetooth provided by the present invention. Schematic diagram of the flow of the fourth embodiment of the networking interconnection method.
  • the peripheral device actively triggers the service request, and sends the service type and address to the central device. After receiving the message, the central device realizes the interconnection between the central device and the peripheral device. Further, the step S300 specifically includes:
  • the first peripheral device triggers a service request, and sends a connection request signaling to the central device by using a traditional Bluetooth, and the central device sends a connection reply signaling to the first peripheral device by using a traditional Bluetooth; the central device establishes a connection with the first peripheral device;
  • the first peripheral device sends service type information, service address information, and master-slave mode information to the center device.
  • the first peripheral device and the central device directly perform wireless interconnection according to the service type information, the service address information, and the master-slave mode information.
  • the central device and the first peripheral device maintain the traditional Bluetooth function.
  • the "connection request” signaling is sent to the central device, and the central device sends a "connection reply” signaling to the peripheral device, so that the central device and the peripheral device establish a connection.
  • the peripheral device sends a string message to the central device, including the service type, the service object address, and the master-slave mode data, as shown in Table 23, where the content of the Object Address is changed to the service address of the peripheral device.
  • the peripheral device also knows the type of service (consistent with the transmission), the address of the business object (ie, the service address of the central device), and the data of the master-slave mode (as opposed to the transmission).
  • the central device receives the signaling sent by the peripheral device, the central device and the first peripheral device are interconnected according to the service type, the service object address, and the master-slave mode.
  • the invention is based on low power consumption Bluetooth and traditional Bluetooth as a wireless communication method.
  • the peripheral device sends the peripheral device Bluetooth address, the supported wireless connection service type and the service address to the central device through dynamic broadcast signaling, and the central device scans to obtain a Bluetooth address including the peripheral device and the supported service type. And the list of business addresses, automatic networking is completed.
  • the central device after the central device actively triggers the service request, or receives the service trigger request of the peripheral device, the central device and the peripheral device set up the Piconet network to notify the wireless connection service type, service address, and master-slave mode, in four types. Interconnect and open in different application scenarios Wireless connection service, convenient interconnection. In the whole process, the user is easy to operate.
  • the intelligent terminal usually has ultra-low standby power consumption, and the short duration of the interconnection process does not cause large power consumption.
  • the central device and the peripheral device can be realized arbitrarily. The two devices are interconnected for easy operation.
  • the embodiment of the present invention further provides a piconet networking interconnection system based on low-power Bluetooth and traditional Bluetooth, as shown in FIG.
  • the system includes:
  • the broadcast and scan module 10 is configured to broadcast, by using a plurality of peripheral devices, the service type information supported by the respective plurality of wireless connections and the service address information corresponding to the plurality of wireless connections in a connectable non-directional manner in a low-power mode.
  • the central device scans and acquires the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device; specifically, as described in step S100;
  • the networking module 20 is configured to acquire the Bluetooth address and the service type information corresponding to each peripheral device by using the central device, and send a connection request to each peripheral device to establish a connection between the central device and the plurality of peripheral devices, as described in step S200;
  • the central device After the wireless connection module 30 is configured to complete the networking, the central device establishes a traditional Bluetooth connection between the central device and the peripheral device according to the service request, and sets up a corresponding piconet, and wirelessly connects any two devices according to the service list of the peripheral device. Specifically, as described in step S300.
  • broadcast and scan module 10 includes:
  • a first broadcast unit configured to periodically broadcast all of the service type information and service address information in a connectable non-directional manner to the surrounding by using a plurality of peripheral devices in a low power consumption mode
  • a first scanning unit configured to periodically scan surrounding peripheral devices by the central device, and the scanning period is set to be consistent with a broadcast period of all peripheral devices
  • the first information acquiring unit is configured to obtain a corresponding Bluetooth address, supported service type information, and service address information of all peripheral devices after one round of scanning by the center device.
  • broadcast and scan module 10 includes:
  • a second broadcast unit configured to periodically periodically broadcast the supported service type information and service address information in a connectable non-directional manner by using a broadcast data packet by using a plurality of peripheral devices in a low power consumption mode
  • a second scanning unit configured to periodically scan the surrounding peripheral devices by the central device, and set the scanning period to T, and the number of types of services supported by a peripheral device is x, then the broadcasting period of the peripheral device is Waiting time is
  • [log 2 x] represents a minimum integer greater than or equal to log 2 x;
  • the second information acquiring unit is configured to obtain a corresponding Bluetooth address, a supported service type information, and service address information of all the peripheral devices after one round of scanning by the center device.
  • the present invention provides a piconet networking interconnection method and system based on low power consumption Bluetooth and traditional Bluetooth, and broadcasts each of them in a connectable non-directional manner through a plurality of peripheral devices in a low power consumption mode.
  • the central device scans and acquires the Bluetooth address, the service type information, and the service address information corresponding to each peripheral device; the central device according to each peripheral device Corresponding Bluetooth address, service type information, and service address information, generating a corresponding peripheral device service list to complete the networking of the central device and multiple peripheral devices; after the networking is completed, the central device establishes the central device and the peripheral device according to the service request
  • the traditional Bluetooth connection, and the corresponding piconet is set up, and any two devices are wirelessly connected according to the peripheral device service list; the intelligent terminal's networking work is automatically completed according to the low-power Bluetooth of the intelligent terminal, and is fast and convenient; When you want two smart terminals in the network
  • the piconet networking interconnection system based on low power consumption Bluetooth and traditional Bluetooth provided by the embodiment of the present invention is formed in an intelligent terminal, such as a smart TV, a wireless audio, a smart phone, a tablet, a notebook, a computer, and a wireless device. Router, wireless camera, wireless projector, smart light , smart windows, smart curtains, smart refrigerators, smart water heaters, smart printers, etc., the piconet-based interconnection system based on Bluetooth low energy and traditional Bluetooth and the low-power Bluetooth based and traditional in the above embodiments
  • the Bluetooth piconet networking interconnection method belongs to the same concept, and the piconet network based on low power consumption Bluetooth and traditional Bluetooth can be operated on the piconet interconnection system based on low power consumption Bluetooth and traditional Bluetooth. Any of the methods provided in the embodiment of the interconnection method, and the specific implementation process thereof is described in the embodiment of the method for interconnecting the piconet network based on Bluetooth low energy and traditional Bluetooth, and details are not described herein again.
  • the low-power Bluetooth and the traditional Bluetooth-based piconet networking interconnection method of the embodiment of the present invention are implemented. All or part of the flow of the piconet interconnection method can be completed by a computer program controlling the related hardware, and the computer program can be stored in a computer readable storage medium, such as a memory stored in the smart terminal. And executed by at least one processor in the intelligent terminal, and may include a flow of an embodiment of each method as described above during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or may be two or More than two modules are integrated in one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Landscapes

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

Abstract

本发明公开了基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,***设备向周围广播业务类型及业务地址信息;中心设备根据该信息生成业务列表,以完成中心设备和***设备的组网;组网后,中心设备建立中心设备和***设备的蓝牙连接,并组建微微网,根据业务列表使任意两个设备无线连接。本发明能快速的完成智能终端的组网。

Description

基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及*** 技术领域
本发明涉及智能终端技术领域,尤其涉及的是一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***。
背景技术
随着电子设备的普及,越来越多的智能终端被人们广泛使用,如智能电视、无线音响、智能手机、平板、笔记本、电脑、无线路由器、无线相机、无线投影仪、智能灯具、智能窗户、智能窗帘、智能冰箱、智能热水器、智能打印机等。这些带有无线模块的智能终端通常会用于无线连接业务,比如智能电视和智能手机之间的WIFI Display(实现设备间高速传输视频)业务,智能手机与无线投影仪之间的视频放映业务,无线相机与无线路由器或电脑之间的照片传输备份业务,平板与无线音响之间的音乐播放业务,平板与智能冰箱或智能热水器的控制业务,智能手机与智能窗户或智能窗帘之间的遥控开闭业务等。当启动这些业务时,往往需要用户对多个设备之间进行设置与连接才能正常使用,对用户来说,使用不是很方便,并且很多用户并不知道如何进行设置,因此,给用户带来了极大的不便。
因此,现有技术还有待于改进和发展。
发明内容
本发明要解决的技术问题在于,提供一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***,旨在解决现有技术中存在的两个智能终端无线互连操作麻烦且不方便的问题。
本发明解决技术问题所采用的技术方案如下:
一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其包括以下步骤:
多个***设备以低功耗模式并利用广播数据包向周围以可连接非定向方式周期性动态广播各自对应的业务类型信息及业务地址信息;中心设备被动扫描并获取各***设备对应的蓝牙地址、所述业务类型信息和所述业务地址信息;所述业务类型信息为多个无线连接是否支持的业务类型信息,所述业务地址信息为多个无线连接对应的业务地址信息;
所述中心设备根据各***设备对应的所述蓝牙地址、所述业务类型信息和所述业务地址信息,生成对应的***设备业务列表,以完成所述中心设备和多个***设备的组网;以及
组网完成后,当所述中心设备主动触发业务或收到***设备的业务触发请求时,所述中心设备根据业务请求建立所述中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其包括以下步骤:
多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;所述业务类型信息为多个无线连接是否支持的业务类型信息,所述业务地址信息为多个无线连接对应的业务地址信息;
中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网;
组网完成后,中心设备根据业务请求建立中心设备和***设备的传统 蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中,所述多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息的步骤,具体包括:
多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
中心设备周期性扫描周围的***设备,扫描周期设置成与所有***设备的广播周期一致;
中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中,所述多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息的步骤具体包括:
多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和业务地址信息;
中心设备周期性扫描周围的***设备,设扫描周期为T,某***设备支持的业务种类数为x,则该***设备的广播周期为
Figure PCTCN2016078634-appb-000001
同时等待时间为
Figure PCTCN2016078634-appb-000002
其中[log2 x]表示大于等于log2x的最小整数;
中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中,所 述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接,组成对应的微微网;
中心设备以时分复用方式保持与第一***设备连接的同时,通过传统蓝牙向第二***设备发送连接请求信令,第二***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第二个***设备建立连接,将第二***设备加入到所述微微网中;
中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;
第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中,所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
当第一***设备主动向中心设备触发业务请求时,第一***设备通过传统蓝牙向中心设备发送连接请求信令,中心设备向第一***设备发送连接回复信令,中心设备和第一***设备建立连接;
第一***设备发送对应的业务类型信息至中心设备;
中心设备根据所述***设备业务列表中查找支持与所述第一***设备的业务类型信息相同业务类型信息的第二***设备;
中心设备通过传统蓝牙向第二***设备发送连接请求信令,第二***设备向中心设备发送连接回复信令,中心设备和第二***设备建立连接, 组成对应的微微网;
中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中,所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接;
中心设备向第一***设备发送业务类型信息、业务地址信息和主从模式信息;
第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中,所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
第一***设备触发业务请求,通过传统蓝牙向中心设备发送连接请求信令,中心设备通过传统蓝牙向第一***设备发送连接回复信令;中心设备与第一***设备建立连接;
第一***设备向中心设备发送业务类型信息、业务地址信息和主从模式信息;
第一***设备和中心设备根据所述业务类型信息、业务地址信息和主 从模式信息直接对应进行无线互连。
一种基于低功耗蓝牙和传统蓝牙的微微网组网互连***,其包括:
广播及扫描模块,用于通过多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;所述业务类型信息为多个无线连接是否支持的业务类型信息,所述业务地址信息为多个无线连接对应的业务地址信息;
组网模块,用于通过中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网;
无线连接模块,用于组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连***,其中,所述广播及扫描模块包括:
第一广播单元,用于通过多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
第一扫描单元,用于通过中心设备周期性扫描周围的***设备,扫描周期设置成与所有***设备的广播周期一致;
第一信息获取单元,用于通过中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连***,其中,所述广播及扫描模块包括:
第二广播单元,用于通过多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和 业务地址信息;
第二扫描单元,用于通过中心设备周期性扫描周围的***设备,设扫描周期为T,某***设备支持的业务种类数为x,则该***设备的广播周期为
Figure PCTCN2016078634-appb-000003
同时等待时间为
Figure PCTCN2016078634-appb-000004
其中[log2 x]表示大于等于log2x的最小整数;
第二信息获取单元,用于通过中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
本发明所提供的一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***,有效地解决了现有的两个智能终端之间的无线互连操作麻烦且不方便的问题,基于低功耗蓝牙微微网,通过多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的多个无线连接是否支持的业务类型信息及多个无线连接对应的业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网;组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接;通过组建Piconet微微网,使得中心设备和多个***设备能实现任意两个设备无线互连,整个过程中,用户操作简便,同时,设备在平时具有超低的待机功耗;根据智能终端的低功耗蓝牙功能,采用本发明提供的方法就能自动完成智能终端的组网工作,快速便捷;而当用户想要网络中的两个智能终端执行无线连接业务时,只需要通过智能终端的传统蓝牙功能,在任一智能终端上触发连接就可以完成,互连便利,给用户带来了极大的方便。
附图说明
图1为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法较佳实施例的流程图;
图2为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第一实施例的流程示意图;
图3为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第二实施例的流程示意图;
图4为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第三实施例的流程示意图;
图5为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第四实施例的流程示意图;
图6为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连***较佳实施例的结构框图。
具体实施方式
本发明提供一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***,为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
首先对低功耗蓝牙协议进行详细说明,具体如下。
与传统蓝牙相比,低功耗蓝牙(Bluetooth Low Energy,BLE)的优点是省功耗,同时传输的数据量也比较小,适用于智能终端之间的组网过程。BLE协议的开发主要在链路层(Link Layer,LL),通用访问协议层(Generic Access Profile,GAP)和通用属性协议层(Generic Attribute Profile,GATT),下面将分别作介绍。
根据蓝牙联盟发布的低功耗蓝牙协议,链路层定义了BLE信道的信令,广播信道的角色和状态。BLE信道的信令格式如表1所示,适用于广播信 道和数据信道。其中,引导码Preamble和接入地址Access Address对于BLE信道来说是固定的数据,信令PDU(Protocol Data Unit,协议数据单元)可以在BLE信道中携带信息,CRC(Cyclic Redundancy Check,循环冗余校验码)用作循环校验。
Figure PCTCN2016078634-appb-000005
表1
具体来说,广播信道的信令PDU由头Header和有效载荷Payload组成,如表2所示。
Figure PCTCN2016078634-appb-000006
表2
Header中的4比特PDU Type决定了广播信道的信令类型,如可连接非定向广播信令(ADV_IND),可连接定向广播信令(ADV_DIRECT_IND),不可连接非定向广播信令(ADV_NONCONN_IND),扫描请求信令(SCAN_REQ),扫描回复信令(SCAN_RSP),连接请求信令(CONNECT_REQ),可扫描非定向广播信令(ADV_SCAN_IND),具体如表3所示。表3为广播信道的信令类型。
PDU Type Packet Name
0000 ADV_IND
0001 ADV_DIRECT_IND
0010 ADV_NONCONN_IND
0011 SCAN_REQ
0100 SCAN_RSP
0101 CONNECT_REQ
0110 ADV_SCAN_IND
0111-1111 Reserved
表3
可连接非定向广播信令的Payload格式如表4所示。其中,AdvA表示 广播方的蓝牙地址,AdvData表示广播数据包,最多可携带31个字节的消息。
Figure PCTCN2016078634-appb-000007
表4
可连接非定向广播信令的广播数据包的格式如表5所示。其中,ADStructure表示消息段,一个广播数据包可容纳多个消息段;AD Type表示消息段的类型,如蓝牙名称,蓝牙制造商,UUID等;AD Data表示消息段的内容;Length(长度)的值表示Data的字节数。
Figure PCTCN2016078634-appb-000008
表5
而已经被蓝牙联盟定义的AD Type字段如表6所示,未被定义的就是保留字段。
0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08
0x09 0x0A 0x0D 0x0E 0x0F 0x10 0x11 0x12
0x14 0x1F 0x15 0x16 0x20 0x21 0x17 0x18
0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x3D 0xFF
表6
链路层在广播信道中定义了3种角色:非连接状态下的广播方(Advertiser),扫描方(Scanner)和发起方(Initiator)。链路层在广播信道中定义了3种状态:广播状态,扫描状态和发起状态。
广播状态包括:
1)可连接非定向广播事件(Connectable undirected event):广播方向周 围所有的扫描方广播ADV_IND信令,并声明自己处于可连接模式。广播方监听扫描方发来的SCAN_REQ信令,然后向扫描方发送SCAN_RSP信令。广播方也监听发起方发来的CONNECT_REQ信令;
2)可连接定向广播事件(Connectable directed event):广播方向周围特定的扫描方广播ADV_DIRECT_IND信令,并声明自己处于可连接模式。广播方只监听特定发起方发来的CONNECT_REQ信令;
3)不可连接非定向广播事件(Non-connectable undirected event):广播方向周围所有的扫描方广播ADV_NONCONN_IND信令,并声明自己处于不可连接模式。广播方不监听扫描方发来的信令;
4)可扫描非定向广播事件(Scannable undirected event):广播方向周围所有的扫描方广播ADV_SCAN_IND信令。广播方只监听扫描方发来的SCAN_REQ信令,然后向扫描方发送SCAN_RSP信令。
扫描状态包括:
1)被动扫描:处于被动扫描模式的扫描方只能监听广播方广播的信令,不能对外发送数据;
2)主动扫描:处于主动扫描模式的扫描方监听广播方广播的信令,只对广播ADV_IND信令和ADV_SCAN_IND信令的广播方发送SCAN_REQ信令,发送完毕后继续监听广播方发来的SCAN_RSP信令。
发起状态包括:
1)处于发起状态的发起方可以对广播ADV_IND信令和ADV_DIRECT_IND信令的广播方发送CONNECT_REQ信令。
广播信道3种状态对应的信令关系如表7所示。
Figure PCTCN2016078634-appb-000009
表7
GAP层定义了4种角色:广播角色(Broadcaster Role)、观察角色(Observer Role)、***角色(Peripheral Role)和中心角色(Central Role)。
广播角色:处于广播角色的设备以低功耗模式向周围广播,但不会响应其他设备发来的连接请求,即处于广播角色的设备处于不可连接模式。
观察角色:处于观察角色的设备可以扫描处于广播角色的设备,但不能发起连接请求,即处于观察角色的设备处于不可连接模式。
***角色:处于***角色的设备以低功耗模式向周围广播,响应其他设备发来的连接请求,即处于***角色的设备处于可连接模式。
中心角色:处于中心角色的设备可以扫描处于***角色的设备,可以发起连接请求,即处于中心角色的设备处于可连接模式。
LL层与GAP层的对应关系如表8所示。
Link Layer functionality Broadcaster Observer Peripheral Central
Advertising event types:        
Connectable undirected event E E M E
Connectable directed event E E O E
Non-connectable undirected event M E O E
Scannable undirected event O E O E
Scanning types:        
Passive scanning E M E O
Active scanning E O E O/E
表8
表8中,“E”表示不支持,“M”表示必须支持,“O”表示选择支持,“O/E”表示如果中心角色支持被动扫描,那么中心角色选择支持主动扫描,否则中心角色必须支持主动扫描。本发明中定义中心设备(Central Device)和***设备(Peripheral Device)两种物理设备类型。中心设备:处于网络的中心位置,同时具有低功耗蓝牙和传统蓝牙功能;***设备:处于网络的***位置,同时具有低功耗蓝牙和传统蓝牙功能。
当***设备处于***角色,在低功耗模式下,以可连接非定向方式向周围广播ADV_IND信令时,中心设备通过被动扫描可获得***设备的蓝牙地址和广播数据包,如表9所示。表9为GAP层的可连接非定向广播与 被动扫描机制。
Figure PCTCN2016078634-appb-000010
表9
下面概述一下传统蓝牙协议。
传统蓝牙的优点是传输数据量较大,数据传输速率也较快,适用于智能终端之间的互连过程。传统蓝牙协议的开发主要在逻辑链路控制与适配协议(Logical Link Control and Adaptation Protocol,L2CAP)和通用访问协议层(Generic Access Profile,GAP),下面将分别作介绍。
根据蓝牙联盟发布的传统蓝牙协议,逻辑链路控制与适配协议(Logical Link Control and Adaptation Protocol,L2CAP)定义了命令格式和数据格式。两个蓝牙设备在通信过程中需要交互一系列的命令,命令信道的通用信令格式如表10所示。
Figure PCTCN2016078634-appb-000011
表10
其中,Length表示Commands的字节长度;Channel ID固定为0x0001;Commands中的Code表示命令的类型,如连接请求(Connection request),连接回复(Connection response)。表11为命令代码含义,如表11所示;Commands中的Identifier用来匹配请求和回复;Commands中的Length表示Commands中的Data的字节长度;Commands中的Data表示命令可携带的信息。
Code Description
0x00 RESERVED
0x01 Commandreject
0x02 Connection request
0x03 Connection response
0x04 Configure request
0x05 Configure response
0x06 Disconnection request
0x07 Disconnection response
0x08 Echo request
0x09 Echo response
0x0A Information request
0x0B Information response
表11
连接请求的Commands格式如表12所示。其中,PSM表示协议/服务复用,分为两部分,第一部分固定由蓝牙联盟分配用作协议,第二部分由***动态分配用作服务,最少占2个字节长度;Source CID(源信道ID)表示发送连接请求的蓝牙设备的信道ID。
Figure PCTCN2016078634-appb-000012
表12
连接回复的Commands格式如表13所示。
Figure PCTCN2016078634-appb-000013
表13
其中,Destination CID(目的信道ID)表示发送连接回复的蓝牙设备的信道ID;Source CID(源信道ID)表示接收连接回复的蓝牙设备的信道ID,直接从连接请求命令的Source CID复制;Result表示连接请求信令的结果,例如连接成功(Connection successful)、待定(Connection pending)和拒绝(Connection refused)等,如表14所示。表14为连接请求信令的结果值。
Value Description
0x0000 Connection successful
0x0001 Connection pending
0x0002 Connection refused-PSM not supported
0x0003 Connection refused-security block
0x0004 Connection refused-no resources available
Other Reserved
表14
对于连接请求结果为待定的情况,用状态Status来进一步阐述结果为待定的原因,如表15所示。表15为Status值。
Value Description
0x0000 No further information available
0x0001 Authentication pending
0x0002 Authorization pending
Other Reserved
表15
两个蓝牙设备建立连接后,数据包发送格式如表16所示,表16为两个蓝牙设备的数据包发送格式。其中,Length表示Information payload的字节长度;Channel ID表示目的信道的ID,由***动态分配;Information payload表示数据包内容,长度可设置为0到65535字节。
Length Channel ID Information payload
m    
2 Bytes 2 Bytes m Bytes
表16
当两个或两个以上蓝牙设备连接成功,组成Piconet(微微网)时,主机发送的数据包格式如表17所示。其中,Length表示PSM和Information payload的字节总数;Channel ID固定为0x0002;PSM表示协议/服务复用,分为两部分,第一部分固定由蓝牙联盟分配用作协议,第二部分由***动态分配用作服务,最少占2个字节长度;Information payload表示数据包内容,长度可设置为0到65533字节。而Piconet中从机发送的数据包格式与表16相同。
Length Channel ID PSM Information payload
m+n 0002    
2 Bytes 2 Bytes m(≥2)Bytes n Bytes
表17
通用访问协议层定义了查询、可被发现、连接、可被连接和已连接等动作和状态。
查询与可被发现:蓝牙设备通过时分复用方式可以同时查询附近的蓝牙设备和被附近的蓝牙设备发现,即传统蓝牙设备可以同时担任查询设备(Inquiring device)和可被发现设备(Discoverable device)。查询设备通过查询获得可被发现设备的蓝牙地址。查询设备和可被发现设备可能已经与另外一个蓝牙设备处于连接状态,但仍保持查询和可被发现功能。
连接与可被连接:蓝牙设备通过时分复用方式可以同时连接附近的蓝牙设备和被附近的蓝牙设备连接,即蓝牙设备可以同时担任连接设备(Connecting device)和可被连接设备(Connectable device)。连接设备向可被连接设备发送连接请求(Connection Request)信令;可被连接设备向连接设备发送连接回复(Connection Response)信令,如表18所示。表18为可连接设备与可被连接设备之间的信令交互。连接成功后,发起连接的蓝牙设备在网络中成为主机(Master),被连接的蓝牙设备在网络中成为从机(Slave)。
Figure PCTCN2016078634-appb-000014
表18
连接设备和可被连接设备可能已经与另外一个蓝牙设备处于连接状态,但仍保持连接和可被连接功能。
已连接状态:当两个蓝牙设备成功连接后,可以互相发送字符串消息。两个蓝牙设备在保持连接的同时,具有查询、可被发现、连接、可被连接的功能。
关于网络拓扑结构,多个蓝牙设备之间可以通过连接组成一个网络。譬如微微网(Piconet),即以一蓝牙设备为主机,另一蓝牙设备为从机的Piconet,在Piconet中,主机可以同时向网络中的所有从机发送字符串消息,所有从机可以单独向主机发送字符串消息。
请参阅图1,图1为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法较佳实施例的流程图,如图所示,所述方法包括以下步骤:
步骤S100、多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的多个无线连接是否支持的业务类型信息及多个无线连接对应的业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;
步骤S200、中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网;
步骤S300、组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
下面结合具体的实施例对上述步骤进行详细的描述。
在步骤S100中,多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的多个无线连接是否支持的业务类型信息及多个无线连接对应的业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息。具体来说,***设备和中心设备具体是指各种智能终端,如智能电视、无线音响、智能手机、平板、笔记本、电脑、无线路由器、无线相机、无线投影仪、智能灯具、智能冰箱、智能热水器及智能打印机等,这些智能终端一般都具备蓝牙功能。
具体来说,***设备以低功耗模式向周围以“可连接非定向”方式广播自己支持的无线连接业务类型和业务地址,如表19所示(中心设备和外 围设备都有该业务表)。
业务类型 是否支持 业务地址
0:WiFi 11111111 Add 0
1:NFC 00000000 Null
... ... ...
255:GNSS 11111111 Add 255
表19
中心设备被动扫描周围的***设备,得到所有***设备的蓝牙地址、支持的业务类型和业务地址,组成***设备业务列表,如表20所示,组网完成。
Figure PCTCN2016078634-appb-000015
表20
在实际应用时,可连接非定向广播信令修改点具体为:***设备在低功耗模式下,利用广播数据包向周围以“可连接非定向”方式周期性动态广播自己支持的业务类型和业务地址,自定义的广播数据包如表21所示。
Figure PCTCN2016078634-appb-000016
表21
其中,Length的值表示AD Type,Data中的Service Type,Service Support和Service Address的字节总数;AD Type的值为“22”,该值未被蓝牙联盟定义过,防止对其他BLE设备产生干扰,已经被蓝牙联盟定义的AD Type 字段如表6所示;Data中的Service Type表示业务类型,最多可表示256种业务;Service Support表示***设备是否支持该业务,用“11111111”表示支持,用“00000000”表示不支持;Service Address表示支持的业务地址,如果不支持该业务,则Service Address的值为“00000000”;剩下的广播数据包字节补零。
优选地,在实际应用时,周期性广播模式有两种可选。也就是说所述步骤S100有两种实现方式,其中,第一种实现方式,所述步骤S100具体包括:
S111、多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
S112、中心设备周期性扫描周围的***设备,扫描周期设置成与所有***设备的广播周期一致;
S113、中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
具体来说,***设备周期性广播全部256种业务类型和业务地址(不支持的业务类型的业务地址用“00000000”表示),中心设备周期性扫描周围的***设备,扫描周期(Scanning period)设置成与所有***设备的广播周期(Advertising Period)一致,经过一轮256个扫描周期后,中心设备可以获得所有***设备蓝牙地址,支持的业务类型和业务地址,如表20所示,组网完成。
第二种实现方式,所述步骤S100具体包括:
S121、多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和业务地址信息;
S122、中心设备周期性扫描周围的***设备,设扫描周期为T,某***设备支持的业务种类数为x,则该***设备的广播周期为
Figure PCTCN2016078634-appb-000017
同时等 待时间为
Figure PCTCN2016078634-appb-000018
其中[log2 x]表示大于等于log2x的最小整数;
S123、中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
具体来说,***设备周期性广播支持的业务类型和业务地址,不广播不支持的业务类型和业务地址,中心设备周期性扫描周围的***设备,举例来说,绿色字体的***设备只支持1种业务类型,每隔256个扫描周期广播,红色字体的***设备支持256种业务类型,每隔1个扫描周期广播。
一般情况下,设扫描周期为T,***设备支持的业务种类为x,则***设备的广播周期为
Figure PCTCN2016078634-appb-000019
同时等待时间为
Figure PCTCN2016078634-appb-000020
其中[log2 x]表示大于等于log2x的最小整数。也就是说***设备的广播周期和等待时间根据支持的业务种类不同而不同,如表22所示。表22为***设备不同业务种类的广播周期与等待时间对应关系。
支持的业务种类 广播周期 等待时间
1 256T 0
2 128T 0
3 64T 64T
... ... ...
256 1T 0
表22
中心设备经过一轮256个扫描周期后,可以获得所有***设备蓝牙地址,支持的业务类型和业务地址的列表,如表20所示,组网完成。上述第一种实现方式和第二种实现方式各有优点,第一种实现方式统一设置广播方,较易实现;第二种实现方式根据广播方支持的业务种类,设置不同的广播周期,节省功耗。
在步骤S200中,中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网。
在步骤S300中,组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。具体来说,当中心设备和***设备组网完成后,中心设备得到***设备业务列表(表20),中心设备和***设备在保持低功耗蓝牙功能的同时,也保持传统蓝牙的功能,并且依靠传统蓝牙完成互连过程。
只有当中心设备主动触发业务或收到***设备的业务触发请求时,中心设备和***设备才建立传统蓝牙连接,组成Piconet网络,通知无线连接的业务类型、业务地址和主从模式。互连过程可分为4个应用场景,以下将分别作介绍。
本发明基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,任意两个设备便可通过对应的无线连接的业务类型、业务地址和主从模式,实现无线互联,譬如WIFI或NFC(Near Field Communication,近场通信),从而进行无线连接业务,互连便利。假如甲设备想要与乙设备WIFI连接,只需将两设备通过中心设备组建对应的微微网,然后甲设备和乙设备通过传统蓝牙发送各自的蓝牙地址,根据WIFI业务类型和主从模式及对方的WIFI连接对应的WIFI业务地址,便可实现对应的WIFI连接。若甲设备和乙设备均为***设备,或者,也可以其中一个设备为中心设备。这样,给用户带来了大大的操作方便。操作简便、易于控制管理与触发智能终端之间的无线连接业务,同时智能终端要有较低的待机功耗。
在实际应用时,任意两个设备的互连可分为4个应用场景。以下分别进行详细说明如下。
请参阅图2,图2为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第一实施例的流程示意图。组网完成后,中心设备主动触发业务请求,分别向两个***设备发送业务类型和业务地址,两个***设备收到消息后实现互连。其中,***设备1即代表下文的第一***设备,外 围设备2代表下文的第二***设备。
进一步地,所述步骤S300具体包括:
S311、中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接,组成对应的微微网;
S312、中心设备以时分复用方式保持与第一***设备连接的同时,通过传统蓝牙向第二***设备发送连接请求信令,第二***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第二***设备建立连接,将第二***设备加入到所述微微网中;
S313、中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;
S314、第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
具体来说,组网完成后,中心设备和***设备保持传统蓝牙的功能。当中心设备主动触发业务时,先向第一***设备(***设备1)发送“连接请求”信令,然后该***设备向中心设备发送“连接回复”信令。中心设备和第一***设备建立连接,组成Piconet,中心设备成为主机,***设备成为从机;然后,中心设备以时分复用方式保持与第一***设备连接的同时,向第二***设备(***设备2)发送“连接请求”信令,同样地,第二***设备向中心设备发送“连接回复”信令,中心设备与第二***设备建立连接。关于“连接请求”信令和“连接回复”信令,可参见传统蓝牙部分的描述。
在Piconet模式下,中心设备成为主机,两个***设备成为从机,中心设备可以同时向两个***设备发送字符串消息,包括业务类型、业务对象地址和主从模式数据。
在传统蓝牙L2CAP层中,将表17所示的Piconet主机发送数据包中的 Information Payload自定义成如表23所示。表23为自定义的Piconet数据包中的Information Payload格式。
Figure PCTCN2016078634-appb-000021
表23
其中,长度(Length)的值表示业务类型(Type),业务对象地址(Object Address)和模式(Mode)的字节总数;模式用来选择执行无线连接业务的主机和从机,“11111111”表示主机,“00000000”表示从机。两个***设备收到中心设备发来的消息后,根据业务类型、业务对象地址和主从模式进行互连。
这样,中心设备通过组建相应的微微网,向微微网中的第一***设备和第二***设备发送业务类型信息和主从模式信息,将第一***设备对应的业务地址信息发送给第二***设备;将第二***设备对应的业务地址信息发送给第一***设备;使得第一***设备和第二***设备能够根据业务类型、业务对象地址和主从模式进行无线互连。
请参阅图3,图3为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第二实施例的流程示意图。***设备主动向中心设备触发业务请求,发送业务类型,中心设备收到消息后根据业务类型找到***设备业务列表中具有相同业务类型的另外一个***设备,然后中心设备分别向这两个***设备发送业务类型和业务地址,使得两个***设备收到消息后实现互连。其中,***设备1即代表下文的第一***设备,***设备2代表下文的第二***设备。
进一步地,所述步骤S300具体包括:
S321、当第一***设备主动向中心设备触发业务请求时,第一***设备通过传统蓝牙向中心设备发送连接请求信令,中心设备向第一***设备 发送连接回复信令,中心设备和第一***设备建立连接;
S322、第一***设备发送对应的业务类型信息至中心设备;
S322、中心设备根据所述***设备业务列表中查找支持与所述第一***设备的业务类型信息相同业务类型信息的第二***设备;
S323、中心设备通过传统蓝牙向第二***设备发送连接请求信令,第二***设备向中心设备发送连接回复信令,中心设备和第二***设备建立连接,组成对应的微微网;
S324、中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
组网完成后,中心设备和***设备保持传统蓝牙的功能。当***设备有业务触发请求时,先向中心设备发送“连接请求”信令,中心设备向该***设备发送“连接回复”信令。当中心设备和***设备连接成功后,***设备发送业务类型字符串消息,将表16所示的Piconet从机发送数据包中的Information Payload自定义成如表23所示,其中,Object Address和Mode都无需设置,用“00000000”表示。
当中心设备收到上述消息后,根据业务类型找到***设备业务列表中支持相同业务类型的另外一个***设备(如存在多个支持相同业务类型的***设备,那么选择列表中符合条件的第一个***设备),然后向该***设备发送“连接请求”信令,***设备向中心设备发送“连接回复”信令。
至此,中心设备和两个***设备组成Piconet,其中,中心设备成为主机,两个***设备成为从机,中心设备可以同时向两个***设备发送字符串消息,包括业务类型、业务对象地址和主从模式数据。
中心设备向两个***设备发送如表23所示的字符串消息,两个***设备收到中心设备发来的消息后,根据业务类型、业务对象地址和主从模式 进行互连。两个***设备收到中心设备发来的信令后,根据业务类型、业务对象地址和主从模式进行无线互连,进行无线连接业务,譬如WIFI或NFC。
请参阅图4,图4为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法第三实施例的流程示意图。中心设备主动触发业务请求,向***设备发送业务类型和业务地址,***设备收到消息后,实现中心设备和***设备的互连。进一步地,所述步骤S300具体包括:
S331、中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接;
S332、中心设备向第一***设备发送业务类型信息、业务地址信息和主从模式信息;
S333、第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
具体来说,组网完成后,中心设备和第一***设备保持传统蓝牙的功能。当中心设备有业务触发请求时,向指定的***设备发送“连接请求”信令,该***设备向中心设备发送“连接回复”信令。当中心设备和***设备连接成功后,中心设备向***设备发送字符串消息,包括业务类型、业务对象地址和主从模式数据,如表23所示,其中,将Object Address的内容改为中心设备的业务地址。与此同时,中心设备也知道业务类型(与发送的一致)、业务对象地址(即***设备的业务地址)和主从模式(与发送的相反)数据。***设备收到中心设备发来的消息后,中心设备和***设备根据业务类型、业务对象地址和主从模式进行互连。这样,中心设备主动触发业务,向第一***设备发送业务类型和业务地址,第一***设备收到消息后,实现中心设备与第一***设备的互连。
请参阅图5,图5为本发明提供的基于低功耗蓝牙和传统蓝牙的微微网 组网互连方法第四实施例的流程示意图。***设备主动触发业务请求,向中心设备发送业务类型和地址,中心设备收到消息后,实现中心设备和***设备的互连。进一步地,所述步骤S300具体包括:
S341、第一***设备触发业务请求,通过传统蓝牙向中心设备发送连接请求信令,中心设备通过传统蓝牙向第一***设备发送连接回复信令;中心设备与第一***设备建立连接;
S342、第一***设备向中心设备发送业务类型信息、业务地址信息和主从模式信息;
S343、第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
具体来说,组网完成后,中心设备和第一***设备保持传统蓝牙的功能。当***设备有业务触发请求时,向中心设备发送“连接请求”信令,中心设备向***设备发送“连接回复”信令,使得中心设备和***设备建立连接。连接成功后,***设备向中心设备发送字符串消息,包括业务类型、业务对象地址和主从模式数据,如表23所示,其中,将Object Address的内容改为***设备的业务地址。与此同时,***设备也知道业务类型(与发送的一致)、业务对象地址(即中心设备的业务地址)和主从模式(与发送的相反)数据。中心设备收到***设备发来的信令后,中心设备和第一***设备根据业务类型、业务对象地址和主从模式进行互连。
本发明基于低功耗蓝牙和传统蓝牙作为无线通信方式。在低功耗蓝牙方式下,***设备通过动态广播信令向中心设备发送***设备蓝牙地址,支持的无线连接业务类型和业务地址,中心设备通过扫描得到一个包含***设备蓝牙地址、支持的业务类型和业务地址的列表,自动组网完成。然后在传统蓝牙方式下,中心设备主动触发业务请求,或者接收***设备的业务触发请求后,中心设备和***设备组建Piconet网络,通知无线连接的业务类型、业务地址和主从模式,在4种不同应用场景下实现互连并开启 无线连接业务,互连便利。整个过程中,用户操作简便,同时,智能终端平时具有超低的待机功耗,互连过程持续时间较短也不会造成较大的功耗,通过组建Piconet使得中心设备和***设备能实现任意两设备互连,操作简便。
基于上述低功耗蓝牙和传统蓝牙的微微网组网互连方法,本发明实施例还提供了一种基于低功耗蓝牙和传统蓝牙的微微网组网互连***,如图6所示,所述***包括:
广播及扫描模块10,用于通过多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的多个无线连接是否支持的业务类型信息及多个无线连接对应的业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;具体如步骤S100所述;
组网模块20,用于通过中心设备获取各***设备对应的蓝牙地址和业务类型信息,并向各***设备发送连接请求,建立中心设备和多个***设备的连接,具体如步骤S200所述;
无线连接模块30,用于组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接,具体如步骤S300所述。
进一步地,所述广播及扫描模块10包括:
第一广播单元,用于通过多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
第一扫描单元,用于通过中心设备周期性扫描周围的***设备,扫描周期设置成与所有***设备的广播周期一致;
第一信息获取单元,用于通过中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
进一步地,所述广播及扫描模块10包括:
第二广播单元,用于通过多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和业务地址信息;
第二扫描单元,用于通过中心设备周期性扫描周围的***设备,设扫描周期为T,某***设备支持的业务种类数为x,则该***设备的广播周期为
Figure PCTCN2016078634-appb-000022
同时等待时间为
Figure PCTCN2016078634-appb-000023
其中[log2 x]表示大于等于log2x的最小整数;
第二信息获取单元,用于通过中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
综上所述,本发明提供的一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***,通过多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的多个无线连接是否支持的业务类型信息及多个无线连接对应的业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网;组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接;根据智能终端的低功耗蓝牙自动完成智能终端的组网工作,快速便捷;而当用户想要网络中的两个智能终端执行无线连接业务时,只需要通过智能终端的传统蓝牙功能,在任一智能终端上触发连接就可以完成,互连便利,给用户带来了大大的方便。
本发明实施例提供的基于低功耗蓝牙和传统蓝牙的微微网组网互连***形成于一智能终端,所述智能终端譬如为智能电视、无线音响、智能手机、平板、笔记本、电脑、无线路由器、无线相机、无线投影仪、智能灯 具、智能窗户、智能窗帘、智能冰箱、智能热水器、智能打印机等,所述基于低功耗蓝牙和传统蓝牙的微微网组网互连***与上文实施例中的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法属于同一构思,在所述基于低功耗蓝牙和传统蓝牙的微微网组网互连***上可以运行所述基于低功耗蓝牙和传统蓝牙的微微网组网互连方法实施例中提供的任一方法,其具体实现过程详见所述基于低功耗蓝牙和传统蓝牙的微微网组网互连方法实施例,此处不再赘述。
需要说明的是,对本发明实施例的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法而言,本领域普通技术人员可以理解实现本发明实施例的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在智能终端的存储器中,并被该智能终端内的至少一个处理器执行,在执行过程中可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
对本发明实施例的基于低功耗蓝牙和传统蓝牙的微微网组网互连***而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (17)

  1. 一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其包括以下步骤:
    多个***设备以低功耗模式并利用广播数据包向周围以可连接非定向方式周期性动态广播各自对应的业务类型信息及业务地址信息;中心设备被动扫描并获取各***设备对应的蓝牙地址、所述业务类型信息和所述业务地址信息;所述业务类型信息为多个无线连接是否支持的业务类型信息,所述业务地址信息为多个无线连接对应的业务地址信息;
    所述中心设备根据各***设备对应的所述蓝牙地址、所述业务类型信息和所述业务地址信息,生成对应的***设备业务列表,以完成所述中心设备和多个***设备的组网;以及
    组网完成后,当所述中心设备主动触发业务或收到***设备的业务触发请求时,所述中心设备根据业务请求建立所述中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
  2. 根据权利要求1所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述多个***设备以低功耗模式并利用广播数据包向周围以可连接非定向方式周期性动态广播各自对应的业务类型信息及业务地址信息;中心设备被动扫描并获取各***设备对应的蓝牙地址、所述业务类型信息和所述业务地址信息的步骤,具体包括:
    多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
    所述中心设备周期性扫描周围的***设备,扫描周期设置成与所有***设备的广播周期一致;以及
    所述中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
  3. 根据权利要求1所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述多个***设备以低功耗模式并利用广播数据包向周围以可连接非定向方式周期性动态广播各自对应的业务类型信息及业务地址信息;中心设备被动扫描并获取各***设备对应的蓝牙地址、所述业务类型信息和所述业务地址信息的步骤,具体包括:
    多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和业务地址信息;
    所述中心设备周期性扫描周围的***设备,设扫描周期为T,某***设备支持的业务种类数为x,则该***设备的广播周期为
    Figure PCTCN2016078634-appb-100001
    同时等待时间为
    Figure PCTCN2016078634-appb-100002
    其中[log2x]表示大于等于log2x的最小整数;以及
    所述中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
  4. 根据权利要求1所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,当所述中心设备主动触发业务或收到***设备的业务触发请求时,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
    所述中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接,组成对应的微微网;
    所述中心设备以时分复用方式保持与第一***设备连接的同时,通过传统蓝牙向第二***设备发送连接请求信令,第二***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第二***设备建立连接,将第二***设备加入到所述微微网中;
    所述中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;以及
    第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  5. 根据权利要求1所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,当所述中心设备主动触发业务或收到***设备的业务触发请求时,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
    当第一***设备主动向中心设备触发业务请求时,第一***设备通过传统蓝牙向中心设备发送连接请求信令,中心设备向第一***设备发送连接回复信令,中心设备和第一***设备建立连接;
    第一***设备发送对应的业务类型信息至中心设备;
    所述中心设备根据所述***设备业务列表中查找支持与所述第一***设备的业务类型信息相同业务类型信息的第二***设备;
    所述中心设备通过传统蓝牙向第二***设备发送连接请求信令,第二***设备向中心设备发送连接回复信令,中心设备和第二***设备建立连接,组成对应的微微网;以及
    所述中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  6. 根据权利要求1所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,当所述中心设备主动触发业务或收到***设备的业务触发请求时,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任 意两个设备无线连接的步骤,具体包括:
    所述中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接;
    所述中心设备向第一***设备发送业务类型信息、业务地址信息和主从模式信息;
    第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  7. 根据权利要求1所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,当所述中心设备主动触发业务或收到***设备的业务触发请求时,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
    第一***设备触发业务请求,通过传统蓝牙向中心设备发送连接请求信令,中心设备通过传统蓝牙向第一***设备发送连接回复信令;中心设备与第一***设备建立连接;
    第一***设备向中心设备发送业务类型信息、业务地址信息和主从模式信息;以及
    第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  8. 一种基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其包括以下步骤:
    多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、所述业务类型信息和所述业务地址信息;所述业务类型信息为多个无线连接是否支持的业务类型信息,所述业务地址信息为多个无线连 接对应的业务地址信息;
    所述中心设备根据各***设备对应的所述蓝牙地址、所述业务类型信息和所述业务地址信息,生成对应的***设备业务列表,以完成所述中心设备和多个***设备的组网;以及
    组网完成后,所述中心设备根据业务请求建立所述中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
  9. 根据权利要求8所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息的步骤,具体包括:
    多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
    所述中心设备周期性扫描周围的***设备,扫描周期设置成与所有***设备的广播周期一致;以及
    所述中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
  10. 根据权利要求8所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息的步骤,具体包括:
    多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和业务地址信息;
    所述中心设备周期性扫描周围的***设备,设扫描周期为T,某***设 备支持的业务种类数为x,则该***设备的广播周期为
    Figure PCTCN2016078634-appb-100003
    同时等待时间为
    Figure PCTCN2016078634-appb-100004
    其中[log2x]表示大于等于log2x的最小整数;以及
    所述中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
  11. 根据权利要求8所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
    中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接,组成对应的微微网;
    所述中心设备以时分复用方式保持与第一***设备连接的同时,通过传统蓝牙向第二***设备发送连接请求信令,第二***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第二***设备建立连接,将第二***设备加入到所述微微网中;
    所述中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;以及
    第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  12. 根据权利要求8所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
    当第一***设备主动向中心设备触发业务请求时,第一***设备通过 传统蓝牙向中心设备发送连接请求信令,中心设备向第一***设备发送连接回复信令,中心设备和第一***设备建立连接;
    第一***设备发送对应的业务类型信息至中心设备;
    所述中心设备根据所述***设备业务列表中查找支持与所述第一***设备的业务类型信息相同业务类型信息的第二***设备;
    所述中心设备通过传统蓝牙向第二***设备发送连接请求信令,第二***设备向中心设备发送连接回复信令,中心设备和第二***设备建立连接,组成对应的微微网;以及
    所述中心设备通过所述微微网向第一***设备和第二***设备发送业务类型信息、业务地址信息和主从模式信息;第一***设备和第二***设备根据所述中心设备发送的业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  13. 根据权利要求8所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接的步骤,具体包括:
    所述中心设备触发业务请求,通过传统蓝牙向第一***设备发送连接请求信令,第一***设备通过传统蓝牙向中心设备发送连接回复信令;中心设备与第一***设备建立连接;
    所述中心设备向第一***设备发送业务类型信息、业务地址信息和主从模式信息;
    第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  14. 根据权利要求8所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连方法,其中所述组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务 列表使任意两个设备无线连接的步骤,具体包括:
    第一***设备触发业务请求,通过传统蓝牙向中心设备发送连接请求信令,中心设备通过传统蓝牙向第一***设备发送连接回复信令;中心设备与第一***设备建立连接;
    第一***设备向中心设备发送业务类型信息、业务地址信息和主从模式信息;以及
    第一***设备和中心设备根据所述业务类型信息、业务地址信息和主从模式信息直接对应进行无线互连。
  15. 一种基于低功耗蓝牙和传统蓝牙的微微网组网互连***,其包括:
    广播及扫描模块,用于通过多个***设备以低功耗模式向周围以可连接非定向方式广播各自对应的业务类型信息及业务地址信息;中心设备扫描并获取各***设备对应的蓝牙地址、业务类型信息和业务地址信息;所述业务类型信息为多个无线连接是否支持的业务类型信息,所述业务地址信息为多个无线连接对应的业务地址信息;
    组网模块,用于通过中心设备根据各***设备对应的蓝牙地址、业务类型信息和业务地址信息,生成对应的***设备业务列表,以完成中心设备和多个***设备的组网;
    无线连接模块,用于组网完成后,中心设备根据业务请求建立中心设备和***设备的传统蓝牙连接,并组建对应的微微网,根据所述***设备业务列表使任意两个设备无线连接。
  16. 根据权利要求15所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连***,其中所述广播及扫描模块包括:
    第一广播单元,用于通过多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其全部的业务类型信息和业务地址信息;
    第一扫描单元,用于通过中心设备周期性扫描周围的***设备,扫描 周期设置成与所有***设备的广播周期一致;
    第一信息获取单元,用于通过中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
  17. 根据权利要求15所述的基于低功耗蓝牙和传统蓝牙的微微网组网互连***,其中所述广播及扫描模块包括:
    第二广播单元,用于通过多个***设备在低功耗模式下,利用广播数据包向周围以可连接非定向方式周期性动态广播其支持的业务类型信息和业务地址信息;
    第二扫描单元,用于通过中心设备周期性扫描周围的***设备,设扫描周期为T,某***设备支持的业务种类数为x,则该***设备的广播周期为
    Figure PCTCN2016078634-appb-100005
    同时等待时间为
    Figure PCTCN2016078634-appb-100006
    其中[log2x]表示大于等于log2x的最小整数;
    第二信息获取单元,用于通过中心设备经过一轮扫描后,获得所有***设备各自对应蓝牙地址、支持的业务类型信息和业务地址信息。
PCT/CN2016/078634 2015-07-01 2016-04-07 基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及*** WO2017000619A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/309,446 US9924304B2 (en) 2015-07-01 2016-04-07 Interconnection method and system of networking of piconet based on bluetooth low energy and conventional bluetooth

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510376505.2 2015-07-01
CN201510376505.2A CN105050033A (zh) 2015-07-01 2015-07-01 基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***

Publications (1)

Publication Number Publication Date
WO2017000619A1 true WO2017000619A1 (zh) 2017-01-05

Family

ID=54456137

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078634 WO2017000619A1 (zh) 2015-07-01 2016-04-07 基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***

Country Status (3)

Country Link
US (1) US9924304B2 (zh)
CN (1) CN105050033A (zh)
WO (1) WO2017000619A1 (zh)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170094696A1 (en) * 2015-09-30 2017-03-30 Misfit, Inc. Methods and apparatuses for simulataneously exchanging messages between a low-energy radio device and multiple central devices
WO2017193385A1 (zh) * 2016-05-13 2017-11-16 华为技术有限公司 无线连接建立方法及设备
EP3873004B1 (en) * 2016-06-27 2022-09-14 Huawei Technologies Co., Ltd. Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN106169236B (zh) * 2016-08-30 2022-10-21 上海酷一信息科技有限公司 一种基于低功耗蓝牙中心网络拓扑的电动车无线中控***
CN110460985B (zh) * 2017-03-23 2022-09-16 展讯通信(上海)有限公司 蓝牙从设备及业务配置方法
CN107277754B (zh) * 2017-07-12 2020-02-28 深圳市冠旭电子股份有限公司 一种蓝牙连接的方法及蓝牙***设备
WO2019039632A1 (ko) * 2017-08-25 2019-02-28 라인 가부시키가이샤 사용자 단말들 간을 그룹으로서 연결하고, 그룹과 연관된 콘텐츠를 포함하는 서비스를 제공하는 방법 및 장치
JP6970578B2 (ja) * 2017-10-02 2021-11-24 キヤノン株式会社 通信装置およびその制御方法、プログラム
MX2020007522A (es) * 2018-01-19 2020-09-09 Ericsson Telefon Ab L M Metodo y dispositivo para compartir una conexion establecida entre un dispositivo primario y uno de una pluralidad de dispositivos secundarios en una red.
CN108551670B (zh) 2018-03-30 2021-06-25 深圳市冠旭电子股份有限公司 一种蓝牙连接方法、装置及智能终端
US10979962B2 (en) 2018-10-02 2021-04-13 Carrier Corporation Wireless system configuration of master zone devices based on signal strength analysis
CN109240035A (zh) * 2018-10-09 2019-01-18 珠海市时间风暴传媒科技有限公司 一种无线播放全息投影的方法及***
KR102652380B1 (ko) 2019-03-05 2024-03-29 삼성전자주식회사 블루투스 네트워크 환경에서 응답 메시지를 전송하기 위한 전자 장치 및 그에 관한 방법
KR102632299B1 (ko) * 2019-03-05 2024-02-02 삼성전자주식회사 블루투스 네트워크 환경에서 응답 메시지를 전송하기 위한 전자 장치 및 그에 관한 방법
CN111436039B (zh) * 2019-10-23 2023-05-09 珠海市杰理科技股份有限公司 蓝牙回连方法及***、蓝牙主、从设备回连方法及蓝牙主、从设备
CN112752226B (zh) * 2019-10-30 2022-06-24 惠州迪芬尼声学科技股份有限公司 蓝牙低功耗网络组构的方法及***
CN112825572A (zh) * 2019-11-20 2021-05-21 联发科技(新加坡)私人有限公司 蓝牙查询/寻呼的方法及通信设备
CN113518394A (zh) * 2020-04-09 2021-10-19 维沃移动通信有限公司 一种业务处理方法、终端及网络侧设备
CN111556478B (zh) * 2020-04-30 2023-04-07 杭州涂鸦信息技术有限公司 一种蓝牙设备
CN112333678B (zh) * 2020-09-09 2023-10-13 深圳Tcl新技术有限公司 基于蓝牙的数据传输方法及智能***、存储介质
CN112969146B (zh) * 2021-02-20 2022-05-20 上海吉盛网络技术有限公司 一种基于蓝牙广播在电梯用梯场景下的高效通信方法
WO2023115554A1 (zh) * 2021-12-24 2023-06-29 杭州所思互连科技有限公司 基于蓝牙ble的远程安全组网装置、方法、计算机设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635713A (zh) * 2003-12-26 2005-07-06 华为技术有限公司 蓝牙网络结构及蓝牙终端在不同蓝牙接入点切换的方法
US8606184B1 (en) * 2009-12-08 2013-12-10 Qualcomm Incorporated Coexistence message processing mechanism for wireless devices
CN103684938A (zh) * 2014-01-26 2014-03-26 华中科技大学 一种工业蓝牙网络***及组网方法
CN104469660A (zh) * 2014-11-20 2015-03-25 青岛歌尔声学科技有限公司 基于蓝牙的组网方法
CN104519493A (zh) * 2014-12-04 2015-04-15 广东省自动化研究所 一种多个蓝牙设备组网的方法
CN104539323A (zh) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 一种蓝牙低功耗组网互连方法及***
CN104717603A (zh) * 2014-12-25 2015-06-17 惠州Tcl移动通信有限公司 一种蓝牙低功耗组网并支持便捷互联的方法及***

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7240831B2 (en) * 2004-01-21 2007-07-10 The Code Corporation Systems and methods for establishing communication between an identification tag reader and a computing device
US8116223B2 (en) * 2006-11-09 2012-02-14 Ivt Technology Inc. System and method for supporting automatic establishing and disconnecting several wireless connections
US9686811B2 (en) * 2011-10-27 2017-06-20 Nokia Technologies Oy Method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
US20150317626A1 (en) * 2014-04-30 2015-11-05 Intuit Inc. Secure proximity exchange of payment information between mobile wallet and point-of-sale
CN104539325B (zh) * 2014-12-25 2017-05-10 惠州Tcl移动通信有限公司 一种基于低功耗蓝牙微微网的组网互连方法及***

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635713A (zh) * 2003-12-26 2005-07-06 华为技术有限公司 蓝牙网络结构及蓝牙终端在不同蓝牙接入点切换的方法
US8606184B1 (en) * 2009-12-08 2013-12-10 Qualcomm Incorporated Coexistence message processing mechanism for wireless devices
CN103684938A (zh) * 2014-01-26 2014-03-26 华中科技大学 一种工业蓝牙网络***及组网方法
CN104469660A (zh) * 2014-11-20 2015-03-25 青岛歌尔声学科技有限公司 基于蓝牙的组网方法
CN104519493A (zh) * 2014-12-04 2015-04-15 广东省自动化研究所 一种多个蓝牙设备组网的方法
CN104539323A (zh) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 一种蓝牙低功耗组网互连方法及***
CN104717603A (zh) * 2014-12-25 2015-06-17 惠州Tcl移动通信有限公司 一种蓝牙低功耗组网并支持便捷互联的方法及***

Also Published As

Publication number Publication date
US20170208424A1 (en) 2017-07-20
CN105050033A (zh) 2015-11-11
US9924304B2 (en) 2018-03-20

Similar Documents

Publication Publication Date Title
WO2017000619A1 (zh) 基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及***
US10034239B2 (en) Method and apparatus for forming connection between devices using bluetooth low energy technology
US10681591B2 (en) Method and apparatus for controlling electronic device in wireless communication system supporting Bluetooth communication
US10172169B2 (en) Method and device for controlling device by using bluetooth technology
US10917920B2 (en) Method and apparatus for connecting alternative communication means using bluetooth low energy (LE)
US9930240B2 (en) Method and apparatus for controlling a camera by using Bluetooth communication in a wireless communication system
US20170208639A1 (en) Method and apparatus for controlling a device using bluetooth technology
US9794323B2 (en) Method and apparatus for performing object transfer service using bluetooth low energy in wireless communication system
KR102208438B1 (ko) 근접 서비스 데이터 송신 방법 및 그 전자 장치
JP6285549B2 (ja) コンテキスト認識近接サービス
WO2017092310A1 (zh) 基于蓝牙的可穿戴设备与移动终端自动连接的方法及***
US10194478B2 (en) Method and apparatus for performing wireless docking service
US20190215673A1 (en) Method for controlling device by using bluetooth technology, and apparatus
US10873854B2 (en) Method and apparatus for establishing connection of devices
US10142767B2 (en) Method and apparatus for transmitting data using Bluetooth low energy in wireless communication system
WO2016155286A1 (zh) 一种基于蓝牙的多设备智能互连方法及***
US10028324B2 (en) Method and device for controlling device by using bluetooth low energy (LE) technology
US10349253B2 (en) Method for transmitting and receiving data, and device therefor
US20170215113A1 (en) Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
WO2017107470A1 (zh) 建立无线连接的方法及装置
US9351131B2 (en) Method and apparatus for generating communication group by dynamically determining a group owner
US10827391B2 (en) Method and device for connecting substitute communication means by using bluetooth low energy (LE) technique
US20150172903A1 (en) Device and service discovery method, and device middleware
US20220286731A1 (en) Multimedia apparatus and cast method
US11367449B2 (en) Method and apparatus for calling voice recognition service by using Bluetooth low energy technology

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 15309446

Country of ref document: US

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16816984

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16816984

Country of ref document: EP

Kind code of ref document: A1