CN111464850A - Master-slave mode switching method and device and computer storage medium - Google Patents

Master-slave mode switching method and device and computer storage medium Download PDF

Info

Publication number
CN111464850A
CN111464850A CN202010177985.0A CN202010177985A CN111464850A CN 111464850 A CN111464850 A CN 111464850A CN 202010177985 A CN202010177985 A CN 202010177985A CN 111464850 A CN111464850 A CN 111464850A
Authority
CN
China
Prior art keywords
master
local area
equipment
area network
wireless local
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
CN202010177985.0A
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.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010177985.0A priority Critical patent/CN111464850A/en
Publication of CN111464850A publication Critical patent/CN111464850A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a master-slave mode switching method, a device and a computer storage medium, wherein the master-slave mode switching method comprises the following steps: when determining that a slave mode needs to be switched to a master mode, a first device sends a switching notification, wherein the switching notification comprises wireless local area network information to be created by the first device; and the first equipment creates a corresponding wireless local area network so that other equipment in the multimedia playing group can access the wireless local area network according to the switching notification and further switch to a master control mode. The master-slave mode switching method, the device and the computer storage medium provided by the invention can be used for rapidly switching the device between the master control mode and the slave mode, are convenient and fast to operate and effectively improve the user experience.

Description

Master-slave mode switching method and device and computer storage medium
Technical Field
The present invention relates to the multimedia field, and in particular, to a master-slave mode switching method, device, and computer storage medium.
Background
With the rapid development of communication technology and multimedia technology, a plurality of devices are used to form a synchronous playing system, so as to form a multimedia playing group to perform synchronous playing of multimedia contents such as audio or video, and to realize synchronous playing of a plurality of devices, which has been widely applied. When a plurality of devices are used for synchronously playing multimedia, one device needs to create a wireless local area network, and other devices join a multimedia playing group by connecting the wireless local area network, at this time, the device creating the wireless local area network is called to be in a master mode, the other devices are called to be in a slave mode, and the devices in the slave mode can only play multimedia files in the devices in the master mode. If a multimedia file in a device in the slave mode needs to be played, the wireless local area network created by the device in the slave mode originally needs to be added after all the devices exit the wireless local area network, so that the switching operation is complicated, and the user experience is reduced.
Disclosure of Invention
The invention aims to provide a master-slave mode switching method, equipment and a computer storage medium, which can be used for quickly switching the equipment between a master control mode and a slave mode, are convenient to switch and effectively improve the use experience of a user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a master-slave mode switching method, where the method includes:
when determining that a slave mode needs to be switched to a master mode, a first device sends a switching notification, wherein the switching notification comprises wireless local area network information to be created by the first device;
and the first equipment creates a corresponding wireless local area network so that other equipment in the multimedia playing group can access the wireless local area network according to the switching notification and further switch to a master control mode.
As one implementation, the sending, by the first device, a handover notification includes:
the first device broadcasts a switching notification through Bluetooth; alternatively, the first and second electrodes may be,
and the first equipment broadcasts a switching notice based on the wireless local area network provided by the second equipment in the master control mode in the multimedia playing group.
As an embodiment, the broadcasting, by the first device, a handover notification based on a wireless local area network provided by a second device in the master mode in the multimedia play group includes:
and the first equipment sends a request message carrying a switching notification based on a wireless local area network provided by second equipment in a master control mode in the multimedia playing group, so that the second equipment broadcasts the switching notification to equipment which is in a slave mode in the multimedia playing group and is except the first equipment.
As one embodiment, the wireless local area network information includes a network name and an access password; the first device creates a corresponding wireless local area network, including:
and the first equipment opens a hotspot and sets the network name and the access password of the hotspot according to the wireless local area network information so as to create a wireless local area network taking the first equipment as the wireless hotspot.
As one embodiment, the determining, by the first device, that switching from the slave mode to the master mode is required includes:
when the first device is in the slave mode, the first device detects whether an operation instruction for switching to the master control mode is received;
if so, the first device determines that the slave mode needs to be switched to the master mode.
In a second aspect, an embodiment of the present invention provides a master-slave mode switching method, where the method includes:
the second equipment receives a switching notice, wherein the switching notice comprises the information of the wireless local area network to be established by the first equipment;
and the second equipment accesses the wireless local area network created by the first equipment according to the wireless local area network information.
As an implementation manner, if the second device is in the master control mode, the method, while receiving the handover notification, of the second device further includes:
and the second equipment broadcasts the switching notice through a wireless local area network established by the second equipment.
As an implementation manner, after receiving the handover notification sent by the first device, the second device further includes:
the second device switches from a master mode to a slave mode.
In a third aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes: a processor and a memory for storing a computer program capable of running on the processor; wherein the processor implements the master-slave mode switching method according to the first aspect and/or the second aspect when running the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a computer program, where the computer program is executed by a processor to implement the master-slave mode switching method according to the first aspect and/or the second aspect.
The master-slave mode switching method, the master-slave mode switching equipment and the computer storage medium provided by the embodiment of the invention comprise the following steps: when determining that the first equipment needs to be switched from the slave mode to the master mode, the first equipment sends a switching notification, wherein the switching notification comprises wireless local area network information to be created by the first equipment; and the first equipment creates a corresponding wireless local area network so that other equipment in the multimedia playing group can access the wireless local area network according to the switching notification and further switch to a master control mode. Therefore, when the first device in the slave mode needs to be switched to the master mode, the switching notice of the wireless local area network information to be created is sent, so that other devices in the multimedia playing group can access the wireless local area network created by the first device according to the switching notice, the switching to the master mode is achieved, the rapid switching of the devices between the master mode and the slave mode is achieved, the switching operation is convenient, and the user experience is effectively improved.
Drawings
Fig. 1 is a schematic application environment diagram of a master-slave mode switching method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a master-slave mode switching method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another master-slave mode switching method according to an embodiment of the present invention;
fig. 4 is an interaction flow diagram of a master-slave mode switching method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The master-slave mode switching method provided by the embodiment of the invention can be applied to the application environment shown in fig. 1. Specifically, the master-slave mode switching method is applied to a multimedia synchronous playing system, where the multimedia synchronous playing system may include a master device and at least one slave device, that is, the multimedia synchronous playing system may include a device in a master mode and at least one device in a slave mode, where a user may send a control instruction, including instructions of playing, pausing, and the like, to the devices in the slave mode in a multimedia playing group through the devices in the master mode, so as to implement multimedia synchronous playing. In this embodiment, it is described that the multimedia synchronous playing system includes a first device 10 and a second device 11 as shown in fig. 1 as an example, where the first device 10 and the second device 11 establish a communication connection through a wireless network, belong to the same multimedia playing group, and are used to implement that the first device 10 and the second device 11 can synchronously play multimedia files. Taking the example that the first device 10 is currently in the slave mode and the second device 11 is currently in the master mode, when determining that the first device 10 needs to be switched from the slave mode to the master mode, the first device 10 sends a switching notification to the second device 11 in the multimedia play group, where the switching notification includes information of a wireless local area network to be created by the first device 10, and then the first device 10 creates a corresponding wireless local area network, so that the second device 11 in the multimedia play group accesses the wireless local area network according to the switching notification and switches to the master mode; at this time, the second device 11 switches from the master mode to the slave mode after accessing the wireless local area network created by the first device 10 according to the switching notification sent by the first device 10. The device is rapidly switched between the master control mode and the slave mode, the switching operation is convenient, and the user experience is effectively improved. The first device 10 and the second device 11 may include, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, smart stereos, and portable wearable devices with a playing function.
Referring to fig. 2, a master-slave mode switching method provided in an embodiment of the present invention is described by taking the example that the master-slave mode switching method is applied to the first device 10 in fig. 1, and includes the following steps:
step S101: when determining that a slave mode needs to be switched to a master mode, a first device sends a switching notification, wherein the switching notification comprises wireless local area network information to be created by the first device;
here, an application APP for controlling the multimedia synchronous playing system may be installed in the first device, and a user may manage a device in a master mode and a device in a slave mode in the multimedia synchronous playing system through the application APP, including a switching mode and the like. The device in the master mode can transmit multimedia data and issue a control instruction to the device in the slave mode, so that the device in the slave mode performs corresponding processing according to the received multimedia data and the control instruction. When a user switches a mode on a user interface of the APP and the first device is currently in the slave mode, which is equivalent to that the first device determines that the slave mode needs to be switched to the master mode, indicating that the user wants to play and manage other devices in the multimedia play group through the first device at the time, the first device sends a switching notification to the other devices in the multimedia play group, where the switching notification includes information of a wireless local area network to be created by the first device, so as to notify that the other devices in the multimedia play group can join the wireless local area network created by the first device, thereby realizing that the first device is switched from the slave mode to the master mode. In one embodiment, the determining, by the first device, that a switch from a slave mode to a master mode is required includes: when the first device is in the slave mode, the first device detects whether an operation instruction for switching to the master control mode is received; if so, the first device determines that the slave mode needs to be switched to the master mode. It can be understood that a user interface for mode switching may be provided in the first device, and a user may switch the operating mode in the user interface, and if the first device is currently in the slave mode, and at this time, the user clicks a mode switching key or clicks a master mode key, the first device receives an operation instruction for switching to the master mode.
It should be noted that the first device may send the switching notification to other devices in the multimedia play group in different manners. In an embodiment, the sending, by the first device, a handover notification to other devices in the multimedia play group includes: and the first equipment broadcasts a switching notice to other equipment in the multimedia playing group through Bluetooth. It can be understood that, when the bluetooth function is turned on, the first device may broadcast the switching notification to the surrounding through its own bluetooth broadcast channel, and since the distances between the other devices in the multimedia play group and the first device are usually short, it may be considered that the first device broadcasts the switching notification to the other devices in the multimedia play group through bluetooth. Therefore, the first equipment switches the notification through Bluetooth broadcasting, the power consumption is low, and the speed is high. In an embodiment, the sending, by the first device, a handover notification to other devices in the multimedia play group includes: and the first equipment broadcasts a switching notification to other equipment in the multimedia playing group based on a wireless local area network provided by second equipment in a master control mode in the multimedia playing group. It can be understood that, in the multimedia synchronous playing system, the first device in the slave mode needs to join the wireless local area network provided by the second device in the master mode first to establish a communication connection therebetween, so as to form a private network environment, thereby realizing synchronous playing of multimedia with the second device. The first device may broadcast a handover notification to other devices in the multimedia play set based on a wireless local area network provided by the second device based on a communication connection with the second device. It should be noted that, if the first device cannot directly broadcast the switching notification to all other devices in the multimedia play group based on the wireless local area network provided by the second device in the master control mode in the multimedia play group, the broadcasting, by the first device, the switching notification to other devices in the multimedia play group based on the wireless local area network provided by the second device in the master control mode in the multimedia play group by the first device may include: and the first equipment sends a request message carrying a switching notification to second equipment based on a wireless local area network provided by the second equipment in a master control mode in the multimedia playing group, so that the second equipment broadcasts the switching notification to equipment which is in a slave mode in the multimedia playing group and is except the first equipment. It can be understood that, the first device sends a request message carrying a handover notification to the second device based on a wireless local area network provided by the second device in the master control mode in the multimedia play group, that is, based on a communication connection established between the first device and the second device, so that the second device sends the handover notification to other devices in a slave mode and in a communication connection with the second device according to the request message, and the other devices know the handover notification. Therefore, the first equipment broadcasts the switching notice to the equipment which is in the slave mode in the multimedia playing group and is except the first equipment through the second equipment, the equipment in the multimedia playing group can be ensured to be completely informed of the switching notice, and the switching accuracy is improved.
Step S102: and the first equipment creates a corresponding wireless local area network so that other equipment in the multimedia playing group can access the wireless local area network according to the switching notification and further switch to a master control mode.
Specifically, the first device creates a corresponding wireless local area network according to the wireless local area network information to be created, so that other devices in the multimedia playing group access the wireless local area network according to the wireless local area network information in the switching notification, and switching from a slave mode to a master mode is achieved.
Here, the wireless lan information may be different depending on the setting of the wireless lan. For example, when the access password of the network does not need to be set, the wireless local area network information may include only the network name; when the access password of the network needs to be set, the wireless local area network information may include a network name and an access password. In practical applications, the network name may be identification information of the first device, such as a model number. In one embodiment, the first device creates a corresponding wireless local area network, including: and the first equipment opens a hotspot and sets the network name and the access password of the hotspot according to the wireless local area network information so as to create a wireless local area network taking the first equipment as the wireless hotspot. Therefore, the first device can establish communication connection with the first device through the hot spot by starting the hot spot, and further realize that the first device is switched from the slave mode to the master mode. Meanwhile, the data transmission through the hot spot has the advantage of high speed. The first device may create a corresponding wireless local area network, or the first device may create a corresponding wireless local area network through a short-range wireless communication method such as bluetooth.
In summary, in the master-slave mode switching method provided in the above embodiment, when the first device in the slave mode needs to be switched to the master mode, the first device sends the switching notification of the to-be-created wlan information, so that other devices in the multimedia play set access the created wlan according to the switching notification, thereby switching to the master mode, implementing fast switching of the devices between the master mode and the slave mode, and being convenient and fast to operate, thereby effectively improving user experience.
Based on the same inventive concept of the foregoing embodiment, referring to fig. 3, another master-slave mode switching method provided in the embodiment of the present invention is described by taking the example that the master-slave mode switching method is applied to the second device 11 in fig. 1, and includes the following steps:
step S201: the second equipment receives a switching notice, wherein the switching notice comprises the information of the wireless local area network to be established by the first equipment;
specifically, the second device receives a switching notification broadcasted by bluetooth from the first device in the same multimedia playing group, or the second device receives a switching notification broadcasted by wireless local area network from the first device in the same multimedia playing group through the second device in the master control mode.
It should be noted that, before receiving the switching notification sent by the first device in the same multimedia play group, the second device may be in the slave mode or the master mode. When the second device is in the master control mode, the second device receives a handover notification sent by a first device in the same multimedia play group, where the handover notification may be a request message carrying the handover notification sent by the first device, and correspondingly, when the second device receives the handover notification sent by the first device, the method may further include: and the second equipment broadcasts the switching notification to other equipment in the multimedia playing group through a wireless local area network established by the second equipment. It can be understood that, when the first device cannot directly send the switching notification to other devices in the multimedia play group, the second device in the master mode may be indirectly requested to send the switching notification to other devices in the multimedia play group except the second device, and the second device broadcasts the switching notification to the devices in the slave mode in the multimedia play group except the first device, so that the switching notification can be known by all devices in the multimedia play group.
Step S202: and the second equipment accesses the wireless local area network created by the first equipment according to the wireless local area network information.
Specifically, after searching for the wireless local area network created by the first device according to the wireless local area network information, the second device sends a connection request to the first device based on the wireless local area network information to access the wireless local area network created by the first device, so as to join in a multimedia play group managed by the first device.
It should be noted that, when the second device is in the master control mode before or during receiving the switching notification sent by the first device, after the second device receives the switching notification sent by the first device, the method further includes: the second device switches from a master mode to a slave mode. At this time, if the multimedia play set continues to play the multimedia data, the second device may first control the multimedia play set to pause playing the multimedia data.
In summary, in the master-slave mode switching method provided in the above embodiment, after receiving a switching notification of wlan information to be created by a first device sent by the first device, a second device accesses the wlan created by the first device according to the switching notification, so that the first device switches from the slave mode to the master mode, thereby implementing fast switching of the device between the master mode and the slave mode, and being convenient and fast to operate, and effectively improving user experience.
Based on the same inventive concept of the foregoing embodiment, this embodiment describes in detail the technical solution of the foregoing embodiment by using a specific example, in this embodiment, taking a device in the master mode as a master and a device in the slave mode as a slave, referring to fig. 4, an interaction process of the master-slave mode switching method is as follows:
1) the host computer creates a hot spot;
here, the host may open a hotspot, generate a two-dimensional code according to the hotspot information, and display the two-dimensional code, so that the slave 1, the slave 2, the slave 3, and the like establish communication connection with the host by scanning the two-dimensional code, and the slave 1, the slave 2, and the like join the current hotspot after scanning the code to form a local area network. Here, the hotspot information may include a hotspot name, a password, and the like, so that a slave can directly connect to the hotspot by scanning the two-dimensional code.
2) The slave 1 applies for identity change;
here, when the slave 1 needs to be changed to a new master, it needs to apply for an identity change.
3) The slave 1 informs the host and the slave 2 of the hotspot information to be generated through Bluetooth broadcasting or a currently established WiFi local area network;
here, the slave 1, whether in a bluetooth broadcast mode or in an established WiFi local area network, is to transmit hotspot information prepared to be generated by itself to the master and other slaves.
4) The slave 1 creates hotspot information;
5) the host and the slave 2 are automatically connected with the hot spot created by the slave 1;
6) the slave 1 switching identity is completed.
Here, after the master automatically connects to the hotspot created by the slave 1, the identity of the master will become the slave, and the identity of the slave 1 becomes the new master.
Therefore, the identities of the host and the slave are dynamically adjusted based on WiFi hotspots or Bluetooth broadcasting and the like, and the operation is convenient and fast. The user experience is promoted.
Based on the same inventive concept as the previous embodiment, an embodiment of the present invention provides an apparatus, as shown in fig. 5, including: a processor 110 and a memory 111 for storing computer programs capable of running on the processor 110; the processor 110 illustrated in fig. 5 is not used to refer to the number of the processors 110 as one, but is only used to refer to the position relationship of the processor 110 relative to other devices, and in practical applications, the number of the processors 110 may be one or more; similarly, the memory 111 illustrated in fig. 5 is also used in the same sense, that is, it is only used to refer to the position relationship of the memory 111 relative to other devices, and in practical applications, the number of the memory 111 may be one or more. When the processor 110 is used to run the computer program, the above-mentioned master-slave mode switching method is implemented.
The apparatus may further include: at least one network interface 112. The various components in the device are coupled together by a bus system 113. It will be appreciated that the bus system 113 is used to enable communications among the components. The bus system 113 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 113 in FIG. 5.
The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Dynamic Random Access Memory (DRAM), which may be a magnetic disk Memory or a magnetic tape Memory, may be a Random Access Memory (DRAM), and may also include a Dynamic Random Access Memory (SDRAM), a Dynamic Random Access Memory (RAM) and a Dynamic Random Access Memory (RAM) suitable for use as an external Access device, such as a Dynamic Random Access Memory (RAM), a Dynamic Random Access Memory (SDRAM), or a Dynamic Random Access Memory (SDRAM) and a Dynamic Random Access Memory (SDRAM) suitable for use as an Access RAM.
The memory 111 in embodiments of the present invention is used to store various types of data to support the operation of the device. Examples of such data include: any computer program for operation on the device, such as operating systems and application programs; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
Based on the same inventive concept of the foregoing embodiments, this embodiment further provides a computer storage medium, where a computer program is stored in the computer storage medium, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read Only Memory (CD-ROM), and the like; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc. When a computer program stored in the computer storage medium is run by a processor, the master-slave mode switching method is realized. Please refer to the description of the embodiment shown in fig. 2 for a specific step flow realized when the computer program is executed by the processor, which is not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for master-slave mode switching, the method comprising:
when determining that a slave mode needs to be switched to a master mode, a first device sends a switching notification, wherein the switching notification comprises wireless local area network information to be created by the first device;
and the first equipment creates a corresponding wireless local area network so that other equipment in the multimedia playing group can access the wireless local area network according to the switching notification and further switch to a master control mode.
2. The method of claim 1, wherein the first device sends a handover notification, comprising:
the first device broadcasts a switching notification through Bluetooth; alternatively, the first and second electrodes may be,
and the first equipment broadcasts a switching notice based on the wireless local area network provided by the second equipment in the master control mode in the multimedia playing group.
3. The method of claim 2, wherein the first device broadcasting the handover notification based on a wireless local area network provided by a second device in the master mode in the multimedia play group comprises:
and the first equipment sends a request message carrying a switching notification based on a wireless local area network provided by second equipment in a master control mode in the multimedia playing group, so that the second equipment broadcasts the switching notification to equipment which is in a slave mode in the multimedia playing group and is except the first equipment.
4. The method of claim 1, wherein the wireless local area network information comprises a network name and an access password; the first device creates a corresponding wireless local area network, including:
and the first equipment opens a hotspot and sets the network name and the access password of the hotspot according to the wireless local area network information so as to create a wireless local area network taking the first equipment as the wireless hotspot.
5. The method of claim 1, wherein the first device determining that a switch from a slave mode to a master mode is required comprises:
when the first device is in the slave mode, the first device detects whether an operation instruction for switching to the master control mode is received;
if so, the first device determines that the slave mode needs to be switched to the master mode.
6. A method for master-slave mode switching, the method comprising:
the second equipment receives a switching notice, wherein the switching notice comprises the information of the wireless local area network to be established by the first equipment;
and the second equipment accesses the wireless local area network created by the first equipment according to the wireless local area network information.
7. The method of claim 6, wherein if the second device is in the master control mode, the second device receives the handover notification and further comprises:
and the second equipment broadcasts the switching notice through a wireless local area network established by the second equipment.
8. The method of claim 7, wherein after the second device receives the handover notification, further comprising:
the second device switches from a master mode to a slave mode.
9. An apparatus, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor implements the master-slave mode switching method of any one of claims 1 to 8 when running the computer program.
10. A computer storage medium, characterized in that a computer program is stored which, when executed by a processor, implements the master-slave mode switching method according to any one of claims 1 to 8.
CN202010177985.0A 2020-03-13 2020-03-13 Master-slave mode switching method and device and computer storage medium Pending CN111464850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010177985.0A CN111464850A (en) 2020-03-13 2020-03-13 Master-slave mode switching method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010177985.0A CN111464850A (en) 2020-03-13 2020-03-13 Master-slave mode switching method and device and computer storage medium

Publications (1)

Publication Number Publication Date
CN111464850A true CN111464850A (en) 2020-07-28

Family

ID=71682831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010177985.0A Pending CN111464850A (en) 2020-03-13 2020-03-13 Master-slave mode switching method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN111464850A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159193A (en) * 2006-12-25 2008-07-10 Sony Corp Content playback system, player, playback control method and program
US20120020202A1 (en) * 2010-07-23 2012-01-26 Clear Wireless Llc Method and system for synchronizing wireless devices with a communication network
CN103298041A (en) * 2012-02-27 2013-09-11 联想(北京)有限公司 Method, equipment and system for automatic switching of wireless router
CN104426832A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Multi-terminal multichannel independent playing method and device
US20150296397A1 (en) * 2014-04-14 2015-10-15 Qualcomm Incorporated Capture of pss and sss with wireless local area network receive chain
CN105025529A (en) * 2015-05-30 2015-11-04 广东欧珀移动通信有限公司 Method for switching access point and wireless loudspeaker box
CN105259830A (en) * 2015-10-20 2016-01-20 北京小鸟听听科技有限公司 Voice box automatic switching method, apparatus and voice box device
CN105451130A (en) * 2015-11-04 2016-03-30 广东欧珀移动通信有限公司 Network switching method and mobile terminal
CN105554379A (en) * 2015-12-10 2016-05-04 深圳市为有视讯有限公司 Networking technology-based image pickup equipment video playing method, device and system
CN110086698A (en) * 2019-06-01 2019-08-02 厦门市思芯微科技有限公司 It is a kind of by intelligent sound box voice to the system of smart home device distribution
CN110225492A (en) * 2019-05-29 2019-09-10 飞天诚信科技股份有限公司 A kind of implementation method and device for cloud speaker distribution
CN110856086A (en) * 2019-10-30 2020-02-28 歌尔股份有限公司 Method and device for controlling sound system and readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159193A (en) * 2006-12-25 2008-07-10 Sony Corp Content playback system, player, playback control method and program
US20120020202A1 (en) * 2010-07-23 2012-01-26 Clear Wireless Llc Method and system for synchronizing wireless devices with a communication network
CN103298041A (en) * 2012-02-27 2013-09-11 联想(北京)有限公司 Method, equipment and system for automatic switching of wireless router
CN104426832A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Multi-terminal multichannel independent playing method and device
US20150296397A1 (en) * 2014-04-14 2015-10-15 Qualcomm Incorporated Capture of pss and sss with wireless local area network receive chain
CN105025529A (en) * 2015-05-30 2015-11-04 广东欧珀移动通信有限公司 Method for switching access point and wireless loudspeaker box
CN105259830A (en) * 2015-10-20 2016-01-20 北京小鸟听听科技有限公司 Voice box automatic switching method, apparatus and voice box device
CN105451130A (en) * 2015-11-04 2016-03-30 广东欧珀移动通信有限公司 Network switching method and mobile terminal
CN105554379A (en) * 2015-12-10 2016-05-04 深圳市为有视讯有限公司 Networking technology-based image pickup equipment video playing method, device and system
CN110225492A (en) * 2019-05-29 2019-09-10 飞天诚信科技股份有限公司 A kind of implementation method and device for cloud speaker distribution
CN110086698A (en) * 2019-06-01 2019-08-02 厦门市思芯微科技有限公司 It is a kind of by intelligent sound box voice to the system of smart home device distribution
CN110856086A (en) * 2019-10-30 2020-02-28 歌尔股份有限公司 Method and device for controlling sound system and readable storage medium

Similar Documents

Publication Publication Date Title
CN112153600B (en) Audio management method, device and system and computer storage medium
US20120178500A1 (en) Communication operating method, portable device including dual sim card and, network system supporting the same
CN111480350A (en) Method and equipment for data access of embedded SIM card
WO2008086255A2 (en) Mobile device activation
KR101914117B1 (en) Method and apparatus for establishing Wireless Local Network link between portable terminals
CN113810760B (en) Method for controlling screen projection, electronic device and computer readable storage medium
US9509947B2 (en) Method and apparatus for transmitting file during video call in electronic device
EP3930284A1 (en) Method, device, terminal, and system for playing back multimedia resource
KR20090013259A (en) Method and system for providing ubiquitous music reproduction service
KR101863197B1 (en) Apparatus and method for informing of available devices in contents sharing network
CN111465076A (en) Connection method and device of wireless local area network and computer storage medium
WO2024016503A1 (en) Communication method and electronic device
RU2752646C1 (en) Method and device for indication of cellular type
KR20080087997A (en) A method for sharing contents of mobile communication terminal
KR20140096580A (en) System and method for providing nfc service in electronic device without nfc communication module
CN110996364A (en) Wireless access point switching method, mobile terminal and computer storage medium
CN112637412A (en) Audio management method and device and computer storage medium
US9112917B2 (en) Controller system and method therefor
CN111464850A (en) Master-slave mode switching method and device and computer storage medium
CN104052801A (en) Information processing method and electronic equipment
KR101810464B1 (en) Mobile terminal and service capability discovery method thereof
CN110896536A (en) SIM card control method, mobile terminal and computer storage medium
CN108235252A (en) Position enquiring, sharing method, device, computer installation and computer readable storage medium
EP2218008A1 (en) Method, apparatus and computer program product for providing improved memory usage
KR20140100768A (en) Mobile Communication Data Tethering System and Method thereof

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