CN109407569A - A kind of automatic tax location method based on SCM system - Google Patents

A kind of automatic tax location method based on SCM system Download PDF

Info

Publication number
CN109407569A
CN109407569A CN201710704428.8A CN201710704428A CN109407569A CN 109407569 A CN109407569 A CN 109407569A CN 201710704428 A CN201710704428 A CN 201710704428A CN 109407569 A CN109407569 A CN 109407569A
Authority
CN
China
Prior art keywords
equipment
location
scm system
address
singlechip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710704428.8A
Other languages
Chinese (zh)
Inventor
沈建兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG SKUO DIGITAL TECHNOLOGY Co Ltd
Original Assignee
ZHEJIANG SKUO DIGITAL 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 ZHEJIANG SKUO DIGITAL TECHNOLOGY Co Ltd filed Critical ZHEJIANG SKUO DIGITAL TECHNOLOGY Co Ltd
Priority to CN201710704428.8A priority Critical patent/CN109407569A/en
Publication of CN109407569A publication Critical patent/CN109407569A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The automatic tax location method based on SCM system that the present invention relates to a kind of, belong to mailing address automatic coding field, the SCM system includes more singlechip equipments, bus series connection is passed sequentially through between singlechip equipment, automatic location method of assigning is the following steps are included: a. judgment step: judging whether this singlechip equipment has assigned location according to interrupt signal;B. location situation query steps: is assigned according to the address that interrupt signal inquires each singlechip equipment in I2C bus;C. definition step: the case where according to inquiring, the address of each singlechip equipment is defined one by one in the way of progressively increasing.Automatic tax location method provided by the invention based on SCM system is able to solve the equipment based on single-chip microcontroller design and assigns location problem automatically, and high-efficient, and fault rate is small.The addition of decoding device can issue instruction to the equipment having connected, improve working efficiency, while also reducing maintenance cost.

Description

A kind of automatic tax location method based on SCM system
Technical field
The invention belongs to mailing address automatic coding field more particularly to a kind of automatic taxes based on SCM system Location method.
Background technique
Under the more and more intelligentized background of electronic equipment, if be mounted with inside a computer room or a cabinet more The same model device of platform, and administrative staff need to carry out each equipment address code or long-range control.Traditional tax location side Under formula efficiency is relatively low, need to design address code in equipment, or go to be written one by one by computer during debugging. Both the debug time of commissioning staff had been extended, there may be have the situation of artificial burning mistake.
Modern industry internet+background under, all devices require to realize long-range control by internet, if It needs individually to control each equipment, system must assign its unique address code, some products are on the market at present ICP/IP protocol is relied on, assigns an IP address for each equipment.But the equipment for being designed based on single-chip microcontroller, it is difficult to set It counts and the software of TCP/IP is supported to support, therefore other than needing a total IP address (being similar to master control device), His equipment is also required to an address code, and this address code completely can addressed mode be realized automatically by equipment.
Summary of the invention
Technical problems based on background technology, the present invention propose a kind of automatic tax location side based on SCM system Method can be fully solved problem above, greatly save the time of commissioning staff and reduce artificial setting address error rate, can also be with Solving ICP/IP protocol can not be the addressed problem of singlechip equipment.
For the attainment of one's purpose, technical solution provided by the invention are as follows:
The automatic tax location method based on SCM system that the present invention relates to a kind of, it is characterised in that: the single-chip microcontroller system System includes multiple singlechip equipments, passes sequentially through bus series connection between singlechip equipment, the automatic tax location method include with Lower step:
A. judgment step: judge whether this singlechip equipment has assigned location according to interrupt signal;
B. location situation query steps: is assigned according to the address that interrupt signal inquires each singlechip equipment in I2C bus;
C. definition step: the case where according to inquiring, in the way of progressively increasing one by one by the address of each singlechip equipment Definition.
Preferably, each singlechip equipment is equipped with two four core interfaces of A, B, and four core interfaces include an end I/O Mouthful, two I2C communication interfaces and a grounding ports are sequentially connected in series between singlechip equipment by 4 core cables.
Preferably, the step a includes:
A.1. the I/O detection mouth of the equipment interface A detects level, if level is not detected, initiates automatic assign Location program, oneself will assign location is 1;
A.2. if it is high level, program, which will not enter, assigns the location stage;
A.3. if low level, equipment enters automatic tax location program.
Preferably, the step b includes: that singlechip equipment by I2C accesses total built-in unit, obtains adjacent having assigned location The address of equipment.
Preferably, the step c includes:
It c.1. on the basis of neighbouring device address plus is own device address after 1 behind the address for obtaining neighbouring device;
C.2. after address obtains, the I/O mouth of equipment interface B sets low level, and next singlechip equipment, which enters, assigns location program.
Preferably, the 4 core cables include I2C communication line, altogether ground wire, detection line, and I2C communication line is for accessing bus On equipment, ground wire is for being grounded altogether, and detection line is for decision level height.
Preferably, the tax location process is the process of a transmitting, cannot be jumped, it is necessary to until total since first Built-in unit has all been assigned.
Preferably, it is calculated according to 8 binary address codes, this method at most can access 256 equipment on same bus.
Preferably, institute's tax location in need equipment must be connected hand in hand in the same space with 4 core cables.
Preferably, in SCM system, the singlechip equipment at beginning connects a decoding device, and decoding device passes through wireless Or wired connection network.
Preferably, the automatic tax location equipment can assign location after re-powering every time again, will not be to acquired in last time Address generate memory.
The beneficial effects of the invention are as follows
1, the addressed efficiency of equipment is improved, the addressed error rate of equipment is reduced,
2, the present invention can be used decoding device and send instruction to all equipment connected, improve work efficiency.
3, when there is an equipment to go wrong or can not communicate in system, system can detecte out and by decoding device Record reduces maintenance cost.
Detailed description of the invention
Fig. 1 is the structural block diagram of the automatic tax location method of the invention based on SCM system.
Fig. 2 is the schematic diagram of singlechip equipment of the present invention.
Specific embodiment
The technical scheme in the embodiments of the invention will be clearly and completely described below, it is clear that described implementation Example is only a part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's all other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
Referring to Fig.1, a kind of automatic tax location method based on SCM system, the SCM system includes multiple monolithics Machine equipment passes sequentially through bus series connection between singlechip equipment, the automatic tax location method the following steps are included:
A. judgment step: judge whether this singlechip equipment has assigned location according to interrupt signal;
B. location situation query steps: is assigned according to the address that interrupt signal inquires each singlechip equipment in I2C bus;
C. definition step: the case where according to inquiring, in the way of progressively increasing one by one by the address of each singlechip equipment Definition.
Referring to Fig. 2, each singlechip equipment is equipped with two four core interfaces of A, B, and four core interfaces include an end I/O Mouthful, two I2C communication interfaces and a grounding ports are sequentially connected in series between singlechip equipment, the monolithic at beginning by 4 core conducting wires Machine equipment connects a decoding device, and decoding device is by wirelessly or non-wirelessly connecting network.The 4 core cables are by Shenzhen The 4 core conducting wires of the model IDC-4P of the rich Electronics Co., Ltd. of gold, the singlechip equipment are by liking that special Meier produces 8 machines of ATMEGA8.Decoding device is decoded using the WG01 type produced by Zhejiang Xi Gu Digital Technology Co., Ltd Terminal device.
The step a includes:
A.1 the I/O detection mouth of the equipment interface A detects level, if level is not detected, initiates automatic tax location Program, oneself will assign location is 1;
A.2 if it is high level, program, which will not enter, assigns the location stage;
A.3 if low level, equipment enters automatic tax location program.
The step b includes: that singlechip equipment by I2C accesses total built-in unit, obtains adjacent location equipment of having assigned Address x.
The step c includes:
C.1 after the address x for obtaining neighbouring device, x is obtained on the basis of neighbouring device address plus after 1+1 is itself to set Standby address;
C.2 after address obtains, the I/O mouth of equipment interface B sets low level, and next singlechip equipment, which enters, assigns location program.
The automatic tax location process is since most end end equipment, such as it is 1 that first equipment, which assigns location, and connection 1 is set Standby next equipment is then No. 2 equipment, and so on, the last one device address is N.
It is automatic to assign the process that location process is a transmitting, it cannot jump, it is necessary to until total built-in unit since first All assign.It is calculated according to 8 binary address codes, this method at most can access 256 equipment on same bus, all Equipment will be endowed unique mailing address, and institute's tax location in need equipment must use the identical equipment of model, in same sky It is interior to be connected hand in hand with 4 core cables.Location can be assigned again after re-powering every time, will not generate note to the address acquired in last time Recall.
The decoding device of addition can be connect with network or WiFi, carry out remote control, record to addressed equipment The equipment institute problem.It improves work efficiency, decreases maintenance cost.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright description is applied directly or indirectly in other relevant technology necks Domain is included within the scope of the present invention.

Claims (9)

1. a kind of automatic tax location method based on SCM system, it is characterised in that: the SCM system includes multiple lists Piece machine equipment passes sequentially through bus series connection between singlechip equipment, the automatic tax location method the following steps are included:
A. judgment step: judge whether this singlechip equipment has assigned location according to interrupt signal;
B. location situation query steps: is assigned according to the address that interrupt signal inquires each singlechip equipment in I2C bus;
C. definition step: the case where according to inquiring, the address of each singlechip equipment is defined one by one in the way of progressively increasing.
2. the automatic tax location method according to claim 1 based on SCM system, it is characterised in that: each single-chip microcontroller is set Standby to be equipped with two four core interfaces of A, B, four core interfaces include a port I/O, two I2C communication interfaces and a grounding ports, It is sequentially connected in series between singlechip equipment by 4 core cables.
3. the automatic tax location method according to claim 2 based on SCM system, it is characterised in that: the step a Include:
A.1. the I/O detection mouth of the equipment interface A detects level, if level is not detected, initiates automatic tax location journey Sequence, oneself will assign location is 1;
A.2. if it is high level, program, which will not enter, assigns the location stage;
A.3. if low level, equipment enters automatic tax location program.
4. the automatic tax location method according to claim 2 based on SCM system, it is characterised in that: the step b Include: that singlechip equipment by I2C accesses total built-in unit, obtains the adjacent address for having assigned location equipment.
5. the automatic tax location method according to claim 2 based on SCM system, it is characterised in that: the step c Include:
It c.1. on the basis of neighbouring device address plus is own device address after 1 behind the address for obtaining neighbouring device;
C.2. after address obtains, the I/O mouth of equipment interface B sets low level, and next singlechip equipment, which enters, assigns location program.
6. the automatic tax location method according to claim 1 based on SCM system, it is characterised in that: the 4 cores electricity Cable includes I2C communication line, altogether ground wire, detection line.
7. the automatic tax location method according to claim 1 based on SCM system, it is characterised in that: the tax location side In method, it is necessary to assign location since first singlechip equipment until total built-in unit has all been assigned.
8. the automatic tax location method according to claim 1 based on SCM system, it is characterised in that: the automatic tax In the method for location, location can be assigned again after re-powering every time, will not generate memory to the address acquired in last time.
9. the automatic tax location method according to claim 1 based on SCM system, it is characterised in that: SCM system In, the singlechip equipment at beginning connects a decoding device, and decoding device is by wirelessly or non-wirelessly connecting network.
CN201710704428.8A 2017-08-16 2017-08-16 A kind of automatic tax location method based on SCM system Pending CN109407569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710704428.8A CN109407569A (en) 2017-08-16 2017-08-16 A kind of automatic tax location method based on SCM system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710704428.8A CN109407569A (en) 2017-08-16 2017-08-16 A kind of automatic tax location method based on SCM system

Publications (1)

Publication Number Publication Date
CN109407569A true CN109407569A (en) 2019-03-01

Family

ID=65454757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710704428.8A Pending CN109407569A (en) 2017-08-16 2017-08-16 A kind of automatic tax location method based on SCM system

Country Status (1)

Country Link
CN (1) CN109407569A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515885A (en) * 2019-08-20 2019-11-29 杭州嘉楠耘智信息科技有限公司 Computing system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330203B1 (en) * 2000-12-26 2001-12-11 Vanguard International Semiconductor Corporation Test mode for verification of on-chip generated row addresses
US20060143506A1 (en) * 2004-12-29 2006-06-29 Lsi Logic Corporation RAID storage controller assist circuit, systems and methods
CN100592277C (en) * 2008-09-17 2010-02-24 浪潮齐鲁软件产业有限公司 Method for using W83977 chip in a system with a addressing space smaller than 1M
CN101894088A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 Method and device for solving conflict of multiple hosts on I2C bus
CN102012885A (en) * 2010-09-15 2011-04-13 开源集成电路(苏州)有限公司 System and method for realizing communication by adopting dynamic I2C bus
CN103248526A (en) * 2012-02-08 2013-08-14 迈普通信技术股份有限公司 Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method
CN103760794A (en) * 2013-12-31 2014-04-30 南京南瑞集团公司 Automatic addressing data acquisition system and method thereof
CN105260337A (en) * 2015-11-02 2016-01-20 深圳市共济科技有限公司 Automatic addressing method and system of single-chip microcomputers
CN205281489U (en) * 2015-12-15 2016-06-01 天津市天森智能设备有限公司 STM32F429BIT6's FSMC controller module

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330203B1 (en) * 2000-12-26 2001-12-11 Vanguard International Semiconductor Corporation Test mode for verification of on-chip generated row addresses
US20060143506A1 (en) * 2004-12-29 2006-06-29 Lsi Logic Corporation RAID storage controller assist circuit, systems and methods
CN100592277C (en) * 2008-09-17 2010-02-24 浪潮齐鲁软件产业有限公司 Method for using W83977 chip in a system with a addressing space smaller than 1M
CN101894088A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 Method and device for solving conflict of multiple hosts on I2C bus
CN102012885A (en) * 2010-09-15 2011-04-13 开源集成电路(苏州)有限公司 System and method for realizing communication by adopting dynamic I2C bus
CN103248526A (en) * 2012-02-08 2013-08-14 迈普通信技术股份有限公司 Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method
CN103760794A (en) * 2013-12-31 2014-04-30 南京南瑞集团公司 Automatic addressing data acquisition system and method thereof
CN105260337A (en) * 2015-11-02 2016-01-20 深圳市共济科技有限公司 Automatic addressing method and system of single-chip microcomputers
CN205281489U (en) * 2015-12-15 2016-06-01 天津市天森智能设备有限公司 STM32F429BIT6's FSMC controller module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515885A (en) * 2019-08-20 2019-11-29 杭州嘉楠耘智信息科技有限公司 Computing system

Similar Documents

Publication Publication Date Title
CN101656549B (en) Monitoring system and method of power source of parallel-connection type station
CN100470976C (en) Integrated automation converting station debugging apparatus
CN102694705A (en) Internet-based home appliance information management and service device and realization method thereof
CN102830279A (en) Data processing device used for electric energy meter and power consumption collector
CN109407569A (en) A kind of automatic tax location method based on SCM system
CN209344479U (en) A kind of socket and jack system
CN204705822U (en) A kind of Intelligent Home Appliance Controller with routing function
CN203368506U (en) Intelligent gateway device based on power line carrier communication
CN202929101U (en) Data processing device used for electric energy meter and electric gatherer
CN207022050U (en) A kind of automatic tax location system based on SCM system
CN104538933A (en) Motor differential protection system and motor differential protection method
CN207677999U (en) Novel protocol conversion device
CN102761624A (en) Method and device for debugging Internet access out of panel and cable
CN106506887B (en) Building conversational system and method
CN211017913U (en) Ammeter case with wiring core of preventing mistake
CN103926897B (en) A kind of de-burring machine tele-control system
CN102945023A (en) Working method of railway signal terminal based on optical fiber communication
CN113573265A (en) General wireless communication module based on oil field net electricity digital equipment
CN208820802U (en) A kind of server cluster heartbeat inspecting circuit based on power carrier
CN103873328A (en) Data transmission method between EMS and DMS
CN106209657A (en) A kind of dust-proof router
CN207650628U (en) A kind of cascaded high-voltage frequency converter master control system of multiple processor structure
CN106789296B (en) A kind of processing system and method for station institute's terminal remote signalling and the configuration of line switching signal
CN206077599U (en) Building conversational system
CN111010301A (en) Auxiliary on-site module of third-generation intelligent substation and configuration-free method thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301