CN110968233A - Music playing switching operation method, system, storage medium and equipment - Google Patents

Music playing switching operation method, system, storage medium and equipment Download PDF

Info

Publication number
CN110968233A
CN110968233A CN201811148205.9A CN201811148205A CN110968233A CN 110968233 A CN110968233 A CN 110968233A CN 201811148205 A CN201811148205 A CN 201811148205A CN 110968233 A CN110968233 A CN 110968233A
Authority
CN
China
Prior art keywords
music
playing
switching operation
operation method
bluetooth
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
Application number
CN201811148205.9A
Other languages
Chinese (zh)
Inventor
田可心
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qinggan Intelligent Technology Co Ltd
Original Assignee
Shanghai Qinggan Intelligent Technology 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 Shanghai Qinggan Intelligent Technology Co Ltd filed Critical Shanghai Qinggan Intelligent Technology Co Ltd
Priority to CN201811148205.9A priority Critical patent/CN110968233A/en
Publication of CN110968233A publication Critical patent/CN110968233A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R11/00Arrangements for holding or mounting articles, not otherwise provided for
    • B60R11/02Arrangements for holding or mounting articles, not otherwise provided for for radio sets, television sets, telephones, or the like; Arrangement of controls thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a music playing switching operation method, a system, a storage medium and equipment. The music playing switching operation method comprises the following steps: establishing an SPP channel with playing software on a vehicle machine or third-party music playing software; acquiring related information such as a playlist and an album; and sending a control instruction. The invention solves the problem that the vehicle machine can not freely switch the multimode operations such as music collection, a play list and the like when playing music. And creatively uses the newly established SPP channel to receive and transmit instructions such as music control (including playing, pausing, next music collection) and the like, switch music play lists, send customized information and the like while not influencing normal music playing.

Description

Music playing switching operation method, system, storage medium and equipment
Technical Field
The present invention relates to a music playing switching method, system, storage medium and device.
Background
In our daily life, a music playing system on a vehicle in a vehicle is required to play music, and more free and complete control over a music playing tool and switching of software pages are further requirements of users.
The existing vehicle machine can not transmit music control instructions (except music playing related control, operations such as music collection and playlist switching), music information, music lists and other data at the same time when playing music through Bluetooth connection. And cannot simultaneously transmit relevant information about third party customization in conjunction with third party music software.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a complete name of the invention for solving the problem that the car machine cannot freely switch between the multimode operations of music collection and playlist when playing music.
To achieve the above and other related objects, the present invention provides a music play switching operation method, including: establishing an SPP channel with playing software on a vehicle machine or third-party music playing software; acquiring related information such as a playlist and an album; and sending a control instruction.
In an embodiment of the present invention, the music playing switching operation method further includes: after the SPP channel is established with the playing software on the vehicle or the third-party music playing software, the method further comprises the following steps: and informing the SPP channel to be successfully established.
In an embodiment of the present invention, the playlist and album information includes: specified playlist information.
In an embodiment of the present invention, the control command includes: music playing instructions and music collection instructions.
In an embodiment of the present invention, before establishing the SPP channel with the on-board device playing software or the third party music playing software, the method further includes: establishing an A2DP channel; transmitting the audio data; and playing the audio data.
In order to achieve the above and other related objects, the present invention provides a music playing switching operating system, which includes a communication module for establishing an SPP channel with playing software on a vehicle or third party music playing software; the processing module is coupled with the communication module and used for acquiring related information such as a playlist and an album; and the sending module is coupled with the processing module and used for sending the control instruction.
In an embodiment of the present invention, the music playing switching operation method further includes: after the SPP channel is established with the playing software on the vehicle or the third-party music playing software, the method further comprises the following steps: and informing the SPP channel to be successfully established.
In an embodiment of the present invention, before establishing the SPP channel with the on-board device playing software or the third party music playing software, the method further includes: establishing an A2DP channel; transmitting the audio data; and playing the audio data.
To achieve the above and other related objects, the present invention provides a computer-readable storage medium having stored thereon a computer program for executing, by a processor, a music play switching operation method according to the present invention.
To achieve the above and other related objects, the present invention provides an apparatus comprising: the memory is used for storing computer programs, and the processor is used for executing the computer programs stored by the memory so as to make the equipment execute the music playing switching operation method.
As described above, the music play switching operation method, system, storage medium, and device of the present invention have the following beneficial effects: the invention solves the problem that the vehicle machine can not freely switch the multimode operations such as music collection, a play list and the like when playing music. And creatively uses the newly established SPP channel to receive and transmit instructions such as music control (including playing, pausing, next music collection) and the like, switch music play lists, send customized information and the like while not influencing normal music playing.
Drawings
Fig. 1A is a schematic flow chart illustrating an implementation of a music playing switching operation method according to an embodiment of the present invention.
Fig. 1B is a schematic flow chart illustrating an implementation of a music playing switching operation method according to an embodiment of the present invention.
Fig. 1C is a schematic flow chart illustrating an implementation of a music playing switching operation method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a music play switching operating system according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Description of the element reference numerals
20 music playing switching operation system
21 communication module
22 processing module
23 sending module
30 device
31 processor
32 memory
S101 to S203
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Referring to fig. 1A, 1B and 1C, the present invention provides a music playing switching operation method, including:
s101, establishing an SPP channel with playing software on a vehicle machine or third-party music playing software;
s102, acquiring related information such as a playlist and an album;
and S103, sending a control command.
In an embodiment of the present invention, the music playing switching operation method further includes:
after the SPP channel is established with the playing software on the vehicle or the third-party music playing software, the method further comprises the following steps:
and informing the SPP channel to be successfully established.
In an embodiment of the present invention, the playlist and album information includes: specified playlist information.
In an embodiment of the present invention, the control command includes: music playing instructions and music collection instructions.
In an embodiment of the present invention, before establishing the SPP channel with the on-board device playing software or the third party music playing software, the method further includes:
s201, establishing an A2DP channel;
s202, transmitting audio data;
and S203, playing by using the audio data.
More specifically, the problem that the car machine can transmit music control instructions (besides music playing related control, operations such as music collection and playlist switching), music information, music lists and other data while playing music only through Bluetooth connection is solved, and information customized by a third party (for example, information such as application Logo) can be transmitted by combining a third party music App. In the scheme, the vehicle machine and the mobile phone establish a music playing channel and simultaneously establish an SPP channel, and the vehicle machine and the mobile phone side perform efficient communication according to a customized protocol based on the channel, on the premise of not influencing normal music playing, perform command receiving and sending such as music control (including playing, pausing, next music collection) and the like, switch a music playing list, send customized information and the like. The problem of when car machine bluetooth broadcast music, car machine control cell-phone music broadcast function singleness is solved, except broadcast control, can also switch the playlist, collect operations such as music.
The bluetooth Serial Port is a device which is based on the SPP protocol (Serial Port profile) and can create a Serial Port between bluetooth devices for data transmission. The purpose of a bluetooth serial port is to guarantee a complete communication path between applications on two different devices (both ends of the communication). For example, between the Bluetooth module (BF10-A) and BF10-A, between the Bluetooth module and the Bluetooth adapter, and between the Bluetooth module and the PDA Bluetooth, the Bluetooth serial port data transmission can be established through SPP Bluetooth serial port service. The purpose of the bluetooth module (BF10-a) is to guarantee a complete communication path between applications on two different devices (both ends of the communication) and to maintain a communication segment between them. An application does not only mean an end-user application, but may also be a higher layer protocol or other service as an end-user application, for example. The bluetooth module (BF10-a) is ready to cover applications communicating with the device serial port. In one simple configuration example, the communication segment is a BT direct link between devices. If the communication segment is another network, the BT is used to establish a path between the device and a network access device (e.g., Modem). The bluetooth module (BF10-a) is only directed to the connection between directly interconnected devices, or the interconnection between a device and a network access device. The bluetooth module (BF10-a) supports other configurations, such as BT communication at one end and a wired interface at the other end, as shown in the second figure below. These devices are not just modems, but provide simple services. The two-end communication device must be compatible with the protocol of the Bluetooth module BF 10-A. The first type of device is a communication terminal device such as a computer, a printer, etc. The second type of device is part of the communications segment, such as a Modem. However, in order to simplify the protocol content, the bluetooth module (BF10-a) protocol does not distinguish between the two devices. Both types of devices are also supported for the transfer of information between the two bluetooth module BF10-a entities, some of which are intended only for the second type of devices. Nor is there a strict division of the information used by the two classes of devices in the protocol. But the user decides which information to use. Since one device does not know the type of other devices on the communication path, each device should send all available information as specified by the protocol. Replacing a serial port line: i use 2 BF10-A bluetooth modules, one is used as a main module + MAX3232(TTL changes to RS232 level chip), and the other is used as a slave module + MAX3232(TTL changes to RS232 level chip), and the corresponding Baud rate is set. The two modules are respectively connected to a PC machine through a DB9 interface. Data transmission can be carried out between the two PC computers through a serial port debugging tool. And the existing Bluetooth adapter forms Bluetooth serial port connection: i adopt a bluetooth adapter to connect the computer, use IVT bluetooth drive, a bluetooth module BF10-A is connected to my singlechip embedded system as the slave module. Using BF10-A, IVT Bluetooth driver software finds BF10-A Bluetooth module, connects and creates serial port reset. At the moment, serial port communication can be carried out between the serial port tool and the single chip microcomputer.
Some characteristics and applications of the SPP bluetooth protocol are for example:
1. how to acquire the bluetooth device to which the current handset has been bound?
// acquire default Bluetooth adapter
BluetoothAdapter mBtAdapter=BluetoothAdapter.getDefaultAdapter();
// obtaining currently available Bluetooth settings
Set<BluetoothDevice>pairedDevices=mBtAdapter.getBondedDevices();
After the current Bluetooth device is obtained, the paired Bluetooth devices of the current mobile phone can be obtained by traversing the pair devices.
2. How to scan for available bluetooth devices nearby?
if(mBtAdapter.isDiscovering()){
mBtAdapter.cancelDiscovery();
}
mBtAdapter.startDiscovery();
ArrayAdapter<String>mNewDevicesAdapter=new ArrayAdapter<String>(this,
R.layout.device_name);
Registration of broadcasts since acquisition of nearby bluetooth devices in android is received via broadcast mechanism
IntentFilter filter=new IntentFilter();
filter.addAction(BluetoothDevice.ACTION_FOUND);
filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
this.registerReceiver(mReceiver,filter);
/**
Device for monitoring searched
*/
private final BroadcastReceiver mReceiver=new BroadcastReceiver(){
@Override
public void onReceive(Context context,Intent intent){
String action=intent.getAction();
if(BluetoothDevice.ACTION_FOUND.equals(action)){
LogUtils.getInstance().e(getClass(),"----ACTION_FOUND---");
BluetoothDevice device=intent
.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
if(device.getBondState()!=BluetoothDevice.BOND_BONDED){
if(!TextUtils.isEmpty(device.getName())){
if (device.getName (). equals ("millet cell phone"))) retaining opening
mNewDevicesAdapter.add(device.getName()+"\n"
+device.getAddress());
}
}
}
}else if(BluetoothAdapter.ACTION_DISCOVERY_FINISHED
.equals(action)){
LogUtils.getInstance().e(getClass(),"----ACTION_DISCOVERY_FINISHED----");
setProgressBarIndeterminateVisibility(false);
setTitle(R.string.select_device);
if(mNewDevicesAdapter.getCount()==0){
String noDevices=getResources().getText(
R.string.none_found_device).toString();
mNewDevicesAdapter.add(noDevices);
}
}
}
};
if(device.getBondState()!=BluetoothDevice.BOND_BONDED):
If the current Bluetooth device is not in the paired state, the device is directly added to the list of available Bluetooth, and I filter out that the Bluetooth name must be 'millet mobile phone'
Bluetooth device action FOUND this action is a bluetooth event that has been discovered;
bluetooth adapter, action _ discover _ FINISHED is an event at the end of a bluetooth scan;
the code for the whole series of processes I sticks to the following:
/**
description of the type Pop-Up Box scanning and connecting Bluetooth device for scanning and connecting Bluetooth device
*@author:zzq
2016-8-5 pm at 03:59:58 am
*/
public class DeviceListActivity extends Activity{
public static String EXTRA_DEVICE_ADDRESS="device_address";
private BluetoothAdapter mBtAdapter;
private ArrayAdapter<String>mPairedDevicesAdapter;
private ArrayAdapter<String>mNewDevicesAdapter;
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.device_list);
setResult(Activity.RESULT_CANCELED);
Button scanButton=(Button)findViewById(R.id.button_scan);
scanButton.setOnClickListener(new OnClickListener(){
public void onClick(View v){
discoverDevice();
}
});
mPairedDevicesAdapter=new ArrayAdapter<String>(this,
R.layout.device_name);
mNewDevicesAdapter=new ArrayAdapter<String>(this,
R.layout.device_name);
// devices already bound
ListView pairedListView=(ListView)findViewById(R.id.paired_devices);
pairedListView.setAdapter(mPairedDevicesAdapter);
pairedListView.setOnItemClickListener(mDeviceClickListener);
// searched available devices
ListView newListView=(ListView)findViewById(R.id.new_devices);
newListView.setAdapter(mNewDevicesAdapter);
newListView.setOnItemClickListener(mDeviceClickListener);
IntentFilter filter=new IntentFilter();
filter.addAction(BluetoothDevice.ACTION_FOUND);
filter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
this.registerReceiver(mReceiver,filter);
// acquire default Bluetooth adapter
mBtAdapter=BluetoothAdapter.getDefaultAdapter();
// obtaining currently available Bluetooth settings
Set<BluetoothDevice>pairedDevices=mBtAdapter.getBondedDevices();
if(pairedDevices.size()>0){
findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);
for(BluetoothDevice device:pairedDevices){
mPairedDevicesAdapter.add(device.getName()+"\n"
+device.getAddress());
}
}else{
String noDevices=getResources().getText(R.string.none_paired)
.toString();
mPairedDevicesAdapter.add(noDevices);
}
}
@Override
protected void onDestroy(){
super.onDestroy();
if(mBtAdapter!=null){
mBtAdapter.cancelDiscovery();
}
this.unregisterReceiver(mReceiver);
}
/**
Scanning locally available devices
*/
private void discoverDevice(){
setProgressBarIndeterminateVisibility(true);
setTitle(R.string.scanning);
findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);
If scanning is occurring, stopping scanning and then rescanning
if(mBtAdapter.isDiscovering()){
mBtAdapter.cancelDiscovery();
}
mBtAdapter.startDiscovery();
}
/**
Device for monitoring searched
*/
private final BroadcastReceiver mReceiver=new BroadcastReceiver(){
@Override
public void onReceive(Context context,Intent intent){
String action=intent.getAction();
if(BluetoothDevice.ACTION_FOUND.equals(action)){
LogUtils.getInstance().e(getClass(),"----ACTION_FOUND---");
BluetoothDevice device=intent
.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
if(device.getBondState()!=BluetoothDevice.BOND_BONDED){
if(!TextUtils.isEmpty(device.getName())){
if (device.getName (). equals ("millet cell phone"))) retaining opening
LogUtils.getInstance().e(getClass(),"----device.getName():"+device.getName());
mNewDevicesAdapter.add(device.getName()+"\n"
+device.getAddress());
}
}
}
}else if(BluetoothAdapter.ACTION_DISCOVERY_FINISHED
.equals(action)){
LogUtils.getInstance().e(getClass(),"----ACTION_DISCOVERY_FINISHED----");
setProgressBarIndeterminateVisibility(false);
setTitle(R.string.select_device);
if(mNewDevicesAdapter.getCount()==0){
String noDevices=getResources().getText(
R.string.none_found_device).toString();
mNewDevicesAdapter.add(noDevices);
}
}
}
};
private OnItemClickListener mDeviceClickListener=newOnItemClickListener(){
public void onItemClick(AdapterView<?>av,View v,int arg2,long arg3){
mBtAdapter.cancelDiscovery();
String info=((TextView)v).getText().toString();
String address=info.substring(info.length()-17);
Intent intent=new Intent();
intent.putExtra(EXTRA_DEVICE_ADDRESS,address);
setResult(Activity.RESULT_OK,intent);
finish();
}
};
}
The Android mobile phone is generally actively connected with the SPP protocol device (connected with a digital sensor of a bluetooth module) in a role of a client, and the connection process is as follows:
1. registering BroadcastReceiver by using a register receiver to acquire messages such as a Bluetooth state, search equipment and the like;
2. search using BlueAdatper;
3. obtaining the searched Bluetooth device information (such as name, MAC, RSSI) in onReceive () of BroadcastReceiver;
4. establishing a Bluetooth device object through the MAC address of the device;
5. deriving a Bluetooth SOCKET from the Bluetooth device, and preparing a SOCKET to read and write the device;
6. selecting connected protocol/service by the createRfcommsocketToServiceRecord () method of Bluetooth socket, wherein SPP (UUID: 00001101-;
after Connect (if not already paired, the system prompts automatically), the bluetooth device is read and written using getInputStream () and getOutputStream () of bluetooth socket.
-A2 DP is named after Advanced Audio Distribution Profile Bluetooth Audio Transmission model protocol. A2DP is a device capable of stacking data using a chip in a headphone to achieve high definition of sound. However, the headset supporting A2DP is not a bluetooth stereo headset, and the basic requirement for stereo implementation is two channels, so that a mono bluetooth headset cannot implement stereo. The sound can reach 44.1kHz, and the common earphone can only reach 8 kHz. If the handset supports bluetooth, the A2DP headset can be used as long as the A2DP protocol is loaded. Also, consumers see technical parameters referring to bluetooth V1.0V1.1V1.2V2.0-these refer to the technical version of bluetooth, which refers to the speed of transmission over bluetooth, whether they support A2DP and specifically whether the manufacturer of the bluetooth product uses this technology. A2DP defines transmitting high quality audio, mono or stereo, etc., over an ACL (asynchronous connection free) channel. A2DP function, protocol and procedure for frequency information. A2DP is determined by GAP (Generic Access Profile common Access protocol) and GAVDP (Generic Audio/Video Distribution Profile common Audio Video Distribution protocol), the latter defines the procedures required for the establishment of audio, Video streams, etc. A2DP defines the parameters and procedures required for the establishment of audio and Video streams. Inputting #1234# to the mobile phone, displaying A2DP PTS mode to start A2DP, and inputting again to turn off the function. The Bluetooth stereo headset + the mobile phone, and the Bluetooth stereo headset + the mobile phone have the greatest characteristic of being capable of listening to music played in the mobile phone directly through the Bluetooth stereo headset besides having a common voice call function. Currently, there are four smart phones with built-in A2DP mode in the market, including HP h6315(6365), motorola e680i, blackberry 9500 and HTC G11 inclusive S smart phones, which can directly listen to Music in the smart phones after being matched with bluetooth stereo headphones (e.g., i.tech. Clip. S35, i.tech Clip Music 801, i.tech Clip Music802, i.tech Clip D Radio, SolarVoice 908, Music band 807, etc.). In addition to the built-in A2DP, the mobile phone using Symbain Series 60 operating system, such as Nokia S60 mobile phone such as Nokia 7610, 6670, 3230, 6680, 6630, N-Gage, QD and so on, and Panasonic X700, X800. With the popularization of bluetooth devices, more and more people and notebook computers are also beginning to be built with bluetooth devices. The bluetooth application on the computer end can be of the most types, and can be performed through the bluetooth device no matter the connection of a printer, a mouse and a keyboard, or even the synchronization of a PDA and a mobile phone. At present, the most Hot application on a personal computer belongs to a Bluetooth earphone for speaking Skype, and the Bluetooth can be paired for use only by installing a Bluetooth receiver on the computer and installing a driver, so that the trouble of complicated wired device lines is solved. After the bluetooth stereo headset is pushed out, except that the bluetooth stereo headset can be used for carrying out Skype conversation, the headset can also be used for listening to music in a computer, no matter whether the specification of a bluetooth receiver in the computer is 1.1 version or 1.2 version, the stereo sound effect output provided by the bluetooth headset can be supported only after a driver supporting an A2DP mode is updated (WIDCOMM needs to be supported by more than 4.0 version, IVT needs to be supported by more than 1.4 version), so that a user can experience the feeling that ' sound ' is adjacent to the user's environment, and the user does not need to worry that a loudspeaker can interfere with other people. Bluetooth stereo headset + music player, if your cell-phone does not support bluetooth A2DP, but you want to listen to the music with the bluetooth headset again, also some manufacturers have launched HiFi (high fidelity) bluetooth transmission device (Blue Con35) suitable for 3.5mm headset plug. As long as there is a music Player with 3.5mm earphone joint, such as iPod, MP3Player, household stereo or radio, it can be directly converted into Bluetooth wireless transmission device, and it will be paired by itself only after the power supply of the transmitting end and the Bluetooth stereo earphone is turned on. A2DP (Advanced Audio Distribution Profile) is an Audio transmission protocol for bluetooth, and a typical application is bluetooth headphones. The audio data of the A2DP protocol is transmitted over the ACL Link, which is to be distinguished from the voice data transmitted over the SCO. A2DP does not include a remote control function, which refers to the protocol AVRCP. AVDTP defines the parameter negotiation, setup and transport procedures and the form of the exchanged signaling entities of the data stream handles between Bluetooth devices, which is the basic protocol of the A2DP framework. GAVDP defines two roles:
initiator (INT) -This device that is a signaling process [ initiating signaling ]
Acceptor (ACP) -This device that short response to an incomingrequest from the INT. [ responsive to signaling ]
A2DP realizes the following roles:
source (SRC) -A device is the SRC, an act as a source of a digital stream that is delayed to the SNK of the control
Sink (SNK) -A device is the SNK world bits as a sink of a digital stream delayed from the SRC on the same sink
Here, it should be noted that: generally, the roles of Source and Sink in A2DP are fixed, while the roles of GAVDP are interchangeable, and the initiator is the party that initiates signaling.
-limitations of the A2DP protocol
(1) Synchronized point-to-multipoint distribution is not supported.
(2) There are delays at the Source and Sink terminals.
(3) The rate of audio data must be sufficiently less than the transmission rate of bluetooth.
(4) Method of not providing any data protection
In the packaging of the first part of the data, it can be seen that a mediapackart header is added to each Media payload. The device mainly comprises the following parts:
timestamp (TS), Payload Type (PT), marker (M) bit [ set to all 0 ], extension (X) bit [ unused, set to all 0 ]. Specifically defined in the AVDTP protocol and not detailed here.
The protection scope of the music playing switching operation method of the present invention is not limited to the execution sequence of the steps listed in this embodiment, and all the schemes of increasing, decreasing, and replacing the steps in the prior art according to the principle of the present invention are included in the protection scope of the present invention.
The present invention further provides a music playing switching operation system 20, where the music playing switching operation system 20 can implement the music playing switching operation method of the present invention, but the implementation apparatus of the music playing switching operation method of the present invention includes, but is not limited to, the structure of the music playing switching operation system 20 illustrated in this embodiment, and all structural modifications and substitutions in the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
Referring to fig. 2, to achieve the above and other related objects, the present invention provides a music play switching operating system 20, wherein the music play switching operating system 20 comprises,
the communication module 21 is used for establishing an SPP channel with playing software on a car machine or third-party music playing software;
the processing module 22 is coupled to the communication module 21 and configured to acquire related information such as a playlist and an album;
a sending module 23, coupled to the processing module 22, for sending a control instruction.
The music play switching operation method further comprises:
after the SPP channel is established with the playing software on the vehicle or the third-party music playing software, the method further comprises the following steps:
and informing the SPP channel to be successfully established.
In an embodiment of the present invention, before establishing the SPP channel with the on-board device playing software or the third party music playing software, the method further includes:
establishing an A2DP channel;
transmitting the audio data;
and playing the audio data.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And the modules can be realized in a form that all software is called by the processing element, or in a form that all the modules are realized in a form that all the modules are called by the processing element, or in a form that part of the modules are called by the hardware. For example: the x module can be a separately established processing element, and can also be integrated in a certain chip of the device. In addition, the x-module may be stored in the memory of the apparatus in the form of program codes, and may be called by a certain processing element of the apparatus to execute the functions of the x-module. Other modules are implemented similarly. All or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software. These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors 31 (DSPs), one or more Field Programmable Gate Arrays (FPGAs), and the like. When a module is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. These modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
To achieve the above and other related objects, the present invention provides a computer-readable storage medium having stored thereon a computer program for executing, by a processor 31, a music play switching operation method according to the present invention.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Referring to fig. 3, to achieve the above and other related objects, the present invention provides an apparatus 30, wherein the apparatus 30 comprises: the memory 32 is used for storing computer programs, and the processor 31 is used for executing the computer programs stored in the memory 32 so as to make the device 30 execute the music playing switching operation method according to the invention.
More specifically, the present embodiment provides an apparatus, including: a processor, memory, transceiver, communication interface, or/and system bus; the memory is used for storing computer programs and the communication interface is used for communicating with other devices, and the processor and the transceiver are used for running the computer programs. The above-mentioned system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In conclusion, the present invention effectively overcomes various disadvantages of the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A music play switching operation method is characterized by comprising the following steps:
establishing an SPP channel with playing software on a vehicle machine or third-party music playing software;
acquiring related information such as a playlist and an album;
and sending a control instruction.
2. The music playback switching operation method according to claim 1, characterized in that the music playback switching operation method further comprises:
after the SPP channel is established with the playing software on the vehicle or the third-party music playing software, the method further comprises the following steps:
and informing the SPP channel to be successfully established.
3. The music playback switching operation method according to claim 1, wherein the playlist and album information includes: specified playlist information.
4. The music playback switching operation method according to claim 1, wherein the control instruction includes: music playing instructions and music collection instructions.
5. The music playing switching operation method according to claim 1, wherein before establishing the SPP channel with the playing software on the car player or the third party music playing software, the method further comprises:
establishing an A2DP channel;
transmitting the audio data;
and playing the audio data.
6. A music playback switching operation system, comprising:
the communication module is used for establishing an SPP channel with playing software on the vehicle or third-party music playing software;
the processing module is coupled with the communication module and used for acquiring related information such as a playlist and an album;
and the sending module is coupled with the processing module and used for sending the control instruction.
7. The music playback switching operation system according to claim 6, wherein the music playback switching operation method further includes:
after the SPP channel is established with the playing software on the vehicle or the third-party music playing software, the method further comprises the following steps: and informing the SPP channel to be successfully established.
8. The music playing switching operating system according to claim 6, wherein before establishing the SPP channel with the playing software on the car machine or the third party music playing software, the method further comprises:
establishing an A2DP channel;
transmitting the audio data;
and playing the audio data.
9. A computer-readable storage medium on which a computer program is stored, the program being characterized by implementing the music playback switching operation method of any one of claims 1 to 5 when executed by a processor.
10. An apparatus, characterized in that the apparatus comprises: the memory is used for storing a computer program, and the processor is used for executing the computer program stored by the memory to make the equipment execute the music playing switching operation method as claimed in any one of claims 1 to 5.
CN201811148205.9A 2018-09-29 2018-09-29 Music playing switching operation method, system, storage medium and equipment Pending CN110968233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811148205.9A CN110968233A (en) 2018-09-29 2018-09-29 Music playing switching operation method, system, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811148205.9A CN110968233A (en) 2018-09-29 2018-09-29 Music playing switching operation method, system, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN110968233A true CN110968233A (en) 2020-04-07

Family

ID=70027373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811148205.9A Pending CN110968233A (en) 2018-09-29 2018-09-29 Music playing switching operation method, system, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN110968233A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163263A (en) * 2021-04-30 2021-07-23 广州酷狗计算机科技有限公司 Method, device and storage medium for controlling media resource by vehicle-mounted equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080066136A (en) * 2007-01-11 2008-07-16 엘지이노텍 주식회사 Play method for music using bluetooth headset
CN103165149A (en) * 2011-12-09 2013-06-19 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted terminal and vehicle-mounted terminal music playing method
CN103594100A (en) * 2012-08-13 2014-02-19 上海博泰悦臻电子设备制造有限公司 Method and apparatus for playing music in mobile terminal through bluetooth
CN104183250A (en) * 2014-08-26 2014-12-03 惠州Tcl移动通信有限公司 Method and system for synchronizing function of music player of intelligent device and Bluetooth headset
CN104780480A (en) * 2014-01-14 2015-07-15 安凯(广州)微电子技术有限公司 Method, device and terminal for controlling music play in TF card of blue-tooth loudspeaker box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080066136A (en) * 2007-01-11 2008-07-16 엘지이노텍 주식회사 Play method for music using bluetooth headset
CN103165149A (en) * 2011-12-09 2013-06-19 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted terminal and vehicle-mounted terminal music playing method
CN103594100A (en) * 2012-08-13 2014-02-19 上海博泰悦臻电子设备制造有限公司 Method and apparatus for playing music in mobile terminal through bluetooth
CN104780480A (en) * 2014-01-14 2015-07-15 安凯(广州)微电子技术有限公司 Method, device and terminal for controlling music play in TF card of blue-tooth loudspeaker box
CN104183250A (en) * 2014-08-26 2014-12-03 惠州Tcl移动通信有限公司 Method and system for synchronizing function of music player of intelligent device and Bluetooth headset

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163263A (en) * 2021-04-30 2021-07-23 广州酷狗计算机科技有限公司 Method, device and storage medium for controlling media resource by vehicle-mounted equipment

Similar Documents

Publication Publication Date Title
WO2018032455A1 (en) Bluetooth communication method and terminal
US9363352B2 (en) Duplex audio for mobile communication device and accessory
EP2165512B1 (en) Communication of information between a host device and an accessory via an intermediate device
US9730268B2 (en) Communication between host and accessory devices using accessory protocols via wireless transport
JP5616975B2 (en) Accessory power management
CN101911661B (en) Wireless headset having fm transmitter
US20100048133A1 (en) Audio data flow input/output method and system
US20120009906A1 (en) System and method for resuming media
CN105516897A (en) Method and device for one-key establishment of communication connection between Bluetooth devices
CN102077507A (en) Automatic transfer of information through physical docking of devices
WO2012142794A1 (en) Method for pairing bluetooth accessory with bluetooth device, and bluetooth accessory
CN111447600A (en) Audio sharing method for wireless earphone, terminal device and storage medium
CN103391121A (en) Method for pairing and connecting multiple devices and Bluetooth device
CN203219287U (en) Media playing system and media emitting apparatus
WO2022242528A1 (en) Volume adjustment method and terminal device
WO2013000213A1 (en) Audio data processing method and device
JP5571807B2 (en) Electronic device, audio output device, communication system, and communication control method for electronic device
CN106408912A (en) AVRCP (audio video remote control profile) instruction allocation method and system based on device types
CN110968233A (en) Music playing switching operation method, system, storage medium and equipment
CN202145660U (en) Bluetooth sound box with voice call transfer processing function
CN113498045A (en) Communication equipment pairing connection method, communication terminal and device with storage function
CN115426341A (en) Wireless audio/video device and wireless communication method
CN113810887B (en) Bluetooth protocol connection method and device, storage medium and related equipment
WO2022237353A1 (en) Method, apparatus, and device for configuring earphones in earphone holding case, and program product
CN112866966A (en) Wireless communication and information processing method, system, equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200407