Font Size: a A A

Development Of CarLife Software In The Android Car Platform Connect Android Devices

Posted on:2019-10-30Degree:MasterType:Thesis
Country:ChinaCandidate:J MaFull Text:PDF
GTID:2428330548978918Subject:Control Engineering
Abstract/Summary:PDF Full Text Request
With the improvement of people's living standards,cars have become a necessity for most families,and car-mounted platform entertainment systems have become an essential part of people's entertainment on the road.This topic focuses on the CarLife software that connects Android car devices with Android devices.Android mobile phone uses CarLife software provided by Baidu,and the car machine uses its own written CarLife software,through the USB cable to complete the communication and connection with the Android mobile phone,to achieve the car machine sharing mobile phone screen,car player to play mobile phone End audio,vehicle side anti-control and other functions.The car-side interface and function call programming uses the Java language,and the message is delivered using C++.Through the JNI mechanism,the Java and C++ interactions are completed to realize the interconnection between the car and the Android mobile phone.The specific content is:1.According to the software requirements,build a simple vehicle system,using the IMX6 Q core version,IVT Bluetooth i84 module,DSP AKM7738 audio processing module.2.In the Android Studio platform,the six interfaces of the car machine are designed with Java language: ADB help interface,Android help interface,connection interface,boot interface,display icon interface,display interface,and transition logic between interfaces.3.After entering the interface between the vehicle and the mobile phone,the vehicle terminal recognizes the touchscreen operation gesture and coordinates.The coordinates need to be calculated accordingly,mapped to the corresponding coordinates of the mobile phone screen,and passed gestures and coordinate information through the JNI mechanism.Complete the car machine anti-control mobile phone.4.The car terminal connects to the Android phone through the ADB command,and maps the local tcp socket port of the car to the corresponding tcp socket port of the mobile phone,thus establishing command data,video data,music data,navigation sound data,voice data and touch data.The six data channels complete the corresponding functions based on the delivered message.5.After the connection between the car and the mobile phone is established and the two parties complete the parameter exchange,the mobile terminal sends the video stream generated by the H.264 encoding and transmits the video stream through the TCP socket channel.On the car side,after receiving the video data,it is decoded and displayed on the SurFaceView as soon as possible through the MediaCodec class to reduce the delay.6.There are three kinds of audio streams to be transmitted: music sound,navigation sound,and voice sound.The car player via Audio Track class,can receive audio streams,play them,and record audio through AudioRecord.When certain audio modules need to grab audio focus,they can be logically implemented using the pause()function.This topic uses the CarLife software of Baidu Company to design the CarLife connection application on the Android car platform,which realizes the connection with the Android mobile phone,the car machine sharing the mobile phone screen,the car player playing music,the car machine controlling the mobile phone terminal,etc.The function provides a reference for the interconnection between the car platform and the mobile phone.
Keywords/Search Tags:Android car machine, Connection, CarLife, Video, Audio
PDF Full Text Request
Related items