CN117970010B - Single-channel sampling unit, working method thereof and instrument and meter - Google Patents

Single-channel sampling unit, working method thereof and instrument and meter Download PDF

Info

Publication number
CN117970010B
CN117970010B CN202410365096.5A CN202410365096A CN117970010B CN 117970010 B CN117970010 B CN 117970010B CN 202410365096 A CN202410365096 A CN 202410365096A CN 117970010 B CN117970010 B CN 117970010B
Authority
CN
China
Prior art keywords
module
sampling
metering
processing module
channel sampling
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.)
Active
Application number
CN202410365096.5A
Other languages
Chinese (zh)
Other versions
CN117970010A (en
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.)
Jiangsu Huapeng Intelligent Instrument Technology Co ltd
Original Assignee
Jiangsu Huapeng Intelligent Instrument Technology 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 Jiangsu Huapeng Intelligent Instrument Technology Co ltd filed Critical Jiangsu Huapeng Intelligent Instrument Technology Co ltd
Priority to CN202410365096.5A priority Critical patent/CN117970010B/en
Publication of CN117970010A publication Critical patent/CN117970010A/en
Application granted granted Critical
Publication of CN117970010B publication Critical patent/CN117970010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a single-channel sampling unit, a working method thereof and an instrument and meter, wherein the single-channel sampling unit comprises a plurality of single-channel sampling devices, and the single-channel sampling devices comprise a processing module, a metering module and a mode selection switch which are respectively connected with the processing module; the processing modules in the single-channel sampling device are all connected through a CAN bus; the processing module is suitable for setting the first working mode of the master module or the second working mode of the slave module according to the selection of the mode selection switch; the processing module is suitable for carrying out information interaction through the CAN bus: when the processing module is a master module, the master module is suitable for determining metering sampling mode information and carrying out sampling work of a corresponding single-channel sampling device according to the determined metering sampling mode information, and meanwhile, the metering sampling mode information is synchronized into the slave module through the CAN bus. The system can realize the ad hoc network function, unify sampling modes and perform combination of various modes according to configuration requirements.

Description

Single-channel sampling unit, working method thereof and instrument and meter
Technical Field
The invention relates to a single-channel sampling unit, a working method thereof and an instrument.
Background
At present, the sampling and data use of the electric quantity play a very important role in the operation of an electric power system, and the health condition of the system, the fault condition of equipment and the use condition of electric energy can be known through the real-time sampling analysis of the electric quantity.
The current electric quantity measurement is mostly realized by providing data such as voltage, current, power, event, electric energy and the like in a mode of additionally installing a guide rail meter, a single-phase meter and a three-phase ammeter on a power supply line.
Chinese patent publication No. CN114336968a discloses a low voltage power distribution system and a data communication method of the low voltage power distribution system, in which the method is specifically described as follows: the gateway sends an electric quantity acquisition demand instruction to the CCO carrier module; the CCO carrier module is timed with the ammeter carrier module, the switch carrier module and the meter box carrier module and transmits the electric quantity required to be acquired per minute to the ammeter carrier module, the switch carrier module and the meter box carrier module; the electric meter carrier module, the switch carrier module and the meter box carrier module collect and store corresponding electric quantity every minute according to instruction requirements, and the data is transmitted through carrier communication; of course, the RS485 interface is adopted to transmit data, and the two data transmission modes are greatly influenced by space and electromagnetic environment in a complex environment, so that the arrangement of sampling points is restricted, and the acquisition and use of the data are influenced.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a single-channel sampling unit which can realize an ad hoc network function, unify sampling modes, can be used in a plurality of modes according to configuration requirements, reduces the complexity of selecting electrical measurement points and can be flexibly distributed.
In order to solve the technical problems, the technical scheme of the invention is as follows: the single-channel sampling unit comprises a plurality of single-channel sampling devices, wherein each single-channel sampling device comprises a processing module, a metering module and a mode selection switch, and the metering module and the mode selection switch are respectively connected with the processing module; wherein,
The processing modules in the single-channel sampling device are all connected through a CAN bus;
the metering module is suitable for acquiring the gas flow information and sending the gas flow information to the processing module;
The processing module is suitable for setting a first working mode of the master module or a second working mode of the slave module according to the selection of the mode selection switch;
the processing module is suitable for carrying out information interaction through a CAN bus: when the processing module is a main module, the main module is suitable for determining metering sampling mode information and carrying out sampling work of a corresponding single-channel sampling device according to the determined metering sampling mode information, and the metering sampling mode information is synchronized into a slave module through a CAN bus; when the processing module is a slave module, the slave module is suitable for receiving metering sampling mode information sent by the master module through the CAN bus, sampling work of a corresponding single-channel sampling device is carried out according to the metering sampling mode information, and sampling data information in the slave module is synchronized into the master module through the CAN bus.
Further, when the processing module is a master module, the master module is further adapted to integrate the sampled data information in the master module with the sampled data information in the slave module.
Further, in order to realize CAN communication so as to conveniently transmit data, the single-channel sampling device further comprises a CAN communication module connected with the processing module, and the CAN communication module is connected with a CAN bus.
Further, in order to input sampling mode information and upload sampling data information to the processor, the single-channel sampling device further comprises a serial communication module connected with the processing module, and the serial communication module is suitable for carrying out information interaction based on the sampling mode information and the sampling data information.
Further, the single channel sampling device also comprises a crystal oscillator module, wherein the crystal oscillator module is suitable for providing clock frequency for the processing module.
Further, the sampling mode information includes a sampled data type item and a sampling period.
Further, in order to well realize the ad hoc network, when the processing module is the master module, the master module is adapted to send a query frame through the CAN bus to find the slave module of the next stage, and add the address of the slave module to the management list of the master module to complete the networking work, and then query the slave module according to a set interval period to dynamically optimize the networking.
Further, the specific mode of synchronizing the sampling data information in the slave module to the master module through the CAN bus is a mode of polling by the master module or reporting the change of the slave module.
The invention also provides a working method of the single-channel sampling unit, which comprises the following steps:
after the processing module is powered on, the working mode of the processing module is determined by reading the state of the mode selection switch:
When the processing module is a main module, the main module is suitable for determining metering sampling mode information and carrying out sampling work of a corresponding single-channel sampling device according to the determined metering sampling mode information, and the metering sampling mode information is synchronized into a slave module through a CAN bus;
when the processing module is a slave module, the slave module is suitable for receiving metering sampling mode information sent by the master module through a CAN bus, carrying out sampling work of a corresponding single-channel sampling device according to the metering sampling mode information, and synchronizing sampling data information in the slave module into the master module through the CAN bus.
The invention also provides an instrument and meter, which comprises the single-channel sampling device in the single-channel sampling unit.
After the technical scheme is adopted, the invention has the following beneficial effects:
1. The single-channel sampling unit is used as an electric measurement unit, a processing module CAN be selected as a main module or a slave module, and is connected through the CAN bus, after power-on, the self-networking is realized, and meanwhile, the sampling mode information CAN be synchronously sampled, so that the main module and the slave module CAN sample in a unified sampling mode, the slave module CAN transmit sampling data information back to the main module through the CAN bus and finally collect the sampling data information together, a one-to-one, one-to-many and many-to-many combination mode is provided according to the use situation of a user, the requirement of the user on flexible configuration management is met, the complexity of selecting electric measurement points is reduced, and the distribution is flexible.
2. The single-channel sampling device can be used as a component to bear the measuring function of the conventional meter, so that the development difficulty of the meter is reduced, meanwhile, as the single-channel sampling device adopts a single-channel modular design, the size of a product is effectively reduced, the type requirement of a customer is met, the correction difficulty in the production process is effectively reduced, and the production efficiency is improved to meet the requirement of industrial mass production.
Drawings
FIG. 1 is a block diagram of a single channel sampling device of the present invention;
fig. 2 is a schematic diagram of an application of the single channel sampling unit of the present invention.
Detailed Description
In order that the invention may be more readily understood, a more particular description of the invention will be rendered by reference to specific embodiments that are illustrated in the appended drawings.
As shown in fig. 1, a single-channel sampling unit comprises a plurality of single-channel sampling devices, wherein each single-channel sampling device comprises a processing module 1, a metering module 2 and a mode selection switch 3, wherein the metering module 2 and the mode selection switch 3 are respectively connected with the processing module 1; wherein,
The processing modules 1 in the single-channel sampling device are all connected through the CAN bus 10;
The metering module 2 is suitable for acquiring the gas flow information and sending the gas flow information to the processing module 1;
the processing module 1 is adapted to set to a first operation mode of the master module 20 or to a second operation mode of the slave module 30 according to the selection of the mode selection switch 3;
the processing module 1 is adapted to interact with information via the CAN bus 10: when the processing module 1 is the master module 20, the master module 20 is adapted to determine the metering sampling mode information and perform the sampling work of the corresponding single-channel sampling device according to the determined metering sampling mode information, and simultaneously synchronize the metering sampling mode information to the slave module 30 through the CAN bus 10; when the processing module 1 is the slave module 30, the slave module 30 is adapted to receive the metering sampling mode information sent by the master module 20 through the CAN bus 10, perform the sampling operation of the corresponding single channel sampling device according to the metering sampling mode information, and synchronize the sampling data information in the slave module 30 into the master module 20 through the CAN bus 10.
In this embodiment, the metering module 2, which is specifically a metering chip, is in the prior art, and is not described in detail in this embodiment; the processing module 1 is specifically an MCU.
Specifically, when the processing module 1 is the master module 20, the master module 20 is further adapted to integrate the sampled data information in the master module 20 with the sampled data information in the slave module 30.
Specifically, as shown in fig. 1, the single-channel sampling device may further include a CAN communication module 4 connected to the processing module 1, where the CAN communication module 4 is connected to the CAN bus 10; the CAN communication module 4 is specifically a CAN communication interface, and the formed CAN communication line provides a data interaction channel between the master module 20 and the slave module 30 under a complex working environment, so that reliable data transmission is ensured.
In addition, the mode selection switch 3 in this embodiment is used to set the master-slave operation mode of the processing module 1 (of course, the corresponding single-channel sampling device may also be referred to as "master-slave operation mode").
In this embodiment, as shown in fig. 1, the single-channel sampling device further includes a power supply 7, where the power supply 7 supplies power to the mode selection switch 3, the metering module 2, and the processing module 1.
Specifically, as shown in fig. 1, the single-channel sampling device further includes a serial port communication module 5 connected to the processing module 1, where the serial port communication module 5 is adapted to perform information interaction based on the sampling mode information and the sampling data information.
Specifically, as shown in fig. 1, the single channel sampling device further includes a crystal oscillator module 6, and the crystal oscillator module 6 is adapted to provide a clock frequency to the processing module 1.
Specifically, in the present embodiment, the sampling pattern information includes a sampling data type item and a sampling period.
Specifically, when the processing module 1 is the master module 20, the master module 20 is adapted to send a query frame through the CAN bus 10, find the slave module 30 of the next stage, add the address of the slave module 30 to the management list of the master module 20 to complete the networking work, and query the slave module 30 according to the set interval period to dynamically optimize the networking.
Specifically, the specific way to synchronize the sampled data information in the slave module 30 to the master module 20 through the CAN bus 10 is the way the master module 20 polls or the slave module 30 reports changes.
The working method of the single-channel sampling unit comprises the following steps:
after the processing module 1 (also referred to as a corresponding single-channel sampling device) is powered on, the working mode of the processing module 1 is determined by reading the state of the mode selection switch 3:
(1) When the processing module 1 is in the first operation mode of the main module 20, the processing module 1 performs the following actions:
Sending a query frame through the CAN communication interface, searching a next-stage slave module 30, adding the address of the slave module 30 into a self management list to finish networking work, and subsequently querying the slave module 30 according to a set interval period to dynamically optimize networking;
the master module 20 determines a sampling pattern (determining sampled data items, sampling periods) from the programming information and synchronizes the sampling pattern to the slave module 30 through the CAN communication interface;
The data of the slave module 30 is synchronized into the master module 20 by adopting the mode of polling by the master module 20 or reporting the change of the slave module 30 by the synchronization of the data of the master module 20;
The main module 20 performs electrical measurement of the present node according to the sampling mode and provides valid data;
The master module 20 integrates the sampled data of the ontology with the sampled data of the slave module 30 for use by other devices.
(2) When the processing module 1 is in the second operation mode of the slave module 30, the processing module 1 performs the following actions:
receiving a sampling scheme and data transmission through a CAN communication interface or a serial communication module 5;
the slave module 30 takes electrical measurements of the present node and provides valid data according to the sampling pattern.
The single-channel sampling device in the single-channel sampling unit of the embodiment may be provided in an instrument.
As shown in fig. 2, the single-channel sampling device of the present embodiment is used as a part of an internet of things sensing system to support multi-point distributed sampling, and the specific implementation steps are as follows:
step S01), the Internet of things equipment compiles different sampling schemes according to the sampling requirements and issues the different sampling schemes to the main module 20 through the serial port communication module 5;
step S02), the main module 20 converts the scheme content into a module local execution scheme, and performs scheme synchronization on the slave module 30 of the same level through the CAN communication interface;
Step S03), after synchronization is completed, based on a sampling scheme, the master module 20 and the slave module 30 execute a sampling task to generate electrical measurement data;
step S04) the master module 20 starts data synchronization to synchronize the data in the slave module 30 to the master module 20 through the CAN communication interface for data integration, so as to be used by other devices in the system.
The single-channel sampling device in this embodiment is used as a sampling component for user equipment (such as a three-phase meter and a single-phase meter), and the specific implementation steps are as follows:
Step S1), the user equipment establishes communication connection through the serial port communication module 5 of the body.
Step S2), the user equipment issues a sampling scheme to the processing module 1 through the serial port communication module 5, and the processing module 1 controls the metering module 2 to sample.
Step S3) the user equipment obtains the electrical measurement data in the processing module 1 through the serial port communication module 5.
The technical problems, technical solutions and advantageous effects solved by the present invention have been further described in detail in the above-described embodiments, and it should be understood that the above-described embodiments are only illustrative of the present invention and are not intended to limit the present invention, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims (8)

1. The single-channel sampling unit is characterized by comprising a plurality of single-channel sampling devices, wherein each single-channel sampling device comprises a processing module (1), a metering module (2) and a mode selection switch (3), wherein the metering module (2) and the mode selection switch (3) are respectively connected with the processing module (1); wherein,
The processing modules (1) in the single-channel sampling device are all connected through a CAN bus (10);
the single-channel sampling device further comprises a CAN communication module (4) connected with the processing module (1), wherein the CAN communication module (4) is connected with a CAN bus (10);
the CAN communication module (4) is a CAN communication interface;
The metering module (2) is suitable for collecting electrical quantity information and sending the electrical quantity information to the processing module (1);
The processing module (1) is adapted to set a first operation mode of the master module (20) or a second operation mode of the slave module (30) according to the selection of the mode selection switch (3);
The processing module (1) is suitable for information interaction through a CAN bus (10): when the processing module (1) is a main module (20), the main module (20) is suitable for determining metering sampling mode information and carrying out sampling work of a corresponding single-channel sampling device according to the determined metering sampling mode information, and meanwhile, the metering sampling mode information is synchronized into a slave module (30) through a CAN bus (10); when the processing module (1) is a slave module (30), the slave module (30) is suitable for receiving metering sampling mode information sent by the master module (20) through the CAN bus (10), carrying out sampling work of a corresponding single-channel sampling device according to the metering sampling mode information, and synchronizing sampling data information in the slave module (30) into the master module (20) through the CAN bus (10);
the single-channel sampling device further comprises a serial communication module (5) connected with the processing module (1), and the serial communication module (5) is suitable for information interaction based on metering sampling mode information and sampling data information.
2. The single channel sampling unit of claim 1, wherein the single channel sampling unit comprises a plurality of sampling units,
When the processing module (1) is a master module (20), the master module (20) is further adapted to integrate the sampled data information in the master module (20) with the sampled data information in the slave module (30).
3. The single channel sampling unit of claim 1, wherein the single channel sampling unit comprises a plurality of sampling units,
The single channel sampling device further comprises a crystal oscillator module (6), wherein the crystal oscillator module (6) is suitable for providing clock frequency for the processing module (1).
4. The single channel sampling unit of claim 1, wherein the single channel sampling unit comprises a plurality of sampling units,
The sampling mode information comprises a sampled data type item and a sampling period.
5. The single channel sampling unit of claim 1, wherein the single channel sampling unit comprises a plurality of sampling units,
When the processing module (1) is the main module (20), the main module (20) is suitable for sending a query frame through the CAN bus (10), searching for a next-stage slave module (30), adding the address of the slave module (30) to a management list of the main module (20) to complete networking work, and then querying the slave module (30) according to a set interval period to dynamically optimize networking.
6. The single channel sampling unit of claim 1, wherein the single channel sampling unit comprises a plurality of sampling units,
The specific mode of synchronizing the sampling data information in the slave module (30) into the master module (20) through the CAN bus (10) is a mode of polling by the master module (20) or reporting the changes of the slave module (30).
7. A method of operating a single channel sampling unit according to any one of claims 1 to 6, comprising the steps of:
After the processing module (1) is powered on, the working mode of the processing module (1) is determined by reading the state of the mode selection switch (3):
When the processing module (1) is a main module (20), the main module (20) is suitable for determining metering sampling mode information and carrying out sampling work of a corresponding single-channel sampling device according to the determined metering sampling mode information, and meanwhile, the metering sampling mode information is synchronized into a slave module (30) through a CAN bus (10);
When the processing module (1) is a slave module (30), the slave module (30) is suitable for receiving metering sampling mode information sent by the master module (20) through the CAN bus (10), sampling operation of a corresponding single-channel sampling device is carried out according to the metering sampling mode information, and sampling data information in the slave module (30) is synchronized into the master module (20) through the CAN bus (10).
8. An instrument comprising a single channel sampling device in a single channel sampling unit according to any one of claims 1 to 6.
CN202410365096.5A 2024-03-28 2024-03-28 Single-channel sampling unit, working method thereof and instrument and meter Active CN117970010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410365096.5A CN117970010B (en) 2024-03-28 2024-03-28 Single-channel sampling unit, working method thereof and instrument and meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410365096.5A CN117970010B (en) 2024-03-28 2024-03-28 Single-channel sampling unit, working method thereof and instrument and meter

Publications (2)

Publication Number Publication Date
CN117970010A CN117970010A (en) 2024-05-03
CN117970010B true CN117970010B (en) 2024-06-21

Family

ID=90858258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410365096.5A Active CN117970010B (en) 2024-03-28 2024-03-28 Single-channel sampling unit, working method thereof and instrument and meter

Country Status (1)

Country Link
CN (1) CN117970010B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083559A (en) * 2007-06-22 2007-12-05 中兴通讯股份有限公司 Method and system for switching master control module and slave control module

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176122B (en) * 2011-12-21 2017-10-24 北京普源精电科技有限公司 A kind of multi-channel data acquisition unit
WO2018006144A1 (en) * 2016-07-07 2018-01-11 Saletti Luiz Paulo Digital electronic meter for electrical magnitudes with six or more measurement elements
CN206099446U (en) * 2016-10-17 2017-04-12 三峡大学 Distributed battery management system
CN108282907B (en) * 2018-01-29 2023-04-07 深圳市同科联赢科技有限公司 Electronic device, wireless networking system, wireless networking device, control method for wireless networking device, and storage device
JP6805201B2 (en) * 2018-04-20 2020-12-23 株式会社京三製作所 DC / DC converter and DC / DC converter control method
CN108872763A (en) * 2018-05-04 2018-11-23 国网浙江宁波市奉化区供电有限公司 A kind of earth detector and electrical leakage detecting method
CN111132110B (en) * 2019-12-26 2023-06-16 重庆物奇科技有限公司 Device master-slave role switching system and method for wireless communication
CN111082412A (en) * 2019-12-30 2020-04-28 科华恒盛股份有限公司 Synchronous current sharing method for parallel operation system
CN111355491B (en) * 2020-02-25 2023-03-28 北京物资学院 Single-channel analog signal sampling method and device
CN114336968B (en) * 2021-12-29 2024-04-30 广东电网有限责任公司 Low-voltage power distribution system and data communication method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083559A (en) * 2007-06-22 2007-12-05 中兴通讯股份有限公司 Method and system for switching master control module and slave control module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Buck变换器中DCR电流采样与均流技术的研究;陶金;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20180215(第2期);C042-494 *

Also Published As

Publication number Publication date
CN117970010A (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN109617628B (en) Multifunctional detection device and method for multi-meter-in-one acquisition equipment
CN102006159B (en) Multi-slave clock sampling value multi-interface synchronizing system based on IEEE1588
CN101335464A (en) Integrated control system for electricity distributing and metering
CN101951024B (en) Digital data acquisition device
CN108872910B (en) Timing system and method for online verification of power quality monitoring device
CN103825749A (en) Cascaded synchronous large-scale data collecting system based on network and distributed type power supply
EP3407465A1 (en) Method and system for operation monitoring and optimization of operation of a set of photovoltaic panels
CN102593955B (en) Comprehensive intelligent time frequency testing system and testing method
CN202166679U (en) Intelligent dynamic-collecting terminal for three-phase electric energy data
Clarizia et al. Smart meter systems for smart grid management
CN110912265B (en) Modular load power consumption information acquisition device
CN117970010B (en) Single-channel sampling unit, working method thereof and instrument and meter
CN103151835B (en) Sampling synchronization method and device of distributed DTU (Distribution Terminal Unit)
CN201364137Y (en) Bridge strain signal conditioner
CN102749864A (en) Bridge acceleration signal conditioner
CN202177664U (en) Single-phase electric energy data dynamic acquisition intelligent terminal
CN207853908U (en) Time synchronism apparatus towards power quality wireless monitor
CN115032449A (en) Electric energy metering method and device, electronic equipment, chip and readable storage medium
CN201812155U (en) Satellite synchronous slave clock device
CN113049865A (en) Power parameter detection device and method
CN107425934A (en) The time synchronism apparatus of intelligent substation on-line monitoring
CN209606534U (en) Distribution network terminal automatization test system
CN208128268U (en) Multichannel TIME-FREQUENCY ANALYSIS instrument
CN215641597U (en) Fault indication system and wireless synchronization device thereof
CN207010886U (en) Wide-area synchronous clock tester

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
GR01 Patent grant
GR01 Patent grant