Sensing method, apparatus, device and system, and sensing server and storage medium
By setting a first HPLC chip and a second HPLC chip in the listening device, simultaneous listening and data transmission in the power line carrier communication network is achieved, solving the problem that the HPLC module cannot listen and transmit at the same time, and realizing real-time feedback and line loss assessment.
Patent Information
- Application Number
- CN202211055204.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-08-31
AI Technical Summary
Existing HPLC modules cannot simultaneously perform listening and data transmission. Furthermore, when listening data is transmitted back in the same frequency band, interference occurs, making it impossible to statistically analyze energy consumption data segment by segment and transmit it back in real time, and thus impossible to accurately quantify line loss.
By setting a first HPLC chip and a second HPLC chip in the listening device, the first chip listens for data and sends it to the power line carrier communication network through the second chip, while it does not send carrier data itself. This allows for simultaneous listening and data transmission, and the device receives application layer data through the listening server to assess line loss.
It enables real-time transmission and segmented statistical analysis of energy consumption data without causing interference, solving the problem of quantifying line loss caused by the lack of data sharing between different departments.
Smart Images

Figure CN115441902B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of broadband power line carrier communication, and particularly relates to a listening method, device, equipment and system, a listening server and a storage medium. BACKGROUND
[0002] Power line communication (PLC) technology, also known as power line carrier communication technology, according to the definition in GB / T 31983.31, refers to a technology that modulates information data to a suitable carrier frequency and uses a power line as a physical medium to transmit data, so as to realize communication or control between data terminals. Since the power line is the most popular and widely covered physical medium, using the power line to transmit data information has great convenience, and without re-wiring, all power-using devices connected to the power line can form a communication network to interact and communicate information. This method is simple to implement and convenient to maintain, and can effectively reduce operating costs and reduce the expenditure of building a new communication network, and thus has become the main communication means for smart grid, energy management, smart home, photovoltaic power generation, electric vehicle charging and the like.
[0003] Power line carrier communication can be divided into power line narrowband carrier communication and power line broadband carrier communication according to the working frequency band. The frequency range that can be used by the power line narrowband carrier communication is 3 kHz to 500 kHz. Since the bandwidth is relatively narrow, only a lower transmission rate communication service can be provided, and the anti-interference ability is weak. The power line broadband carrier communication, also known as high-speed power line carrier communication (HPLC), is a power line broadband carrier technology for data transmission on a low-voltage power line, and is mainly used in local communication of a low-voltage area power consumption information acquisition system (such as meter reading). It mainly adopts orthogonal frequency division multiplexing (OFDM) technology, and uses a frequency band of 700 KHz-12 MHz. Among them, the working frequency range of the broadband power line carrier communication for power meter reading contains four frequency bands of Band0-Band3, which are 1.953 MHz-11.9 MHz, 2.441 MHz-5.615 MHz, 0.781 MHz-2.930 MHz and 1.758 MHz-2.930 MHz, respectively. The broadband has a relatively wide bandwidth, and can provide a data transmission rate of several hundred kbps to several Mbps. The noise of the power line in the high frequency band is relatively weak, and the communication reliability and stability are significantly improved compared with the narrowband power line communication. Compared with the traditional low-speed narrowband power line carrier technology, the HPLC technology has a large bandwidth and a high transmission rate, and can meet the higher requirements of low-voltage power line carrier communication.
[0004] In the power network system, the quantification of power grid loss has been a difficult problem. The power grid loss (referred to as line loss) refers to the power loss and loss generated in the process of power transmission, power transformation, power distribution and marketing in each link of the power transmission from the power plant to the customer. However, the current situation is that the distribution network department responsible for power transmission and power transformation and the marketing department responsible for the end user belong to different systems, and the data of each other is not disclosed, and the distribution network department does not measure the energy consumption data, so it cannot know the power consumption of a specific line, and currently only relies on the measurement data of the marketing department to calculate the line loss, so there is an urgent need for a means that can calculate the energy consumption data by section and can return in real time to evaluate the line loss by using the returned energy consumption data.
[0005] In addition, the current HPLC module only has communication function or only has listening function, and cannot realize listening and data transmission at the same time, and is limited by the carrier sense multiple access / collision detection (referred to as CSMA / CD) design characteristics of the HPLC system. If the listening data return and the existing power meter reading are in the same frequency band, interference will inevitably occur.
[0006] Based on the above demand for calculating energy consumption data by section and the conflict point, there is an urgent need to propose a listening data return method in the HPLC system without interference, which can realize listening and data transmission at the same time, can calculate energy consumption data by section and can return in real time, and solve the problem of incorrect quantification of line loss caused by the mutual non-disclosure of data between different system departments. SUMMARY
[0007] Therefore, the embodiments of the present application provide a listening method, device, equipment and system, and a listening server and a storage medium. By simultaneously arranging a first HPLC chip and a second HPLC chip in a listening device, the first HPLC chip can send the data of the listened network listened by the first HPLC chip to the power line carrier communication network through the second HPLC chip, and the first HPLC chip does not send any carrier data, so that listening and data transmission are realized at the same time, and the listening data can be returned in real time and will not cause interference during the return. In addition, the application layer data of the listened network listened by the listening device is received by the listening server, the function of calculating energy consumption data by section is realized, and the line loss is further evaluated by using the application layer data, so that the problem of incorrect quantification of line loss caused by the mutual non-disclosure of data between different system departments is solved.
[0008] In a first aspect, the embodiments of the present application provide a listening method applied to a listening device, and the method comprises:
[0009] The first HPLC chip in the listening device listens to the data of the listened network on a preset default frequency band;
[0010] The first HPLC chip in the listening device transmits the data of the listened network satisfying the preset data listening reporting mode to the second HPLC chip in the listening device, and the second HPLC chip in the listening device transmits the data to the power line broadband carrier communication network.
[0011] Preferably, the method further comprises:
[0012] The first HPLC chip receives a listening configuration instruction sent by a listening server or a host computer, processes the listening configuration instruction, and if the listening configuration instruction needs to be replied, sends a reply instruction for the listening configuration instruction to the listening server or the host computer.
[0013] Preferably, the first HPLC chip receives a listening configuration instruction sent by a listening server or a host computer, processes the listening configuration instruction, and if the listening configuration instruction needs to be replied, sends a reply instruction for the listening configuration instruction to the listening server or the host computer, specifically comprising:
[0014] The first HPLC chip receives a configuration listening frequency band instruction sent by the listening server or the host computer, and obtains a target frequency band to be switched to included in the configuration listening frequency band instruction.
[0015] Switching the self listening frequency band from the default frequency band to the target frequency band.
[0016] If the current frequency offset value is not a preset default frequency offset value, setting the current frequency offset value as the default frequency offset value.
[0017] Listening to the listened network on the target frequency band.
[0018] Sending a reply instruction confirmation for the configuration listening frequency band instruction to the listening server or the host computer.
[0019] And / or,
[0020] The first HPLC chip receives a configuration listening frequency offset synchronization target network object instruction sent by the listening server or the host computer.
[0021] Sending a reply instruction confirmation for the configuration listening frequency offset synchronization target network object instruction to the listening server or the host computer.
[0022] Synchronizing the self listening frequency offset to the target network object.
[0023] And / or,
[0024] The first HPLC chip receives a configuration data listening report mode instruction sent by the listening server or the host computer, and obtains a data listening report mode contained in the configuration data listening report mode instruction.
[0025] The current data listening report mode is changed to the data listening report mode contained in the configuration data listening report mode instruction, and the data listening report mode contained in the configuration data listening report mode instruction is used to listen to and report the data of the network being listened to.
[0026] The listening server or the host computer is sent a response instruction confirmation for the configuration data listening report mode instruction.
[0027] In a second aspect, the embodiment of the present application further provides a listening method applied to a listening server, and the method comprises the following steps.
[0028] The first HPLC chip in the listening device receives data of the network being listened to, which is listened to by the first HPLC chip and meets a preset data listening report mode, and the data is reported by the second HPLC chip in the listening device.
[0029] Preferably, the method further comprises the following steps.
[0030] The listening configuration instruction is sent to the listening device, and if the listening configuration instruction needs a response, a response instruction of the listening device for the listening configuration instruction is received.
[0031] Preferably, the step of sending the listening configuration instruction to the listening device and receiving the response instruction of the listening device for the listening configuration instruction if the listening configuration instruction needs a response specifically comprises the following steps.
[0032] The configuration listening frequency band instruction is sent to the listening device, and the configuration listening frequency band instruction contains a target frequency band to be switched to.
[0033] The response instruction of the listening device for the configuration listening frequency band instruction is received.
[0034] And / or,
[0035] The configuration listening frequency offset synchronization target network object instruction is sent to the listening device.
[0036] The response instruction of the listening device for the configuration listening frequency offset synchronization target network object instruction is received.
[0037] And / or,
[0038] sending a configuration data listening reporting mode instruction to the listening device, wherein the configuration data listening reporting mode instruction contains a data listening reporting mode to be configured;
[0039] receiving a response instruction of the listening device to the configuration data listening reporting mode instruction.
[0040] Preferably, the method further comprises:
[0041] If all data of the network to be listened to is received, the listening server obtains application layer data of the network to be listened to from all data of the network to be listened to received, and performs a statistical operation using the obtained application layer data of the network to be listened to or the application layer data of the network to be listened to received directly from the listening device, wherein the statistical operation comprises evaluating line loss, counting line load or counting energy consumption data.
[0042] In a third aspect, an embodiment of the present application provides a listening device arranged in a listening server, and at least comprising:
[0043] a listening data receiving module arranged to receive data of the network to be listened to, which is listened to by a first HPLC chip in a listening device and satisfies a preset data listening reporting mode, and which is reported by a second HPLC chip in the listening device.
[0044] In a fourth aspect, an embodiment of the present application provides a listening server comprising a memory and a processor, wherein the processor executes program instructions in the memory to implement the method in the second aspect.
[0045] In a fifth aspect, an embodiment of the present application provides a listening device, and at least comprising a first HPLC chip and a second HPLC chip, wherein the first HPLC chip is bidirectionally connected to the second HPLC chip, and
[0046] the first HPLC chip is arranged to listen to data of the network to be listened to on a preset default frequency band, and transmit the listened data of the network to be listened to, which satisfies a preset data listening reporting mode, to the second HPLC chip in the listening device;
[0047] the second HPLC chip is arranged to receive the listened data of the network to be listened to, which satisfies the preset data listening reporting mode, transmitted by the first HPLC chip, and send the data to a power line broadband carrier communication network.
[0048] Preferably, the listening device further comprises a coupling circuit, a receiving circuit and a sending circuit, the first HPLC chip is connected to the receiving circuit, and the second HPLC chip is connected to the receiving circuit and the sending circuit, wherein,
[0049] The coupling circuit is configured to be coupled to the receiving circuit and the sending circuit, to send the power line carrier analog signal extracted from the power line to the receiving circuit, and to inject the power line carrier analog signal received from the sending circuit into the power line;
[0050] The receiving circuit is configured to convert the power line carrier analog signal output from the coupling circuit into a differential analog signal, and to send the differential analog signal to the second HPLC chip and the first HPLC chip;
[0051] The sending circuit is configured to receive the differential analog signal sent from the second HPLC chip, to convert the differential analog signal into a power line carrier analog signal, to amplify the power line carrier analog signal, and to send the amplified power line carrier analog signal to the coupling circuit.
[0052] Preferably, the first HPLC chip is further configured to receive the listening configuration instruction sent from the listening server or the upper computer, and to send the listening configuration instruction to the second HPLC chip.
[0053] The second HPLC chip is further configured to send the listening configuration instruction sent from the listening server or the upper computer to the first HPLC chip, to receive the response instruction of the first HPLC chip to the listening configuration instruction, and to send the response instruction to the listening server or the upper computer.
[0054] The first HPLC chip is further configured to receive the listening configuration instruction directly from the upper computer, or to receive the listening configuration instruction sent from the listening server or the upper computer from the second HPLC chip, and to send the response instruction of the first HPLC chip to the listening configuration instruction to the second HPLC chip or directly to the upper computer if the listening configuration instruction needs to be responded.
[0055] In a sixth aspect, an embodiment of the present application provides a listening system, which at least comprises the listening server in the fourth aspect and the listening device in the fifth aspect.
[0056] In a seventh aspect, an embodiment of the present application provides a storage medium for storing a computer program, the computer program being used to implement the method in the first aspect and the second aspect. BRIEF DESCRIPTION OF DRAWINGS
[0057] The above and other objects, features and advantages of the present application will become more apparent from the following description when taken in conjunction with the accompanying drawings, in which:
[0058] Figure 1is a flow chart of a listening method of an embodiment of the present application;
[0059] Figure 2 is a flow chart of a listening device processing a configuration listening frequency offset synchronization target network object instruction of an embodiment of the present application;
[0060] Figure 3 is a flow chart of a listening device processing a configuration listening frequency band instruction of an embodiment of the present application;
[0061] Figure 4 is a flow chart of a listening device processing a configuration data listening reporting mode instruction of an embodiment of the present application;
[0062] Figure 5 is a hardware structure schematic diagram of a listening device of an embodiment of the present application;
[0063] Figure 6 is a hardware structure schematic diagram of a listening device of an embodiment of the present application;
[0064] Figure 7 is a hardware structure schematic diagram of a listening device of another embodiment of the present application;
[0065] Figure 8 is a listening system structure schematic diagram of an embodiment of the present application. DETAILED DESCRIPTION
[0066] The present application is described in the following based on embodiments, but the present application is not limited to these embodiments only. In the following detailed description of the present application, some specific details are described in detail. The present application can also be completely understood without the description of these details by those skilled in the art. In order to avoid confusion of the essence of the present application, the well-known methods, processes, flows, elements and circuits are not described in detail.
[0067] In addition, those skilled in the art should understand that the drawings provided herein are for illustrative purposes only, and the drawings are not necessarily drawn to scale.
[0068] At the same time, it should be understood that in the following description, "circuit" refers to a conductive loop composed of at least one element or sub-circuit through electrical or electromagnetic connection. When an element or circuit is said to be "connected to" another element or said to be "connected between" two nodes, it can be directly coupled or connected to another element or there can be intermediate elements, and the connection between elements can be physical, logical or a combination thereof. On the contrary, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.
[0069] Unless the context clearly requires otherwise, throughout the description, the terms "comprise", "comprising", "included", "including" or the like are to be construed in an inclusive sense, as opposed to an exclusive or exhaustive sense; that is to say, in the sense of "including, but not limited to".
[0070] In the description of the present application, it should be understood that the terms "first", "second" and the like are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise stated.
[0071] Figure 1 is a flow chart of a listening method according to an embodiment of the present application, which is applied to a listening device, as shown in Figure 1 The listening method comprises the following steps:
[0072] Step S110: The first HPLC chip in the listening device listens to the data of the network to be listened to on a preset default frequency band.
[0073] The "listening device" described in this step is a device independent of the HPLC network node, which has the function of listening to the HPLC network data on a specific frequency band, and also has the function of sending the listened data to the listening server in the form of HPLC network carrier data for analyzing and processing these data. The listening device is coupled to the power line, and from the perspective of network topology, it is at the same level as the concentrator.
[0074] The "first HPLC chip" described in this step is a communication module supporting the power line broadband carrier communication protocol. Since it can collect HPLC data and send the collected HPLC data to the power line carrier communication network through its own module function, in the present application, the "first HPLC chip" only has the function of listening to the HPLC network data, and does not send any power line carrier data. This separates the "listening" and "communication" functions, which can effectively avoid interference.
[0075] The "preset default frequency band" described in this step can be set by writing into the NVM (Non-Volatile Memory) at the time of factory shipment, or by other means. It generally refers to the commonly used frequency band of the network to be listened to, such as Band2 used by the general marketing department. Therefore, when factory setting is performed, the default frequency band to be listened to can be set to Band2. In this way, after power-on, the listening device automatically listens to the data of the marketing department network on the Band2 frequency band.
[0076] Step S120: the first HPLC chip in the listening device sends the listened data of the listened network satisfying the preset data listening reporting mode to the second HPLC chip in the listening device, and the second HPLC chip sends the data to the power line broadband carrier communication network.
[0077] The second HPLC chip in the present step is also a communication module supporting the power line broadband carrier communication protocol, but different from the first HPLC chip, the second HPLC chip can receive data from the HPLC network and send HPLC data to the power line broadband carrier communication network, that is, the first HPLC chip only receiving HPLC network data must send the listened data to the power line broadband carrier communication network through the second HPLC chip, that is, the listening data and data backhaul are completed in two systems, and the first HPLC chip as the listening party does not send carrier data, so it does not interfere with the carrier communication network, thereby effectively avoiding mutual interference.
[0078] In the present application, in order to make the first HPLC chip listen and report specific types of data, the concept of "data listening reporting mode" is set, which is used to define the data type listened and reported by the first HPLC chip, that is, the first HPLC chip listens and reports the data of the listened network according to the set data listening reporting mode. When the listening device is powered on, the first HPLC chip can listen and report the data of the listened network according to the preset data listening reporting mode. During the listening period, the listening server or the upper computer can send a configuration data listening reporting mode instruction to change the data listening reporting mode, thereby controlling the data type listened and reported by the listening device. The data listening reporting mode includes but is not limited to: listening and reporting all data transmitted in both directions, listening and reporting only all data transmitted in the downlink, listening and reporting only all data transmitted in the uplink, listening and reporting application layer data transmitted in both directions, listening and reporting only application layer data transmitted in the downlink, listening and reporting only application layer data transmitted in the uplink, and prohibiting any data reporting. Of course, other data listening reporting modes can also be defined according to the actual needs of the project. When the data listening reporting mode is one of listening and reporting application layer data transmitted in both directions, listening and reporting only application layer data transmitted in the downlink, and listening and reporting only application layer data transmitted in the uplink, it means that the application layer data needs to be listened and reported, and then the listening device judges whether the data is application layer data through the identification in the data frame content after listening to the data of the listened network, so as to send only the application layer data of the listened network corresponding to the specific data listening reporting mode through the second HPLC chip, and discard other data which is not application layer data.
[0079] It should be noted that the first HPLC chip receives the data packets of the intercepted network, and needs to splice the content of each frame packet, then check whether it is complete and valid, and then transmit it to the second HPLC chip. The first HPLC chip and the second HPLC chip can be connected and data can be transmitted through a serial port or an SPI interface (i.e., the abbreviation of English "Serial Peripheral Interface"). In the future, there can be other connection methods, and the scheme of the embodiment of the application can be applied.
[0080] In addition, in order to facilitate project development, the first HPLC chip and the second HPLC chip can be two HPLC chips that are completely the same in hardware structure, and can also be different in actual application.
[0081] In addition to the above steps S110 and S120, the interception method of the embodiment of the application further includes that the first HPLC chip receives an interception configuration instruction sent by an interception server or a host computer, processes the interception configuration instruction, and if the interception configuration instruction needs to be replied, sends a reply instruction for the interception configuration instruction to the interception server or the host computer.
[0082] As can be known from the above-mentioned contents included by the interception method, the first HPLC chip responsible for "interception" can receive an interception configuration instruction sent by an interception server or a host computer, to configure parameters related to interception. The interception configuration instruction and the reply instruction for the interception configuration instruction can be sent in the following three ways.
[0083] Method 1: The host computer is directly connected with the serial port of the first HPLC chip, and the host computer directly sends the interception configuration instruction to the first HPLC chip through the serial port, and the first HPLC chip directly sends the reply instruction for the interception configuration instruction to the host computer through the serial port.
[0084] Method 2: The host computer is connected with the serial port of the second HPLC chip, and the second HPLC chip receives the interception configuration instruction and forwards it to the first HPLC chip through another serial port or an SPI interface, and the first HPLC chip sends the reply instruction for the interception configuration instruction to the second HPLC chip through the serial port or the SPI interface, and the second HPLC chip forwards it to the host computer through the serial port.
[0085] Mode 3: The remote listening server sends a listening configuration instruction to the second HPLC chip through the HPLC network, the second HPLC chip forwards the listening configuration instruction to the first HPLC chip through the serial port or the SPI interface, the first HPLC chip sends a response instruction for the listening configuration instruction to the second HPLC chip through the serial port or the SPI interface, and the second HPLC chip sends the response instruction to the remote listening server through the HPLC network.
[0086] In the development of specific projects, one or more of the above three modes can be selected for sending a listening configuration instruction according to actual needs.
[0087] It should be noted that in the above three modes, the host computer is connected to the first HPLC chip or the second HPLC chip through a serial port, and in the future, other connection modes can also be applied to the above modes.
[0088] The specific format and content of the listening configuration instruction are realized by a manufacturer-defined extended frame. The following will mainly explain three listening configuration instructions:
[0089] The first kind is a configuration listening frequency offset synchronization target network object instruction. The frequency offset of the network being listened to will change with the change of the environment temperature, so in order to obtain a higher listening reception success rate, the working frequency offset of the self needs to be synchronized to the network, and changes with the frequency offset of the network being listened to.
[0090] As shown in Figure 2 , the following steps are implemented:
[0091] Step S210: The first HPLC chip receives the configuration listening frequency offset synchronization target network object instruction sent by the listening server or the host computer.
[0092] The data unit format of the configuration listening frequency offset synchronization target network object instruction is shown in the following table:
[0093] Data Content Data Format Number of Bytes Synchronization Enable BIN 1 Target Network Object CCO Address HEX Big Endian 6
[0094] Among them, synchronization enable: 0 represents asynchronization; 1 represents synchronization enabled. The default is asynchronization.
[0095] Target network object CCO address: CCO address of the synchronization target network object.
[0096] Step S220: Send a response instruction confirmation for the configuration listening frequency offset synchronization target network object instruction to the listening server or the host computer.
[0097] The response instruction includes confirmation and denial, and in general, the response instruction confirmation is sent.
[0098] Step S230: Synchronize the self-listening frequency offset to the target network object.
[0099] The first HPLC chip determines the target network object according to the "target network object CCO address" field in the above-mentioned data unit format, and then performs the operation of synchronizing to the target network object in this step S230. The specific operation method is as follows:
[0100] Receive any two network beacon data of the target network object, which are respectively denoted as the first network beacon data and the second network beacon data. Obtain the sending time stamps in the received first network beacon data and the second network beacon data respectively, and calculate the difference between the sending time stamp of the first network beacon data and the sending time stamp of the second network beacon data, denoted as ΔT tx Then, obtain the receiving time stamps of the first network beacon data and the second network beacon data received by the self respectively, and calculate the difference between the receiving time stamp of the first network beacon data received by the self and the receiving time stamp of the second network beacon data received by the self, denoted as ΔT rx Then, determine the frequency offset value according to ΔT tx and ΔT rx Finally, use the determined frequency offset value to calibrate the working frequency of the self-crystal oscillator.
[0101] Wherein, when determining the frequency offset value according to ΔT tx and ΔT rx , the following formula can be used for calculation:
[0102]
[0103] Wherein, ΔF is the frequency offset value, ΔT rx is the difference between the receiving time stamp of the first network beacon data received by the self and the receiving time stamp of the second network beacon data received by the self, and ΔT tx is the difference between the sending time stamp of the first network beacon data and the sending time stamp of the second network beacon data.
[0104] After synchronizing the target network object, the receiving success rate of the listening device to other networks may decrease, while the receiving success rate to the target network object increases.
[0105] It should be noted that the operation of synchronizing the listening frequency offset to the target network object is a continuous process, that is, the operation of continuously calculating the frequency offset value and calibrating the working frequency of the self-crystal oscillator is required, so as to keep the frequency offset synchronized with the target network object at all times, thereby improving the success rate of receiving and listening data.
[0106] The second kind: configure the listening frequency band instruction. When the listening device is powered on, the first HPLC chip responsible for listening works in the common frequency band of the network being listened to by default. When the working frequency band of the network being listened to changes, the listening frequency band of the first HPLC chip needs to be modified. As shown in the following table, the specific implementation is as follows: Figure 3
[0107] Step S310: The first HPLC chip receives the configuration listening frequency band instruction sent by the listening server or the upper computer, and obtains the target frequency band to be switched to included in the configuration listening frequency band instruction.
[0108] The data unit format of the configuration listening frequency band instruction is shown in the following table:
[0109] Data Content Data Format Number of Bytes Target Frequency Band BIN 1
[0110] Wherein, the target frequency band: 0 represents Band0, 1 represents Band1, 2 represents Band2, 3 represents Band3, and 4 represents all frequency bands.
[0111] Step S320: Switch the listening frequency band of itself from the default frequency band to the target frequency band.
[0112] Step S330: If the current frequency offset value is not the pre-set default frequency offset value, set the current frequency offset value to the default frequency offset value.
[0113] In this step, since the listening frequency band has changed, the frequency offset value needs to be reset to the default frequency offset value. The default frequency offset value can be set by writing into the NVM at the time of factory shipment, or can be set or obtained by other means. When the frequency offset of the network being listened to changes, the current frequency offset value is updated and synchronized again by using steps S210-S230.
[0114] Step S340: Listen to the network being listened to on the target frequency band.
[0115] Step S350: Send a response instruction confirmation to the configuration listening frequency band instruction to the listening server or the upper computer.
[0116] The response instruction includes confirmation and denial. In general, the response instruction confirmation is sent.
[0117] By configuring the listening frequency band instruction, the listening frequency band of the first HPLC chip responsible for the listening function can be configured to be completely different from the working frequency band of the second HPLC chip responsible for the data backhaul function, so that the carrier network paths of listening and data backhaul are completely separated, further reducing the interference during data backhaul.
[0118] The third is a configuration data listening reporting mode instruction. The instruction is used for indicating whether the listening device performs listening and a data mode to be reported by listening. When the listening server or the upper computer needs to change the data mode reported by the listening device during listening to the data of the network to be listened to, the listening server or the upper computer sends a configuration data listening reporting mode instruction to the listening device, as shown in the following table, and the listening device changes the data listening reporting mode according to the configuration data listening reporting mode instruction. Figure 4 The configuration data listening reporting mode instruction is implemented by the following steps.
[0119] In step S410, the first HPLC chip receives the configuration data listening reporting mode instruction sent by the listening server or the upper computer, and obtains the data listening reporting mode contained in the configuration data listening reporting mode instruction.
[0120] The specific data unit format of the configuration data listening reporting mode instruction is shown in the following table.
[0121] Data Content Data Format Number of Bytes Data Listening Reporting Mode BIN 1
[0122] The data listening reporting mode is as follows: 0 represents listening to all messages transmitted in both directions; 1 represents listening to all messages transmitted in the downlink direction only; 2 represents listening to all messages transmitted in the uplink direction only; 3 represents listening to application layer messages transmitted in both directions; 4 represents listening to application layer messages transmitted in the downlink direction only; 5 represents listening to application layer messages transmitted in the uplink direction only; and 6 represents prohibiting reporting of any message.
[0123] In step S420, the current data listening reporting mode is changed to the data listening reporting mode contained in the configuration data listening reporting mode instruction, and the network data to be listened to is reported according to the data listening reporting mode contained in the configuration data listening reporting mode instruction.
[0124] The current data listening reporting mode refers to the “preset data listening reporting mode” at power-on or the data listening reporting mode changed by the configuration data listening reporting mode instruction before.
[0125] In step S430, a response instruction confirmation to the configuration data listening reporting mode instruction is sent to the listening server or the upper computer.
[0126] The response instruction contains confirmation and denial, and the response instruction confirmation is generally sent.
[0127] Another embodiment of the application further provides a listening method applied to a listening server, and at least comprising: receiving data of a network to be listened to, which is listened to by a first HPLC chip in a listening device and reported by a second HPLC chip in the listening device, and satisfying a preset data listening reporting mode.
[0128] In addition, the listening method further comprises: sending a listening configuration instruction to the listening device, and receiving a response instruction of the listening device to the listening configuration instruction if the listening configuration instruction needs a response.
[0129] Specifically, the sending of the listening configuration instruction to the listening device and the receiving of the response instruction of the listening device to the listening configuration instruction specifically include three aspects:
[0130] The first aspect: sending a configuration listening frequency band instruction to the listening device, wherein the configuration listening frequency band instruction contains a target frequency band to be switched to; and receiving a response instruction of the listening device to the configuration listening frequency band instruction.
[0131] The second aspect: sending a configuration listening frequency offset synchronization target network object instruction to the listening device; and receiving a response instruction of the listening device to the configuration listening frequency offset synchronization target network object instruction.
[0132] The third aspect: sending a configuration data listening reporting mode instruction to the listening device, wherein the configuration data listening reporting mode instruction contains a data listening reporting mode to be configured; and receiving a response instruction of the listening device to the configuration data listening reporting mode instruction.
[0133] The data listening reporting mode includes but is not limited to: listening to and reporting all data in bidirectional transmission, listening to and reporting all data in downlink transmission only, listening to and reporting all data in uplink transmission only, listening to and reporting application layer data in bidirectional transmission only, listening to and reporting application layer data in downlink transmission only, listening to and reporting application layer data in uplink transmission only, and prohibiting any data reporting.
[0134] In addition to the above, the listening method further comprises:
[0135] After the listening server receives the data of the listened network reported by the listening device, the data is analyzed and processed, for example, the data can be used for line loss evaluation, line load statistics or segment-by-segment energy consumption data statistics. In line loss evaluation, line load statistics or energy consumption data statistics, the application layer data of the listened network needs to be obtained. The listening server can instruct the listening device to report the application layer data of the listened network by issuing a configuration data listening reporting mode instruction, such as "listening and reporting bidirectional transmission of application layer data", "only listening and reporting downlink transmission of application layer data" or "only listening and reporting uplink transmission of application layer data". In this way, the application layer data of the listened network can be directly received from the listening device to evaluate the line loss. If the listening server receives all the data of the listened network, the listening server needs to obtain the application layer data of the listened network from all the received data of the listened network, and then use the obtained application layer data of the listened network for statistical operation, which includes but is not limited to line loss evaluation, line load statistics and energy consumption data statistics.
[0136] As can be seen from the above steps, the embodiment of the application simultaneously sets the first HPLC chip and the second HPLC chip in the listening device, so that the first HPLC chip can send the listened data of the listened network to the power line carrier communication network through the second HPLC chip, and itself does not send any carrier data, thereby simultaneously realizing listening and data transmission, and the listened data can be real-time returned without causing interference during the return. In addition, the listening server receives the application layer data of the listened network listened by the listening device, realizes the function of segment-by-segment energy consumption data statistics, further uses the application layer data to evaluate the line loss, and solves the problem of incorrect quantification of line loss caused by the fact that data of different departments is not open to each other.
[0137] The embodiment of the application further provides a listening device arranged in a listening server, which at least comprises: a listening data receiving module arranged to receive data of a listened network listened by a first HPLC chip in a listening device and reported by a second HPLC chip in the listening device, the data satisfying a preset data listening reporting mode.
[0138] Figure 5 The hardware structure of the listening device of the embodiment of the application is shown in FIG. 5. Figure 5 As shown in FIG. 5, the listening device comprises a memory 510 and a processor 520, wherein the memory 510 and the processor 520 are in communication. For example, the memory 510 and the processor 520 are in communication through a communication bus 530. The memory 510 is used to store a computer program, and the processor 520 executes the computer program to realize the method shown in another embodiment.
[0139] Optionally, the listening device may also include a transmitter and / or a receiver.
[0140] Optionally, the aforementioned processor can be a Central Processing Unit (CPU), or it can be implemented as other general-purpose processors, PLCs (Programmable Logic Controllers), FPGAs (Field-Programmable Gate Arrays), DSPs (Digital Signal Processors), or ASICs (Application Specific Integrated Circuits). The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0141] Figure 6 This is a schematic diagram of the hardware structure of a listening device according to an embodiment of the present invention. Figure 6 As shown, the eavesdropping device includes at least a first HPLC chip 610 and a second HPLC chip 620, which are bidirectionally connected. The first HPLC chip 610 is configured to listen to the data of the eavesdropped network on a preset default frequency band and transmit the data of the eavesdropped network that meets a preset data eavesdropping reporting mode to the second HPLC chip 620 in the eavesdropping device. The second HPLC chip 620 is configured to receive the data of the eavesdropped network that meets the preset data eavesdropping reporting mode transmitted by the first HPLC chip 610 and send it to a power line broadband carrier communication network.
[0142] In addition to the first HPLC chip 610 and the second HPLC chip 620, such as Figure 7As shown, the listening device further comprises a coupling circuit 710, a receiving circuit 720 and a sending circuit 730, the first HPLC chip 610 is connected to the receiving circuit 720, and the second HPLC chip 620 is connected to the receiving circuit 720 and the sending circuit 730, wherein the coupling circuit 710 is configured to be coupled to the power line 740 and the receiving circuit 720 and the sending circuit 730, transmit the power line carrier analog signal extracted from the power line 740 to the receiving circuit 720, and inject the power line carrier analog signal received from the sending circuit 730 into the power line 740; the receiving circuit 720 is configured to convert the power line carrier analog signal output from the coupling circuit 710 into a digital signal and transmit it to the first HPLC chip 610 and the second HPLC chip 620; and the sending circuit 730 is configured to receive the digital signal transmitted by the second HPLC chip 620 and convert it into a power line carrier analog signal and transmit it to the coupling circuit 710.
[0143] The second HPLC chip 620 is further configured to transmit the listening configuration instruction sent by the listening server or the upper computer to the first HPLC chip 610, and if the listening configuration instruction needs to be replied, receive the reply instruction of the first HPLC chip 610 to the listening configuration instruction and transmit it to the listening server or the upper computer; and the first HPLC chip is further configured to directly receive the listening configuration instruction from the upper computer, or receive the listening configuration instruction sent by the listening server or the upper computer from the second HPLC chip 620, and if the listening configuration instruction needs to be replied, transmit the reply instruction to the listening configuration instruction to the second HPLC chip 620 or directly to the upper computer.
[0144] The embodiment of the present application further provides a listening server, which at least comprises the listening device as described above. Figure 5 The listening device as described in the embodiment.
[0145] The embodiment of the present application further provides a listening system, which at least comprises the listening server 810 as described above and the listening device 820 as described above. Figure 8 As shown, the listening system at least comprises the listening server 810 as described above and the listening device 820 as described above.
[0146] The embodiment of the present application provides a storage medium for storing a computer program, and the computer program is used to realize the listening method of any method embodiment.
[0147] The chip is used for supporting a receiving device (for example, a terminal device, a network device, etc.) to implement the functions shown in the embodiments of the present application, and is specifically used in a chip system. The chip system can be composed of the chip, or can include the chip and other discrete devices. When the chip is used in the receiving device to implement the above method, the chip includes a processing unit, and further, the chip can also include a communication unit. The processing unit can be, for example, a processor, and when the chip includes the communication unit, the communication unit can be, for example, an input / output interface, a pin, or a circuit, etc. The processing unit performs all or part of the actions performed by each processing module in the embodiments of the present application, and the communication unit can perform corresponding receiving or sending actions. In another specific embodiment, the processing module of the receiving device in the embodiments of the present application can be the processing unit of the chip, and the receiving module or the sending module of the control device is the communication unit of the chip.
[0148] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, device (apparatus) or computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) containing computer usable program code.
[0149] The present application is described with reference to flowcharts according to the methods, devices (apparatuses) and computer program products of the embodiments of the present application. It should be understood that each flow in the flowcharts can be implemented by computer program instructions.
[0150] These computer program instructions can be stored in a computer readable memory capable of directing a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer readable memory produce a manufactured product including instruction devices, which implement the functions specified in the flow Figure 1 of the flow or multiple flows.
[0151] These computer program instructions can also be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in the flow Figure 1 of the flow or multiple flows.
[0152] Another embodiment of the present application relates to a non-volatile storage medium for storing a computer readable program for a computer to execute part or all of the above method embodiments.
[0153] That is, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment methods can be completed by a program stored in a storage medium, including a plurality of instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0154] The above merely describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A listening method, applied to a listening device, characterized in that, The method includes: The first HPLC chip in the listening device listens to the data of the network being monitored on a preset default frequency band; The first HPLC chip in the listening device transmits the data of the monitored network that meets the preset data listening and reporting mode to the second HPLC chip in the listening device, and the second HPLC chip in the listening device sends it to the power line broadband carrier communication network. The data monitoring and reporting modes include monitoring and reporting all data transmitted bidirectionally, monitoring and reporting only all data transmitted downlink, monitoring and reporting only all data transmitted uplink, monitoring and reporting application layer data transmitted bidirectionally, monitoring and reporting only application layer data transmitted downlink, monitoring and reporting only application layer data transmitted uplink, and prohibiting any data reporting. The method further includes: the first HPLC chip receiving a monitoring configuration command sent by a monitoring server or a host computer, the monitoring configuration command being used to configure monitoring-related parameters, the monitoring configuration command being sent in the following manner: The host computer is directly connected to the serial port of the first HPLC chip, and the host computer directly sends the listening configuration command to the first HPLC chip through the serial port; or The host computer is connected to the second HPLC chip via a serial port. After receiving the listening configuration command, the second HPLC chip forwards it to the first HPLC chip through another serial port or SPI interface; or The monitoring server issues a monitoring configuration command to the second HPLC chip via the HPLC network. After receiving the monitoring configuration command, the second HPLC chip forwards it to the first HPLC chip via a serial port or SPI interface.
2. The method according to claim 1, characterized in that, The method further includes: The first HPLC chip processes the listening configuration command. If the listening configuration command requires a response, it sends a response command to the listening server or the host computer.
3. The method according to claim 2, characterized in that, The first HPLC chip processes the listening configuration command. If the listening configuration command requires a response, it sends a response command to the listening server or the host computer, specifically including: The first HPLC chip receives a configuration monitoring frequency band instruction sent by the monitoring server or the host computer, and obtains the target frequency band to be switched to contained in the configuration monitoring frequency band instruction; Switch its own listening frequency band from the default frequency band to the target frequency band; If the current frequency offset value is not the preset default frequency offset value, then the current frequency offset value is set to the default frequency offset value. The network being monitored is monitored on the target frequency band; Send a response command to the monitoring server or the host computer to confirm the configuration monitoring frequency band command; And / or, The first HPLC chip receives a configuration command for monitoring frequency offset synchronization target network objects sent by the monitoring server or the host computer; Send a response command to the monitoring server or the host computer to confirm the configuration monitoring frequency offset synchronization target network object command; Synchronize its own listening frequency offset to the target network object; And / or, The first HPLC chip receives a configuration data listening and reporting mode instruction sent by the listening server or the host computer, and obtains the data listening and reporting mode contained in the configuration data listening and reporting mode instruction; Change the current data listening and reporting mode to the data listening and reporting mode contained in the configuration data listening and reporting mode instruction, and listen and report the monitored network data according to the data listening and reporting mode contained in the configuration data listening and reporting mode instruction; Send a response instruction to the listening server or the host computer to confirm the configuration data listening and reporting mode instruction.
4. A method for eavesdropping, applied to an eavesdropping server, characterized in that, The method includes: The first HPLC chip in the listening device reports data from the monitored network that meets a preset data listening and reporting mode, which is detected by the first HPLC chip and reported by the second HPLC chip in the listening device. The data listening and reporting modes include listening and reporting all data transmitted bidirectionally, listening and reporting only all data transmitted downlink, listening and reporting only all data transmitted uplink, listening and reporting application layer data transmitted bidirectionally, listening and reporting only application layer data transmitted downlink, listening and reporting only application layer data transmitted uplink, and prohibiting any data reporting. The method further includes sending a listening configuration command to the listening device, the listening configuration command being used to configure parameters related to listening.
5. The method according to claim 4, characterized in that, The method further includes: If the listening configuration command requires a response, the system receives the response command from the listening device for the listening configuration command.
6. The method according to claim 5, characterized in that, If the listening configuration command requires a response, receiving the response command from the listening device for the listening configuration command specifically includes: Send a configuration listening frequency band command to the listening device, wherein the configuration listening frequency band command includes the target frequency band to be switched to; Receive the response command from the listening device in response to the configured listening frequency band command; And / or, Send a configuration command to the listening device to the target network object for frequency offset synchronization; Receive the response instruction from the listening device in response to the instruction to configure the frequency offset synchronization target network object; And / or, Send a configuration data listening and reporting mode instruction to the listening device, wherein the configuration data listening and reporting mode instruction includes the data listening and reporting mode to be configured; Receive the response instruction from the listening device for the configuration data listening and reporting mode instruction.
7. The method according to claim 6, characterized in that, The method further includes: If all data from the monitored network is received, the monitoring server obtains the application layer data of the monitored network from all the data received from the monitored network; and performs statistical operations using the obtained application layer data of the monitored network or the application layer data of the monitored network directly received from the monitoring device, wherein the statistical operations include: assessing line loss, statistically analyzing line load or statistically analyzing energy consumption data.
8. A listening device, disposed on a listening server, characterized in that, At least including: The monitoring data receiving module is configured to receive data from the monitored network that meets a preset data monitoring and reporting mode, reported by the first HPLC chip in the monitoring device through the second HPLC chip in the monitoring device. The data listening and reporting modes include listening and reporting all data transmitted bidirectionally, listening and reporting only all data transmitted downlink, listening and reporting only all data transmitted uplink, listening and reporting application layer data transmitted bidirectionally, listening and reporting only application layer data transmitted downlink, listening and reporting only application layer data transmitted uplink, and prohibiting any data reporting. The device is further configured to send a listening configuration command to the listening device, the listening configuration command being used to configure parameters related to listening.
9. A listening server, characterized in that, It includes a memory and a processor, wherein the processor executes program instructions in the memory for implementing the method according to any one of claims 4 to 7.
10. A listening device, characterized in that, At least including: A first HPLC chip and a second HPLC chip, wherein the first HPLC chip and the second HPLC chip are bidirectionally connected, wherein... The first HPLC chip is configured to listen to the data of the monitored network on a preset default frequency band, and transmit the data of the monitored network that meets the preset data listening and reporting mode to the second HPLC chip in the listening device. The second HPLC chip is configured to receive data from the monitored network that meets a preset data monitoring and reporting mode, transmitted by the first HPLC chip, and send it to the power line broadband carrier communication network. The data monitoring and reporting modes include monitoring and reporting all data transmitted bidirectionally, monitoring and reporting only all data transmitted downlink, monitoring and reporting only all data transmitted uplink, monitoring and reporting application layer data transmitted bidirectionally, monitoring and reporting only application layer data transmitted downlink, monitoring and reporting only application layer data transmitted uplink, and prohibiting any data reporting. The first HPLC chip is also configured to receive listening configuration commands sent by a listening server or a host computer. These listening configuration commands are used to configure parameters related to listening. The listening configuration commands are sent in the following ways: the host computer is directly connected to the serial port of the first HPLC chip, and the host computer directly sends the listening configuration commands to the first HPLC chip through the serial port; or, the host computer is connected to the serial port of the second HPLC chip, and the second HPLC chip, after receiving the listening configuration commands, forwards them to the first HPLC chip through another serial port or SPI interface; or, the listening server issues listening configuration commands to the second HPLC chip through the HPLC network, and the second HPLC chip, after receiving the listening configuration commands, forwards them to the first HPLC chip through a serial port or SPI interface.
11. The eavesdropping device according to claim 10, characterized in that, The listening device further includes: a coupling circuit, a receiving circuit, and a transmitting circuit, wherein the first HPLC chip is connected to the receiving circuit, and the second HPLC chip is connected to both the receiving circuit and the transmitting circuit. The coupling circuit is configured to couple the power line to the receiving circuit and the transmitting circuit, transmit the power line carrier analog signal extracted from the power line to the receiving circuit, and inject the power line carrier analog signal received from the transmitting circuit into the power line. The receiving circuit is configured to convert the power line carrier analog signal output from the coupling circuit into a differential analog signal and send it to the second HPLC chip and the first HPLC chip. The transmitting circuit is configured to receive the differential analog signal sent from the second HPLC chip, convert it into a power line carrier analog signal, amplify it, and then send it to the coupling circuit.
12. The eavesdropping device according to claim 11, characterized in that, in, The second HPLC chip is further configured to: if the listening configuration command requires a response, receive the response command from the first HPLC chip to the listening configuration command and send it to the listening server or the host computer; The first HPLC chip is further configured to: if the listening configuration command requires a response, send a response command to the second HPLC chip or directly to the host computer.
13. A listening system, characterized in that, At least including: The eavesdropping server as described in claim 9 and the eavesdropping device as described in any one of claims 10 to 12.
14. A storage medium, characterized in that, The storage medium is used to store a computer program, which is used to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent module realization method capable of realizing single-core dual-channel based on HPLC communication
CN112398508A
System for integration of the internet and amr by using power line communication
KR100635700B1