CN115174523A - Automatic addressing system and method for sensor - Google Patents
Automatic addressing system and method for sensor Download PDFInfo
- Publication number
- CN115174523A CN115174523A CN202210870960.8A CN202210870960A CN115174523A CN 115174523 A CN115174523 A CN 115174523A CN 202210870960 A CN202210870960 A CN 202210870960A CN 115174523 A CN115174523 A CN 115174523A
- Authority
- CN
- China
- Prior art keywords
- stage
- digital module
- addressing
- power
- information processor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention discloses an automatic addressing system and method of a sensor, which comprises a plurality of digital modules connected in series; each digital module is connected with a sensor, and an information processor, a power switch device, an on-off feedback device, a front-stage power-in plug connector and a rear-stage power-out plug connector are arranged in each digital module; the information processor is connected with the power switch device and the on-off feedback device; the power supply switch device is connected with both the front-stage power-in plug connector and the rear-stage power-out plug connector; the on-off feedback device is connected with the rear-stage power-out plug connector; and the rear-stage power-out plug connector and the front-stage power-in plug connector of two adjacent digital modules are connected. The wiring is simple, and automatic addressing of the sensors can be realized without an additional control unit.
Description
Technical Field
The invention belongs to the field of address addressing, and relates to an automatic addressing system and method for a sensor.
Background
The sensor is used as a basic part in the field of the Internet of things, and along with the popularization and development of the Internet of things technology, the usage amount and the frequency are increased year by year. In the fields of storage weighing, intelligent goods shelves and the like, early sensors need to be automatically addressed manually and then installed, and the operation method has high labor cost and is easy to make mistakes and difficult to be suitable for large-scale batch sensor application scenes; with the update and development of the technology, methods for automatically addressing parts of sensors appear, but most of the methods need additional control units to perform logical control of addressing, and the methods need parallel connection during connection, so that great difficulty is caused to field wiring, and the methods are not beneficial to later replacement and maintenance.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned shortcomings of the prior art, and provides an automatic addressing system and method for sensors, which is simple in wiring and capable of implementing automatic addressing of a plurality of sensors without an additional control unit.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
an automatic addressing system for sensors includes a plurality of digital modules connected in series;
each digital module is connected with a sensor, and an information processor, a power switch device, an on-off feedback device, a preceding-stage power-in plug connector and a rear-stage power-out plug connector are arranged in each digital module;
the information processor is connected with the power switch device and the on-off feedback device; the power switch device is connected with the front-stage power-in plug connector and the rear-stage power-out plug connector; the on-off feedback device is connected with the rear-stage power-out plug connector; and the rear-stage power-out plug connectors and the front-stage power-in plug connectors of two adjacent digital modules are connected.
Preferably, each digital module is internally provided with a rear-stage communication plug connector and a front-stage communication plug connector which are connected with each other.
Furthermore, the rear-stage communication plug connector and the front-stage communication plug connector of two adjacent digital modules are connected.
Preferably, an analog sensor is connected to each digital module.
Furthermore, the digital module and the analog sensor are connected in a wired mode.
Preferably, the number of digital modules connected in series is at most 32.
Preferably, the information processor is connected with a data processor when the address is automatically addressed.
A method for automatically addressing a sensor based on the system comprises the following steps:
s1, electrifying a digital module;
s2, the on-off feedback device detects the level of the rear-stage electric connector and feeds the level back to the information processor, and the information processor judges whether the level fed back by the on-off feedback device is a high level or a low level;
s3, if the level is high level, the digital module represents that the digital module has already carried out addressing operation, the subsequent addressing operation is ignored, and if the level is low level, the digital module waits for receiving a broadcast address instruction;
s4, the information processor receives the broadcast address N, sets the self address as N +1, and sets the self address as 1 if the broadcast address instruction is not received within the waiting set time;
s5, turning on a power switch device of the current digital module, so that the front-stage power-in connector is communicated with the rear-stage power-out connector to supply power to the next-stage digital module;
s6, the current digital module broadcasts the address of the current digital module, so that the next-stage digital module can receive the address of the current broadcast;
and S7, after S1-S6, the addressing operation of a single sensor is finished, and when each digital module in the series system executes S1-S6, the addressing operation of all the sensors is finished.
Preferably, in S4, the data processor is used to transmit and receive the broadcast address received by the information processor.
Preferably, in S4, the set time is 50-70S.
Compared with the prior art, the invention has the following beneficial effects:
the invention adopts the on-off feedback device to detect the level of the rear-stage power outlet connector, adopts the information processor to judge whether the feedback level of the on-off feedback device is high level or low level so as to judge whether addressing is carried out, adopts the power switch device to control the disconnection and connection of the front-stage power inlet connector and the rear-stage power outlet connector, and can connect a plurality of digital modules in series without an additional control unit so as to realize the automatic addressing of a plurality of sensors.
Drawings
FIG. 1 is a schematic diagram of an automated addressing system for sensors according to the present invention;
FIG. 2 is a flow chart of the method for automatically addressing the sensor according to the present invention.
Wherein: 1-a digital module; 2-an analog sensor; 3-an information processor; 4-a power switching device; 5-on-off feedback device; 6-rear-stage communication plug connector; 7-preceding stage communication plug connector; 8-preceding stage feeding electric connector; and 9-rear-stage outlet electric connectors.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments; all other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
It should be noted that the terms "front," "back," "left," "right," "upper" and "lower" used in the following description refer to directions in the drawings, and the terms "inner" and "outer" refer to directions toward and away from, respectively, the geometric center of a particular component.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, the automatic addressing system for sensors according to the present invention comprises a plurality of digital modules 1 connected in series.
Each digital module 1 is connected with an analog sensor 2 in a wired mode, and an information processor 3, a power switch device 4, an on-off feedback device 5, a preceding stage communication plug connector 6, a rear stage communication plug connector 7, a preceding stage power-in plug connector 8 and a rear stage power-out plug connector 9 are arranged inside each digital module 1.
The number of digital modules 1 connected in series is at most 32.
The information processor 3 is connected with a power switch device 4; the information processor 3 is connected with an on-off feedback device 5; the information processor 3 is connected with a preceding-stage communication connector 6; the front-stage communication plug connector 6 is connected with the rear-stage communication plug connector 7; the power switch device 4 is connected with a preceding-stage power-in connector 8; the power switch device 4 is connected with the rear-stage power-out plug-in connector 9; the on-off feedback device 5 is connected with the rear-stage power-out plug-in connector 9; the rear-stage power-out plug connectors 8 and the front-stage power-in plug connectors 9 of two adjacent sensors are connected; the rear-stage communication plug connector 6 and the front-stage communication plug connector 7 of two adjacent sensors are connected.
The information processor 3 can control the opening and closing of the power switch device 4; when the power switch device 4 is opened, the front-stage power-in plug connector 9 is connected with the rear-stage power-out plug connector 8; when the power switch device 4 is closed, the front-stage power-in plug connector 9 is disconnected with the rear-stage power-out plug connector 8; when the preceding-stage power-in plug connector 9 is connected with the subsequent-stage power-out plug connector 8, the on-off feedback device 5 feeds back a connection signal to the information processor 3.
The information processor 3 can receive a fixed switch control instruction and open and close the power switch device 4; the information processor 3 turns off the conduction of the power switching device 4 by default; the information processor 3 may decide whether to feed back the addressing instructions based on the state of the on-off feedback device 5.
When addressing, the rear-stage power-out connector 8 of each digital module 1 is connected with the front-stage power-in connector 9 of the next digital module 1; the back-stage communication plug 6 of each digital module 1 is connected to the front-stage communication plug 7 of the next digital module 1.
After the digital module 1 is powered on, each sensor performs the process shown in fig. 2 once, and the whole serial system completes the addressing operation, and the automatic addressing process of the sensors is described in detail below.
Step1: the digital module 1 is powered up.
Step2: the on-off feedback device 5 detects the level of the rear-stage output electric connector 9 and feeds the level back to the information processor 3, and the information processor 3 judges whether the level fed back by the on-off feedback device 5 is a high level or a low level.
Step3: if the level is high, it means that the digital module 1 has performed the addressing operation, the subsequent addressing operation will be ignored, and if the level is low, the digital module 1 will wait to receive the broadcast address command.
Step4: if the broadcast address N sent by the data processor is received by the information processor 3 within a period of time, the self address is set to N +1, and if the broadcast address instruction is not received within the waiting set time, the self address is set to 1.
In this embodiment, the set time is 50-70s.
Step5: and (3) turning on the power switch device 4 of the current digital module 1 to enable the front-stage power-in connector 9 to be communicated with the rear-stage power-out connector 8, so as to supply power for the next-stage digital module 1.
Step6: the current digital module 1 broadcasts its own address so that the next-stage digital module 1 can receive the currently broadcasted address.
After all the steps are finished, the addressing operation of a single sensor is finished, and when each digital module 1 in the series system executes the operation, the addressing operation of each sensor can be finished.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
It is to be understood that the above description is intended to be illustrative, and not restrictive. Many embodiments and many applications other than the examples provided would be apparent to those of skill in the art upon reading the above description. The scope of the present teachings should, therefore, be determined not with reference to the above description, but should instead be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled. The disclosures of all articles and references, including patent applications and publications, are hereby incorporated by reference for all purposes. The omission in the foregoing claims of any aspect of subject matter that is disclosed herein is not intended to forego such subject matter, nor should the applicant consider that such subject matter is not considered part of the disclosed subject matter.
Claims (10)
1. An automatic addressing system for sensors, characterized by comprising a plurality of digital modules (1) connected in series;
each digital module (1) is connected with a sensor, and an information processor (3), a power switch device (4), an on-off feedback device (5), a preceding-stage power-in plug connector (8) and a rear-stage power-out plug connector (9) are arranged in each digital module (1);
the information processor (3) is connected with the power switch device (4) and the on-off feedback device (5); the power switch device (4) is connected with the front-stage power-in plug connector (8) and the rear-stage power-out plug connector (9); the on-off feedback device (5) is connected with the rear-stage power-out plug-in connector (9); the rear-stage outlet connectors (8) and the front-stage inlet connectors (9) of two adjacent digital modules (1) are connected.
2. The automatic addressing system for sensors according to claim 1, characterized in that each digital module (1) is internally provided with a post-communication plug (6) and a pre-communication plug (7) connected to each other.
3. The automatic addressing system for sensors according to claim 2, characterized in that the communication connectors (6) of the back stage and the communication connectors (7) of the front stage of two adjacent digital modules (1) are connected.
4. Automatic addressing system for sensors according to claim 1, characterized in that one analog sensor (2) is connected to each digital module (1).
5. The system for automatic addressing of sensors according to claim 2, characterized in that the digital module (1) is connected to the analog sensor (2) by means of wires.
6. The automatic addressing system for sensors according to claim 1, characterized in that the number of digital modules (1) connected in series is at most 32.
7. The system for automatic addressing of sensors according to claim 1, characterized in that the information processor (3) is connected to a data processing unit for automatic addressing.
8. A method for automatic addressing of sensors based on the system according to any of claims 1 to 7, characterized in that it comprises the following steps:
s1, powering on a digital module (1);
s2, the on-off feedback device (5) detects the level of the rear-stage electric connector (7) and feeds the level back to the information processor (3), and the information processor (3) judges whether the level fed back by the on-off feedback device (5) is a high level or a low level;
s3, if the level is high level, the digital module (1) is represented to have already carried out addressing operation, the subsequent addressing operation is ignored, and if the level is low level, the digital module (1) waits for receiving a broadcast address instruction;
s4, the information processor receives (3) the broadcast address N, then sets the self address as N +1, if the broadcast address instruction is not received within the waiting set time, then sets the self address as 1;
s5, turning on a power switch device (4) of the current digital module (1), so that a front-stage power-in connector (8) is communicated with a rear-stage power-out connector (9) to supply power to a next-stage digital module (1);
s6, the current digital module (1) broadcasts the address of the current digital module, so that the next-stage digital module (1) can receive the address of the current broadcast;
and S7, after S1-S6, the addressing operation of a single sensor is finished, and when each digital module (1) in the series system executes S1-S6, the addressing operation of all the sensors is finished.
9. The method of automatically addressing sensors according to claim 8, characterized in that in S4, a data processor is used to send and receive the broadcast address of the information processor (3).
10. The method of automatically addressing a sensor according to claim 8, wherein in S4 the set time is 50-70S.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210870960.8A CN115174523A (en) | 2022-07-22 | 2022-07-22 | Automatic addressing system and method for sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210870960.8A CN115174523A (en) | 2022-07-22 | 2022-07-22 | Automatic addressing system and method for sensor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115174523A true CN115174523A (en) | 2022-10-11 |
Family
ID=83497771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210870960.8A Pending CN115174523A (en) | 2022-07-22 | 2022-07-22 | Automatic addressing system and method for sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115174523A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204373691U (en) * | 2015-01-21 | 2015-06-03 | 深圳万慧通自动化有限公司 | A kind of can the Study on Intelligent Sensors of Temperature of automatic addressing |
US20180209820A1 (en) * | 2017-01-26 | 2018-07-26 | Infineon Technologies Ag | Sensor controller, sensor signal receiver, incremental magnetic speed sensor module, method for a sensor controller, method for a sensor signal receiver and computer program |
CN112557882A (en) * | 2021-02-19 | 2021-03-26 | 深圳市明微电子股份有限公司 | Chip initial address self-adaptive detection method, device, equipment and storage medium |
CN112653743A (en) * | 2020-12-16 | 2021-04-13 | 广州鲁邦通物联网科技有限公司 | Multi-sensor addressing method in RS485 bus, data acquisition equipment and system |
CN113162831A (en) * | 2021-02-03 | 2021-07-23 | 太原向明智控科技有限公司 | Cascadable self-addressing tilt angle sensor and addressing method thereof |
WO2021168629A1 (en) * | 2020-02-24 | 2021-09-02 | 东莞新能安科技有限公司 | Battery management system and addressing method |
CN214154532U (en) * | 2020-12-24 | 2021-09-07 | 浙江理工大学 | Sensing communication node circuit and serial communication system |
-
2022
- 2022-07-22 CN CN202210870960.8A patent/CN115174523A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204373691U (en) * | 2015-01-21 | 2015-06-03 | 深圳万慧通自动化有限公司 | A kind of can the Study on Intelligent Sensors of Temperature of automatic addressing |
US20180209820A1 (en) * | 2017-01-26 | 2018-07-26 | Infineon Technologies Ag | Sensor controller, sensor signal receiver, incremental magnetic speed sensor module, method for a sensor controller, method for a sensor signal receiver and computer program |
WO2021168629A1 (en) * | 2020-02-24 | 2021-09-02 | 东莞新能安科技有限公司 | Battery management system and addressing method |
CN112653743A (en) * | 2020-12-16 | 2021-04-13 | 广州鲁邦通物联网科技有限公司 | Multi-sensor addressing method in RS485 bus, data acquisition equipment and system |
CN214154532U (en) * | 2020-12-24 | 2021-09-07 | 浙江理工大学 | Sensing communication node circuit and serial communication system |
CN113162831A (en) * | 2021-02-03 | 2021-07-23 | 太原向明智控科技有限公司 | Cascadable self-addressing tilt angle sensor and addressing method thereof |
CN112557882A (en) * | 2021-02-19 | 2021-03-26 | 深圳市明微电子股份有限公司 | Chip initial address self-adaptive detection method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106655399B (en) | Electric vehicle charging information processing method and device, charger and vehicle | |
CN105022468A (en) | USB adapter and USB line | |
CN102913428A (en) | Fan module testing system | |
CN102368633A (en) | Solar energy and mains supply complementation controller | |
CN115174523A (en) | Automatic addressing system and method for sensor | |
CN109243114A (en) | A kind of automatic vending machine | |
CN111323648A (en) | RS485 cascaded multi-user electric energy meter and data transmission mode thereof | |
US12015293B2 (en) | Multi-port energy storage battery | |
US10367440B2 (en) | Servo actuator ID setting method | |
CN108548956A (en) | Power consumption test device and method for intelligent terminal | |
US9000609B2 (en) | Extension cord with AC and DC outputs for coupling AC and DC sources | |
CN203482318U (en) | HDMI (High Definition Multimedia Interface) input interface circuit compatible with MHL (Mobile High-Definition Link) and electronic equipment | |
CN216672602U (en) | Multi-power supply system distribution unit | |
CN212134808U (en) | RS485 cascaded multi-user electric energy meter | |
CN201373997Y (en) | Multi-point switch control circuit system and controller thereof | |
CN108594022A (en) | A kind of intelligent capacitor automatization test system and method | |
CN211349338U (en) | Information acquisition system and electrical equipment | |
CN109586393B (en) | Dual-battery charging device and system | |
CN208314077U (en) | A kind of intelligent capacitor automatization test system | |
CN102403744B (en) | Mobile phone charging circuit and charging method | |
CN214626482U (en) | Bus shelter power supply and distribution system | |
CN110471326A (en) | A kind of more hoistable platform control systems and control method | |
CN220671562U (en) | Automatic test line body of complete machine | |
CN201754561U (en) | Switch power supply module | |
CN221571542U (en) | Detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |