WO2024041359A1 - 链路控制方法及电子设备 - Google Patents

链路控制方法及电子设备 Download PDF

Info

Publication number
WO2024041359A1
WO2024041359A1 PCT/CN2023/111470 CN2023111470W WO2024041359A1 WO 2024041359 A1 WO2024041359 A1 WO 2024041359A1 CN 2023111470 W CN2023111470 W CN 2023111470W WO 2024041359 A1 WO2024041359 A1 WO 2024041359A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
status
subscription event
audio
event
Prior art date
Application number
PCT/CN2023/111470
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 WO2024041359A1 publication Critical patent/WO2024041359A1/zh

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Definitions

  • the embodiments of the present application relate to the field of terminal technology, and in particular, to a link control method and electronic device.
  • PLC power line communication
  • the quality of PLC link data transmission is significantly affected by the operating status of the equipment on the link. For example, turning on or running a high-power device will seriously affect the data transmission quality of the PLC link where the high-power device is located, such as reducing the available bandwidth for audio data transmission between the audio control device and the audio output device connected through the PLC link. Then abnormal playback occurs, affecting the user experience.
  • this application provides a link control method and electronic device.
  • devices such as audio control devices can adjust the output control of audio and other data according to a preset method.
  • the operating status of other devices on the link can be adjusted in advance to improve user experience.
  • a first aspect provides a link control method, which is executed by a first device.
  • the method includes: obtaining a first subscription event, where the first subscription event is an event associated with the running status of a third device, where the third device is on the first link. Predicting a first link status of the first link based on the first subscription event. Based on the predicted first link status meeting the first condition, adjusting the operating status of the fourth device, where the fourth device is associated with the first link.
  • events such as powering on, powering off, gear adjustment, and usage mode switching of the third device are events associated with the operating status of the third device.
  • Adjusting the operating status of the fourth device includes, for example, adjusting the sampling rate and resolution corresponding to the access link of the fourth device, or performing channel re-estimation.
  • the first device can pre-adjust the operating status of the fourth device before the event occurs. This prevents changes in the operating status of the third device from affecting the operating quality of the fourth device, and effectively improves the user experience.
  • the first subscription event includes information associated with the third device that is used to predict the impact on the link status of the first link when the operating status of the third device changes.
  • predicting The first link status of the first link includes: predicting the first link status of the first link when the operating status of the third device changes based on the acquired information in the first subscription event.
  • the information includes the device name, device type, device power consumption used to determine the third device, the type of operation performed on the third device, the name of the third device. At least one of the access links.
  • the equipment types are divided according to the power of the equipment.
  • the equipment types include: low-power electrical equipment (for example, power ⁇ 500W), medium-power electrical equipment (for example, power between 500W and 1000W), and high-power electrical equipment.
  • Equipment such as power between 1000W-2000W
  • high-power electrical equipment such as power ⁇ 2000W
  • the operation type is used to indicate the operation to be performed by the third device, including, for example: starting up and running, shutting down, adjusting gears, switching usage modes, etc.
  • a table for link state prediction is pre-configured in the first device. According to the information in the first subscription event, the first device can match the corresponding data in the table and determine the corresponding link status to complete the prediction of the link status.
  • the information in the first subscription event includes the device type and the operation type of the device.
  • the first device determines that the third device is a high-power electrical device based on the device type, and determines that the third device is to be powered on based on the operation type.
  • the first device can determine based on the first subscription event that the impact on the data transmission of the first link after the third device is powered on is to increase the data transmission delay by 150 ms.
  • the first device can determine the first link status of the first link after the first subscription event occurs based on the second link status of the first link before the first subscription event occurs and the added 150ms.
  • the fourth device is associated with the first link, including: the fourth device is a device on the first link, or the fourth device is a first subscription A device that will be affected by changes in the operating status of the third device on the first link after an event occurs.
  • the first device may determine the first link that the third device accesses based on the link information included in the first subscription event for determining the link to which the device is connected. . Afterwards, the first device may predict the first link status of the first link after the first subscription event occurs. When the first link status meets the first condition, the first device may adjust the operating status of the fourth device that also accesses the first link. Further, some fourth devices are not connected to the first link, but the operating status will also be affected by changes in the operating status of the third device, so that the link status meets the first condition, then the first device also needs to adjust this part of the third device. 4. The operating status of the equipment.
  • the first device predicts the link status of all devices connected to the first device through links, thereby determining some or all of the devices that require operating status adjustment.
  • the first device after receiving the subscription event, the first device first determines the link to which the device in the subscription event is connected. Afterwards, the first device predicts the link status of the link, and then determines whether it is necessary to adjust the operating status of the device connected to the first device through the link.
  • the first device predicts the fourth device that will be affected by the subscription event based on the subscription event, and triggers adjustment of the device status of the fourth device. This prevents the running status of the fourth device from being affected after the subscription event occurs.
  • the method further includes: adjusting the operating state of the fifth device based on the predicted first link state meeting the first condition, wherein the fifth device and the first Link association, the fifth device and the fourth device are devices on the same link or devices on different links.
  • the first condition includes a link delay threshold setting condition, a link delay jitter threshold setting condition, and a link available bandwidth threshold setting condition. At least one item.
  • the method before predicting the first link status of the first link according to the first subscription event, includes: obtaining the second link of the first link state. Predicting the first link status of the first link based on the first subscription event includes: based on the second link status, predicting the first link status of the first link after the first subscription event occurs.
  • the first device predicts the impact on the first link after the first subscription event occurs. Based on the link status of the original first link before the first subscription event occurs, the first device can predict the link status of the first link after the first subscription event occurs based on the impact.
  • the first device predicts that after the first subscription event occurs, the data transmission delay of the first link will increase by 150 ms. Then, the first device predicts that after the first subscription event occurs, the first link state of the first link is the second link state of the original first link plus 150ms.
  • the first device can predict the link status of the link after the subscription event occurs based on the original link status of the link and the possible impact of the subscription event on the link status.
  • the first device is a playback control device
  • the fourth device is a playback controlled device
  • the fourth device is a device on the first link.
  • adjusting the operating status of the fourth device includes: adjusting the playback configuration of the fourth device based on the predicted first link status meeting the first condition; and/or triggering the first link Channel re-estimation.
  • the playback control device predicts that the first link status meets the first condition. For example, the predicted first link status does not meet the link delay setting condition. For example, the predicted link delay of the first link is greater than the link delay setting condition. path delay threshold. Then, the playback control device can adjust the operating status of the playback controlled device on the first link.
  • adjusting the playback configuration of the fourth device includes: Adjusting the sampling rate of data during data transmission with the fourth device, adjusting the resolution of data during data transmission with the fourth device, and adjusting at least one of the data retransmission determination intervals during data transmission with the fourth device .
  • the audio control device (such as the first device) learns in advance future events that will affect the link data transmission quality and pre-adjusts the audio output control before the event occurs. This prevents the operation of the smart home device (such as the third device) from affecting the audio output of the audio output device (such as the fourth device), causing audio playback to freeze, and effectively improves the user experience.
  • the first device is a light control device
  • the fourth device is a controlled light device
  • the fourth device is adjusted
  • the operating status of the device includes: based on the predicted first link status meeting the first condition, instructing the fourth device to initialize.
  • the light control device predicts that the first link status meets the first condition, for example, the predicted first link status meets the link status of a preset device (such as a smart door lock), then the light control device can indicate Initialize the lighting control equipment, such as preheating.
  • a preset device such as a smart door lock
  • the controlled device (such as a lamp) can directly start lighting. This reduces the waiting time for users and improves user experience.
  • the method further includes: obtaining a second subscription event, where the second subscription event is an event associated with the running status of the third device. According to the second subscription event, a third link status of the first link is predicted. Based on the predicted third link status meeting the second condition, the operating status of the fourth device is not adjusted.
  • the first device predicts, based on the subscription event, whether the occurrence of the subscription event will affect the operating status of the device connected to the first device through the link. Adjustment of the first equipment will have an impact on the operating status of the equipment, while failure to adjust will not have an impact on the operating status of the equipment. This avoids unnecessary adjustments to the device's operating status while avoiding the impact of subscription events on the device's operating status.
  • obtaining the first subscription event includes: receiving the first subscription event from the second device.
  • the method before receiving the first subscription event from the second device, the method further includes: sending a subscription event list to the second device, the subscription event list being used to subscribe to Events including the first subscription event.
  • the first device reports the events that need to be subscribed to the second device in advance, so that the second device can subsequently monitor these subscription events and avoid the occurrence of subscription events from affecting the operating status of the device connected to the first device through the link.
  • the events that the first device needs to subscribe to are events that may affect the operating status of devices that access the first device through the link.
  • the first link is a wired link or a wireless link.
  • the first link is a power line carrier communication PLC link or a wireless fidelity Wi-Fi link.
  • an electronic device in a second aspect, includes: a processor and a memory.
  • the memory is coupled to the processor.
  • the memory is used to store computer program codes.
  • the computer program codes include computer instructions.
  • the processor reads the computer instructions from the memory
  • the electronic device executes: obtaining the first Subscription events, the first subscription event is an event associated with the running status of the third device, where the third device is on the first link. Predicting a first link status of the first link based on the first subscription event. Based on the predicted first link status meeting the first condition, adjusting the operating status of the fourth device, where the fourth device is associated with the first link.
  • the first subscription event includes information associated with the third device that is used to predict the impact on the link status of the first link when the operating status of the third device changes.
  • predicting The first link status of the first link includes: predicting the first link status of the first link when the operating status of the third device changes based on the acquired information in the first subscription event.
  • the information is used to determine the device name, device type, device power consumption of the third device, the type of operation performed on the third device, and the connection to which the third device is connected. At least one item in the incoming link.
  • the fourth device is associated with the first link, including: the fourth device is a device on the first link, or the fourth device is a first subscription After the event occurs, the third link on the first link will Equipment affected by changes in equipment operating status.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: based on the predicted first link state meeting the first condition , adjusting the operating status of the fifth device, where the fifth device is associated with the first link, and the fifth device and the fourth device are devices on the same link or devices on different links.
  • the first condition includes a link delay threshold setting condition, a link delay jitter threshold setting condition, and a link available bandwidth threshold setting condition. At least one item.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: obtain the second link status of the first link. Predicting the first link status of the first link based on the first subscription event includes: based on the second link status, predicting the first link status of the first link after the first subscription event occurs.
  • the first device is a playback control device
  • the fourth device is a playback controlled device
  • the fourth device is a device on the first link.
  • adjusting the operating status of the fourth device includes: adjusting the playback configuration of the fourth device based on the predicted first link status meeting the first condition; and/or triggering the first link Channel re-estimation.
  • adjusting the playback configuration of the fourth device includes: adjusting the sampling rate of data during data transmission with the fourth device, adjusting the data transmission with the fourth device The resolution of the data during the process, and at least one of the adjustment and the data retransmission judgment interval during the data transmission process of the fourth device.
  • the first device is a light control device
  • the fourth device is a controlled light device
  • the operating status of the device includes: based on the predicted first link status meeting the first condition, instructing the fourth device to initialize.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: obtain the second subscription event, and the second subscription event is Events related to the running status of the third device. According to the second subscription event, a third link status of the first link is predicted. Based on the predicted third link status meeting the second condition, the operating status of the fourth device is not adjusted.
  • obtaining the first subscription event includes: receiving the first subscription event from the second device.
  • the processor when the processor reads the computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: send the subscription event list to the second device, subscribe to the event list Used to subscribe to events including the first subscription event.
  • the first link is a wired link or a wireless link.
  • the first link is a power line carrier communication PLC link or a wireless fidelity Wi-Fi link.
  • the present application provides an electronic device that has the function of implementing the link control method described in the above first aspect and any possible implementation manner thereof.
  • This function can be implemented by hardware, or can be implemented by hardware and corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program (which may also be referred to as instructions or codes).
  • the computer program When the computer program is executed by an electronic device, it causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.
  • the present application provides a computer program product, which when the computer program product is run on an electronic device, causes the electronic device to execute the method of the first aspect or any one of the first aspect implementations.
  • the present application provides a circuit system.
  • the circuit system includes a processing circuit, and the processing circuit is configured to perform the method of the first aspect or any one of the implementations of the first aspect.
  • the present application provides a chip system, including at least one processor and at least one interface circuit.
  • the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor.
  • at least one processor executes the instructions
  • at least one processor executes the method of the first aspect or any one of the implementation modes of the first aspect.
  • Figure 1 is a schematic diagram of noise sampling provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram 1 of the time-consuming channel re-estimation provided by the embodiment of the present application;
  • Figure 3 is a schematic diagram of a communication system in which a link control method is applied according to an embodiment of the present application
  • Figure 4A is a schematic diagram of the hardware structure of the control center provided by the embodiment of the present application.
  • FIG. 4B is a schematic diagram of the hardware structure of the control device provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of link connections provided by the embodiment of this application.
  • FIG. 6 is a schematic diagram of module interaction provided by the embodiment of this application.
  • FIG. 7 is a schematic flowchart 1 of the link control method provided by the embodiment of the present application.
  • Figure 8 is a schematic flowchart 2 of the link control method provided by the embodiment of the present application.
  • Figure 9 is a schematic diagram 2 of the time-consuming channel re-estimation provided by the embodiment of the present application.
  • Figure 10 is a schematic flowchart three of the link control method provided by the embodiment of the present application.
  • Figure 11 is a schematic structural diagram of the first device provided by the embodiment of the present application.
  • PLC power line communication
  • a music host that can connect to multiple Audio playback equipment (such as speakers, speakers, etc.).
  • Audio playback equipment such as speakers, speakers, etc.
  • different audio playback devices can be installed in various rooms. In this way, users can achieve a collaborative music playback experience with devices throughout the house through a music host.
  • the audio control device (such as a music host) is connected to the speaker 1 located in the master bedroom through a PLC link corresponding to loop 1, and is connected to the speaker 1 located in the guest bedroom through a PLC link corresponding to loop 2.
  • the speaker 2 as well as the speaker 1 and speaker 2 located in the living room, are connected to the speaker 3 located in the restaurant through the PLC link corresponding to the loop 3.
  • the user can control the audio playback of the speakers or speakers located in each room through the audio control device, meeting the user's needs for audio playback control throughout the house.
  • the quality of data transmission on the PLC link is significantly affected by the operating status of the equipment on the PLC link.
  • the startup and operation of high-power electrical equipment (such as motors) will significantly interfere with the entire link frequency band.
  • the noise peak will increase, resulting in an increase in the bit error rate of the PLC link.
  • a channel re-estimation method is proposed to improve the data transmission quality of PLC links.
  • the control equipment monitors the bit error rate of the PLC link.
  • bit error rate of the PLC link continues to exceed the preset threshold, channel re-estimation is triggered, thereby re-selecting a channel that is less affected by interference for communication.
  • the embodiment of the present application provides a link control method.
  • the audio control device adjusts the audio output control according to a preset method.
  • FIG 3 is a schematic diagram of a communication system in which the link control method provided by the embodiment of the present application is applied.
  • the communication system includes a control center 100, an audio control device 200, an audio output device 201, a control device 300, and a smart home device 400.
  • control center 100 is, for example, a router or other central device used to connect various electronic devices in a whole-house scenario.
  • the control center 100 establishes a communication connection with the control device 300 , and the control device 300 controls the smart home device 400 through the control center 100 .
  • the control center 100 is configured with multiple slots for connecting electronic devices controlled by the control center 100 .
  • the audio control device 200 accesses the control center 100 through the slot of the control center 100 .
  • control device 300 may be a dedicated device for controlling smart home devices, or a device including functions for controlling smart home devices.
  • the control device 300 may be a smart home control panel, or a terminal device such as a mobile phone, tablet, smart speaker, or smart watch.
  • the smart home control panel is a special device used to control smart home devices in the smart home system.
  • the control device 300 may be a fixed device or a portable device. This application places no special restrictions on the specific form of the control device 300.
  • the smart home device 400 may be, for example, a refrigerator, an air conditioner, a washing machine, a large-screen device, an air purifier, a sweeping robot, a desk lamp, an electric lamp, a camera, a mobile phone, a tablet computer, a personal computer (PC), or a personal digital camera.
  • Terminal devices such as assistants (personal digital assistants, PDAs), netbooks, wearable electronic devices, artificial intelligence (AI) terminals, etc.
  • the operating systems installed on the smart home device 400 include but are not limited to or other operating systems.
  • the smart home device 400 does not need to be installed with an operating system.
  • the smart home device 400 may be a fixed device or a portable device. This application does not limit the specific type of smart home device 400, whether or not an operating system is installed, or the operating system installed if the operating system is installed.
  • the audio control device 200 is, for example, a music host or other device, used to control one or more audio output devices 201 .
  • the audio output device 201 is, for example, a speaker, a speaker, or other devices.
  • the audio control device 200 can decode music resources and send the decoded music stream data to the audio output device 201 . After receiving the music stream data, the audio output device 201 imports the music stream data into the driver for music playback.
  • the audio control device 200, the control device 300, and the smart home device 400 access the control center 100 through a first-type communication connection.
  • the first type of communication connection is a wireless communication connection
  • the wireless communication connection that establishes the wireless communication connection Technologies include but are not limited to at least one of the following: Bluetooth (BT) (for example, traditional Bluetooth or low energy (Bluetooth low energy, BLE) Bluetooth), wireless local area networks (WLAN) (such as wireless LAN) True (wireless fidelity, Wi-Fi network), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), etc.
  • BT Bluetooth
  • WLAN wireless local area networks
  • NFC near field communication
  • FM frequency modulation
  • IR infrared
  • a second type of communication connection is established between the audio control device 200 and the audio output device 201 .
  • the second type of communication connection is, for example, a communication connection established through PLC technology.
  • control center 100, audio control device 200, audio output device 201, control device 300, and smart home device 400 in the embodiment of this application can be implemented by different devices, and different devices can have the same, similar or certain features.
  • control center 100 having the hardware structure shown in FIG. 4A as an example, the hardware structure shown in FIG. 4A will be described.
  • the control center 100 includes at least one processor 401 , a communication line 402 , a memory 403 and at least one communication interface 404 .
  • the memory 403 may also be included in the processor 401.
  • control center 100 does not constitute a specific limitation on the control center 100 .
  • the control center 100 may include more or less components than shown in the figures, or combine some components, or split some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 401 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication line 402 may include a path that carries information between the above-mentioned components.
  • the communication interface may be a module, a circuit, a bus, an interface, a transceiver, or other devices that can implement communication functions for communicating with other devices.
  • the transceiver can be an independently configured transmitter, which can be used to send information to other devices.
  • the transceiver can also be an independently configured receiver, which can be used to receive information from other devices. The device receives the information.
  • the transceiver may also be a component that integrates the functions of sending and receiving information. The embodiments of this application do not limit the specific implementation of the transceiver.
  • Memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions.
  • a dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other medium for access, but not limited to this.
  • the memory may exist independently and be connected to the processor through a communication line 402 . Memory can also be integrated with the processor.
  • the memory 403 is used to store computer execution instructions for implementing the solution of the present application, and is controlled by the processor 401 for execution.
  • the processor 401 is configured to execute computer execution instructions stored in the memory 403, thereby implementing the carrier wave sending method provided in the following embodiments of the present application.
  • the computer execution instructions in the embodiments of the present application may also be called application codes, instructions, computer programs or other names, which are not specifically limited in the embodiments of the present application.
  • the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in Figure 4A.
  • control center 100 may include multiple processors, such as the processor 401 and the processor 407 in Figure 4A. Each of these processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the control center 100 may also include an output device 405 and an input device 406.
  • Output device 405 communicates with processor 401 and can display information in a variety of ways.
  • the output device 405 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector.
  • input device 406 and Processor 401 communicates and may receive user input in a variety of ways.
  • the input device 406 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
  • control device 300 having the hardware structure shown in FIG. 4B as an example, the hardware structure shown in FIG. 4B will be described.
  • the control device 300 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module , SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module , SIM) card interface 195, etc.
  • SIM subscriber identification module
  • control device 300 does not constitute a specific limitation on the control device 300.
  • the control device 300 may include more or less components than shown in the figures, or combine some components, or split some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and 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.
  • 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
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, 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.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the control device 300, and can also be used to transmit data between the control device 300 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other first control devices 300, such as AR devices.
  • control device 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also provide power to the control device 300 through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the control device 300 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor, etc.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in control device 300 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the control device 300 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functionality of the mobile communication module 150 The blocks may be provided in the same device as at least some of the modules of processor 110 .
  • the wireless communication module 160 can provide applications on the control device 300 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • 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 control device 300 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the control device 300 can communicate with the network and other 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), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the control device 300 implements the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is an image processing microprocessor 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 alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix active matrix organic light emitting diode
  • AMOLED organic light emitting diodes
  • FLED flexible light-emitting diodes
  • Mini-led Micro-led
  • Micro-oled quantum dot light emitting diodes
  • QLED quantum dot light emitting diodes
  • the control device 300 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • control device 300 may display a control interface through display screen 194 .
  • the control device 300 may receive the user's control command for the smart home device 400, such as a power-on command, a power-off command, etc. Afterwards, the control device 300 can send the control command to the corresponding smart home device 400 via the control center 100 through the wireless communication module 160 .
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the control device 300 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • 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 control device 300.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 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 for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the control device 300 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the processor 110 executes instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor to execute various functional applications and data processing of the control device 300 .
  • 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 signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 . The device 300 can be controlled through the audio module 170, such as music playback, recording, etc.
  • the audio module 170 may include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • Touch sensor also known as "touch device”.
  • the touch sensor can be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, which is also called a "touch screen”. Touch sensors are used to detect touches on or near them.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor may also be disposed on the surface of the control device 300 at a location different from that of the display screen 194 .
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the control device 300 may receive key inputs and generate key signal inputs related to user settings and function control of the control device 300 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the control device 300 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • control center 100 the audio control device 200, the audio output device 201, the control device 300, and the smart home device 400
  • the control center 100, the audio control device 200, the audio output device 201, the control device 300, and the smart home device 400 may include more or less components than shown in the figures, or some components may be combined, Or splitting some parts, or different parts arrangements.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • power carrier is a communication method unique to the power system
  • PLC refers to a technology that utilizes existing power lines to transmit analog or digital signals at high speed through a carrier.
  • Power lines are different from ordinary data communication lines in that they are susceptible to interference when used as a medium for data transmission. For example, there are many unpredictable sources of noise and interference on power lines, such as air conditioners, refrigerators, washing machines and other smart home devices. These smart home devices may be connected or disconnected, powered on or off, or adjusted in parameters or working status at any time. , thus causing the characteristics of the power line to continuously change, affecting the data transmission quality of the PLC link.
  • the audio control device connects audio output devices (such as speaker 1-speaker 3, speaker 1) located in different rooms through three PLC links (corresponding to power line loop 1, loop 2, and loop 3). -Speaker 2). Then, if a smart home device is connected to any of these three PLC links, changes in the device status of the smart home device will affect the data transmission quality of the corresponding PLC link, and therefore also affect the audio of the corresponding PLC link. The quality of transmitted data may cause abnormal audio lag and other abnormalities.
  • the control center determines the subscription event, which includes the device type and the operation type.
  • the audio control device after the audio control device is connected to the control center, it can report subscription events to the control center.
  • the subscription event includes the device type and operation type of the smart home device that will affect the audio playback of the audio control device.
  • the smart home device After the smart home device is connected to the control center, it reports to the control center that it is a smart home device that will affect audio playback in the house (for example, the smart home device is a high-power device), and the control center can generate a corresponding subscription event.
  • the control center can generate a corresponding subscription event.
  • control center is configured with a target device type. After the smart home device is connected to the control center, the control center can determine whether the smart home device belongs to the target device type. If the connected smart home device belongs to the target device type, corresponding subscription events can be generated.
  • control center can receive subscription events delivered by the server, which subscription events include device type and operation type.
  • the whole house may be configured with one or more audio control devices, and the subscription events corresponding to different audio control devices may be the same or different.
  • the control center can receive a control command sent by a control device (such as a smart home control panel, etc.) to the smart home device to instruct the smart home device to perform a corresponding operation (such as turning on, shutting down, etc.).
  • the control command carries the device identification of the smart home device to be executed. Therefore, the control center can determine the smart home device to be executed according to the device identification, and then determine whether the smart home device is the device indicated by the subscription event to determine whether the subscription event is received.
  • the smart home device will report an attribute information change event to the control center before attribute changes (such as gear adjustment, usage mode switching, etc.), and the attribute change event carries the device identification. Therefore, the control center can determine the smart home device whose attributes have been changed based on the device identification, and then determine whether the smart home device is the device indicated by the subscription event to determine whether the subscription event is received.
  • attribute changes such as gear adjustment, usage mode switching, etc.
  • control center determines whether to receive a subscription event
  • the audio control device can adjust the audio output control to avoid the subsequent impact on audio playback due to the impact of the smart home device executing control commands or attribute changes on the PLC link. Therefore, after the control center determines that it has received the subscription event, it can forward the subscription event to the corresponding audio control device. The audio control device can adjust the audio output control in response to the received subscription event to ensure the smoothness of subsequent audio playback.
  • the control center 61 may forward the subscription event to the audio control device 62 .
  • the audio control device 62 determines the smart home device, device type, operation type and other information included in the subscription event through the event processing module 621, and then determines whether the current smart home device will access each audio output device after performing the operation. The data transmission of the PLC link is affected.
  • the audio control device 62 can adjust the playback configuration through the event processing module 621 and send the adjusted playback configuration to the audio output device 631 and the audio output device 632 through the audio control module 622 . Then, after receiving the adjusted playback configuration, the audio output device 631 and the audio output device 632 can adjust the playback configuration through the audio processing module, and play the audio according to the adjusted playback configuration through the audio output module. This prevents subsequent operations performed by the target smart home device from affecting the PLC link and affecting the smoothness of audio playback.
  • Figure 7 shows a link control method provided by an embodiment of the present application. As shown in Figure 7, the method includes the following steps.
  • the control center determines that the received event is a subscription event of the audio control device.
  • the subscription event includes one or more of the device name, device type, operation type, and link identification of the PLC link to which the smart home device is connected.
  • the equipment types are divided according to the power of the equipment.
  • the equipment types include: low-power electrical equipment (for example, power ⁇ 500W), medium-power electrical equipment (for example, power between 500W and 1000W), and high-power electrical equipment.
  • Equipment such as power between 1000W-2000W
  • high-power electrical equipment such as power ⁇ 2000W
  • the operation type is used to represent the operations to be performed by the smart home device, including: starting up, shutting down, adjusting gears, switching usage modes, etc.
  • the control center obtains subscription events of the audio control device in a preset manner.
  • the preset method includes, for example, one or more of the following: receiving subscription devices reported by the audio control device, receiving subscription events reported by the smart home device, receiving subscription events issued by the server, and automatically generating information including the target device type. Subscription events for smart home devices.
  • the control center may determine whether the received event belongs to a subscription event of the audio control device. If the control center determines that the event belongs to the subscription event of the audio control device, it can forward the event to the corresponding audio control device while processing the event; if the control center determines that the event does not belong to the subscription event of the audio control device, it can process it directly The event, such as sending the event to the corresponding smart home device.
  • the control center can determine the smart home device indicated by the control command. Then, the control center can determine whether the device type, operation type, etc. corresponding to the smart home device are Including content in the subscription event, if so, the control center can determine that the subscription event was received.
  • a control device such as a smart home control panel
  • a control device detects the user's instruction to shut down the air conditioner, it can send a control command to the control center to control the shutdown of the air conditioner.
  • the control center can determine whether the event corresponding to the control command is a subscription event. If the control center determines that the device type corresponding to the air conditioner (such as a high-power device) is the target device type subscribed to by the audio control device, the event can be determined to be a subscription event.
  • the control center may determine the smart home device that reported the attribute change event. Similarly, the control center can determine whether the device type, operation type, etc. corresponding to the smart home device are included in the subscription event. If so, the control center can determine that the subscription event is received.
  • the smart home device can report an attribute change event to the control center after determining that attribute changes are required.
  • smart home devices can report attribute change events to the control center in response to the user's gear adjustment operation.
  • a smart home device determines that it is about to switch usage modes, it can report an attribute change event to the control center (for example, a washing machine determines that it will switch from washing mode to drying mode in 5 minutes).
  • smart home devices can also report status change information to the control center according to a preset cycle.
  • high-power smart home devices that have long-term access to PLC links report their status change information to the control center according to a preset cycle.
  • the control center can determine that the subscription event has been obtained, and then the subsequent audio control device can determine the status change information based on the status change information. Whether the status changes of smart home devices (such as attribute changes) will have an impact on the data transmission status of the PLC link.
  • the control center sends a subscription event to the audio control device.
  • the control center may forward the subscription event to the audio control device.
  • the audio control device receives the subscription event.
  • the control center can forward the subscription event to the corresponding audio control device according to the subscription requirements of different audio control devices.
  • the audio control device determines that the subscription event is the target event. If not, execute step S704; if yes, execute step S705.
  • the audio control device's subscription events may change.
  • the audio control device can determine whether the subscription event meets the current subscription requirements of the audio control device. If satisfied, the audio control device may determine that the subscription event is a target event, and perform the following step S705 to subsequently control the audio output; if not satisfied, the audio control device may determine that the subscription event is not a target event, and may determine that there is no need to modify the audio output. The output is controlled, that is, step S704 is executed.
  • the audio control device reports events that need to be subscribed to the control center, such as the device type and operation type of the smart home device. Subsequently, if the events that need to be subscribed change, the audio control device will report the changed subscription events to the control device. For example, if the audio control device determines that some device types in the original subscription events will no longer affect audio data transmission on the PLC link, it can cancel the event subscription of smart home devices of these device types. Therefore, after receiving the subscription event, the audio control device can again determine whether the subscription event is an event that the audio control device needs to subscribe to, so as to avoid that the obtained subscription event is no longer the currently required subscription event.
  • the audio control device determines that the events that need to be subscribed have changed, it receives the subscription event sent by the control center before reporting the changed subscription event. Then, the control center needs to determine whether the currently received subscription event is an event that needs to be subscribed. If so, it can be sure that the target event has been received.
  • step S703 is an optional step.
  • the audio control device can directly perform the following step S705 without having to determine whether the subscription event is a target event. That is, the default subscription event meets the current subscription requirements of the audio control device.
  • the audio control device determines that there is no need to adjust the audio output control.
  • the audio control device determines that the obtained subscription event is not a target event, and can determine that the smart home device corresponding to the subscription event will subsequently execute a control command or perform attribute changes, and will not affect the audio output device connected to the audio control device. affects the audio output. Therefore, the audio control device determines that there is no need to adjust the audio output control.
  • the audio control device determines the link status of the link corresponding to the target event.
  • the link status includes, for example, the data transmission delay and available bandwidth of the PLC link.
  • the current PLC link data transmission delay is 50 milliseconds (ms).
  • the PLC links connected to different audio output devices are the same or different, and the link status of different PLC links is the same. Or not the same.
  • the subscription event includes a link identifier of the PLC link to which the smart home device is connected.
  • the audio control device can obtain the link identifier after determining that the subscription event is the target event. Then, the audio control device can determine the corresponding PLC link according to the link identifier, and then determine the link status of the link corresponding to the PLC link.
  • the audio control device can determine the link status of the PLC links to which all audio output devices are connected, and the link status of the link corresponding to the target event includes the link status of the PLC links to which all audio output devices are connected.
  • the audio control device can determine the link status of each link and the common link between the PLC link connected to the smart home device and the PLC links connected to other audio output devices.
  • Loop weight determines the impact of the access of smart home devices on each PLC link. Among them, the common loop weight is used to measure the distance between the link where the smart home device is located and the link where the audio output device is located.
  • the access of smart home devices has a greater impact on the output of audio output devices on the same PLC link as the smart home device, rather than on the output of audio output devices not on the same PLC link. Basically it can be ignored. Therefore, after determining the PLC link corresponding to the target event, the audio control device can determine whether there is an audio output device connected to the audio control device through the PLC link among the audio output devices. If there is, the link status of the PLC link can be determined; if not, then the smart home device corresponding to the target event executes a control command or makes attribute changes, which can also be regarded as an audio output that will not connect to the audio control device. The audio output of the device is affected, so the audio control device also does not need to adjust the audio output control, and there is no need to determine the link status of the PLC link. That is, after step S705, step S704 is executed.
  • the audio control device determines the predicted link delay corresponding to the target event.
  • the audio control device after the audio control device obtains the PLC link corresponding to the target event and determines the corresponding link status according to the content described in step S705 above, it can predict the future link status of the PLC link. , determine the predicted link delay, and then determine whether the audio output needs to be adjusted.
  • the links to be predicted for future link status include all PLC links corresponding to the audio output device, or may only include PLC links connected to the smart home device.
  • different operations of different device types will have different impacts on the data transmission delay of the PLC link.
  • Table 1 the impact of the operation of several electrical equipment with different powers on the PLC link transmission delay is illustrated. For example, after high-power electrical equipment is powered on and running, the data transmission delay of the PLC link connected to the high-power electrical equipment will increase by 150ms.
  • the audio control device can predict the link status based on the link status (Statust), operation type (Switcht), device type (type), and common loop weight ( ⁇ t) of the current PLC link.
  • the smart home device corresponding to the target event when the smart home device corresponding to the target event is turned on or running, it will affect the audio playback of the audio output device.
  • the audio data transmission quality of the audio output device on the loop that is closer to the loop where the smart home device is located will be more affected by the startup or operation of the smart home device, and the greater the common loop weight of the corresponding audio output device will be.
  • the audio data transmission quality of the audio output device on the loop farther away from the smart home device is affected by the power on or off of the smart home device.
  • the smaller the operating impact the smaller the common loop weight of the corresponding audio output device. That is, the influence of the data transmission quality between different loops is measured through the common loop weight.
  • the number of smart home devices corresponding to the target event may be one or more, and accordingly, the number of audio output devices affected by the one or more smart home devices may also be one or more.
  • the common loop weight can also be used to indicate whether the smart home device corresponding to the target event and the audio output device are on the same PLC link. For example, if they are on the same PLC link, the common loop weight is 1; if they are not on the same PLC link, the common loop weight is 0.
  • the common loop weights can also be set to other required values based on whether the smart home device and the audio output device are on the same PLC link, or the distance between the PLC links where they are located.
  • the predicted link delay (Scoret) Statust+Switcht*type* ⁇ t.
  • the audio control device determines whether the predicted link delay meets the link delay threshold setting condition. If not, execute step S708; if yes, execute step S704.
  • the link delay threshold is preset in the audio control device. If the audio control device determines that the predicted link delay does not meet the setting conditions of the link delay threshold, for example, the audio control device determines that the predicted link delay is greater than the link delay threshold, it can determine that the smart home device executes the control command or performs Attribute changes will have an impact on the audio output, so the audio output control needs to be adjusted (ie, step S708 is performed).
  • the audio control device determines that the predicted link delay meets the setting conditions of the link delay threshold, for example, the audio control device determines that the predicted link delay is less than or equal to the link delay threshold, it can determine that the smart home device executes the control command or Changing the attributes will not affect the audio output, so there is no need to adjust the audio output control (ie, perform the above step S704).
  • the link delay thresholds of different PLC links are the same or different.
  • the audio control device adjusts the audio output control according to the preset method.
  • the audio control device determines that the smart home device executes a control command or performs attribute changes, which will affect the audio output of some or all audio output devices. Therefore, the audio control device can perform audio output control on the affected audio output device according to a preset method.
  • the audio output device that is connected to the audio control device through the PLC link can be processed. Audio output control.
  • the audio data transmission quality of the audio output device on the PLC link that is further away from the PLC link where the accessed smart home device is located is less affected. Therefore, the predicted link delay of the audio output device on the PLC link far away from the smart home device may meet the link delay threshold setting conditions. Then, this part of the audio output device does not need to perform audio output control. , and only need to control the audio output of the audio output device on the PLC link closer to the link where the smart home device is located.
  • the audio output devices that need to be output controlled may only include audio output devices that share a common loop with the connected smart home device.
  • the preset method includes, for example: adjusting playback configuration, channel adjustment, etc.
  • step S708 includes step S7081 and step S7082.
  • the audio control device adjusts the playback configuration of the audio output device.
  • the playback configuration includes, for example: the sampling rate of data during data transmission, the data retransmission judgment interval during data transmission, etc.
  • the audio control device determines that the target event is the start-up of the air conditioner (high-power equipment).
  • the air conditioner high-power equipment
  • the bandwidth of the PLC link will transmit data to drop sharply and the packet loss rate to rise sharply.
  • the audio control device does not adjust the playback configuration, it will continue to transmit audio data with the original playback configuration. Then, it will take longer for the audio output device to receive complete audio data of the same length. That is, as shown in Table 1 above, the startup and operation of high-power equipment will cause the data transmission delay to increase. The increase in data transmission delay will cause the audio data to be played to be interrupted and freeze abnormally.
  • the audio control device determines that the target event is that the air conditioner (high-power equipment) is powered on, it can adjust the playback configuration based on the predicted link delay. For example, reduce the sampling rate of audio data to be transmitted. In this way, the length of the audio data to be transmitted can be shortened, and the time consuming of transmitting the audio data will be reduced. Therefore, the increased data transmission delay in subsequent air conditioner startup operations will no longer affect the audio data transmission, and possible audio data interruptions will occur. Streaming issues have been improved, ensuring smooth audio playback.
  • the audio control device determines that the target event is the start-up of the air conditioner (high-power equipment).
  • the audio data retransmission judgment interval is preset between the audio control device and the audio output device. If the audio output device does not receive the audio data to be played within the preset audio data retransmission judgment interval, it will request the audio control device to retransmit the audio data. Audio data to be played.
  • the data retransmission judgment interval causes audio data to be retransmitted. However, audio data retransmission will also occupy bandwidth, thereby aggravating the decrease in bandwidth and further increasing the audio data transmission delay.
  • the audio control device determines that the target event is that the air conditioner (high-power equipment) is powered on, it can adjust the playback configuration based on the predicted link delay. For example, the preset audio data retransmission judgment interval is increased to reduce audio data retransmission, relieve the pressure of audio data transmission on the PLC link, and ensure the smoothness of audio playback.
  • the audio control device triggers channel re-estimation.
  • the audio control device determines that the smart home device executes control commands or performs attribute changes, which will affect the audio output. Therefore, the audio control device can actively trigger channel re-estimation and re-select a channel less affected by interference for communication. This ensures the smoothness of subsequent audio playback.
  • the existing technology usually triggers channel re-estimation after a jamming anomaly occurs, resulting in a jamming anomaly still occurring during the channel re-estimation process.
  • the embodiment of the present application can detect possible jamming problems through prediction before the abnormal jamming occurs (that is, before the smart home device executes control commands or changes attributes), actively triggers channel re-estimation, and reselects channels affected by interference in advance. Communicate through a small channel to avoid the impact on audio playback caused by smart home devices executing control commands or making attribute changes.
  • step S7081 and step S7082 may execute step S7081 and step S7082 at the same time, or execute step S7081 and step S7082 one after another. Optionally, one of the above steps S7081 and S7082 can also be executed.
  • the audio control device responds to the target event, predicts the PLC link status, triggers channel re-estimation at time point t1, completes channel re-estimation at time point t2, and the smart home device at time point t3 Only then will the control command or attribute changes be executed. Then, if the bandwidth increased through channel switching can compensate for the bandwidth lost due to the smart home device executing control commands or making attribute changes, the audio control device does not need to adjust the playback configuration of the audio output device.
  • the audio control device determines that the compensated bandwidth after subsequent channel switching meets the audio data transmission requirements, and after the channel switching is completed, the smart home device has not yet executed control commands or made attribute changes (for example, at time t3 at t2 after the time point, or the time point t3 coincides with the time point t2). Then, the audio control device does not need to adjust the playback configuration of the audio output device (that is, the above step S7081 is not performed).
  • the audio control device learns in advance future events that will affect the quality of PLC link data transmission and adjusts the audio output control in advance before the event occurs. This prevents the operation of smart home devices from affecting the audio output of the audio output device, causing audio playback to freeze, and effectively improves the user experience.
  • the link control method provided by the embodiment of the present application is explained by taking the data transmission delay as an example.
  • the audio control device can also pass other parameters used to measure link quality, Perform link control.
  • the audio control device determines that the link status of the link corresponding to the target event includes available bandwidth. Afterwards, based on the available bandwidth of the link, the audio control device can determine the predicted available bandwidth corresponding to the target event (that is, predicting the available bandwidth of the link after the target event occurs), and then determine whether the predicted available bandwidth meets the preset available bandwidth. Bandwidth setting conditions. Similarly, if not, the audio control device can adjust the audio control according to the preset method described in each of the above embodiments. If so, the audio control device determines that no adjustments to the audio output controls are required.
  • the audio control device can also perform link control through other parameters used to measure link quality, which will not be explained one by one in the embodiments of this application.
  • the method used by the audio control device to predict the PLC link data transmission status of the target event is only an exemplary explanation.
  • the audio control device can also predict the target through other prediction methods. The impact of events on the data transmission status of the PLC link.
  • an evaluation model is preset in the audio control device through a machine learning method. After the audio control device determines that it has received the target event, the evaluation model can predict the impact that the smart home device in the target event will have on the data transmission status of the PLC link connected to the audio output device by executing control commands or making attribute changes. . Afterwards, the audio control device can determine whether to adjust the audio output based on the prediction results.
  • the link control method provided by this application is introduced in detail above, taking the home music playback scenario as an example. It is understandable that this link control method can also be applied to other scenarios.
  • the porch light detects the user's turning on the light operation, it needs to be preheated (for example, it takes 1 to 2 seconds) before it can start lighting. Then, after turning on the lights, the user needs to wait for the porch light to be warmed up before lighting can be obtained, which affects the user experience.
  • the porch light control device is connected to one or more porch lights through a PLC link. If the porch light control device is set to subscribe to events including smart door lock unlocking. Then, after detecting the user's unlocking operation, the smart door lock reports the corresponding attribute change event to the control center. The control center determines that the target event is obtained based on the received attribute change event, and forwards the target event to the porch light control device. After receiving the target event, the porch light control device can instruct the porch light to preheat in advance, so that the lighting can be started directly after detecting the user's turning on the light operation. This reduces the waiting time for users and improves user experience.
  • the link control method provided by this application is introduced in detail by taking PLC technology as an example. It can be understood that this link control method can also be applied to other communication technologies, such as Wi-Fi communication technology.
  • Figure 10 shows yet another link control method provided by an embodiment of the present application. As shown in Figure 10, the method includes the following steps.
  • the first device obtains a first subscription event, where the first subscription event is an event associated with the running status of a third device, where the third device is on the first link.
  • the first subscription event includes information associated with the third device used to predict the impact on the link status of the first link when the operating status of the third device changes. Then, in some examples, after acquiring the first subscription event, the first device can predict, based on the information in the acquired first subscription event, that when the operating status of the third device changes, the first link of the first link will road status.
  • the information in the first subscription event is used to determine the device name, device type, device power consumption of the third device, the type of operation performed on the third device, and the number of links in the link to which the third device is connected. At least one item.
  • the first device before the first device obtains the first subscription event, the first device also sends a subscription event list to the second device, where the subscription event list is used to subscribe to events including the first subscription event.
  • the first device obtaining the first subscription event includes the first device receiving the first subscription event sent by the second device.
  • the first device will send its own subscription requirements to the second device. For example, the first device determines that the high-power electrical equipment will affect the operating status of the fourth device connected to the first device. Then, the first device can send the subscription requirement for the device type of the high-power electrical device to the second device, so that when the second device subsequently detects a change in the operating status of the high-power electrical device (such as the third device), Corresponding subscription events can be generated and sent to the first device.
  • the first device is, for example, the audio control device 200
  • the second device is, for example, the control center 100
  • the third device is, for example, the smart home device 400
  • the fourth device is, for example, the audio output device 201 .
  • the first device predicts the first link status of the first link based on the first subscription event.
  • the first device obtains a second link status of the first link.
  • the first device can then predict the first link state of the first link after the first subscription event occurs based on the second link state.
  • the information in the first subscription event includes the device type and the operation type of the device.
  • the first device determines that the third device is a high-power electrical device based on the device type, and determines that the third device is to be powered on based on the operation type.
  • the first device can determine that after the third device is powered on, the impact on the data transmission of the first link will be an increase of 150ms in the data transmission delay.
  • the first device can determine the first link status of the first link after the first subscription event occurs based on the second link status of the first link before the first subscription event occurs and the added 150ms.
  • the first device adjusts the operating status of the fourth device based on the predicted first link status meeting the first condition, where the fourth device is associated with the first link.
  • the first condition includes at least one of a link delay threshold setting condition, a link delay jitter threshold setting condition, and a link available bandwidth threshold setting condition.
  • the first condition is a link delay threshold setting condition.
  • the first device predicts whether the data transmission delay of the first link will be greater than the link delay threshold after the subscription event occurs.
  • the first device predicts that after the first subscription event occurs, the data transmission delay of the first link is greater than the link delay threshold, and the first device can determine that the first link status meets the link delay threshold setting condition (such as meet the first condition). Then, the first device needs to adjust the operating status of the fourth device that will be affected by changes in the operating status of the third device.
  • the first device obtains the second subscription event, and the second subscription event is also an event associated with the running status of the third device.
  • the first device predicts the third link status of the first link after the second subscription event occurs based on the second subscription event. If the data transmission delay of the first link is predicted to be less than or equal to the link delay threshold, then the first device predicts the third link status of the first link after the second subscription event occurs.
  • a device can determine that the third link status does not meet the link delay threshold setting conditions (such as meeting the second condition, where meeting the second condition can be used to indicate that the first condition is not met), and there is no need to adjust the operation of the fourth device. state.
  • the fourth device is associated with the first link, including: the fourth device is a device on the first link, or the fourth device is a device that will be affected by a request on the first link after the first subscription event occurs. Equipment affected by changes in operating status of third equipment.
  • the first device may determine the first link that the third device accesses based on the link information included in the first subscription event for determining the link to which the device is connected. . Afterwards, the first device may predict the first link status of the first link after the first subscription event occurs. When the first link status meets the first condition, the first device may adjust the operating status of the fourth device that also accesses the first link. Further, some fourth devices are not connected to the first link, but the operating status will also be affected by changes in the operating status of the third device, so that the link status meets the first condition, then the first device also needs to adjust this part of the third device. 4. The operating status of the equipment.
  • the first device predicts the link status of all devices that access the first device through links, thereby determining some or all of the devices that require operating status adjustment.
  • the first device after obtaining the subscription event, the first device first determines the link to which the device in the subscription event is connected. Afterwards, the first device predicts the link status of the link, and then determines whether it is necessary to adjust the operating status of the device connected to the first device through the link.
  • the first device adjusts the operating status of the fifth device based on the predicted first link status meeting the first condition.
  • the fifth device is associated with the first link, and the fifth device and the fourth device are devices on the same link or devices on different links. That is to say, the first device adjusts the operating status of one or more devices according to the predicted first link status.
  • the first device is a playback control device
  • the fourth device is a playback controlled device
  • the fourth device is a device on the first link. Based on the predicted first link status meeting the first condition, the fourth device is adjusted
  • the operating status of the device includes: adjusting the playback configuration of the fourth device based on the predicted first link status meeting the first condition; and/or triggering channel re-estimation of the first link.
  • adjusting the playback configuration of the fourth device includes: adjusting the sampling rate of data during data transmission with the fourth device, adjusting the resolution of data during data transmission with the fourth device, and adjusting the data with the fourth device. At least one of the data retransmission judgment intervals during data transmission.
  • the first device is an audio control device
  • the fourth device is an audio output device.
  • the audio control device determines that the first link state meets the first condition based on the predicted first link state. Then, the audio control device adjusts The corresponding playback configuration of the audio output device, such as adjusting the data sampling rate during data transmission between the audio control device and the audio output device, or triggering channel re-estimation of the link to which the audio output device is connected.
  • the first device is a video control device
  • the fourth device is a video output device.
  • the video control device determines that the first link status meets the first condition based on the predicted first link status. Then, the video control device adjusts the playback configuration of the corresponding video output device, such as adjusting the data resolution during data transmission between the video control device and the video output device, or triggering the channel reconfiguration of the link to which the video output device is connected. estimate.
  • the first device is a light control device and the fourth device is a controlled light device.
  • adjusting the operating status of the fourth device includes: based on the predicted first link status A link status meets the first condition, indicating initialization of the fourth device.
  • the first device is a porch light control device
  • the fourth device is a porch light.
  • the porch light control device determines that the first link status meets the first condition based on the predicted first link status.
  • the porch light control device can then instruct the corresponding porch light to initialize, thus completing the warm-up of the device.
  • the porch light can directly start the lighting without having to perform the preheating process of the device, that is, it does not need to be initialized again, which saves the user waiting time.
  • the first device can adjust the operating state of the fourth device again to restore the operating state of the fourth device to the operating state of the fourth device before the first subscription event occurred.
  • the first subscription event includes the third device being powered on and running, and the first device adjusts the operating status of the fourth device based on the first subscription event through the above-mentioned steps S1001 to S1003. Then, after determining that the third device is shut down, the first device can adjust the operating state of the fourth device again, so that the operating state of the fourth device returns to the operating state before the third device was turned on.
  • the first device may send a subscription event list to the second device, where the subscription event list includes an event of the third device shutting down. Then, after the second device detects a control command instructing the third device to shut down, or receives an attribute change event corresponding to its shutdown sent by the third device, it can send a corresponding subscription event to the first device. Afterwards, the first device can determine that the third device is about to shut down based on the subscription event. Then, the first device can adjust the operating status of the fourth device.
  • the first subscription event is an event subscribed by the first device, but the event subscribed by the first device may change. Therefore, after acquiring the first subscription event, the first device can also determine whether the first subscription event is the target event, and then perform link status prediction after determining that the first subscription event is the target event.
  • the first subscription event is considered a target event by the first device. That is to say, after acquiring the first subscription event, the first device directly performs link status prediction without further event confirmation, such as confirming whether the first subscription event is a target event.
  • the first device can pre-adjust the operating status of the fourth device before the event occurs. This prevents changes in the operating status of the third device from affecting the operating quality of the fourth device, and effectively improves the user experience.
  • the first device can also perform the steps and functions performed by the audio control device in the above embodiments
  • the second device can also perform the steps and functions performed by the control center in the above embodiments
  • the third device can also perform the intelligent control in the above embodiments.
  • the fourth device can also perform the steps and functions performed by the audio output device in the above embodiments, thereby realizing the link control method provided by the above embodiments.
  • the link control method provided by the embodiment of the present application is described in detail above with reference to Figures 5-10.
  • the above methods mainly use the equipment running on the PLC link as an example. It is understandable that the solutions described in the above methods can also be applied to devices connected by other types of links, such as using Wi-Fi and other wireless technology connection methods.
  • PLC link connection methods can also be implemented wirelessly in addition to wired methods.
  • FIG. 11 is a schematic structural diagram of a first device provided by an embodiment of the present application.
  • the first device 1100 may include: a transceiver unit 1101 and a processing unit 1102.
  • the first device 1100 may be used to implement the functions of the first device (such as an audio control device) involved in the above method embodiments.
  • the transceiver unit 1101 is used to support the first device 1100 to perform S702 in Figure 7; and/or to support the first device 1100 to perform S7081 in Figure 8; and/or to support the first device 1100 to perform S7081 in Figure 8; 1100 executes S1001 in Figure 10.
  • the processing unit 1102 is used to support the first device 1100 to perform S702-S708 in Figure 7; and/or to support the first device 1100 to perform S7082 in Figure 8; and/or to support the third A device 1100 executes S1002 and S1003 in FIG. 10 .
  • the transceiver unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module.
  • the operation and/or function of each unit in the first device 1100 is to implement the corresponding process of the link control method described in the above method embodiment. All relevant content of each step involved in the above method embodiment can be quoted from the corresponding For the sake of brevity, the function description of the functional unit will not be repeated here.
  • the first device 1100 shown in Fig. 11 may also include a storage unit (not shown in Fig. 11), in which programs or instructions are stored.
  • a storage unit not shown in Fig. 11
  • the transceiver unit 1101 and the processing unit 1102 execute the program or instruction
  • the first device 1100 shown in FIG. 11 can perform the link control method described in the above method embodiment.
  • the technical solution provided by this application can also be a functional unit or chip in the first device, or a device used in conjunction with the first device.
  • An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, and the memory is used to store programs or instructions. When the program or instructions are executed by the processor, the The chip system implements the method in any of the above method embodiments.
  • processors in the chip system there may be one or more processors in the chip system.
  • the processor can be implemented in hardware or software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software code stored in memory.
  • the memory may be integrated with the processor or may be provided separately from the processor, which is not limited by the embodiments of the present application.
  • the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip, or may be separately provided on different chips.
  • the embodiments of this application vary on the type of memory, and The arrangement of the memory and processor is not specifically limited.
  • the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). ), it can also be a central processor (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit, MCU), it can also be a programmable logic device (PLD) or other integrated chip.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit, CPU
  • NP network processor
  • DSP digital signal processing circuit
  • microcontroller micro controller unit, MCU
  • PLD programmable logic device
  • each step in the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the method steps disclosed in conjunction with the embodiments of this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to perform the above related steps to implement the above embodiments. link control method.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the link control method in the above embodiment.
  • the embodiment of the present application also provides a device.
  • the device may specifically be a component or module, and the device may include one or more connected processors and memories. Among them, memory is used to store computer programs. When the computer program is executed by one or more processors, the device is caused to execute the link control method in each of the above method embodiments.
  • the devices, computer-readable storage media, computer program products or chips provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects it can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be described again here.
  • the steps of the methods or algorithms described in connection with the disclosure of the embodiments of this application can be implemented in hardware or by a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, or read only memory (read only memory, ROM), erasable programmable ROM (EPROM), electrically erasable programmable read-only memory (EPROM, EEPROM), register, hard disk, removable hard disk, compact disc (CD-ROM) or any other form of storage media known in the art.
  • An exemplary storage medium is coupled to the processor such that the processor can read information from the storage medium and write information to the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may be located in an application specific integrated circuit (AP device application specific integrated circuit, ASIC).
  • ASIC application specific integrated circuit
  • the disclosed method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored. or not executed.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.
  • each functional unit in various embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • Computer-readable storage media includes but is not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or optical disk etc.
  • Various media that can store program code include but is not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

提供了链路控制方法及电子设备,能够通过预知链路上的设备运行状态变化,并且基于该变化对链路在未来一段时间内的数据传输质量进行预测,预先调整链路上其他设备的运行状态,提升用户使用体验。方法包括:第一设备获取第一订阅事件,第一订阅事件为与第三设备的运行状态关联的事件,第三设备在第一链路上(S1001)。然后,第一设备根据第一订阅事件,预测第一链路的第一链路状态(S1002)。基于预测的第一链路状态符合第一条件,第一设备调整第四设备的运行状态,第四设备与第一链路关联(S1003)。

Description

链路控制方法及电子设备
本申请要求于2022年08月26日提交国家知识产权局、申请号为202211037142.6、发明名称为“链路控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端技术领域,尤其涉及一种链路控制方法及电子设备。
背景技术
随着设备间数据通信技术的发展,基于电力线载波通信(power line communication,PLC)技术进行多设备间协同作业的产品不断涌现。相较于传统的基于无线保真(wireless fidelity,Wi-Fi)技术进行多设备间协同作业的产品,PLC技术能够保证更远的设备覆盖范围和更高的数据传输可靠性。比如,基于PLC技术连接的音乐主机和音频输出设备,能够为用户提供更好的全屋协同音乐播放体验。
但是,PLC链路数据传输质量受链路上设备运行状态干扰明显。比如,大功率设备开机或运行,会严重影响大功率设备所在PLC链路的数据传输质量,如导致通过该PLC链路连接的音频控制设备和音频输出设备之间音频数据传输的可用带宽降低,进而出现播放卡顿异常,影响用户的使用体验。
发明内容
为了解决上述的技术问题,本申请提供了一种链路控制方法及电子设备。本申请提供的技术方案,响应于监测到的订阅事件,诸如音频控制设备等设备可以按照预设方法调整音频等数据的输出控制。通过预知链路上的设备运行状态变化,并且基于该变化对链路在未来一段时间内的数据传输质量进行预测,预先调整链路上其他设备的运行状态,提升用户使用体验。
为了实现上述的技术目的,本申请提供了如下技术方案:
第一方面,提供一种链路控制方法,该方法由第一设备执行。该方法包括:获取第一订阅事件,第一订阅事件为与第三设备的运行状态关联的事件,其中,第三设备在第一链路上。根据第一订阅事件,预测第一链路的第一链路状态。基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,其中,第四设备与第一链路关联。
可选的,第三设备开机、关机、档位调整、使用模式切换等事件,为与第三设备的运行状态关联的事件。调整第四设备的运行状态例如包括调整第四设备接入链路对应的采样率、分辨率、或者进行信道重估计等。
如此,第一设备通过提前获知未来会对链路数据传输质量产生影响的事件,在事件发生之前预先调整第四设备的运行状态。从而避免第三设备的运行状态变化影响第四设备的运行质量,有效提升用户的使用体验。
根据第一方面,第一订阅事件包括用于预测第三设备的运行状态发生变化时,对第一链路的链路状态产生影响的与第三设备关联的信息,根据第一订阅事件,预测第一链路的第一链路状态,包括:根据获取的第一订阅事件中的信息,预测第三设备的运行状态发生变化时,第一链路的第一链路状态。
根据第一方面,或者以上第一方面的任意一种实现方式,信息包括用于确定第三设备的设备名称、设备类型、设备功耗,对第三设备进行操作的操作类型,第三设备所接入链路中的至少一项。
示例性的,例如按照设备功率大小划分设备类型,如设备类型包括:低功率用电设备(如功率≤500W)、中等功率用电设备(如功率在500W-1000W之间)、大功率用电设备(如功率在1000W-2000W之间)、大功率用电设备(如功率≥2000W)等。操作类型用于表示第三设备待执行的操作,例如包括:开机运行、关机、档位调整、切换使用模式等。
在一些实施例中,第一设备中预先配置用于进行链路状态预测的表。第一设备根据第一订阅事件中的信息,可在表中匹配相应的数据,确定对应的链路状态,以完成链路状态的预测。
比如,第一订阅事件中的信息包括设备类型和对设备进行操作的操作类型。第一设备根据设备类型确定第三设备为大功率用电设备,根据操作类型确定第三设备待执行开机操作。根据预先配置的表,第一设备根据第一订阅事件,可确定此次第三设备开机运行后,会对第一链路的数据传输产生的影响为数据传输时延增加150ms。那么,第一设备根据第一订阅事件发生前,第一链路的第二链路状态和增加的150ms,可确定第一订阅事件发生后,第一链路的第一链路状态。从而实现预测第三设备的运行状态发生变化时,第一链路的第一链路状态。
根据第一方面,或者以上第一方面的任意一种实现方式,第四设备与第一链路关联,包括:第四设备为第一链路上的设备,或者,第四设备为第一订阅事件发生后会受到第一链路上的第三设备运行状态变化影响的设备。
示例性的,第一设备在接收到第一订阅事件后,可根据第一订阅事件中包括的用于确定设备所接入链路的链路信息,确定第三设备接入的第一链路。之后,第一设备可预测在第一订阅事件发生后,第一链路的第一链路状态。在第一链路状态符合第一条件的情况下,第一设备可调整同样接入第一链路的第四设备的运行状态。进一步的,部分第四设备未接入第一链路,但是运行状态同样会受到第三设备运行状态的变化的影响,使得链路状态符合第一条件,那么第一设备同样需要调整这部分第四设备的运行状态。
比如,第一设备在接收到订阅事件后,会对全部通过链路接入第一设备的设备的链路状态进行预测,从而确定其中部分或全部需要进行运行状态调整的设备。
又比如,第一设备在接收到订阅事件后,先确定订阅事件中的设备接入的链路。之后,第一设备再预测该链路的链路状态,进而确定是否需要对通过该链路接入第一设备的设备进行运行状态调整。
如此,第一设备根据订阅事件,预测会受到订阅事件影响的第四设备,触发调整第四设备的设备状态。从而避免订阅事件发生后,第四设备的运行状态受到影响。
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:基于预测的第一链路状态符合第一条件,调整第五设备的运行状态,其中,第五设备与第一链路关联,第五设备和第四设备是同一链路上的设备或不同链路上的设备。
根据第一方面,或者以上第一方面的任意一种实现方式,第一条件包括链路时延阈值设定条件,链路时延抖动阈值设定条件,链路可用带宽阈值设定条件中的至少一项。
根据第一方面,或者以上第一方面的任意一种实现方式,在根据第一订阅事件,预测第一链路的第一链路状态之前,方法包括:获取第一链路的第二链路状态。根据第一订阅事件,预测第一链路的第一链路状态,包括:基于第二链路状态,预测第一订阅事件发生后,第一链路的第一链路状态。
在一些实施例中,第一设备预测第一订阅事件发生后,会对第一链路产生的影响。第一设备基于第一订阅事件发生前原第一链路的链路状态,可根据产生的影响,预测第一订阅事件发生后,第一链路的以链路状态。
比如,第一设备预测第一订阅事件发生后,第一链路的数据传输时延会增加150ms。那么,第一设备预测第一订阅事件发生后,第一链路的第一链路状态为原第一链路的第二链路状态加上150ms。
如此,第一设备根据链路的原链路状态和订阅事件对链路状态可能产生的影响,实现预测订阅事件发生后,链路的链路状态。
根据第一方面,或者以上第一方面的任意一种实现方式,第一设备为播放控制设备,第四设备为播放被控设备,第四设备是第一链路上的设备,基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,包括:基于预测的第一链路状态符合第一条件,调整第四设备的播放配置;和/或,触发第一链路的信道重估计。
示例性的,播放控制设备预测第一链路状态符合第一条件,比如预测的第一链路状态不满足链路时延设定条件,如预测的第一链路的链路时延大于链路时延阈值。那么,播放控制设备可调整第一链路上的播放被控设备的运行状态。
根据第一方面,或者以上第一方面的任意一种实现方式,调整第四设备的播放配置,包括: 调整与第四设备数据传输过程中数据的采样率,调整与所述第四设备数据传输过程中数据的分辨率,以及调整与第四设备数据传输过程中数据重传判断间隔中的至少一项。
如此,在家庭音乐场景中,音频控制设备(如第一设备)通过提前获知未来会对链路数据传输质量产生影响的事件,在事件发生之前预先调整音频输出控制。从而避免智能家居设备(如第三设备)的操作影响音频输出设备(如第四设备)的音频输出,造成音频播放卡顿,有效提升用户的使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,第一设备为灯控设备,第四设备为被控灯设备,基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,包括:基于预测的第一链路状态符合第一条件,指示第四设备初始化。
示例性的,灯控设备预测第一链路状态符合第一条件,比如预测的第一链路状态满足预设设备(如智能门锁)接入的链路状态,那么灯控设备可指示被控灯设备初始化,如进行预热。
如此,在灯控场景中,在检测到用户的开灯操作后,被控设备(如灯)可直接启动照明。从而减少用户等待的时间,提升用户使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:获取第二订阅事件,第二订阅事件为与第三设备的运行状态关联的事件。根据第二订阅事件,预测第一链路的第三链路状态。基于预测的第三链路状态符合第二条件,不调整第四设备的运行状态。
如此,第一设备根据订阅事件,预测订阅事件的发生是否会对通过链路接入第一设备的设备的运行状态产生影响。第一设备调整会产生影响的设备的运行状态,不调整不会产生影响的设备的运行状态。从而在避免订阅事件对设备运行状态产生影响的同时,避免设备运行状态的不必要调整。
根据第一方面,或者以上第一方面的任意一种实现方式,获取第一订阅事件,包括:从第二设备接收第一订阅事件。
根据第一方面,或者以上第一方面的任意一种实现方式,在从第二设备接收第一订阅事件之前,方法还包括:向第二设备发送订阅事件列表,该订阅事件列表用于订阅包括第一订阅事件在内的事件。
如此,第一设备预先向第二设备上报所需订阅的事件,从而后续第二设备能够监测这些订阅事件,避免订阅事件的发生对通过链路接入第一设备的设备的运行状态产生影响。其中,第一设备所需订阅的事件为发生后可能对通过链路接入第一设备的设备的运行状态产生影响的事件。
根据第一方面,或者以上第一方面的任意一种实现方式,第一链路为有线链路或无线链路。
根据第一方面,或者以上第一方面的任意一种实现方式,第一链路为电力线载波通信PLC链路,或无线保真Wi-Fi链路。
如此,本申请提供的技术方案适用于多种链路连接场景中的链路控制,以保证用户在多种场景中的使用体验。
第二方面,提供一种电子设备。该电子设备包括:处理器和存储器,存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行:获取第一订阅事件,第一订阅事件为与第三设备的运行状态关联的事件,其中,第三设备在第一链路上。根据第一订阅事件,预测第一链路的第一链路状态。基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,其中,第四设备与第一链路关联。
根据第二方面,第一订阅事件包括用于预测第三设备的运行状态发生变化时,对第一链路的链路状态产生影响的与第三设备关联的信息,根据第一订阅事件,预测第一链路的第一链路状态,包括:根据获取的第一订阅事件中的信息,预测第三设备的运行状态发生变化时,第一链路的第一链路状态。
根据第二方面,或者以上第二方面的任意一种实现方式,信息用于确定第三设备的设备名称、设备类型、设备功耗,对第三设备进行操作的操作类型,第三设备所接入链路中的至少一项。
根据第二方面,或者以上第二方面的任意一种实现方式,第四设备与第一链路关联,包括:第四设备为第一链路上的设备,或者,第四设备为第一订阅事件发生后会受到第一链路上的第三 设备运行状态变化影响的设备。
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:基于预测的第一链路状态符合第一条件,调整第五设备的运行状态,其中,第五设备与第一链路关联,第五设备和第四设备是同一链路上的设备或不同链路上的设备。
根据第二方面,或者以上第二方面的任意一种实现方式,第一条件包括链路时延阈值设定条件,链路时延抖动阈值设定条件,链路可用带宽阈值设定条件中的至少一项。
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:获取第一链路的第二链路状态。根据第一订阅事件,预测第一链路的第一链路状态,包括:基于第二链路状态,预测第一订阅事件发生后,第一链路的第一链路状态。
根据第二方面,或者以上第二方面的任意一种实现方式,第一设备为播放控制设备,第四设备为播放被控设备,第四设备是第一链路上的设备,基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,包括:基于预测的第一链路状态符合第一条件,调整第四设备的播放配置;和/或,触发第一链路的信道重估计。
根据第二方面,或者以上第二方面的任意一种实现方式,调整第四设备的播放配置,包括:调整与第四设备数据传输过程中数据的采样率,调整与所述第四设备数据传输过程中数据的分辨率,以及调整与第四设备数据传输过程中数据重传判断间隔中的至少一项。
根据第二方面,或者以上第二方面的任意一种实现方式,第一设备为灯控设备,第四设备为被控灯设备,基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,包括:基于预测的第一链路状态符合第一条件,指示第四设备初始化。
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:获取第二订阅事件,第二订阅事件为与第三设备的运行状态关联的事件。根据第二订阅事件,预测第一链路的第三链路状态。基于预测的第三链路状态符合第二条件,不调整第四设备的运行状态。
根据第二方面,或者以上第二方面的任意一种实现方式,获取第一订阅事件,包括:从第二设备接收第一订阅事件。
根据第二方面,或者以上第二方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:向第二设备发送订阅事件列表,订阅事件列表用于订阅包括第一订阅事件在内的事件。
根据第二方面,或者以上第二方面的任意一种实现方式,第一链路为有线链路或无线链路。
根据第二方面,或者以上第二方面的任意一种实现方式,第一链路为电力线载波通信PLC链路,或无线保真Wi-Fi链路。
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的链路控制方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。
第三方面以及第三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第四方面,本申请提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被电子设备执行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法。
第四方面以及第四方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第五方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法。
第五方面以及第五方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第六方面,本申请提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法。
第六方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第七方面,本申请提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法。
第七方面以及第七方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种噪声采样的示意图;
图2为本申请实施例提供的信道重估计耗时的示意图一;
图3为本申请实施例提供的一种链路控制方法应用的通信系统的示意图;
图4A为本申请实施例提供的控制中心的硬件结构示意图;
图4B为本申请实施例提供的控制设备的硬件结构示意图;
图5为本申请实施例提供的链路连接示意图;
图6为本申请实施例提供的模块交互示意图;
图7为本申请实施例提供的链路控制方法流程示意图一;
图8为本申请实施例提供的链路控制方法流程示意图二;
图9为本申请实施例提供的信道重估计耗时的示意图二;
图10为本申请实施例提供的链路控制方法流程示意图三;
图11为本申请实施例提供的第一设备的结构示意图。
具体实施方式
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
在一些场景中,相较于传统的基于无线保真(wireless fidelity,Wi-Fi)技术,电力线载波通信(power line communication,PLC)技术以其更远的设备覆盖范围和更高的数据传输可靠性,广泛应用于多设备间协同作业场景。
比如,在家庭音乐播放场景中,配置有一个音乐主机,该音乐主机可通过PLC链路连接多个 音频播放设备(如喇叭、音箱等)。其中,不同的音频播放设备可安装在各个房间中。这样,用户通过一个音乐主机,即可实现全屋设备协同音乐播放体验。
示例性的,如图5所示,音频控制设备(如音乐主机)通过对应于回路1的PLC链路连接位于主卧中的音箱1,通过对应于回路2的PLC链路连接位于客卧中的音箱2、以及位于客厅的喇叭1和喇叭2,通过对应于回路3的PLC链路连接位于餐厅中的喇叭3。这样,用户通过该音频控制设备可控制位于各个房间的音箱或喇叭的音频播放,满足用户全屋音频播放控制的需求。
但是,PLC链路上数据传输质量(如有效速率、误码率等)受PLC链路上设备运行状态干扰明显。比如,如图1所示,大功率用电设备(如电机)开机运行对整个链路频段干扰明显,如噪声峰值增高,导致PLC链路误码率增加。
比如,在上述家庭音乐播放场景中,在音乐播放过程中,如大功率设备接入PLC链路并开机运行,影响PLC链路的音频数据传输质量,会导致音乐播放出现卡顿异常,影响用户的使用体验。
对此,提出一种信道重估计方法,以改善PLC链路数据传输质量。比如,控制设备对PLC链路误码率进行监测,当PLC链路误码率持续超过预设阈值时,触发信道重估计,从而重新选择受到干扰影响较小的信道进行通信。以提升数据传输质量,解决上述卡顿异常。
但是,如图2所示,该方法中,控制设备监测到卡顿异常(或PLC链路误码率持续超过预设阈值)后才触发信道重估计,而信道重估计存在一定的耗时。那么,在信道切换前的这段时间,PLC链路数据传输质量仍然较差。因此,在音乐播放等实时PLC链路数据传输场景中,该方法的实时性较差,仍会影响用户的使用体验。
由此,本申请实施例提供一种链路控制方法。响应于监测到的目标事件,音频控制设备按照预设方法调整音频输出控制。通过预知PLC链路上的设备运行状态变化,并且基于该变化对PLC链路在未来一段时间内的数据传输质量进行预测,预先调整链路上其他设备的运行状态,提升用户使用体验。
图3为本申请实施例提供的链路控制方法应用的通信系统的示意图。如图3所示,该通信系统包括控制中心100、音频控制设备200、音频输出设备201、控制设备300、智能家居设备400。
可选的,控制中心100例如为路由器等用于连接全屋场景中各个电子设备的中心设备。一些示例中,控制中心100与控制设备300建立通信连接,控制设备300通过控制中心100实现控制智能家居设备400。一些示例中,控制中心100配置有多个槽位,用于连接控制中心100控制的电子设备。比如,音频控制设备200通过控制中心100的槽位,接入控制中心100。
可选的,控制设备300可以为控制智能家居设备的专用设备,或者为包括控制智能家居设备功能的设备。例如,控制设备300可以为智能家居控制面板,或者为手机、平板、智能音响、智能手表等终端设备。其中,智能家居控制面板为用于控制智能家居系统中的智能家居设备的专用设备。在一些实施例中,控制设备300可以为固定式设备,也可以为便携式设备。本申请对控制设备300的具体形式不做特殊限制。
可选的,智能家居设备400例如可以为冰箱、空调、洗衣机、大屏设备、空气净化器、扫地机器人、台灯、电灯、摄像头、手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、上网本、可穿戴电子设备、人工智能(artificial intelligence,AI)终端等终端设备,本申请对智能家居设备400的具体形式不做特殊限制。智能家居设备400安装的操作系统包括但不限于或者其它操作系统。智能家居设备400也可以不安装有操作系统。在一些实施例中,智能家居设备400可以为固定式设备,也可以为便携式设备。本申请对智能家居设备400的具体类型、有无安装操作系统、在有安装操作系统下所安装的操作系统均不作限制。
可选的,音频控制设备200例如为音乐主机等设备,用于控制一个或多个音频输出设备201。可选的,音频输出设备201例如为喇叭、音箱等设备。一些示例中,音频控制设备200能够实现音乐资源解码,并将解码后的音乐码流数据发送到音频输出设备201。音频输出设备201接收到音乐码流数据后,将音乐码流数据导入驱动器进行音乐播放。
在一些实施例中,音频控制设备200、控制设备300、以及智能家居设备400通过第一类通信连接接入控制中心100。其中,第一类通信连接为无线通信连接,建立无线通信连接的无线通信 技术包括但不限于以下的至少一种:蓝牙(bluetooth,BT)(例如,传统蓝牙或者低功耗(bluetooth low energy,BLE)蓝牙),无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),近距离无线通信(nearfield communication,NFC),紫蜂(Zigbee),调频(frequency modulation,FM),红外(infrared,IR)等。
在一些实施例中,音频控制设备200和音频输出设备201之间建立有第二类通信连接。其中,第二类通信连接例如为通过PLC技术建立的通信连接。
可选的,本申请实施例中的控制中心100、音频控制设备200、音频输出设备201、控制设备300、智能家居设备400可以通过不同的设备实现,不同的设备可以具有相同、相似或具有一定差异性的硬件结构,比如图4A或如图4B所示的硬件结构。
例如,以控制中心100具有如图4A所示的硬件结构为例,对图4A所示的硬件结构进行说明。
如图4A所示,控制中心100包括至少一个处理器401,通信线路402,存储器403以及至少一个通信接口404。其中,存储器403还可以包括于处理器401中。
可以理解的是,本申请实施例示意的结构并不构成对控制中心100的具体限定。在本申请另一些实施例中,控制中心100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器401可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信线路402可包括一通路,在上述组件之间传送信息。
通信接口404,用于与其他设备通信。在本申请实施例中,通信接口可以是模块、电路、总线、接口、收发器或者其它能实现通信功能的装置,用于与其他设备通信。可选的,当通信接口是收发器时,该收发器可以为独立设置的发送器,该发送器可用于向其他设备发送信息,该收发器也可以为独立设置的接收器,用于从其他设备接收信息。该收发器也可以是将发送、接收信息功能集成在一起的部件,本申请实施例对收发器的具体实现不做限制。
存储器403可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路402与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器403用于存储用于实现本申请方案的计算机执行指令,并由处理器401来控制执行。处理器401用于执行存储器403中存储的计算机执行指令,从而实现本申请下述实施例提供的载波发送方法。
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码、指令、计算机程序或者其它名称,本申请实施例对此不作具体限定。
在具体实现中,作为一种实施例,处理器401可以包括一个或多个CPU,例如图4A中的CPU0和CPU1。
在具体实现中,作为一种实施例,控制中心100可以包括多个处理器,例如图4A中的处理器401和处理器407。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
在具体实现中,作为一种实施例,控制中心100还可以包括输出设备405和输入设备406。输出设备405和处理器401通信,可以以多种方式来显示信息。例如,输出设备405可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备406和 处理器401通信,可以以多种方式接收用户的输入。例如,输入设备406可以是鼠标、键盘、触摸屏设备或传感设备等。
又例如,以控制设备300具有如图4B所示的硬件结构为例,对图4B所示的硬件结构进行说明。
如图4B所示,控制设备300可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对控制设备300的具体限定。在本申请另一些实施例中,控制设备300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器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的等待时间,因而提高了系统的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为控制设备300充电,也可以用于控制设备300与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他第一控制设备300,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对控制设备300的结构限定。在本申请另一些实施例中,控制设备300也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为控制设备300供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
控制设备300的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。控制设备300中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在控制设备300上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模 块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在控制设备300上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,控制设备300的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得控制设备300可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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)。
控制设备300通过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),Mini-led,Micro-led,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等生产制造。在一些实施例中,控制设备300可以包括1个或N个显示屏194,N为大于1的正整数。
在一些示例中,控制设备300可以通过显示屏194显示控制界面。响应于用户在控制界面上的操作,控制设备300可接收用户对于智能家居设备400的控制命令,如开机命令、关机命令等。之后,控制设备300可通过无线通信模块160将控制命令经由控制中心100下发至相应的智能家居设备400。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,控制设备300可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展控制设备300的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储控制设备300使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令, 和/或存储在设置于处理器中的存储器的指令,执行控制设备300的各种功能应用以及数据处理。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。控制设备300可以通过音频模块170,例如音乐播放,录音等。音频模块170可以包括扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于控制设备300的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。控制设备300可以接收按键输入,产生与控制设备300的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。控制设备300可以支持1个或N个SIM卡接口,N为大于1的正整数。
可以理解的是,本申请实施例示意的如图4A或图4B结构并不构成对控制中心100、音频控制设备200、音频输出设备201、控制设备300、智能家居设备400结构实现方式的唯一限定。在本申请另一些实施例中,控制中心100、音频控制设备200、音频输出设备201、控制设备300、智能家居设备400可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
在一种实施方式中,电力载波是电力系统特有的通信方式,PLC是指利用现有电力线,通过载波方式将模拟或数字信号进行高速传输的技术。电力线不同于普通的数据通信线路,当作为一种数据传输的媒介时,容易受到干扰的影响。比如,电力线上有许多不可预料的噪声和干扰源,如空调、电冰箱、洗衣机等智能家居设备,这些智能家居设备任何时候都可能接入或断开、开机或关闭电源、调整参数或工作状态,因而导致电力线的特性不断地变化,对PLC链路的数据传输质量产生影响。
示例性的,如图5所示,音频控制设备通过3条PLC链路(对应于电力线回路1、回路2、回路3)连接位于不同房间的音频输出设备(如喇叭1-喇叭3,音箱1-音箱2)。那么,如果智能家居设备接入到这3条PLC链路的任意一条上,智能家居设备的设备状态变化会对相应PLC链路的数据传输质量产生影响,因此也会影响相应PLC链路的音频传输数据质量,进而造成音频卡顿异常等异常。
在一些情形下,不同设备类型的智能家居设备对于PLC链路数据传输质量的影响不同,不同操作类型对于PLC链路数据传输质量的影响也不同。因此,控制中心确定订阅事件,该订阅事件包括设备类型和操作类型。
可选的,音频控制设备接入控制中心后,可向控制中心上报订阅事件。其中,该订阅事件包括会对该音频控制设备的音频播放产生影响的智能家居设备的设备类型和操作类型。
或者,智能家居设备接入到控制中心后,向控制中心上报自身是会对屋内音频播放产生影响的智能家居设备(如该智能家居设备为大功率设备),控制中心可生成相应的订阅事件。
或者,控制中心中配置有目标设备类型,智能家居设备接入到控制中心后,控制中心可确定该智能家居设备是否属于目标设备类型。如果接入的智能家居设备属于目标设备类型,可生成相应的订阅事件。
或者,控制中心可接收服务器下发的订阅事件,该订阅事件包括设备类型和操作类型。
可选的,智能家居场景中,全屋可能配置有一个或多个音频控制设备,不同音频控制设备对应的订阅事件相同或不相同。
在一种实施方式中,控制中心可接收到控制设备(如智能家居控制面板等)向智能家居设备发送的控制命令,用于指示智能家居设备执行相应的操作(如开机、关机等),该控制命令中携带有待执行控制命令的智能家居设备的设备标识。因此,控制中心根据设备标识,可确定待执行控制命令的智能家居设备,进而确定该智能家居设备是否为订阅事件所指示的设备,以确定是否接收到订阅事件。
或者,智能家居设备在属性变更(如档位调整、使用模式切换等)前会向控制中心上报属性信息变更事件,该属性变更事件中携带有设备标识。因此,控制中心根据设备标识,可确定属性变更的智能家居设备,进而确定该智能家居设备是否为订阅事件所指示的设备,以确定是否接收到订阅事件。
可以看出,在上述控制中心确定是否收到订阅事件的场景中,从控制中心向智能家居设备转发控制命令到智能家居设备执行控制命令之间存在一定的时间间隔,或者在控制中心获知智能家居设备待属性变更到智能家居设备完成属性变更之间同样存在一定的时间间隔。
那么,在上述两种场景中的时间间隔中,音频控制设备可调整音频输出控制,从而避免后续由于智能家居设备执行控制命令或属性变更对PLC链路的影响而影响到音频播放。因此,控制中心在确定接收到订阅事件后,可向对应的音频控制设备转发该订阅事件,音频控制设备响应于接收到的订阅事件,可调整音频输出控制,以保证后续音频播放的流畅性。
示例性的,如图6所示,控制中心61通过事件订阅模块611在确定接收到订阅事件后,可向音频控制设备62转发该订阅事件。之后,音频控制设备62通过事件处理模块621,确定订阅事件中包括的智能家居设备、设备类型、操作类型等信息,进而确定当前智能家居设备在执行操作后,是否会对各个音频输出设备接入的PLC链路的数据传输产生影响。
如果会产生影响,音频控制设备62可通过事件处理模块621调整播放配置,并通过音频控制模块622向音频输出设备631、音频输出设备632发送调整后的播放配置。那么,音频输出设备631、音频输出设备632在接收到调整后的播放配置后,可通过音频处理模块调整播放配置,通过音频输出模块按照调整后的播放配置播放音频。从而避免后续目标智能家居设备执行操作对PLC链路产生影响后,影响音频播放的流畅性。
以下对家庭音乐播放场景中,音频播放过程的链路控制方法进行详细的介绍。
示例性的,图7为本申请实施例提供的一种链路控制方法。如图7所示,该方法包括如下步骤。
S701、控制中心确定接收到事件为音频控制设备的订阅事件。
其中,订阅事件包括设备名称、设备类型、操作类型、智能家居设备所接入的PLC链路的链路标识中的一项或几项。
示例性的,例如按照设备功率大小划分设备类型,如设备类型包括:低功率用电设备(如功率≤500W)、中等功率用电设备(如功率在500W-1000W之间)、大功率用电设备(如功率在1000W-2000W之间)、大功率用电设备(如功率≥2000W)等。操作类型用于表示智能家居设备待执行的操作,例如包括:开机运行、关机、档位调整、切换使用模式等。
在一种实施方式中,控制中心按照预设方式获取音频控制设备的订阅事件。可选的,预设方式例如包括如下一项或几项:接收音频控制设备上报的订阅设备、接收智能家居设备上报的订阅事件、接收服务器下发的订阅事件、自动生成的包括目标设备类型的智能家居设备的订阅事件。
在一种实施方式中,控制中心在接收到事件后,可确定接收到的事件是否属于音频控制设备的订阅事件。如果控制中心确定该事件属于音频控制设备的订阅事件,可在处理该事件的同时将该事件转发到相应的音频控制设备;如果控制中心确定该事件不属于音频控制设备的订阅事件,可直接处理该事件,如将该事件发送至相应的智能家居设备。
示例性的,控制中心接收到控制设备向智能家居设备发送的控制命令后,可确定控制命令指示的智能家居设备。那么,控制中心可确定该智能家居设备对应的设备类型、操作类型等是否属 于订阅事件中包括内容,如属于,控制中心可确定接收到订阅事件。
比如,控制设备(如智能家居控制面板)检测到用户指示空调关机的操作,可向控制中心发送控制命令,用于控制空调关机。控制中心在接收到控制命令后,可确定该控制命令对应的事件是否为订阅事件。如控制中心确定空调对应的设备类型(如大功率设备)为音频控制设备订阅的目标设备类型,可确定该事件为订阅事件。
又示例性的,控制中心接收到智能家居设备上报的属性变更事件后,可确定上报该属性变更事件的智能家居设备。同样的,控制中心可确定该智能家居设备对应的设备类型、操作类型等是否属于订阅事件中包括内容,如属于,控制中心可确定接收到订阅事件。
可选的,智能家居设备可在确定需要属性变更后,向控制中心上报属性变更事件。比如,智能家居设备响应于用户的档位调整操作,可向控制中心上报属性变更事件。又比如,智能家居设备确定即将切换使用模式,可向控制中心上报属性变更事件(比如,洗衣机确定在5分钟后,将由清洗模式切换为甩干模式)。
可选的,智能家居设备也可按照预设周期,向控制中心上报状态变化信息。比如,长期接入PLC链路的大功率智能家居设备按照预设周期向控制中心上报自身的状态变化信息,控制中心可确定获取到订阅事件,进而后续音频控制设备可根据状态变化信息,确定该智能家居设备的状态变化(如包括属性变更)是否会对PLC链路的数据传输状态产生影响。
S702、控制中心向音频控制设备发送订阅事件。
在一种实施方式中,控制中心在确定接收到订阅事件后,可向音频控制设备转发该订阅事件。相应的,音频控制设备接收该订阅事件。
可选的,在家庭音乐播放场景中,可能存在多个音频控制设备,不同的音频控制设备订阅的事件可能不同。那么,控制中心在确定订阅事件后,可根据不同音频控制设备的订阅需求,将该订阅事件转发至相应的音频控制设备。
S703、音频控制设备确定订阅事件为目标事件。若否,执行步骤S704;若是,执行步骤S705。
在一种实施方式中,音频控制设备的订阅事件可能会发生变化。
因此,音频控制设备在接收到控制中心发送的订阅事件后,可确定该订阅事件是否满足音频控制设备当前的订阅需求。若满足,音频控制设备可确定该订阅事件为目标事件,执行下述步骤S705,以便后续对音频输出进行控制;若不满足,音频控制设备可确定该订阅事件不是目标事件,可确定无需对音频的输出进行控制,即执行步骤S704。
示例性的,音频控制设备向控制中心上报需要订阅的事件,如包括智能家居设备的设备类型和操作类型。后续,如需要订阅的事件发生变化,音频控制设备会向控制设备上报变化后的订阅事件。比如,音频控制设备确定原订阅事件中的部分设备类型不会再对PLC链路上的音频数据传输产生影响,可取消这部分设备类型的智能家居设备的事件订阅。因此,音频控制设备在接收到订阅事件后,可再次确定该订阅事件是否为音频控制设备所需订阅的事件,以避免获取到的订阅事件不再是当前所需的订阅事件。一些场景中,音频控制设备在确定需要订阅的事件发生变更后,还未上报变更后的订阅事件,就接收到控制中心发送的订阅事件。那么,控制中心需要确定当前接收到的订阅事件,是否为所需订阅的事件,如是,可确定接收到目标事件。
可选的,步骤S703为可选步骤,音频控制设备在接收到订阅事件后,可直接执行下述步骤S705,而不必再判断该订阅事件是否为目标事件。即默认订阅事件符合音频控制设备当前的订阅需求。
S704、音频控制设备确定无需调整音频输出控制。
在一种实施方式中,音频控制设备确定获取到的订阅事件不是目标事件,可确定后续该订阅事件对应的智能家居设备执行控制命令或进行属性变更,不会对音频控制设备连接的音频输出设备的音频输出产生影响。因此,音频控制设备确定无需调整音频输出控制。
S705、音频控制设备确定目标事件对应的链路的链路状态。
其中,链路状态例如包括PLC链路的数据传输时延、可用带宽等。如当前PLC链路数据传输时延为50毫秒(ms)。
可选的,不同音频输出设备接入的PLC链路相同或不相同,不同的PLC链路的链路状态相同 或不相同。
在一种实施方式中,订阅事件中包括智能家居设备所接入的PLC链路的链路标识,音频控制设备在确定订阅事件为目标事件后,可获取该链路标识。那么,音频控制设备可根据链路标识确定对应的PLC链路,进而确定该PLC链路对应的链路的链路状态。
可选的,智能家居设备接入PLC链路后,距离该智能家居设备接入的PLC链路越近的PLC链路上的音频输出设备的音频数据传输质量,受到智能家居设备的开机或运行的影响越大。因此,音频控制设备可确定全部音频输出设备接入的PLC链路的链路状态,目标事件对应的链路的链路状态包括全部音频输出设备接入的PLC链路的链路状态。这样后续,在下述步骤S706中,音频控制设备可确定各条链路的链路状态以及根据智能家居设备接入的PLC链路与其余音频输出设备接入的各条PLC链路之间的共回路权重,确定智能家居设备的接入对各条PLC链路的影响。其中,共回路权重用于衡量智能家居设备所在链路与音频输出设备所在链路之间的距离。
在一些情形中,智能家居设备的接入对于与该智能家居设备在同一条PLC链路上的音频输出设备的输出影响较大,而不在同一条PLC链路上的音频输出设备的输出的影响基本可以忽略不计。因此,音频控制设备在确定目标事件对应的PLC链路后,可确定音频输出设备中是否有通过该PLC链路接入到音频控制设备中的音频输出设备。如果有,可再确定该PLC链路的链路状态;如果没有,那么此次目标事件对应的智能家居设备执行控制命令或进行属性变更,也可视为不会对音频控制设备连接的音频输出设备的音频输出产生影响,因此音频控制设备同样不需要调整音频输出控制,也就不再需要确定PLC链路的链路状态。即在步骤S705后,执行步骤S704。
S706、音频控制设备确定目标事件对应的预测链路时延。
在一种实施方式中,音频控制设备在获取到目标事件对应的PLC链路后,根据上述步骤S705所述内容,确定对应的链路状态后,可对PLC链路的未来链路状态进行预测,确定预测链路时延,进而确定是否需要调整音频输出。可选的,如步骤S705所述,待进行未来链路状态预测的链路包括音频输出设备对应的全部PLC链路,或者也可只包括智能家居设备接入的PLC链路。
可选的,不同设备类型的不同操作,会对PLC链路的数据传输时延产生不同的影响。示例性的,如下表1所示,示例几种不同功率的用电设备的操作,对PLC链路传输时延的影响。比如,大功率用电设备开机运行后,会造成该大功率用电设备接入的PLC链路的数据传输时延增加150ms。
表1
需要说明的是,上表1中所示例的数据传输时延影响仅为示例性说明,该数据传输时延可根据实验等多种方式确定,本申请实施例对此不做限制。
可选的,音频控制设备可根据当前PLC链路的链路状态(Statust)、操作类型(Switcht)、设备类型(type)、以及共回路权重(βt),预测链路状态。
其中,目标事件对应的智能家居设备开机或运行,会对音频输出设备的音频播放产生影响。可选的,距离该智能家居设备所在回路越近的回路上的音频输出设备的音频数据传输质量,受到智能家居设备的开机或运行的影响越大,相应的音频输出设备的共回路权重越大;距离该智能家居设备所在回路越远的回路上的音频输出设备的音频数据传输质量,受到智能家居设备的开机或 运行的影响越小,相应的音频输出设备的共回路权重越小。即,通过共回路权重衡量不同回路间数据传输质量的影响大小。可选地,目标事件对应的智能家居设备的个数可以为一个或多个,相应地,受该一个或多个智能家居设备影响的音频输出设备也可以为一个或多个。
需要说明的是,共回路权重可根据实验获得,或者通过机器学习等方法获得,本申请实施例对此不做限制。
可选的,共回路权重还可以用于表示目标事件对应的智能家居设备与音频输出设备是否在同一条PLC链路上。比如,若在同一条PLC链路上,共回路权重为1;若不在同一条PLC链路上,共回路权重为0。
可选的,也可以根据智能家居设备与音频输出设备在同一条PLC链路上,或者二者分别所在的PLC链路之间的距离远近,将共回路权重分别设置为其他需要的值。
示例性的,预测链路时延(Scoret)=Statust+Switcht*type*βt。
比如,音频控制设备确定目标事件对应的智能家居设备为大功率用电设备(如空调),操作类型为开机运行。如上表1所示,大功率用电设备开机运行对PLC链路时延影响为时延增加150ms。并且,音频控制设备可确定目标事件对应的智能家居设备所在的PLC链路当前的时延为50ms。那么,音频控制设备预测链路时延为50ms+150m*1=200ms。
又比如,音频控制设备确定目标事件对应的智能家居设备为低功率用电设备(如台灯),操作类型为开机运行。如上表1所示,低功率用电设备开机运行对PLC链路时延影响为时延增加20ms。并且,音频控制设备可确定目标事件对应的智能家居设备所在的PLC链路当前的时延为50ms。那么,音频控制设备预测链路时延为50ms+20m*1=70ms。
再比如,音频控制设备确定目标事件对应的智能家居设备为低功率用电设备(如台灯),操作类型为开机运行。如上表1所示,低功率用电设备开机运行对PLC链路时延影响为增加20ms。并且,音频控制设备可确定音频输出设备所在的PLC链路当前的时延为50ms,但是音频输出设备与目标事件对应的智能家居设备不共回路(即未接入同一条PLC链路),如共回路权重即为0。那么,音频控制设备预测链路时延为50ms+20m*0=50ms。
S707、音频控制设备确定预测链路时延是否满足链路时延阈值设定条件。若否,执行步骤S708;若是,执行步骤S704。
在一种实施方式中,音频控制设备中预置链路时延阈值。若音频控制设备确定预测链路时延不满足链路时延阈值的设定条件,如,音频控制设备确定预测链路时延大于链路时延阈值,可确定智能家居设备执行控制命令或进行属性变更,会对音频输出产生影响,因此需要调整音频输出控制(即执行步骤S708)。若音频控制设备确定预测链路时延满足链路时延阈值的设定条件,如,音频控制设备确定预测链路时延小于或等于链路时延阈值,可确定智能家居设备执行控制命令或进行属性变更,不会对音频输出产生影响,因此不需要调整音频输出控制(即执行上述步骤S704)。
可选的,不同PLC链路的链路时延阈值相同或不相同。
S708、音频控制设备按照预设方法调整音频输出控制。
在一种实施方式中,音频控制设备确定智能家居设备执行控制命令或进行属性变更,会对部分或全部音频输出设备的音频输出产生影响。因此,音频控制设备可按照预设方法对受到影响的音频输出设备进行音频输出控制。
可选的,音频控制设备通过预测,确定会被智能家居设备执行控制命令或进行属性变更影响音频数据传输的PLC链路后,可对通过该PLC链路接入音频控制设备的音频输出设备进行音频输出控制。
其中,如上述步骤S705和步骤S706所述,距离接入的智能家居设备所在的PLC链路越远的PLC链路上的音频输出设备的音频数据传输质量受到的影响越小。因此,距离智能家居设备所在链路较远的PLC链路上的音频输出设备的预测链路时延可能满足链路时延阈值设定条件,那么,这部分音频输出设备可不必进行音频输出控制,而只需对距离智能家居设备所在链路较近的PLC链路上的音频输出设备进行音频输出控制。可选的,需要进行输出控制的音频输出设备可能只包括与接入的智能家居设备共回路的音频输出设备。
其中,预设方法例如包括:调整播放配置、信道调整等。
可选的,如图8所示,步骤S708包括步骤S7081和步骤S7082。
S7081、音频控制设备调整音频输出设备的播放配置。
其中,播放配置例如包括:数据传输过程中数据的采样率、数据传输过程中数据重传判断间隔等。
比如,音频控制设备确定目标事件为空调(大功率设备)开机运行。在实际场景中,空调开机运行会导致PLC链路传输数据的带宽急剧下降、丢包率急剧上升,若音频控制设备不调整播放配置,继续以原播放配置传输音频数据。那么,音频输出设备接收到相同长度的完整音频数据的耗时会变长。即如上表1所示,大功率设备开机运行会导致数据传输时延增加。而数据传输时延的增加,会导致待播放的音频数据断流,出现卡顿异常。
因此,音频控制设备确定目标事件为空调(大功率设备)开机运行后,可根据预测链路时延,调整播放配置。比如降低待传输音频数据的采样率。这样可使得待传输的音频数据的长度变短,那么传输音频数据的耗时会降低,进而后续空调开机运行增加的数据传输时延不会再对音频数据传输产生影响,可能产生的音频数据断流问题得到改善,保证了音频播放的流畅性。
又比如,音频控制设备确定目标事件为空调(大功率设备)开机运行。音频控制设备和音频输出设备之间预设音频数据重传判断间隔,音频输出设备在预设音频数据重传判断间隔内,未接收到待播放的音频数据,会向音频控制设备请求重传该待播放的音频数据。而如上所述,空调开机运行会导致PLC链路传输数据的带宽急剧下降,音频输出设备接收到完整音频数据的耗时会变长,可能会导致接收到该完整音频数据的时长超过预设音频数据重传判断间隔,造成音频数据重传。然而,音频数据重传同样会占用带宽,进而加剧带宽的下降,进一步增加音频数据传输时延。
因此,音频控制设备确定目标事件为空调(大功率设备)开机运行后,可根据预测链路时延,调整播放配置。比如提高预设音频数据重传判断间隔,以降低音频数据重传,缓解PLC链路音频数据传输的压力,保证音频播放的流畅性。
S7082、音频控制设备触发信道重估计。
在一种实施方式中,音频控制设备确定智能家居设备执行控制命令或进行属性变更,会对音频输出产生影响。因此,音频控制设备可主动触发信道重估计,重新选择受干扰影响更小的信道进行通信。从而保证后续音频播放的流畅性。
示例性的,如图2所示,现有技术通常在出现卡顿异常后,再触发信道重估计,由此造成在信道重估计过程中仍出现卡顿异常。而本申请实施例可以在卡顿异常出现之前(即智能家居设备执行控制命令或进行属性变更之前),通过预测发现可能出现的卡顿问题,主动触发信道重估计,提前重新选择受干扰影响更小的信道进行通信,避免智能家居设备执行控制命令或进行属性变更,对音频播放的影响。
需要说明的是,本申请实施例不限制步骤S7081和步骤S7082的执行顺序。音频控制设备可同时执行步骤S7081和步骤S7082,或先后执行步骤S7081和步骤S7082。可选的,上述步骤S7081和S7082也可以择其一执行。
示例性的,如图9所示,音频控制设备响应于目标事件,预测PLC链路状态,在t1时间点触发信道重估计,在时间点t2完成信道重估计,而智能家居设备在t3时间点才会执行控制命令或进行属性变更。那么,如果通过信道切换提高的带宽能够补偿由于智能家居设备执行控制命令或进行属性变更而损失的带宽,音频控制设备可不必再调整音频输出设备的播放配置。
因此,音频控制设备在触发信道重估计后,确定后续信道切换后补偿的带宽满足音频数据传输需求,且信道切换完成后智能家居设备暂未执行控制命令或进行属性变更(如t3时间点在t2时间点后,或t3时间点和t2时间点重合)。那么,音频控制设备可不必再调整音频输出设备的播放配置(即不执行上述步骤S7081)。
如此,音频控制设备通过提前获知未来会对PLC链路数据传输质量产生影响的事件,在事件发生之前预先调整音频输出控制。从而避免智能家居设备的操作影响音频输出设备的音频输出,造成音频播放卡顿,有效提升用户的使用体验。
在一种实施方式中,在上述步骤S705-步骤S707中,以数据传输时延为例,对本申请实施例提供的链路控制方法进行说明。可选的,音频控制设备还可以通过其他用于衡量链路质量的参数, 进行链路控制。
比如,在上述步骤S705中,音频控制设备确定目标事件对应的链路的链路状态包括可用带宽。之后,基于该链路的可用带宽,音频控制设备可确定目标事件对应的预测可用带宽(即预测目标事件发生后,该链路的可用带宽),进而确定该预测可用带宽是否满足预设的可用带宽设定条件。同样的,若否,音频控制设备可按照上述各个实施例所述的预设方法,调整音频控制。若是,音频控制设备可确定无需调整音频输出控制。
可以理解的,除数据传输时延、可用带宽以外,音频控制设备还可以通过其他用于衡量链路质量的参数进行链路控制,对此本申请实施例不再一一示例说明。
可选的,如上述步骤706和步骤S707所述,音频控制设备对目标事件的PLC链路数据传输状态预测所采用的方法仅为示例性的说明,音频控制设备还可以通过其他预测方法预测目标事件对PLC链路数据传输状态产生的影响。
示例性的,通过机器学习方法,在音频控制设备中预置评估模型。音频控制设备在确定接收到目标事件后,通过评估模型可预测此次目标事件中的智能家居设备执行控制命令或进行属性变更,会对于音频输出设备接入的PLC链路数据传输状态产生的影响。之后,音频控制设备可根据预测结果,确定是否调整音频输出。
以上以家庭音乐播放场景为例对本申请提供的链路控制方法进行了详细介绍。可以理解的是,该链路控制方法也可以应用于其他场景。
示例性的,用户在回家后,会先开门,之后会打开门廊灯。其中,门廊灯在检测到用户的开灯操作后,需要先预热(如耗时1秒-2秒),才能够启动照明。那么,用户在开灯操作后,需要等待门廊灯预热完成后,才能获得照明,影响用户使用体验。
在上述场景中,门廊灯控制设备与一个或多个门廊灯之间通过PLC链路连接,若门廊灯控制设备设置订阅事件包括智能门锁开锁。那么,智能门锁在检测到用户的开锁操作后,向控制中心上报相应的属性变更事件。控制中心根据接收到的属性变更事件,确定获取到目标事件,可向门廊灯控制设备转发该目标事件。门廊灯控制设备接收到目标事件后,可指示门廊灯提前预热,这样后续在检测到用户的开灯操作后,可直接启动照明。从而减少用户等待的时间,提升用户使用体验。
以上以PLC技术为例对本申提供的链路控制方法进行了详细介绍。可以理解的是,该链路控制方法也可以应用于其他通信技术,如Wi-Fi通信技术等。
示例性的,图10为本申请实施例提供的又一种链路控制方法。如图10所示,该方法包括如下步骤。
S1001、第一设备获取第一订阅事件,该第一订阅事件为与第三设备的运行状态关联的事件,其中,第三设备在第一链路上。
在一些实施例中,第一订阅事件包括用于预测第三设备的运行状态发生变化时,对第一链路的链路状态产生影响的与第三设备关联的信息。那么,在一些示例中,第一设备在获取到第一订阅事件后,可根据获取的第一订阅事件中的信息,预测第三设备的运行状态发生变化时,第一链路的第一链路状态。
在一些实施例中,第一订阅事件中的信息用于确定第三设备的设备名称、设备类型、设备功耗,对第三设备进行操作的操作类型,第三设备所接入链路中的至少一项。
在一些实施例中,在第一设备获取第一订阅事件之前,第一设备还会向第二设备发送订阅事件列表,该订阅事件列表用于订阅包括第一订阅事件在内的事件。可选的,第一设备获取第一订阅事件包括第一设备接收第二设备发送的第一订阅事件。
也就是说,第一设备会向自身的订阅需求发送至第二设备。比如,第一设备确定大功率用电设备会对与第一设备相连的第四设备的运行状态产生影响。那么,第一设备可将对于设备类型为大功率用电设备的订阅需求发送至第二设备,以便后续第二设备检测到大功率用电设备(如第三设备)的运行状态发生变化时,可生成相应的订阅事件发送至第一设备。
示例性的,如图3所示,第一设备例如为音频控制设备200,第二设备例如为控制中心100,第三设备例如为智能家居设备400,第四设备例如为音频输出设备201。
S1002、第一设备根据第一订阅事件,预测第一链路的第一链路状态。
在一些实施例中,第一设备获取第一链路的第二链路状态。之后第一设备能够基于第二链路状态,预测第一订阅事件发生后,第一链路的第一链路状态。
比如,第一订阅事件中的信息包括设备类型和对设备进行操作的操作类型。第一设备根据设备类型确定第三设备为大功率用电设备,根据操作类型确定第三设备待执行开机操作。如上表1所示,第一设备根据第一订阅事件,可确定此次第三设备开机运行后,会对第一链路的数据传输产生的影响为数据传输时延增加150ms。那么,第一设备根据第一订阅事件发生前,第一链路的第二链路状态和增加的150ms,可确定第一订阅事件发生后,第一链路的第一链路状态。从而实现预测第三设备的运行状态发生变化时,第一链路的第一链路状态。
S1003、第一设备基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,其中,第四设备与第一链路关联。
其中,第一条件包括链路时延阈值设定条件,链路时延抖动阈值设定条件,链路可用带宽阈值设定条件中的至少一项。
示例性的,第一条件为链路时延阈值设定条件。第一设备预测订阅事件发生后,第一链路的数据传输时延是否会大于链路时延阈值。
比如,第一设备预测第一订阅事件发生后,第一链路的数据传输时延大于链路时延阈值,第一设备可确定第一链路状态符合链路时延阈值设定条件(如符合第一条件)。那么,第一设备需要对会受到第三设备运行状态变化影响的第四设备的运行状态进行调整。
又比如,第一设备获取第二订阅事件,第二订阅事件同样是与第三设备的运行状态关联的事件。第一设备根据第二订阅事件,预测第二订阅事件发生后,第一链路的第三链路状态,如预测第一链路的数据传输时延小于或等于链路时延阈值,那么第一设备可确定第三链路状态不符合链路时延阈值设定条件(如符合第二条件,其中符合第二条件可用于表示不符合第一条件),可不必再调整第四设备的运行状态。
在一些实施例中,第四设备与第一链路关联,包括:第四设备为第一链路上的设备,或者,第四设备为第一订阅事件发生后会受到第一链路上的第三设备运行状态变化影响的设备。
示例性的,第一设备在获取到第一订阅事件后,可根据第一订阅事件中包括的用于确定设备所接入链路的链路信息,确定第三设备接入的第一链路。之后,第一设备可预测在第一订阅事件发生后,第一链路的第一链路状态。在第一链路状态符合第一条件的情况下,第一设备可调整同样接入第一链路的第四设备的运行状态。进一步的,部分第四设备未接入第一链路,但是运行状态同样会受到第三设备运行状态的变化的影响,使得链路状态符合第一条件,那么第一设备同样需要调整这部分第四设备的运行状态。
一些示例中,第一设备在获取到订阅事件后,会对全部通过链路接入第一设备的设备的链路状态进行预测,从而确定其中部分或全部需要进行运行状态调整的设备。
另一些示例中,第一设备在获取到订阅事件后,先确定订阅事件中的设备接入的链路。之后,第一设备再预测该链路的链路状态,进而确定是否需要对通过该链路接入第一设备的设备进行运行状态调整。
在一些实施例中,第一设备基于预测的第一链路状态符合第一条件,调整第五设备的运行状态。其中,第五设备与第一链路关联,第五设备和第四设备是同一链路上的设备或不同链路上的设备。也就是说,第一设备根据预测的第一链路状态,调整一个或多个设备的运行状态。
在一些场景中,第一设备为播放控制设备,第四设备为播放被控设备,第四设备是第一链路上的设备,基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,包括:基于预测的第一链路状态符合第一条件,调整第四设备的播放配置;和/或,触发第一链路的信道重估计。
可选的,调整第四设备的播放配置,包括:调整与第四设备数据传输过程中数据的采样率,调整与所述第四设备数据传输过程中数据的分辨率,以及调整与第四设备数据传输过程中数据重传判断间隔中的至少一项。
比如,在家庭音乐播放场景中,第一设备为音频控制设备,第四设备为音频输出设备。音频控制设备根据预测的第一链路状态,确定第一链路状态符合第一条件。那么,音频控制设备调整 相应的音频输出设备的播放配置,如对音频控制设备和音频输出设备之间数据传输过程中的数据采样率进行调整,或者触发音频输出设备接入的链路的信道重估计。
又比如,在视频播放场景中,第一设备为视频控制设备,第四设备为视频输出设备。视频控制设备根据预测的第一链路状态,确定第一链路状态符合第一条件。那么,视频控制设备调整相应的视频输出设备的播放配置,如对视频控制设备和视频输出设备之间数据传输过程中的数据分辨率进行调整,或者触发视频输出设备接入的链路的信道重估计。
如此,避免第三设备的运行状态的变化,影响音频输出设备的音频播放,或影响视频播放设备的视频播放,造成卡顿异常。
在另一些场景中,第一设备为灯控设备,第四设备为被控灯设备,基于预测的第一链路状态符合第一条件,调整第四设备的运行状态,包括:基于预测的第一链路状态符合第一条件,指示第四设备初始化。
比如,在灯控场景中,第一设备为门廊灯控制设备,第四设备为门廊灯。门廊灯控制设备根据预测的第一链路状态,确定第一链路状态符合第一条件。那么,门廊灯控制设备可指示相应的门廊灯初始化,从而完成设备的预热。那么后续,门廊灯在检测到用户的开灯操作后,可直接启动照明,而不必再执行设备的预热过程,即不必再初始化,从而用户等待的时间。
在一些实施例中,第一订阅事件解除后,第一设备可再次调整第四设备的运行状态,使第四设备的运行状态恢复到第一订阅事件发生前第四设备的运行状态。
比如,第一订阅事件包括第三设备开机运行,第一设备通过上述步骤S1001-步骤S1003,基于第一订阅事件,调整第四设备的运行状态。那么,第一设备在确定第三设备关机后,可再次调整第四设备的运行状态,使得第四设备的运行状态恢复为第三设备开机运行前的运行状态。
可选的,第一设备可向第二设备发送订阅事件列表,在该订阅事件列表中包括第三设备关机的事件。那么,第二设备在检测到指示第三设备关机的控制命令,或接收到第三设备发送的对应于其关机的属性变更事件后,可向第一设备发送相应的订阅事件。之后,第一设备可根据该订阅事件,确定第三设备即将关机。那么,第一设备可调整第四设备的运行状态。
在一些实施例中,第一订阅事件为第一设备订阅的事件,但是第一设备订阅的事件可能会发生变化。因此,第一设备在获取到第一订阅事件后,还可以确定第一订阅事件是否为目标事件,在确定第一订阅事件为目标事件后,再进行链路状态预测。
在另一些实施例中,第一订阅事件由第一设备视为目标事件。也就是说,第一设备在获取到第一订阅事件后,直接进行链路状态预测,而不必再进行事件确认,如确认第一订阅事件是否为目标事件。
如此,第一设备通过提前获知未来会对链路数据传输质量产生影响的事件,在事件发生之前预先调整第四设备的运行状态。从而避免第三设备的运行状态变化影响第四设备的运行质量,有效提升用户的使用体验。
并且,第一设备还可以执行以上实施例中音频控制设备执行的步骤和功能,第二设备还可以执行以上实施例中控制中心执行的步骤和功能,第三设备还可以执行以上实施例中智能家居设备执行的步骤和功能,第四设备还可以执行以上实施例中音频输出设备执行的步骤和功能,从而实现以上实施例提供的链路控制方法。
以上结合图5-图10详细说明了本申请实施例提供的链路控制方法。上述各方法主要以PLC链路上运行的设备作为示例。可以理解地,上述各方法描述的方案也可以应用于其他类型链路连接的设备上,如采用Wi-Fi等无线技术连接方式。此外,随着技术的发展,PLC链路连接方式除有线方式实现外,也可以采用无线方式实现。
以下结合图11详细说明本申请实施例提供的电子设备。
在一种可能的设计中,图11为本申请实施例提供的第一设备的结构示意图。如图11所示,第一设备1100可以包括:收发单元1101和处理单元1102。第一设备1100可用于实现上述方法实施例中涉及的第一设备(如音频控制设备)的功能。
可选地,收发单元1101,用于支持第一设备1100执行图7中的S702;和/或,用于支持第一设备1100执行图8中的S7081;和/或,用于支持第一设备1100执行图10中的S1001。
可选地,处理单元1102,用于支持第一设备1100执行图7中的S702-S708;和/或,用于支持第一设备1100执行图8中的S7082;和/或,用于支持第一设备1100执行图10中的S1002和S1003。
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。第一设备1100中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的链路控制方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。
可选地,图11所示的第一设备1100还可以包括存储单元(图11中未示出),该存储单元中存储有程序或指令。当收发单元1101和处理单元1102执行该程序或指令时,使得图11所示的第一设备1100可以执行上述方法实施例中所述的链路控制方法。
图11所示的第一设备1100的技术效果可以参考上述方法实施例中所述的链路控制方法的技术效果,此处不再赘述。
除了以第一设备1100的形式以外,本申请提供的技术方案也可以为第一设备中的功能单元或者芯片,或者与第一设备匹配使用的装置。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(AP设备plication specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的链路控制方法。
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的链路控制方法。
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的链路控制方法。
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory, ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(AP设备plication specific integrated circuit,ASIC)中。
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (18)

  1. 一种链路控制方法,其特征在于,所述方法由第一设备执行,所述方法包括:
    获取第一订阅事件,所述第一订阅事件为与第三设备的运行状态关联的事件,其中,所述第三设备在第一链路上;
    根据所述第一订阅事件,预测所述第一链路的第一链路状态;
    基于预测的所述第一链路状态符合第一条件,调整第四设备的运行状态,其中,所述第四设备与所述第一链路关联。
  2. 根据权利要求1所述的方法,其特征在于,所述第一订阅事件包括用于预测所述第三设备的运行状态发生变化时,对所述第一链路的链路状态产生影响的与所述第三设备关联的信息,所述根据第一订阅事件,预测所述第一链路的第一链路状态,包括:
    根据获取的所述第一订阅事件中的所述信息,预测所述第三设备的运行状态发生变化时,所述第一链路的第一链路状态。
  3. 根据权利要求2所述的方法,其特征在于,所述信息用于确定第三设备的设备名称、设备类型、设备功耗,对第三设备进行操作的操作类型,第三设备所接入链路中的至少一项。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第四设备与所述第一链路关联,包括:所述第四设备为所述第一链路上的设备,或者,所述第四设备为第一订阅事件发生后会受到所述第一链路上的所述第三设备运行状态变化影响的设备。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:
    基于预测的所述第一链路状态符合所述第一条件,调整第五设备的运行状态,其中,所述第五设备与所述第一链路关联,所述第五设备和所述第四设备是同一链路上的设备或不同链路上的设备。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一条件包括链路时延阈值设定条件,链路时延抖动阈值设定条件,链路可用带宽阈值设定条件中的至少一项。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,
    在所述根据所述第一订阅事件,预测所述第一链路的第一链路状态之前,所述方法包括:获取所述第一链路的第二链路状态;
    所述根据所述第一订阅事件,预测所述第一链路的第一链路状态,包括:
    基于所述第二链路状态,预测所述第一订阅事件发生后,所述第一链路的所述第一链路状态。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一设备为播放控制设备,所述第四设备为播放被控设备,所述第四设备是所述第一链路上的设备,所述基于预测的所述第一链路状态符合第一条件,调整第四设备的运行状态,包括:
    基于预测的所述第一链路状态符合所述第一条件,调整所述第四设备的播放配置;和/或,触发所述第一链路的信道重估计。
  9. 根据权利要求8所述的方法,其特征在于,所述调整所述第四设备的播放配置,包括:
    调整与所述第四设备数据传输过程中数据的采样率,调整与所述第四设备数据传输过程中数据的分辨率,以及调整与所述第四设备数据传输过程中数据重传判断间隔中的至少一项。
  10. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一设备为灯控设备,所述第四设备为被控灯设备,所述基于预测的所述第一链路状态符合第一条件,调整第四设备的运行状态,包括:
    基于预测的所述第一链路状态符合所述第一条件,指示所述第四设备初始化。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述方法还包括:
    获取第二订阅事件,所述第二订阅事件为与所述第三设备的运行状态关联的事件;
    根据所述第二订阅事件,预测所述第一链路的第三链路状态;
    基于预测的所述第三链路状态符合第二条件,不调整所述第四设备的运行状态。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述获取第一订阅事件,包括:
    从第二设备接收所述第一订阅事件。
  13. 根据权利要求12所述的方法,其特征在于,在从所述第二设备接收第一订阅事件之前, 所述方法还包括:
    向所述第二设备发送订阅事件列表,所述订阅事件列表用于订阅包括所述第一订阅事件在内的事件。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一链路为有线链路或无线链路。
  15. 根据权利要求14所述的方法,其特征在于,所述第一链路为电力线载波通信PLC链路,或无线保真Wi-Fi链路。
  16. 一种电子设备,其特征在于,包括:处理器和存储器,所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述电子设备执行如权利要求1-15中任意一项所述的方法。
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-15中任意一项所述的方法。
  18. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-15中任意一项所述的方法。
PCT/CN2023/111470 2022-08-26 2023-08-07 链路控制方法及电子设备 WO2024041359A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211037142.6 2022-08-26
CN202211037142.6A CN117666453A (zh) 2022-08-26 2022-08-26 链路控制方法及电子设备

Publications (1)

Publication Number Publication Date
WO2024041359A1 true WO2024041359A1 (zh) 2024-02-29

Family

ID=90012497

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/111470 WO2024041359A1 (zh) 2022-08-26 2023-08-07 链路控制方法及电子设备

Country Status (2)

Country Link
CN (1) CN117666453A (zh)
WO (1) WO2024041359A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807728A (zh) * 2014-12-29 2016-07-27 联想(北京)有限公司 一种控制方法及电子设备
US20170086094A1 (en) * 2015-09-23 2017-03-23 Qualcomm Incorporated Systems and methods for uplink activity management
CN109240100A (zh) * 2018-09-14 2019-01-18 无锡小天鹅股份有限公司 智能家居控制方法、设备、系统及存储介质
CN111614524A (zh) * 2019-02-26 2020-09-01 华为技术有限公司 一种多智能设备联动控制的方法、设备及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807728A (zh) * 2014-12-29 2016-07-27 联想(北京)有限公司 一种控制方法及电子设备
US20170086094A1 (en) * 2015-09-23 2017-03-23 Qualcomm Incorporated Systems and methods for uplink activity management
CN109240100A (zh) * 2018-09-14 2019-01-18 无锡小天鹅股份有限公司 智能家居控制方法、设备、系统及存储介质
CN111614524A (zh) * 2019-02-26 2020-09-01 华为技术有限公司 一种多智能设备联动控制的方法、设备及系统

Also Published As

Publication number Publication date
CN117666453A (zh) 2024-03-08

Similar Documents

Publication Publication Date Title
CN110505652B (zh) 网络连接的控制方法、终端及存储介质
WO2020253695A1 (zh) 一种智能家居设备的接入方法及一种电子设备
KR102208433B1 (ko) 적어도 하나 이상의 통신 방식을 선택하기 위한 방법 및 장치
WO2018000134A1 (zh) 一种蓝牙连接的方法及终端
US11451946B2 (en) Method for establishing wireless communication connection, and device
WO2021047390A1 (zh) 一种降低功耗的方法及移动终端
WO2021115193A1 (zh) 一种设备组网方法、电子设备及系统
WO2021063189A1 (zh) 一种多设备之间的信息同步方法、系统及电子设备
WO2021104114A1 (zh) 一种提供无线保真WiFi网络接入服务的方法及电子设备
EP4311314A1 (en) Sleep scheduling method and device
WO2022262387A1 (zh) 音量管理的方法及电子设备
CN114258037B (zh) 一种网络控制方法、装置及电子设备
WO2022017359A1 (zh) 直接通信启动控制方法及相关设备
WO2023179731A1 (zh) 休眠唤醒方法及电子设备
WO2024041359A1 (zh) 链路控制方法及电子设备
KR20230128356A (ko) 정보 설정 방법 및 장치, 통신 기기 및 저장 매체
US11482095B2 (en) Wireless control method, system, and apparatus for determining the state of a power switch
CN112469014A (zh) 配置蓝牙连接参数的方法和电子设备
CN114125973B (zh) 条件切换去配置方法及装置
WO2019024173A1 (zh) 一种批量管理物联网终端设备省电的方法、及中继设备
WO2023226923A1 (zh) 一种控制plc设备的方法及电子设备
CN112788713A (zh) 网络连接方法及终端、计算机存储介质
CN116709273B (zh) 无线通信系统、方法及设备
WO2023125077A1 (zh) 设备连接方法、装置、设备、存储介质及程序产品
TW201924303A (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: 23856449

Country of ref document: EP

Kind code of ref document: A1