CN117318761A - Power line communication system, equipment state query method and equipment - Google Patents

Power line communication system, equipment state query method and equipment Download PDF

Info

Publication number
CN117318761A
CN117318761A CN202210703656.4A CN202210703656A CN117318761A CN 117318761 A CN117318761 A CN 117318761A CN 202210703656 A CN202210703656 A CN 202210703656A CN 117318761 A CN117318761 A CN 117318761A
Authority
CN
China
Prior art keywords
central coordinator
station
target
reporting
query message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210703656.4A
Other languages
Chinese (zh)
Inventor
杨超
曹倩
茆意伟
郑博文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210703656.4A priority Critical patent/CN117318761A/en
Priority to PCT/CN2023/100825 priority patent/WO2023246660A1/en
Publication of CN117318761A publication Critical patent/CN117318761A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The application provides a power line communication system, a device state query method and a device. The central coordinator broadcasts and transmits scene control instructions to a plurality of stations. The central coordinator broadcasts and sends a first query message to the plurality of primary sites, wherein the first query message is used for indicating the reporting sequence of the plurality of primary sites reporting the equipment state to the central coordinator. The target station determines a target reporting sequence of the reporting equipment state of the target station according to the first query message, and when the target reporting sequence is determined to be reached, the target station sends the equipment state information of the target station to the central coordinator. Based on the power line communication system, a plurality of stations can report the equipment state information according to the sequence indicated by the central coordinator, channel conflict is not caused, meanwhile, the central coordinator is not required to send query messages to each station in a unicast mode, the number of sending packets is reduced, and communication efficiency is improved.

Description

Power line communication system, equipment state query method and equipment
Technical Field
The present disclosure relates to the field of power line communication technologies, and in particular, to a power line communication system, a device status query method, and a device.
Background
Power line communication (power line communication, PLC) is a communication technology that uses a power line as a communication medium to transmit signals by a carrier system. The roles of the electronic devices in the PLC that communicate may include a central coordinator (central coordinator, CCO), a proxy coordinator (proxy coordinator, PCO), and a Station (STA). The CCO is a PLC gateway, and is responsible for performing network management, for example, sending a control instruction to PCOs and STAs in the PLC, managing network states of the PCOs and STAs in the PLC, and the like.
The scene control is a scene with higher use frequency in the PLC. Scene control refers to presetting one or more scenes in advance, wherein each scene comprises configuration parameters corresponding to electronic equipment in the scene. For example, the preset scene may include a karaoke scene, a sleep scene, and the like. Each electronic device may store configuration parameters of the electronic device in different scenarios. The user can select a scene through a scene panel, and the scene panel transmits indication information for indicating execution target scenes to the gateway. After receiving the indication information, the gateway broadcasts and sends scene control instructions to a plurality of electronic devices included in the scene indicated by the indication information, and each electronic device executes the scene control instructions to carry out parameter adjustment. The gateway sends a query message to each electronic device through unicast, and the electronic device sends device state information to the gateway after receiving the query message. The gateway can update the device state of each electronic device stored in the gateway according to the received device state information.
In the current scene control flow, the number of gateway packet sending is large, and in narrow-band PLC scenes such as intelligent home, a channel access mechanism based on competition easily causes channel conflict when the network load is large, so that frequent packet loss is caused, and the communication efficiency of the PLC is affected; in addition, the gateway needs a long time to send a query message to each target electronic device through unicast and receive the device state information returned by each device, and the gateway may not be able to acquire the actual state of the electronic device for a long time, so that the abnormal device cannot be processed in time.
Disclosure of Invention
The application provides a power line communication system, a device state query method and device, which are used for reducing time delay for querying the device state in PLC communication and improving communication efficiency.
In a first aspect, the present application provides a power line communication system including a central coordinator and a plurality of sites, the targeted site being any one of the plurality of sites.
The central coordinator is used for broadcasting and sending scene control instructions to the stations, and the scene control instructions are used for instructing the stations to execute settings corresponding to a first scene; broadcasting and sending a first query message to a plurality of primary sites in the plurality of sites, wherein the first query message is used for indicating the reporting sequence of the plurality of primary sites to the central coordinator for reporting the equipment state;
The target site is used for receiving a scene control instruction sent by the central coordinator and executing the setting corresponding to the first scene; receiving the first query message sent by the central coordinator; and determining a target reporting sequence of the target site reporting device state according to the first query message, and sending the device state information of the target site to the central coordinator when the target reporting sequence is determined to be reached.
Based on the power line communication system, a plurality of stations can report the equipment state information according to the sequence indicated by the central coordinator, channel conflict is not caused, meanwhile, the central coordinator is not required to send query messages to each station in a unicast mode, the number of sending packets is reduced, and communication efficiency is improved.
In one possible design, the target site is specifically configured to: determining the target reporting sequence as the first bit according to the first query message, and sending the equipment state information of the target site to the central coordinator; or determining that the target reporting sequence is not the first bit according to the first query message, monitoring a confirmation message corresponding to the preamble site sent by the central coordinator, and sending the equipment state information of the target site to the central coordinator; the preamble station is a station with a reporting sequence before the target station, and the confirmation message corresponding to the preamble station is used for indicating the central coordinator to successfully receive the equipment state information sent by the preamble station.
Through the design, when the plurality of first-level stations report the equipment state to the central coordinator, the stations with the first reporting sequence send the equipment state information to the central coordinator after receiving the first query message, and other stations send the equipment state information of the target station to the central coordinator after hearing the confirmation message corresponding to the preceding station sent by the central coordinator, so that the orderly equipment state reporting is realized, and communication conflict is avoided.
In one possible design, the plurality of sites includes proxy sites;
the central coordinator is further configured to: sending a second query message to the proxy site, wherein the second query message is used for indicating the reporting sequence of the device states reported by a plurality of sites hung under the proxy site; receiving equipment state information of a plurality of stations hung under the proxy station, which is sent by the proxy station;
the proxy site is specifically configured to: receiving the second query message sent by the central coordinator; the second query message is sent to a plurality of stations hung under the proxy station, and the equipment state information sent by the plurality of stations hung under the proxy station according to the reporting sequence indicated by the second query message is received; and sending the equipment state information of a plurality of stations hung under the proxy station to the central coordinator.
By the design, when the power line communication system comprises the proxy station, the station hung under the proxy station can also send the equipment state information to the proxy station according to the reporting sequence, and the central coordinator does not need to independently send a query instruction to instruct the station to report the equipment state. Multiple stations hung under one proxy station can report the equipment states to the proxy station in order, and the proxy station sends the equipment state information of the multiple stations to the central coordinator, so that the number of messages is further reduced, and the communication efficiency is improved.
In one possible design, the target site is further configured to: after the device state information of the target station is sent to the central coordinator, it is determined that a confirmation message corresponding to the target station is not received within a first preset duration, and the device state information of the target station is resent to the central coordinator.
Through the design, the invention can set a retransmission mechanism for the target site, prevent the communication interruption caused by the loss of the equipment state information sent by the target site, and ensure the communication reliability.
In one possible design, the central coordinator is further configured to: when the target reporting sequence is reached, determining that the equipment state information sent by the target site is not received within a second preset time length, and broadcasting and sending a third query message to the plurality of primary sites, wherein the third query message is used for indicating the reporting sequence of the target site and the primary site reporting equipment state of which the reporting sequence is positioned behind the target site;
The target site is also for: and receiving the third query message sent by the central coordinator and sending the equipment state information of the target site to the central coordinator.
Through the design, when the target report sequence is reached but the central coordinator does not receive the equipment state information sent by the target site, the central coordinator can trigger the target site to send the equipment state information by broadcasting the third query message, so that the equipment state query process is ensured to be carried out sequentially.
In one possible design, the central coordinator is further configured to: receiving indication information sent by a scene panel, wherein the indication information is used for indicating the central coordinator to execute setting corresponding to a second scene; determining that the second scene has a higher priority than the first scene; broadcasting and sending a suspension inquiry command to the plurality of stations, wherein the suspension inquiry command is used for indicating the plurality of stations to stop reporting the equipment state; and determining the setting corresponding to the second scene after the execution is finished, broadcasting and sending a recovery query instruction to the plurality of stations, wherein the recovery query instruction is used for indicating the plurality of stations to report the equipment state again.
Through the design, when the central coordinator receives the indication information with higher priority than the state of the query equipment, the central coordinator can timely respond to the indication information with higher priority, so that the overlong waiting time of a user is prevented, and the user experience is improved.
In a second aspect, the present application provides a device status query method, applied to a central coordinator in a power line communication system, the method including: broadcasting and sending scene control instructions to a plurality of stations in the power line communication system, wherein the scene control instructions are used for instructing the stations to execute settings corresponding to a first scene; broadcasting and sending a first query message to a plurality of primary sites in the plurality of sites, wherein the first query message is used for indicating the reporting sequence of the plurality of primary sites to the central coordinator for reporting the equipment state; and receiving the equipment state information sent by the plurality of primary stations according to the reporting sequence indicated by the first query message.
In one possible design, the plurality of sites includes proxy sites, the method further comprising: sending a second query message to the proxy site, wherein the second query message is used for indicating the reporting sequence of the device states reported by a plurality of sites hung under the proxy site; and receiving the equipment state information of a plurality of stations hung under the proxy station, which is sent by the proxy station.
In one possible design, the method further comprises: when a target report sequence of reporting equipment states of a target site is reached, determining that equipment state information sent by the target site is not received within a second preset time period, and broadcasting and sending third query messages to the plurality of primary sites; the third query message is used for indicating the target site and a reporting sequence of the first-level site reporting equipment state, wherein the reporting sequence is positioned behind the target site; wherein the target site is any one of the plurality of sites.
In one possible design, the method further comprises: receiving indication information sent by a scene panel, wherein the indication information is used for indicating the central coordinator to execute setting corresponding to a second scene; determining that the priority of the second scene is higher than that of the first scene, and broadcasting and sending a suspension inquiry command to the stations, wherein the suspension inquiry command is used for indicating the stations to stop reporting the equipment state; and determining the setting corresponding to the second scene after the execution is finished, broadcasting and sending a recovery query instruction to the plurality of stations, wherein the recovery query instruction is used for indicating the plurality of stations to report the equipment state again.
In a third aspect, the present application provides a device status query method, applied to a target station in a power line communication system, where the target station is any one level station in the power line communication system, the method includes: receiving a scene control instruction sent by a central coordinator, wherein the scene control instruction is used for indicating a plurality of stations in the power line communication system to execute setting corresponding to a first scene; executing the setting corresponding to the first scene; receiving the first query message sent by the central coordinator, wherein the first query message is used for indicating a reporting sequence of reporting equipment states to the central coordinator by a plurality of primary stations in the power line communication system; and determining a target reporting sequence of the target site reporting device state according to the first query message, and sending the device state information of the target site to the central coordinator when the target reporting sequence is determined to be reached.
In one possible design, the determining, according to the first query message, a target reporting order of the device status reported by the target site, and when determining that the target reporting order is reached, sending, to the central coordinator, device status information of the target site, includes: determining the target reporting sequence as the first bit according to the first query message, and sending the equipment state information of the target site to the central coordinator; or determining that the target reporting sequence is not the first bit according to the first query message, monitoring a confirmation message corresponding to the preamble site sent by the central coordinator, and sending the equipment state information of the target site to the central coordinator; the preamble station is a station with a reporting sequence before the target station, and the confirmation message corresponding to the preamble station is used for indicating the central coordinator to successfully receive the equipment state information sent by the preamble station.
In one possible design, after the sending the device status information of the target site to the central coordinator, the method further includes: and determining that the confirmation message corresponding to the target site is not received within a first preset time period, and retransmitting the equipment state information of the target site to the central coordinator.
In one possible design, the method further comprises: receiving the third query message sent by the central coordinator, wherein the third query message is used for indicating a target site and a reporting sequence of reporting equipment states of a first-level site, the reporting sequence of which is positioned behind the target site; the third query message is sent after the central coordinator determines that the equipment state information sent by the target site is not received within a second preset duration when the target reporting sequence is reached; and sending the equipment state information of the target site to the central coordinator.
In a fourth aspect, the present application provides a central coordinator comprising a plurality of functional modules; the plurality of functional modules interact to implement the method performed by the central coordinator in any of the aspects and embodiments thereof described above. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on the specific implementation.
In a fifth aspect, the present application provides a central coordinator comprising at least one processor and at least one memory, the at least one memory storing computer program instructions, the at least one processor executing the method performed by the central coordinator in any one of the aspects and embodiments thereof, when the central coordinator is running.
In a sixth aspect, the present application provides an electronic device, the electronic device including a plurality of functional modules; the plurality of functional modules interact to implement the method performed by the targeted site or sites in any of the aspects and embodiments thereof. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on the specific implementation.
In a seventh aspect, the present application provides an electronic device comprising at least one processor and at least one memory, the at least one memory storing computer program instructions that, when executed by the electronic device, perform the method performed by the targeted site or sites in any one of the aspects and embodiments thereof.
In an eighth aspect, the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method performed by the central coordinator or station (target station) in any of the above aspects and embodiments thereof.
In a ninth aspect, the present application also provides a computer readable storage medium having instructions stored therein, which when run on the computer, cause the computer to perform the method performed by the central coordinator or station (target station) in any of the above aspects and embodiments thereof.
In a tenth aspect, the present application further provides a chip for reading a computer program stored in a memory, and performing the method performed by the central coordinator or station (target station) in any of the above aspects and embodiments thereof.
In an eleventh aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method performed by the central coordinator or the site (target site) in any of the above aspects and embodiments thereof. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be formed of a chip or may include a chip and other discrete devices.
Drawings
Fig. 1 is a schematic diagram of a PLC network according to an embodiment of the present application;
fig. 2 is a schematic diagram of a PLC circuit in an intelligent home scene provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of scene control in a PLC;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a software structural block diagram of an electronic device according to an embodiment of the present application;
Fig. 6 is a schematic flow chart of a PLC communication method according to an embodiment of the present application;
fig. 7 is a schematic architecture diagram of a PLC network according to an embodiment of the present application;
fig. 8 is a schematic architecture diagram of yet another PLC network according to an embodiment of the present application;
fig. 9 is a flowchart of a method for handling special cases in power line communication according to an embodiment of the present application;
fig. 10 is a flowchart of a device status query method provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings. Wherein in the description of embodiments of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
It should be understood that in embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one (item) below" or the like, refers to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b and c can be single or multiple.
Power line communication (power line communication, PLC) is a communication technology that uses a power line as a communication medium to transmit signals by a carrier system. One major advantage of the PLC over other communication technologies is that the PLC can utilize existing power lines as a transmission medium, without having to erect new lines, thereby greatly reducing the early deployment costs, and without having to separately maintain the lines, further reducing the later maintenance costs. Because the popularity of power line deployment is very high, the application of power line communication is also very wide, for example, the PLC can be applied to scenes such as intelligent home, remote meter reading, urban illumination, intelligent communities, parking lot management systems, safety anti-theft and fire alarm systems and the like.
The institute of electrical and electronics engineers (institute of electrical and electronics engineers, IEEE) 1901.1 standard is formally released and implemented on the basis of the specifications for interconnection and interworking of broadband carrier communication of the national network voltage power line. The standard divides the PLC protocol stack into several layers: an application layer, a transport layer, a network layer, a data link layer, and a physical layer. The data link layer includes a network management sublayer and a medium access control (medium access control, MAC) sublayer. The network management sub-layer is responsible for the aggregation and fragmentation of the application layer messages, the network management and the update maintenance of the routes, and the MAC sub-layer is responsible for preempting the physical channels to provide reliable communication. The physical layer is responsible for carrying out coded modulation on the data from the MAC sub-layer and then sending the data to the power line, and carrying out demodulation and decoding on the signal received from the power line and then returning the signal to the MAC sub-layer.
Further description of the PLC network is provided below, and fig. 1 is a schematic diagram of a PLC network according to an embodiment of the present application. Referring to fig. 1, the roles of the electronic devices communicating in the plc network include a central coordinator (central coordinator, CCO), a proxy coordinator (proxy coordinator, PCO), and a Station (STA). The CCO is a PLC gateway responsible for network management, such as managing the in-mesh state of PCOs and STAs in the PLC network. The PCO may assist the STA having a long communication distance from the CCO to access the PLC network, and may also manage the device status of the STA hanging down from the PCO, and report the device status of the STA hanging down from the PCO to the CCO.
It should be noted that, in the embodiment of the present application, PCO may also be referred to as a proxy station, and STA may also be referred to as a discovery station. Unless otherwise specified, in the embodiments of the present application, a station refers to a discovery Station (STA). For example, referring to fig. 1, PCO1-PCO3 are proxy sites and STA1-STA9 are discovery sites. In the PLC network shown in fig. 1, stations that are one-hop communication distance from CCO are referred to as primary stations, for example, STA1, STA2, and STA3 are primary stations; stations that are two hops away from CCO are referred to as secondary stations, e.g., STA4, STA5 are secondary stations; similarly, STA6, STA7, STA8, and STA9 are tertiary stations. Wherein the electronic device is a number of levels of sites (e.g., primary or secondary sites) may be related to physical distance in the line.
Fig. 2 is a schematic diagram of a PLC circuit in an intelligent home scene according to an embodiment of the present application. Referring to fig. 2, in a smart home scenario, a gateway, a distribution box, a light-emitting diode (LED) drive, a curtain motor, a temperature control, and a switch/socket may communicate through a power line. The gateway in the smart home scenario shown in fig. 2 may be used as a CCO in the PLC, where the gateway may perform network management on the whole PLC network through a power line, for example, send a control packet to an electronic device connected to the PLC network through the power line, receive a heartbeat packet sent by the electronic device, and so on. The gateway can be a wireless wired hybrid gateway, and the hybrid gateway can interact information with a cloud server through wireless communication, and the cloud server can be a server provided by a terminal device or an intelligent home device manufacturer or a server provided by a third party application platform.
Referring to fig. 2, an electronic device used by a user may also communicate with a cloud server, the user may trigger a control instruction through the electronic device, the electronic device sends the control instruction to the cloud server, the cloud server sends the control instruction to a hybrid gateway, and the hybrid gateway controls each intelligent home device through a PLC network according to the control instruction. For example, a user may control the smart home device through an application installed on the smart phone, or the user may perform voice control on the smart home device through a speaker.
Scene control (field control) is a scene with higher use frequency in the PLC. Scene control refers to presetting one or more scenes in advance, wherein each scene comprises configuration parameters corresponding to electronic equipment in the scene. For example, the preset scene may include a karaoke scene, a sleep scene, and the like. For example, configuration parameters of a display, a sound box, illumination and other devices can be preset in a karaoke scene, such as preset brightness of the display, sound effect of the sound box, brightness and color temperature of the illumination device and the like; the sleeping scene can preset configuration parameters of the air conditioner, the humidifier, the lighting and other equipment, such as preset temperature of the air conditioner, humidity of the humidifier, color temperature of the lighting equipment and the like. Each electronic device may store configuration parameters of the electronic device in different scenarios. The scene panel may display a preset scene and a device status of each electronic device, and the user may select a scene on the scene panel to trigger the scene panel to send indication information for indicating execution of the scene to the gateway, or the user may add a new scene on the scene panel and set the new scene, or the user may also adjust configuration parameters of each electronic device in the existing scene on the scene panel. The scene control flow in the PLC is further described below:
Fig. 3 is a schematic flow chart of scene control in a PLC. Taking 2 electronic devices (electronic device 1 and electronic device 2) as an example of sites in fig. 3, referring to fig. 3, the scene control in the plc includes the following steps:
s301: the scene panel detects the operation of selecting the target scene triggered by the user and sends indication information for indicating the execution target scene to the gateway.
S302: and the gateway broadcasts and sends scene control instructions to a plurality of electronic devices corresponding to the target scene.
S303: the gateway unicast-transmits the query message to the electronic device 1.
S304: the electronic device 1 sends device status information of the electronic device 1 to the gateway.
S305: the gateway unicast-transmits the query message to the electronic device 2.
S306: the electronic device 2 sends device status information of the electronic device 2 to the gateway.
S307: the gateway sends the device status of each electronic device to the scene panel.
As can be seen from the scene control flow shown in fig. 3, the gateway needs to send more data packets, for example, in S302, a scene control instruction is broadcasted and sent, in S303 and S305, a query message is unicast sent to each electronic device, and in a narrow-band PLC scene such as an intelligent home, a channel access mechanism based on contention easily causes channel collision when the network load is large, so that frequent packet loss is caused, and the communication efficiency of the PLC is affected. In addition, in S303-S306, the time required for the gateway to send the query message to each target electronic device and receive the device status information returned by each device through unicast is long, and the gateway cannot acquire the actual status of the electronic device for a long time, so that the abnormal device cannot be processed in time.
In one embodiment, the CCO may broadcast a scene control instruction and a query message to a plurality of STAs corresponding to a target scene, where the plurality of STAs send device status information using a carrier sense multiple access (Carrier Sense Multiple Access with Collision Avoid, CSMA/CA) manner of collision avoidance and a random access channel, but in the narrowband PLC, a large number of STAs send a message in a short time, which may generate channel collision to cause packet loss, so as to affect communication efficiency.
In another embodiment, the CCO may assign a report channel and a report time slot to each STA, and after the CCO broadcasts a scene control command and a query message to a plurality of STAs corresponding to the target scene, each STA sends device status information to the CCO according to the report channel and the report time slot corresponding to the STA of the CCO command. But this scheme requires CCO, time synchronization between multiple STAs, and communication is inefficient. In addition, in the conventional narrow-band PLC, the communication bandwidth is only 500k, so that the bandwidth appointed by the CCO for each STA is smaller, the noise of the PLC is larger, packet loss is easy to cause in multi-channel communication, and the communication efficiency is further reduced.
In summary, the current PLC scene control has the problems of low communication efficiency and larger time delay.
Based on the above problems, the embodiment of the application provides a device state query method, which is used for reducing the time delay of PLC communication and improving the PLC communication efficiency. In the device state query method provided by the embodiment of the application, the central coordinator broadcasts and sends scene control instructions to a plurality of stations, and broadcasts and sends first query messages to a plurality of primary stations, wherein the first query messages are used for indicating the reporting sequence of the device states reported by the plurality of primary stations. The plurality of primary sites can send the equipment state information to the central coordinator according to the reporting sequence indicated by the first query message. Taking the target site as an example, the target site is any one-level site. The target station determines a target reporting sequence of the reporting equipment state of the target station according to the first query message, and when the target reporting sequence is determined to be reached, the target station sends the equipment state information of the target station to the central coordinator. Through the scheme, the multiple stations can report the equipment state information according to the sequence indicated by the central coordinator, channel conflict is not caused, meanwhile, the central coordinator is not required to send query messages to each station in a unicast mode, the number of sending packets is reduced, and the communication efficiency is improved.
The device state query method provided by the embodiment of the application can be applied to the PLC network shown in fig. 2, and further, the device state query method provided by the embodiment of the application is suitable for the scenes such as intelligent home, remote meter reading, urban illumination, intelligent communities, parking lot management systems, safety anti-theft and fire alarm systems and the like, and the method can be suitable for the intelligent home scene shown in fig. 2.
In this embodiment, the site may be an electronic device with a PLC module, for example, an electric lamp, a curtain motor, an air conditioner, a home sensor, a garage sensor, etc., and the specific type of the electronic device is not limited in this embodiment.
Fig. 4 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. As shown in fig. 4, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a power line communication module 161, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identity module (subscriber identification module, SIM) card interface 195, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. The charge management module 140 is configured to receive a charge input from a charger. The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband 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 techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The power line communication module 161 may provide a solution for power line communication applied on the electronic device 100. The power line communication module 161 may receive a message sent by other devices through a power line, process the received message, and perform an operation corresponding to the message through the processor 110. The power line communication module 161 may also send messages to other devices through the power line to enable power line communication between the devices. In some embodiments, at least some of the functional modules of the power line communication module 161 may be provided in the same device as at least some of the modules of the processor 110.
The display 194 is used to display a display interface of an application, such as a display page of an application installed on the electronic device 100. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an operating system, software code of at least one application program, and the like. The storage data area may store data (e.g., captured images, recorded video, etc.) generated during use of the electronic device 100, and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as pictures and videos are stored in an external memory card.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, and the like, among others.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The touch sensor 180C, also referred to as a "touch panel". The touch sensor 180C may be disposed on the display 194, and the touch sensor 180C and the display 194 form a touch screen, which is also referred to as a "touch screen". The touch sensor 180C is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180C may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card may be contacted and separated from the electronic device 100 by inserting the SIM card interface 195 or extracting it from the SIM card interface 195.
It is to be understood that the components shown in fig. 4 are not to be construed as a particular limitation of the electronic device 100, and the electronic device may include more or less components than illustrated, or may combine certain components, or may split certain components, or may have a different arrangement of components. In addition, the combination/connection relationship between the components in fig. 4 is also adjustable and modifiable.
Fig. 5 is a software structural block diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the software structure of the electronic device may be a hierarchical architecture, for example, the software may be divided into several layers, each layer having a distinct role and division of work. The layers communicate with each other through a software interface. In some embodiments, the operating system is divided into four layers, from top to bottom, an application layer, an application framework layer (FWK), a runtime (run time) and a system library, and a kernel layer, respectively.
The application layer may include a series of application packages (application package). As shown in fig. 5, the application layer may include a camera, settings, skin modules, user Interfaces (UIs), three-way applications, and the like. The three-party application program can comprise a gallery, calendar, conversation, map, navigation, WLAN, bluetooth, music, video, short message, and the like. In an embodiment of the present application, the application layer may include a target installation package of a target application that the electronic device requests to download from the server, where the function files and the layout files in the target installation package are adapted to the electronic device.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer may include some predefined functions. As shown in FIG. 5, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, and a notification manager.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The runtime includes a core library and a virtual machine. The runtime is responsible for the scheduling and management of the operating system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of an operating system. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), two-dimensional graphics engine (e.g., SGL), image processing library, etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The hardware layer may include various sensors such as acceleration sensors, gyroscopic sensors, touch sensors, and the like.
It should be noted that the structures shown in fig. 4 and fig. 5 are only an example of the electronic device provided in the embodiments of the present application, and the electronic device provided in the embodiments of the present application is not limited in any way, and in a specific implementation, the electronic device may have more or fewer devices or modules than those shown in the structures shown in fig. 4 or fig. 5.
The following describes a device state query method provided in the embodiment of the present application.
Fig. 6 is a schematic flow chart of a PLC communication method according to an embodiment of the present application. The PLC communication method shown in fig. 6 may be performed by CCO, PCO, and STA in the PLC network shown in fig. 1, and the method may be applied to PLC scenarios such as smart home, remote meter reading, urban lighting, etc. Referring to fig. 6, the method includes the steps of:
S601: the CCO broadcasts a transmit scene control instruction to a plurality of stations in the PLC network.
In an alternative embodiment, the scenario control instruction sent by the CCO includes addresses of a plurality of stations, such as MAC addresses of a plurality of stations, included in the scenario indicated by the scenario control instruction. After any station receives the scene control instruction, when determining that the scene control instruction comprises the address of the station, analyzing the scene control instruction, and executing the setting corresponding to the scene indicated by the scene control instruction. For example, when the scene indicated by the scene control instruction is a sleep scene and the station is a lighting device, the station turns off the lighting after receiving the scene control instruction.
S602: the CCO broadcasts and transmits a first query message to a plurality of primary sites in the PLC network.
The first query message may be used to indicate a reporting sequence of reporting device states of the plurality of primary sites. For example, the first query message may include a device identifier of each primary site and a sequence number corresponding to each primary site, where the multiple primary sites may report the device status to the CCO in a sequence from small to large sequence of the sequence numbers.
It should be noted that, the reporting of the device status to the CCO by the plurality of primary sites according to the sequence from the smaller sequence number to the larger sequence number is only an example and not limited, and in a specific implementation, the CCO may also indicate other reporting sequences to the plurality of primary sites.
S603: the first station determines that the reporting sequence of the first station is the first bit according to the first query message, and the first station sends the equipment state information of the first station to the CCO.
In an optional implementation manner, after receiving a first query message sent by a CCO, the first station determines that the first station is a station that reports a device state according to a reporting sequence indicated by the first query message, where the first station sends device state information of the first station to the CCO, and the device state information of the first station may include information such as a device running state and a configuration parameter of the first station.
For example, fig. 7 is a schematic architecture diagram of a PLC network according to an embodiment of the present application. Referring to fig. 7, STA1 to STA20 are 20 discovery sites in the PLC network, and PCO is a proxy site in the PLC network. STA1 to STA10 hang down under CCO, STA11 to STA20 hang down under PCO, and PCO hang down under CCO. The reporting sequence indicated by the CCO in the query message may be the sequence from small to large of the sequence number of the STA, and the first station is STA1, where STA1 sends the device status information of STA1 to the CCO after receiving the query message sent by the CCO.
S604: and the CCO confirms that the equipment state information of the first station is received, and sends a confirmation message corresponding to the first station.
In this embodiment of the present application, after receiving a query packet sent by a CCO, a plurality of primary sites directly suspended by the CCO need to report a device state to the CCO according to a reporting sequence indicated by the query packet. After receiving the device status information of the first station, the CCO sends an acknowledgement message corresponding to the first station, for example, the acknowledgement message may be an Acknowledgement Character (ACK). The confirmation message corresponding to the first station is used for indicating that the CCO has successfully received the device status information sent by the first station. The acknowledgement message sent by the CCO to the first station may include the MAC address of the first station. It should be noted that, the CCO sends the acknowledgement message to the first station, which belongs to MAC layer interaction, and does not occupy additional time domain resources.
S605: and after the second station monitors the confirmation message corresponding to the first station, the second station sends the equipment state information of the second station to the CCO.
The first station is a preamble station of the second station, that is, the first station is a station where the reporting order is located before the second station.
In an optional implementation manner, the CCO sends a confirmation message corresponding to the first station, other stations may also monitor the confirmation message corresponding to the first station, and other stations may determine that the confirmation message is a confirmation message corresponding to the first station according to an address in the confirmation message. The second station is a station with a reporting sequence located at the back of the first station, and after the second station monitors the confirmation message corresponding to the first station, the second station can determine that the CCO has successfully received the device state information of the first station, and at this time, the second station can send the device state information of the second station to the CCO. Similarly, after the station in the next position behind the second station monitors the confirmation message corresponding to the second station sent by the CCO, the station can send the device state information of the station to the CCO, so as to realize that a plurality of stations report the device states in sequence, and prevent channel conflict.
For example, in the PLC network shown in fig. 7, after STA2 monitors the ACK corresponding to STA1 transmitted by the CCO, STA2 transmits the device status information of STA2 to the CCO, and after receiving the device status information of STA2, the CCO transmits the ACK corresponding to STA 2. After STA3 monitors the ACK corresponding to STA2, STA3 transmits the device status information of STA3 to the CCO. And so on, 10 STAs can finish status reporting in turn according to the reporting sequence indicated by the first query message.
It should be noted that, in the embodiment of the present application, the first station and the second station are only used as examples, and are not used as limitations on the number of stations in the power line communication system.
S606: the CCO sends a second query message to the proxy site.
The second query message is used for indicating a reporting sequence of reporting device states of a plurality of stations hung under the proxy station. For example, the second query message may include device identifiers of a plurality of stations suspended under the proxy station and a serial number corresponding to each station.
S607: the proxy site sends a second query message to a plurality of sites suspended under the proxy site.
The proxy site can send the received second query message to a plurality of sites hung under the proxy site, and the plurality of sites can send the equipment state information to the proxy site according to the report sequence indicated by the second query message.
For example, in the PLC network shown in fig. 7, the second query packet sent by the CCO to the PCO is used to indicate the reporting sequence of the STA11 to the STA20, and after the PCO broadcasts and sends the second query packet to the STA11 to the STA20, the STA11 to the STA20 can report the device status to the PCO in the sequence from the smaller sequence number to the larger sequence number.
S608: and the stations hung under the proxy station send the equipment state information to the proxy station according to the report sequence indicated by the second query message.
In specific implementation, the manner in which the multiple stations suspended under the proxy station send the device status information to the proxy station may refer to S603 to S605, and the repetition is omitted.
S609: the proxy site transmits device state information of a plurality of sites suspended by the proxy site to the CCO.
In this embodiment of the present application, the proxy site may aggregate the received device state information of multiple sites suspended by the proxy site into a message, and send the message to the CCO, so as to assist the multiple sites suspended by the proxy site to report the device state to the CCO.
By the device state query method, the station can report the device state to the gateway according to the sequence indicated by the CCO, so that the number of packets sent by the CCO is reduced, the communication efficiency is improved, channel conflict can be avoided, and the communication success rate is improved.
The following further describes the device status query method provided in the embodiment of the present application, taking a PLC network with a multi-layer architecture as an example. Fig. 8 is a schematic architecture diagram of yet another PLC network according to an embodiment of the present application. Referring to fig. 8, sta1 to SAT30 are 30 discovery sites in the PLC network, and PCO1 to PCO3 are 3 proxy sites in the PLC network. STA1 to STA10 hang down under PCO2, STA11 to STA20 hang down under PCO3, PCO2 and PCO3 hang down under PCO1, STA21 to STA30 and PCO1 hang down under CCO.
In the PLC network shown in fig. 8, the CCO may broadcast and transmit a scene control instruction, and the STA and the PCO in the PLC network may execute, according to the received scene control instruction, a setting corresponding to a scene indicated by the scene control instruction.
Firstly, it should be noted that in the device status query method provided in the embodiment of the present application, CCO or PCO may decide the reporting order of the next hop station or proxy station. That is, referring to fig. 8, if the CCO determines that the STAs 21 to 30 are primary stations according to the routing table, and a proxy station PCO1 is hung under the CCO, the CCO may instruct the STAs 21 to 30 to report the device status information first, and instruct the PCO1 to report the device status; or the CCO may instruct PCO1 to report the device status first, and instruct STA21 to STA30 to report the device status information.
In an alternative embodiment, the CCO may determine, according to the number of stations hung under the PCO1 and the number of primary stations, whether the primary stations report the device state first or the proxy station reports the device state first, for example, in fig. 8, the number of primary stations is 10, and the number of stations hung under the PCO2 and the PCO3 is 20, where the CCO may instruct the STAs 21 to 30 to report the device state information first, and instruct the PCO1 to report the device state after the STA21 to STA30 report the device state information is finished.
In another alternative embodiment, the CCO may further determine, according to the service priority of the primary site and the service priority of the proxy site, whether the primary site reports the device state first or the proxy site reports the device state first, and the CCO may indicate the site with the higher service priority or the proxy site reports the device state first.
It should be noted that, the above manner of determining the reporting order of the primary site and the proxy site by the CCO is merely exemplary and not limiting, and the specific implementation may adjust the decision making manner according to the application scenario, which is not limited in this embodiment of the present application. In addition, the above method is also suitable for solving the problem of how the PCO determines the reporting sequence of the STA and other PCOs when the PCO hangs down the STA and other PCOs, and the problem of how the PCO determines the reporting sequence of a plurality of other PCOs when the PCO hangs down a plurality of other PCOs, and the repetition is not repeated.
Taking the example that the CCO indicates the STA21 to STA30 to report the device status first, the CCO broadcasts and sends the first query message to the STA21 to STA 30. The first query message is used for indicating the reporting sequence of the STAs 21 to 30. After receiving the first query message, the STA21 determines that the reporting order of the STA21 is the first bit, and the STA21 sends the device status information of the STA21 to the CCO. After receiving the device status information sent by the STA21, the CCO sends a confirmation message corresponding to the STA 21. After the STA22 monitors the acknowledgement message corresponding to the STA21, the STA22 transmits the device status information of the STA22 to the CCO. And similarly, the device status reporting of the STA21 to the STA30 is completed.
After receiving the device status information sent by the STA30, the CCO unicast sends a second query message to the PCO1, where the second query message includes the identifiers of the STAs to be queried, that is, the second query message includes the identifiers of the STAs 1 to 20. After the PCO1 receives the second query packet, it determines that STA1 to STA10 hang down under PCO2 according to the routing table, and STA11 to STA20 hang down under PCO3, where PCO1 may determine the reporting order of PCO2 and PCO3, for example, determine the reporting order of PCO2 and PCO3 according to the number of stations hanging down by PCO2 and PC03, the service priorities of stations hanging down by PCO2 and PCO3, etc., and the specific manner may refer to the manner of determining the reporting order of primary station and PCO1 by the above-mentioned CCO, which will not be repeated herein.
Taking PCO1 determining to indicate the status of the PCO2 reporting device first and then indicate the status of the PCO3 reporting device as an example, the PCO1 sends a third query message to the PCO2, where the third query message is used to indicate the reporting sequence of STA1 to STA 10. After receiving the third query message sent by the PCO1, the PCO2 broadcasts and sends the third query message to the STAs 1 to 10. The STA1 to STA10 report the device status to the PCO2 in order. In specific implementation, the method of reporting the device status to PCO2 by STA1 to STA10 may refer to the method of reporting the device status to CCO by STA21 to STA30, and the repetition is not repeated.
After receiving the device state information of the STA1 to the STA10, the PCO2 aggregates the device state information of the STA1 to the STA10 into one message, and sends the message to the PCO1.
After receiving the message including the device states of STA1 to STA10 sent by PCO2, PCO1 sends a fourth query message to PCO3, where the fourth query message is used to indicate the reporting order of STA11 to STA 20.
After receiving the fourth query message sent by PCO1, PCO3 broadcasts and sends the fourth query message to STA11 to STA 20. The STAs 11 to 20 report the device status to the PCO3 sequentially. In specific implementation, the method for reporting the device status to PCO3 by STA11 to STA20 may refer to the method for reporting the device status to CCO by STA21 to STA30, and the repetition is not repeated.
After receiving the device state information of the STA11 to the STA20, the PCO3 aggregates the device state information of the STA11 to the STA20 into one message, and sends the message to the PCO1.
After receiving the message including the device states of the STAs 11 to 20 sent by the PCO3, the PCO1 aggregates the device states of the STAs 1 to 20 into one message, and sends the message to the CCO, thereby completing the reporting of the device states of the STAs 1 to 20.
Based on the PLC network shown in fig. 8, by the device status query method provided in the embodiment of the present application, when the CCO queries the device statuses of a plurality of STAs, the CCO instructs the STAs 21 to 30 to report the device status, the number of messages to be transmitted is 1+10=11, and similarly, the PCO2 instructs the STA1 to STA10 to report the device status, and the PCO3 instructs the STA11 to STA20 to report the device status, the number of messages to be transmitted is 11, respectively; CCO sends query message to PCO1, PCO1 sends query message to PCO2, PCO1 sends query message to PCO3 total 3 messages; the PCO2 reports the device state to the PCO1, the PCO3 reports the device state to the PCO1, and the PCO1 reports the device state to the CCO for 3 messages, so that the total number of messages to be sent is (1+10) ×3+6=39. Based on the method shown in fig. 3, when the PLC network shown in fig. 8 performs the device state query, the CCO instructs the STAs 21 to 30 to send a query instruction to each STA and receive the device state reported by each STA, where the number of messages to be sent is 2×10=20; when the CCO indicates STA1 to STA10 to report the device status, the CCO needs to issue a query instruction to the STA through PCO1 and PCO2, and the STA also needs to report the device status to the CCO through PCO1 and PCO2, where the number of messages to be sent is 3×2x10=60; similarly, in the process of indicating the STA11 to the STA20 to report the device status, the CCO needs to issue a query instruction to the STA through PCO1 and PCO3, and the STA needs to report the device status to the CCO through PCO1 and PCO3, and the number of messages to be sent is also 3×2×10=60, so that the total number of messages to be sent is 3×2×20+2×10=140.
In addition, the device state query method provided by the embodiment of the application further comprises a plurality of special case processing modes. Fig. 9 is a flowchart of a method for handling special cases in power line communication according to an embodiment of the present application. The manner of handling various special cases shown in fig. 9 can be applied to the above-described embodiment. Referring to fig. 9, taking CCO as an example for communication with 3 STAs (STA 1, STA2 and STA 3), the method comprises the steps of:
s901: the scene panel transmits indication information for indicating execution of the first scene to the CCO.
For example, the first scene may be to adjust the brightness of a plurality of lighting devices.
S902: the CCO broadcasts the send scene control instruction.
S903: STA1, STA2, and STA3 perform settings corresponding to the first scenario.
S904: the CCO broadcasts the send query message.
The query message is used for indicating the reporting sequence of the STA1 to STA3 reporting the equipment state.
S905: STA1 transmits STA 1's device status information to the CCO.
S906: and the STA1 determines that the confirmation message corresponding to the STA1 is not received within the first preset time.
S907: STA1 retransmits STA 1's device status information to the CCO.
The problem that the station does not receive the confirmation message within the first preset duration after sending the equipment state information to the CCO or proxy station can be solved through S905 to S907, and the reliability of communication is ensured through setting a retransmission mechanism.
S908: the CCO sends an acknowledgement message corresponding to STA 1.
S909: the STA2 monitors the confirmation message corresponding to the STA1 sent by the CCO.
S910: STA2 transmits STA 2's device status information to the CCO.
S911: the CCO determines that the device status information sent by STA2 is not received within the second preset duration.
S912: the CCO broadcasts the send query message.
S913: STA2 retransmits STA 2's device status information to the CCO.
Optionally, in S912, the CCO may indicate the reporting order of STA2 and STA3 in the query message without including the reporting order of STA 1. Therefore, the STA1 does not need to repeatedly report the equipment state, and the STA2 can send the equipment state information of the STA2 to the CCO after receiving the query message.
The problem that the CCO does not receive the device state message sent by the station within the second preset time period can be solved through S911-S913, and the report of the device state is triggered by rebroadcasting the query message through the CCO, so that the CCO is ensured to collect the device states of all stations as much as possible. It should be noted that, if the CCO still does not receive the device status information sent by the station within the second preset duration after rebroadcasting the query message, the CCO may skip the station and send the query message to the station next to the station in the reporting order, so as to prevent the device failure of the single station from affecting the device status reporting processes of multiple stations.
S914: the CCO sends an acknowledgement message corresponding to STA 2.
S915: the scene panel transmits indication information for indicating execution of the second scene to the CCO.
For example, the second scene includes turning off one or more lighting devices.
S916: the CCO determines that the priority of the second scenario is higher than the priority of the first scenario.
S917: the CCO broadcast sends an abort query.
S918: STA3 stops transmitting device status information to the CCO.
S919: the CCO determines that the second scenario is executed.
S920: the CCO broadcast sends a resume query instruction.
Through S915-S920, the problem that the CCO receives the indication information with higher priority than the query device state in the process of sequentially reporting the device states by a plurality of stations can be solved, the CCO can respond to the indication information with higher priority in time, the waiting time of a user is prevented from being overlong, and the user experience is improved. It should be noted that, after S920, since the device states of the plurality of STAs in the PLC network may change, the plurality of STAs need to report the device states again according to the reporting order, so as to ensure that the device states of the plurality of STAs acquired by the CCO are accurate.
Based on the above embodiments, the present application further provides a device status query method, which may be performed by a central coordinator and at least one site in a PLC system, for example, the method may be applied to a PLC system in a smart home scenario shown in fig. 2. Fig. 10 is a flowchart of a device status query method provided in an embodiment of the present application. Referring to fig. 10, the method includes the steps of:
S1001: the central coordinator broadcasts and sends scene control instructions to a plurality of stations; and the target site receives the scene control instruction sent by the central coordinator.
The scene control instruction is used for indicating the multiple stations to execute the setting corresponding to the first scene.
S1002: the central coordinator broadcasts and sends a first query message to a plurality of primary sites in a plurality of sites; the target site receives a first query message sent by the central coordinator.
The first query message is used for indicating a reporting sequence of reporting the equipment states to the central coordinator by the plurality of primary sites.
S1003: and the target site determines a target reporting sequence of the state of the target site reporting equipment according to the first query message, and determines an arrival target reporting sequence.
S1004: the target site transmits device state information of the target site to the central coordinator.
It should be noted that, in the specific implementation of the device state query method shown in fig. 10 of the present application, reference may be made to the above embodiments of the present application, and the repetition is not repeated.
Based on the above embodiments, the present application further provides a central coordinator, including a plurality of functional modules; the plurality of functional modules interact to realize functions executed by the central coordinator in the methods described in the embodiments of the present application. E.g., S601-S602, S604, S606, which perform the CCO execution in the embodiment shown in FIG. 6; also for example, S902, S904, S908, S911-S912, S914, S916-S917, S919-S920 of the CCO execution in the embodiment shown in FIG. 9 are performed. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on the specific implementation.
Based on the above embodiments, the present application also provides a central coordinator, which includes at least one processor and at least one memory, where the at least one memory stores computer program instructions, and when the central coordinator is running, the at least one processor performs functions performed by the central coordinator in the methods described in the embodiments of the present application. S601-S602, S604, S606 as performed by the central coordinator in the embodiment shown in fig. 6; also for example, S902, S904, S908, S911-S912, S914, S916-S917, S919-S920 of the CCO execution in the embodiment shown in FIG. 9 are performed.
Based on the above embodiments, the present application further provides an electronic device, including a plurality of functional modules; the functional modules interact to realize functions executed by the station in the methods described in the embodiments of the present application. E.g., S603, S605 performed by the station in the embodiment shown in fig. 6; also, for example, S903, S905-S907, S909-S910, S913, S918 performed by the station in the embodiment shown in fig. 9 are performed. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on the specific implementation.
Based on the above embodiments, the present application further provides an electronic device, where the electronic device includes at least one processor and at least one memory, where the at least one memory stores computer program instructions, and where the at least one processor performs functions performed by a station in the methods described in the embodiments of the present application when the electronic device is running. E.g., S603, S605 for executing the targeted site in the embodiment shown in fig. 6; also, for example, S903, S905-S907, S909-S910, S913, S918 performed by the station in the embodiment shown in fig. 9 are performed.
Based on the above embodiments, the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the embodiments of the present application.
Based on the above embodiments, the present application also provides a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the methods described in the embodiments of the present application.
Based on the above embodiments, the present application further provides a chip, where the chip is configured to read a computer program stored in a memory, and implement the methods described in the embodiments of the present application.
Based on the above embodiments, the present application provides a chip system including a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system can be composed of chips, and can also comprise chips and other discrete devices.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (20)

1. A power line communication system, characterized in that the power line communication system comprises a central coordinator and a plurality of stations, wherein a target station is any one of the plurality of stations;
the central coordinator is used for broadcasting and sending scene control instructions to the stations, and the scene control instructions are used for instructing the stations to execute settings corresponding to a first scene; broadcasting and sending a first query message to a plurality of primary sites in the plurality of sites, wherein the first query message is used for indicating the reporting sequence of the plurality of primary sites to the central coordinator for reporting the equipment state;
the target site is used for receiving a scene control instruction sent by the central coordinator and executing the setting corresponding to the first scene; receiving the first query message sent by the central coordinator; and determining a target reporting sequence of the target site reporting device state according to the first query message, and sending the device state information of the target site to the central coordinator when the target reporting sequence is determined to be reached.
2. The system of claim 1, wherein the targeted site is specifically configured to:
Determining the target reporting sequence as the first bit according to the first query message, and sending the equipment state information of the target site to the central coordinator; or alternatively
Determining that the target reporting sequence is not the first bit according to the first query message, monitoring a confirmation message corresponding to a preamble site sent by the central coordinator, and sending equipment state information of the target site to the central coordinator; the preamble station is a station with a reporting sequence before the target station, and the confirmation message corresponding to the preamble station is used for indicating the central coordinator to successfully receive the equipment state information sent by the preamble station.
3. The system of claim 1 or 2, wherein the plurality of sites comprises proxy sites;
the central coordinator is further configured to:
sending a second query message to the proxy site, wherein the second query message is used for indicating the reporting sequence of the device states reported by a plurality of sites hung under the proxy site; receiving equipment state information of a plurality of stations hung under the proxy station, which is sent by the proxy station;
the proxy site is specifically configured to:
receiving the second query message sent by the central coordinator; the second query message is sent to a plurality of stations hung under the proxy station, and the equipment state information sent by the plurality of stations hung under the proxy station according to the reporting sequence indicated by the second query message is received; and sending the equipment state information of a plurality of stations hung under the proxy station to the central coordinator.
4. A system as claimed in any one of claims 1 to 3, wherein the destination site is further operable to:
after the device state information of the target station is sent to the central coordinator, it is determined that a confirmation message corresponding to the target station is not received within a first preset duration, and the device state information of the target station is resent to the central coordinator.
5. The system of any one of claim 1 to 4,
the central coordinator is further configured to:
when the target reporting sequence is reached, determining that the equipment state information sent by the target site is not received within a second preset time length, and broadcasting and sending a third query message to the plurality of primary sites, wherein the third query message is used for indicating the reporting sequence of the target site and the primary site reporting equipment state of which the reporting sequence is positioned behind the target site;
the target site is also for:
and receiving the third query message sent by the central coordinator and sending the equipment state information of the target site to the central coordinator.
6. The system of any of claims 1-5, wherein the central coordinator is further to:
Receiving indication information sent by a scene panel, wherein the indication information is used for indicating the central coordinator to execute setting corresponding to a second scene; determining that the second scene has a higher priority than the first scene; broadcasting and sending a suspension inquiry command to the plurality of stations, wherein the suspension inquiry command is used for indicating the plurality of stations to stop reporting the equipment state; and determining the setting corresponding to the second scene after the execution is finished, broadcasting and sending a recovery query instruction to the plurality of stations, wherein the recovery query instruction is used for indicating the plurality of stations to report the equipment state again.
7. A device status query method for a central coordinator in a power line communication system, the method comprising:
broadcasting and sending scene control instructions to a plurality of stations in the power line communication system, wherein the scene control instructions are used for instructing the stations to execute settings corresponding to a first scene;
broadcasting and sending a first query message to a plurality of primary sites in the plurality of sites, wherein the first query message is used for indicating the reporting sequence of the plurality of primary sites to the central coordinator for reporting the equipment state;
and receiving the equipment state information sent by the plurality of primary stations according to the reporting sequence indicated by the first query message.
8. The method of claim 7, wherein the plurality of sites comprises proxy sites, the method further comprising:
sending a second query message to the proxy site, wherein the second query message is used for indicating the reporting sequence of the device states reported by a plurality of sites hung under the proxy site;
and receiving the equipment state information of a plurality of stations hung under the proxy station, which is sent by the proxy station.
9. The method of claim 7 or 8, wherein the method further comprises:
when a target report sequence of reporting equipment states of a target site is reached, determining that equipment state information sent by the target site is not received within a second preset time period, and broadcasting and sending third query messages to the plurality of primary sites; the third query message is used for indicating the target site and a reporting sequence of the first-level site reporting equipment state, wherein the reporting sequence is positioned behind the target site;
wherein the target site is any one of the plurality of sites.
10. The method of any one of claims 7-9, wherein the method further comprises:
receiving indication information sent by a scene panel, wherein the indication information is used for indicating the central coordinator to execute setting corresponding to a second scene;
Determining that the priority of the second scene is higher than that of the first scene, and broadcasting and sending a suspension inquiry command to the stations, wherein the suspension inquiry command is used for indicating the stations to stop reporting the equipment state;
and determining the setting corresponding to the second scene after the execution is finished, broadcasting and sending a recovery query instruction to the plurality of stations, wherein the recovery query instruction is used for indicating the plurality of stations to report the equipment state again.
11. A device status query method, applied to a target station in a power line communication system, where the target station is any one level station in the power line communication system, the method comprising:
receiving a scene control instruction sent by a central coordinator, wherein the scene control instruction is used for indicating a plurality of stations in the power line communication system to execute setting corresponding to a first scene;
executing the setting corresponding to the first scene;
receiving the first query message sent by the central coordinator, wherein the first query message is used for indicating a reporting sequence of reporting equipment states to the central coordinator by a plurality of primary stations in the power line communication system;
and determining a target reporting sequence of the target site reporting device state according to the first query message, and sending the device state information of the target site to the central coordinator when the target reporting sequence is determined to be reached.
12. The method of claim 11, wherein the determining, according to the first query message, a target reporting order in which the target station reports the device status, and when determining that the target reporting order is reached, sending, to the central coordinator, the device status information of the target station, includes:
determining the target reporting sequence as the first bit according to the first query message, and sending the equipment state information of the target site to the central coordinator; or alternatively
Determining that the target reporting sequence is not the first bit according to the first query message, monitoring a confirmation message corresponding to a preamble site sent by the central coordinator, and sending equipment state information of the target site to the central coordinator; the preamble station is a station with a reporting sequence before the target station, and the confirmation message corresponding to the preamble station is used for indicating the central coordinator to successfully receive the equipment state information sent by the preamble station.
13. The method of claim 11 or 12, wherein after said sending device state information of the target site to the central coordinator, the method further comprises:
And determining that the confirmation message corresponding to the target site is not received within a first preset time period, and retransmitting the equipment state information of the target site to the central coordinator.
14. The method of any one of claims 11-13, wherein the method further comprises:
receiving the third query message sent by the central coordinator, wherein the third query message is used for indicating a target site and a reporting sequence of reporting equipment states of a first-level site, the reporting sequence of which is positioned behind the target site; the third query message is sent after the central coordinator determines that the equipment state information sent by the target site is not received within a second preset duration when the target reporting sequence is reached;
and sending the equipment state information of the target site to the central coordinator.
15. A central coordinator comprising at least one processor coupled to at least one memory, the at least one processor configured to read a computer program stored by the at least one memory to perform the method of any of claims 7-10.
16. A central coordinator comprising a plurality of functional modules; the plurality of functional modules interact to implement the method of any of claims 7-10.
17. An electronic device comprising at least one processor coupled to at least one memory, the at least one processor configured to read a computer program stored by the at least one memory to perform the method of any of claims 11-14.
18. An electronic device comprising a plurality of functional modules; the plurality of functional modules interact to implement the method of any of claims 11-14.
19. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 7-10 or to perform the method of any of claims 11-14.
20. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 7-10 or to perform the method of any of claims 11-14.
CN202210703656.4A 2022-06-21 2022-06-21 Power line communication system, equipment state query method and equipment Pending CN117318761A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210703656.4A CN117318761A (en) 2022-06-21 2022-06-21 Power line communication system, equipment state query method and equipment
PCT/CN2023/100825 WO2023246660A1 (en) 2022-06-21 2023-06-16 Power line communication system, device state query method, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210703656.4A CN117318761A (en) 2022-06-21 2022-06-21 Power line communication system, equipment state query method and equipment

Publications (1)

Publication Number Publication Date
CN117318761A true CN117318761A (en) 2023-12-29

Family

ID=89254059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210703656.4A Pending CN117318761A (en) 2022-06-21 2022-06-21 Power line communication system, equipment state query method and equipment

Country Status (2)

Country Link
CN (1) CN117318761A (en)
WO (1) WO2023246660A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8995461B2 (en) * 2011-02-08 2015-03-31 Texas Instruments Incorporated Channel selection in power line communications
KR101710428B1 (en) * 2015-10-02 2017-02-27 숭실대학교산학협력단 Method for preventing priority inversion in power line communications, recording medium and device for performing the method
CN205750334U (en) * 2016-06-24 2016-11-30 国家电网公司 A kind of household appliances intelligent control system
CN112255926A (en) * 2020-10-22 2021-01-22 深圳会当科技有限公司 Method for managing contextual model of smart home system

Also Published As

Publication number Publication date
WO2023246660A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
EP4044609A1 (en) Cross-device content projection method and electronic device
WO2021218864A1 (en) Implementation method for wi-fi peer-to-peer service and related device
CN110795179B (en) Display method and electronic equipment
WO2023174043A1 (en) Power line communication system, and in-network state detection method and device
WO2022052731A1 (en) Method for transmitting data and electronic device
CN115514882B (en) Distributed shooting method, electronic equipment and medium
CN113572890B (en) Volume management method and electronic equipment
CN113918110A (en) Screen projection interaction method, device, system, storage medium and product
CN113645608B (en) Data transmission method and data transmission device
CN113703849A (en) Screen-casting application opening method and device
CN114979352A (en) Event notification method, Bluetooth device and Bluetooth system
CN117318761A (en) Power line communication system, equipment state query method and equipment
WO2021244456A1 (en) Reverse address resolution method and electronic devices
EP4090103A1 (en) Method and device for determining network allocation vector, and storage medium
CN114637214A (en) Control method and device of electronic home equipment and computer storage medium
CN114173317B (en) Method for transmitting data and electronic equipment
CN113613230B (en) Scanning parameter determination method and electronic equipment
CN116679895B (en) Collaborative business scheduling method, electronic equipment and collaborative system
CN115119214B (en) Stereo networking method, system and related device
WO2024139947A1 (en) Management method and apparatus for terminal device, and communication system
WO2024067170A1 (en) Device management method and electronic device
CN118265182A (en) Connection management method, device and system of electronic equipment
CN114911603A (en) Distributed device capability virtualization method, medium, and electronic device
CN117318921A (en) Communication method, system and related device
CN116074968A (en) Data transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination