Method and system for setting serial communication equipment address

文档序号:1686965 发布日期:2020-01-03 浏览:17次 中文

阅读说明:本技术 一种串行通信设备地址设置的方法和系统 (Method and system for setting serial communication equipment address ) 是由 段志刚 于 2019-09-26 设计创作,主要内容包括:本发明公开了一种串行通信设备地址设置的方法和系统,包括以下步骤:在系统待接入物理位置接口侧,配置元件或电路,组成电阻/电压/电流电参数定值或比例受控信号接口,选定有效工作额定范围值域,对应约定物理地址有效编码整数值范围,制定设备通信地址换算表,在待接入侧实现通信地址标定;通过连接物理位置端口、接入设备自主检测识别受控电参数、识别位置编码、设定通信地址,无须人工手动介入、易于使用维护;本发明能有效、清晰、准确地标定受控电参数,关联物理位置、场景、机位工况,使接入设备快速自主检测受控电参数并配置唯一通信地址,提高串行通信联接的快速性、便捷性、可靠性。(The invention discloses a method and a system for setting serial communication equipment addresses, which comprises the following steps: configuring elements or circuits at the interface side of a physical position to be accessed by a system to form a resistance/voltage/current electrical parameter fixed value or proportion controlled signal interface, selecting an effective working rated range value domain, corresponding to an appointed physical address effective coding integer value range, formulating an equipment communication address conversion table, and realizing communication address calibration at the side to be accessed; controlled electrical parameters are detected and identified, position codes are identified and communication addresses are set through connecting a physical position port and an access device, manual intervention is not needed, and the use and maintenance are easy; the invention can effectively, clearly and accurately mark the controlled electrical parameters, and correlate the physical position, scene and machine position working condition, so that the access equipment can rapidly and independently detect the controlled electrical parameters and configure a unique communication address, thereby improving the rapidity, convenience and reliability of serial communication connection.)

1. A method for setting serial communication equipment address is characterized by comprising the following steps:

1) at the side of the physical position interface to be accessed in the system, an electrical signal port, a configuration element or a circuit is adopted to form an electrical parameter controlled signal interface LA which is used for providing detection and identification for the corresponding interface connection of the access equipment to finish the setting;

2) and (3) associating the physical position signal, selecting an optional reference potential point detected by the access equipment, and carrying out voltage measurement or differential measurement, wherein the method comprises the following steps:

2-1) the port adopts an independent double-point signal, wherein one point can be selected as a detection reference point;

2-2) the port adopts single-point signals which are connected in a common way, and the method comprises the following steps:

2-2-1) the system access two sides contain the highest point of the common connection level, and can be selected as a detection reference point;

2-2-2) the system access two sides contain the lowest point of the common connection level, and can be selected as a detection reference point;

2-2-3) selecting a signal location corresponding to the inside of the access equipment side as a detection reference point;

3) and correspondingly selecting the effective working range of the electrical parameters according to the controlled mode of the signal port:

3-1) selecting an effective working rated range value range corresponding to the port electrical parameters;

3-2) selecting a preferred working lower bit value corresponding to the port electrical parameter;

3-3) selecting a preferred working upper bit value corresponding to the port electrical parameter;

3-4) selecting a default value when the interface is idle corresponding to the port electrical parameter;

3-5) selecting a forward high-side limit tolerance value corresponding to the port electrical parameter;

3-6) selecting a negative low-side limit tolerance value corresponding to the port electrical parameter;

4) correspondingly selecting the effective working step distance according to the controlled mode of the electric signal port, comprising the following steps:

4-1) selecting a unit resistance value Ru as an effective unit step length corresponding to a fixed resistance mode;

4-2) corresponding to a constant voltage mode, selecting a unit voltage value Vu as an effective unit step length;

4-3) corresponding to the constant current mode, selecting the unit current value Iu as an effective unit step length;

5) according to the mode of an electric signal port, correspondingly setting the range of the effective coding integer value of the physical address:

5-1) corresponding access detection, selecting an effective code value range and corresponding assignment;

5-2) corresponding to access detection, selecting specific assignment of a code value when a lower limit is out of bounds;

5-3) corresponding access detection, selecting specific assignment of the code value when the upper limit is out of bounds;

5-4) corresponding access detection, selecting default assignment of code values in the idle connection state;

6) the method comprises the following steps that the effective code value is associated with address response classification, wherein a host computer and a slave computer are set according to corresponding effective appointment parameters:

6-1) selecting the low-segment partial contract code value of the code value as an optional host address;

6-2) selecting the high-segment partial contract code value of the code value as an optional broadcast slave address;

6-3) selecting the middle section of the code value as an optional response slave address;

6-4) selecting physical position and sequence number, and corresponding to port code value according to the convention protocol.

6-5) selecting a port code value, and formulating an equipment communication address conversion table according to an agreed protocol;

7) the effective code value association device subclass is set according to corresponding parameters, and the method further comprises the following steps:

7-1) dividing the host address into different subsections and correspondingly identifying the subsections as different subclasses of application systems;

7-2) dividing the slave address into different subsections and correspondingly identifying the subsections as different subclass application systems;

7-3) selecting the head and the tail of the sub-address selected by the slave address as subclass default or broadcast addresses;

7-4) selecting a physical position and a serial number, and corresponding to a port code value according to an agreed protocol;

7-5) selecting the port code value, and formulating a device communication address conversion table according to the convention protocol.

2. The method according to claim 1, wherein the electrical environment of the access side in step 1) further comprises a positive high-end BP +, a negative low-end BP-, and a communication interface BPC.

3. The method of claim 1, wherein the electrical parameter controlled in step 1) is a signal port electrical parameter partially controlled and detectable by the access device.

4. The method according to claim 3, wherein the electrical parameter controlled mode is divided into a basic electrical parameter constant value mode controlled and an extended electrical parameter proportional mode controlled, specifically as follows:

1) the basic electric parameter constant value mode is controlled:

1-1) the port resistance is configured according to a default value appointed by a system within an effective default range;

1-2) the port voltage is in an effective preset range and configured according to a default value appointed by a system;

1-3) the current of the port is in an effective preset range and is configured according to a default value appointed by a system;

2) the expanded electrical parameter proportion mode is controlled:

2-1) the ratio of the resistance of the port between the high end point and the low end point is configured according to the effective ratio agreed by the system;

2-2) the voltage proportion of the port between the high and low endpoints is configured according to the effective ratio agreed by the system;

2-3) the current ratio of the ports between the high end point and the low end point is configured according to the effective ratio appointed by the system.

5. A system for serial communication device address setting, for implementing the method for serial communication device address setting as claimed in claims 1-4, wherein the system comprises a rectifier module unit, a dc conversion unit, a power battery pack unit;

the rectification module unit, the direct current conversion unit and the power battery pack unit are all designed to be a common negative end, and adopt an nBPC communication bus and an nLA address port;

the rectifying module unit, the direct current conversion unit and the power battery pack unit are connected with a positive end BP + and a negative end BP-, and the communication bus nBPC is connected with each other;

the position port is sequentially connected between nLA and BP-according to the step value Ru which is 10K resistor, the following specification parameters of E96 series are adopted in sequence and recorded as Z1-Z12,

10.0K、20.0K、30.1K、40.2K、49.9K、60.4K、

69.8K、80.6K、90.9K、100K、110K、121K;

the rectifier module units RM1-5 are sequentially configured to be Z1-Z5, and the communication addresses are 41h-45 h;

the direct current conversion units CM1-4 are sequentially configured into Z1-Z4, and the communication addresses are 51h-54 h;

the power battery pack units B01-12 are sequentially configured to be Z1-Z12, and the communication address is 71h-7 Ch.

Technical Field

The invention relates to the field of data transmission of communication equipment, in particular to a serial communication system for multi-scene multi-owner multi-equipment operation.

Background

Serial interface communication is a common way for data transmission between devices or between components inside the devices, and includes technical contents such as circuit form, transmission protocol, transmission rate, data format, and the like of a convention standard.

The universal asynchronous receiving and transmitting controller UART is a universal serial data communication system; the early application RS232C standard serial interface is a master-slave online mode, and the later upgraded USB serial interface is also a master-slave mode; an RS422/RS485 standard serial communication system developed after RS232C is in a master-slave multi-slave online mode, a fixed preset address and a specified master are adopted, the master sends a communication command or a query data packet to a specified slave according to the address, and the slave with the corresponding address responds or executes the command according to an agreed communication protocol to complete system communication data information exchange.

In the existing UART serial communication technology of one-master multi-slave equipment, a host generally adopts a hot spot online working mode, and generally adopts manual pulling out of an original host and then inserting of a new host for power-on operation in replacement and maintenance, so that no agreed mechanism is provided for instant offline communication management of the whole system, the system is in a master-free management state, and each slave and the system need to independently guarantee fault-free operation; the power-on and system communication connection of each slave machine is generally checked by the host machine according to the communication address round in turn and the slave machines autonomously answer in number according to the communication addresses, before power-on, the corresponding position codes of the slave machines are manually finished or the communication addresses are set after complex protocol inquiry and answer check are coordinated, and then communication is accessed, so that the reliability is low, and the power-on time and the communication connection time delay are long.

In the existing UART standard of one-master multi-slave serial communication technology, a host address is often hidden as the minimum code in a system, such as 01h, the host address in a conventional communication data packet is also hidden and is not sent, and a host in the system is pre-designated and single; the maximum code in the communication system, such as FFh, is commonly used for broadcasting addresses and is expressed as an instruction packet which is effective for all the slaves at the same time, so that all the slaves can synchronously execute at almost the same time and only receive no response; other address codes of the communication system are generally used for the slave machines, but different slave machines can be defined according to sections, for example, in a certain multi-battery charging system communication address configuration, 5 alternating current rectifiers AC/DC are used for 41-45h, 4 solar energy converter power supplies PV/DC are used for 51-54h, 12 direct current converters DC/DC are used for 61-6Ch, 12 battery bins BH are used for 71-7Ch, and 81-8Ch correspond to 12 48V battery packs Li 4816; in the prior art, the address definition of the serial communication standard circuit generally adopts a dial switch to be identified by the state of an input signal of an IO switching value of an intelligent chip MCU/ARM/DSP, and further corresponds to and records a binary type address code, for example, fig. 1 shows an address coding circuit of a built-in 6-bit dial switch in the prior art, if bit _001001 corresponds to address 09#, this way occupies more port lines, and if a wire is externally led, the wire connection is more likely to cause, and the wire connection is easy to damage and is also easy to interfere.

In the existing UART serial communication technology of one-master multi-slave equipment, the same physical position cannot be directly used or replaced by equipment products of a basic type but different factory serial numbers, and an adjustment address needs to be set according to the physical position again, so that the conventional design brings great inconvenience for new installation and replacement of the equipment, for example, in a communication backup power supply system, the system communication addresses of machine positions RM02# and RM03# of rack rectifier modules are defined as 42h and 43h, the factory numbers of the two rectifier modules are respectively C2018350101 and C2018350102, corresponding dialing codes are set as 02h/0010b and 03h/0011b in advance before insertion, the machine position BC02# of a collator is inserted and then pulled out and then replaced to RM03, the rectifier dialing codes are reset to replace 02h to RM03#, and if a new machine is replaced to RM03#, default factory code 00h is also changed to 03h and then inserted, the system can normally communicate and work.

In UART serial communication of one master device and multiple slave devices in the emerging technology industry, the device intelligence degree is improved, built-in functions are diversified, the same device can be applied to different working scenes, the interior of the device corresponds to completely different mechanisms, the working subclasses of the device are different, if the new energy storage and discharge system is started, for example, a movable energy storage battery pack is respectively applied to an energy storage charging scene and an energy release and discharge scene, the battery pack can be confirmed to be in a charging subsystem or a discharge subsystem and works according to a corresponding limited subclass mode, namely, the subsystems which are clearly classified according to different functions cannot be identified by an address interface, in the prior art, a check port identification judgment must be additionally configured, or the communication interface is utilized to complete the identification judgment according to a device address and a communication protocol; when port hardware identification is adopted, a single port or a multi-bit port can be adopted, the detection ports are configured to be arranged in different systems in a distinguishing mode to achieve detection, for example, port logic state 1 is adopted to represent discharging, port logic state 0 is used to represent charging, and default logic states are correspondingly configured in a charging system, a discharging system or a charging and discharging system, so that the movable energy storage battery pack can enter a specified scene working state in a specified charging subsystem or a specified discharging subsystem.

In the design specification of a conventional communication system, addresses and equipment classifications are hidden in communication protocol software conventions corresponding to the addresses, related data exchange protocols analyze convention expressions and complete data information exchange according to corresponding data packet fields, but preset implementation of an equipment end is defined and fixed by hardware. In addition to the function classification implied by the address classification, when a device access system appears in different working states, or when the same device appears in different systems to represent different function classifications, and the device is required to present different functions in the corresponding access systems, a switching value expression is additionally added to the software and hardware of the device, and the switching value expression and the address code are jointly referred to, such as whether the device is accessed or in place, and such as whether a battery is accessed to a charging device or a discharging device; in a communication system, slave addresses are generally defined by hardware dialing or software setting or default values on equipment, and specific physical positions of the slave addresses correspond to each other according to system regulations by using personnel, so that when some equipment in a system adopting multi-machine communication operation is newly installed or replaced, the communication addresses also need to be reset corresponding to the physical positions.

As can be seen from the above, in the UART multi-machine serial communication system in the conventional sense, the host initiates the designated address query or trains in turns according to the address and waits for the response of the corresponding slave, the host can only one, the communication must work normally, the slave addresses must be distinguished, the specific single address cannot be repeated, otherwise the system cannot normally complete serial data transmission, cannot correctly decode, and cannot efficiently complete data information exchange; the data packets corresponding to the slave addresses must be defined in advance by communication protocols into a designated interpretation format, wherein the corresponding protocol conventions according to the addresses corresponding to the devices with different function types are included, in fact, the address definition of the communication system is that each corresponding communication device unit is basically fixedly arranged according to a pre-designed physical position, and comprises a master machine and a plurality of slave device units, the slave device addresses of the system to be accessed are correspondingly set by installation personnel or maintenance personnel, and when different systems apply the devices, extra signal port lines need to be configured and confirmed after the detection by the device units.

As can be seen from the above description, the address identifier and the physical location in the communication protocol are basically related, and particularly, in the application of the serial communication system in which multiple scenes, multiple slaves and multiple computers operate, the scene subclasses, the geographic locations and the machine location conditions where the system master and the slave devices are located actually heavily relate to the rapidness, convenience and reliability of the communication system, but the configuration related to the prior art is manually operated, adjusted and checked on site according to the design and use specification, which is very inconvenient.

Disclosure of Invention

The present invention is directed to a method and system for setting an address of a serial communication device to solve the above problems.

In order to achieve the purpose, the invention provides the following technical scheme:

a method for setting serial communication equipment address comprises the following steps:

1) at the side of the physical position interface to be accessed in the system, an electrical signal port, a configuration element or a circuit is adopted to form an electrical parameter controlled signal interface LA which is used for providing detection and identification for the corresponding interface connection of the access equipment to finish the setting;

2) and (3) associating the physical position signal, selecting an optional reference potential point detected by the access equipment, and carrying out voltage measurement or differential measurement, wherein the method comprises the following steps:

2-1) the port adopts an independent double-point signal, wherein one point can be selected as a detection reference point;

2-2) the port adopts single-point signals which are connected in a common way, and the method comprises the following steps:

2-2-1) the system access two sides contain the highest point of the common connection level, and can be selected as a detection reference point;

2-2-2) the system access two sides contain the lowest point of the common connection level, and can be selected as a detection reference point;

2-2-3) selecting a signal location corresponding to the inside of the access equipment side as a detection reference point;

3) and correspondingly selecting the effective working range of the electrical parameters according to the controlled mode of the signal port:

3-1) selecting an effective working rated range value range corresponding to the port electrical parameters;

3-2) selecting a preferred working lower bit value corresponding to the port electrical parameter;

3-3) selecting a preferred working upper bit value corresponding to the port electrical parameter;

3-4) selecting a default value when the interface is idle corresponding to the port electrical parameter;

3-5) selecting a forward high-side limit tolerance value corresponding to the port electrical parameter;

3-6) selecting a negative low-side limit tolerance value corresponding to the port electrical parameter;

4) correspondingly selecting the effective working step distance according to the controlled mode of the electric signal port, comprising the following steps:

4-1) selecting a unit resistance value Ru as an effective unit step length corresponding to a fixed resistance mode;

4-2) corresponding to a constant voltage mode, selecting a unit voltage value Vu as an effective unit step length;

4-3) corresponding to the constant current mode, selecting the unit current value Iu as an effective unit step length;

5) according to the mode of an electric signal port, correspondingly setting the range of the effective coding integer value of the physical address:

5-1) corresponding access detection, selecting an effective code value range and corresponding assignment;

5-2) corresponding to access detection, selecting specific assignment of a code value when a lower limit is out of bounds;

5-3) corresponding access detection, selecting specific assignment of the code value when the upper limit is out of bounds;

5-4) corresponding access detection, selecting default assignment of code values in the idle connection state;

6) the method comprises the following steps that the effective code value is associated with address response classification, wherein a host computer and a slave computer are set according to corresponding effective appointment parameters:

6-1) selecting the low-segment partial contract code value of the code value as an optional host address;

6-2) selecting the high-segment partial contract code value of the code value as an optional broadcast slave address;

6-3) selecting the middle section of the code value as an optional response slave address;

6-4) selecting physical position and sequence number, and corresponding to port code value according to the convention protocol.

6-5) selecting a port code value, and formulating an equipment communication address conversion table according to an agreed protocol;

7) the effective code value association device subclass is set according to corresponding parameters, and the method further comprises the following steps:

7-1) dividing the host address into different subsections and correspondingly identifying the subsections as different subclasses of application systems;

7-2) dividing the slave address into different subsections and correspondingly identifying the subsections as different subclass application systems;

7-3) selecting the head and the tail of the sub-address selected by the slave address as subclass default or broadcast addresses;

7-4) selecting a physical position and a serial number, and corresponding to a port code value according to an agreed protocol;

7-5) selecting the port code value, and formulating a device communication address conversion table according to the convention protocol.

Further, the electrical environment of the access side in step 1) further includes a positive high-end BP +, a negative low-end BP-, and a communication interface BPC.

Further, the electrical parameter in step 1) is controlled, and is partially controlled by the electrical parameter of the signal port, and can be detected by the access device.

Further, the electric parameter controlled mode is divided into a basic electric parameter fixed value mode and an extended electric parameter proportional mode, and the control is as follows:

1) the basic electric parameter constant value mode is controlled:

1-1) the port resistance is configured according to a default value appointed by a system within an effective default range;

1-2) the port voltage is in an effective preset range and configured according to a default value appointed by a system;

1-3) the current of the port is in an effective preset range and is configured according to a default value appointed by a system;

2) the expanded electrical parameter proportion mode is controlled:

2-1) the ratio of the resistance of the port between the high end point and the low end point is configured according to the effective ratio agreed by the system;

2-2) the voltage proportion of the port between the high and low endpoints is configured according to the effective ratio agreed by the system;

2-3) the current ratio of the ports between the high end point and the low end point is configured according to the effective ratio appointed by the system.

Furthermore, for the device with the built-in power supply detection circuit before or after the system is accessed, the address port of the device can correspondingly generate circuit loop parameter change and position code change before and after the system is accessed, and the two different states of system access/on-position and pull-off/standby of the device can be correspondingly expressed, and can be used for designing related functions of the device.

In addition, the invention also provides a system for setting the address of the serial communication equipment, which comprises a rectification module unit, a direct current conversion unit and a power battery pack unit;

the rectification module unit, the direct current conversion unit and the power battery pack unit are all designed to be a common negative end, and adopt an nBPC communication bus and an nLA address port;

the rectifying module unit, the direct current conversion unit and the power battery pack unit are connected with a positive end BP + and a negative end BP-, and the communication bus nBPC is connected with each other;

the position port is sequentially connected between nLA and BP-according to the step value Ru which is 10K resistor, the following specification parameters of E96 series are adopted in sequence and recorded as Z1-Z12,

10.0K、20.0K、30.1K、40.2K、49.9K、60.4K、

69.8K、80.6K、90.9K、100K、110K、121K;

the rectifier module units RM1-5 are sequentially configured to be Z1-Z5, and the communication addresses are 41h-45 h;

the direct current conversion units CM1-4 are sequentially configured into Z1-Z4, and the communication addresses are 51h-54 h;

the power battery pack units B01-12 are sequentially configured to be Z1-Z12, and the communication address is 71h-7 Ch.

In the invention, the communication address is not defined and preset by the equipment, but the equipment is internally provided with a detection device which is connected with a port circuit externally arranged on the system side, and elements and circuits configured according to appointed controlled parameters form a circuit loop, and the communication address is obtained by detection, calculation, coding and conversion.

Compared with the prior art, the invention has the beneficial effects that:

1. the invention adopts an access side address port which is controlled according to uniformly appointed electrical parameters and is correspondingly provided with appointed elements or circuits corresponding to physical positions, and the accessed equipment can autonomously detect the physical address coding electrical parameters, calculate the corresponding physical position codes and convert the physical address coding electrical parameters into the corresponding equipment serial communication addresses according to an appointed code table through the appointed parameter configuration of the physical position port.

2. The port of the side to be accessed of the system is adopted to preset the controlled electrical parameter configuration address, so that the communication address is unique, can not repeat, strictly corresponds to a physical position, is autonomously detected by the access equipment, does not need manual intervention, is easy to use and maintain, has the excellent characteristics of high impedance, low working current and high voltage tolerance, can conveniently and effectively autonomously configure the communication address of each unit in a plurality of slave serial communication systems respectively, and ensures that the communication connection of the equipment is realized quickly and correctly.

3. The invention can effectively, clearly and accurately express the address information related to the physical position, scene and machine position working condition, can realize the automatic detection of the position identity identification of the equipment and the quick and automatic configuration of the communication address; the method improves the rapidity, convenience and reliability of serial communication connection, greatly improves the performance of a serial communication system, can adapt to various working environments, and has simpler and more efficient design.

Drawings

FIG. 1 is a schematic diagram of a 6-bit dial address circuit of a serial communication single chip microcomputer in the prior art;

FIG. 2 is a diagram of a constant value resistive address port RM/CM/BRP system configuration according to the present invention;

FIG. 3 is a schematic diagram of a fixed value resistor physical location address port detection electrical loop in accordance with the present invention;

FIG. 4 is a schematic diagram illustrating a common negative terminal fixed value resistor device side detection circuit according to the present invention;

FIG. 5 is a schematic diagram illustrating the common positive side fixed value resistor device side detection circuit of the present invention;

FIG. 6 is a constant current detection circuit diagram of the common negative terminal constant value resistor device side in example 1 of the present invention;

FIG. 7 is a common positive side fixed value resistor device side switching detection circuit of example 2 of the present invention;

FIG. 8 is a block diagram of a common negative fixed-value resistor physical location address code system of example 1 of the present invention;

FIG. 9 is a diagram of a common positive side fixed value resistor physical location address code system of example 2 of the present invention;

FIG. 10 is a circuit diagram of the common negative fixed value voltage position port system side of example 3 of the present invention.

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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the embodiment of the invention, a method for setting the address of serial communication equipment comprises the following steps:

1) selecting a physical position port, and selecting a controlled electrical parameter, wherein resistance, voltage or current is selected, and a constant value or proportion controlled mode is selected;

2) associating a physical position port, and selecting an access side detection reference point;

3) selecting an electrical parameter operating range comprising: range, upper and lower values, default values, limit values;

4) selecting a unit step size, i.e. a basic unit value, of the electrical parameter;

5) selecting a physical position coding range, including an effective range, an upper and lower boundary-crossing value and a default value;

6) selecting a communication address, comprising: selecting an address translation table by a host, a slave and a broadcast;

7) the selected communication address association subclass is generally a single subclass and can be divided into multiple subclasses.

When the method is applied, after the type of the controlled electrical parameter and the detection reference point are selected, a device side detection mechanism and a detection circuit are correspondingly designed, the device side performs the detection, the corresponding interface connection and the electrical parameter detection are performed, the position coding integer value is identified according to a convention formula, the position coding integer value is converted into a communication address according to a conversion table, and the autonomous setting is completed.

A system for setting serial communication device address is shown in FIG. 2, wherein the device is a common negative end electrical environment system, which is a master multi-slave serial communication system; the device adopts controlled parameters of step length 10K constant value resistance to configure a physical position coding address port nLA, the resistance constant value is configured to 10K x i, wherein i is a physical position serial number, the system comprises a rectification module unit RM1-5 corresponding to a communication address 41-45h, a direct current conversion unit CM1-4 corresponding to a communication address 51-54h, and a battery pack B01-12 corresponding to a communication address 71-7Ch, and the constant value resistances corresponding to the position serial numbers are respectively connected between devices nLA and BP-to form respective physical position address coding ports.

In the embodiment of the invention, the typical electric environment comprises a lithium battery pack multi-unit charging/discharging system with 48V, 60V and 72V as working voltages, a 48V communication power supply system and a 110V/220V power system operation power supply system. These devices or systems usually include a plurality of identical or substantially identical energy storage components, such as lithium iron or ternary lithium electric power battery packs, and during their operation, in order to implement certain set charging or discharging management, a serial interface is used to connect with a main monitoring unit of the system, and the main monitoring unit also connects with other related devices and manages through the serial interface, such as an ac input rectifier power supply, a photovoltaic input or a gas input dc converter power supply, to jointly form a system.

In the embodiment of the invention, one electrical parameter controlled element or circuit is selected in the electrical environment to be used as an electrical connection port of a physical position interface; then selecting a signal detection common point, a value range and a parameter selection detailed rule in the electrical environment, and determining respective electrical parameter values associated with the physical position corresponding to the appointed equipment subclasses and position serial numbers; meanwhile, on the equipment side, an electrical parameter detection mechanism and a corresponding hardware realization circuit are designed, and a corresponding protection circuit is designed to ensure that the interface voltage, the current and the impedance tolerance meet limit regulation values.

In the embodiment of the invention, the embodiment is given for the resistance controlled mode; a position address port LA is configured by adopting a parameter-controlled resistor element, a system side port further comprises an interface side positive end point BP +, a negative end point BP-, a device address detection port configuration detection circuit provides detection current or detection matching resistance, two sides jointly form an electrical parameter loop, as can be seen in a left side subgraph of fig. 3, and main elements of the position port circuit comprise Rx1 and Rx 2; the basic relation of the current, the resistance and the voltage difference of the circuit can be obtained by ohm law, wherein the voltages Vp, Vn and Va are the voltage difference relative to the ground GND of the negative end of the detection circuit, and the GND is generally close to or equal to the potential of the BP-end side because the implementation reference point of the detection circuit is generally based on the ground GND of the negative end; when the resistance ratio control mode is selected, the calculation can be completed directly by the measured voltage according to the formula in the figure, and Kr-Rx 1/Rx 2-Va-Vn)/(Vp-Va) are obtained, so that the corresponding position codes and address expression values are obtained; when a resistance constant value control mode is selected, one of the resistors Rx1 and Rx2 is arranged on the system side, and the other one is arranged in a device side measuring circuit, as can be seen from the middle subgraph of fig. 3 and fig. 4, in a common-negative end electric system, when the system side resistor Rx passes through corresponding to a constant current constant value Ia, namely Va is Rx Ia, the circuit for measuring the resistor is clear and direct according to the ohm law principle; as can be seen from the right diagram of fig. 3 and fig. 5, in the common positive side electro-optical system, when the constant current circuit is not used, a double-resistor Rc1/Rc2 switching circuit can be disposed at Rc; particularly, the Rx resistance value Rx _ Rc (Vt1/Vt2-1) can be calculated by measuring Vt1/Vt2 when 0/Rc is adopted, wherein Vt1 is Vp, and Vt2 is the port voltage of the resistance loop corresponding to the fixed value of the physical position.

In the embodiment of the invention, a resistance constant value configuration method is selected, which is simple and direct, and a plurality of electric parameter controlled examples of the common positive end electric system and the common negative end electric system are provided; in the embodiment of the invention, a single signal wire port is adopted, a common contact defined in a power output wire is utilized, a voltage differential detection mechanism is adopted, and a single-end-point interface mode associated with the common contact is adopted, so that the interface has the characteristic of high impedance resistance at a standby side with a fixed value, and has no voltage difference relative to the common contact before being accessed, and the interface belongs to a typical single-side passive interface, and has low circuit interference sensitivity and extremely low basic failure rate; in the implementation of the invention, for example, in a positive terminal common circuit system, the common connection point on both sides is BP +, the physical position address port is pLA, the device detects the voltage difference [ VBP + ] - [ VpLA ] of two points, and calculates the configuration resistance connected between the two points; for another example, in the negative terminal common circuit system, the common contact point on both sides is BP-, the physical location address port is nLA, the device detects the voltage difference [ VnLA ] - [ VBP- ], and calculates the configuration resistance connected between the two points; and further calculating physical position codes by using the resistance code table, converting the address codes into the memory table to calculate the equipment communication address, and simultaneously selecting the subclass address and adding the offset address according to the agreement of a system protocol.

For example, for calculating the communication address AC for the physical location address code AL and the communication offset address AS, a typical example of the expression conversion equation is AS follows:

P1.[AC=AS+AL,AS=70h,1≦AL≦50;]

P2.[AC=AS+(AL+1)/2,AS=70h,1≦AL≦50;]

P3.[AC=AS+AL,{AS=0h,1≦AL≦8;AS=80h,11≦AL≦26;AS=90h,31≦AL≦46;}]

P4.[AC=AL-4,5≦AL≦35;],[AC=0,0≦AL≦4;],[AC=33,36≦AL≦40;]

the above address translation expression is a few typical common schemes, wherein the expression P1 defines the communication address of such devices, starting from the first address 71h, and is configured backwards according to the physical location sequentially coded value + 1; the expression P2 defines the first address of the equipment as 71h, and the equipment is configured backwards according to the sequential coded value +2 of the physical position, the total number of codes used in the configuration is halved, but the density of the address codes is halved, and the tolerance capability of the detection circuit is doubled; the expression P3 defines that the physical position code and the communication address are divided into three subclasses, when the physical code is between 1-8, the equipment communication address is a competition master, when the physical code is between 11-26, the equipment address is a 80-subclass slave 81-8Eh, and when the physical code is between 31-46, the equipment address is a 90-subclass slave 91-9 Eh; the expression P4 is defined as that when the physical position code is between 0-4 and the device communication address is set to 0, the device is used for production calibration and is not installed in user equipment, when the physical position code is between 37-40 and the device communication address is set to 33, the device for special use is accepted, the subclass broadcast instruction is not accepted, and when the physical position code is between 5-35, the device address is corresponding to slave 01-1 Eh; because the physical position code and the communication address are adopted and the agreed code identification and conversion table are adopted, the address conversion expression of the position code of the communication system is concise, clear in formula, rich in expression content and high in intelligent degree.

In the constant value resistance measuring circuit, the core measuring component 10BitAD precision is 0.1%, the E96 series resistance standard error is 1%, but the environment change precision is better than 0.1%, so the whole measuring and identifying precision can reach 0.1% after the initial adjustment, namely the effective address identifying number can reach 500, but the actual application design can be 50 according to the total number, at the moment, the maximum error design meets 1-2%, and each scheme needs actual calculation and inspection due to different detection circuit realization mechanisms.

If the system needs to apply larger total number, the invention can also adopt double-wire ports, namely accompanied ports LA1 and LA2, each single port is configured with a full code of 16/32, the coding precision and fault-tolerant capability are greatly improved, and the total number of configuration after double-wire compounding reaches 256/1024.

The embodiments of the present invention will be further described with reference to the accompanying drawings.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:双信道数据储存系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!