WO2023078162A1 - 控制设备切换系统、控制设备切换方法及其设备 - Google Patents

控制设备切换系统、控制设备切换方法及其设备 Download PDF

Info

Publication number
WO2023078162A1
WO2023078162A1 PCT/CN2022/128076 CN2022128076W WO2023078162A1 WO 2023078162 A1 WO2023078162 A1 WO 2023078162A1 CN 2022128076 W CN2022128076 W CN 2022128076W WO 2023078162 A1 WO2023078162 A1 WO 2023078162A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
address
control device
screen projection
switching request
Prior art date
Application number
PCT/CN2022/128076
Other languages
English (en)
French (fr)
Inventor
谈凯
胡诗尧
刘峰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023078162A1 publication Critical patent/WO2023078162A1/zh

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1438Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using more than one graphics controller
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Definitions

  • the present application relates to the technical field of control, and in particular to a control device switching system, a control device switching method and devices thereof.
  • mapping the button information of the remote control device requires the display device to transfer the message at the application layer, and an additional application layer channel is required to send the mapped button information from the display device to the screen projection device, which will cause a large delay.
  • an embodiment of the present application provides a control device switching method, which is applied to a system including a first device, a second device, and a third device, and the third device is used to control the first device and the /or the second device, the method includes: when the third device is used to control the first device, the first device receives a first control device switch request; at the first device After receiving the switching request from the first control device, the first device configures the destination address when the third device issues a message as the address of the second device, so that the third device is controlled by The first device is switched to control the second device.
  • the first device when the third device is used to control the first device, the first device receives the switching request of the first control device, and when the first device receives the After the switching request of the first control device, the first device configures the destination address when the third device publishes the message as the address of the second device, so that the third device can be conveniently controlled by the The first device is switched to control the second device, and the third device can control the second device conveniently, simply and safely without conversion and transfer of instructions by the first device.
  • the method further includes: when the third device is used to control the second device, the second device receives a second control device switching request; After the device receives the second control device switching request, the second device reissues the second control device switching request to the first device; after the first device receives the reissued first 2.
  • the first device configures the destination address when the third device publishes the message as the address of the first device, so that the third device is used to control the second device The second device is switched to control the first device.
  • the second device relays the second control device switching request to the first device, so that the first device can configure the first device according to the second control device switching request. address, so that the third device can be conveniently switched from being used to control the second device to being used to control the first device.
  • the first device is a display device
  • the second device is a screen-casting device
  • the second device is used to pass screen-casting content through the first device and the second device
  • the transmission channel between them is sent to the first device, so that the first device is used to display the screen projection content.
  • the first device is a display device
  • the second device is a screen projection device
  • the screen projection device is used to send the screen projection content to the display device through the transmission channel between the display device and the screen projection device, so that all
  • the display device can display the screen-casting content, and make the method be used in a screen-casting scenario.
  • the situation that the third device is used to control the first device specifically includes: the situation that the destination address when the third device publishes a message is the address of the first device
  • the situation that the third device is used to control the second device specifically includes: the situation that the destination address when the third device publishes a message is the address of the second device.
  • the destination address of the third device when publishing a message is the address of the first device and the destination address of the third device when publishing a message is the address of the second device, thereby realizing the control of the third device
  • the case of the first device and the third device controls the case of the second device.
  • the address of the first device and the address of the second device are addresses allocated by the first device to the first device and the second device respectively.
  • the address of the first device and the address of the second device are assigned to the first device and the second device through the first device, so that the first device serves as a network distribution device.
  • the first device, the second device, and the third device form a Mesh network.
  • the Mesh network is composed of the first device, the second device and the third device, so that the networking mode of the first device, the second device and the third device is a Mesh networking.
  • the method further includes: after the first device receives the first control device switching request, the first device displays a control device selection interface, and the control device selection interface includes Information about the first device and/or information about the second device, where the information includes an icon, a name, and/or an identifier.
  • the control device selection interface includes Information about the first device and/or information about the second device, where the information includes an icon, a name, and/or an identifier.
  • the receiving the first control device switch request by the first device specifically includes: the first device receives the first control device switch request by receiving the user's operation on the first device. request; or, the third device sends the first control device switching request to the first device in response to the user's operation on the third device, so that the first device receives the first control Device switch request.
  • the first control device switching request can be generated by the user acting on the first device or the user acting on the third device, which can provide the first control device switching request and provide a variety of ways to generate the first control device switching request.
  • the address of the second device is a unicast address of the second device.
  • the address of the second device is the unicast address of the second device, so that the third device can control a single device.
  • the method further includes: after the first device receives the switching request of the first control device, the first device also configures the addresses subscribed by all devices in the second device to be is the multicast address.
  • the address of the second device is a multicast address, and the first device further configures all devices in the second device to subscribe to the multicast address, so that the third device can control multiple devices at the same time.
  • an embodiment of the present application further provides a method for switching control devices, which is applied to a first device, and the method includes: when the first device can be controlled by a third device, the first device A device receives a first control device switch request; after the first device receives the first control device switch request, the first device configures the destination address when the third device publishes a message as the second device address, so that the third device is switched from being used to control the first device to being used to control the second device.
  • the method further includes: the first device receiving the second Two control device switching requests; after the first device receives the second control device switching request, the first device configures the destination address when the third device publishes a message as the address of the first device , so that the third device is switched from being used to control the second device to being used to control the first device.
  • the first device is a display device, and the first device is configured to receive the screen projection content sent by the second device and display the screen projection content.
  • the method further includes: assigning the address of the first device to itself by the first device, and assigning the address of the second device to the second device.
  • the method further includes: after the first device receives the first control device switching request, the first device displays a control device selection interface, and the control device selection interface includes Information about the first device and/or information about the second device, where the information includes an icon, a name, and/or an identifier.
  • the address of the second device is a unicast address of the second device.
  • the method further includes: after the first device receives the switching request of the first control device, the first device also configures the addresses subscribed by all devices in the second device to be is the multicast address.
  • an embodiment of the present application further provides a control device switching method, which is applied to a second device, and the method includes: when the second device can be controlled by a third device, the first The second device receives the second control device switch request; after the second device receives the second control device switch request, the second device reissues the second control device switch request to the first device.
  • the second device is a screen projection device, and the second device is configured to send screen projection content to the first device.
  • an embodiment of the present application further provides a control device switching method, which is applied to a third device, and the method includes: when the third device is used to control the first device, the third device The device sends a first control device switching request to the first device, so as to switch from being used to control the first device to being used to control the second device.
  • the method includes: when the third device is used to control the second device, the third device sends a second control device switching request to the second device, to switch from being used for controlling the second device to being used for controlling the first device.
  • the situation that the third device is used to control the first device specifically includes: the situation that the destination address when the third device publishes a message is the address of the first device
  • the situation that the third device is used to control the second device specifically includes: the situation that the destination address when the third device publishes a message is the address of the second device.
  • an embodiment of the present application further provides a control device switching system, the system includes a first device, a second device and a third device, and the third device is used to control the first device and/or or the second device; wherein, in the case that the third device is used to control the first device, the first device receives a first control device switching request; when the first device receives the After the switching request of the first control device, the first device configures the destination address when the third device publishes the message as the address of the second device, so that the third device is used to control the first A device switch is used to control the second device.
  • the second device when the third device is used to control the second device, the second device receives a second control device switching request; when the second device receives the first After the second control device switching request, the second device reissues the second control device switching request to the first device; after the first device receives the reissued second control device switching request , the first device configures the destination address when the third device publishes the message as the address of the first device, so that the third device is switched from being used to control the second device to being used to The first device is controlled.
  • the first device is a display device
  • the second device is a screen-casting device
  • the second device is used to pass screen-casting content through the first device and the second device The transmission channel between them is sent to the first device, so that the first device is used to display the screen projection content.
  • the situation that the third device is used to control the first device specifically includes: the situation that the destination address when the third device publishes a message is the address of the first device
  • the situation that the third device is used to control the second device specifically includes: the situation that the destination address when the third device publishes a message is the address of the second device.
  • the address of the first device and the address of the second device are addresses allocated by the first device to the first device and the second device respectively.
  • the first device, the second device, and the third device form a Mesh network.
  • the first device displays a control device selection interface, and the control device selection interface includes the first device's information and/or information about the second device, where the information includes an icon, a name, and/or an identifier.
  • the first device receives the switching request of the first control device by receiving the user's operation on the first device; or, the third device responds to the user's action on the The operation of the third device is to send the first control device switching request to the first device, so that the first device receives the first control device switching request.
  • the address of the second device is a unicast address of the second device.
  • the address of the second device is a multicast address, and the multicast address is dedicated to the second device by the first device Assigned multicast address; after the first device receives the switching request of the first control device, the first device further configures all devices in the second device to subscribe to the multicast address .
  • an embodiment of the present application further provides a first device, the first device includes a receiving unit and a processing unit: the receiving unit is configured to be controlled by a third device when the first device is in In this case, the switching request of the first control device is received; the processing unit is configured to, after receiving the switching request of the first control device, the first device configure the destination address when the third device publishes the message as the second The address of the second device, so that the third device switches from controlling the first device to controlling the second device.
  • an embodiment of the present application further provides a second device, the second device includes a receiving unit and a processing unit: the receiving unit is configured to be controlled by a third device when the second device is in In this case, a second control device switching request is received; the processing unit is configured to reissue the second control device switching request to the first device after the second device receives the second control device switching request .
  • an embodiment of the present application further provides a third device, where the third device includes a receiving unit: the receiving unit is configured to, when the third device is used to control the first device, send The first device sends a first control device switching request, so as to switch from being used to control the first device to being used to control the second device.
  • an embodiment of the present application further provides an electronic device, where the electronic device includes at least one processor, a memory, and a communication interface; the at least one processor is coupled to the memory and the communication interface; The memory is used to store instructions, the processor is used to execute the instructions, and the communication interface is used to communicate with other devices under the control of the at least one processor; the instructions are used by the at least one processor During execution, the at least one processor is made to execute the control device switching method described in any possible embodiment of the first aspect, the second aspect, the third aspect, or the fourth aspect above.
  • an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program, and the program enables the computer device to execute the above first aspect, the above second aspect, and the above first aspect.
  • an embodiment of the present application further provides a computer program product, the computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of the electronic device
  • the computer-executed instructions may be read from the computer-readable storage medium, and the at least one processor executes the computer-executed instructions so that the electronic device performs the first aspect above, the second aspect above, and the third aspect above , or the control device switching method described in any possible embodiment of the fourth aspect above.
  • FIG. 1 is a schematic diagram of a control device switching system in the prior art.
  • FIG. 2 is a schematic diagram of a control device switching system provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a physical structure of a display device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a physical structure of a remote control device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a physical structure of a screen projection device provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of a method for controlling device switching provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a one-to-one scenario provided by the embodiment of the present application.
  • FIG. 8A is a schematic diagram of a control device selection interface provided by the embodiment of the present application
  • FIG. 8B is a schematic diagram of another control device selection interface provided by the embodiment of the present application.
  • FIG. 9 is a schematic diagram of a scenario of multi-casting provided by an embodiment of the present application.
  • FIG. 10 is another flow chart of the method for switching control devices provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a multi-cast scene provided by an embodiment of the present application.
  • FIG. 12 is another flow chart of the method for controlling device switching provided by the embodiment of the present application.
  • FIG. 13 is a schematic diagram of a logical structure of a first device provided in an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a logical structure of a second device provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a logical structure of a third device provided by an embodiment of the present application.
  • the prior art provides a remote control device-based screen projection control method, which can be applied to a remote control device-based screen projection control system.
  • the screen projection control system includes a remote control device, a screen projection device (such as a mobile phone, etc.) and a display device (such as a TV, etc.).
  • the screen projection device is used to provide screen projection content for the display device.
  • the display device is used for displaying screen projection content.
  • the screen projection control method provided by the prior art requires the remote control device to send an instruction to the display device, the display device converts the instruction, and the screen projection device receives the converted instruction. Specifically, in the existing screen projection control method, as shown in FIG.
  • the remote control device 11 will first send a control command to the display device 12, and then the display device 12 converts the control command of the remote control device 11 into a screen projection at the application layer.
  • device 13 ’s anti-control command, and establish an additional application layer channel at the application layer to transmit the converted counter-control command, and then the projection device 13 receives the counter-control command transmitted by the display device 12, and controls the projection according to the counter-control command.
  • Screen files such as turning pages of slides, playing and pausing videos, switching display interfaces, opening and closing applications, etc.
  • the embodiment of the present application proposes a control device switching method.
  • the remote control device wants to control the projection device, there is no need for the display device to perform command conversion and transfer, and the remote control device can be easily switched by directly controlling the display device.
  • the remote control device can control the screen projection device conveniently, simply and safely.
  • the control device switching system 20 includes a display device 21 , a remote control device 22 and a screen projection device 23 .
  • the number of display devices 21 may be one or more.
  • the display device 21 can be, for example, a mobile phone, a tablet computer, a digital camera, a personal digital assistant (personal digital assistant, PDA), a wearable device, a laptop computer (laptop), a smart TV, a large screen, a smart screen, a display, etc. screen device.
  • the remote control device 22 can be, for example, a remote control, a mobile phone, a tablet computer, a personal digital assistant (personal digital assistant, PDA), a wearable device, a laptop computer (laptop) and other devices.
  • the number of screen projection devices 23 may be one or more.
  • the screen projection device 23 can be, for example, a mobile phone, a tablet computer, a digital camera, a personal digital assistant (personal digital assistant, PDA), a wearable device, a laptop computer (laptop), and the like.
  • the remote control device 22 can send a signal to the display device 21 through a Bluetooth GATT (Generic Attribute Profile, general attribute configuration file) connection to control the display device 21. It can be understood that the remote control device 22 can also send signals to the display device 21 to control the display device 21 in other ways, such as infrared remote control, wifi, etc., which is not limited in this application.
  • GATT Generic Attribute Profile, general attribute configuration file
  • the screen projection device 23 can establish a screen projection connection with the display device 21 to project files such as video, audio, and documents on the screen projection device 23 to the display device 21 for display.
  • the remote control device 22 can send control instructions to the display device 21, and the display device 21 can respond to the received control instructions.
  • the display device 21 , the remote control device 22 and the screen projection device 23 can form a network, establish a Mesh network, and communicate through the Mesh network.
  • the display device 21 , the remote control device 22 and the screen projection device 23 may also communicate through a network formed by networking in other forms, which is not limited in this embodiment of the present application.
  • the display device 21 can configure the messages issued by the remote control device 22 to be processed by the display device 21 , so that the remote control device 22 directly controls the display device 21 first.
  • the remote control device 22 can receive user operations, generate a control device switch request, and send the control device switch request to the display device 21 .
  • the display device 21 may display a selection interface according to the control device switching request for the user to operate the remote control device 22 to select the target control device to which the user wants to transfer the control.
  • the display device 21 determines that the target control device is the screen projection device 23 according to the selection operation of the remote control device 22 , and the display device 21 can configure the message issued by the remote control device 22 to be processed by the screen projection device 23 accordingly. Therefore, the remote control device 22 can switch from directly controlling the display device 21 to directly controlling the screen projection device 23 , without the need for the display device 21 to perform conversion and transfer of control instructions. Wherein, the solid line between the remote control device 22 and the display device 21 in FIG. The device 21 is switched to directly control the screen projection device 23 , and the remote control device 22 will no longer control the display device 21 at this time. It can be understood that the remote control device 22 can also switch from directly controlling the screen projection device 23 to directly controlling the display device 21 .
  • FIG. 3 is a schematic diagram of a physical structure of a display device provided by an embodiment of the present application.
  • the display device 30 can be, for example, a mobile phone, a tablet computer, a digital camera, a personal digital assistant (personal digital assistant, PDA), a wearable device, a laptop computer (laptop), a smart TV, a large screen, a smart screen, etc. screen device.
  • the display device 30 may be the display device 21 in the embodiment shown in FIG. 2 .
  • the display device 30 may include a processor 301, an external memory interface 302, an internal memory 303, a USB (universal serial bus, universal serial bus) interface 304, a power management module 305, a wireless communication module 306, an audio module 307, a speaker 307A, a microphone 307B, speaker interface 307C, sensor module 308, button 309, indicator 310, camera 311, and display screen 312, etc.
  • the structure shown in FIG. 3 does not constitute a limitation on the display device 30, and the display device 30 may include more or less components than shown in the illustration, or combine certain components, or split certain components. some components, or a different arrangement of components.
  • the processor 301 may include one or more processing units, for example: the processor 301 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the processor 301 may be the nerve center and command center of the display device 30 .
  • the processor 301 may complete instruction fetching according to the instruction, generate an operation control signal, and then execute the control of the instruction.
  • the processor 301 can perform corresponding operations according to the signal received by the wireless communication module 306, for example, start network configuration according to the mesh broadcast received by the wireless communication module 306; Device command configuration
  • the message issued by the remote control device can be processed by the target control device, so that the remote control device can directly control the target control device.
  • a memory may also be provided in the processor 301 for storing instructions and data.
  • the memory in processor 301 is a cache memory.
  • the memory may hold instructions or data that the processor 301 has just used or recycled. If the processor 301 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 301 is reduced, thus improving the efficiency of the system.
  • processor 301 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (general-purpose input/output, GPIO) interface, and/or USB interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • USB interface etc.
  • the interface connection relationship between the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation on the display device 30.
  • the display device 30 can also adopt different interface connection methods in the above embodiments. or a combination of multiple interface connection modes, which is not limited in this application.
  • the USB interface 304 enables the display device 30 to communicate with other devices through a USB data cable.
  • a high definition multimedia interface high definition multimedia interface, HDMI
  • the display device 30 can communicate with equipment such as a set top box (set top box, STB) through HDMI.
  • the power management module 305 is used for connecting power.
  • the power management module 305 may also be connected with the processor 301, the internal memory 303, the display screen 312, the camera 311, the wireless communication module 306, and the like.
  • the power management module 305 receives power input and supplies power to the processor 301 , the internal memory 303 , the display screen 312 , the camera 311 , and the wireless communication module 306 .
  • the power management module 305 can also be disposed in the processor 301 .
  • the wireless communication module 306 may include a Bluetooth module, a Wi-Fi module, a zigbee module, and the like.
  • the Bluetooth module, the Wi-Fi module, and/or the zigbee module can perform data interaction with the remote control device and the screen projection device.
  • the bluetooth module may include a classic bluetooth (for example, bluetooth 2.1) module and/or a bluetooth low energy (bluetooth low energy, BLE) module.
  • the Wi-Fi module can include one or more of the Wi-Fi direct module, Wi-Fi LAN module or Wi-Fi softAP module.
  • the Bluetooth module, the Wi-Fi module, and/or the zigbee module can receive and transmit signals, etc., and can establish a mesh network with the remote control device and the screen projection device; send signals to the remote control device and/or the screen projection device .
  • the display device 30 can access the Internet through a Wi-Fi module, so as to establish a communication connection with a server on the Internet (such as a video playing website server).
  • the bluetooth module can receive the control of the remote control device based on the GATT protocol, such as receiving and controlling the power-on of the display device, receiving and controlling the display device to play video, receiving and controlling the power-off of the display device, etc.
  • the wireless communication module 306 may also include an infrared communication module.
  • the infrared communication module can also receive the control of the remote control device through the infrared remote control technology, such as receiving and controlling the power-on of the display device, receiving and controlling the playing video of the display device, receiving and controlling the shutdown of the display device, etc.
  • the display device 30 realizes the display function through the GPU, the display screen 312 , and the application processor.
  • GPU is a microprocessor for image processing, connected to display screen 312 and application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • the processor may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 312 is used to display images, videos and the like.
  • the display screen 312 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active matrix organic light emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed
  • quantum dot light emitting diodes quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the display device 30 can realize the shooting function through an ISP, a camera 311 , a video codec, a GPU, a display screen 312 and an application processor.
  • the ISP is used to process data fed back by the camera 311 .
  • the ISP can be installed in the camera 311 .
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the display device 30 selects a frequency point, the digital signal processor is used to perform Fourier transform and the like on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video. Display device 30 may support one or more video codecs. In this way, the display device 30 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • the external memory interface 302 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the display device 30.
  • the external memory card communicates with the processor 301 through the external memory interface 302 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • Internal memory 303 may be used to store computer-executable program code, which includes instructions.
  • the processor 301 executes various functional applications and data processing of the display device 30 by executing instructions stored in the internal memory 303 .
  • the processor 301 may execute instructions stored in the internal memory 303, and the internal memory 303 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the display device 30 .
  • the internal memory 303 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the display device 30 may implement audio functions through an audio module 307 , a speaker 307A, a microphone 307B, a speaker interface 307C, and an application processor. For example, music playback, recording, etc.
  • the keys 309 include a power key, a volume key and the like.
  • the key 309 may be a mechanical key. It can also be a touch button.
  • the display device 30 can receive key 309 input, and generate key signal input related to user setting and function control of the display device 30 .
  • the indicator 310 may be an indicator light, and may be used to indicate that the display device 30 is in a power-on state, a standby state, or a power-off state. For example, if the indicator light is off, it can indicate that the display device 30 is in a shutdown state; if the indicator light is green or blue, it can indicate that the display device 30 is in a standby state; if the indicator light is red, it can indicate that the display device 30 is in a standby state.
  • FIG. 4 is a schematic diagram of the physical structure of the remote control device provided by the embodiment of the present application.
  • the remote control device 40 can be, for example, a remote control, a mobile phone, a tablet computer, a personal digital assistant (personal digital assistant, PDA), a wearable device, a laptop computer (laptop), and the like.
  • the remote control device 40 may be the remote control device 22 in the embodiment shown in FIG. 2 .
  • the remote control device 40 may include a memory 401 , a processor 402 , a communication module 403 , keys 404 , and an indicator 405 . It can be understood that the structure shown in FIG. 4 does not constitute a limitation to the remote control device 40, and the remote control device 40 may include more or less components than shown in the figure, or combine certain components, or separate certain components , or different component arrangements.
  • the memory 401 may be used to store software programs and/or modules/units.
  • the processor 402 implements various functions of the remote control device 40 by running or executing software programs and/or modules/units stored in the memory 401 and calling data stored in the memory 401 .
  • the memory 401 can be a read-only memory (read-only memory, ROM), other types of static storage devices that can store static information and instructions, or other types of dynamic storage devices that can store information and instructions, or can be electronically Erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), read-only disc (compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, etc. .
  • the processor 402 can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • This processor 402 can be microprocessor or this processor 402 also can be any conventional processor etc., described processor 402 is the control center of described remote control device 40, utilizes various interfaces and lines to connect whole remote control device 40 various parts of .
  • the communication module 403 may include a Bluetooth module, a Wi-Fi module, a zigbee module, and the like.
  • the Bluetooth module, the Wi-Fi module, and/or the zigbee module can perform data interaction with the display device and the screen projection device.
  • the bluetooth module may include a classic bluetooth (for example, bluetooth 2.1) module and/or a bluetooth low energy (bluetooth low energy, BLE) module.
  • the Wi-Fi module can include one or more of the Wi-Fi direct module, Wi-Fi LAN module or Wi-Fi softAP module.
  • the Bluetooth module, Wi-Fi module, and/or zigbee module can receive and transmit signals, such as broadcast signals, so that other devices (such as display devices) can find the remote control device 40, and then the remote control device 40 can communicate with
  • the display device establishes a mesh network; sends signals to the display device or the screen projection device, such as controlling the startup of the display device, playing video on the display device, shutting down the display device, and controlling the page turning of the screen projection device, etc.
  • the Bluetooth module can control the display device based on the GATT protocol, such as controlling the power on of the display device, playing video on the display device, and shutting down the display device.
  • the wireless communication module may also include an infrared communication module. The infrared communication module can also control the display device through the infrared remote control technology, such as controlling the start-up of the display device, playing video of the display device, and shutting down the display device.
  • the keys 404 may include a power key, a control key, and the like.
  • the key 404 may be a mechanical key. It can also be a touch button.
  • the remote control device 40 can receive key 404 input and generate key signal input related to user settings and function control of the remote control device 40 .
  • the indicator 405 may be an indicator light, which is used to turn on a light of a specified color according to a received instruction.
  • FIG. 5 is a schematic diagram of the physical structure of the screen projection device provided by the embodiment of the present application.
  • the screen projection device 50 can be, for example, a mobile phone, a tablet computer, a digital camera, a personal digital assistant (personal digital assistant, PDA), a wearable device, a laptop computer (laptop), and the like.
  • the screen projection device 50 may be the screen projection device 23 in the embodiment shown in FIG. 2 .
  • the screen projection device 50 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera module 193, display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the screen projection device 50 .
  • the screen projection device 50 may include more or fewer components than shown in the illustration, or combine some components, or separate some components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors 110 .
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 110 can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 may be a cache memory.
  • the memory may store instructions or data used by the processor 110 or used frequently. If the processor 110 needs to use the instruction or data, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • the processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, and a camera through at least one of the above interfaces.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the screen projection device 50 .
  • the screen projection device 50 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the USB interface 130 is an interface that conforms to the USB standard and can be used to connect display devices and peripheral devices, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the charging management module 140 is used for receiving charging input of the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 can receive wireless charging input through the wireless charging coil of the screen projection device 50 . While the charging management module 140 is charging the battery 142 , it can also supply power to the screen projection device 50 through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the screen projection device 50 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the screen projection device 50 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the screen projection device 50 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the screen projection device 50 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), bluetooth low Power consumption (bluetooth low energy, BLE), ultra wide band (ultra wide band, UWB), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication , NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the screen projection device 50 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the screen projection device 50 can communicate with the network and other electronic devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quasi-zenith satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the screen projection device 50 may implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the screen projection device 50 may include one or more display screens 194 .
  • the screen projection device 50 can realize the camera function through the camera module 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, and the like.
  • the camera module 193 can be used to collect color image data and depth data of the subject.
  • the ISP can be used to process the color image data collected by the camera module 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP can be installed in the camera module 193 .
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the screen projection device 50 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the screen projection device 50 .
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional methods or data processing of the screen projection device 50 by executing instructions stored in the internal memory 121 and/or instructions stored in the memory provided in the processor.
  • the screen projection device 50 can implement an audio function through an audio module 170 , a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • the screen projection device 50 can listen to music through the speaker 170A, or output an audio signal of a hands-free call.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to listen to the voice.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the keys 190 may include a power key, a volume key and the like.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the display device, the screen projection device, and the remote control device may implement the control device switching method through a Mesh network.
  • a Mesh network In order to better understand this application, some terms and concepts involved in the Mesh network are firstly introduced below. However, it should be understood that the control device switching method provided by the embodiment of the present application is not limited to the implementation through the Mesh network, and other implementations (such as through the WiFi network) do not exceed the scope covered by the embodiments of the present application or the claims of the present application.
  • Mesh network It is a type of wireless local area network, that is, a mesh network. Communication is possible between every two devices in the Mesh network.
  • Network distribution equipment It is a node of the Mesh network, which can convert undistributed network equipment into nodes.
  • the network configuration device can start network configuration for the unconfigured device so as to add the unconfigured device to the Mesh network and become a node of the Mesh network.
  • the distribution device When adding an undistributed device to the Mesh network, the distribution device will also distribute a unicast address to each device that joins the Mesh network. Therefore, after the network distribution process, each node of the Mesh network will be distributed a unicast address .
  • Configuration device It is a node of the Mesh network, which is responsible for configuring the nodes in the Mesh network. Specifically, the configuration device can also configure the destination address of the node and/or the address subscribed by the node, so that the nodes can also communicate with each other. The configuration device can also delete the address from the node's subscription list, so that the nodes cannot communicate with each other.
  • the configuration device can be the same device as the network distribution device. The configuration device may also be different from the network distribution device.
  • Addresses can include unicast addresses and/or multicast addresses. Each device will be assigned a unique unicast address during the network configuration process, and the unicast address is used to uniquely identify the address of the device in the Mesh network. Each multicast address represents a logical group. If the destination address of a node in the Mesh network is the unicast address of another node, the message issued by the one node can only be processed by another node whose unicast address is the destination address.
  • the message published by node A can only be processed by node B, but not by other nodes, because the unicast address of other nodes is not the destination address of node A (ie the unicast address of Node B).
  • the destination address of a node in the Mesh network is a multicast address, the message published by the node can be processed by other nodes that have subscribed to the multicast address, but cannot be processed by other nodes that have not subscribed to the multicast address.
  • Mesh networks can use the publish/subscribe model for message transmission. Nodes that generate messages publish messages. Nodes that need to receive messages can subscribe to the required multicast addresses. Messages can be published to unicast or multicast addresses. The destination address of the node generating the message is configured as a unicast address, so that the message issued by the node generating the message can be received by the node corresponding to the unicast address.
  • FIG. 6 is a flow chart of a method for switching control devices provided in an embodiment of the present application.
  • the control device switching method is applied to a scene of one cast one.
  • a screen projection device 701 projects audio, video, documents, etc. to a display device 702 for display, and a display device 702 is equipped with a remote control device 703 .
  • the display device 702 can serve as a network distribution device and a configuration device.
  • the display device 702 can be used as a network distribution device to add the remote control device 703 and the screen projection device 701 to the Mesh network.
  • the display device 702 acts as a network distribution device to add the remote control device 703 to the Mesh network; in steps S607-S611, the display device 702 acts as a network distribution device to add the screen projection device 701 to the Mesh network.
  • the display device 702 can also be used as a configuration device to configure the destination address of the screen projection device 701 and the destination address of the remote control device 703 .
  • step S606 is to configure the display device 702 as the configuration device, and configure the destination address of the remote control device 703 as the unicast address of the display device 702, so that the remote control device 703 can control the display device 702;
  • step S612 is to configure the display device 702 as a configuration device to configure the projection device
  • the destination address of 701 is the unicast address of the display device 702, so that the display device 702 can process the message issued by the screen projection device 701;
  • step S622 is to configure the display device 702 as a configuration device, and the destination address of the remote control device 703 is the unicast address of the screen projection device 701. broadcast address, so that the remote control device 703 can control the screen projection device 701.
  • Steps S613-S621 are for the display device 702 to determine the target control device as the screen projection device 701 according to the operation on the remote control device 703, so that the display device 702 can configure the destination address of the remote control device 703 according to the target control device, so that the remote control device 703 controls the screen projection device 701.
  • the control device switching method includes:
  • the display device sends a first network distribution notification to the remote control device through the Bluetooth GATT connection.
  • the display device may send the first network distribution notification to the remote control device through the GATT protocol when the first preset condition is met.
  • the first preset condition may be, for example, after the display device and the remote control device establish a Bluetooth GATT connection according to the GATT protocol, or after the display device establishes a screen projection connection with the screen projection device. It can be understood that the first preset condition may also be other conditions, which are not limited in the present application.
  • the remote control device sends a first network access application in a broadcast manner according to the first network distribution notification.
  • the remote control device broadcasts the first network access application as a Mesh Beacon message according to the first network distribution notification.
  • the Mesh Beacon message is used to declare itself as a device not connected to the network.
  • the Mesh Beacon message may be an Unprovisioned Device Beacon message.
  • S603 The display device finds the first network access application through scanning.
  • the display device may start scanning after sending the first network distribution notification, which is not limited in this application.
  • the display device listens for scan events. If the display device monitors the Mesh Beacon message sent by the remote control device, the display device finds the first network access application through scanning.
  • the display device configures the network for the remote control device according to the discovered first network access application.
  • the display device performing network configuration on the remote control device includes that the display device initiates a network distribution invitation to the remote control device, the remote control device sends a network distribution capability to the display device, the display device and the remote control device exchange public keys, and the display device and the remote control device conduct One or more of the steps of identity authentication, distribution of network distribution data from the display device to the remote control device, etc. Provisioning data may include keys and unicast addresses of remote devices.
  • the unicast address of the remote control device may be specially assigned to the remote control device by the display device as a distribution network device during the Mesh network distribution phase. In the Mesh network configuration stage, when the display device distributes network distribution data to the remote control device, it also distributes the unicast address of the display device to itself.
  • the remote control device stores the unicast address of the remote control device distributed by the display device.
  • the unicast address of the remote control device can uniquely identify the remote control device in the Mesh network. Therefore, the unicast address of the remote control device can make other nodes in the Mesh network recognize that the remote control device is publishing messages.
  • the display device configures the destination address when the remote control device publishes a message to be the unicast address of the display device.
  • the display device can configure the destination address when the remote control device publishes a message through the Config Model Publication Set to be the unicast address of the display device. Specifically, the display device can send the unicast address of the display device to the remote control device through the Config Model Publication Set, and the remote control device can set the destination address when the remote control device publishes a message as the unicast address of the display device. Therefore, the message issued by the remote control device can only be processed by the display device, and even if other devices receive the message issued by the remote control device, they cannot correctly process or will not process the message issued by the remote control device. That is, the remote control device can directly control the display device. At this time, the display device may disconnect the GATT connection with the remote control device.
  • the display device sends a second network distribution notification to the screen projection device through a transmission channel, where the transmission channel is a channel formed after the display device establishes a screen projection connection with the screen projection device.
  • the transmission channel may be a channel for transmitting files such as video, audio, and documents when the above-mentioned screen projection device projects files such as video, audio, and documents to the display device for display.
  • the display device may send the second network distribution notification to the screen projection device through the transmission channel when the second preset condition is met.
  • the second preset condition may be, for example, after the display device establishes a screen projection connection with the screen projection device, or after the display device establishes a Bluetooth connection with the remote control device according to the GATT protocol. It can be understood that the second preset condition may also be other conditions, which are not limited in the present application.
  • the screen projection device sends a second network access application in a broadcast manner according to the second network distribution notification.
  • the screen projection device broadcasts the second network access application as a Mesh Beacon message according to the second network distribution notification.
  • the Mesh Beacon message is used to declare itself as a device not connected to the network.
  • the Mesh Beacon message may be an Unprovisioned Device Beacon message.
  • S609 The display device finds the second network access application through scanning.
  • the display device may start scanning after sending the second network distribution notification, which is not limited in this application.
  • the display device listens for scan events. If the display device monitors the Mesh Beacon message sent by the screen projection device, the display device will find the second network access application through scanning.
  • S610 The display device configures a network for the screen projection device according to the discovered second network access application.
  • the display device configures the screen projection device to include the display device initiating a distribution network invitation to the screen projection device, the screen projection device sending a network distribution capability to the display device, the display device and the screen projection device exchanging public keys, and the display device One or more of the steps of performing identity authentication with the screen projection device, and distributing network distribution data by the display device to the screen projection device.
  • the configuration data can include the key and the unicast address of the projection device.
  • the unicast address of the screen projection device can be specially allocated for the screen projection device by the display device as the distribution network device during the Mesh network configuration phase.
  • the screen projection device stores the unicast address of the screen projection device distributed by the display device.
  • the unicast address of the screen projection device can uniquely identify the screen projection device in the Mesh network. Therefore, the unicast address of the screen projection device can make other nodes in the Mesh network recognize that the screen projection device is publishing messages.
  • the display device configures that the destination address when the screen projection device publishes a message is the unicast address of the display device.
  • the display device can configure the unicast address of the display device as the destination address when the screen projection device publishes messages through Config Model Publication Set. Specifically, the display device can send the unicast address of the display device to the screen projection device through the Config Model Publication Set, and the screen projection device can set the destination address when the screen projection device publishes a message to the unicast address of the display device. Therefore, in the Mesh network, the display device can process the messages published by the screen projection device.
  • the switching control device operations described below can be performed:
  • the remote control device generates a control device switching request in response to the first operation of a button on the remote control device.
  • the remote control device may include a toggle button.
  • the switching button is used to trigger and generate a control device switching request.
  • the user may long press the switch button, and the remote control device may receive the user's long press operation, and generate a control device switching request according to the user's long press operation.
  • the switch button can also realize other functions, and the user can set the switch button to have different functions by setting different operation times, operation times, etc., for example, the user can set the operation of short pressing the "switch button" as return Operation to the previous menu.
  • the remote control device can also be configured with a combination of keys.
  • the combination of keys is used to trigger and generate a switching request of the control device. For example, the user presses the A key and the B key on the remote control device at the same time, the remote control device can receive the user's operation of pressing the combined key, and generate a control device switching request according to the user's operation of pressing the combined key.
  • the display device can display a control, icon or button for triggering the switching function of the control device, and when the remote control focus is on the control, icon or button, the user can press the "OK" key on the remote control device , to generate a control device switching request. That is to say, the button can be the "Confirm” key on the remote control device, and the confirmation command generated by pressing the "Confirm” key can be understood as a control device switching request at this time, and the display device receives the confirmation command, that is, the control device switching request After (step S614), a control device selection interface may be displayed (step S615).
  • the remote control device sends a control device switching request to the display device, and accordingly, the display device receives the control device switching request sent by the remote control device.
  • step S606 the display device has configured the destination address of the remote control device to issue messages as the unicast address of the display device, the control device switching request issued by the remote control device can only be processed by the display device.
  • the remote control device sends a message containing the switching request of the control device and the destination address of the remote control device. Since the destination address of the remote control device carried in the message is the unicast address of the display device, when the display device receives the message, it can According to the destination address in the message is the unicast address of the display device, it is determined that this message should be processed. Even if other devices (such as screen projection devices) receive the message, they cannot correctly process or will not process the message.
  • S615 The display device displays a control device selection interface according to the control device switching request.
  • the display device may display a control device selection interface for the user to select a target control device in the control device selection interface through the remote control device.
  • Information about the display device and information about the screen projection device may be displayed on the control device selection interface.
  • the information of the display device and the information of the screen projection device can be operated by the user.
  • the control device selection interface 800 includes prompt information 801 , an icon 802 of a display device, and an icon 803 of a screen projection device.
  • the prompt information 801 is used to prompt the user to perform an operation, for example, it may be "please select the device to be controlled".
  • the icon 802 of the display device and the icon 803 of the screen projection device may be selected by a user. It can be understood that FIG.
  • the prompt information 801 may not be included in the control device selection interface, and the icon 802 of the display device and the screen projection device are displayed in the control device selection interface.
  • the name 802 of the display device such as Huawei TV in the living room, etc.
  • the name of the screen projection device 803 such as my Huawei smart screen, etc.
  • only the display device is displayed in the control device selection interface
  • the unique identification information of the display device such as the SN (Serial Number, product serial number) of the display device, etc.
  • the unique identification information of the projection device such as the SN (Serial Number, product serial number) of the projection device, etc.
  • the content and form of the control device selection interface are not limited.
  • the remote control device generates a focus transfer instruction in response to the second operation of the key on the remote control device.
  • the focus transfer instruction is carried in key information of the remote control device corresponding to the second operation.
  • the user can transfer the focus to the desired target control device through the remote control device.
  • the remote control device receives the user's operation of pressing the left key of the direction key, and generates a focus transfer instruction in response to the operation of pressing the left key of the direction key, and the focus transfer instruction is carried in the left key information of the remote control device.
  • the remote control device sends a focus transfer instruction to the display device, and accordingly, the display device receives the focus transfer instruction sent by the remote control device.
  • step S606 the display device has configured the destination address of the remote control device to issue messages as the unicast address of the display device, the focus transfer instruction issued by the remote control device can only be processed by the display device.
  • S618 The display device transfers the position of the focus to the screen projection device according to the focus transfer instruction.
  • the display device can know that the instruction issued by the remote control device is: the device is required to move the current focus to the left, then the display device will obtain the position of the current focus, and move the current focus to the left according to the position of the current focus and The command to move left shifts the position of the focus.
  • the current focus is on the icon 802 of the display device
  • the display device can transfer the focus to the icon of the screen projection device according to the instruction that the current focus is on the icon 802 of the display device and the current focus is moved to the left, The current focus after the transfer is located on the icon 803 of the screen projection device, as shown in FIG. 8B .
  • the remote control device generates an instruction for selecting a target control device in response to the third operation of the button on the remote control device.
  • the selected target control device instruction is carried in key information of the remote control device corresponding to the third operation.
  • the user may select the screen projection device as the target control device through the remote control device. For example, after the user sees the current focus shifted to the icon 803 of the screen projection device as shown in FIG. 8B , the user may press the confirmation key on the remote control device to select the screen projection device as the target control device. Then, the remote control device receives the user's operation of pressing the confirmation key, and generates a selected target control device instruction in response to the operation of pressing the confirmation key, and the selected target control device instruction is carried in the confirmation key information (or confirmation instruction) of the remote control device. middle.
  • the remote control device sends the instruction of the selected target control device to the display device, and correspondingly, the display device receives the instruction of the selected target control device sent by the remote control device.
  • step S606 the display device has configured the destination address of the remote control device as the unicast address of the display device when issuing messages, the selected target control device instruction issued by the remote control device can only be processed by the display device.
  • the display device determines that the target control device is a screen projection device according to the selected target control device instruction.
  • the display device can know that the instruction issued by the remote control device is: request the device to select the device with the current focus position according to the command of the selected target control device, then the display device will obtain the position of the current focus, and according to the position of the current focus and the selected Instructions for the device at the current focus position select the target control device. For example, in FIG. 8B, if the current focus is on the icon 803 of the screen projection device, the electronic device can select the screen projection device as the target control according to the instruction that the current focus is on the icon 803 of the screen projection device and the device at the current focus position is selected. equipment.
  • the destination address of the display device when the remote control device publishes a message according to the determined screen projection device configuration is the unicast address of the screen projection device.
  • the display device sends the unicast address of the screen projection device to the remote control device through the Config Model Publication Set, and the remote control device sets the destination address when the remote control device publishes a message as the unicast address of the screen projection device. Therefore, the messages issued by the remote control device can only be processed by the screen projection device, and other devices cannot correctly process the messages issued by the remote control device even if they receive the messages issued by the remote control device. That is, the remote control device can directly control the screen projection device. Thus, the remote control device switches from controlling the display device to controlling the screen projection device.
  • the remote control device switches from controlling the display device to controlling the projection device
  • the user may want the remote control device to switch from controlling the projection device to controlling the display device.
  • the remote control device may receive the user's operation of switching the control device to generate a control device switching request, as in the above step S613. Since the remote control device controls the screen projection device at this time, the display device cannot process the control device switching request issued by the remote control device. Therefore, the screen projection device needs to relay the control device switching request. In some embodiments, it may be preset that the screen projection device reissues the control device switching request after receiving the control device switching request. Since the remote control device controls the screen projection device at this time, the screen projection device can process the control device switching request issued by the remote control device.
  • the screen projection device Since it has been preset that the screen projection device will reissue after receiving the control device switching request, the screen projection device will reissue the control device switching request after receiving the control device switching request issued by the remote control device.
  • the display device After the display device receives the control device switching request reissued by the screen projection device, the display device may display the control device selection interface according to the control device switching request through the process as in the above step S615. After seeing the control device selection interface, the user can select the display device as the target control device.
  • the remote control device can receive the user's operation through a process similar to the above-mentioned steps S616 and S619, and generate an instruction to shift the focus in response to the user's operation, and can also receive a focus instruction through a process similar to the above-mentioned step S619.
  • the user's operation and in response to the user's operation, generate a selected target control device instruction;
  • the display device can receive the focus transfer instruction through a process similar to the above steps S617-S618, and transfer the focus position to the display device according to the focus transfer instruction, and
  • the instruction of selecting the target control device may also be received through a process similar to the above steps S620-S621, and the target control device is determined to be a display device according to the position of the current focus and the instruction of the selected target control device.
  • the display device can configure the destination address of the remote control device as the unicast address of the display device through the process of step S606 above, so that the remote control device can directly control the screen projection device Switches back to direct control of the display device.
  • the remote control device after the remote control device is switched from controlling the screen projection device to controlling the display device, it can also be switched from controlling the display device to controlling the screen projection device according to the above-mentioned switching control device operation as required, which is not limited in this application. That is to say, the control device switching method provided in the embodiment of the present application can realize back-and-forth and multiple switching of the control device (that is, the device directly controlled by the remote control device).
  • step S612 may be after the step S622, which is not limited in this application.
  • the configuration of the destination address when the remote control device publishes the message can also be omitted.
  • the operation of the unicast address of the display device continues to be relayed (or republished) by the screen projection device to the message released by the remote control device until the display device completes the configuration of the destination address of the remote control device so that the remote control device directly controls the display device or the screen projection device , or display that the device has received an operation to exit configuration, etc.
  • steps S601-S606 and steps S607-S612 can be exchanged in order, or steps S601-S606 and steps S607-S612 can be performed simultaneously, which is not limited in this application.
  • steps S613-S614 in FIG. 6 can be omitted, and the user can generate a control device switching request by operating the display device.
  • the remote control device can be an electronic device such as a mobile phone, and an application program (APP) can be installed on the remote control device to simulate the function of the remote control. .
  • the display device may also generate control device selection interface information according to the control device switching request, and publish the control device selection interface information.
  • the remote control device can receive the control device selection interface information. If the remote control device is an electronic device with a display screen such as a mobile phone, the remote control device can display the control device selection interface according to the control device selection interface information.
  • the remote control device can also receive the user's operation of selecting the screen projection device in the control device selection interface, and in response to the operation of selecting the screen projection device, determine that the target control device is the screen projection device, and send a selection including the target control device as the screen projection device.
  • the target controls device commands to the display device.
  • the display device can configure the destination address when the remote control device publishes a message as the unicast address of the screen projection device, so that the next control command issued by the remote control device can be directly sent to the screen projection device, and the remote control device switches to directly control the screen projection device.
  • the display device can also display a list of devices found by display device scanning, for the user to select a device to join the Mesh network, such as selecting a remote control device and a screen projection device to join the Mesh network, which is not limited in this application.
  • step S601 in Figure 6 can be omitted, and the remote control device sends the first network access application by broadcast when it is powered on;
  • step S607 in Figure 6 can be omitted, and the screen projection device broadcasts the application when it is powered on Send the second network access application, which is not limited by this application.
  • steps S615-S621 in FIG. 6 can be omitted, and the display device can determine that the target control device is a screen projection device according to the current control display device and control device switch request, which is not limited in this application. That is to say, the display device may not display the interface for the user to select the target control device.
  • the display device After receiving the control device switching request sent by the remote control device in step S614, the display device directly responds to the control device switching request and configures the remote control device to issue a message.
  • the destination address is the unicast address of the screen projection device.
  • the user can perform a first operation on the buttons of the remote control device, and the first operation triggers the remote control device to issue control to the screen projection device Device switching request, the projection device reissues the received control device switching request to the display device, so that the display device directly responds to the control device switching request, and configures the destination address of the remote control device to issue messages as the unicast of the display device address.
  • steps S616-S618 in FIG. 6 can be omitted, and the user can directly select the device at the current focus position without focus transfer, which is not limited in this application.
  • the control device switching method shown in FIG. 6 can be applied not only to a scenario of one projection, but also to a scenario of multiple projections.
  • multiple screen projection devices 901 for example, including screen projection device 904, screen projection device 905, and screen projection device 906 project audio, video, documents, etc. to a display
  • the display on the device 902 is split-screen, and a display device 902 is equipped with a remote control device 903 .
  • the display device 902 can be used as a network distribution device and a configuration device.
  • the display device 902 can be used as a network distribution device to add the remote control device 903 and multiple screen projection devices 901 into the Mesh network.
  • the display device 902 can also be used as a configuration device to configure the destination address of the message released by the screen projection device 901, and configure the destination address of the message released by the remote control device 903 and the address subscribed by the screen projection device 901.
  • the process of adding the remote control device 903 and multiple screen projection devices 901 to the Mesh network by the display device 902 as a distribution network device is the same as that in the one-to-one scenario in Figure 6 where the display device is used as a distribution network device
  • the process of adding the remote control device and the screen projection device to the Mesh network is similar; the process of configuring the destination address of multiple screen projection devices 901 to publish messages with the display device 902 as the configuration device is the same as in the one-to-one scenario in Figure 6.
  • the display device is used as the configuration device
  • the process of configuring the destination address of the message issued by the remote control device as the configuration device to be the unicast address of the display device is similar, and will not be repeated here.
  • the process of the remote control device 903 switching from controlling one of the multiple screen projection devices 901 and display devices 902 to controlling another device is the same as that of the one-casting one scenario in FIG. 6 .
  • the process of controlling the switching between the screen projection device 901 and the display device 902 is similar, and will not be repeated here.
  • control device switching method in the multi-cast-one scenario The difference between the control device switching method in the multi-cast-one scenario and the control device switch method in the above-mentioned one-cast-one scenario is that:
  • the display device is used as a configuration device. If the remote control device switches from controlling one of multiple screen projection devices and display devices to control multiple screen projection devices, the display device can determine that the target control device is multiple screen projection devices. The display device also specially assigns a destination multicast address, configures the destination address when the remote control device publishes a message as the destination multicast address, and configures the addresses subscribed by the directly controlled multiple screen projection devices as the destination multicast address.
  • the multiple directly controlled screen projection devices are a logical group.
  • the display device may specifically assign a destination multicast address to the group from the multicast addresses [OxC000, OxFEEE].
  • the display device can use Config Model Publication Set to configure the destination address when the remote control device publishes a message as the destination multicast address, and configure the addresses to be subscribed by multiple screen projection devices in the group to be directly controlled through Config Model Subscription Add multicast address for the stated destination.
  • the display device can send the destination multicast address to the remote device through Config Model Publication Set, and the remote device sets the destination address when the remote device publishes a message as the destination multicast address; the display device can also send the destination group address through Config Model Subscription Add
  • the multicast address is given to multiple screen projection devices selected by the user to be controlled, and each selected screen projection device adds the destination multicast address in its own subscription list.
  • the remote control device can be switched to control multiple screen projection devices.
  • the multiple screen projection devices 901 are a first screen projection device 904 , a second screen projection device 905 and a third screen projection device 906 .
  • the remote control device 903 switches from controlling the display device 902 to controlling the second screen projection device 905 and the third screen projection device 906, the remote control device 903 and the display device 902 can perform signal processing in steps S613-step S620 in FIG.
  • the display device 902 determines the target control devices as the second screen projection device 905 and the third screen projection device 906 according to the instruction of selecting the target control device.
  • the second screen projection device 905 and the third screen projection device 906 are a logical group.
  • the display device 902 assigns a destination multicast address OxC003 specifically for the group, configures the destination address when the remote control device 903 publishes a message as the destination multicast address OxC003 of the group, and configures the second projection in the group
  • the addresses subscribed to by the device 905 and the third screen projection device 906 are both the destination multicast address OxC003 of the group.
  • the second screen projection device 905 and the third screen projection device 906 that have subscribed to the destination multicast address can process the messages issued by the remote control device 903, and the devices that have not subscribed to the destination multicast address cannot process the messages issued by the remote control device 903, that is, the first
  • the group formed by the second screen projection device 905 and the third screen projection device 906 can process messages issued by the remote control device 903 .
  • the remote control device 903 can switch from controlling the display device 902 to controlling the second screen projection device 905 and the third screen projection device 906 .
  • the display device is used as a configuration device. If the remote control device is switched from controlling multiple devices in multiple screen projection devices to controlling other multiple devices, that is, when the logical group changes, the display device can be reset. Assign the destination multicast address, reconfigure the destination address when the remote control device publishes messages and the address subscribed by the screen projection device. In some embodiments, the display device can also configure the currently controlled screen projection devices that are not selected for control to delete the originally subscribed destination multicast address from the subscription list.
  • the display device can reassign the destination multicast address from the multicast address [OxC000, OxFEEE].
  • the display device can delete the original destination multicast address from the subscription list for the screen projection devices that are not selected for control through Config Model Subscription Delete.
  • the display device can send a message to delete the original destination multicast address of the subscription through Config Model Subscription Delete to the screen projection devices that are not selected for control among the current screen projection devices, and the screen projection devices that are not selected for control among the current screen projection devices.
  • the device can delete the original destination multicast address from the subscription list, and the subsequent screen projection devices that are not selected for control can no longer receive messages issued by the remote control device, that is, the remote control device no longer controls the screen projection devices that are not selected for control.
  • the remote control device 903 switches from controlling the first screen projection device 904 and the second screen projection device 905 to controlling the second screen projection device 905 and the third screen projection device 906, it needs to execute
  • the screen projection device (for example, the first screen projection device 904 and/or the second screen projection device 905) in the above-mentioned one-to-one scenario relays the control device switch request generated by the remote control device, and then the display device 902 displays the control device switch request.
  • the remote control device 901 generates an instruction to select the target control device
  • the display device 902 determines the target control device according to the instruction of the selected target control device They are the second screen projection device 905 and the third screen projection device 906 .
  • the logical group is changed from the first screen projection device 904 and the second screen projection device 905 to a new group including the second screen projection device 905 and the third screen projection device 906 .
  • the display device 902 assigns the destination multicast address OxC005 specifically for the new group, configures the destination address when the remote control device 903 publishes a message as the destination multicast address OxC005 of the new group, and configures the second multicast address OxC005 in the new group.
  • the addresses subscribed to by the screen projection device 905 and the third screen projection device 906 are both the destination multicast address OxC005 of the new group.
  • the display device 902 also configures the first screen projection device 904 to delete the destination multicast address OxC003 of the original group from the subscription list.
  • the second screen projection device 905 and the third screen projection device 906 that have subscribed to the new destination multicast address can process the messages issued by the remote control device 903, and the devices that have not subscribed to the new destination multicast address cannot process the messages issued by the remote control device 903.
  • Messages, that is, the new group formed by the second screen projection device 905 and the third screen projection device 906 can process the messages issued by the remote control device 903 .
  • the remote control device 903 can switch from controlling the first screen projection device 904 and the second screen projection device 905 to controlling the second screen projection device 905 and the third screen projection device 906 .
  • the display device is used as a configuration device. If the remote control device is switched from controlling multiple devices among multiple screen projection devices to controlling one device among multiple screen projection devices and display devices, the display device configures the remote control according to the device selected for control.
  • the destination address when the device publishes the message is the unicast address of the device selected for control, and configures the devices not selected for control among the currently controlled devices to delete the destination multicast address from the subscription list.
  • the process of the display device configuring the destination address of the remote control device to release messages as the unicast address of the device selected for control is the same as the process of configuring the display device in the one-to-one scenario when the destination address of the remote control device to release messages is the unicast address of the screen-casting device.
  • Display device configuration The process of deleting the destination multicast address from the subscription list for devices that are not selected to be controlled in the current control device is the same as the above-mentioned display device configuration.
  • the process of subscribing to the destination multicast address is similar and will not be repeated here.
  • the remote control device 903 switches from controlling the first screen projection device 904 and the second screen projection device 905 to controlling the third screen projection device 906, it is necessary to execute the above screen projection device (eg The first screen projection device 904 and/or the second screen projection device 905) relay the control device switching request generated by the remote control device 903, and then, the display device 902 determines that the target control device is the third screen projection according to the instruction of the selected target control device device 906. Next, the display device 902 configures the destination address when the remote control device 903 publishes a message as the unicast address of the third screen projection device 906, and configures the first screen projection device 904 and the second screen projection device 905 to delete the original destination address from the subscription list. Multicast address OxC003. Therefore, the remote control device 903 can switch from controlling the first screen projection device 904 and the second screen projection device 905 to controlling the third screen projection device 906 .
  • FIG. 10 is another flow chart of the method for switching control devices provided by the embodiment of the present application.
  • the control device switching method is applicable to a scenario where one shot is multiple.
  • a screen projection device 1101 projects audio, video, documents, etc. to multiple display devices 1102 for split-screen display
  • the multiple display devices 1102 include the first display device 1103 and the second display device 1104, the first display device 1103 is equipped with a remote control device 1105.
  • the number of the second display device 1104 is described below as one, but it can be understood that the number of the second display device 1104 may also be multiple, which is not limited in the present application.
  • the first display device 1103 can be used as a network distribution device and a configuration device, and the screen projection device 1101 can also be used as a network distribution device and a configuration device.
  • the first display device 1103 can serve as a network distribution device to add the remote control device 1105 and the screen projection device 1101 into the Mesh network.
  • step S1001 is that the first display device 1103 joins the remote control device 1105 into the Mesh network as a network distribution device
  • step S1003 is that the first display device 1103 joins the screen projection device 1101 as a network distribution device into the Mesh network.
  • the first display device 1103 can also be used as a configuration device to configure the address of the screen projection device 1101 and the address of the remote control device 1105 .
  • step S1002 is that the first display device 1103 is used as the configuration device to configure the destination address of the remote control device 1105 as the unicast address of the first display device 1103, so that the remote control device 1105 can control the first display device 1103;
  • step S1004 is that the first display device 1103 as the configuration device configures the destination address of the screen projection device 1101 to be the unicast address of the first display device 1103 , so that the first display device can process messages issued by the screen projection device 1101 .
  • the screen projection device 1101 can be used as a network distribution device to add the second display device 1104 to the Mesh network. Wherein, from step S1005 to step S1010, the screen projection device 1101 joins the second display device 1104 into the Mesh network as a network distribution device.
  • the screen projection device 1101 may also serve as a configuration device to configure the destination address of the second display device 1104 .
  • step S1011 is to configure the screen projection device 1101 as the configuration device to configure the destination address of the second display device 1104 as the unicast address of the screen projection device 1101 , so that the screen projection device 1101 can process the messages issued by the second display device 1104 .
  • the screen projection device 1101 also forwards the distribution network data distributed when the second display device 1104 joins the Mesh network to the first display device 1103, so that the first display device 1103 can also be used as a configuration device, as described in step S1019, to configure the remote control device
  • the destination address when publishing the message is the unicast address of the second display device.
  • the network configuration data may include a key and a unicast address of the second display device.
  • Steps S1013-S1021 are for the first display device 1013 to determine the target control device as the second display device 701 according to the operation on the remote control device 1105, so that the first display device 1013 can configure the destination address of the remote control device 1105 according to the target control device, so that the remote control device 1105 controls the second display device 1104 .
  • the remote control device 1105 switches between controlling the first display device 1103 and controlling the screen projection device 1101, which is different from the one-to-one scenario in Figure 6 in which the remote control device controls the display device and controls
  • the process of switching between screen mirroring devices is the same and will not be repeated here.
  • the following describes the switching method of the control device in the situation where the remote control device switches from controlling the first display device to controlling the second display device in the scenario of multiple projections in one shot.
  • the control device switching method includes:
  • the first display device adds the remote control device to the Mesh network.
  • the process of the first display device adding the remote control device to the Mesh network is the same as the process of adding the remote control device to the Mesh network by the display device in the one-cast-one scene (steps S601-S605), and will not be repeated here.
  • the first display device configures the destination address when the remote control device publishes a message as the unicast address of the first display device.
  • Step S1002 in this embodiment is similar to step S606 in the one-shot-one-scenario.
  • step S606 in the one-shot-one scene please refer to the detailed description of step S606 in the one-shot-one scene, and details are not repeated here.
  • the first display device adds the screen projection device to the Mesh network.
  • the process of the first display device adding the screen projection device to the Mesh network is the same as the process of the display device adding the screen projection device to the Mesh network in the one-to-one scene (steps S607-S611), and will not be repeated here.
  • Step S1004 The first display device configures the destination address when the screen projection device publishes a message as the unicast address of the first display device.
  • Step S1004 in this embodiment is similar to step S612 in the one-shot-one-scenario. For details, please refer to the detailed description of step S612 in the one-shot-one scene, and details are not repeated here.
  • the first display device sends prompt information to the screen projection device through a first transmission channel, where the first transmission channel is a channel formed after the first display device establishes a screen projection connection with the screen projection device.
  • the first display device may send prompt information to the screen projection device through the first transmission channel when the third preset condition is met.
  • the third preset condition may be, for example, after the first display device and the second display device establish a screen projection connection with the screen projection device, or after the first display device establishes a Bluetooth connection with the remote control device according to the GATT protocol. It can be understood that the third preset condition may also be other conditions, which are not limited in the present application.
  • the screen projection device sends a third network distribution notification to the second display device through the second transmission channel according to the prompt information, and the second transmission channel is a channel formed after the second display device establishes a screen projection connection with the screen projection device.
  • S1007 The second display device broadcasts the third network access application according to the third network distribution notification.
  • the second display device broadcasts the third network access application as a Mesh Beacon message according to the third network distribution notification.
  • the Mesh Beacon message is used to declare itself as a device not connected to the network.
  • the Mesh Beacon message may be an Unprovisioned Device Beacon message.
  • S1008 The screen projection device finds the third network access application through scanning.
  • the screen projection device can start scanning after sending the third network distribution notification, which is not limited in this application.
  • the screen mirroring device monitors scanning events. If the screen projection device monitors the Mesh Beacon message sent by the second display device, the screen projection device finds the third network access application through scanning.
  • the screen projection device configures the network for the second display device according to the found third network access application.
  • the screen projection device performs network configuration on the second display device, including the screen projection device initiating a network distribution invitation to the second display device, the second display device sending a network distribution capability to the screen projection device, and the screen projection device and the second display device One or more of the steps of the display device exchanging public keys, the screen projection device and the second display device performing identity authentication, and the screen projection device distributing network distribution data to the second display device.
  • the configuration data may include a key and a unicast address of the second display device.
  • the second display device stores the unicast address of the second display device distributed by the screen projection device.
  • the unicast address of the second display device can uniquely identify the second display device in the Mesh network. Therefore, the unicast address of the second display device can make other nodes in the Mesh network recognize that it is the second display device that publishes the message.
  • the screen projection device configures the destination address of the second display device to publish a message as the unicast address of the screen projection device.
  • the screen projection device can configure the destination address when the second display device publishes a message through the Config Model Publication Set to be the unicast address of the screen projection device. Specifically, the projection device can send the unicast address of the projection device to the second display device through the Config Model Publication Set, and the second display device can set the destination address of the second display device as the unicast address of the projection device. address. Therefore, in the Mesh network, the screen projection device can process the messages published by the second display device.
  • the screen projection device sends the network distribution data distributed when the screen projection device forms a network with the second display device to the first display device.
  • the screen projection device also sends the network distribution data distributed when the screen projection device and the second display device form a network to the first display device, so that the first display device can serve as a configurator to configure the address of the second display device.
  • the network configuration data may include a key and a unicast address of the second display device.
  • the networking of the first display device and the screen projection device, and the networking of the screen projection device and the second display device, the first display device, the second display device, the remote control Both the device and the projection device are in the same Mesh network.
  • the remote control device generates a control device switching request in response to the first operation of a button on the remote control device.
  • Step S1013 in this embodiment is similar to step S613 in the one-shot-one-scenario.
  • step S613 in the one-shot-one scene please refer to the detailed description of step S613 in the one-shot-one scene, and details are not repeated here.
  • the remote control device sends a control device switching request to the first display device, and correspondingly, the first display device receives the control device switching request sent by the remote control device.
  • Step S1014 in this embodiment is similar to step S614 in the one-shot-one-scenario.
  • step S614 in the one-shot-one scene please refer to the detailed description of step S614 in the one-shot-one scene, and details are not repeated here.
  • the first display device displays a control device selection interface according to the control device switching request.
  • Step S1015 in this embodiment is similar to step S615 in the one-shot-one-scenario.
  • step S615 in the one-shot-one scene please refer to the detailed description of step S615 in the one-shot-one scene, and details are not repeated here.
  • the target control devices that can be selected by the user may include the first display device, the second display device, and the screen projection device, so the control device selection interface may include the icon/name/logo of the first display device, the second display device icon/name/logo of and the icon/name/logo of the screen-casting device.
  • the remote control device generates a focus transfer instruction in response to the fourth operation of the key on the remote control device.
  • Step S1016 in this embodiment is similar to step S616 in the one-shot-one-scenario.
  • step S616 in the one-shot-one scene please refer to the detailed description of step S616 in the one-shot-one scene, and details are not repeated here.
  • the remote control device sends a focus transfer instruction to the first display device, and correspondingly, the first display device receives the focus transfer instruction sent by the remote control device.
  • Step S1017 in this embodiment is similar to step S617 in the one-shot-one-scenario.
  • step S617 in the one-shot-one scene please refer to the detailed description of step S617 in the one-shot-one scene, and details are not repeated here.
  • S1018 The first display device transfers the focus position to the second display device according to the focus transfer instruction.
  • Step S1018 in this embodiment is similar to step S618 in the one-shot-one-scenario.
  • step S618 in the one-shot-one scene please refer to the detailed description of step S618 in the one-shot-one scene, and details are not repeated here.
  • the remote control device generates an instruction for selecting a target control device in response to the fifth operation of the key on the remote control device.
  • Step S1019 in this embodiment is similar to step S619 in the one-shot-one-scenario.
  • step S619 in the one-shot-one scene please refer to the detailed description of step S619 in the one-shot-one scene, and details are not repeated here.
  • the remote control device sends a target control device instruction to the first display device, and correspondingly, the first display device receives the target control device instruction sent by the remote control device.
  • Step S1020 in this embodiment is similar to step S620 in the one-shot-one-scenario.
  • step S620 in the one-shot-one scene please refer to the detailed description of step S620 in the one-shot-one scene, and details are not repeated here.
  • the first display device determines that the target control device is the second display device according to the instruction for selecting the target control device.
  • Step S1021 in this embodiment is similar to step S621 in the one-shot-one-scenario.
  • step S621 in the one-shot-one scene please refer to the detailed description of step S621 in the one-shot-one scene, and details are not repeated here.
  • the first display device configures, according to the determined second display device, that the destination address when the remote control device publishes a message is the unicast address of the second display device.
  • the screen projection device also sends the network configuration data distributed by the screen projection device to the second display device to the first display device when the screen projection device is connected to the second display device, that is to say, the first display
  • the first display device may configure the destination address when the remote control device publishes a message according to the determined second display device as the unicast address of the second display device.
  • the process that the first display device configures the remote control device to issue a message according to the determined second display device is the unicast address of the second display device and the process that the display device configures the remote control device to issue a message according to the determined screen projection device.
  • the process of the unicast address of the screen mirroring device is the same, and will not be repeated here.
  • the remote control device switches from controlling the first display device to controlling the second display device
  • the user may want the remote control device to switch from controlling the second display device to controlling the screen projection device or the first display device.
  • the remote control device can execute the process of step S1013 above. Since the remote control device controls the second display device at this time, the first display device cannot handle the control device switching request issued by the remote control device. Handover requests are relayed. Specifically, in some embodiments, it may be preset that the second display device and the screen projection device reissue the control device switching request after receiving the control device switching request. Since the remote control device controls the second display device at this time, the second display device can process the control device switching request issued by the remote control device.
  • the second display device After the second display device receives the control device switching request issued by the remote control device, it republishes the control device switching request to the screen projection device; since in step S1011, the screen projection device has configured the The destination address is the unicast address of the screen projection device, and the screen projection device can process the control device switching request issued by the second display device.
  • the screen projection device After receiving the control device switching request issued by the second display device, the screen projection device may republish the control device switching request to the first display device.
  • the first display device After the first display device receives the control device switching request reissued by the screen projection device, the first display device may display the control device selection interface according to the control device switching request through the process as in the above step S1015. After seeing the control device selection interface, the user can select the projection device as the target control device.
  • the remote control device can also generate instructions similar to the above-mentioned steps S1016 and S1019 and send the instructions to the first display device, and the first display device can also be similar to the above-mentioned steps S1017-S1018 and similar to the above-mentioned steps
  • the target control device is the screen projection device.
  • the first display device can also configure the destination address of the remote control device to issue messages as the unicast address of the first display device, so that the remote control device can directly control the second display device. The device switches to direct control of the mirroring device.
  • the screen projection device can also be omitted in the control device switching method provided in the embodiment of the present application, and the remote control device can switch between directly controlling the first display device and directly controlling the second display device.
  • the control device switching system includes a remote control device, a first display device and a second display device. At the beginning, the remote control device controls the first display device, and the first display device can configure the destination address of the remote control device to issue messages as the second The address of the second display device, so that the remote control device switches from controlling the first display device to controlling the second display device.
  • the remote control device can also switch from controlling one of the multiple second display devices to controlling another second display device among the multiple second display devices .
  • the process in which the remote control device switches from controlling one of the multiple second display devices to controlling another second display device among the multiple second display devices is the same as the above-mentioned switching of the remote control device from controlling one second display device
  • the process to control the first display device is similar and will not be repeated here.
  • FIG. 12 is another flow chart of the method for switching control devices provided by the embodiment of the present application.
  • the control device switching method is applied in a system including the first device, the second device and the third device.
  • the third device is used to control the first device and/or the second device.
  • the control device switching method includes:
  • the first device is a display device
  • the second device is a screen-casting device
  • the second device is used to pass screen-casting content between the first device and the second device
  • the transmission channel is sent to the first device, so that the first device is used to display the screen projection content.
  • the situation that the third device is used to control the first device specifically includes: the situation that the destination address when the third device publishes a message is the address of the first device.
  • the address of the first device is an address allocated by the first device to the first device.
  • the first device, the second device and the third device form a Mesh network.
  • the first device receives the first control device switching request by receiving a user's operation on the first device.
  • the third device sends the first control device switching request to the first device in response to a user's operation on the third device, so that the first device receives the first control device switching request.
  • a control device switching request
  • the first device After the first device receives the switching request of the first control device, the first device configures the destination address when the third device publishes a message as the address of the second device, so that the The third device is switched from being used for controlling the first device to being used for controlling the second device.
  • the situation that the third device is used to control the second device specifically includes: the situation that the destination address when the third device publishes a message is the address of the second device.
  • the address of the second device is an address assigned by the first device to the second device.
  • the first device displays a control device selection interface, and the control device selection interface includes the information of the first device and and/or information about the second device, where the information includes an icon, a name, and/or an identifier. Therefore, after seeing the control device selection interface, the user can select the second device as the target control device, and then the first device can configure the destination address when the third device publishes a message as the address of the second device.
  • the third device can control the first device.
  • the address of the second device is a multicast address, and the multicast address is specially assigned by the first device for the second device multicast address.
  • the first device after the first device receives the switching request of the first control device, the first device further configures all devices in the second device to subscribe to the multicast address .
  • the third device can control multiple devices.
  • the second device when the third device is used to control the second device, the second device receives a second control device switching request; when the second device receives the second control After the device switch request, the second device reissues the second control device switch request to the first device; after the first device receives the reissued second control device switch request, the The first device configures the destination address when the third device issues a message as the address of the first device, so that the third device switches from controlling the second device to controlling the Describe the first device. Therefore, after the third device switches from controlling the first device to controlling the second device, it can also switch from controlling the second device to controlling the first device.
  • FIG. 13 is a schematic diagram of a logical structure of a first device provided in an embodiment of the present application.
  • the first device 13 includes a receiving unit 1301 and a processing unit 1302 .
  • the receiving unit 1301 is configured to receive a switching request of a first control device when the first device can be controlled by a third device.
  • the processing unit 1302 is configured to configure, by the first device, the destination address when the third device publishes a message as the address of the second device after receiving the switching request from the first control device, so that the second device The third device is switched from being used to control the first device to being used to control the second device.
  • the receiving unit 1301 is further configured to receive a second control device switching request.
  • the processing unit 1302 is further configured to, after receiving the second control device switching request, configure the destination address when the third device issues a message as the address of the first device, so that the third device switching from being used for controlling the second device to being used for controlling the first device.
  • the first device is a display device.
  • the receiving unit 1301 is further configured to receive screen projection content sent by the second device.
  • the processing unit 1302 is also configured to display the screen projection content.
  • the processing unit 1302 is further configured to allocate the address of the first device to itself, and allocate the address of the second device to the second device.
  • the processing unit 1302 is further configured to, after receiving the first control device switch request, display a control device selection interface, where the control device selection interface includes information about the first device and/or Information about the second device, where the information includes an icon, a name, and/or an identifier.
  • the address of the second device is a unicast address of the second device.
  • the processing unit 1302 is further configured to, after receiving the switching request from the first control device, configure all devices in the second device to subscribe to the multicast address.
  • FIG. 14 is a schematic diagram of a logical structure of a second device provided in an embodiment of the present application.
  • the second device 14 includes a receiving unit 1401 and a processing unit 1402 .
  • the receiving unit 1401 is configured to receive a second control device switch request when the second device is controllable by a third device.
  • the processing unit 1402 is configured to reissue the second control device switching request to the first device after the second device receives the second control device switching request.
  • the second device is a screen projection device.
  • the second device 14 further includes a sending unit 1403 .
  • the sending unit 1403 is configured to send screen projection content to the first device.
  • FIG. 15 is a schematic diagram of a logical structure of a third device provided in an embodiment of the present application.
  • the third device 15 includes a receiving unit 1501.
  • the receiving unit 1501 is configured to send a first control device switching request to the first device when the third device is used to control the first device, so as to switch from being used to control the first device to a for controlling the second device.
  • the receiving unit 1501 is further configured to send a second control device switching request to the second device when the third device is used to control the second device, so that the third device can be used to control the second device. Controlling the switching of the second device to control the first device.
  • the situation that the third device is used to control the first device specifically includes: the situation that the destination address when the third device publishes a message is the address of the first device. In some embodiments, the situation that the third device is used to control the second device specifically includes: the situation that the destination address when the third device publishes a message is the address of the second device.
  • an embodiment of the present application also provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and the program causes the computer device to execute the method for controlling device switching shown in FIG. 12 .
  • a computer program product comprising computer-executable instructions stored in a computer-readable storage medium; from which at least one processor of a device can read the The computer executes instructions, and the at least one processor executes the computer executed instructions so that the device implements the method for controlling device switching shown in FIG. 12 .
  • the first device when the third device is used to control the first device, the first device receives the first control device switching request; after the first device receives the first control device switching request, the first device sends the third device a message
  • the destination address is configured as the address of the second device, so that the third device is switched from controlling the first device to controlling the second device, so that the third device can quickly switch from controlling the first device to controlling the second device , without mapping and forwarding messages, the third device can control the second device conveniently, simply and safely.
  • the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application .
  • a computer device which can be a personal computer, a server, or a network device, etc.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • wired eg, coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless eg, infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本申请公开了一种控制设备切换系统、控制设备切换方法及其设备,无需进行消息的映射和转发,使得第三设备可便捷地、简单地和安全地对第二设备进行控制。一种控制设备切换方法,应用于包括第一设备、第二设备和第三设备的系统中,第三设备用于控制第一设备和/或第二设备,所述方法包括:在第三设备用于控制第一设备的情况下,第一设备接收第一控制设备切换请求;在第一设备接收到第一控制设备切换请求之后,第一设备将第三设备发布消息时的目的地址配置为第二设备的地址,以使得第三设备由用于控制第一设备切换为用于控制第二设备,从而可快捷地从控制第一设备切换为控制第二设备。

Description

控制设备切换系统、控制设备切换方法及其设备
本申请要求于2021年11月2日提交中国国家知识产权局、申请号为202111297233.9、发明名称为“控制设备切换系统、控制设备切换方法及其设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及控制技术领域,尤其涉及一种控制设备切换系统、控制设备切换方法及其设备。
背景技术
在多屏的互动过程中,有时需要将投屏设备(例如手机等)上的视频、音频及文档等投屏到显示设备(例如电视等)上进行显示,并可通过遥控设备(例如遥控器等)控制显示设备。为了方便遥控设备控制投屏设备上的视频、音频及文档等的播放,可将遥控设备的按键信息映射后从显示设备发送到投屏设备。但是,将遥控设备的按键信息映射需要显示设备在应用层中转消息,且需要额外的应用层通道将映射后的按键信息从显示设备发送到投屏设备,会导致时延较大。
发明内容
鉴于以上内容,有必要提供一种控制设备切换系统、控制设备切换方法及其设备,无需进行消息的映射和转发,使得第三设备可便捷地、简单地和安全地对第二设备进行控制。
第一方面,本申请的一实施例提供一种控制设备切换方法,应用于包括第一设备、第二设备和第三设备的系统中,所述第三设备用于控制所述第一设备和/或所述第二设备,所述方法包括:在所述第三设备用于控制所述第一设备的情况下,所述第一设备接收第一控制设备切换请求;在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
本申请的第一方面,通过在所述第三设备用于控制所述第一设备的情况下,所述第一设备接收第一控制设备切换请求,并在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址,从而可便捷地使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备,且无需由第一设备进行指令的转换和中转,第三设备可便捷地、简单地和安全地对第二设备进行控制。
根据本申请的一些实施例,所述方法还包括:在所述第三设备用于控制所述第二设备的情况下,所述第二设备接收第二控制设备切换请求;在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至所述第一设备;在所 述第一设备接收到重新发布的所述第二控制设备切换请求后,所述第一设备将所述第三设备发布消息时的所述目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。本申请通过在第三设备用于控制第二设备的情况下,由第二设备中转第二控制设备切换请求至第一设备,使得第一设备可根据第二控制设备切换请求配置第一设备的地址,从而可便捷地使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
根据本申请的一些实施例,所述第一设备为显示设备,所述第二设备为投屏设备,所述第二设备用于将投屏内容通过所述第一设备和所述第二设备之间的传输通道发送给所述第一设备,以使得所述第一设备用于显示所述投屏内容。本申请通过第一设备为显示设备,第二设备为投屏设备,且投屏设备用于将投屏内容通过显示设备和投屏设备之间的传输通道发送给所述显示设备,可使得所述显示设备可显示所述投屏内容,且使得所述方法用于投屏场景下。
根据本申请的一些实施例,所述第三设备用于控制所述第一设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况;所述第三设备用于控制所述第二设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。本申请通过对第三设备发布消息时的所述目的地址为所述第一设备的地址及第三设备发布消息时的所述目的地址为所述第二设备的地址,实现了第三设备控制第一设备的情况和第三设备控制第二设备的情况。
根据本申请的一些实施例,所述第一设备的地址、所述第二设备的地址是所述第一设备分别为所述第一设备、所述第二设备分配的地址。本申请通过第一设备为第一设备和第二设备分配第一设备的地址和第二设备的地址,使得第一设备作为配网设备。
根据本申请的一些实施例,所述第一设备、所述第二设备和所述第三设备组成Mesh网络。本申请通过第一设备、第二设备和第三设备组成Mesh网络,使得第一设备、第二设备和第三设备的组网方式为Mesh组网。
根据本申请的一些实施例,所述方法还包括:在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。本申请通过显示控制设备选择界面,使得用户在看到控制设备选择界面后,可以选择第一设备或第二设备作为目标控制设备,进而第一设备控制第一设备或第二设备。
根据本申请的一些实施例,所述第一设备接收第一控制设备切换请求,具体包括:所述第一设备通过接收用户作用于所述第一设备的操作,接收所述第一控制设备切换请求;或者,所述第三设备响应于用户作用于所述第三设备的操作,向所述第一设备发送所述第一控制设备切换请求,使得所述第一设备接收所述第一控制设备切换请求。本申请通过第一控制设备切换请求可由用户作用第一设备或者用户作用第三设备产生,可提供第一控制设备切换请求,并可提供多样化的第一控制设备切换请求产生方式。
根据本申请的一些实施例,若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。本申请通过第二设备的地址为所述第二设备的单播地址,使得第三设备可控制单个设备。
根据本申请的一些实施例,若所述第二设备的数量为多个,所述第二设备的地址为组播 地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;所述方法还包括:在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址。本申请通过第二设备的地址为组播地址,且第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址,使得第三设备可同时控制多个设备。
第二方面,本申请的一实施例还提供一种控制设备切换方法,应用于第一设备,所述方法包括:在所述第一设备处于可被第三设备控制的情况下,所述第一设备接收第一控制设备切换请求;在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
根据本申请的一些实施例,在所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址之后,所述方法还包括:所述第一设备接收第二控制设备切换请求;在所述第一设备接收到所述第二控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
根据本申请的一些实施例,所述第一设备为显示设备,所述第一设备用于接收所述第二设备发送的投屏内容并显示所述投屏内容。
根据本申请的一些实施例,所述方法还包括:所述第一设备为其自身分配所述第一设备的地址,以及,为所述第二设备分配所述第二设备的地址。
根据本申请的一些实施例,所述方法还包括:在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。
根据本申请的一些实施例,若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。
根据本申请的一些实施例,若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;所述方法还包括:在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址。
第三方面,本申请的一实施例还提供一种控制设备切换方法,应用于第二设备,所述方法包括:在所述第二设备处于可被第三设备控制的情况下,所述第二设备接收第二控制设备切换请求;在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至第一设备。
根据本申请的一些实施例,所述第二设备为投屏设备,所述第二设备用于向所述第一设备发送投屏内容。
第四方面,本申请的一实施例还提供一种控制设备切换方法,应用于第三设备,所述方法包括:在所述第三设备用于控制第一设备的情况下,所述第三设备向所述第一设备发送第一控制设备切换请求,以由用于控制所述第一设备切换为用于控制所述第二设备。
根据本申请的一些实施例,所述方法包括:在所述第三设备用于控制所述第二设备的情况下,所述第三设备向所述第二设备发送第二控制设备切换请求,以由用于控制第二设备切 换为用于控制所述第一设备。
根据本申请的一些实施例,所述第三设备用于控制所述第一设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况;所述第三设备用于控制所述第二设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。
第五方面,本申请的一实施例还提供一种控制设备切换系统,所述系统包括第一设备、第二设备和第三设备,所述第三设备用于控制所述第一设备和/或所述第二设备;其中,在所述第三设备用于控制所述第一设备的情况下,所述第一设备接收第一控制设备切换请求;在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
根据本申请的一些实施例,在所述第三设备用于控制所述第二设备的情况下,所述第二设备接收第二控制设备切换请求;在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至所述第一设备;在所述第一设备接收到重新发布的所述第二控制设备切换请求后,所述第一设备将所述第三设备发布消息时的所述目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
根据本申请的一些实施例,所述第一设备为显示设备,所述第二设备为投屏设备,所述第二设备用于将投屏内容通过所述第一设备和所述第二设备之间的传输通道发送给所述第一设备,以使得所述第一设备用于显示所述投屏内容。
根据本申请的一些实施例,所述第三设备用于控制所述第一设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况;所述第三设备用于控制所述第二设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。
根据本申请的一些实施例,所述第一设备的地址、所述第二设备的地址是所述第一设备分别为所述第一设备、所述第二设备分配的地址。
根据本申请的一些实施例,所述第一设备、所述第二设备和所述第三设备组成Mesh网络。
根据本申请的一些实施例,在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。
根据本申请的一些实施例,所述第一设备通过接收用户作用于所述第一设备的操作,接收所述第一控制设备切换请求;或者,所述第三设备响应于用户作用于所述第三设备的操作,向所述第一设备发送所述第一控制设备切换请求,使得所述第一设备接收所述第一控制设备切换请求。
根据本申请的一些实施例,若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。
根据本申请的一些实施例,若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;在所述第一设备 接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址。
第六方面,本申请的一实施例还提供一种第一设备,所述第一设备包括接收单元和处理单元:所述接收单元用于在所述第一设备处于可被第三设备控制的情况下,接收第一控制设备切换请求;所述处理单元用于在接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
第七方面,本申请的一实施例还提供一种第二设备,所述第二设备包括接收单元和处理单元:所述接收单元用于在所述第二设备处于可被第三设备控制的情况下,接收第二控制设备切换请求;所述处理单元用于在所述第二设备接收到所述第二控制设备切换请求后,将所述第二控制设备切换请求重新发布至第一设备。
第八方面,本申请的一实施例还提供一种第三设备,所述第三设备包括接收单元:所述接收单元用于在所述第三设备用于控制第一设备的情况下,向所述第一设备发送第一控制设备切换请求,以由用于控制所述第一设备切换为用于控制第二设备。
第九方面,本申请的一实施例还提供一种电子设备,所述电子设备包括至少一个处理器、存储器和通信接口;所述至少一个处理器与所述存储器和所述通信接口耦合;所述存储器用于存储指令,所述处理器用于执行所述指令,所述通信接口用于在所述至少一个处理器的控制下与其他设备进行通信;所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如上第一方面、如上第二方面、如上第三方面、或如上第四方面任意一种可能的实施例的所述的控制设备切换方法。
第十方面,本申请的一实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有程序,所述程序使得计算机设备执行如上第一方面、如上第二方面、如上第三方面、或如上第四方面任意一种可能的实施例的所述的控制设备切换方法。
第十一方面,本申请的一实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;电子设备的至少一个处理器可以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述电子设备执行如上第一方面、如上第二方面、如上第三方面、或如上第四方面任意一种可能的实施例的所述的控制设备切换方法。本申请中第二方面到第十一方面及其各种实现方式的有益效果,可以参考第一方面及其各种实现方式,以及第一方面中的有益效果分析,此处不再赘述。
附图说明
图1为现有技术的控制设备切换系统的示意图。
图2为本申请实施例提供的控制设备切换系统的示意图。
图3为本申请实施例提供的显示设备的实体结构示意图。
图4为本申请实施例提供的遥控设备的实体结构示意图。
图5为本申请实施例提供的投屏设备的实体结构示意图。
图6为本申请实施例提供的控制设备切换方法的流程图。
图7为本申请实施例提供的一投一的场景的示意图。
图8A为本申请实施例提供的控制设备选择界面的示意图;图8B为本申请实施例提供的另一控制设备选择界面的示意图。
图9为本申请实施例提供的多投一的场景的示意图。
图10为本申请实施例提供的控制设备切换方法的另一流程图。
图11为本申请实施例提供的一投多的场景的示意图。
图12为本申请实施例提供的控制设备切换方法的另一流程图。
图13为本申请实施例提供的第一设备的逻辑结构示意图。
图14为本申请实施例提供的第二设备的逻辑结构示意图。
图15为本申请实施例提供的第三设备的逻辑结构示意图。
具体实施方式
在本申请实施例的描述中,“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“例如”等词旨在以具体方式呈现相关概念。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“多个”是指两个或多于两个。
现有技术提供一种基于遥控设备的投屏控制方法,可应用于一种基于遥控设备的投屏控制系统。投屏控制系统包括遥控设备、投屏设备(例如手机等)和显示设备(例如电视等)。投屏设备用于为显示设备提供投屏内容。显示设备用于显示投屏内容。现有技术提供的投屏控制方法需要遥控设备向显示设备发送指令,显示设备转换指令和投屏设备接收转换后的指令。具体地,在现有的投屏控制方法中,如图1所示,遥控设备11会先向显示设备12发送控制指令,接着显示设备12在应用层将遥控设备11的控制指令转换为投屏设备13的反控指令,并在应用层建立额外的应用层通道来传送转换后的反控指令,然后投屏设备13接收所述显示设备12传送的反控指令,并根据反控指令控制投屏文件,例如幻灯片的翻页、视频的播放和暂停、显示界面的切换、应用程序的打开和关闭等。但是,这需要显示设备12在应用层中转换指令,并需要在应用层中建立应用层通道来中转指令,如此将会导致遥控设备11和投屏设备13之间的信息交互复杂,且会为指令的传送增加额外的时间开销,导致指令时延较大,使得遥控设备11和投屏设备13之间信息的交互不及时。有鉴于此,本申请实施例提出了一种控制设备切换方法,在遥控设备想要控制投屏设备时,无需由显示设备进行指令的转换和中转,遥控设备可以方便地由直接控制显示设备切换为直接控制投屏设备,使得遥控设备可便捷地、简单地和安全地对投屏设备进行控制。
参考图2,为本申请实施例提供的控制设备切换系统的示意图。如图2所示,所述控制设备切换系统20包括显示设备21、遥控设备22及投屏设备23。显示设备21的数量可为一个或多个。显示设备21例如可为手机、平板电脑、数码相机、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)、智能电视、大屏、智慧屏、显示器等具有显示屏幕的设备。遥控设备22例如可为遥控器、手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等设备。投屏设备23的数量可为一个或多个。投屏设备23例如可为手机、平板电脑、数码相机、个人数字助理(personal digital  assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等设备。
图2中仅示出了一个显示设备21和一个投屏设备23,但是可理解的是,显示设备21的数量也可为多个,或者投屏设备23的数量也可为多个。遥控设备22可通过蓝牙GATT(Generic Attribute Profile,通用属性配置文件)连接将信号发送到所述显示设备21来控制显示设备21。可理解,遥控设备22还可通过其他方式将信号发送到显示设备21来控制显示设备21,例如红外线遥控、wifi等,本申请对此不作限制。
投屏设备23可与显示设备21建立投屏连接来将投屏设备23上的视频、音频及文档等文件投屏到显示设备21上进行显示。遥控设备22可将控制指令发送给显示设备21,显示设备21可响应接收到的控制指令。在一种可能的实现方式中,显示设备21、遥控设备22及投屏设备23可进行组网,建立Mesh网络,通过该Mesh网络进行通信。在另一些可能的实现方式中,显示设备21、遥控设备22及投屏设备23也可通过以其他形式进行组网所形成的网络进行通信,本申请实施例对此不做限定。在一些实施例中,在显示设备21与遥控设备22建立通信连接后,显示设备21可配置遥控设备22发布的消息被显示设备21处理,使得遥控设备22首先为直接控制显示设备21。在显示设备21、遥控设备22及投屏设备23组网后,遥控设备22可接收用户的操作,产生控制设备切换请求,并将控制设备切换请求传送至显示设备21。显示设备21可根据控制设备切换请求显示选择界面以供用户操作遥控设备22选择用户想要将控制转移到的目标控制设备。例如,显示设备21根据对遥控设备22的选择操作,确定目标控制设备为投屏设备23,显示设备21可以据此配置遥控设备22发布的消息被投屏设备23处理。从而,遥控设备22可从直接控制显示设备21切换至直接控制投屏设备23,无需由显示设备21进行控制指令的转换和中转。其中,图2中的遥控设备22与显示设备21之间的实线表示遥控设备22可直接控制显示设备21,遥控设备22与投屏设备23之间的虚线表示遥控设备22可从直接控制显示设备21被切换至直接控制投屏设备23,此时遥控设备22将不再控制显示设备21。可理解的是,遥控设备22还可从直接控制投屏设备23切换至直接控制显示设备21。
请参考图3,为本申请实施例提供的显示设备的实体结构示意图。所述显示设备30例如可为手机、平板电脑、数码相机、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)、智能电视、大屏、智慧屏等具有显示屏幕的设备。所述显示设备30可以为图2所述实施例中的显示设备21。
显示设备30可以包括处理器301、外部存储器接口302、内部存储器303、USB(universal serial bus,通用串行总线)接口304、电源管理模块305、无线通信模块306、音频模块307、扬声器307A、麦克风307B、音箱接口307C、传感器模块308、按键309、指示器310、摄像头311、以及显示屏312等。
可以理解的是,图3中示出的结构并不构成对所述显示设备30的限定,显示设备30可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
处理器301可以包括一个或多个处理单元,例如:处理器301可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network  processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器301可以是显示设备30的神经中枢和指挥中心。处理器301可以根据指令完成取指令,产生操作控制信号,进而执行指令的控制。在本申请实施例中,处理器301可以根据无线通信模块306接收到的信号执行对应的操作,例如根据无线通信模块306接收到的mesh广播开始配网;根据无线通信模块306接收到的目标控制设备指令配置遥控设备发布的消息可被目标控制设备处理,使得遥控设备可直接控制目标控制设备。
处理器301中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器301中的存储器为高速缓冲存储器。该存储器可以保存处理器301刚用过或循环使用的指令或数据。如果处理器301需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器301的等待时间,因而提高了系统的效率。在一些实施例中,处理器301可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,和/或USB接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对显示设备30的结构限定,显示设备30也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合,本申请对此不作限制。
USB接口304可使得显示设备30可以通过USB数据线和其他设备进行通信。在本实施例中,还可包括高清晰多媒体接口(high definition multimedia interface,HDMI)。显示设备30可以通过HDMI和机顶盒(set top box,STB)等设备进行通信。
电源管理模块305用于连接电源。电源管理模块305还可以与处理器301、内部存储器303、显示屏312、摄像头311和无线通信模块306等连接。电源管理模块305接收电源的输入,为处理器301、内部存储器303、显示屏312、摄像头311和无线通信模块306等供电。在一些实施例中,电源管理模块305也可以设置于处理器301中。
无线通信模块306可以包括蓝牙模块、Wi-Fi模块、zigbee模块等。蓝牙模块、Wi-Fi模块、和/或zigbee模块可以与遥控设备以及投屏设备进行数据交互。在具体实现时,蓝牙模块可以提供包括经典蓝牙(例如蓝牙2.1)模块和/或蓝牙低功耗(bluetooth low energy,BLE)模块。Wi-Fi模块可以包括Wi-Fi direct模块、Wi-Fi LAN模块或Wi-Fi softAP模块中一项或多项。在一些实施例中,蓝牙模块、Wi-Fi模块、和/或zigbee模块可以接收和发射信号等,进行可以与遥控设备以及投屏设备建立mesh网;发送信号至遥控设备和/或投屏设备。在一些实施例中,显示设备30可以通过Wi-Fi模块接入互联网,从而与互联网上的服务器(例如视频播放网站服务器)建立通信连接。在一些实施例中,蓝牙模块可以基于GATT协议接收遥控设备等的控制,例如接收控制显示设备的开机、接收控制显示设备的播放视频、接收控制显示设备的关机等。在一些实施例中,无线通信模块306还可以包括红外线通信模块。红外线通信模块可以通过红外遥控技术也接收遥控设备等的控制,例如接收控制显示设备的开机、接收控制显示设备的播放视频、接收控制显示设备的关机等。
显示设备30通过GPU,显示屏312,以及应用处理器等实现显示功能。GPU为图像处 理的微处理器,连接显示屏312和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。显示屏312用于显示图像,视频等。所述显示屏312包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
显示设备30可以通过ISP,摄像头311,视频编解码器,GPU,显示屏312以及应用处理器等实现拍摄功能。ISP用于处理摄像头311反馈的数据。在一些实施例中,ISP可以设置在摄像头311中。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当显示设备30在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。视频编解码器用于对数字视频压缩或解压缩。显示设备30可以支持一种或多种视频编解码器。这样,显示设备30可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
外部存储器接口302可以用于连接外部存储卡,例如Micro SD卡,实现扩展显示设备30的存储能力。外部存储卡通过外部存储器接口302与处理器301通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器303可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器301通过运行存储在内部存储器303的指令,从而执行显示设备30的各种功能应用以及数据处理。例如,在本申请实施例中,处理器301可以通过执行存储在内部存储器303中的指令,内部存储器303可以包括存储程序区和存储数据区。
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储显示设备30使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器303可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
显示设备30可以通过音频模块307,扬声器307A,麦克风307B,音箱接口307C,以及应用处理器等实现音频功能。例如,音乐播放,录音等。
按键309包括开机键,音量键等。按键309可以是机械按键。也可以是触摸式按键。显示设备30可以接收按键309输入,产生与显示设备30的用户设置以及功能控制有关的键信号输入。
指示器310可以是指示灯,可以用于指示显示设备30处于开机状态、待机状态或者关机状态等。例如,指示灯灭灯,可指示显示设备30处于关机状态;指示灯为绿色或者蓝色,可指示显示设备30处于待机状态;指示灯为红色,可指示显示设备30处于待机状态。
请参考图4,为本申请实施例提供的遥控设备的实体结构示意图。遥控设备40例如可为遥控器、手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等设备。所述遥控设备40可以为图2所述实施例中的遥控设备22。
遥控设备40可以包括存储器401、处理器402、通信模块403、按键404、及指示器405。 可以理解的是,图4中示出的结构并不构成对遥控设备40的限定,遥控设备40可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
所述存储器401可用于存储软件程序和/或模块/单元。所述处理器402通过运行或执行存储在所述存储器401内的软件程序和/或模块/单元,以及调用存储在存储器401内的数据,实现所述遥控设备40的各种功能。所述存储器401可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质等。
所述处理器402可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。该处理器402可以是微处理器或者该处理器402也可以是任何常规的处理器等,所述处理器402是所述遥控设备40的控制中心,利用各种接口和线路连接整个遥控设备40的各个部分。
通信模块403可以包括蓝牙模块、Wi-Fi模块、zigbee模块等。蓝牙模块、Wi-Fi模块、和/或zigbee模块可以与显示设备以及投屏设备进行数据交互。在具体实现时,蓝牙模块可以提供包括经典蓝牙(例如蓝牙2.1)模块和/或蓝牙低功耗(bluetooth low energy,BLE)模块。Wi-Fi模块可以包括Wi-Fi direct模块、Wi-Fi LAN模块或Wi-Fi softAP模块中一项或多项。在一些实施例中,蓝牙模块、Wi-Fi模块、和/或zigbee模块可以接收和发射信号等,例如广播信号,使得其他设备(例如显示设备)可以发现遥控设备40,进而遥控设备40可以与显示设备建立mesh网;发送信号至显示设备或者投屏设备,例如控制显示设备的开机、显示设备的播放视频、显示设备的关机、控制投屏设备的上下翻页等。在一些实施例中,蓝牙模块可以基于GATT协议控制显示设备等,例如控制显示设备的开机、显示设备的播放视频、显示设备的关机等。在一些实施例中,无线通信模块还可以包括红外线通信模块。红外线通信模块可以通过红外遥控技术也控制显示设备等,例如控制显示设备的开机、显示设备的播放视频、显示设备的关机等。
按键404可以包括电源键,控制键等。按键404可以是机械按键。也可以是触摸式按键。遥控设备40可以接收按键404输入,产生与遥控设备40的用户设置以及功能控制有关的键信号输入。
指示器405可以是指示灯,指示灯用于根据接收到的指令亮起指定颜色的灯光。
请参考图5,为本申请实施例提供的投屏设备的实体结构示意图。投屏设备50例如可为手机、平板电脑、数码相机、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等设备。所述投屏设备50可以为图2所述实施例中的投屏设备23。
投屏设备50可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器 170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像模组193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对投屏设备50的具体限定。在本申请另一些实施例中,投屏设备50可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器110中。
处理器110可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110用过或使用频率较高的指令或数据。如果处理器110需要使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。处理器110可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像头等模块。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对投屏设备50的结构限定。在本申请另一些实施例中,投屏设备50也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
USB接口130是一种符合USB标准规范的接口,可以用于连接显示设备和外围设备,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。
充电管理模块140用于接收充电器的充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过投屏设备50的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为投屏设备50供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量, 电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
投屏设备50的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。投屏设备50中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在投屏设备50上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在投屏设备50上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),蓝牙低功耗(bluetooth low energy,BLE),超宽带(ultra wide band,UWB),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,投屏设备50的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得投屏设备50可以通过无线通信技术与网络和其他电子设备通信。该无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。该GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS), 北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
投屏设备50可以通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,投屏设备50可以包括1个或多个显示屏194。
投屏设备50可以通过摄像模组193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。
摄像模组193可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理摄像模组193采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将该电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像模组193中。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展投屏设备50的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储投屏设备50使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行投屏设备50的各种功能方法或数据处理。
投屏设备50可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。投屏设备50可以通过扬声器170A收听音乐,或输出免提通话的音频信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当投屏设备50接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
按键190可以包括开机键,音量键等。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
在本申请实施例提供的控制设备切换方法的一种实现方式中,显示设备、投屏设备和遥控设备可以通过Mesh网络来实现该控制设备切换方法。为了更好地理解本申请,下面先对Mesh网络所涉及的一些术语和概念进行介绍。但应理解,本申请实施例提供的控制设备切换方法不限定于通过Mesh网络来实现,其他的实现方式(例如通过WiFi网络)也不超出本申请实施例或本申请权利要求书覆盖的范围。
Mesh网络:是一种无线局域网类型,也就是网状结构网络。Mesh网络中的每两个设备之间都可以进行通信。
配网设备:是Mesh网络的节点,可将未配网设备转换为节点。具体的,配网设备可对未配网设备启动配网以将未配网设备加入Mesh网成为Mesh网的节点。在将未配网设备加入Mesh网时,配网设备还会为每个加入Mesh网的设备分发单播地址,因此,在经过配网过程后,每个Mesh网的节点会被分发单播地址。
配置设备:是Mesh网络的节点,可负责配置Mesh网络中的节点。具体的,配置设备还可配置节点的目的地址和/或节点订阅的地址,使得节点之间也可以相互通信。配置设备也可将地址从节点的订阅列表中删除,使得节点之间不可以相互通信。配置设备可与配网设备为同一设备。配置设备也可与配网设备不为同一设备。
地址:可包括单播地址和/或组播地址。每个设备在配网的过程中会被分配唯一的单播地址,该单播地址用于唯一地标识所述设备在所述Mesh网络中的地址。每个组播地址表示逻辑上的一个群组。如果Mesh网中的一个节点的目的地址为另一个节点的单播地址,则所述一个节点发布的消息只能被单播地址为目的地址的另一节点所处理。例如,如果节点A的目的地址为节点B的单播地址,则节点A发布的消息只能被节点B所处理,而不能被其他节点处理,因为其他节点的单播地址不是节点A的目的地址(即节点B的单播地址)。如果Mesh网中的一个节点的目的地址为组播地址,则所述节点发布的消息可以被订阅了组播地址的其他节点所处理,而不能被没有订阅组播地址的其他节点所处理。
发布/订阅:Mesh网可使用发布/订阅模型来进行消息的传输。生成消息的节点会发布消息。需要接收消息的节点可订阅需要的组播地址。消息可被发布至单播地址或组播地址。将生成消息的节点的目的地址配置为单播地址,从而生成消息的节点发布的消息可以被单播地址对应的节点接收。将生成消息的节点的目的地址配置为组播地址,并将该组播地址添加到 需要接收消息的多个节点的订阅列表中,使得需要接收组播消息的多个节点均订阅该组播地址,从而生成消息的节点发布的消息可以被订阅了组播地址的多个节点接收。
为方便理解,本申请以下实施例将以具有图3所示结构的显示设备、图4所示结构的遥控设备、和图5所示结构的投屏设备为例,结合附图和应用场景,对本申请实施例提供的控制设备切换方法进行具体阐述。
为了描述的方便,下面将以蓝牙Mesh网为例对本案进行说明。但应理解,本申请实施例不限定具体的组网方式。
请参考图6,为本申请实施例提供的控制设备切换方法的流程图。所述控制设备切换方法应用于一投一的场景。在一投一的场景下,如图7所示,一个投屏设备701将音频、视频、文档等投屏到一个显示设备702上显示,一个显示设备702配有一个遥控设备703。
在一投一的场景下,显示设备702可作为配网设备和配置设备。显示设备702可作为配网设备将遥控设备703和投屏设备701加入Mesh网络中。其中,步骤S601-S605为显示设备702作为配网设备将遥控设备703加入Mesh网络中;步骤S607-S611为显示设备702作为配网设备将投屏设备701加入Mesh网络中。显示设备702还可作为配置设备配置投屏设备701的目的地址和遥控设备703的目的地址。其中,步骤S606为显示设备702作为配置设备配置遥控设备703的目的地址为显示设备702的单播地址,使得遥控设备703可控制显示设备702;步骤S612为显示设备702作为配置设备配置投屏设备701的目的地址为显示设备702的单播地址,使得显示设备702可处理投屏设备701发布的消息;步骤S622为显示设备702作为配置设备配置遥控设备703的目的地址为投屏设备701的单播地址,使得遥控设备703可控制投屏设备701。步骤S613-S621为显示设备702根据对遥控设备703的操作确定目标控制设备为投屏设备701,从而显示设备702可根据目标控制设备配置遥控设备703的目的地址,使得遥控设备703控制投屏设备701。所述控制设备切换方法包括:
S601:显示设备通过蓝牙GATT连接向遥控设备发送第一配网通知。
在一些实施例中,显示设备可在满足第一预设条件时通过GATT协议向遥控设备发送第一配网通知。所述第一预设条件可为,例如,显示设备与遥控设备根据GATT协议建立蓝牙GATT连接之后,或者显示设备与投屏设备建立投屏连接之后。可理解,第一预设条件还可为其他条件,本申请对此不作限制。
S602:遥控设备根据第一配网通知以广播的方式发送第一入网申请。
在本实施例中,遥控设备根据第一配网通知对外广播为Mesh Beacon报文的第一入网申请。所述Mesh Beacon报文用于声明自己是未入网设备。所述Mesh Beacon报文可以为Unprovisioned Device Beacon报文。
S603:显示设备通过扫描发现第一入网申请。
显示设备可在发送第一配网通知后开始扫描,本申请对此不作限制。
在一些实施例中,显示设备对扫描事件进行监听。若显示设备监听到遥控设备发送的Mesh Beacon报文,则显示设备通过扫描发现第一入网申请。
S604:显示设备根据发现的第一入网申请对遥控设备进行配网。
在一些实施例中,显示设备对遥控设备进行配网包括显示设备向遥控设备发起配网邀请、遥控设备向显示设备发送配网能力、显示设备和遥控设备交换公钥、显示设备和遥控设备进行身份认证、显示设备向遥控设备分发配网数据等步骤中的一种或多种。配网数据可以包括 密钥和遥控设备的单播地址。遥控设备的单播地址,可以是在Mesh配网阶段由作为配网设备的显示设备,为遥控设备专门分配的。在Mesh配网阶段,显示设备在给遥控设备分发配网数据时,还给自己分发显示设备的单播地址。
S605:遥控设备存储显示设备分发的遥控设备的单播地址。
在一些实施例中,遥控设备的单播地址可唯一地标识Mesh网络中的遥控设备。从而,遥控设备的单播地址可使得Mesh网络中的其他节点识别出来是遥控设备在发布消息。
S606:显示设备配置遥控设备发布消息时的目的地址为显示设备的单播地址。
在一些实施例中,显示设备可以通过Config Model Publication Set配置遥控设备发布消息时的目的地址为显示设备的单播地址。具体的,显示设备可通过Config Model Publication Set发送显示设备的单播地址给遥控设备,遥控设备可将遥控设备发布消息时的目的地址设为显示设备的单播地址。从而,遥控设备发布的消息只能被显示设备所处理,其他设备即使接收到遥控设备发布的消息,也不能正确处理或者不会去处理遥控设备发布的消息。即,遥控设备可直接控制显示设备。此时,显示设备可断开与遥控设备之间的GATT连接。
S607:显示设备通过传输通道向投屏设备发送第二配网通知,所述传输通道为显示设备与投屏设备建立投屏连接后形成的通道。
在一些实施例中,传输通道可为上述投屏设备将视频、音频及文档等文件投屏到显示设备上进行显示时传输视频、音频及文档等文件的通道。
在一些实施例中,显示设备可在满足第二预设条件时通过传输通道向投屏设备发送第二配网通知。所述第二预设条件可为,例如,显示设备与投屏设备建立投屏连接之后,或者显示设备与遥控设备根据GATT协议建立蓝牙连接之后。可理解,第二预设条件还可为其他条件,本申请对此不作限制。
S608:投屏设备根据第二配网通知以广播的方式发送第二入网申请。
在一些实施例中,投屏设备根据第二配网通知对外广播为Mesh Beacon报文的第二入网申请。所述Mesh Beacon报文用于声明自己是未入网设备。所述Mesh Beacon报文可以为Unprovisioned Device Beacon报文。
S609:显示设备通过扫描发现第二入网申请。
显示设备可在发送第二配网通知后开始扫描,本申请对此不作限制。
在一些实施例中,显示设备对扫描事件进行监听。若显示设备监听到投屏设备发送的Mesh Beacon报文,则显示设备通过扫描发现第二入网申请。
S610:显示设备根据发现的第二入网申请对投屏设备进行配网。
在一些实施例中,显示设备对投屏设备进行配网包括显示设备向投屏设备发起配网邀请、投屏设备向显示设备发送配网能力、显示设备和投屏设备交换公钥、显示设备和投屏设备进行身份认证、显示设备向投屏设备分发配网数据等步骤中的一种或多种。配网数据可以包括密钥和投屏设备的单播地址。投屏设备的单播地址,可以是在Mesh配网阶段由作为配网设备的显示设备,为投屏设备专门分配的。
S611:投屏设备存储显示设备分发的投屏设备的单播地址。
在一些实施例中,投屏设备的单播地址可唯一地标识Mesh网络中的投屏设备。从而,投屏设备的单播地址可使得Mesh网络中的其他节点识别出来是投屏设备在发布消息。
S612:显示设备配置投屏设备发布消息时的目的地址为显示设备的单播地址。
在一些实施例中,显示设备可以通过Config Model Publication Set配置投屏设备发布消息时的目的地址为显示设备的单播地址。具体的,显示设备可通过Config Model Publication Set发送显示设备的单播地址给投屏设备,投屏设备可将投屏设备发布消息时的目的地址设为显示设备的单播地址。从而,在Mesh网络中,对于投屏设备所发布的消息,显示设备可进行处理。
通过上述的显示设备与遥控设备的组网,以及显示设备与投屏设备的组网,显示设备、遥控设备及投屏设备均处于同一Mesh网络中。在显示设备、遥控设备、及投屏设备组网后,可进行下面描述的切换控制设备操作:
S613:遥控设备响应于作用在遥控设备上的按键的第一操作,产生控制设备切换请求。
在一些实施例中,遥控设备可以包括一个切换按键。所述切换按键用于触发产生控制设备切换请求。例如,用户可长按所述切换按键,遥控设备可接收用户的长按操作,并根据用户的长按操作产生控制设备切换请求。可理解,所述切换按键还可实现其他的功能,用户可通过设置不同的操作时间、操作次数等来设置切换按键具有不同的功能,例如,用户可设置短按“切换按键”的操作为返回到上一级菜单的操作。
在一些实施例中,遥控设备还可以设置一种组合按键。所述组合按键用于触发产生控制设备切换请求。例如,用户同时按下遥控设备上的A键和B键,遥控设备可接收用户的按压组合按键的操作,并根据用户的按压组合按键的操作产生控制设备切换请求。
在一些实施例中,显示设备可以显示一用于触发控制设备切换功能的控件、图标或按钮,当遥控焦点位于该控件、图标或按钮上时,用户可以按下遥控设备上的“确认”键,产生控制设备切换请求。也就是说,所述按键可以是遥控设备上的“确认”键,按下“确认”键产生的确认指令此时可以理解为控制设备切换请求,显示设备在接收到确认指令即控制设备切换请求(步骤S614)后,可显示控制设备选择界面(步骤S615)。
S614:遥控设备向显示设备发送控制设备切换请求,相应地,显示设备接收遥控设备发送的控制设备切换请求。
由于在步骤S606中,显示设备已经配置遥控设备发布消息时的目的地址为显示设备的单播地址,则遥控设备发布的控制设备切换请求,只能被显示设备所处理。
例如,遥控设备发送一条包含控制设备切换请求和遥控设备的目的地址的消息,由于该消息中携带的遥控设备的目的地址为显示设备的单播地址,因此当显示设备接收到该消息后,可根据该消息中的目的地址是显示设备的单播地址,确定要处理这条消息。其他设备(例如投屏设备)即使接收到该消息,也不能正确处理或者不会去处理该消息。
S615:显示设备根据控制设备切换请求显示控制设备选择界面。
在一些实施例中,显示设备可显示控制设备选择界面以供用户通过遥控设备在控制设备选择界面中选择目标控制设备。所述控制设备选择界面中可显示有显示设备的信息和投屏设备的信息。显示设备的信息和投屏设备的信息可被用户操作。例如,如图8A所示,所述控制设备选择界面800包括提示信息801、显示设备的图标802和投屏设备的图标803。所述提示信息801用于提示用户进行操作,例如可为“请选择被遥控的设备”。所述显示设备的图标802和所述投屏设备的图标803可以被用户选择。可理解,图8A是控制设备选择界面的一种示例,所述控制设备选择界面中可以不包括提示信息801,所述控制设备选择界面中显示所述显示设备的图标802和所述投屏设备的图标803的同时,可还显示显示设备的名称802(例 如客厅小米电视等)和投屏设备803的名称(例如我的华为智慧屏等),或者所述控制设备选择界面中仅显示显示设备的唯一标识信息(例如显示设备的SN(Serial Number,产品序列号)等)和投屏设备的唯一标识信息(例如投屏设备的SN(Serial Number,产品序列号)等)等,本申请对控制设备选择界面的内容和形式不作限制。
S616:遥控设备响应于作用在遥控设备上的按键的第二操作,产生焦点转移指令。
在一些实施例中,所述焦点转移指令承载在第二操作对应的遥控设备的按键信息中。
在一些实施例中,用户在看到显示设备上显示的控制设备选择界面后,可以通过遥控设备将焦点转移到想要控制的目标控制设备。例如,用户看见如图8A所示的控制设备选择界面800后,用户可按下遥控设备上的方向键左键将焦点从当前控制的显示设备的图标802移动至投屏设备的图标803。则,遥控设备接收用户按压方向键左键的操作,并响应于按压方向键左键的操作产生焦点转移指令,所述焦点转移指令承载在遥控设备的左键信息中。
S617:遥控设备向显示设备发送焦点转移指令,相应地,显示设备接收遥控设备发送的焦点转移指令。
由于在步骤S606中,显示设备已经配置遥控设备发布消息时的目的地址为显示设备的单播地址,则遥控设备发布的焦点转移指令,只能被显示设备所处理。
S618:显示设备根据焦点转移指令转移焦点的位置至投屏设备。
在一些实施例中,显示设备根据焦点转移指令可知道遥控设备发布的指令为:要求设备将当前焦点向左移动,则显示设备会获取当前焦点的位置,根据当前焦点的位置和将当前焦点向左移动的指令转移焦点的位置。例如,在图8A中,当前焦点位于显示设备的图标802上,则显示设备可根据当前焦点位于显示设备的图标802上和将当前焦点向左移动的指令将焦点转移到投屏设备的图标,使得转移后的当前焦点位于投屏设备的图标803,如图8B所示。
S619:遥控设备响应于作用在遥控设备上的按键的第三操作,产生选定目标控制设备指令。
在一些实施例中,所述选定目标控制设备指令承载在第三操作对应的遥控设备的按键信息中。
在一些实施例中,用户在看到显示设备上的当前焦点转移到投屏设备的图标后,可以通过遥控设备选择投屏设备作为目标控制设备。例如,用户看见如图8B所示的当前焦点转移到投屏设备的图标803后,可按下遥控设备上的确认键来选择投屏设备作为目标控制设备。则,遥控设备接收用户按压确认键的操作,并响应于按压确认键的操作产生选定目标控制设备指令,所述选定目标控制设备指令承载在遥控设备的确认键信息(或者说确认指令)中。
S620:遥控设备向显示设备发送选定目标控制设备指令,相应地,显示设备接收遥控设备发送的选定目标控制设备指令。
由于在步骤S606中,显示设备已经配置遥控设备发布消息时的目的地址为显示设备的单播地址,则遥控设备发布的选定目标控制设备指令,只能被显示设备所处理。
S621:显示设备根据选定目标控制设备指令确定目标控制设备为投屏设备。
在一些实施例中,显示设备根据选定目标控制设备指令可知道遥控设备发布的指令为:要求设备选择当前焦点位置的设备,则显示设备会获取当前焦点的位置,根据当前焦点的位置和选择当前焦点位置的设备的指令选定目标控制设备。例如,在图8B中,当前焦点位于投屏设备的图标803上,则电子设备可根据当前焦点位于投屏设备的图标803上和选择当前 焦点位置的设备的指令选定投屏设备作为目标控制设备。
S622:显示设备根据确定的投屏设备配置遥控设备发布消息时的目的地址为投屏设备的单播地址。
在一些实施例中,显示设备通过Config Model Publication Set发送投屏设备的单播地址给遥控设备,遥控设备将遥控设备发布消息时的目的地址设为投屏设备的单播地址。从而,遥控设备发布的消息只能被投屏设备所处理,其他设备即使接收到遥控设备发布的消息,也不能正确处理遥控设备发布的消息。即,遥控设备可直接控制投屏设备。从而,遥控设备从控制显示设备切换至控制投屏设备。
可以理解的是,遥控设备在从控制显示设备切换至控制投屏设备后,用户可能希望遥控设备从控制投屏设备切换至控制显示设备,下面简单介绍遥控设备从控制投屏设备切换至控制显示设备:
遥控设备可如同上述步骤S613的过程,接收用户的切换控制设备的操作产生控制设备切换请求。由于遥控设备此时控制投屏设备,显示设备无法处理遥控设备发布的控制设备切换请求,因此,需要投屏设备将控制设备切换请求进行中转。在一些实施例中,可预先设置投屏设备接收到控制设备切换请求后重新发布所述控制设备切换请求。由于遥控设备此时控制投屏设备,投屏设备可处理遥控设备发布的控制设备切换请求。由于已经预先设置投屏设备接收到控制设备切换请求后会重新发布,则投屏设备在接收到遥控设备发布的控制设备切换请求后,对控制设备切换请求进行重新发布处理。显示设备接收到投屏设备重新发布的控制设备切换请求后,显示设备可通过如同上述步骤S615的过程,根据控制设备切换请求显示控制设备选择界面。用户看到控制设备选择界面后,可以选择显示设备作为目标控制设备。具体地,在一些实施例中,遥控设备可通过类似上述步骤S616和S619的过程,接收用户的操作,并响应于用户的操作产生转移焦点指令,并还可通过类似上述步骤S619的过程,接收用户的操作,并响应于用户的操作产生选定目标控制设备指令;显示设备可通过类似上述步骤S617-S618的过程,接收焦点转移指令,并根据焦点转移指令转移焦点的位置至显示设备,并还可通过类似上述步骤S620-S621的过程,接收选定目标控制设备指令,根据当前焦点的位置和选定目标控制设备指令确定目标控制设备为显示设备。进而,在选择显示设备作为目标控制设备之后,显示设备可通过如同上述步骤S606的过程,配置遥控设备发布消息时的目的地址为显示设备的单播地址,从而将遥控设备从直接控制投屏设备切换回直接控制显示设备。
可以理解的是,在遥控设备从控制投屏设备切换至控制显示设备,还可根据需要,重新按照上述的切换控制设备操作从控制显示设备切换至控制投屏设备,本申请对此不作限制。也就是说,本申请实施例提供的控制设备切换方法,可实现控制设备(即,遥控设备直接控制的设备)的来回、多次切换。
可以理解的是,上述的步骤S612的顺序可在步骤S622之后,本申请对此不作限制。
可以理解的是,在一些实施例中,在遥控设备控制投屏设备时,在显示设备接收到投屏设备重新发布的控制设备切换请求后,也可省略配置遥控设备发布消息时的目的地址为显示设备的单播地址的操作,继续由投屏设备对遥控设备发布的消息进行中转(或重新发布),直至显示设备完成配置遥控设备的目的地址来使得遥控设备直接控制显示设备或者投屏设备,或者,显示设备接收到退出配置的操作等。
可以理解的是,步骤S601-S606和步骤S607-S612可以互换顺序,或者步骤S601-S606和步骤S607-S612可以同时执行,本申请对此不作限制。
可以理解的是,图6中的步骤S613-S614可省略,用户可通过操作显示设备产生控制设备切换请求,例如显示设备包括一个用于触发产生控制设备切换请求的切换键或者组合按键,或者显示设备上显示有一个用于触发产生控制设备切换请求的虚拟按键,或者显示设备的菜单中显示有用于触发产生控制设备切换请求的项目等,本申请对此不作限制。
可以理解的是,图6中的步骤S615-S620可省略,在一些实施例中,所述遥控设备可为手机等电子设备,遥控设备上可安装有应用程序(APP)来模拟遥控器的功能。显示设备还可根据控制设备切换请求产生控制设备选择界面信息,并发布所述控制设备选择界面信息。遥控设备可接收所述控制设备选择界面信息,若遥控设备为例如手机等具有显示屏的电子设备,则遥控设备可以根据所述控制设备选择界面信息,显示控制设备选择界面。遥控设备还可接收用户在控制设备选择界面中选择投屏设备的操作,并响应于选择投屏设备的操作确定目标控制设备为投屏设备,并发送包括目标控制设备为投屏设备的选定目标控制设备指令至显示设备。进而显示设备可以将遥控设备发布消息时的目的地址配置为投屏设备的单播地址,使得接下来遥控设备发布的控制指令能直接发送至投屏设备,遥控设备切换为直接控制投屏设备。
可以理解的是,显示设备还可显示显示设备扫描发现的设备列表,以供用户从中选择设备来加入Mesh网络中,例如选择遥控设备和投屏设备加入Mesh网络中,本申请对此不作限制。
可以理解的是,图6中的步骤S601可省略,遥控设备在上电时以广播的方式发送第一入网申请;图6中的步骤S607可省略,投屏设备在上电时以广播的方式发送第二入网申请,本申请对此不作限制。
可以理解的是,图6中的步骤S615-S621可省略,显示设备可根据当前控制显示设备和控制设备切换请求确定目标控制设备为投屏设备,本申请对此不作限制。也就是说,显示设备可不显示供用户选择目标控制设备的界面,显示设备在步骤S614接收到遥控设备发送的控制设备切换请求后,就直接响应于所述控制设备切换请求,配置遥控设备发布消息时的目的地址为投屏设备的单播地址。类似地,若用户想要使遥控设备从直接控制投屏设备切换回直接控制显示设备,则用户可以对遥控设备的按键执行第一操作,所述第一操作触发遥控设备向投屏设备发布控制设备切换请求,投屏设备将接收到的控制设备切换请求重新发布至显示设备,从而显示设备就直接响应于所述控制设备切换请求,配置遥控设备发布消息时的目的地址为显示设备的单播地址。
可以理解的是,图6中的步骤S616-S618可省略,用户可直接选择当前焦点位置的设备,无需进行焦点转移,本申请对此不作限制。
图6所示的控制设备切换方法不仅可应用于一投一的场景,还可应用于多投一的场景。在多投一的场景下,如图9所示,多个投屏设备901(例如包括投屏设备904、投屏设备905、投屏设备906)将音频、视频、文档等投屏到一个显示设备902上分屏显示,一个显示设备902配有一个遥控设备903。在多投一的场景下,显示设备902可作为配网设备和配置设备。显示设备902可作为配网设备将遥控设备903和多个投屏设备901加入Mesh网络中。显示设备902还可作为配置设备配置投屏设备901发布消息的目的地址,并配置遥控设备903发 布消息的目的地址和投屏设备901订阅的地址。
在多投一的场景下,显示设备902作为配网设备将遥控设备903和多个投屏设备901加入Mesh网络中的过程与图6中的在一投一的场景下显示设备作为配网设备将遥控设备和投屏设备加入Mesh网络中的过程相似;显示设备902作为配置设备配置多个投屏设备901发布消息的目的地址的过程与图6中的一投一的场景下显示设备作为配置设备配置投屏设备发布消息的目的地址的过程相似;显示设备902作为配置设备配置遥控设备903发布消息的目的地址为显示设备的单播地址的过程与图6中的一投一的场景下显示设备作为配置设备配置遥控设备发布消息的目的地址为显示设备的单播地址的过程相似,在此不再赘述。
在多投一的场景下,遥控设备903从控制多个投屏设备901和显示设备902中的一个设备切换至控制另一设备的过程与图6中的一投一的场景下遥控设备903在控制投屏设备901和控制显示设备902之间进行切换的过程相似,在此不再赘述。
在多投一的场景下的控制设备切换方法,与上述一投一的场景下的控制设备切换方法的不同之处在于:
显示设备作为配置设备,若为遥控设备从控制多个投屏设备和显示设备中的一个设备切换至控制多个投屏设备的情形,则显示设备可确定目标控制设备为多个投屏设备。显示设备还专门分配目的组播地址,配置遥控设备发布消息时的目的地址为所述目的组播地址,并配置被直接控制的多个投屏设备订阅的地址为所述目的组播地址。
在一些实施例中,所述被直接控制的多个投屏设备为逻辑上的一个群组。所述显示设备可从组播地址[OxC000,OxFEEE]中为所述群组专门分配目的组播地址。所述显示设备可通过Config Model Publication Set配置遥控设备发布消息时的目的地址为所述目的组播地址,并通过Config Model Subscription Add配置群组中要被直接控制的多个投屏设备订阅的地址为所述目的组播地址。具体的,显示设备可通过Config Model Publication Set发送目的组播地址给遥控设备,遥控设备将遥控设备发布消息时的目的地址设为目的组播地址;显示设备还可通过Config Model Subscription Add发送目的组播地址给用户选择的要进行控制的多个投屏设备,每个选择的投屏设备都在自己的订阅列表中添加目的组播地址。从而,遥控设备可被切换至控制多个投屏设备。
例如,如图9所示,多个投屏设备901分别为第一投屏设备904、第二投屏设备905和第三投屏设备906。若为遥控设备903从控制显示设备902切换至控制第二投屏设备905和第三投屏设备906的情形,遥控设备903和显示设备902可如图6中步骤S613-步骤S620的过程进行信号的产生和信息的交互,然后,显示设备902根据选定目标控制设备指令确定目标控制设备为第二投屏设备905和第三投屏设备906。则第二投屏设备905和第三投屏设备906为逻辑上的一个群组。接着,显示设备902为所述群组专门分配目的组播地址OxC003,配置遥控设备903发布消息时的目的地址为所述群组的目的组播地址OxC003,并配置群组中的第二投屏设备905和第三投屏设备906订阅的地址均为所述群组的目的组播地址OxC003。从而,订阅了目的组播地址的第二投屏设备905和第三投屏设备906可处理遥控设备903发布的消息,没有订阅目的组播地址的设备不可处理遥控设备903发布的消息,即第二投屏设备905和第三投屏设备906组成的群组可处理遥控设备903发布的消息。遥控设备903可从控制显示设备902切换至控制第二投屏设备905和第三投屏设备906。
显示设备作为配置设备,若为遥控设备从控制多个投屏设备中的多个设备切换至控制另 外的多个设备的情形,即,逻辑上的群组发生变化的情形,则显示设备可以重新分配目的组播地址,重新配置遥控设备发布消息时的目的地址和投屏设备订阅的地址。在一些实施例中,显示设备还可以配置当前控制投屏设备中未被选择控制的投屏设备从订阅列表中删除原先订阅的目的组播地址。
在一些实施例中,显示设备可从组播地址[OxC000,OxFEEE]中重新分配目的组播地址。显示设备可通过Config Model Subscription Delete配置当前投屏设备中未被选择控制的投屏设备从订阅列表中删除原来的目的组播地址。具体的,显示设备可通过Config Model Subscription Delete发送删除订阅的原来的目的组播地址的消息至当前投屏设备中未被选择控制的投屏设备,当前投屏设备中未被选择控制的投屏设备可从订阅列表中删除原来的目的组播地址,则后续未被选择控制的投屏设备不可再接收遥控设备发布的消息,即遥控设备不再控制未被选择控制的投屏设备。
例如,如图9所示,若为遥控设备903从控制第一投屏设备904和第二投屏设备905切换至控制第二投屏设备905和第三投屏设备906的情形,则需要执行上述的一投一的场景下的投屏设备(例如第一投屏设备904和/或第二投屏设备905)将遥控设备产生的控制设备切换请求进行中转,然后,显示设备902显示控制设备选择界面,接着,根据用户选择第二投屏设备905和第三投屏设备906的操作,遥控设备901产生选定目标控制设备指令,显示设备902则根据选定目标控制设备指令确定目标控制设备为第二投屏设备905和第三投屏设备906。此时,由于用户的选择操作,逻辑上的群组由包括第一投屏设备904和第二投屏设备905变化为新的包括第二投屏设备905和第三投屏设备906的群组。接着,显示设备902为新的群组专门分配目的组播地址OxC005,配置遥控设备903发布消息时的目的地址为新的群组的目的组播地址OxC005,并配置新的群组中的第二投屏设备905和第三投屏设备906订阅的地址均为新的群组的目的组播地址OxC005。显示设备902还配置第一投屏设备904从订阅列表中删除原来的群组的目的组播地址OxC003。从而,订阅了新的目的组播地址的第二投屏设备905和第三投屏设备906可处理遥控设备903发布的消息,没有订阅新的目的组播地址的设备不可处理遥控设备903发布的消息,即第二投屏设备905和第三投屏设备906组成的新的群组可处理遥控设备903发布的消息。遥控设备903则可从控制第一投屏设备904和第二投屏设备905切换至控制第二投屏设备905和第三投屏设备906。
显示设备作为配置设备,若为遥控设备从控制多个投屏设备中的多个设备切换至控制多个投屏设备和显示设备中的一个设备的情形,则显示设备根据选择控制的设备配置遥控设备发布消息时的目的地址为选择控制的设备的单播地址,并配置当前控制设备中未被选择控制的设备从订阅列表中删除目的组播地址。其中,显示设备配置遥控设备发布消息时的目的地址为选择控制的设备的单播地址的过程与上述一投一的场景下的显示设备配置遥控设备发布消息时的目的地址为投屏设备的单播地址的过程相似,在此不再赘述。显示设备配置当前控制设备中未被选择控制的设备从订阅列表中删除目的组播地址的过程与上述的显示设备配置当前控制投屏设备中未被选择控制的投屏设备从订阅列表中删除原先订阅的目的组播地址的过程相似,在此不再赘述。
例如,如图9所示,若为遥控设备903从控制第一投屏设备904和第二投屏设备905切换至控制第三投屏设备906的情形,则需要执行上述的投屏设备(例如第一投屏设备904和/或第二投屏设备905)将遥控设备903产生的控制设备切换请求进行中转,然后,显示设备902 根据选定目标控制设备指令确定目标控制设备为第三投屏设备906。接着,显示设备902配置遥控设备903发布消息时的目的地址为第三投屏设备906的单播地址,并配置第一投屏设备904和第二投屏设备905从订阅列表中删除原来的目的组播地址OxC003。从而,遥控设备903可从控制第一投屏设备904和第二投屏设备905切换至控制第三投屏设备906。
请参考图10,为本申请实施例提供的控制设备切换方法的另一流程图。所述控制设备切换方法应用于一投多的场景。在一投多的场景下,如图11所示,一个投屏设备1101将音频、视频、文档等投屏到多个显示设备1102上分屏显示,多个显示设备1102包括第一显示设备1103和第二显示设备1104,第一显示设备1103配有一个遥控设备1105。第二显示设备1104的数量可为一个或多个。下面为了描述的方便,以第二显示设备1104的数量为一个进行描述,但是可理解,第二显示设备1104的数量还可为多个,本申请对此不作限制。
在一投多的场景下,第一显示设备1103可作为配网设备和配置设备,投屏设备1101也可作为配网设备和配置设备。第一显示设备1103可作为配网设备将遥控设备1105和投屏设备1101加入Mesh网络中。其中,步骤S1001为第一显示设备1103作为配网设备将遥控设备1105加入Mesh网络中;步骤S1003为第一显示设备1103作为配网设备将投屏设备1101加入Mesh网络中。第一显示设备1103还可作为配置设备配置投屏设备1101的地址和遥控设备1105的地址。其中,步骤S1002为第一显示设备1103作为配置设备配置遥控设备1105的目的地址为第一显示设备1103的单播地址,使得遥控设备1105可控制第一显示设备1103;步骤S1004为第一显示设备1103作为配置设备配置投屏设备1101的目的地址为第一显示设备1103的单播地址,使得第一显示设备可处理投屏设备1101发布的消息。
投屏设备1101可作为配网设备将第二显示设备1104加入Mesh网络中。其中,步骤S1005-步骤S1010为投屏设备1101作为配网设备将第二显示设备1104加入Mesh网络中。投屏设备1101还可作为配置设备配置第二显示设备1104的目的地址。其中,步骤S1011为投屏设备1101作为配置设备配置第二显示设备1104的目的地址为投屏设备1101的单播地址,使得投屏设备1101可处理第二显示设备1104发布的消息。
投屏设备1101还转发将第二显示设备1104加入Mesh网络中时分发的配网数据至第一显示设备1103,从而第一显示设备1103还可以作为配置设备,如同步骤S1019所述,配置遥控设备发布消息时的目的地址为第二显示设备的单播地址。所述配网数据可以包括密钥和第二显示设备的单播地址。
步骤S1013-S1021为第一显示设备1013根据对遥控设备1105的操作确定目标控制设备为第二显示设备701,从而第一显示设备1013可根据目标控制设备配置遥控设备1105的目的地址,使得遥控设备1105控制第二显示设备1104。
在一投多的场景下,遥控设备1105在控制第一显示设备1103和控制投屏设备1101之间进行切换的过程,与图6中的一投一的场景下遥控设备在控制显示设备和控制投屏设备之间进行切换的过程相同,在此不再赘述。下面介绍在一投多的场景下,遥控设备从控制第一显示设备切换至控制第二显示设备的情形下的控制设备切换方法。所述控制设备切换方法包括:
S1001:第一显示设备将遥控设备加入Mesh网络中。
所述第一显示设备将遥控设备加入Mesh网络中的过程与一投一场景中的显示设备将遥控设备加入Mesh网络中的过程(步骤S601-S605)相同,在此不再赘述。
S1002:第一显示设备配置遥控设备发布消息时的目的地址为第一显示设备的单播地址。
本实施例中的步骤S1002与一投一场景中的步骤S606相似,具体请参阅一投一场景中对步骤S606的详细描述,在此不进行赘述。
S1003:第一显示设备将投屏设备加入Mesh网络中。
所述第一显示设备将投屏设备加入Mesh网络中的过程与一投一场景中显示设备将投屏设备加入Mesh网络中的过程(步骤S607-S611)相同,在此不再赘述。
S1004:第一显示设备配置投屏设备发布消息时的目的地址为第一显示设备的单播地址。本实施例中的步骤S1004与一投一场景中的步骤S612相似,具体请参阅一投一场景中对步骤S612的详细描述,在此不进行赘述。
S1005:第一显示设备通过第一传输通道向投屏设备发送提示信息,所述第一传输通道为第一显示设备与投屏设备建立投屏连接后形成的通道。
在一些实施例中,第一显示设备可在满足第三预设条件时通过第一传输通道向投屏设备发送提示信息。所述第三预设条件可为,例如,第一显示设备和第二显示设备与投屏设备建立投屏连接之后,或者第一显示设备与遥控设备根据GATT协议建立蓝牙连接之后。可理解,第三预设条件还可为其他条件,本申请对此不作限制。
S1006:投屏设备根据提示信息通过第二传输通道向第二显示设备发送第三配网通知,所述第二传输通道为第二显示设备与投屏设备建立投屏连接后形成的通道。
S1007:第二显示设备根据第三配网通知以广播的方式发送第三入网申请。
在一些实施例中,第二显示设备根据第三配网通知对外广播为Mesh Beacon报文的第三入网申请。所述Mesh Beacon报文用于声明自己是未入网设备。所述Mesh Beacon报文可以为Unprovisioned Device Beacon报文。
S1008:投屏设备通过扫描发现第三入网申请。
投屏设备可在发送第三配网通知后开始扫描,本申请对此不作限制。
在一些实施例中,投屏设备对扫描事件进行监听。若投屏设备监听到第二显示设备发送的Mesh Beacon报文,则投屏设备通过扫描发现第三入网申请。
S1009:投屏设备根据发现的第三入网申请对第二显示设备进行配网。
在一些实施例中,投屏设备对第二显示设备进行配网包括投屏设备向第二显示设备发起配网邀请、第二显示设备向投屏设备发送配网能力、投屏设备和第二显示设备交换公钥、投屏设备和第二显示设备进行身份认证、投屏设备向第二显示设备分发配网数据等步骤中的一种或多种。配网数据可以包括密钥和第二显示设备的单播地址。
S1010:所述第二显示设备存储投屏设备分发的第二显示设备的单播地址。
在一些实施例中,第二显示设备的单播地址可唯一的标识Mesh网络中的第二显示设备。从而,第二显示设备的单播地址可使得Mesh网络中的其他节点识别出来是第二显示设备在发布消息。
S1011:投屏设备配置第二显示设备发布消息时的目的地址为投屏设备的单播地址。
在一些实施例中,投屏设备可以通过Config Model Publication Set配置第二显示设备发布消息时的目的地址为投屏设备的单播地址。具体的,投屏设备可通过Config Model Publication Set发送投屏设备的单播地址给第二显示设备,第二显示设备可将第二显示设备发布消息时的目的地址设为投屏设备的单播地址。从而,在Mesh网络中,对于第二显示设备所发布的消息,投屏设备可进行处理。
S1012:投屏设备将投屏设备与第二显示设备组网时分发的配网数据发送给第一显示设备。
投屏设备还将投屏设备与第二显示设备组网时分发的配网数据发送给第一显示设备,从而第一显示设备可作为配置者配置第二显示设备的地址。所述配网数据可以包括密钥和第二显示设备的单播地址。
通过上述的第一显示设备与遥控设备的组网,第一显示设备与投屏设备的组网,以及投屏设备与第二显示设备的组网,第一显示设备、第二显示设备、遥控设备及投屏设备均处于同一Mesh网络中。在第一显示设备、第二显示设备、遥控设备、及投屏设备组网后,可进行下面描述的切换控制设备操作:
S1013:遥控设备响应于作用在遥控设备上的按键的第一操作,产生控制设备切换请求。
本实施例中的步骤S1013与一投一场景中的步骤S613相似,具体请参阅一投一场景中对步骤S613的详细描述,在此不进行赘述。
S1014:遥控设备向第一显示设备发送控制设备切换请求,相应地,第一显示设备接收遥控设备发送的控制设备切换请求。
本实施例中的步骤S1014与一投一场景中的步骤S614相似,具体请参阅一投一场景中对步骤S614的详细描述,在此不进行赘述。
S1015:第一显示设备根据控制设备切换请求显示控制设备选择界面。
本实施例中的步骤S1015与一投一场景中的步骤S615相似,具体请参阅一投一场景中对步骤S615的详细描述,在此不进行赘述。
此时,可供用户选择的目标控制设备可以包括第一显示设备、第二显示设备和投屏设备,因此控制设备选择界面中可以包含第一显示设备的图标/名称/标识、第二显示设备的图标/名称/标识和投屏设备的图标/名称/标识。
S1016:遥控设备响应于作用在遥控设备上的按键的第四操作,产生焦点转移指令。
本实施例中的步骤S1016与一投一场景中的步骤S616相似,具体请参阅一投一场景中对步骤S616的详细描述,在此不进行赘述。
S1017:遥控设备向第一显示设备发送焦点转移指令,相应地,第一显示设备接收遥控设备发送的焦点转移指令。
本实施例中的步骤S1017与一投一场景中的步骤S617相似,具体请参阅一投一场景中对步骤S617的详细描述,在此不进行赘述。
S1018:第一显示设备根据焦点转移指令转移焦点的位置至第二显示设备。
本实施例中的步骤S1018与一投一场景中的步骤S618相似,具体请参阅一投一场景中对步骤S618的详细描述,在此不进行赘述。
S1019:遥控设备响应于作用在遥控设备上的按键的第五操作,产生选定目标控制设备指令。
本实施例中的步骤S1019与一投一场景中的步骤S619相似,具体请参阅一投一场景中对步骤S619的详细描述,在此不进行赘述。
S1020:遥控设备向第一显示设备发送选定目标控制设备指令,相应地,第一显示设备接收遥控设备发送的选定目标控制设备指令。
本实施例中的步骤S1020与一投一场景中的步骤S620相似,具体请参阅一投一场景中对 步骤S620的详细描述,在此不进行赘述。
S1021:第一显示设备根据选定目标控制设备指令确定目标控制设备为第二显示设备。
本实施例中的步骤S1021与一投一场景中的步骤S621相似,具体请参阅一投一场景中对步骤S621的详细描述,在此不进行赘述。
S1022:第一显示设备根据确定的第二显示设备配置遥控设备发布消息时的目的地址为第二显示设备的单播地址。
由于在步骤S1012中,投屏设备还将投屏设备与第二显示设备组网时投屏设备为第二显示设备分发的配网数据发送给了第一显示设备,也就是说,第一显示设备获取到了第二显示设备的配网数据,第二显示设备的配网数据中包括第二显示设备的单播地址。从而,在步骤S1022中,第一显示设备可根据确定的第二显示设备配置遥控设备发布消息时的目的地址为第二显示设备的单播地址。
第一显示设备根据确定的第二显示设备配置遥控设备发布消息时的目的地址为第二显示设备的单播地址的过程与显示设备根据确定的投屏设备配置遥控设备发布消息时的目的地址为投屏设备的单播地址的过程相同,在此不再赘述。
可以理解的是,遥控设备在从控制第一显示设备切换至控制第二显示设备后,用户可能希望遥控设备从控制第二显示设备切换至控制投屏设备或者第一显示设备。下面简单介绍遥控设备从控制第二显示设备切换至控制投屏设备:
遥控设备可执行上述步骤S1013的过程,由于遥控设备此时控制第二显示设备,第一显示设备无法处理遥控设备发布的控制设备切换请求,因此,需要第二显示设备和投屏设备将控制设备切换请求进行中转。具体地,在一些实施例中,可预先设置第二显示设备和投屏设备接收到控制设备切换请求后重新发布所述控制设备切换请求。由于遥控设备此时控制第二显示设备,第二显示设备可处理遥控设备发布的控制设备切换请求。第二显示设备在接收到遥控设备发布的控制设备切换请求后,对控制设备切换请求进行重新发布处理至投屏设备;由于在步骤S1011中,投屏设备已配置第二显示设备发布消息时的目的地址为投屏设备的单播地址,投屏设备可处理第二显示设备发布的控制设备切换请求。投屏设备在接收到第二显示设备发布的控制设备切换请求后,可对控制设备切换请求进行重新发布处理至第一显示设备。第一显示设备接收到投屏设备重新发布的控制设备切换请求后,第一显示设备可通过如同上述步骤S1015的过程,根据控制设备切换请求显示控制设备选择界面。用户看到控制设备选择界面后,可以选择投屏设备作为目标控制设备。具体地,在一些实施例中,遥控设备还可类似上述步骤S1016和S1019的过程产生指令并发送指令至第一显示设备,第一显示设备还可类似上述步骤S1017-S1018的过程和类似上述步骤S1020-S1021的过程,确定目标控制设备为投屏设备。进而,在选择投屏设备作为目标控制设备之后,第一显示设备还可配置遥控设备发布消息时的目的地址为第一显示设备的单播地址的过程,从而将遥控设备从直接控制第二显示设备切换至直接控制投屏设备。
可理解,遥控设备从控制第二显示设备切换至控制第一显示设备的过程与上述的遥控设备从控制第二显示设备切换至控制投屏设备的过程相似,在此不再赘述。
可理解,遥控设备从控制投屏设备切换至控制第二显示设备的过程与图6中遥控设备从控制投屏设备切换至控制显示设备的过程相似,在此不再赘述。
可理解,本申请实施例提供的控制设备切换方法,还可省略投屏设备,则遥控设备可在 直接控制第一显示设备和直接控制第二显示设备之间进行切换。例如,控制设备切换系统包括一个遥控设备,一个第一显示设备和一个第二显示设备,开始时遥控设备控制第一显示设备,则第一显示设备可配置遥控设备发布消息时的目的地址为第二显示设备的地址,使得遥控设备由控制第一显示设备切换为控制第二显示设备。
可理解,若第二显示设备的数量为多个,遥控设备还可从控制多个第二显示设备中的一个第二显示设备切换至控制多个第二显示设备中的另一第二显示设备。遥控设备从控制多个第二显示设备中的一个第二显示设备切换至控制多个第二显示设备中的另一第二显示设备的过程,与上述的遥控设备从控制一个第二显示设备切换至控制第一显示设备的过程相似,在此不再赘述。
请参考图12,为本申请实施例提供的控制设备切换方法的另一流程图。所述控制设备切换方法应用于包括第一设备、第二设备和第三设备的系统中。所述第三设备用于控制所述第一设备和/或所述第二设备。所述控制设备切换方法包括:
S1201:在所述第三设备用于控制所述第一设备的情况下,所述第一设备接收第一控制设备切换请求。
在一些实施例中,所述第一设备为显示设备,所述第二设备为投屏设备,所述第二设备用于将投屏内容通过所述第一设备和所述第二设备之间的传输通道发送给所述第一设备,以使得所述第一设备用于显示所述投屏内容。
在一些实施例中,所述第三设备用于控制所述第一设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况。在一些实施例中,所述第一设备的地址是所述第一设备为所述第一设备分配的地址。
在一些实施例中,所述第一设备、所述第二设备和所述第三设备组成Mesh网络。
在一些实施例中,所述第一设备通过接收用户作用于所述第一设备的操作,接收所述第一控制设备切换请求。
在一些实施例中,所述第三设备响应于用户作用于所述第三设备的操作,向所述第一设备发送所述第一控制设备切换请求,使得所述第一设备接收所述第一控制设备切换请求。
S1202:在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
在一些实施例中,所述第三设备用于控制所述第二设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。在一些实施例中,所述第二设备的地址是所述第一设备为所述第二设备分配的地址。
在一些实施例中,在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。从而,用户在看到控制设备选择界面后,可以选择第二设备作为目标控制设备,进而第一设备可将所述第三设备发布消息时的目的地址配置为所述第二设备的地址。
在一些实施例中,若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。从而,所述第三设备可控制个设备。
在一些实施例中,若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所 述组播地址为所述第一设备为所述第二设备专门分配的组播地址。在一些实施例中,在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址。从而,所述第三设备可控制多个设备。
在一些实施例中,在所述第三设备用于控制所述第二设备的情况下,所述第二设备接收第二控制设备切换请求;在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至所述第一设备;在所述第一设备接收到重新发布的所述第二控制设备切换请求后,所述第一设备将所述第三设备发布消息时的所述目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。从而,所述第三设备可在从控制第一设备切换为控制第二设备后,还可从控制第二设备切换为控制第一设备。
请参考图13,为本申请实施例提供的第一设备的逻辑结构示意图。所述第一设备13包括接收单元1301和处理单元1302。所述接收单元1301用于在所述第一设备处于可被第三设备控制的情况下,接收第一控制设备切换请求。所述处理单元1302用于在接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
在一些实施例中,所述接收单元1301还用于接收第二控制设备切换请求。所述处理单元1302还用于在接收到所述第二控制设备切换请求之后,将所述第三设备发布消息时的目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
在一些实施例中,所述第一设备为显示设备。所述接收单元1301还用于接收所述第二设备发送的投屏内容。所述处理单元1302还用于显示所述投屏内容。
在一些实施例中,所述处理单元1302还用于为其自身分配所述第一设备的地址,以及,为所述第二设备分配所述第二设备的地址。
在一些实施例中,所述处理单元1302还用于在接收到所述第一控制设备切换请求后,显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。
在一些实施例中,若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。
在一些实施例中,若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;所述处理单元1302还用于在接收到所述第一控制设备切换请求之后,配置所述第二设备中的所有设备订阅的地址都为所述组播地址。
请参考图14,为本申请实施例提供的第二设备的逻辑结构示意图。所述第二设备14包括接收单元1401和处理单元1402。所述接收单元1401用于在所述第二设备处于可被第三设备控制的情况下,接收第二控制设备切换请求。所述处理单元1402用于在所述第二设备接收到所述第二控制设备切换请求后,将所述第二控制设备切换请求重新发布至第一设备。
在一些实施例中,所述第二设备为投屏设备。在一些实施例中,所述第二设备14还包括发送单元1403。所述发送单元1403用于向所述第一设备发送投屏内容。
请参考图15,为本申请实施例提供的第三设备的逻辑结构示意图。所述第三设备15包 括接收单元1501。所述接收单元1501用于在所述第三设备用于控制第一设备的情况下,向所述第一设备发送第一控制设备切换请求,以由用于控制所述第一设备切换为用于控制第二设备。
在一些实施例中,所述接收单元1501还用于在所述第三设备用于控制所述第二设备的情况下,向所述第二设备发送第二控制设备切换请求,以由用于控制第二设备切换为用于控制所述第一设备。
在一些实施例中,所述第三设备用于控制所述第一设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况。在一些实施例中,所述第三设备用于控制所述第二设备的情况,具体包括:所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。
除以上方法和设备外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有程序,所述程序使得计算机设备执行图12所示的控制设备切换的方法。
一种计算机程序产品,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;设备的至少一个处理器可以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述设备实现图12所示的控制设备切换的方法。
本案在第三设备用于控制第一设备的情况下,第一设备接收第一控制设备切换请求;在第一设备接收到第一控制设备切换请求之后,第一设备将第三设备发布消息时的目的地址配置为第二设备的地址,以使得第三设备由用于控制第一设备切换为用于控制第二设备,从而第三设备可快捷的从控制第一设备切换为控制第二设备,且无需进行消息的映射和转发,第三设备可便捷地、简单地和安全地对第二设备进行控制。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何 可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (38)

  1. 一种控制设备切换方法,应用于包括第一设备、第二设备和第三设备的系统中,其特征在于,所述第三设备用于控制所述第一设备和/或所述第二设备,所述方法包括:
    在所述第三设备用于控制所述第一设备的情况下,所述第一设备接收第一控制设备切换请求;
    在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述第三设备用于控制所述第二设备的情况下,所述第二设备接收第二控制设备切换请求;
    在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至所述第一设备;
    在所述第一设备接收到重新发布的所述第二控制设备切换请求后,所述第一设备将所述第三设备发布消息时的所述目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一设备为显示设备,所述第二设备为投屏设备,所述第二设备用于将投屏内容通过所述第一设备和所述第二设备之间的传输通道发送给所述第一设备,以使得所述第一设备用于显示所述投屏内容。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,
    所述第三设备用于控制所述第一设备的情况,具体包括:
    所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况;
    所述第三设备用于控制所述第二设备的情况,具体包括:
    所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。
  5. 根据权利要求4所述的方法,其特征在于,
    所述第一设备的地址、所述第二设备的地址是所述第一设备分别为所述第一设备、所述第二设备分配的地址。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,
    所述第一设备、所述第二设备和所述第三设备组成Mesh网络。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述第一设备接收第一控制设备切换请求,具体包括:
    所述第一设备通过接收用户作用于所述第一设备的操作,接收所述第一控制设备切换请求;
    或者,
    所述第三设备响应于用户作用于所述第三设备的操作,向所述第一设备发送所述第一控制设备切换请求,使得所述第一设备接收所述第一控制设备切换请求。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,
    若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。
  10. 根据权利要求1-8中任一项所述的方法,其特征在于,
    若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;
    所述方法还包括:
    在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址。
  11. 一种控制设备切换方法,应用于第一设备,其特征在于,所述方法包括:
    在所述第一设备处于可被第三设备控制的情况下,所述第一设备接收第一控制设备切换请求;
    在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
  12. 根据权利要求11所述的方法,其特征在于,在所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址之后,所述方法还包括:
    所述第一设备接收第二控制设备切换请求;
    在所述第一设备接收到所述第二控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
  13. 根据权利要求11或12所述的方法,其特征在于,所述第一设备为显示设备,所述第一设备用于接收所述第二设备发送的投屏内容并显示所述投屏内容。
  14. 根据权利要求11-13中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一设备为其自身分配所述第一设备的地址,以及,为所述第二设备分配所述第二设备的地址。
  15. 根据权利要求11-14中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。
  16. 根据权利要求11-15中任一项所述的方法,其特征在于,
    若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。
  17. 根据权利要求11-15中任一项所述的方法,其特征在于,
    若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;
    所述方法还包括:
    在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二 设备中的所有设备订阅的地址都为所述组播地址。
  18. 一种控制设备切换方法,应用于第二设备,其特征在于,所述方法包括:
    在所述第二设备处于可被第三设备控制的情况下,所述第二设备接收第二控制设备切换请求;
    在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至第一设备。
  19. 根据权利要求18所述的方法,其特征在于,所述第二设备为投屏设备,所述第二设备用于向所述第一设备发送投屏内容。
  20. 一种控制设备切换方法,应用于第三设备,其特征在于,所述方法包括:
    在所述第三设备用于控制第一设备的情况下,所述第三设备向所述第一设备发送第一控制设备切换请求,以由用于控制所述第一设备切换为用于控制第二设备。
  21. 根据权利要求20所述的方法,其特征在于,所述方法包括:
    在所述第三设备用于控制所述第二设备的情况下,所述第三设备向所述第二设备发送第二控制设备切换请求,以由用于控制第二设备切换为用于控制所述第一设备。
  22. 根据权利要求20-21中任一项所述的方法,其特征在于,
    所述第三设备用于控制所述第一设备的情况,具体包括:
    所述第三设备发布消息时的目的地址为所述第一设备的地址的情况;
    所述第三设备用于控制所述第二设备的情况,具体包括:
    所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。
  23. 一种控制设备切换系统,所述系统包括第一设备、第二设备和第三设备,其特征在于:
    所述第三设备用于控制所述第一设备和/或所述第二设备;
    其中,在所述第三设备用于控制所述第一设备的情况下,所述第一设备接收第一控制设备切换请求;
    在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为所述第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
  24. 根据权利要求23所述的系统,其特征在于:
    在所述第三设备用于控制所述第二设备的情况下,所述第二设备接收第二控制设备切换请求;
    在所述第二设备接收到所述第二控制设备切换请求后,所述第二设备将所述第二控制设备切换请求重新发布至所述第一设备;
    在所述第一设备接收到重新发布的所述第二控制设备切换请求后,所述第一设备将所述第三设备发布消息时的所述目的地址配置为所述第一设备的地址,以使得所述第三设备由用于控制所述第二设备切换为用于控制所述第一设备。
  25. 根据权利要求23或24所述的系统,其特征在于,所述第一设备为显示设备,所述第二设备为投屏设备,所述第二设备用于将投屏内容通过所述第一设备和所述第二设备之间的传输通道发送给所述第一设备,以使得所述第一设备用于显示所述投屏内容。
  26. 根据权利要求23-25中任一项所述的系统,其特征在于,
    所述第三设备用于控制所述第一设备的情况,具体包括:
    所述第三设备发布消息时的所述目的地址为所述第一设备的地址的情况;
    所述第三设备用于控制所述第二设备的情况,具体包括:
    所述第三设备发布消息时的所述目的地址为所述第二设备的地址的情况。
  27. 根据权利要求26所述的系统,其特征在于,
    所述第一设备的地址、所述第二设备的地址是所述第一设备分别为所述第一设备、所述第二设备分配的地址。
  28. 根据权利要求23-27中任一项所述的系统,其特征在于,
    所述第一设备、所述第二设备和所述第三设备组成Mesh网络。
  29. 根据权利要求23-28中任一项所述的系统,其特征在于:
    在所述第一设备接收到所述第一控制设备切换请求后,所述第一设备显示控制设备选择界面,所述控制设备选择界面包括所述第一设备的信息和/或所述第二设备的信息,所述信息包括图标、名称、和/或标识。
  30. 根据权利要求23-29中任一项所述的系统,其特征在于:
    所述第一设备通过接收用户作用于所述第一设备的操作,接收所述第一控制设备切换请求;
    或者,
    所述第三设备响应于用户作用于所述第三设备的操作,向所述第一设备发送所述第一控制设备切换请求,使得所述第一设备接收所述第一控制设备切换请求。
  31. 根据权利要求23-30中任一项所述的系统,其特征在于,
    若所述第二设备的数量为一个,所述第二设备的地址为所述第二设备的单播地址。
  32. 根据权利要求23-30中任一项所述的系统,其特征在于,
    若所述第二设备的数量为多个,所述第二设备的地址为组播地址,所述组播地址为所述第一设备为所述第二设备专门分配的组播地址;
    在所述第一设备接收到所述第一控制设备切换请求之后,所述第一设备还配置所述第二设备中的所有设备订阅的地址都为所述组播地址。
  33. 一种第一设备,其特征在于,所述第一设备包括接收单元和处理单元:
    所述接收单元用于在所述第一设备处于可被第三设备控制的情况下,接收第一控制设备切换请求;
    所述处理单元用于在接收到所述第一控制设备切换请求之后,所述第一设备将所述第三设备发布消息时的目的地址配置为第二设备的地址,以使得所述第三设备由用于控制所述第一设备切换为用于控制所述第二设备。
  34. 一种第二设备,其特征在于,所述第二设备包括接收单元和处理单元:
    所述接收单元用于在所述第二设备处于可被第三设备控制的情况下,接收第二控制设备切换请求;
    所述处理单元用于在所述第二设备接收到所述第二控制设备切换请求后,将所述第二控制设备切换请求重新发布至第一设备。
  35. 一种第三设备,其特征在于,所述第三设备包括接收单元:
    所述接收单元用于在所述第三设备用于控制第一设备的情况下,向所述第一设备发送第一控制设备切换请求,以由用于控制所述第一设备切换为用于控制第二设备。
  36. 一种电子设备,其特征在于,所述电子设备包括至少一个处理器、存储器和通信接口;
    所述至少一个处理器与所述存储器和所述通信接口耦合;
    所述存储器用于存储指令,所述处理器用于执行所述指令,所述通信接口用于在所述至少一个处理器的控制下与其他设备进行通信;
    所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如权利要求1至10、权利要求11至17、权利要求18-19、或权利要求20-22中任意一项所述的控制设备切换方法。
  37. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序,所述程序使得计算机设备执行如权利要求1至10、权利要求11至17、权利要求18-19、或权利要求20-22中任意一项所述的控制设备切换方法。
  38. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;电子设备的至少一个处理器可以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述电子设备执行如权利要求1至10、权利要求11至17、权利要求18-19、或权利要求20-22中任意一项所述的控制设备切换方法。
PCT/CN2022/128076 2021-11-02 2022-10-27 控制设备切换系统、控制设备切换方法及其设备 WO2023078162A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111297233.9 2021-11-02
CN202111297233.9A CN116069277A (zh) 2021-11-02 2021-11-02 控制设备切换系统、控制设备切换方法及其设备

Publications (1)

Publication Number Publication Date
WO2023078162A1 true WO2023078162A1 (zh) 2023-05-11

Family

ID=86170497

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/128076 WO2023078162A1 (zh) 2021-11-02 2022-10-27 控制设备切换系统、控制设备切换方法及其设备

Country Status (2)

Country Link
CN (1) CN116069277A (zh)
WO (1) WO2023078162A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112216094A (zh) * 2020-10-26 2021-01-12 深圳乐播科技有限公司 基于遥控器的投屏控制系统及投屏控制方法
CN112367657A (zh) * 2020-11-10 2021-02-12 宁波公牛数码科技有限公司 用于控制目标设备的系统和方法
CN112947880A (zh) * 2021-03-12 2021-06-11 北京字节跳动网络技术有限公司 投屏方法、装置和电子设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112216094A (zh) * 2020-10-26 2021-01-12 深圳乐播科技有限公司 基于遥控器的投屏控制系统及投屏控制方法
CN112367657A (zh) * 2020-11-10 2021-02-12 宁波公牛数码科技有限公司 用于控制目标设备的系统和方法
CN112947880A (zh) * 2021-03-12 2021-06-11 北京字节跳动网络技术有限公司 投屏方法、装置和电子设备

Also Published As

Publication number Publication date
CN116069277A (zh) 2023-05-05

Similar Documents

Publication Publication Date Title
JP7408803B2 (ja) 投影されたオーディオおよびビデオ再生方法ならびに電子デバイス
CN111372325B (zh) 建立Wi-Fi点对点连接的方法和装置
EP3972262A1 (en) Screencasting display method, and electronic apparatus
CN113630297B (zh) 一种控制第一设备的方法及终端
US20230039861A1 (en) Projection Connection Control Method And Electronic Device
US11172530B2 (en) Communication establishment method and terminal
WO2022089271A1 (zh) 无线投屏方法、移动设备及计算机可读存储介质
JP6620759B2 (ja) 情報処理装置、情報処理方法およびプログラム
EP4344268A1 (en) Communication method and electronic device
EP4247031A1 (en) Access method and system and electronic device
WO2022228083A1 (zh) 一种多设备建立连接的方法及设备
EP4240034A1 (en) Communication method and system, and electronic device
WO2021135734A1 (zh) 应用中传输文件的方法、电子设备及系统
EP4311314A1 (en) Sleep scheduling method and device
US20220286731A1 (en) Multimedia apparatus and cast method
JP2024516668A (ja) デバイスネットワーキング方法、電子デバイス、及び記憶媒体
WO2021027639A1 (zh) 一种设备发现方法及p2p设备
WO2023078162A1 (zh) 控制设备切换系统、控制设备切换方法及其设备
EP4287048A1 (en) Login authentication method and electronic device
WO2022160967A1 (zh) 通信方法、移动设备、电子设备和计算机可读存储介质
CN113395576A (zh) 一种场景切换方法、计算机设备和存储介质
WO2023051204A1 (zh) 跨设备连接方法、电子设备及存储介质
US20230217294A1 (en) Method for automatically enabling access point function and relay function, and electronic device
CN115022853B (zh) 一种设备发现方法及电子设备
WO2023165513A1 (zh) 通信方法、电子设备及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22889187

Country of ref document: EP

Kind code of ref document: A1