WO2016112626A1 - 一种嵌入式操作系统实现蓝牙从设备功能的系统及方法 - Google Patents

一种嵌入式操作系统实现蓝牙从设备功能的系统及方法 Download PDF

Info

Publication number
WO2016112626A1
WO2016112626A1 PCT/CN2015/081393 CN2015081393W WO2016112626A1 WO 2016112626 A1 WO2016112626 A1 WO 2016112626A1 CN 2015081393 W CN2015081393 W CN 2015081393W WO 2016112626 A1 WO2016112626 A1 WO 2016112626A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
interface
mobile terminal
module
operating system
Prior art date
Application number
PCT/CN2015/081393
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 芋头科技(杭州)有限公司
Priority to NZ734395A priority Critical patent/NZ734395B2/en
Priority to SG11201705719XA priority patent/SG11201705719XA/en
Priority to CA2973022A priority patent/CA2973022C/en
Priority to KR1020177022428A priority patent/KR20170105055A/ko
Priority to JP2017554629A priority patent/JP6526238B2/ja
Priority to EP15877542.9A priority patent/EP3247048B1/en
Priority to AU2015376660A priority patent/AU2015376660A1/en
Priority to US14/763,748 priority patent/US20160353231A1/en
Publication of WO2016112626A1 publication Critical patent/WO2016112626A1/zh
Priority to ZA2017/05412A priority patent/ZA201705412B/en

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a system and method for implementing a Bluetooth slave device function in an embedded operating system.
  • Bluetooth technology has been more and more widely used. From mobile phones to homes, from sensor networks to home robots, Bluetooth applications are used in a wide variety of applications and devices.
  • Bluetooth technology is a short-range wireless transmission technology that can effectively simplify communication problems between different devices such as mobile phones, computers, sensors and even robots or the same devices.
  • Bluetooth protocols and profiles are an important part of the Bluetooth technology, in which the Bluetooth protocol defines the way to communicate with other systems (protocols), the timing of the signals and the organization of the communication data, and the Bluetooth specification is for some Application and specific scenarios, specifying the protocols used in these scenarios, and the order of work between the protocols, thus ensuring the interoperability between devices.
  • Bluetooth specifications divide devices into two different roles, master and slave, such as the Advanced Audio Distribution Profile (A2DP), which implements the audio transport model, which classifies devices into master devices (SRC) and Slave device (SNK), where the sender of the audio stream is the SRC role and the receiver is the SNK role.
  • A2DP Advanced Audio Distribution Profile
  • SRC master devices
  • SNK Slave device
  • all mobile phones, tablets, etc. implement the master device (SRC role) in the A2DP specification.
  • SRC role master device
  • These devices based on the IOS or Android smart operating system use the Bluetooth protocol stack of the operating system itself to implement the main definition defined in the specification. device.
  • the protocol stack can be Bluz or Bluedroid.
  • These protocol stack software implements many specifications of Bluetooth. Their architecture is shown in Figure 1.
  • the present invention provides a system and method for implementing a Bluetooth slave device function in an embedded operating system for an existing embedded operating system that cannot implement the Bluetooth slave device function.
  • An embedded operating system implements a Bluetooth slave device function, which includes:
  • the mobile terminal is installed with an embedded operating system
  • Bluetooth module operable at least in a Bluetooth slave mode
  • An interface module wherein the Bluetooth module is connected to the mobile terminal by using the interface module
  • the mobile terminal drives the Bluetooth module to work through the interface module.
  • the Bluetooth module comprises:
  • a Bluetooth transceiver unit connected to the control unit
  • the external interface unit is respectively connected to the control unit and the interface module;
  • Bluetooth antenna connected to the Bluetooth transceiver unit
  • the control unit connects to the mobile terminal by using the external interface unit, and controls the Bluetooth transceiver unit to communicate with the mobile terminal by using the external interface unit according to an instruction of the mobile terminal.
  • control unit comprises:
  • a first storage unit configured to store a complete Bluetooth slave device function protocol stack, where the complete Bluetooth slave device function protocol stack is used to control the operation of the Bluetooth transceiver unit;
  • a second storage unit configured to store an interface protocol stack, where the interface protocol stack is used by the Bluetooth module to communicate with the mobile terminal.
  • the external interface unit and the interface module are serial interfaces.
  • the serial interface is an asynchronous serial communication interface, or a serial peripheral interface, or an internal integrated bus, or a serial fast input/output interface.
  • the embedded operating system is Android or Linux.
  • Step 1 Providing a Bluetooth module capable of operating at least in a Bluetooth slave mode and having a complete Bluetooth slave device protocol stack;
  • Step 2 connecting the Bluetooth module to a mobile terminal through an interface module
  • Step 3 The mobile terminal drives the Bluetooth module to work with a Bluetooth slave device function protocol stack of the Bluetooth module itself;
  • Step 4 The Bluetooth module performs data communication with the mobile terminal through the interface module.
  • the interface module is a serial interface.
  • the mobile terminal adopts an Android operating system or a Linux operating system.
  • the above technical solution has the beneficial effects that: by adopting the above system and method, the above technical solution is different from the current practice of integrating the Bluetooth protocol stack software into the operating system, but utilizes an additional hardware to implement and process the Bluetooth protocol stack. Then through the hardware and software interface specification, the Bluetooth specification required by the mobile terminal, including the master and slave devices, all the complete external Bluetooth protocol stacks are associated with the embedded operating system, thereby realizing the modification of the existing embedded operating system source code.
  • the invention is not coupled with the operating system, and has portability, and can be easily transplanted to various embedded operating systems after completing a set of Bluetooth protocol stacks, even It is a closed operating system that does not open source code, so that the expansion of the Bluetooth protocol stack is no longer affected by the interface and service of the operating system, thereby improving the scalability and flexibility of the entire system.
  • FIG. 1 is a schematic diagram of a Bluetooth software protocol stack architecture in the prior art
  • Figure 2 is a schematic diagram of the system of the present invention.
  • FIG. 3 is a four-layer model diagram of a software and hardware interface specification of an interface module of the present invention.
  • FIG. 4 is a drive architecture diagram of an embodiment of an Android-based smart operating system
  • Figure 5 is a block flow diagram of the method of the present invention.
  • the technical solution of the present invention discloses a system for implementing a Bluetooth slave device function in an embedded operating system, which includes: a mobile terminal 1 with an embedded operating system installed therein; a Bluetooth module 2;
  • the Bluetooth module 2 can operate at least in the Bluetooth slave mode; the interface module 3, the Bluetooth module 2 is connected to the mobile terminal 1 through the interface module 3; and the mobile terminal 1 drives the Bluetooth module 2 to work through the interface module 3.
  • the mobile terminal 1 communicates with the external Bluetooth master device in the slave device mode by externally operating the Bluetooth module 2 that is at least operable in the Bluetooth slave mode, and the Bluetooth module 2 performs the interface with the mobile terminal 1 through the interface module 3. Communication, the mobile terminal 1 drives the Bluetooth module 2 to work.
  • the Bluetooth module 2 includes: a control unit 21; a Bluetooth transceiver unit 22, a connection control unit 21; an external interface unit 23, which is respectively connected to the control unit 21 and the interface module 3; a Bluetooth antenna 24, which is connected to the Bluetooth.
  • the control unit 21 connects the mobile terminal 1 through the external interface unit 23, and controls the Bluetooth transceiver unit 22 to perform data communication with the mobile terminal 1 through the external interface unit 23 according to an instruction of the mobile terminal 1.
  • the Bluetooth transceiver unit 22 communicates with the external Bluetooth master device in the form of a Bluetooth slave device under the control of the control unit 21, and the Bluetooth antenna 24 is used for transmitting and receiving radio signals.
  • control unit 21 includes: a first storage unit 211 for storing a complete Bluetooth slave device function protocol stack, and a complete Bluetooth slave device function protocol stack for controlling the Bluetooth transceiver unit 22 to operate;
  • the second storage unit 212 is configured to store an interface protocol stack, and the interface protocol stack is used by the Bluetooth module 2 to communicate with the mobile terminal 1.
  • control unit 21 can be formed by a low-power single-chip microcomputer, and the Bluetooth slave device protocol stack can be developed on the single-chip microcomputer through the C language, and the first storage unit 211 is formed by the storage space of the single-chip microcomputer.
  • a further second storage unit 212 can also be formed in the storage space of the single chip microcomputer, wherein the driver of the external interface unit 23 and the interface protocol stack can be stored.
  • the Bluetooth module 2 receives the Bluetooth data packet from the Bluetooth antenna 24 through the Bluetooth transceiver unit 22, and transmits the valid data to the mobile terminal 1 or the mobile terminal after being processed by the protocol stack in the control unit 21. 1 The data is received and then packaged into a Bluetooth data packet.
  • the Bluetooth transceiver unit 22 transmits via the Bluetooth antenna 24.
  • the external interface unit 23 and the interface module 3 are serial interfaces.
  • the external interface unit 23 can adopt a Universal Asynchronous Receiver and Transmitter (UART), or a Serial Peripheral Interface (SPI), or an internal integrated bus (Inter-Integrated). Circuit, I2C), or Serial Rapid Input Output (SRIO).
  • UART Universal Asynchronous Receiver and Transmitter
  • SPI Serial Peripheral Interface
  • I2C Internal integrated bus
  • SRIO Serial Rapid Input Output
  • the software and hardware interface specification of the interface module 3 is a bridge between the Bluetooth module 2 and the mobile terminal 1.
  • the specification may be a specific hardware communication interface on the hardware, and may be a layer on the software.
  • a communication protocol stack that defines a packet format and transmission timing between the Bluetooth module 2 and the mobile terminal 1. As shown in FIG. 3, the protocol stack can be divided into four layers, which are an application layer, a transport layer, a data link layer, and a physical layer.
  • the application layer directly provides services for applications, specifically packet format and timing specifications for a specific Bluetooth specification application; the transport layer is responsible for data transmission and control, thereby providing reliable end-to-end data exchange functions;
  • the function of the data link layer is to provide transparent data transmission basic services to upper users;
  • the physical layer specifies the physical link creation, maintenance, and removal required to transmit data, while providing mechanical, electronic, functional, and specification. Characteristics.
  • the interface module 3 can be disposed in the mobile terminal 1 and has the hardware and software components of the mobile terminal 1.
  • the mobile terminal 1 further includes an embedded operating system driver, and the driver runs inside the operating system of the mobile terminal 1, and is specifically responsible for receiving the requirements of the application, and packaging the requirements into a data packet through the interface module.
  • 3 is sent to the Bluetooth module 2, or receives the notification of the Bluetooth module 2, and notifies the specific state to the upper layer application that the mobile terminal 1 is running.
  • the robot in an intelligent robot based on the Android embedded operating system, the robot is required to have a function of dialing a Bluetooth phone and playing Bluetooth music.
  • the user uses the mobile phone to pair with the robot for Bluetooth, and then the user can interact with the robot to command the robot to make a call or play music from the phone via Bluetooth.
  • the robot is required to have the slave device functions of the Bluetooth specifications A2DP, HFP, and AVRCP.
  • the smart robot is a specific embodiment of the mobile terminal 1 in the above technical solution, and the Android native Bluetooth protocol stack can be no longer used. Instead, use the protocol in Bluetooth module 2 instead.
  • the stack in which the protocol stack of the Bluetooth module 2 includes the complete A2DP, HFP, AVRCP Bluetooth slave function.
  • a serial interface ie, an embodiment of the interface module 3 is used as a communication interface between the mobile terminal 1 and the Bluetooth module 2, and an Android-based driver and service are implemented as shown in FIG. In this way, the robot can realize the function of making calls and listening to music through Bluetooth.
  • the workflow is as follows: First, the user commands the robot to make a call, and the robot invokes the application after receiving the command, and the application encapsulates the command content into a data packet according to the model of FIG. 3, and then transmits the data packet to the Bluetooth. Module 2; After the Bluetooth module 2 is unpacked, it passes through the Bluetooth protocol stack to execute the process of making a call made by HFP, thereby realizing the function of making a call by Bluetooth.
  • the embedded operating system can be Android or Linux.
  • the technical solution of the present invention further includes a method for implementing a function of a Bluetooth slave device in an embedded operating system, wherein, as shown in FIG. 5, the method includes the following steps:
  • Step 1 Providing a Bluetooth module capable of operating at least in a Bluetooth slave mode and having a complete Bluetooth slave device protocol stack;
  • Step 2 connecting the Bluetooth module to a mobile terminal through an interface module
  • Step 3 The mobile terminal drives the Bluetooth module to work with the bluetooth slave device function protocol stack of the Bluetooth module itself;
  • Step 4 The Bluetooth module performs data communication with the mobile terminal through the interface module.
  • the interface module can adopt a serial interface.
  • the mobile terminal may adopt an Android operating system or a Linux operating system.
  • the present invention is different from the current practice of integrating the Bluetooth protocol stack software into the operating system, but utilizes an additional hardware to implement and process the Bluetooth protocol stack, and then through the hardware and software interface.
  • the Bluetooth specification required for the smart device includes all the complete external Bluetooth protocol stacks, including the master and slave devices, associated with the embedded operating system of the mobile terminal, thereby realizing that the source code of the existing embedded operating system is not modified.
  • the operating system adds the support function of the Bluetooth slave device; at the same time, the technical solution of the invention is not coupled with the operating system, and has portability.
  • Bluetooth protocol stack After completing a set of Bluetooth protocol stack, it can be simply transplanted to various embedded operating systems, or even The closed operating system of the source code is not open, so that the extension of the Bluetooth protocol stack is no longer affected by the interface and service of the operating system, thereby improving the scalability and flexibility of the entire system.

Abstract

本发明公开了一种嵌入式操作系统实现蓝牙从设备功能的系统及方法,其中,包括:移动终端,所述移动终端安装有嵌入式操作系统;蓝牙模块,所述蓝牙模块至少可工作于蓝牙从设备模式;接口模块,所述蓝牙模块通过所述接口模块与所述移动终端连接;所述移动终端通过所述接口模块驱动所述蓝牙模块工作。通过上述技术方案,实现了在不修改现有嵌入式操作系统源代码的基础上为该操作系统添加蓝牙从设备的支持功能,使得蓝牙协议栈的扩展不再受操作系统的接口与服务的影响,进而提高了整个系统的可扩展性和灵活性。

Description

一种嵌入式操作系统实现蓝牙从设备功能的系统及方法 技术领域
本发明涉及通信技术领域,尤其涉及一种嵌入式操作系统实现蓝牙从设备功能的系统及方法。
背景技术
随着无线通信技术的发展和市场规模的扩大,蓝牙技术得到了越来越广泛的应用。从手机到家居,从传感器网络到家庭机器人,各式各样的应用和设备都在广泛地利用蓝牙技术。
蓝牙技术,是一种短距离无线传输技术,其能够有效地简化手机、电脑、传感器乃至机器人等不同设备或相同设备间的通信问题。蓝牙的协议(Protocol)和规范(Profile)是组成蓝牙技术的重要组成部分,其中蓝牙协议定义与其它系统(协议)通信的方式,描述信号的时序和通信数据的机构,蓝牙规范则是针对一些应用和具体场景,规定这些场景所采用的协议,以及各协议之间的工作顺序,从而保证了设备之间的互动操作性。大多蓝牙规范中将设备分成主设备和从设备两种不同的角色,例如实现音频传输模型的蓝牙音频分发规范(Advanced Audio Distribution Profile,简称A2DP),该规范将设备分为主设备(SRC)和从设备(SNK),其中音频流发送者为SRC角色,接收者为SNK角色。当前,所有的手机、平板电脑等都实现了A2DP规范中的主设备(SRC角色),这些基于IOS或Android智能操作系统的设备,都利用操作系统本身的蓝牙协议栈来实现规范中定义的主设备。如就基于Android智能操作系统的设备来说,协议栈可以是Bluz或Bluedroid,这些协议栈软件实现了蓝牙的诸多规范,它们的架构如图1所示。
但是,如图1所示,由于操作系统厂商对智能设备应用场景的预估不足,嵌入式Linux、Android等嵌入式操作系统的蓝牙软件协议栈中大多数规范(如HFP,A2DP,AVRCP等)并不包括从设备功能。对于目前国内外基于嵌入 式操作系统的智能设备,如手机、平板电脑、智能电视、智能家居等,都只能实现这些规范的主设备功能。这些智能设备中装备的蓝牙设备只包括一些基本的蓝牙协议,而上层协议和规范则实现在操作系统中。但是随着机器人技术的发展,一些基于嵌入式Linux、Android或其他嵌入式操作系统的机器人需要诸如A2DP、HFP、AVRCP等规范的从设备功能,因此,业界也需要开始需求一种基于嵌入式操作系统的实现相关蓝牙规范从设备的技术措施。
发明内容
针对现有的嵌入式操作系统无法实现蓝牙从设备功能的问题,本发明提供一种嵌入式操作系统实现蓝牙从设备功能的系统及方法。
本发明的技术方案是:
一种嵌入式操作系统实现蓝牙从设备功能的系统,其中,包括:
移动终端,所述移动终端安装有嵌入式操作系统;
蓝牙模块,所述蓝牙模块至少可工作于蓝牙从设备模式;
接口模块,所述蓝牙模块通过所述接口模块与所述移动终端连接;
所述移动终端通过所述接口模块驱动所述蓝牙模块工作。
优选的,所述蓝牙模块包括:
控制单元;
蓝牙收发单元,连接所述控制单元;
对外接口单元,分别连接所述控制单元和所述接口模块;
蓝牙天线,连接所述蓝牙收发单元;
所述控制单元通过所述对外接口单元连接所述移动终端,并根据所述移动终端的指令控制所述蓝牙收发单元通过所述对外接口单元与所述移动终端进行通信。
优选的,所述控制单元包括:
第一储存单元,用以储存完整的蓝牙从设备功能协议栈,所述完整的蓝牙从设备功能协议栈用于控制所述蓝牙收发单元工作;
第二储存单元,用以储存接口协议栈,所述接口协议栈用于所述蓝牙模块与所述移动终端通信。
优选的,所述对外接口单元及所述接口模块为串行接口。
优选的,所述串行接口为异步串行通信接口、或者串行外设接口、或者内部集成总线、或者串行快速输入输出接口
优选的,所述嵌入式操作系统为安卓或者Linux。
还包括,一种嵌入式操作系统实现蓝牙从设备功能的方法,其中,包括如下步骤:
步骤1、提供一至少可工作于蓝牙从设备模式且具备完整蓝牙从设备功能协议栈的蓝牙模块;
步骤2、通过一接口模块将所述蓝牙模块连接至一移动终端;
步骤3、所述移动终端驱动所述蓝牙模块以所述蓝牙模块自身的蓝牙从设备功能协议栈工作;
步骤4、所述蓝牙模块通过所述接口模块与所述移动终端进行数据通信。
优选的,所述接口模块为串行接口。
优选的,所述移动终端采用安卓操作系统或者采用Linux操作系统。
上述技术方案的有益效果是:通过采用上述系统及方法,使上述技术方案不同于目前将蓝牙协议栈软件集成在操作系统内部的做法,而是利用了一个额外硬件来实现和处理蓝牙协议栈,然后通过软硬件接口规范将移动终端所需的蓝牙规范包括主从设备在内全部完整的外部蓝牙协议栈与嵌入式操作系统相关联,从而实现了在不修改现有嵌入式操作系统源代码的基础上为该操作系统添加蓝牙从设备的支持功能;同时,本发明不与操作系统耦合,具有可移植性,完成一套蓝牙协议栈后就可以简单移植到各种嵌入式操作系统上,甚至是不开放源代码的封闭操作系统,从而使得蓝牙协议栈的扩展不再受操作系统的接口与服务的影响,进而提高了整个系统的可扩展性和灵活性。
附图说明
图1是现有技术中的蓝牙软件协议栈架构图;
图2是本发明系统的原理图;
图3是本发明接口模块的软硬件接口规范的四层模型图;
图4是基于Android的智能操作系统的实施例的驱动架构图
图5是本发明方法的流程框图。
具体实施方式
下面结合附图和具体实施例对本发明作进一步说明,但不作为本发明的限定。
如图2所示,本发明的技术方案中公开了一种嵌入式操作系统实现蓝牙从设备功能的系统,其中,包括:移动终端1,移动终端1安装有嵌入式操作系统;蓝牙模块2,蓝牙模块2至少可工作于蓝牙从设备模式;接口模块3,蓝牙模块2通过接口模块3与移动终端1连接;移动终端1通过接口模块3驱动蓝牙模块2工作。
上述技术方案中,通过外置一至少可工作于蓝牙从设备模式的蓝牙模块2,使移动终端1以从设备模式与外界蓝牙主设备进行通信,蓝牙模块2通过接口模块3与移动终端1进行通信,由移动终端1驱动蓝牙模块2工作。
于上述技术方案基础上,进一步的,蓝牙模块2包括:控制单元21;蓝牙收发单元22,连接控制单元21;对外接口单元23,分别连接控制单元21和接口模块3;蓝牙天线24,连接蓝牙收发单元22;
控制单元21通过对外接口单元23连接移动终端1,并根据移动终端1的指令控制蓝牙收发单元22通过对外接口单元23与移动终端1进行数据通信。同时蓝牙收发单元22在控制单元21的控制下以蓝牙从设备的形式与外部的蓝牙主设备进行通信,蓝牙天线24则用于收发无线电信号。
于上述技术方案基础上,进一步的,控制单元21包括:第一储存单元211,用以储存完整的蓝牙从设备功能协议栈,完整的蓝牙从设备功能协议栈用于控制蓝牙收发单元22工作;
第二储存单元212,用以储存接口协议栈,接口协议栈用于蓝牙模块2与移动终端1通信。
在一种较优的实施方式中,控制单元21可由一低功耗单片机形成,蓝牙从设备功能协议栈可通过C语言开发于单片机上,由单片机的储存空间形成第一储存单元211。进一步的第二储存单元212也可形成于单片机的储存空间中,其中可储存对外接口单元23的驱动程序以及接口协议栈。
蓝牙模块2通过蓝牙收发单元22从蓝牙天线24接收蓝牙数据包,经过控制单元21中的协议栈处理后将有效数据传输给移动终端1或者从移动终端 1接收到数据然后封装成蓝牙数据包发送蓝牙收发单元22通过蓝牙天线24进行发送。
于上述技术方案基础上,进一步的,对外接口单元23及接口模块3为串行接口。作为优选的实施方式,外接口单元23可采用采用异步串行通信接口(Universal Asynchronous Receiver and Transmitter,UART),或串行外设接口(Serial Peripheral Interface,SPI),或内部集成总线(Inter-Integrated Circuit,I2C),或串行快速输入输出接口(Serial Rapid Input Output,SRIO)。
于上述技术方案中,接口模块3的软硬件接口规范是连接蓝牙模块2和移动终端1之间的桥梁,该规范在硬件上可以是一种具体硬件通信接口,在软件上则可以是一层通信协议栈,该协议栈定义了蓝牙模块2与移动终端1之间的数据包格式和传输时序。如图3所示,该协议栈可分为四层,分别是应用层、传输层、数据链路层和物理层。应用层直接为应用程序提供服务,具体来说就是面向某个具体蓝牙规范应用而制定的数据包格式和时序规范;传输层负责数据的传输和控制,从而提供可靠的端到端数据交换功能;数据链路层的功能是向上层用户提供透明的数据传输基本服务;物理层则规定了传输数据所需要的物理链路创建、维持、拆除,而提供的机械的、电子的、功能的和规范的特性。于一种较优的实施方式中,接口模块3可设置于移动终端1内,有移动终端1的硬件及软件构成。
于上述技术方案中,移动终端1中还包括嵌入式操作系统驱动程序,该驱动程序运行在移动终端1的操作系统内部,具体负责接收应用程序的需求,并将需求封装成数据包通过接口模块3发送给蓝牙模块2,或者接收蓝牙模块2的通知,并将具体状态通知到移动终端1正在运行的上层应用。
在一种优选的实施方式中,在一个基于Android嵌入式操作系统的智能机器人中,需要该机器人具有拨打蓝牙电话以及播放蓝牙音乐的功能。首先,用户使用手机与该机器人进行蓝牙配对,然后用户可以同机器人进行交互,命令机器人通过蓝牙拨打电话或播放手机中的音乐。此时,就需要机器人具有蓝牙规范A2DP、HFP、AVRCP的从设备功能。
目前,传统的Android嵌入式操作系统不支持从设备功能,在采用本发明的系统后,该智能机器人为上述技术方案中移动终端1的具体实施例,此时便可不再使用Android原生的蓝牙协议栈而是转而使用蓝牙模块2中的协 议栈,其中位于蓝牙模块2的协议栈包括了完整的A2DP、HFP、AVRCP蓝牙从设备功能。此时使用串行接口(即接口模块3的实施例)作为移动终端1与蓝牙模块2的通信接口,并如图4所示实现基于Android的驱动程序与服务。如此一来,机器人就可以实现通过蓝牙拨打电话与收听音乐的功能。
进一步以拨打电话为例,说明其工作流程:首先用户命令机器人拨打电话,机器人收到命令后调用应用程序,应用程序将命令内容根据图3的模型封装成数据包,然后将数据包传递给蓝牙模块2;蓝牙模块2解包后经过蓝牙协议栈,执行HFP规定的拨打电话的流程,从而实现蓝牙拨打电话的功能。
在一种较优的实施方式中,嵌入式操作系统可以是Android或者Linux。
本发明的技术方案中还包括,一种嵌入式操作系统实现蓝牙从设备功能的方法,其中,如图5所示,包括如下步骤:
步骤1、提供一至少可工作于蓝牙从设备模式且具备完整蓝牙从设备功能协议栈的蓝牙模块;
步骤2、通过一接口模块将蓝牙模块连接至一移动终端;
步骤3、移动终端驱动蓝牙模块以蓝牙模块自身的蓝牙从设备功能协议栈工作;
步骤4、蓝牙模块通过接口模块与移动终端进行数据通信。
于上述技术方案基础上进一步的,于上述方法中,接口模块可采用串行接口。
于上述技术方案基础上进一步的,于上述方法中,移动终端可采用安卓操作系统或者采用Linux操作系统。
综上所述,通过采用上述装置,使得本发明不同于目前将蓝牙协议栈软件集成在操作系统内部的做法,而是利用了一个额外硬件来实现和处理蓝牙协议栈,然后通过软硬件接口将智能设备所需的蓝牙规范包括主从设备在内全部完整的外部蓝牙协议栈与移动终端的嵌入式操作系统相关联,从而实现了在不修改现有嵌入式操作系统源代码的基础上为该操作系统添加蓝牙从设备的支持功能;同时,本发明的技术方案不与操作系统耦合,具有可移植性,完成一套蓝牙协议栈后就可以简单移植到各种嵌入式操作系统上,甚至是不开放源代码的封闭操作系统,从而使得蓝牙协议栈的扩展不再受操作系统的接口与服务的影响,进而提高了整个系统的可扩展性和灵活性。
以上所述仅为本发明较佳的实施例,并非因此限制本发明的实施方式及保护范围,对于本领域技术人员而言,应当能够意识到凡运用本发明说明书及图示内容所作出的等同替换和显而易见的变化所得到的方案,均应当包含在本发明的保护范围内。

Claims (9)

  1. 一种嵌入式操作系统实现蓝牙从设备功能的系统,其特征在于,包括:
    移动终端,所述移动终端安装有嵌入式智能操作系统;
    蓝牙模块,所述蓝牙模块至少可工作于蓝牙从设备模式;
    接口模块,所述蓝牙模块通过所述接口模块与所述移动终端连接;
    所述移动终端通过所述接口模块驱动所述蓝牙模块工作。
  2. 如权利要求1所述系统,其特征在于,所述蓝牙模块包括:
    控制单元;
    蓝牙收发单元,连接所述控制单元;
    对外接口单元,分别连接所述控制单元和所述接口模块;
    蓝牙天线,连接所述蓝牙收发单元;
    所述控制单元通过所述对外接口单元连接所述移动终端,并根据所述移动终端的指令控制所述蓝牙收发单元通过所述对外接口单元与所述移动终端进行通信。
  3. 如权利要求2所述系统,其特征在于,所述控制单元包括:
    第一储存单元,用以储存完整的蓝牙从设备功能协议栈,所述完整的蓝牙从设备功能协议栈用于控制所述蓝牙收发单元工作;
    第二储存单元,用以储存接口协议栈,所述接口协议栈用于所述蓝牙模块与所述移动终端通信。
  4. 如权利要求2所述系统,其特征在于,所述对外接口单元及所述接口模块为串行接口。
  5. 如权利要求4所述系统,其特征在于,所述串行接口为异步串行通信接口、或者串行外设接口、或者内部集成总线、或者串行快速输入输出接口
  6. 如权利要求1-5中任一所述系统,其特征在于,所述嵌入式操作系统为安卓或者Linux。
  7. 一种嵌入式操作系统实现蓝牙从设备功能的方法,其特征在于,包括如下步骤:
    步骤1、提供一至少可工作于蓝牙从设备模式且具备完整蓝牙从设备功能协议栈的蓝牙模块;
    步骤2、通过一接口模块将所述蓝牙模块连接至一移动终端;
    步骤3、所述移动终端驱动所述蓝牙模块以所述蓝牙模块自身的蓝牙从设备功能协议栈工作;
    步骤4、所述蓝牙模块通过所述接口模块与所述移动终端进行数据通信。
  8. 如权利要求7所述方法,其特征在于,所述接口模块为串行接口。
  9. 如权利要求8所述方法,其特征在于,所述移动终端采用安卓操作系统或者采用Linux操作系统。
PCT/CN2015/081393 2015-01-12 2015-06-12 一种嵌入式操作系统实现蓝牙从设备功能的系统及方法 WO2016112626A1 (zh)

Priority Applications (9)

Application Number Priority Date Filing Date Title
NZ734395A NZ734395B2 (en) 2015-01-12 2015-06-12 System and method for embedded operating system achieving bluetooth slave device function
SG11201705719XA SG11201705719XA (en) 2015-01-12 2015-06-12 An embedded operating system for achieving bluetooth slave device function and the method thereof
CA2973022A CA2973022C (en) 2015-01-12 2015-06-12 An embedded operating system for achieving bluetooth slave device function and the method thereof
KR1020177022428A KR20170105055A (ko) 2015-01-12 2015-06-12 임베디드 실행 시스템의 블루투스 종속 장치 기능 실현 시스템 및 방법
JP2017554629A JP6526238B2 (ja) 2015-01-12 2015-06-12 組み込み式操作システムを使ってブルートゥース(登録商標)スレーブ設備の機能を実現する操作システムと方法
EP15877542.9A EP3247048B1 (en) 2015-01-12 2015-06-12 System and method for embedded operating system achieving bluetooth slave device function
AU2015376660A AU2015376660A1 (en) 2015-01-12 2015-06-12 System and method for embedded operating system achieving Bluetooth slave device function
US14/763,748 US20160353231A1 (en) 2015-01-12 2015-06-12 An embedded operating system for achieving bluetooth slave device function and the method thereof
ZA2017/05412A ZA201705412B (en) 2015-01-12 2017-08-10 System and method for embedded operating system achieving bluetooth slave device function

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510014816.4A CN105846859B (zh) 2015-01-12 2015-01-12 一种嵌入式操作系统实现蓝牙从设备功能的系统及方法
CN201510014816.4 2015-01-12

Publications (1)

Publication Number Publication Date
WO2016112626A1 true WO2016112626A1 (zh) 2016-07-21

Family

ID=56405172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081393 WO2016112626A1 (zh) 2015-01-12 2015-06-12 一种嵌入式操作系统实现蓝牙从设备功能的系统及方法

Country Status (12)

Country Link
US (1) US20160353231A1 (zh)
EP (1) EP3247048B1 (zh)
JP (1) JP6526238B2 (zh)
KR (1) KR20170105055A (zh)
CN (1) CN105846859B (zh)
AU (2) AU2015376660A1 (zh)
CA (1) CA2973022C (zh)
HK (1) HK1222263A1 (zh)
SG (1) SG11201705719XA (zh)
TW (1) TWI589176B (zh)
WO (1) WO2016112626A1 (zh)
ZA (1) ZA201705412B (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714084A (zh) * 2016-12-19 2017-05-24 四川长虹电器股份有限公司 安卓智能设备快速连接蓝牙的方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112309154A (zh) * 2020-09-28 2021-02-02 惠州市德赛西威智能交通技术研究院有限公司 一种Ble快速启动自动泊车出库方法,设备及汽车
CN113099429B (zh) * 2021-03-06 2023-06-27 深圳市智之祺科技有限公司 基于Android平台的蓝牙主从模式切换系统和方法
CN113950034B (zh) * 2021-10-14 2024-04-26 北京字节跳动网络技术有限公司 蓝牙行为的模拟方法、装置和设备
CN114173315B (zh) * 2022-02-14 2022-06-14 荣耀终端有限公司 蓝牙回连方法及终端设备
CN117412273A (zh) * 2022-07-07 2024-01-16 瑞昱半导体股份有限公司 蓝牙网络协议封包传输装置及方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004034601A1 (en) * 2002-10-08 2004-04-22 Texas Instruments Incorporated Bluetooth transparent bridge
CN101141628A (zh) * 2006-09-07 2008-03-12 环达电脑(上海)有限公司 移动嵌入式设备远程监控系统及方法
CN202750089U (zh) * 2012-04-19 2013-02-20 中国联合网络通信集团有限公司 蓝牙装置和集成式外设
CN204013536U (zh) * 2014-05-30 2014-12-10 深圳市江波龙电子有限公司 蓝牙通信设备及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2991165B2 (ja) * 1997-08-20 1999-12-20 日本電気株式会社 Isdn用端末装置
CA2376589A1 (en) * 2000-06-13 2001-12-20 Jeremy Curtis A bluetooth adaptor
US7127541B2 (en) * 2002-12-23 2006-10-24 Microtune (Texas), L.P. Automatically establishing a wireless connection between adapters
FR2851350B1 (fr) * 2003-02-14 2005-05-20 Baracoda Boitier adaptateur autonome bluetooth pour pour peripherique informatique, adaptateur bluetooth usb maitre et systeme de communication
US8510025B2 (en) * 2009-04-02 2013-08-13 Trafficcast International, Inc. Method and system for a traffic management network
CN102573128B (zh) * 2010-12-22 2014-07-16 深圳市云通时代科技开发有限公司 短距离无线移动终端方法和系统
US9916257B2 (en) * 2011-07-26 2018-03-13 Intel Corporation Method and apparatus for TLB shoot-down in a heterogeneous computing system supporting shared virtual memory
CN204069148U (zh) * 2014-09-16 2014-12-31 安福县海能实业股份有限公司 双向寻找以及无线自拍的装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004034601A1 (en) * 2002-10-08 2004-04-22 Texas Instruments Incorporated Bluetooth transparent bridge
CN101141628A (zh) * 2006-09-07 2008-03-12 环达电脑(上海)有限公司 移动嵌入式设备远程监控系统及方法
CN202750089U (zh) * 2012-04-19 2013-02-20 中国联合网络通信集团有限公司 蓝牙装置和集成式外设
CN204013536U (zh) * 2014-05-30 2014-12-10 深圳市江波龙电子有限公司 蓝牙通信设备及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3247048A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714084A (zh) * 2016-12-19 2017-05-24 四川长虹电器股份有限公司 安卓智能设备快速连接蓝牙的方法
CN106714084B (zh) * 2016-12-19 2019-11-12 四川长虹电器股份有限公司 安卓智能设备快速连接蓝牙的方法

Also Published As

Publication number Publication date
EP3247048A1 (en) 2017-11-22
CN105846859A (zh) 2016-08-10
KR20170105055A (ko) 2017-09-18
AU2015101900A4 (en) 2017-09-28
TW201626845A (zh) 2016-07-16
CN105846859B (zh) 2019-05-24
CA2973022C (en) 2020-09-22
NZ734395A (en) 2020-10-30
JP6526238B2 (ja) 2019-06-05
HK1222263A1 (zh) 2017-06-23
SG11201705719XA (en) 2017-08-30
ZA201705412B (en) 2019-01-30
AU2015376660A1 (en) 2017-08-24
EP3247048A4 (en) 2018-08-08
EP3247048B1 (en) 2021-05-19
TWI589176B (zh) 2017-06-21
JP2018508917A (ja) 2018-03-29
CA2973022A1 (en) 2016-07-21
US20160353231A1 (en) 2016-12-01

Similar Documents

Publication Publication Date Title
WO2016112626A1 (zh) 一种嵌入式操作系统实现蓝牙从设备功能的系统及方法
US8280086B2 (en) Remote control system for a hearing aid
WO2017004982A1 (zh) 智能系统及其实现方法、和用于智能设备的外设
US8620379B2 (en) Windows portable devices interface for Bluetooth low energy devices
JP4237771B2 (ja) ブルートゥース無線装置を備える通信端末間のリンク連結方法
CN203289452U (zh) 一种基于声波通信配对的无线音频系统
JP6571341B2 (ja) オーディオ使用のための電力供給の方法、デバイス及びプログラム
JP6426079B2 (ja) Bluetoothネットワークでデータ通信を中継するための方法および装置
US20100180063A1 (en) Serial pass-through device
KR102482670B1 (ko) 무선 통신 시스템에서 데이터를 송수신하는 전자 장치 및 이를 위한 방법
CN101232310A (zh) 蓝牙模块、蓝牙设备及其信息处理方法
CN102082968A (zh) 一种多硬件兼容蓝牙设备驱动系统
WO2020103680A1 (zh) 一种数据通信方法及人机交互系统
CN104469657B (zh) 基于windows操作系统的语音通话系统和设备
NZ734395B2 (en) System and method for embedded operating system achieving bluetooth slave device function
US8983381B2 (en) Multi-mode short-range wireless signal processing apparatus and method
CN202906905U (zh) 一种蓝牙模块
US20070207735A1 (en) Mobile communication terminal having wireless communication module and sound output control method thereof
CN106454705B (zh) 智能骑行多设备无线通讯系统及方法
OA18306A (en) An embedded operation system for achieving bluetooth slave device function and the method thereof
KR200328928Y1 (ko) 이동통신용 기지국 제어기와 개인용 컴퓨터와의 정합장치
KR20170131789A (ko) 음성인식을 이용한 스마트 완구의 제어방법
CN105007305A (zh) 远程控制式电子通信装置
CN117573578A (zh) 一种驱动接口映射控制系统及其控制方法
TWI455549B (zh) 提高手機無線傳輸速率的裝置及方法

Legal Events

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

Ref document number: 14763748

Country of ref document: US

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

Ref document number: 15877542

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2973022

Country of ref document: CA

ENP Entry into the national phase

Ref document number: 2017554629

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2015877542

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 11201705719X

Country of ref document: SG

ENP Entry into the national phase

Ref document number: 20177022428

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015376660

Country of ref document: AU

Date of ref document: 20150612

Kind code of ref document: A