Automatic address assignment system and address assignment method in charging module of battery swap cabinet
通过在换电柜充电模块中设计地址自动赋值系统,利用物理参数采样模块对电子元件进行采样,自动获取并赋值地址,解决了现有技术中地址自动分配难以实现的问题,提高了系统的便捷 Sex and reliability.
Patent Information
- Application Number
- CN202010885265.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-28
- Publication Date
- 2025-01-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, automatic address allocation of the charging module of the battery swap cabinet is difficult to achieve, resulting in inconvenient manual address setting on-site.
Design a type of automatic assignment system, the physical parameter sampling of the physical parameters corresponding to the charging warehouse through the physical parameter sampling module of the I/O port connection of the single -chip microcomputer of the charging module, obtain the address according to the collected information, and realize the single chip microcomputer for the charging module. Convenient address assignment.
The automatic assignment of the address of the charging module of the electric cabinet has improved the convenience and reliability of the system, and avoids the tedious process of manual setting the address.
Smart Images

Figure CN112148648B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery swap cabinet charging modules, and in particular to an automatic address assignment system and an address assignment method in a battery swap cabinet charging module. Background Art
[0002] In the prior art, in order to better manage and control interfaces or electrical equipment or electronic devices, address values are usually preset for the interfaces or electrical equipment or electronic devices, and docking is achieved through a non-controller with the interfaces or electrical equipment or electronic devices with address assignments, thereby improving the supervision and monitoring performance of the interfaces or electrical equipment or electronic devices.
[0003] RS-485 communication network is widely used in industrial control and household appliances due to its convenience, reliability and low price. In traditional RS-485 network design, the slave address is usually set by dip switches or human-machine input to identify the network. Therefore, in actual applications, the address needs to be set manually on site, which is not convenient enough. Therefore, it has always been a problem to realize automatic allocation of network addresses in the existing technology.
[0004] In a battery swap cabinet, since the battery swap cabinet uses multiple charging modules to charge multiple battery packs, and the host computer communicates and manages each module, how to let the system automatically assign addresses is a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0005] The present invention overcomes the deficiencies of the prior art and provides a convenient, reliable, economical and practical automatic address assignment system and address assignment method in a charging module of a battery swap cabinet.
[0006] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is: an automatic address assignment system in a charging module of a battery swap cabinet, comprising a host computer, and several battery swap cabinet charging modules and several charging positions of the battery swap cabinet interconnected with the host computer; the battery swap cabinet charging module comprises a charging module single-chip microcomputer and several physical parameter sampling modules electrically connected to the charging module single-chip microcomputer, the physical parameter sampling module being electrically connected to electronic components corresponding to the charging positions; the charging module single-chip microcomputer samples physical parameters of the electronic components through the physical parameter sampling module, and assigns addresses to the charging module single-chip microcomputer through the sampled physical parameters.
[0007] In a preferred embodiment of the present invention, the physical parameter sampling module includes a protection circuit connected to the I / O port of the single chip microcomputer of the charging module and a sampling circuit connected to the electronic component.
[0008] In a preferred embodiment of the present invention, the physical parameter sampling module includes: one end of the resistor RD3 is connected to the I / O port of the charging module single-chip microcomputer, the other end of the resistor RD3 is connected to the output end of the feedback amplifier UD3A, the negative input end of the feedback amplifier UD3A is connected to the output end of the feedback amplifier UD3A, the positive input end of the feedback amplifier UD3A is connected to the power supply through the resistor RD1, the positive input end of the feedback amplifier UD3A is grounded after connecting to the resistor RD2, the connection end between the resistor RD3 and the I / O port of the charging module single-chip microcomputer is grounded through the capacitor CD1, and the electronic component to be sampled is connected in parallel with the resistor RD2.
[0009] In a preferred embodiment of the present invention, the electronic component is one or more of a resistor, a capacitor, and an inductor.
[0010] In a preferred embodiment of the present invention, an address assignment method of an automatic address assignment system in a charging module of a battery swap cabinet comprises the following steps:
[0011] Step 1: Power on the automatic address assignment system;
[0012] Step 2: sampling: sampling the physical parameters of the electronic components corresponding to the charging positions through the physical parameter sampling module;
[0013] Step 3: filter the sampled data and filter the physical parameters obtained by the charging module microcontroller through the parameter sampling module;
[0014] Step 4: Perform address assignment, query the address assignment table according to the filtered physical parameters, and obtain address information.
[0015] In a preferred embodiment of the present invention, in step 2, the physical parameters of the electronic components corresponding to the charging positions are repeatedly sampled through the parameter sampling module, and the charging module microcontroller obtains the physical parameters sampled multiple times.
[0016] In a preferred embodiment of the present invention, in step three, after removing the highest and lowest values of multiple groups of physical parameters obtained by repeated sampling of electronic components corresponding to the charging positions, the average value of the several groups of physical parameters after removing the highest and lowest values is calculated, and the average value is defined as the physical parameter to be queried and assigned.
[0017] In a preferred embodiment of the present invention, in step 4, the charging module microcontroller queries the address assignment table according to the filtered physical parameters, and assigns the physical address to the address register in the charging module microcontroller using the address obtained by querying the address assignment table.
[0018] The present invention solves the defects existing in the technical background, and the beneficial technical effects of the present invention are:
[0019] The present invention discloses an automatic address assignment system and address assignment method in a charging module of a battery swap cabinet. Physical parameters of electronic components corresponding to charging positions are collected through a parameter sampling module connected to an I / O port of a single-chip microcomputer of the charging module. The address is obtained according to the collected information, and convenient address assignment is implemented for the single-chip microcomputer of the charging module.
[0020] The circuit of the parameter sampling module also uses a protection circuit to electrically protect the I / O port of the charging module microcontroller to prevent external pulses from damaging the control chip of the charging module microcontroller. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0022] Figure 1 It is a structural block diagram of the automatic address assignment system in the charging module of the power exchange cabinet in the preferred embodiment of the present invention;
[0023] Figure 2 It is a schematic diagram of the circuit structure of the parameter sampling module in the automatic address assignment system in the charging module of the battery swap cabinet of the preferred embodiment of the present invention (wherein the ADC lead is connected to the ADC port in the I / O port of the charging module single chip computer);
[0024] Figure 3 It is a flow chart of address assignment performed by the automatic address assignment system in the charging module of the battery swap cabinet in the preferred embodiment of the present invention.
[0025] Figure 4 It is a schematic diagram of the physical installation of the physical parameter sampling module installed in the charging module of the battery exchange cabinet in the preferred embodiment of the present invention.
[0026] Figure 5 It is an address assignment table of a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention will now be further described in detail with reference to the accompanying drawings and embodiments. These drawings are simplified schematic diagrams that only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0028] It should be noted that if there are directional indications (such as up, down, bottom, top, etc.) involved in the embodiments of the present invention, the directional indication is only used to explain the relative position relationship, movement, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. Unless otherwise clearly specified and defined, the terms "set", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0029] Embodiment 1
[0030] like Figure 1~Figure 3 As shown, an automatic address assignment system in a charging module of a battery swap cabinet includes a host computer, multiple battery swap cabinet charging modules, and multiple charging positions arranged in the battery swap cabinet. In this embodiment, the battery swap cabinet charging modules correspond to the charging positions one by one. The battery swap cabinet charging module is interconnected with the host computer through an RS485 bus, and the battery swap cabinet charging module includes a charging module single-chip microcomputer and a physical parameter sampling module interconnected with the charging module single-chip microcomputer. The RS485 bus interconnects the host computer with the charging module single-chip microcomputer. At least one electronic component is arranged corresponding to each charging position, and each electronic component is electrically connected to a corresponding physical parameter sampling module, and each physical parameter sampling module is interconnected with a charging module single-chip microcomputer; the charging module single-chip microcomputer samples the physical parameters of the electronic components corresponding to the charging position through the physical parameter sampling module, and the host computer assigns addresses to the address registers in the charging module single-chip microcomputer through the physical parameters sampled by the physical parameter sampling module connected to the I / O port of the charging module single-chip microcomputer.
[0031] Specifically, the physical parameter sampling module includes a protection circuit connected to the I / O port of the charging module single-chip microcomputer and a sampling circuit connected to the electronic component. The charging module single-chip microcomputer can be selected from the STC series single-chip microcomputer, such as STC15W204S or STC15W401AS, but is not limited to this. In other embodiments, the single-chip microcomputer model in the prior art can be selected according to actual needs. Further, the specific circuit structure of the physical parameter sampling module includes that one end of the resistor RD3 is connected to the I / O port of the charging module single-chip microcomputer, the other end of the resistor RD3 is connected to the output end of the feedback amplifier UD3A, the negative input end of the feedback amplifier UD3A is connected to the output end of the feedback amplifier UD3A, the positive input end of the feedback amplifier UD3A is connected to the power supply through the resistor RD1, the positive input end of the feedback amplifier UD3A is connected to the ground after connecting the resistor RD2, the connection end of the resistor RD3 and the I / O port of the charging module single-chip microcomputer is grounded through the capacitor CD1, and the electronic component to be sampled is connected in parallel with the resistor RD2. The electronic component is one or more of a resistor, a capacitor, and an inductor. In this embodiment, the electronic component uses a resistor element RX. By detecting the resistance value of the resistance element RX corresponding to the charging position. The resistance element RX corresponding to the charging position corresponds to the charging position. Figure 3 As shown, in order to facilitate installation and positioning, multiple resistor elements RX corresponding to respective charging positions are arranged on the PCB board, and the resistor elements RX are connected to the corresponding physical parameter sampling modules through wires.
[0032] Embodiment 2
[0033] like Figure 1~Figure 3 As shown, an address assignment method of an automatic address assignment system in a charging module of a battery swap cabinet comprises the following steps:
[0034] Step 1: Power on, power on the automatic address assignment system. Specifically, the power-on delay is 100ms. However, this is not limited to this. In other embodiments, the power-on delay time can be set according to actual needs.
[0035] Step 2, sampling, sampling the physical parameters of the electronic components corresponding to the charging positions through the physical parameter sampling module, and the charging module single chip obtains the physical parameters of multiple samples. Specifically, the physical parameters of the electronic components corresponding to the charging positions are repeatedly sampled through the parameter sampling module. The present application is configured to sample the physical parameters of the resistor element RX corresponding to each charging position 18 times. However, it is not limited to this. In other embodiments, the number of sampling times of the resistor element RX can be set according to actual needs.
[0036] Step 3: Filter the sampled data and perform physical parameter filtering on the physical parameters obtained by the charging module microcontroller through the parameter sampling module. Specifically, after removing the highest and lowest values of multiple groups of physical parameters obtained by repeated sampling of the electronic components corresponding to the charging positions, calculate the average value of several groups of physical parameters after removing the highest and lowest values, and define the average value as the physical parameter to be queried and assigned.
[0037] Step 4: Perform address assignment, query the address assignment table according to the filtered physical parameters, and obtain address information. Specifically, the charging module microcontroller queries the following according to the filtered physical parameters: Figure 5 The address assignment table shown in the figure is used to assign the physical address to the address register in the single-chip microcomputer of the charging module by querying the address obtained from the address assignment table. Figure 5 In the address assignment table shown, by obtaining the resistance value corresponding to the resistor element RX, the position number corresponding to the resistance value is queried, and each position number corresponds to a set of address values composed of binary codes. However, it is not limited to this. In other embodiments, the form of the address value corresponds to the selected single-chip microcomputer. The parameters of the resistance value in this address assignment table are only an example of an embodiment. In other embodiments, it can be replaced and adjusted according to the selection of the electronic component model in the actual circuit.
[0038] Working principle of the present invention:
[0039] like Figures 1 to 5 As shown, the host computer communicates and manages the charging module of the battery swap cabinet and the battery swap cabinet through RS485. The physical parameter sampling module in the battery swap cabinet charging module is connected to a resistor element RX corresponding to each charging position of the battery swap cabinet. Each resistor element RX is connected to the I / O port of the charging module microcontroller through a physical parameter sampling module. The charging module microcontroller and the physical parameter sampling module can cooperate to obtain the resistance value of the resistor element RX corresponding to each charging position. After multiple samplings, the resistance value of the resistor element RX corresponding to each charging position or the physical parameter sampling module ADC node of the electric energy value to be queried and assigned is filtered and calculated, and then the physical parameter is used to query the address assignment table provided by the host computer to the charging module microcontroller to obtain the corresponding address, and the address register in the charging module microcontroller is assigned the address with the acquired address.
[0040] The above specific implementation methods are specific support for the scheme ideas proposed in the present invention, and cannot be used to limit the protection scope of the present invention. Any equivalent changes or equivalent modifications made on the basis of this technical scheme in accordance with the technical ideas proposed in the present invention still fall within the scope of protection of the technical scheme of the present invention.
Claims
1. An address assignment method for an automatic address assignment system in a charging module of a battery swap cabinet, characterized in that: The automatic address assignment system in the charging module of the battery swap cabinet includes a host computer, and several battery swap cabinet charging modules and several charging positions of the battery swap cabinet interconnected with the host computer; the battery swap cabinet charging module includes a charging module single chip microcomputer and several physical parameter sampling modules electrically connected to the charging module single chip microcomputer, and the physical parameter sampling module is electrically connected to electronic components corresponding to the charging positions; the charging module single chip microcomputer samples the physical parameters of the electronic components through the physical parameter sampling module, and assigns addresses to the charging module single chip microcomputer through the sampled physical parameters; The physical parameter sampling module includes a protection circuit connected to the I / O port of the charging module single chip microcomputer and a sampling circuit connected to the electronic component; The physical parameter sampling module includes: one end of the resistor RD3 is connected to the I / O port of the charging module single chip microcomputer, the other end of the resistor RD3 is connected to the output end of the feedback amplifier UD3A, the negative input end of the feedback amplifier UD3A is connected to the output end of the feedback amplifier UD3A, the positive input end of the feedback amplifier UD3A is connected to the power supply through the resistor RD1, the positive input end of the feedback amplifier UD3A is grounded after being connected to the resistor RD2, the connection end of the resistor RD3 and the I / O port of the charging module single chip microcomputer is grounded through the capacitor CD1, and the electronic component to be sampled is connected in parallel with the resistor RD2; The address assignment method comprises: Power on, power on the automatic address assignment system; sample, sample the physical parameters of the electronic components corresponding to the charging positions through the physical parameter sampling module; filter the sampled data, filter the physical parameters obtained by the charging module microcontroller through the parameter sampling module; assign addresses, query the address assignment table according to the filtered physical parameters to obtain address information.
2. The address assignment method of the automatic address assignment system in the charging module of the battery swap cabinet according to claim 1 is characterized in that: The electronic component is one or more of a resistor, a capacitor, and an inductor.
3. According to the address assignment method of the automatic address assignment system in the charging module of the battery swap cabinet as described in claim 2, it is characterized by: During sampling, the parameter sampling module samples the physical parameters of the electronic components corresponding to the charging positions repeatedly, and the charging module microcontroller obtains the physical parameters sampled multiple times.
4. According to the address assignment method of the automatic address assignment system in the charging module of the battery swap cabinet as described in claim 3, it is characterized by: In the filtered sampling data, after removing the highest and lowest values of multiple groups of physical parameters obtained by repeated sampling of the electronic components corresponding to the charging positions, the average value of the several groups of physical parameters after removing the highest and lowest values is calculated, and the average value is defined as the physical parameter to be queried and assigned.
5. According to the address assignment method of the automatic address assignment system in the charging module of the battery swap cabinet as described in claim 4, it is characterized by: During address assignment, the charging module single chip microcomputer queries the address assignment table according to the filtered physical parameters, and assigns the physical address to the address register in the charging module single chip microcomputer using the address obtained by querying the address assignment table.
Citation Information
Patent Citations
Networking type smoke alarm terminal address automatic generation system and method
CN106205073A
Battery management system and battery pack address recognition circuit thereof
CN108336793A