CN113347617A - Method for realizing vehicle-mounted machine Bluetooth data communication and audio call - Google Patents
Method for realizing vehicle-mounted machine Bluetooth data communication and audio call Download PDFInfo
- Publication number
- CN113347617A CN113347617A CN202110604176.8A CN202110604176A CN113347617A CN 113347617 A CN113347617 A CN 113347617A CN 202110604176 A CN202110604176 A CN 202110604176A CN 113347617 A CN113347617 A CN 113347617A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- server
- vehicle
- client
- connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004891 communication Methods 0.000 title claims abstract description 33
- 230000008569 process Effects 0.000 claims abstract description 21
- 230000000977 initiatory effect Effects 0.000 claims abstract description 12
- 230000001360 synchronised effect Effects 0.000 claims abstract description 9
- 230000001960 triggered effect Effects 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 4
- 230000003993 interaction Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000006855 networking Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a method for realizing Bluetooth data communication and audio communication of a vehicle machine, which comprises the steps of starting a local Bluetooth service, starting a module protocol stack by the service, calling a protocol stack interface, and acquiring the Bluetooth name and address display of the vehicle machine; retrieving surrounding visible Bluetooth equipment, initiating connection to a server of a mobile phone side by a client of a vehicle side, actively connecting the client of the vehicle side with the server of the mobile phone side, automatically matching in the connection process, and connecting by agreement of the client and the server; audio connection is established between a server side at the mobile phone side and a client side at the vehicle side, and codec connection is established; when the call is over, the audio connection is released, the same synchronous connection is disconnected, and the audio path is routed to the server side of the mobile phone. The method for realizing the Bluetooth data communication and the audio call of the vehicle machine is loaded on the commercial vehicle, provides a mode for the intelligent cabin of the commercial vehicle to make and receive calls, improves the safety of the call in the cockpit, and improves the tone quality and the sound effect of the call in the cockpit.
Description
Technical Field
The invention relates to the field of intelligent cabin Bluetooth communication, in particular to a method for realizing vehicle-mounted machine Bluetooth data communication and audio communication.
Background
The intelligent cabin is introduced by the flight and ship industries, the automobile cabin refers to the driving and taking space in the automobile, and the intelligent cabin is an intelligent and networking vehicle-mounted product, so that intelligent interactive cabins can be carried out with people, roads and the automobile. The intelligent cockpit is experienced in the interaction that many screens integration (liquid crystal instrument, HUD, well accuse screen, back seat amusement) realized. The intelligence goal is to reduce human intervention. Today, automobile development is undergoing revolution: intellectualization, networking, electromotion and sharing. With the rapid development of the internet and 5G technologies, the intelligent cockpit redefines the way users interact with the car. The application of the digital instrument and the central control is combined with the application of gestures, voice interaction, wireless charging technology and the like, so that the application of physical keys is greatly reduced. And the integration of multiple screens and multiple functions will also bring more convenient and comfortable driving space for the driver. The system mainly comprises a liquid crystal instrument, a Bluetooth telephone, intelligent voice interaction, commercial vehicle customized navigation, online upgrading, driving assistance, mobile phone interconnection, whole vehicle control, vehicle networking and the like. The telephone and the music are used as necessary products for improving user experience of the cabin, the Bluetooth module design and software data interaction which the Bluetooth telephone and the Bluetooth music depend on are complex, and the Bluetooth module establishes connection, communication management, an address list, communication records and communication audio channel control.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method for realizing the Bluetooth data communication and the audio communication of the vehicle machine, which has the advantages of good safety, good tone quality and sound effect and wider application range.
In order to achieve the above object, the method for implementing bluetooth data communication and audio communication of a vehicle machine according to the present invention comprises:
the method for realizing the Bluetooth data communication and the audio communication of the vehicle machine is mainly characterized by comprising the following steps of:
(1) starting a local Bluetooth service, starting a module protocol stack by the service, calling a protocol stack interface, and acquiring the name and address display of the local Bluetooth;
(2) retrieving surrounding visible Bluetooth equipment, initiating connection to a server of a mobile phone side by a client of a vehicle side, actively connecting the client of the vehicle side with the server of the mobile phone side, automatically matching in the connection process, and connecting by agreement of the client and the server;
(3) audio connection is established between a server side at the mobile phone side and a client side at the vehicle side, and codec connection is established;
(4) when the call is over, the audio connection is released, the same synchronous connection is disconnected, and the audio path is routed to the server side of the mobile phone.
Preferably, the step (3) specifically includes the following steps:
(3.1) judging whether the calling is called by the server side at the mobile phone side, if so, continuing the step (3.2); otherwise, continuing the step (3.3);
(3.2) calling out a call by the mobile phone, initiating audio connection by a server side at the mobile phone side, and initializing a codec connection establishment process;
and (3.3) calling out a telephone by the client side at the car side, initiating audio connection, and triggering the server side at the mobile phone side to establish a codec connection process.
Preferably, the step (3.3) specifically includes the following steps:
the client side of the vehicle side sends a connection request to the server side of the mobile phone side through the serial port, the server side of the mobile phone side is triggered to initiate an encoding and decoding connection process, if the server side of the mobile phone side determines to initiate the encoding and decoding connection process, the OK is replied, and if the ERROR is not replied.
Preferably, the step (2) of matching the server at the mobile phone side and the client at the car side specifically includes the following steps:
the server side at the mobile phone side and the client side at the vehicle side agree on the physical channel;
establishing a common time anchor point by a server side at the mobile phone side and a client side at the vehicle machine side, and setting time origin points at the two ends as the same point;
the server side at the mobile phone side and the client side at the vehicle side are synchronized in clock, namely, both ends know the time for the other side to send and receive the data packets;
after the server side at the mobile phone side and the client side at the vehicle side are successfully connected, the radio frequency transmitting and receiving windows of the server side at the mobile phone side and the client side at the vehicle side are both periodically switched.
Preferably, the bluetooth protocol for connecting the server at the mobile phone side and the client at the vehicle side is HFP, A2DP, PBAP or AVRCP.
The method for realizing the Bluetooth data communication and the audio call of the vehicle machine is loaded on a commercial vehicle, provides a new generation of intelligent cabin of the commercial vehicle for dialing and answering calls, improves the safety of the call in a cockpit, and improves the tone quality and sound effect of the call in the cockpit.
Drawings
Fig. 1 is a schematic diagram of a connection structure of a method for implementing bluetooth data communication and audio communication of a vehicle.
Fig. 2 is a schematic structural diagram of a method for implementing bluetooth data communication and audio call of a vehicle machine according to the present invention.
Fig. 3 is a call initiating flow diagram at the mobile phone side of the method for implementing vehicle bluetooth data communication and audio call of the present invention.
Fig. 4 is a car-machine-side originating call flow chart of the method for implementing car-machine bluetooth data communication and audio call of the present invention.
Fig. 5 is a flowchart of codec connection establishment according to the method for implementing bluetooth data communication and audio call in a vehicle device of the present invention.
Detailed Description
In order to more clearly describe the technical contents of the present invention, the following further description is given in conjunction with specific embodiments.
The method for realizing the Bluetooth data communication and the audio communication of the vehicle machine comprises the following steps:
(1) starting a local Bluetooth service, starting a module protocol stack by the service, calling a protocol stack interface, and acquiring the name and address display of the local Bluetooth;
(2) retrieving surrounding visible Bluetooth equipment, initiating connection to a server of a mobile phone side by a client of a vehicle side, actively connecting the client of the vehicle side with the server of the mobile phone side, automatically matching in the connection process, and connecting by agreement of the client and the server;
(3) audio connection is established between a server side at the mobile phone side and a client side at the vehicle side, and codec connection is established;
(4) when the call is over, the audio connection is released, the same synchronous connection is disconnected, and the audio path is routed to the server side of the mobile phone.
As a preferred embodiment of the present invention, the step (3) specifically comprises the following steps:
(3.1) judging whether the calling is called by the server side at the mobile phone side, if so, continuing the step (3.2); otherwise, continuing the step (3.3);
(3.2) calling out a call by the mobile phone, initiating audio connection by a server side at the mobile phone side, and initializing a codec connection establishment process;
and (3.3) calling out a telephone by the client side at the car side, initiating audio connection, and triggering the server side at the mobile phone side to establish a codec connection process.
As a preferred embodiment of the present invention, the step (3.3) specifically comprises the following steps:
the client side of the vehicle side sends a connection request to the server side of the mobile phone side through the serial port, the server side of the mobile phone side is triggered to initiate an encoding and decoding connection process, if the server side of the mobile phone side determines to initiate the encoding and decoding connection process, the OK is replied, and if the ERROR is not replied.
As a preferred embodiment of the present invention, the matching between the server at the mobile phone side and the client at the car side in step (2) specifically includes the following steps:
the server side at the mobile phone side and the client side at the vehicle side agree on the physical channel;
establishing a common time anchor point by a server side at the mobile phone side and a client side at the vehicle machine side, and setting time origin points at the two ends as the same point;
the server side at the mobile phone side and the client side at the vehicle side are synchronized in clock, namely, both ends know the time for the other side to send and receive the data packets;
after the server side at the mobile phone side and the client side at the vehicle side are successfully connected, the radio frequency transmitting and receiving windows of the server side at the mobile phone side and the client side at the vehicle side are both periodically switched.
In a preferred embodiment of the present invention, the bluetooth protocol for connecting the server on the mobile phone side and the client on the vehicle side is HFP, A2DP, PBAP, or AVRCP.
The invention aims to provide incoming and outgoing calls of a Bluetooth telephone, downloading of a Bluetooth telephone book, downloading of a call record and switching of call audio in an intelligent cabin interaction system of a vehicle, and improve visual and convenient experience of a user in a vehicle for calling.
Different from a mature consumer product, the car machine has a complex electromagnetic environment, structure and space in the car, and the Bluetooth module and the antenna are embedded in the car machine module. In 12.3 cun touch screen car machine central control, Android O operating system platform, car machine bluetooth data interaction audio frequency conversation flow is as follows:
1. the fixed page displays an operable Bluetooth switch, after the switch is clicked, a local Bluetooth service is started, a protocol stack of a module is started by the service, a protocol stack interface is called, and the service passes through a frame layer, a native layer, a data interaction layer, a link layer and a physical layer of the system from top to bottom. And the enabling module acquires the Bluetooth name B and the address display of the local machine.
2. And searching surrounding visible Bluetooth devices of the vehicle-mounted equipment Bluetooth device, and after a certain device A in the search result is selected, initiating SDP connection to the server A by the vehicle-mounted equipment client B, actively connecting the vehicle-mounted equipment client B to the server B, automatically matching in the connection process, and connecting the vehicle-mounted equipment client B and the server B only by the agreement of the two parties AB. HFP/A2DP/PBAP/AVRCP Bluetooth protocol connection.
The device A and the device B agree on a physical channel to be used next;
the device A and the device B establish a common time anchor point, and the time origin points of the device A and the device B are changed into the same point;
the clock synchronization of the device A and the clock synchronization of the device B are successful, namely both sides know the time of the data packet transmission and the data packet reception of the other side;
after the connection is successful, the radio frequency transmitting and receiving windows of the device A and the device B are both periodically switched.
3. Hands-free HF is a remote audio input and output mechanism for devices that act as audio gateways and provide several remote control functions. The Audio Gateway (AG) is an audio device input output gateway. In the vehicle equipment system, the mobile phone side is the AG side, and the vehicle side is the HF side. When the mobile phone calls out, the AG side initiates audio connection and initializes the connection establishment process of the coder and the decoder.
When the car side makes an outgoing call, the HF side initiates an audio connection, and the establishment of the audio connection initiated by the HF triggers the AG to establish a codec connection process, since only the AG knows the codec format. HF sends AT + BBC command to AG to trigger AG to initiate coding and decoding connection process. If AG decides to initiate the connection process of coding and decoding, then replies OK, otherwise replies ERROR.
4. When the call is over, the audio connection is released, the same synchronous connection is broken, and the audio path is routed to the AG.
In the specific implementation mode of the invention, a 2.4G frequency band Bluetooth communication module is designed and embedded into a vehicle equipment circuit board, a schematic diagram and a PCB are designed according to a module data manual peripheral circuit reference design, after a hardware equipment printing device is complete, a software system integrates a Bluetooth protocol stack and upper layer interactive application, an external antenna is installed and installed in a commercial vehicle cab provided with a microphone and a loudspeaker, and the vehicle supports touch screen calling, answering, hanging up and rejecting, and a phone book and an address book are synchronous.
The method for realizing the Bluetooth data communication and the audio call of the vehicle machine is loaded on a commercial vehicle, provides a new generation of intelligent cabin of the commercial vehicle for dialing and answering calls, improves the safety of the call in a cockpit, and improves the tone quality and sound effect of the call in the cockpit.
In this specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Claims (5)
1. A method for realizing vehicle machine Bluetooth data communication and audio communication is characterized by comprising the following steps:
(1) starting a local Bluetooth service, starting a module protocol stack by the service, calling a protocol stack interface, and acquiring the name and address display of the local Bluetooth;
(2) retrieving surrounding visible Bluetooth equipment, initiating connection to a server of a mobile phone side by a client of a vehicle side, actively connecting the client of the vehicle side with the server of the mobile phone side, automatically matching in the connection process, and connecting by agreement of the client and the server;
(3) audio connection is established between a server side at the mobile phone side and a client side at the vehicle side, and codec connection is established;
(4) when the call is over, the audio connection is released, the same synchronous connection is disconnected, and the audio path is routed to the server side of the mobile phone.
2. The method for implementing the bluetooth data communication and the audio call of the car machine according to claim 1, wherein the step (3) specifically comprises the following steps:
(3.1) judging whether the calling is called by the server side at the mobile phone side, if so, continuing the step (3.2); otherwise, continuing the step (3.3);
(3.2) calling out a call by the mobile phone, initiating audio connection by a server side at the mobile phone side, and initializing a codec connection establishment process;
and (3.3) calling out a telephone by the client side at the car side, initiating audio connection, and triggering the server side at the mobile phone side to establish a codec connection process.
3. The method for implementing the bluetooth data communication and audio call of the vehicle machine according to claim 2, wherein the step (3.3) specifically comprises the following steps:
the client side of the vehicle side sends a connection request to the server side of the mobile phone side through the serial port, the server side of the mobile phone side is triggered to initiate an encoding and decoding connection process, if the server side of the mobile phone side determines to initiate the encoding and decoding connection process, the OK is replied, and if the ERROR is not replied.
4. The method for implementing the bluetooth data communication and the audio call of the vehicle machine according to claim 1, wherein the step (2) of matching the server at the mobile phone side and the client at the vehicle machine side specifically comprises the following steps:
the server side at the mobile phone side and the client side at the vehicle side agree on the physical channel;
establishing a common time anchor point by a server side at the mobile phone side and a client side at the vehicle machine side, and setting time origin points at the two ends as the same point;
the server side at the mobile phone side and the client side at the vehicle side are synchronized in clock, namely, both ends know the time for the other side to send and receive the data packets;
after the server side at the mobile phone side and the client side at the vehicle side are successfully connected, the radio frequency transmitting and receiving windows of the server side at the mobile phone side and the client side at the vehicle side are both periodically switched.
5. The method of claim 1, wherein the bluetooth protocol for connecting the server at the mobile phone side and the client at the car side is HFP, A2DP, PBAP or AVRCP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110604176.8A CN113347617A (en) | 2021-05-31 | 2021-05-31 | Method for realizing vehicle-mounted machine Bluetooth data communication and audio call |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110604176.8A CN113347617A (en) | 2021-05-31 | 2021-05-31 | Method for realizing vehicle-mounted machine Bluetooth data communication and audio call |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113347617A true CN113347617A (en) | 2021-09-03 |
Family
ID=77473355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110604176.8A Pending CN113347617A (en) | 2021-05-31 | 2021-05-31 | Method for realizing vehicle-mounted machine Bluetooth data communication and audio call |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113347617A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933349A (en) * | 2006-09-28 | 2007-03-21 | 熊猫电子集团有限公司 | Method for realizing vehicular blue-tooth hand free telephone dialing by blue-tooth and voice identification technology |
US20100273417A1 (en) * | 2009-04-23 | 2010-10-28 | Motorola, Inc. | Establishing Full-Duplex Audio Over an Asynchronous Bluetooth Link |
CN101924582A (en) * | 2010-07-29 | 2010-12-22 | 上海慧翰信息技术有限公司 | Communication device and middleware thereof |
CN102545965A (en) * | 2010-12-31 | 2012-07-04 | 上海博泰悦臻电子设备制造有限公司 | Bluetooth-based mobile phone as well as cooperation processing method and system of vehicle-mounted device |
CN110913014A (en) * | 2019-12-10 | 2020-03-24 | 扬州航盛科技有限公司 | Local hotspot-based noninductive interconnection method for Android mobile phone and intelligent cockpit |
CN111132117A (en) * | 2020-02-24 | 2020-05-08 | 中国第一汽车股份有限公司 | Bluetooth connection method, device, vehicle and storage medium |
-
2021
- 2021-05-31 CN CN202110604176.8A patent/CN113347617A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933349A (en) * | 2006-09-28 | 2007-03-21 | 熊猫电子集团有限公司 | Method for realizing vehicular blue-tooth hand free telephone dialing by blue-tooth and voice identification technology |
US20100273417A1 (en) * | 2009-04-23 | 2010-10-28 | Motorola, Inc. | Establishing Full-Duplex Audio Over an Asynchronous Bluetooth Link |
CN101924582A (en) * | 2010-07-29 | 2010-12-22 | 上海慧翰信息技术有限公司 | Communication device and middleware thereof |
CN102545965A (en) * | 2010-12-31 | 2012-07-04 | 上海博泰悦臻电子设备制造有限公司 | Bluetooth-based mobile phone as well as cooperation processing method and system of vehicle-mounted device |
CN110913014A (en) * | 2019-12-10 | 2020-03-24 | 扬州航盛科技有限公司 | Local hotspot-based noninductive interconnection method for Android mobile phone and intelligent cockpit |
CN111132117A (en) * | 2020-02-24 | 2020-05-08 | 中国第一汽车股份有限公司 | Bluetooth connection method, device, vehicle and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101494474B (en) | Method and terminal equipment for automatic connection of Bluetooth vehicle-mounted hands-free equipment | |
CN102420640B (en) | In-vehicle apparatus | |
EP1677493A1 (en) | Method for offering TTY/TTD service in a wireless terminal and wireless terminal implementing the same | |
JP4687796B2 (en) | In-vehicle device with hands-free function | |
US7027774B2 (en) | Method for direct voice telephone call using bluetooth terminal | |
US20100048133A1 (en) | Audio data flow input/output method and system | |
US9924014B2 (en) | Cordless telephone equipment, cordless telephone system, and cordless telephone communication method | |
US20080039153A1 (en) | Hands-free apparatus | |
JP4225222B2 (en) | In-vehicle hands-free device | |
US20040214555A1 (en) | Automatic control of simultaneous multimodality and controlled multimodality on thin wireless devices | |
CN102545975B (en) | In-vehicle apparatus | |
CN102170617A (en) | Mobile terminal and remote control method thereof | |
US7079871B2 (en) | Portable telephone and method of displaying data thereof | |
JP2010136074A (en) | In-vehicle apparatus having hands-free function | |
JP2010136075A (en) | In-vehicle apparatus having hands-free function | |
CN101098480A (en) | Set up box system and method for implementing IP communication | |
JP2005110049A (en) | Handsfree communication control method, portable wireless communication device, and handsfree system | |
CN101834961A (en) | Method and system for dialing network telephone by using mobile phone | |
CN103546422A (en) | Vehicular screen multiplexing system, application method thereof and multimedia interaction system | |
JP2005303435A (en) | Handsfree system, mobile communication terminal and handsfree control method | |
CN113347617A (en) | Method for realizing vehicle-mounted machine Bluetooth data communication and audio call | |
CN100442674C (en) | Communication apparatus | |
JP2010278857A (en) | Hands-free cellular phone | |
JPH11511635A (en) | Method and arrangement for processing a protocol between telecommunications devices in a wireless telecommunications system | |
JP6319722B2 (en) | Hands-free equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210903 |