WO2019144758A1 - 通信方法及装置和电子设备 - Google Patents

通信方法及装置和电子设备 Download PDF

Info

Publication number
WO2019144758A1
WO2019144758A1 PCT/CN2018/124410 CN2018124410W WO2019144758A1 WO 2019144758 A1 WO2019144758 A1 WO 2019144758A1 CN 2018124410 W CN2018124410 W CN 2018124410W WO 2019144758 A1 WO2019144758 A1 WO 2019144758A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast signal
sound wave
bluetooth
wave broadcast
communication
Prior art date
Application number
PCT/CN2018/124410
Other languages
English (en)
French (fr)
Inventor
孙健康
吴军
张鸿
覃瑶
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019144758A1 publication Critical patent/WO2019144758A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • 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
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the embodiments of the present disclosure relate to the field of communications technologies, and in particular, to a communication method and apparatus, and an electronic device.
  • wireless communication is indispensable in all aspects of people's production and life.
  • wireless communication especially short-range wireless communication, has many limitations, resulting in inefficient data communication for wireless communication.
  • a communication method, device and electronic device provided by embodiments of the present specification:
  • a communication method comprising:
  • the first device sends a Bluetooth broadcast signal
  • the first device emits a sound wave broadcast signal; wherein a broadcast distance of the sound wave broadcast signal is less than a broadcast distance of the Bluetooth broadcast signal;
  • the second device starts Bluetooth broadcast monitoring
  • the second device starts sound wave broadcast monitoring
  • the second device establishes Bluetooth communication with the first device when listening to the Bluetooth broadcast signal sent by the first device;
  • the second device performs data interaction with the first device by using the established Bluetooth communication when the second device is listening to the sound wave broadcast signal sent by the first device.
  • a communication method comprising:
  • a communication method comprising:
  • a communication device comprising:
  • a first broadcast unit that emits a Bluetooth broadcast signal
  • a second broadcast unit that emits a sound wave broadcast signal; wherein a broadcast distance of the sound wave broadcast signal is less than a broadcast distance of the Bluetooth broadcast signal;
  • the communication unit performs data interaction with the second device through the established Bluetooth communication if the second device monitors the sound wave broadcast signal.
  • a communication device comprising:
  • the first startup unit starts Bluetooth broadcast monitoring
  • the second starting unit starts the sound wave broadcast monitoring
  • the communication unit performs data interaction with the first device through the established Bluetooth communication in the case of listening to the sound wave broadcast signal sent by the first device.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • an electronic device including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • Embodiments of the present specification provide a communication scheme in which Bluetooth and sound waves are used in combination. Acoustic sensing is used to determine the distance between the first device and the second device. Since the sound wave broadcast distance is smaller than the Bluetooth broadcast distance, when the second device monitors the sound wave broadcast signal sent by the first device, it can be determined that the distance between the first device and the second device is close enough to communicate well through Bluetooth. Perform data interaction.
  • FIG. 1 is a conceptual diagram of a system architecture for implementing communication according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart corresponding to the communication method of the first device as the execution subject of FIG. 2;
  • FIG. 4 is a flowchart corresponding to the communication method of the second device as the execution subject of FIG. 2;
  • FIG. 5 is a schematic block diagram of a communication device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic block diagram of a communication device according to an embodiment of the present disclosure.
  • first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present description.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination.”
  • wireless communication is indispensable in all aspects of people's production and life.
  • wireless communication especially short-range wireless communication, has many limitations, resulting in inefficient data communication for wireless communication.
  • Bluetooth communication can be used to send a Bluetooth broadcast signal between one device and another device. After listening to the Bluetooth broadcast signal, Bluetooth communication between the two devices is established.
  • the Bluetooth broadcast signal will be attenuated by the increase of the broadcast distance; when the Bluetooth broadcast signal is attenuated to a certain extent, the Bluetooth broadcast signal will become very unstable, resulting in instability of the Bluetooth chip for distance recognition (the Bluetooth chip can be Bluetooth based)
  • the strength of the broadcast signal calculates the broadcast distance). That is to say, the unstable Bluetooth broadcast signal strength may cause the Bluetooth chip distance judgment to be inaccurate, thereby affecting the efficiency of the service, for example, affecting data transmission.
  • the system architecture concept map may include a first device 11 and a second device 12.
  • the first device 11 and the second device 12 may be device terminals having at least two short-range wireless communications. Data interaction between the first device 11 and the second device 12 may be performed by short-range wireless communication.
  • the method may include the following steps:
  • Step 210 The first device sends a Bluetooth broadcast signal.
  • the first device can transmit a Bluetooth broadcast signal including its own identification (UUID) through the Bluetooth module.
  • the Bluetooth module can be identified by a "Universally Unique Identifier" (UUID). Each such UUID guarantees the uniqueness of the Bluetooth service in time and space.
  • the UUID may specifically be short shaping (16 or 32 bits) and long shaping (128 bits).
  • the UUID can be sent via a Bluetooth broadcast signal.
  • the Bluetooth technology can adopt Bluetooth Low Energy (BLE). More preferably, iBeacon technology can be used. iBeacon technology is a technology based on BLE development, featuring low cost, wide expansion and flexible customization. This iBeacon technology enables a smartphone or other device to execute commands within the sensing range of an iBeacon base station.
  • the first device may be an iBeacon base station.
  • iBeacon has been installed on the mobile device OS (iOS7) released by Apple in September 2013.
  • BLE communication methods generally include two types: advertising (advertising) and connecting (connecting).
  • Advertising is a one-way sending mechanism and belongs to one of the broadcast modes.
  • Devices that want to be searched can send a packet of data at intervals of 20 milliseconds to 10 seconds. The shorter the time interval used, the faster the battery is consumed and the faster the device will be discovered.
  • the packet length is up to 47 bytes and can generally consist of the following:
  • BLE devices can run in a single, non-connectable ad mode (in this mode all information is included in the ad packet); in addition, the BLE device can also run in a connectable mode (ie, connecting mode) .
  • the first device in this embodiment can operate in a mode that can be connected. In this way, the first device can broadcast its own identity through the connection mode for connection by the second device. Specifically, the identifier of the first device may be carried in the PDU data packet.
  • Step 220 The first device sends a sound wave broadcast signal; wherein a broadcast distance of the sound wave broadcast signal is smaller than a broadcast distance of the Bluetooth broadcast signal.
  • the first device can emit a sound wave broadcast signal including its own identification through the sound wave module.
  • the audio protocol in acoustic wave technology may mean pre-establishing a table containing 32 characters ([0-9, a-v]) and mapping each character to a frequency table.
  • a complete sonic package can contain 20 tones (ie 20 characters) and a tone is sent every 87.2 milliseconds. The first two digits are information headers, and "hj" is used to notify the receiving end to start receiving.
  • the middle 10 bits are valid information bits, which are valid transmission information, that is, the frequency information after the Key value is mapped.
  • the last 8 bits are the RS check bits, and the intermediate 10 bits are calculated by the RS check algorithm to generate 8-bit check information.
  • the checksum is mainly used to handle information reception errors due to noise interference.
  • the transmitter (encoder) only needs to be able to send sinusoidal sound waves from 1.7khz to 10.5khz.
  • the receiving end (decoder) needs to record the sound and decode it and fault tolerant processing.
  • the sound waves may generally be ultrasonic waves.
  • the first device may further adjust a transmit power of the sound wave broadcast signal to a rated power such that a broadcast distance of the sound wave broadcast signal is smaller than a broadcast distance of the Bluetooth broadcast signal.
  • the broadcast distance of the sound wave broadcast signal may range from 1 cm to 30 cm.
  • the Bluetooth broadcast signal and the sound wave broadcast signal may not be issued. That is, the Bluetooth broadcast signal and the sound wave broadcast signal can be issued at any time.
  • the sound wave broadcast signal can be sent simultaneously with the Bluetooth broadcast signal.
  • the sound wave broadcast signal may be sent if Bluetooth communication is established between the first device and the second device. That is, the step 220 may include:
  • the first device In the case where Bluetooth communication is established between the first device and the second device, the first device emits a sound wave broadcast signal.
  • Step 230 The second device starts Bluetooth broadcast monitoring.
  • Step 240 The second device starts sound wave broadcast monitoring.
  • the Bluetooth broadcast monitor and the sonic broadcast monitor may not issue a condition. That is to say, the Bluetooth broadcast monitoring and sound wave broadcast monitoring can be started at any time.
  • the sound wave broadcast monitor can be started simultaneously with the Bluetooth broadcast monitor.
  • the sound wave broadcast monitoring may be initiated if Bluetooth communication is established between the first device and the second device. That is, the step 240 may include:
  • the second device In the case that Bluetooth communication is established between the second device and the first device, the second device initiates sound wave broadcast monitoring.
  • Step 250 The second device establishes Bluetooth communication with the first device in the case that the Bluetooth broadcast signal sent by the first device is monitored.
  • the two devices need to perform Bluetooth pairing, and when the pairing is successful, the Bluetooth communication can be established.
  • Bluetooth pairing is required. After the second device listens to the Bluetooth broadcast signal sent by the first device, it can directly establish Bluetooth communication with the first device.
  • Step 260 The second device performs data interaction with the first device by using the established Bluetooth communication when the second device is listening to the sound wave broadcast signal sent by the first device.
  • the second device After the second device monitors the sound wave broadcast signal sent by the first device, it may indicate that the second device is close to the first device, that is, the distance between the second device and the first device is close enough, in such a case
  • the second device can perform data interaction with the first device through the established Bluetooth communication.
  • the established Bluetooth communication can be temporarily disconnected, that is, it is not necessary to maintain the connection state all the time.
  • the second device and the first device establish Bluetooth communication
  • the second device may temporarily be unable to monitor the sound wave broadcast signal sent by the first device because the distance is too far, and the connected Bluetooth communication may be temporarily disconnected. In this way, the power consumption can be reduced.
  • the Bluetooth communication is connected again.
  • Embodiments of the present specification provide a communication scheme in which Bluetooth and sound waves are used in combination.
  • Acoustic sensing is used to determine the distance between the first device and the second device. Since the sound wave broadcast distance is smaller than the Bluetooth broadcast distance, when the second device monitors the sound wave broadcast signal sent by the first device, it can be determined that the distance between the first device and the second device is close enough to communicate well through Bluetooth. Perform data interaction. In this way, the efficiency of Bluetooth communication can be effectively improved.
  • the method further includes:
  • the second device performs data interaction with the first device by using the established Bluetooth communication, and specifically includes:
  • the second device performs data interaction with the first device through the established Bluetooth communication.
  • the sound wave broadcast signal also decays as the broadcast distance increases. If the sound wave broadcast signal is stable, it can be explained that the first device that emits the sound wave broadcast signal is relatively close; if the sound wave broadcast signal is unstable, it can be explained that the first device that emits the sound wave broadcast signal is relatively far away.
  • the second device determines whether the monitored sound wave broadcast signal is stable, and specifically includes:
  • the monitored sound wave broadcast signal is discontinuous, it is determined that the monitored sound wave broadcast signal is unstable.
  • the determining, by the second device, whether the monitored sound wave broadcast signal is stable specifically includes:
  • the monitored sound wave broadcast signal In the case where the intensity of the monitored acoustic wave broadcast signal does not reach the threshold, it is determined that the monitored sound wave broadcast signal is unstable.
  • the intensity of the sound wave broadcast signal can be reflected by the amplitude of the sound wave, and the unit of measurement can be a decibel value.
  • the second device can perform data interaction according to the established Bluetooth communication only when it is determined that the monitored sound wave broadcast signal is sufficiently stable. In this way, the efficient and stable Bluetooth communication can be further ensured.
  • the Bluetooth broadcast signal includes an identification of the first device
  • the sound wave broadcast signal includes an identifier of the first device
  • the method further includes:
  • the second device performs data interaction with the first device by using the established Bluetooth communication, and specifically includes:
  • the second device performs data interaction with the first device by using the established Bluetooth communication.
  • Bluetooth broadcast signals and sound wave broadcast signals from multiple devices; the second device needs to ensure that the monitored Bluetooth broadcast signals and sound wave broadcast signals come from the same first device, so Only then can the distance between the first device be close enough.
  • the first device may be an Internet of Things terminal device
  • the second device may be a user's mobile terminal device.
  • the user can quickly realize data interaction with the Internet of Things terminal device through the mobile terminal device, thereby completing corresponding services such as payment service and data query service.
  • the Internet of Things device can refer to the payment device; the user closes the mobile terminal device to the collection device, and can quickly complete the identity authentication of both parties, thereby completing the payment.
  • the first device sends a Bluetooth broadcast signal
  • the second device emits a sound wave broadcast signal; wherein a broadcast distance of the sound wave broadcast signal is less than a broadcast distance of the Bluetooth broadcast signal;
  • the second device starts Bluetooth broadcast monitoring
  • the first device starts sound wave broadcast monitoring
  • the second device establishes Bluetooth communication with the first device when listening to the Bluetooth broadcast signal sent by the first device;
  • the second device performs data interaction with the first device by using the established Bluetooth communication when the first device is listening to the sound wave broadcast signal sent by the second device.
  • FIG. 3 An embodiment of the method in which the first device is the main body of the present application is described below with reference to FIG. 3, which may correspond to FIG. 2:
  • Step 310 Send a Bluetooth broadcast signal.
  • Step 320 Send a sound wave broadcast signal; wherein a broadcast distance of the sound wave broadcast signal is smaller than a broadcast distance of the Bluetooth broadcast signal;
  • Step 330 Establish Bluetooth communication with the second device, where the second device monitors the Bluetooth broadcast signal.
  • Step 340 Perform data interaction with the second device by using the established Bluetooth communication if the second device monitors the sound wave broadcast signal.
  • the step 320 includes:
  • the sound wave broadcast signal is emitted in the case of establishing Bluetooth communication with the second device.
  • the method further includes:
  • the sound wave broadcast signal has a distance ranging from 1 cm to 30 cm
  • the Bluetooth comprises Bluetooth low energy BLE.
  • the sound wave is an ultrasonic wave.
  • FIG. 4 An embodiment of the method in which the second device is the main body of the present application is described below with reference to FIG. 4, which may correspond to FIG. 2:
  • Step 410 Start Bluetooth broadcast monitoring
  • Step 420 Start sound wave broadcast monitoring
  • Step 430 Establish a Bluetooth communication with the first device if the Bluetooth broadcast signal sent by the first device is monitored.
  • Step 440 Perform data interaction with the first device by using the established Bluetooth communication in the case that the sound wave broadcast signal sent by the first device is monitored.
  • the step 420 specifically includes:
  • the method before the data interaction with the first device by using the established Bluetooth communication, the method further includes:
  • the data interaction with the first device by using the established Bluetooth communication includes:
  • the determining whether the monitored sound wave broadcast signal is stable comprises:
  • the monitored sound wave broadcast signals are continuous, it is determined that the monitored sound wave broadcast signal is stable.
  • the determining whether the monitored sound wave broadcast signal is stable comprises:
  • the intensity of the monitored sound wave broadcast signal reaches a threshold value, it is determined that the monitored sound wave broadcast signal is stable.
  • the Bluetooth broadcast signal includes an identifier of the first device
  • the sound wave broadcast signal includes an identifier of the first device
  • the method further includes:
  • the data interaction with the first device by using the established Bluetooth communication includes:
  • the Bluetooth comprises Bluetooth low energy BLE.
  • the sound wave is an ultrasonic wave.
  • the present specification also provides an embodiment of a communication device.
  • the device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software.
  • the processor of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory.
  • a hardware structure of a device where the communication device is located in the present specification may include a processor, a network interface, a memory, and a non-volatile memory.
  • the device in which the device is located is generally based on the actual function of the communication. Other hardware may be included and will not be described again.
  • FIG. 5 is a block diagram of a communication device according to an embodiment of the present disclosure.
  • the device corresponds to the embodiment shown in FIG. 3, and the device includes:
  • the first broadcast unit 510 sends out a Bluetooth broadcast signal
  • the second broadcast unit 520 emits a sound wave broadcast signal; wherein a broadcast distance of the sound wave broadcast signal is smaller than a broadcast distance of the Bluetooth broadcast signal;
  • the establishing unit 530 is configured to establish Bluetooth communication with the second device, where the second device monitors the Bluetooth broadcast signal;
  • the communication unit 540 performs data interaction with the second device by using the established Bluetooth communication if the second device monitors the sound wave broadcast signal.
  • the second broadcast unit 520 specifically includes:
  • a sound wave broadcast signal is emitted.
  • the device further includes:
  • the sound wave broadcast signal has a distance ranging from 1 cm to 30 cm
  • the Bluetooth includes Bluetooth low energy BLE.
  • the sound wave is an ultrasonic wave.
  • FIG. 6 is a block diagram of a communication device according to an embodiment of the present disclosure.
  • the device corresponds to the embodiment shown in FIG. 4, and the device includes:
  • the first starting unit 610 starts Bluetooth broadcast monitoring
  • the second starting unit 620 starts the sound wave broadcast monitoring
  • the establishing unit 630 when listening to the Bluetooth broadcast signal sent by the first device, establishing Bluetooth communication with the first device;
  • the communication unit 640 performs data interaction with the first device through the established Bluetooth communication in the case that the sound wave broadcast signal sent by the first device is monitored.
  • the second starting unit 620 specifically includes:
  • the communication unit 640 specifically includes:
  • Determining the subunit determining whether the monitored sound wave broadcast signal is stable if the Bluetooth broadcast signal sent by the first device is monitored;
  • the communication subunit performs data interaction with the first device through the established Bluetooth communication when the monitored sound wave broadcast signal is stable.
  • the determining whether the monitored sound wave broadcast signal is stable includes:
  • the monitored sound wave broadcast signals are continuous, it is determined that the monitored sound wave broadcast signal is stable.
  • the determining whether the monitored sound wave broadcast signal is stable includes:
  • the intensity of the monitored sound wave broadcast signal reaches a threshold value, it is determined that the monitored sound wave broadcast signal is stable.
  • the Bluetooth broadcast signal includes an identifier of the first device
  • the sound wave broadcast signal includes an identifier of the first device
  • the communication unit 640 specifically includes:
  • a communication subunit performing data interaction with the first device by using the established Bluetooth communication if the identifier of the sound wave broadcast signal is consistent with the identifier of the Bluetooth broadcast signal.
  • the Bluetooth includes Bluetooth low energy BLE.
  • the sound wave is an ultrasonic wave.
  • the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, and a game control.
  • the device embodiment since it corresponds substantially to the method embodiment, reference is made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present specification. Those of ordinary skill in the art can understand and implement without any creative effort.
  • the internal function module and structure of the communication device are described in FIG. 5, and the substantial execution body of the device may be an electronic device, including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the generating the sound wave broadcast signal specifically includes:
  • a sound wave broadcast signal is emitted.
  • the method further includes:
  • the sound wave broadcast signal has a distance ranging from 1 cm to 30 cm.
  • the Bluetooth includes Bluetooth low energy BLE.
  • the sound wave is an ultrasonic wave.
  • the substantial execution body of the communication device can be an electronic device, including:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the initiating the sound wave broadcast monitoring includes:
  • the method before the data interaction with the first device by using the established Bluetooth communication, the method further includes:
  • the data interaction with the first device by using the established Bluetooth communication includes:
  • the determining whether the monitored sound wave broadcast signal is stable includes:
  • the monitored sound wave broadcast signals are continuous, it is determined that the monitored sound wave broadcast signal is stable.
  • the determining whether the monitored sound wave broadcast signal is stable includes:
  • the intensity of the monitored sound wave broadcast signal reaches a threshold value, it is determined that the monitored sound wave broadcast signal is stable.
  • the Bluetooth broadcast signal includes an identifier of the first device
  • the sound wave broadcast signal includes an identifier of the first device
  • the method further includes:
  • the data interaction with the first device by using the established Bluetooth communication includes:
  • the Bluetooth includes Bluetooth low energy BLE.
  • the sound wave is an ultrasonic wave.
  • the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processor, digital signal processor (English: Digital Signal Processor) , referred to as: DSP), ASIC (English: Application Specific Integrated Circuit, referred to as: ASIC).
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the foregoing memory may be a read-only memory (English: read-only memory, abbreviation: ROM), a random access memory (English) :random access memory (abbreviation: RAM), flash memory, hard disk or solid state disk.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.

Abstract

本说明书实施例提供一种通信方法及装置和电子设备,第一设备发出蓝牙广播信号;所述第一设备发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;第二设备启动蓝牙广播监听;所述第二设备启动声波广播监听;所述第二设备在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;所述第二设备在监听到所述第一设备发出的声波广播信号的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。

Description

通信方法及装置和电子设备 技术领域
本说明书实施例涉及通讯技术领域,尤其涉及一种通信方法及装置和电子设备。
背景技术
随着智能终端的不断普及,还有物联网设备应用的场景和数量的不断增多,人们生产生活的方方面面都离不开无线通信。然而,无线通信特别是短距离无线通信存在很多的限制,导致无线通信的数据交互效率不高。
需要提供一种更有效率的无线通信方案。
发明内容
本说明书实施例提供的一种通信方法及装置和电子设备:
根据本说明书实施例的第一方面,提供一种通信方法,所述方法包括:
第一设备发出蓝牙广播信号;
所述第一设备发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
第二设备启动蓝牙广播监听;
所述第二设备启动声波广播监听;
所述第二设备在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
所述第二设备在监听到所述第一设备发出的声波广播信号的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
根据本说明书实施例的第二方面,提供一种通信方法,所述方法包括:
发出蓝牙广播信号;
发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
根据本说明书实施例的第三方面,提供一种通信方法,所述方法包括:
启动蓝牙广播监听;
启动声波广播监听;
在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
根据本说明书实施例的第四方面,提供一种通信装置,所述装置包括:
第一广播单元,发出蓝牙广播信号;
第二广播单元,发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
建立单元,建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
通信单元,在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
根据本说明书实施例的第五方面,提供一种通信装置,所述装置包括:
第一启动单元,启动蓝牙广播监听;
第二启动单元,启动声波广播监听;
建立单元,在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
通信单元,在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝 牙通信与所述第一设备进行数据交互。
根据本说明书实施例的第六方面,提供一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
发出蓝牙广播信号;
发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
根据本说明书实施例的第七方面,提供一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
启动蓝牙广播监听;
启动声波广播监听;
在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
本说明书实施例,提供了一种蓝牙和声波组合使用的通信方案。利用声波感应来确定第一设备和第二设备之间的距离。由于声波广播距离小于蓝牙广播距离,因此在第二设备监听到第一设备发出的声波广播信号时,可以认定第一设备和第二设备之间的距离已经足够接近,可以很好的通过蓝牙通信进行数据交互。
附图说明
图1是本说明书一实施例提供的实现通信的系统架构概念图;
图2是本说明书一实施例提供的通信方法的流程图;
图3是对应图2的以第一设备为执行主体的通信方法的流程图;
图4是对应图2的以第二设备为执行主体的通信方法的流程图;
图5是本说明书一实施例提供的通信装置的模块示意图;
图6是本说明书一实施例提供的通信装置的模块示意图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
如前所述,随着智能终端的不断普及,还有物联网设备应用的场景和数量的不断增多,人们生产生活的方方面面都离不开无线通信。例如,在无线支付领域,移动终端在贴近收款设备后,需要快速完成身份认证和支付过程。然而,无线通信特别是短距离无线通信存在很多的限制,导致无线通信的数据交互效率不高以蓝牙通信为例,两台设备 之间可以由其中一条设备发出蓝牙广播信号,再另一台设备监听到该蓝牙广播信号后,建立这两条设备之间的蓝牙通信。一般的,蓝牙广播信号会广播距离的增加而衰减;当蓝牙广播信号衰减到一定程度时,蓝牙广播信号会变得非常不稳定,从而导致蓝牙芯片对距离识别的不稳定(蓝牙芯片可以根据蓝牙广播信号的强度计算出广播距离)。也就是说,蓝牙广播信号强度不稳定会导致蓝牙芯片距离判断不准确,从而影响业务例如影响数据传输的效率。
本说明书可以涉及一个或多个系统。以下请参考图1示出了本说明书中可以适用的示例性的系统架构概念图。所述系统架构概念图可以包括第一设备11、第二设备12。所述第一设备11和所述第二设备12可以是具有至少两种短距离无线通信的设备终端。所述第一设备11和所述第二设备12之间可以通过短距离无线通信进行数据交互。
以下可以结合图2所示的例子介绍本说明书一种实现通信的方法的实施例,如图2所示,该方法可以包括以下步骤:
步骤210:第一设备发出蓝牙广播信号。
第一设备可以通过蓝牙模块发出包含自身的标识(UUID)的蓝牙广播信号。蓝牙技术中,蓝牙模块可以通过“全球唯一标识符”(Universally Unique Identifier,UUID)来标识。每一个这样的UUID都在时空上保证蓝牙服务的唯一性。UUID具体可以是短整形(16或32位)和长整形(128位)。UUID可以通过蓝牙广播信号发送。
优选地,所述蓝牙技术,可以采用低功耗蓝牙技术(Bluetooth Low Energy,BLE)。更优地,可以采用iBeacon技术。iBeacon技术是一种基于BLE开发的技术,具有成本低,扩展广,定制灵活的特点。这种iBeacon技术可以使一个智能手机或其他装置在一个iBeacon基站的感应范围内能够执行相应的命令。例如本实施例中,第一设备可以为iBeacon基站。iBeacon已由苹果公司于2013年9月发布的移动设备用OS(iOS7)上配备。
BLE的通信方式一般包括两种:advertising(广告)和connecting(连接)。广告(Advertising)是一种单向的发送机制,属于广播模式的一种。想要被搜索到的设备(如iBeacon基站,收款设备)可以以20毫秒到10秒钟的时间间隔发送一段数据包。使用的时间间隔越短,电池消耗的越快,设备被发现的速度也就会快。数据包长度最多47个字节,一般可以由以下部分组成:
1 byte:preamble(1字节做报头)
4 byte:access address(4字节做地址)
39 bytes:advertising channel PDU(39个字节用于PDU数据包)
3 bytes:CRC(3个字节用于CRC数据校验)
BLE设备可以运行在单一的不可连接的广告模式中(在这种模式下所有的信息都包含在广告数据包中);此外,BLE设备也可以运行在可被连接的模式下(即connecting模式)。
本实施例中的第一设备,可以运行在可被连接的模式中。这样,第一设备可以将自身标识通过连接模式广播出去,用于被第二设备连接。具体的,所述第一设备的标识,可以承载于上述PDU数据包中。
步骤220:所述第一设备发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
第一设备可以通过声波模块发出包含自身的标识的声波广播信号。声波技术中的音频协议(以chirp为例)可以是指预先建立一个含有32个字符([0-9,a-v])的表,并将每个字符映射到频率表。频率表是根据乐理,通过伴音的计算生成。例如,0=1760hz,1=1864hz,〃〃〃〃〃〃,v=10.5khz。一个完整的声波包可以包含20个音(即20个字符),每87.2毫秒发一个音。前两位为信息头,采用“hj”,用以通知接收端开始接收。中间10位为有效的信息位,是有效的传输信息,即Key值经过映射后的频率信息。最后8位为RS校验位,通过RS校验算法,对中间10位进行计算,生成8位的校验信息。校验主要用来处理由于噪声干扰造成的信息接收错误。发送端(编码器)只需能够发送1.7khz到10.5khz的正弦声波即可。接收端(解码器)需要记录声音,并将其进行解码以及容错处理。优选地,所述声波通常可以是超声波。
一般的,在发出声波广播信号之后,所述第一设备还可以调节所述声波广播信号的发射功率至额定功率,使得所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
优选地,所述声波广播信号的广播距离的范围可以包括1厘米至30厘米。
值得一提的是,所述蓝牙广播信号和声波广播信号可以没有发出条件。也就是说,所述蓝牙广播信号和声波广播信号可以在任意时刻发出。
在一种方式中:所述声波广播信号可以与蓝牙广播信号同时发出。
在另一种实现方式中:所述声波广播信号可以在所述第一设备与所述第二设备之间建立蓝牙通信的情况下发出。即所述步骤220,可以包括:
在所述第一设备与所述第二设备之间建立蓝牙通信的情况下,所述第一设备发出声波广播信号。
步骤230:第二设备启动蓝牙广播监听。
步骤240:所述第二设备启动声波广播监听。
类似的,所述蓝牙广播监听和声波广播监听可以没有发出条件。也就是说,所述蓝牙广播监听和声波广播监听可以在任意时刻启动。
在一种方式中:所述声波广播监听可以与蓝牙广播监听同时启动。
在另一种实现方式中:所述声波广播监听可以在所述第一设备与所述第二设备之间建立蓝牙通信的情况下启动。即所述步骤240,可以包括:
在所述第二设备与所述第一设备之间建立蓝牙通信的情况下,所述第二设备启动声波广播监听。
步骤250:所述第二设备在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信。
在蓝牙2.0的技术中,建立蓝牙通信过程中,需要双方设备进行蓝牙配对,当配对成功后,才能建立蓝牙通信。
在BLE的技术中,建立蓝牙通信过程中,需要进行蓝牙配对,在第二设备监听到第一设备发出的蓝牙广播信号后,可以直接与第一设备建立蓝牙通信。
步骤260:所述第二设备在监听到所述第一设备发出的声波广播信号的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
第二设备在监听到所述第一设备发出的声波广播信号后,可以说明第二设备已经贴近第一设备,即第二设备与第一设备之间的距离足够接近了,在这样的情况下所述第二设备才可以通过所建立的蓝牙通信与所述第一设备进行数据交互。
值得一提的是,所述建立的蓝牙通信可以暂时断开,即无需一直保持连接状态。在第二设备和第一设备建立了蓝牙通信之后,可能由于距离过远,第二设备暂时无法监听到第一设备发出的声波广播信号,此时可以暂时断开连接的蓝牙通信。如此,可以降低 电量的消耗。后续,在第二设备监听到第一设备发出的声波广播信号后,再次连接蓝牙通信。
本说明书实施例,提供了一种蓝牙和声波组合使用的通信方案。利用声波感应来确定第一设备和第二设备之间的距离。由于声波广播距离小于蓝牙广播距离,因此在第二设备监听到第一设备发出的声波广播信号时,可以认定第一设备和第二设备之间的距离已经足够接近,可以很好的通过蓝牙通信进行数据交互。如此,可以有效提升蓝牙通信的效率。
在一个具体地实施例中,为了保证蓝牙通信的高效稳定;在所述步骤260中的第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
所述第二设备判断所监听到的声波广播信号是否稳定;
所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
在所监听到的声波广播信号稳定的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
通常,声波广播信号也会随着广播距离的增加而衰减。如果声波广播信号稳定的话,可以说明距离发出声波广播信号的第一设备比较近;如果声波广播信号不稳定的话,可以说明距离发出声波广播信号的第一设备比较远。
在一种实现方式中,所述第二设备判断所监听到的声波广播信号是否稳定,具体可以包括:
所述第二设备判断所监听到的声波广播信号是否连续;
在所监听到的声波广播信号连续的情况下,确定所监听到的声波广播信号稳定;
在所监听到的声波广播信号不连续的情况下,确定所监听到的声波广播信号不稳定。
在另一种实现方式中,所述第二设备判断所监听到的声波广播信号是否稳定,具体包括:
所述第二设备判断所监听到的声波广播信号的强度是否达到阈值;
在所监听到的声波广播信号的强度达到阈值的情况下,确定所监听到的声波广播信号稳定;
在所监听到的声波广播信号的强度未达到阈值的情况下,确定所监听到的声波广播信号不稳定。
一般的,声波广播信号的强度可以通过声波振幅体现,其测算单位可以为分贝值。
通过该实施例,第二设备只有在确定了所监听到的声波广播信号足够稳定时,才可以根据建立的蓝牙通信进行数据交互。这样,可以进一步保证蓝牙通信的高效稳定。
如前所示,所述蓝牙广播信号包含所述第一设备的标识;
所述声波广播信号包含所述第一设备的标识;
在所述步骤260中的第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
所述第二设备判断所述声波广播信号的标识与所述蓝牙广播信号的标识是否一致;
所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
在所述声波广播信号的标识与所述蓝牙广播信号的标识一致的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
在实际应用中,同一个环境中,可能存在多个设备发出的蓝牙广播信号、声波广播信号;第二设备需要保证所监听到的蓝牙广播信号和声波广播信号来自于同一个第一设备,如此才可以确保与第一设备之间的距离已经足够接近。
本说明书提供的实施例可以应用在物联网场景中,第一设备可以为物联网终端设备,第二设备可以为用户的移动终端设备。用户通过移动终端设备可以快速实现与物联网终端设备之间的数据交互,从而完成相应业务如支付业务、数据查询业务等。以支付业务为例,物联网设备可以是指收款设备;用户将移动终端设备贴近该收款设备,可以快速完成双方的身份认证,进而完成支付。
在与图2所示实施例类似的一个具体地实施例中,包括如下步骤:
第一设备发出蓝牙广播信号;
第二设备发出声波广播信号;其中,所述声波广播信号的广播距离小于蓝牙广播信号的广播距离;
第二设备启动蓝牙广播监听;
所述第一设备启动声波广播监听;
所述第二设备在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
所述第一设备在监听到所述第二设备发出的声波广播信号的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
以下结合图3介绍本申请以第一设备为主体的方法实施例,该实施例可以对应图2:
步骤310:发出蓝牙广播信号;
步骤320:发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
步骤330:建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
步骤340:在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
优选地,所述步骤320,具体包括:
优选地,在与所述第二设备之间建立蓝牙通信的情况下,发出声波广播信号。
优选地,在所述步骤320之后,所述方法还包括:
调节所述声波广播信号的发射功率至额定功率,使得所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
优选地,所述声波广播信号的距离范围为1厘米至30厘米
优选地,所述蓝牙包括蓝牙低功耗BLE。
优选地,所述声波为超声波。
以下结合图4介绍本申请以第二设备为主体的方法实施例,该实施例可以对应图2:
步骤410:启动蓝牙广播监听;
步骤420:启动声波广播监听;
步骤430:在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
步骤440:在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
优选地,所述步骤420,具体包括:
在与所述第一设备之间建立蓝牙通信的情况下,启动声波广播监听。
优选地,在所述通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
判断所监听到的声波广播信号是否稳定;
所述通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
在所监听到的声波广播信号稳定的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
优选地,所述判断所监听到的声波广播信号是否稳定,具体包括:
判断所监听到的声波广播信号是否连续;
在所监听到的声波广播信号连续的情况下,确定所监听到的声波广播信号稳定。
优选地,所述判断所监听到的声波广播信号是否稳定,具体包括:
判断所监听到的声波广播信号的强度是否达到阈值;
在所监听到的声波广播信号的强度达到阈值的情况下,确定所监听到的声波广播信号稳定。
优选地,所述蓝牙广播信号包含第一设备的标识;
所述声波广播信号包含所述第一设备的标识;
在所述通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
判断所述声波广播信号的标识与所述蓝牙广播信号的标识是否一致;
所述通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
在所述声波广播信号的标识与所述蓝牙广播信号的标识一致的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
优选地,所述蓝牙包括蓝牙低功耗BLE。
优选地,所述声波为超声波。
与前述通信方法实施例相对应,本说明书还提供了通信装置的实施例。所述装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,本说明书通信装置所在设备的一种硬件结构可以包括处理器、网络接口、内存以及非易失性存储器之外,实施例中装置所在的设备通常根据该通信实际功能,还可以包括其他硬件,对此不再赘述。
请参见图5,为本说明书一实施例提供的通信装置的模块图,所述装置对应了图3所示实施例,所述装置包括:
第一广播单元510,发出蓝牙广播信号;
第二广播单元520,发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
建立单元530,建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
通信单元540,在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
在一个可选的实施例中:
所述第二广播单元520,具体包括:
在与所述第二设备之间建立蓝牙通信的情况下,发出声波广播信号。
在一个可选的实施例中:
在所述第二广播单元520,所述装置还包括:
调节所述声波广播信号的发射功率至额定功率,使得所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
在一个可选的实施例中:
所述声波广播信号的距离范围为1厘米至30厘米
在一个可选的实施例中:
所述蓝牙包括蓝牙低功耗BLE。
在一个可选的实施例中:
所述声波为超声波。
请参见图6,为本说明书一实施例提供的通信装置的模块图,所述装置对应了图4所示实施例,所述装置包括:
第一启动单元610,启动蓝牙广播监听;
第二启动单元620,启动声波广播监听;
建立单元630,在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
通信单元640,在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
在一个可选的实施例中:
所述第二启动单元620,具体包括:
在与所述第一设备之间建立蓝牙通信的情况下,启动声波广播监听。
在一个可选的实施例中:
所述通信单元640,具体包括:
判断子单元,在监听到所述第一设备发出的蓝牙广播信号的情况下,判断所监听到的声波广播信号是否稳定;
通信子单元,在所监听到的声波广播信号稳定的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
在一个可选的实施例中:
所述判断所监听到的声波广播信号是否稳定,具体包括:
判断所监听到的声波广播信号是否连续;
在所监听到的声波广播信号连续的情况下,确定所监听到的声波广播信号稳定。
在一个可选的实施例中:
所述判断所监听到的声波广播信号是否稳定,具体包括:
判断所监听到的声波广播信号的强度是否达到阈值;
在所监听到的声波广播信号的强度达到阈值的情况下,确定所监听到的声波广播信号稳定。
在一个可选的实施例中:
所述蓝牙广播信号包含第一设备的标识;
所述声波广播信号包含所述第一设备的标识;
所述通信单元640,具体包括:
判断子单元,在监听到所述第一设备发出的蓝牙广播信号的情况下,判断所述声波广播信号的标识与所述蓝牙广播信号的标识是否一致;
通信子单元,在所述声波广播信号的标识与所述蓝牙广播信号的标识一致的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
在一个可选的实施例中:
所述蓝牙包括蓝牙低功耗BLE。
在一个可选的实施例中:
所述声波为超声波。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法 实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上图5描述了通信装置的内部功能模块和结构示意,其实质上的执行主体可以为一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
发出蓝牙广播信号;
发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
可选的,所述发出声波广播信号,具体包括:
在与所述第二设备之间建立蓝牙通信的情况下,发出声波广播信号。
可选的,在所述发出声波广播之后,还包括:
调节所述声波广播信号的发射功率至额定功率,使得所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
可选的,所述声波广播信号的距离范围为1厘米至30厘米
可选的,所述蓝牙包括蓝牙低功耗BLE。
可选的,所述声波为超声波。
以上图6描述了通信装置的内部功能模块和结构示意,其实质上的执行主体可 以为一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
启动蓝牙广播监听;
启动声波广播监听;
在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
可选的,所述启动声波广播监听,具体包括:
在与所述第一设备之间建立蓝牙通信的情况下,启动声波广播监听。
可选的,在所述通过所建立的蓝牙通信与所述第一设备进行数据交互之前,还包括:
判断所监听到的声波广播信号是否稳定;
所述通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
在所监听到的声波广播信号稳定的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
可选的,所述判断所监听到的声波广播信号是否稳定,具体包括:
判断所监听到的声波广播信号是否连续;
在所监听到的声波广播信号连续的情况下,确定所监听到的声波广播信号稳定。
可选的,所述判断所监听到的声波广播信号是否稳定,具体包括:
判断所监听到的声波广播信号的强度是否达到阈值;
在所监听到的声波广播信号的强度达到阈值的情况下,确定所监听到的声波广播信号稳定。
可选的,所述蓝牙广播信号包含第一设备的标识;
所述声波广播信号包含所述第一设备的标识;
在所述通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
判断所述声波广播信号的标识与所述蓝牙广播信号的标识是否一致;
所述通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
在所述声波广播信号的标识与所述蓝牙广播信号的标识一致的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
可选的,所述蓝牙包括蓝牙低功耗BLE。
可选的,所述声波为超声波。
在上述电子设备的实施例中,应理解,该处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于电子设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本说明书的其它实施方案。本说明书旨在涵盖本说明书的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本说明书的一般性原理并包括本说明书未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本说明书的真正范围和精神由下面的权利要求指出。
应当理解的是,本说明书并不局限于上面已经描述并在附图中示出的精确结构, 并且可以在不脱离其范围进行各种修改和改变。本说明书的范围仅由所附的权利要求来限制。

Claims (29)

  1. 一种通信方法,所述方法包括:
    第一设备发出蓝牙广播信号;
    所述第一设备发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
    第二设备启动蓝牙广播监听;
    所述第二设备启动声波广播监听;
    所述第二设备在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
    所述第二设备在监听到所述第一设备发出的声波广播信号的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
  2. 根据权利要求1所述的方法,所述第一设备发出声波广播信号,具体包括:
    在所述第一设备与所述第二设备之间建立蓝牙通信的情况下,所述第一设备发出声波广播信号。
  3. 根据权利要求1所述的方法,所述第二设备启动声波广播监听,具体包括:
    在所述第二设备与所述第一设备之间建立蓝牙通信的情况下,所述第二设备启动声波广播监听。
  4. 根据权利要求1所述的方法,在所述第一设备发出声波广播信号之后,所述方法还包括:
    所述第一设备调节所述声波广播信号的发射功率至额定功率,使得所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
  5. 根据权利要求4所述的方法,所述声波广播信号的距离范围为1厘米至30厘米。
  6. 根据权利要求1所述的方法,在所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
    所述第二设备判断所监听到的声波广播信号是否稳定;
    所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
    在所监听到的声波广播信号稳定的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
  7. 根据权利要求6所述的方法,所述第二设备判断所监听到的声波广播信号是否稳定,具体包括:
    所述第二设备判断所监听到的声波广播信号是否连续;
    在所监听到的声波广播信号连续的情况下,确定所监听到的声波广播信号稳定。
  8. 根据权利要求6所述的方法,所述第二设备判断所监听到的声波广播信号是否稳定,具体包括:
    所述第二设备判断所监听到的声波广播信号的强度是否达到阈值;
    在所监听到的声波广播信号的强度达到阈值的情况下,确定所监听到的声波广播信号稳定。
  9. 根据权利要求1所述的方法,所述蓝牙广播信号包含所述第一设备的标识;
    所述声波广播信号包含所述第一设备的标识;
    在所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
    所述第二设备判断所述声波广播信号的标识与所述蓝牙广播信号的标识是否一致;
    所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
    在所述声波广播信号的标识与所述蓝牙广播信号的标识一致的情况下,所述第二设备通过所建立的蓝牙通信与所述第一设备进行数据交互。
  10. 根据权利要求1所述的方法,所述蓝牙包括蓝牙低功耗BLE。
  11. 根据权利要求1所述的方法,所述声波为超声波。
  12. 一种进程通信方法,所述方法包括:
    发出蓝牙广播信号;
    发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
    建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
    在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
  13. 根据权利要求12所述的方法,所述发出声波广播信号,具体包括:
    在与所述第二设备之间建立蓝牙通信的情况下,发出声波广播信号。
  14. 根据权利要求12所述的方法,在所述发出声波广播之后,所述方法还包括:
    调节所述声波广播信号的发射功率至额定功率,使得所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离。
  15. 根据权利要求14所述的方法,所述声波广播信号的距离范围为1厘米至30厘米。
  16. 根据权利要求12所述的方法,所述蓝牙包括蓝牙低功耗BLE。
  17. 根据权利要求12所述的方法,所述声波为超声波。
  18. 一种通信方法,所述方法包括:
    启动蓝牙广播监听;
    启动声波广播监听;
    在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
    在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
  19. 根据权利要求18所述的方法,所述启动声波广播监听,具体包括:
    在与所述第一设备之间建立蓝牙通信的情况下,启动声波广播监听。
  20. 根据权利要求18所述的方法,在所述通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
    判断所监听到的声波广播信号是否稳定;
    所述通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
    在所监听到的声波广播信号稳定的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
  21. 根据权利要求20所述的方法,所述判断所监听到的声波广播信号是否稳定,具体包括:
    判断所监听到的声波广播信号是否连续;
    在所监听到的声波广播信号连续的情况下,确定所监听到的声波广播信号稳定。
  22. 根据权利要求20所述的方法,所述判断所监听到的声波广播信号是否稳定,具体包括:
    判断所监听到的声波广播信号的强度是否达到阈值;
    在所监听到的声波广播信号的强度达到阈值的情况下,确定所监听到的声波广播信号稳定。
  23. 根据权利要求20所述的方法,所述蓝牙广播信号包含第一设备的标识;
    所述声波广播信号包含所述第一设备的标识;
    在所述通过所建立的蓝牙通信与所述第一设备进行数据交互之前,所述方法还包括:
    判断所述声波广播信号的标识与所述蓝牙广播信号的标识是否一致;
    所述通过所建立的蓝牙通信与所述第一设备进行数据交互,具体包括:
    在所述声波广播信号的标识与所述蓝牙广播信号的标识一致的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
  24. 根据权利要求18所述的方法,所述蓝牙包括蓝牙低功耗BLE。
  25. 根据权利要求18所述的方法,所述声波为超声波。
  26. 一种通信装置,所述装置包括:
    第一广播单元,发出蓝牙广播信号;
    第二广播单元,发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
    建立单元,建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
    通信单元,在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
  27. 一种通信装置,所述装置包括:
    第一启动单元,启动蓝牙广播监听;
    第二启动单元,启动声波广播监听;
    建立单元,在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
    通信单元,在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
  28. 一种电子设备,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    发出蓝牙广播信号;
    发出声波广播信号;其中,所述声波广播信号的广播距离小于所述蓝牙广播信号的广播距离;
    建立与第二设备之间的蓝牙通信;其中,所述第二设备监听到所述蓝牙广播信号;
    在所述第二设备监听到所述声波广播信号的情况下,通过所建立的蓝牙通信与所述第二设备进行数据交互。
  29. 一种电子设备,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    启动蓝牙广播监听;
    启动声波广播监听;
    在监听到所述第一设备发出的蓝牙广播信号的情况下,建立与所述第一设备之间的蓝牙通信;
    在监听到所述第一设备发出的声波广播信号的情况下,通过所建立的蓝牙通信与所述第一设备进行数据交互。
PCT/CN2018/124410 2018-01-23 2018-12-27 通信方法及装置和电子设备 WO2019144758A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810062667.2 2018-01-23
CN201810062667.2A CN108366361A (zh) 2018-01-23 2018-01-23 通信方法及装置和电子设备

Publications (1)

Publication Number Publication Date
WO2019144758A1 true WO2019144758A1 (zh) 2019-08-01

Family

ID=63006611

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/124410 WO2019144758A1 (zh) 2018-01-23 2018-12-27 通信方法及装置和电子设备

Country Status (3)

Country Link
CN (1) CN108366361A (zh)
TW (1) TW201933832A (zh)
WO (1) WO2019144758A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11558914B2 (en) 2021-05-07 2023-01-17 Cisco Technology, Inc. Device pairing in hot desking environments

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366361A (zh) * 2018-01-23 2018-08-03 阿里巴巴集团控股有限公司 通信方法及装置和电子设备
CN108769974B (zh) * 2018-09-11 2021-09-21 深圳市沃特沃德信息有限公司 蓝牙连接的方法与系统
CN110933151A (zh) * 2019-11-19 2020-03-27 联想(北京)有限公司 一种处理方法及第一电子设备
CN116846483B (zh) * 2023-09-04 2024-01-12 北京城建智控科技股份有限公司 一种公共区域免布线广播方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581986A (zh) * 2013-10-17 2015-04-29 北京聚码科技有限公司 一种无线连接方法和设备
US20170139494A1 (en) * 2014-12-23 2017-05-18 2Gather Inc. Method for transmitting data
CN108366361A (zh) * 2018-01-23 2018-08-03 阿里巴巴集团控股有限公司 通信方法及装置和电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660353B (zh) * 2013-11-15 2019-02-26 国民技术股份有限公司 一种数据处理触发方法、装置及系统
CN104702321A (zh) * 2014-04-11 2015-06-10 上海智向信息科技有限公司 近场支付判定方法以及系统
CN106896356B (zh) * 2016-08-17 2019-11-19 阿里巴巴集团控股有限公司 确定距离变化的方法、位置提示方法及其装置和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581986A (zh) * 2013-10-17 2015-04-29 北京聚码科技有限公司 一种无线连接方法和设备
US20170139494A1 (en) * 2014-12-23 2017-05-18 2Gather Inc. Method for transmitting data
CN108366361A (zh) * 2018-01-23 2018-08-03 阿里巴巴集团控股有限公司 通信方法及装置和电子设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11558914B2 (en) 2021-05-07 2023-01-17 Cisco Technology, Inc. Device pairing in hot desking environments

Also Published As

Publication number Publication date
TW201933832A (zh) 2019-08-16
CN108366361A (zh) 2018-08-03

Similar Documents

Publication Publication Date Title
WO2019144758A1 (zh) 通信方法及装置和电子设备
JP6138825B2 (ja) アクセスポイントと局との間で構成変更メッセージを送信するシステムおよび方法
US9769731B2 (en) Wireless network host in silent mode
WO2018000134A1 (zh) 一种蓝牙连接的方法及终端
JP5823077B2 (ja) 効率のよいサービス発見のための方法、装置、およびコンピュータプログラム
JP6254095B2 (ja) リレーの選択およびセットアップのシステムならびに方法
US8712330B2 (en) Method and system for Bluetooth low power link layer connection setup
US20140256260A1 (en) Wireless Device Pairing
US20170026777A1 (en) Bluetooth low energy interlaced advertising and scanning
JP5272182B2 (ja) 無線通信ネットワークにおける高速なローカルアドレス割り当て
US20110021142A1 (en) Method and system for a dual-mode bluetooth low energy device
JP5784831B2 (ja) アドホックワイヤレスネットワークにおける管理情報の通信のためのデバイスおよび方法
WO2019179253A1 (zh) 身份验证的方法及装置和电子设备
TW201325167A (zh) 低功率無線裝置探索
WO2022048489A1 (zh) 用于电子设备的超宽带定位的方法以及超宽带终端设备
WO2019128982A1 (zh) 一种设备引导的方法、终端以及服务器
CN111698668A (zh) 无线通信链路建立方法及支持该方法的电子装置
CN114208234A (zh) 在蓝牙网络环境中支持多链路的方法及其电子装置
US11641576B2 (en) Method and apparatus for identifying dual-mode wireless device, IOS device, and medium
US20140137202A1 (en) Information sharing method and system using the same
US20080118069A1 (en) Mobile communication system, and key setting method
WO2017140095A1 (zh) 一种无线通信方法及装置
WO2022252796A1 (zh) 一种基于心跳包的在线检测方法及设备
WO2018099284A1 (zh) 通讯方法及装置
TWI602410B (zh) 搜尋電子裝置的方法與電子裝置

Legal Events

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

Ref document number: 18902738

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

Country of ref document: EP

Kind code of ref document: A1