OA18306A - An embedded operation system for achieving bluetooth slave device function and the method thereof - Google Patents

An embedded operation system for achieving bluetooth slave device function and the method thereof Download PDF

Info

Publication number
OA18306A
OA18306A OA1201700261 OA18306A OA 18306 A OA18306 A OA 18306A OA 1201700261 OA1201700261 OA 1201700261 OA 18306 A OA18306 A OA 18306A
Authority
OA
OAPI
Prior art keywords
bluetooth
mobile terminal
operating system
interface
module
Prior art date
Application number
OA1201700261
Inventor
Jiaqi SHI
Original Assignee
Yutou Technology (Hangzhou) Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yutou Technology (Hangzhou) Co., Ltd. filed Critical Yutou Technology (Hangzhou) Co., Ltd.
Publication of OA18306A publication Critical patent/OA18306A/en

Links

Abstract

The invention discloses an embedded operating system for achieving bluetooth slave device function and the method thereof, wherein comprising: a mobile terminal, which provided with an embedded operating system; a bluetooth module, configured to at least work in a bluetooth slave device mode; an interface module, connecting the bluetooth module and the mobile terminal; wherein, the mobile terminal drives the bluetooth module to operate through the interface module. Using the device described above, achieves the supporting function of adding bluetooth slave devices to the operating system without modifying the source code of existing embedded operating system, thus the extension of the bluetooth protocol stack will not be affected by the interface and the service of the operating system any more, improving extensibility and flexibility of the entire system.

Description

The invention discloses an embedded operating system for achieving bluetooth slave device function and the method thereof, wherein comprising: a mobile terminal, which provided with an embedded operating system; a bluetooth module, configured to at least work in a bluetooth slave device mode; an interface module, connecting the bluetooth module and the mobile terminal; wherein, the mobile terminal drives the bluetooth module to operate through the interface module. Using the device described above, achieves the supporting function of adding bluetooth slave devices to the operating system without modifying the source code of existing embedded operating system, thus the extension of the bluetooth protocol stack will not be affected by the interface and the service ofthe operating system any more, improving extensibility and flexibility ofthe entire system.
O.A.P.I. - B.P. 887, YAOUNDE (Cameroun) - Tel. (237) 222 20 57 00-Site web: http:/www.oapi.int - Email: oapi@oapi.int
AN EMBEDDED OPERATING SYSTEM FOR ACHIEVING BLUETOOTH SLAVE DE VICE FUNCTION AND THE METHOD THEREOF
BACKGROUND OFTHE INVENTION
1. Field of the Invention
The invention relates to a field of communication technology, especially to an embedded operating system for achieving Bluetooth slave device function and the method thereof.
2. Description of the Related Art
With the development of the wireless communication technology and the expansion of market size, Bluetooth technology is being applied more broadly and involving more and more people. From cell phones to the smart home, from the sensor network to home service robots, Bluetooth technology has been widely utilized in a wide variety of applications and devices.
Bluetooth technology is a short distance wireless transmission technology, which can solve communication problems among identical devices or different devices such as cell phones, computers, sensors and even robots. Bluetooth Protocol and Profile are important parts of Bluetooth technology, wherein Bluetooth Protocol defines the communication mode between it and other Systems (protocols), and
PauIJING * π/M PropERiy AnoRrtry PmCREdlTEd AÇENÎ describes the signal timing and the communication data agency; wherein Bluetooth Profile, directing at some applications and particular scénarios, defines protocols being adopted by these scénarios and the task sequence of various protocols, so as to ensure the interactive operability among devices. Most of the Bluetooth Profiles classify the device as the master device and the slave device. For example, Bluetooth Advanced Audio Distribution Profile (A2DP) implementing audio distribution profile model classifies the device as the master device (SRC) and the slave device (SNK), wherein the audio stream sender is SRC, and the receiver is SNK. At présent, ali the cell phones and tablet PCs hâve achieved the master device (SRC) in A2DP, these devices based on IOS or Android intelligent operating system, utilize Bluetooth Protocol Stack of the operating system itself to implement the master device (SRC) defined in the profile. With respect to the device, based on Android intelligent operating system, Protocol Stack could be BIuz or Bluedroid. These Protocol Stack software hâve achieved many profiles of Bluetooth, and their architectures are shown in Figure 1.
However, as shown in Figure 1, because the operating system manufacturer underestimates application scénarios of intelligent devices, the majority of profiles (such as HFP, A2DP, AVRCP) in Bluetooth Protocol Stack of the embedded operating system, such as Linux, Android and so on, do not include the slave device function. At présent, the domestic and overseas intelligent devices based on an embedded operating system, such as cell phones, tablet PCs, smart TVs, the smart home and so on, could only achieve the master device function of these profiles. Bluetooth devices configured in the intelligent devices only include some basic Bluetooth protocols, and the upper layer protocol and profile is implemented in the operating system. With the development of robot technology, some robots, based on an embedded operating system like embedded Linux, Android and others, need the slave device function of the profile, such as A2DP, HFP, AVRCP and so on, therefore, the industry needs to implement the technical measures of the embedded operating system achieving Bluetooth slave device.
SUMMARY OFTHE INVENTION
Directing at the problem that the existing embedded operating system is unachievable with Bluetooth slave device function, the invention provides an embedded operating system achieving Bluetooth slave device and the method thereof.
The technical solution of the invention is:
An embedded operating system for achieving Bluetooth slave device function, comprising:
A mobile terminal, provided with an embedded operating system;
A Bluetooth module, configured to at least work in Bluetooth t 2 Λ 21
»1 PropERiy Λττογ OAPlACCREdlTtdAqEN slave device mode;
An interface module, connecting the Bluetooth module and the mobile terminal; the mobile terminal drives the Bluetooth module to operate through the interface module.
Preferably, the Bluetooth module comprises:
A control unit;
A Bluetooth receiving and transmitting unit, connected to the control unit;
An extemal interface unit, respectively connected to the control unit and the interface module;
A Bluetooth antenna, connected to the Bluetooth receiving and transmitting unit;
The control unit is connected to the mobile terminal through the extemal interface unit, and is configured, according to the instructions from the mobile terminal, to control the Bluetooth receiving and transmitting unit to communicate with the mobile terminal through the extemal interface unit.
Preferably, the control unit comprises:
A first storage unit, configured to store the complété protocol stack of the Bluetooth slave device function, said complété protocol stack of Bluetooth slave device function being configured to control the operation of the Bluetooth receiving and transmitting unit;
A second storage unit, configured to store the interface protocol stack, said interface protocol stack being configured for communication between the Bluetooth module and the mobile terminal.
Preferably, the external interface unit and the interface module are serial interfaces.
Preferably, the serial interfaces could be serial asynchronous interfaces, serial peripheral interfaces, internai intégration bus or the serial fast input and output interface.
Preferably, the embedded operating system is Android or Linux.
Preferably, further comprising:
A method for using an embedded operating system to achieve Bluetooth slave device function, comprising:
Step 1: providing a Bluetooth module, the Bluetooth module, at minimum, being configured to work in Bluetooth slave device mode and to hâve the complété protocol stack of Bluetooth slave device function;
Step 2: connecting the Bluetooth module to a mobile terminal through an interface module;
Step 3: the mobile terminal drives the Bluetooth module to operate its own the protocol stack of Bluetooth slave device function;
Step 4: the Bluetooth module conducts data communication with the mobile terminal through the interface module.
Preferably, the interface module is a serial interface.
Preferably, the mobile terminal employs an operating system, which is Android or Linux.
The benefit of the invention compared to the prior art is:
Using présent system and method thereof, makes the technical solution different from the current solution in which the Bluetooth protocol stack software is integrated within the operating system. The invention utilizes extra hardware to implement and handle the Bluetooth protocol stack, then associâtes Bluetooth profile, which is the complété external Bluetooth protocol stack, including master-slave devices, with the embedded operating system through the software and hardware interface profile, thus achieving the supporting function of addïng Bluetooth slave devices to the operating system without modifying the source code of existing embedded operating system; meanwhile, the invention does not couple with the operating system, having portability, with which it can be easily transplanted into various embedded operating Systems after the completion of a Bluetooth protocol stack, even into a closed-source operating system, thus without affecting by the interface and the service of the operating system any more, improving extensibility and flexibility of the entire system.
BRIEF DESCRIPTIONS OF THE DRAWINGS
Figure 1 is an architecture diagram of the protocol stack of the Bluetooth software in the art;
Figure 2 ts a system princîple diagram of the présent invention;
Figure 3 is a model diagram of the 4 layers of software and hardware interface spécification of the interface module according to the invention;
Figure 4 is a driver architecture diagram of an embodiment based on Android intelligent operating system;
Figure 5 is a flow chart of the method of the invention.
DETAILED DESCRIPTIONS
The following is a further description of the invention, which combines the drawing and the embodiments, and it is not to be the limitation for the invention.
As shown in Figure 2, the technical solution of the présent invention discloses the embedded operating system, achieving Bluetooth slave device function, wherein it comprises: a mobile terminal 1, provided with an embedded operating system; a Bluetooth module 2, which configured to at least work in Bluetooth slave device mode; an interface module 3, connecting the Bluetooth module 2 and the mobile terminal 1; the mobile terminal 1 drives the Bluetooth module 2 to
--- PauI JlNG f™1 p^fdyAnoRNEy * OAPlACCREcflTEdAqENT operate through the interface module 3.
In the above technical solution, with an extemal Bluetooth module 2, which, at minimum, works in Bluetooth slave device mode, it can make the mobile terminal 1 communicate with the extemal Bluetooth master device in slave device mode, the Bluetooth module 2 communicates with the mobile terminal 1 through the interface module 3, driving the Bluetooth module 2 working by the mobile terminal 1.
Preferably, the Bluetooth module 2 comprises: a control unit 21; a Bluetooth receiving and transmitting unit 22, connected to the control unît 21; an extemal interface unit 23, respectively connected to the control unit 21 and the interface module 3; a Bluetooth antenna 24, connected to the Bluetooth receiving and transmitting unit 22.
The control unît 21 is connected to the mobile terminal through the extemal interface unit, and is configured, according to the instructions from the mobile terminal, to control the Bluetooth receiving and transmitting unit 22 to communicate with the mobile terminal 1 through the extemal interface unit 23. At the same time, under the control of the control unit 21, the Bluetooth receiving and transmitting unit 22 communicates with extemal Bluetooth master device in the form of Bluetooth slave device, and the Bluetooth antenna 24 is used to transmit and receive radio signais.
Preferably, the control unit 21 comprises:
A first storage unit 211, applied to storing the complété protocol stack of Bluetooth slave device fonction, said complété protocol stack of Bluetooth slave device fonction is used to control the work of the Bluetooth receiving and transmitting unit 22;
A second storage unit 212, responsible for storing the interface protocol stack; said interface protocol stack is used to allow communication between the Bluetooth module 2 and the mobile terminal 1.
In a préférable embodiment, the control unit 21 could be formed by a single chip micyoco with low power consumption. The protocol stack of Bluetooth slave device fonction could be developed in the single chip micyoco, written in C language, which would form the first storage unit 211 with the storage space of the single chip micyoco. Additionally, the second storage unit 212 could also be formed in the storage space of the single chip micyoco, which can store drivers and the interface protocol stack of the external interface unit 23.
Through the Bluetooth receiving and transmitting unît 22, the Bluetooth module 2 receives the Bluetooth data packets from the Bluetooth antenna 24, after treatment of the protocol stack in the control unit 21, transmits the data to the mobile terminal 1, or receives the data from the mobile terminal 1 then encapsulating as Bluetooth data packets, transmitting to the Bluetooth receiving and transmitting unit 22 through the Bluetooth antenna 24.
r
Preferably, the external interface unit 23 and the interface module 3 are serial interfaces. As a préférable embodiment, the external interface unit 23 could employ a Universal Asynchronous Receiver and Transmitter (UART), or a Serial Peripheral Interface (SPI), or an Inter-Integrated Circuit (I2C), or a Serial Rapid Input Output (SRIO).
In the above technical solution, the software and hardware interface profile of the interface module 3 is a bridge, which connects the Bluetooth module 2 with the mobile terminal 1. The profile could be a spécifie hardware communication interface in the hardware and be a layer of communication protocol stack within the software The protocol stack defines the data packet format and transfer timing between the Bluetooth module 2 and the mobile terminal 1. As shown in Figure 3, the protocol stack consists of 4 layers, which are the application layer, the transport layer, the data link layer and the physical layer, respectively. The application layer serves the application program directly, specifically orienting some definite Bluetooth profile application to formulate the data packet format and transfer timing. The transport layer takes charge of transmission and the control of data, thus providing a dependable data exchanging function in end-to-end service. The function of the data link layer is to provide the upper layer with transparent data transmission in basic services. The physical layer defines supplied mechanical, electrical, functional, and normative features, based on création, maintenance, and removal of the physical link, required in data transmission. In a more préférable embodiment, the interface module 3 can be configured inside the mobile terminal 1, consisting of the software and hardware of the mobile terminal 1.
In the above technical solution, the mobile terminal 1 further comprises a driver of an embedded operating system, the driver runs inside the operating system of the mobile terminal 1, which specifically takes charge of receiving the requirements of the application program, encapsulating the requirements into the data packet, then transmitting them to the Bluetooth module 2 through the interface module 3, or receiving the notice from the Bluetooth module 2 and sending the notice to upper layer application running in the mobile terminal 1.
In a préférable embodiment, in an intelligent robot based on Android embedded operating system, the intelligent robot needs to hâve the functions of Bluetooth phone and Bluetooth music. First, a user uses the cell phone to make Bluetooth pairing with the robot, the user then can interact with the robot, commanding the robot to make calls or play music in the cell phone via Bluetooth. In this case, the robot needs to hâve the slave device function of Bluetooth profile such as A2DP, HFP, AVRCP.
At présent, traditional Android embedded operating system does not support the slave device function. After employing the system, n
according to the présent invention, the intelligent robot is an embodiment of mobile terminal I in the above technical solution, in this case, it does not hâve Android native Bluetooth protocol stack, and could use the protocol stack in the Bluetooth module 2, wherein the protocol stack in the Bluetooth module 2 includes complété A2DP, HFP, AVRCP Bluetooth slave device function. Now, using the serial interface (namely the embodiment of interface module 3) as the communication interface connecting the mobile terminal 1 with the Bluetooth module 2, achieving the driver and service based on Android as shown in Figure 4. So the robot can achieve the function of making calls or playing music by Bluetooth.
Take the phone call, as an example, for demonstratîng its workflow: at first, a user commands a robot to make calls, and the robot invokes application after receiving the command, the application encapsulâtes contents of the command into data packets according to the model in Figure 3, then transmits data packets to the Bluetooth module 2; the Bluetooth module 2 unpacks data packets, then executes the phone call process prescribed in HFP through the Bluetooth protocol stack, thus achieving the function of calling Bluetooth phone.
In a more préférable embodiment, the embedded operating system is Android or Linux.
The technical solution in the présent invention further comprises:
A method of an embedded operating system achieving Bluetooth slave device function, as shown in Figure 5, comprises the following steps:
Step 1: providing a Bluetooth module, the Bluetooth module, at minimum, being configured to work in Bluetooth slave device mode and to hâve complété protocol stack of the Bluetooth slave device function;
Step 2: connecting the Bluetooth module to a mobile terminal through an interface module;
Step 3: the mobile terminal drives the Bluetooth module to operate its own the protocol stack of Bluetooth slave device function;
Step 4: the Bluetooth module conducts data communication with the mobile terminal through the interface module.
Preferably, the interface module is a serial interface.
Preferably, the mobile terminal employs an operating system, which is Android or Linux.
In conclusion, using the device described above, which makes the présent invention different from the current solution, which has the Bluetooth protocol stack software integrated within the inside of the operating system. The invention utilizes extra hardware to implement and handle the Bluetooth protocol stack, then associâtes the Bluetooth profile, intelligent devices required, which is the complété extemal Bluetooth protocol stack, including master-slave devices, with the embedded 13
V operating system in mobile terminal through the software and hardware interface, thus achieving the supporting function of adding Bluetooth slave devices to the operating system without modifying the source code of the existing embedded operating system; meanwhile, the invention does not couple with the operating system, having portability, with which it can be easily transplanted into various embedded operating Systems after the completion of a Bluetooth protocol stack, even into a closed-source operating system, thus without a Bluetooth protocol stack affected by the interface and the service ofthe operating system any more, improving extensibility and flexibility of the entire system.
The above description is only the preferred embodiments of the invention, and it does not limit the implement method and protecting scope of the invention. It is obvious for the skilled in the art that the changes and variations made by the spécification and drawings of the invention should fall into the scope of the invention.

Claims (13)

1. An embedded operating system for achieving Bluetooth slave device function, wherein comprising:
a mobile terminal, provided with an embedded intelligent operating system;
a Bluetooth module, configured to at least work in a Bluetooth slave device mode;
an interface module, connecting the Bluetooth module and the mobile terminal;
Wherein, the mobile terminal drives the Bluetooth module to operate through the interface module.
2. The system as claimed in Claim 1, wherein the Bluetooth module comprises:
a control unit;
a Bluetooth receiving and transmitting unit, connected to the control unît;
an external interface unit, respectively connected to the control unit and the interface module;
a Bluetooth antenna, connected to the Bluetooth receiving and l 2 JlMLîl
PauI 1ING enrlkfwlIfnopEinyAnoiinEy
WïÂPiKàlitdiTEd AÇENT transmitting unit;
Wherein, the control unit is connected to the mobile terminal through the extemal interface unit, and is configured, according to the instructions from the mobile terminal, to control the Bluetooth receiving and transmitting unit to communicate with the mobile terminal through the extemal interface unit.
3. The system as claimed in Claim 2, wherein the control unit comprises:
a first storage unit, configured to store the complété protocol stack of the Bluetooth slave device function, said complété protocol stack of Bluetooth slave device function being configured to control the operation of the Bluetooth receiving and transmitting unit;
a second storage unit, configured to store the interface protocol stack, said interface protocol stack being configured for communication between the Bluetooth module and the mobile terminal.
4. The system as claimed in Claim 2, wherein the extemal interface unit and the interface module are serial interfaces.
5. The system as claimed in Claim 4, wherein the serial interfaces could be serial asynchronous interfaces, serial peripheral interfaces, internai intégration bus or the serial fast input and output interface.
6. The system as claimed in Claim 1, wherein the embedded operating system is Android or Linux.
7. The system as claimed in Claim 2, wherein the embedded operating system is Android or Linux.
8. The system as claimed in Claim 3, wherein the embedded operating system is Android or Linux.
9. The system as claimed in Claim 4, wherein the embedded operating system is Android or Linux.
10. The system as claimed in Claim 5, wherein the embedded operating system is Android or Linux.
11. A method for using an embedded operating system to achieve Bluetooth slave device function, comprising:
Step 1 : providing a Bluetooth module, the Bluetooth module, at minimum, being configured to work in Bluetooth slave device mode and to hâve complété protocol stack of the Bluetooth slave device function;
Step 2: connecting the Bluetooth module to a mobile terminal through an interface module;
Step 3: the mobile terminal drives the Bluetooth module to operate its own the protocol stack of Bluetooth slave device function;
Step 4: the Bluetooth module conducts data communication with the mobile terminal through the interface module.
12. The method as claimed in Claim 11, wherein the interface module is a serial interface.
13. The method as claimed in Claim 12, wherein the mobile terminal employs an operating system which is Android or Linux.
OA1201700261 2015-01-12 2015-06-12 An embedded operation system for achieving bluetooth slave device function and the method thereof OA18306A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510014816.4 2015-01-12

Publications (1)

Publication Number Publication Date
OA18306A true OA18306A (en) 2018-10-03

Family

ID=

Similar Documents

Publication Publication Date Title
AU2015101900A4 (en) System and method for embedded operating system achieving bluetooth slave device function
CN108695921B (en) Data backup method, wireless charging device, mobile terminal and storage medium
EP3091719B1 (en) Method for short-range wireless communication and electronic device using the same
WO2017004982A1 (en) Smart system and implementation method therefor, and peripheral for smart device
JP6571341B2 (en) Power supply method, device and program for audio use
KR102480875B1 (en) Method for reconnecting bluetooth communication and apparatus using the same
CN103945046A (en) Photographing control method and control device
KR102482670B1 (en) An electronic device for transmitting and receiving data in a wireless communication system and a method thereof
CN103425494A (en) Information interaction system of vehicle-mounted terminal and smart mobile terminal
KR20210008039A (en) DCI transmission method, terminal and base station
US20220303746A1 (en) Bluetooth connection method and apparatus, wearable device, and computer-readable storage medium
JP5849857B2 (en) Near field communication device
EP3927014A1 (en) Auxiliary information reporting method and apparatus, and communication device
CN104954476A (en) APP (application) balance car control device and remote network control system
WO2020103680A1 (en) Data communication method, and human-machine interaction system
CN111698668B (en) Wireless communication link establishment method and electronic device supporting same
CN103744478A (en) Bluetooth wireless display and control method thereof
CN102981858B (en) Integrated circuit programming system and method based on mobile device
OA18306A (en) An embedded operation system for achieving bluetooth slave device function and the method thereof
WO2012000395A1 (en) Bluetooth equipment used in engineering machinery and engineering machinery
NZ734395B2 (en) System and method for embedded operating system achieving bluetooth slave device function
CN104202474A (en) Wireless time telling and photographing method
CN109194699B (en) Intelligent Internet of things monitoring system
CN107770246B (en) Internet of things control method and device based on Bluetooth and power line carrier
CN203859747U (en) Bluetooth communication card