Counting device and system with multipoint networking communication function

By introducing multi-point networking communication function into the counter, using the MCU microcontroller unit and communication module to realize real-time data transmission and multi-point networking, the problems of counter data recording timeliness and accuracy are solved, and the industrial manufacturing is realized. Efficient, accurate counting and monitoring.

CN119150909APending Publication Date: 2024-12-17SHENZHEN WELLTEST TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411166556.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Existing counters cannot transmit data in real time, and cannot realize multi-point network communication and collaboration of multiple counters, resulting in poor timeliness and accuracy of data recording.

Method used

Design a counting device with multi-point network communication function, adopts MCU microcontroller unit, communication unit, counting unit, rechargeable battery unit and display unit, and realizes real-time data transmission through USB to UART communication module and TTL to 485 communication module , and the address codes of multiple counters are different through the address dial switch, and can communicate with the upper computer in multiple points networking.

Benefits of technology

Real-time transmission and recording of counter data is realized, operating efficiency is improved, data accuracy and stability is ensured, and materials, components or events can be counted efficiently and accurately, coordinated control and monitoring of materials, components or events in the industrial manufacturing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150909A_ABST
    Figure CN119150909A_ABST
Patent Text Reader

Abstract

The invention discloses a counting device and system with a multipoint networking communication function. The counting device comprises a communication unit, a counting unit, a rechargeable battery unit and a display unit which are connected with an MCU micro-control unit. The communication unit comprises a USB to UART communication module and a TTL-to-485 communication module and is used for being in communication connection with an external upper computer. The counting unit comprises a counting sensor, an address dial switch and a counting reset key, the address dial switch is provided with a plurality of switch positions, and each switch position can correspondingly generate an address code; the rechargeable battery unit comprises a charging management module, a rechargeable battery and a power management module which are connected in sequence. According to the counting device and system, monitoring data can be transmitted and recorded in real time, the timeliness and accuracy are improved, and a plurality of counting devices can be subjected to multipoint networking communication and simultaneous cooperation, so that the monitoring data of a plurality of counters are transmitted to the same upper computer to be analyzed and processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of industrial manufacturing technology, and relates to a counting device widely used in the fields of industrial automation control, metering and monitoring, and in particular to a counting device and system with a multi-point networking communication function. Background Art

[0002] Counter is a powerful and widely used counting device, which is widely used in the fields of automatic control, measurement and monitoring. Counter can realize accurate counting, coordinated control, automatic operation, monitoring and tracking of object status information of materials, parts or events.

[0003] Traditional counters can only display the count value, but do not have a data communication interface. The stored data cannot be transmitted and recorded in real time, and the timeliness and accuracy are relatively poor. In addition, how to connect multiple counters to multi-point networking communication and simultaneous collaboration is a problem that needs to be solved. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention provides a counting device and system with multi-point networking communication function to solve the problems of how to transmit and record the data recorded by the counter in real time and how to perform multi-point networking communication and simultaneous collaboration for multiple counters.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A counting device with a multi-point networking communication function comprises an MCU microcontroller unit, a communication unit, a counting unit, a rechargeable battery unit and a display unit; wherein the communication unit comprises a USB to UART communication module and a TTL to 485 communication module respectively connected to the MCU microcontroller unit for communication connection to an external host computer; the counting unit comprises a counting sensor, an address dip switch and a count reset button respectively connected to the MCU microcontroller unit, the address dip switch has a plurality of switch positions, and each switch position can generate an address code correspondingly; the rechargeable battery unit comprises a charging management module, a rechargeable battery and a power management module connected in sequence, the charging management module is connected to the communication unit, and the power management module is connected to the MCU microcontroller unit; the display unit is connected to the MCU microcontroller unit for displaying counting information.

[0007] Preferably, the USB to UART communication module includes a USB interface and a USB to serial port chip, the USB to serial port chip is connected between the USB interface and the UART serial port end of the MCU microcontroller unit; the USB interface is used to connect to an external host computer via a USB communication line.

[0008] Preferably, a voltage conversion circuit is provided in the USB to UART communication module, and the voltage conversion circuit is used to convert the 5V voltage connected from the USB interface into 3.3V and provide it to the USB to serial port chip; the voltage conversion circuit includes a resistor R3, a resistor R5 and a Zener diode D7, the first end of the resistor R3 is connected to the 5V voltage, the second end of the resistor R3 is connected to the first end of the resistor R5, the second end of the resistor R5 is connected to the positive electrode of the Zener diode D7 and grounded, and the negative electrode of the Zener diode D7 is connected to the second end of the resistor R3 to form a 3.3V voltage output end.

[0009] Preferably, the TTL to 485 communication module includes an RS485 interface and a MAX485ESA chip, wherein the MAX485ESA chip is connected between the RS485 interface and the UART serial port of the MCU microcontroller unit; and the RS485 interface is used to connect to an external host computer via a USB to 485 communication line.

[0010] Preferably, an enable signal control circuit is provided in the TTL to 485 communication module, and the enable signal control circuit is controlled by the level state of the UART1_TX sending pin of the UART serial port end, and outputs a low-level or high-level enable signal to the MAX485ESA chip; wherein, when the UART1_TX sending pin is in a high-level state, the enable signal control circuit outputs a low-level enable signal, so that the MAX485ESA chip is in a data receiving state; when the UART1_TX sending pin is in a low-level state, the enable signal control circuit outputs a high-level enable signal, so that the MAX485ESA chip is in a data sending state.

[0011] Preferably, the enable signal control circuit includes a resistor R13, a resistor R18, a resistor R19 and a PNP transistor Q1; the first end of the resistor R13 is connected to the UART1_TX sending pin, the second end of the resistor R13 is connected to the base of the PNP transistor Q1, the first end of the resistor R18 is connected to the second end of the resistor R13, the second end of the resistor R18 is connected to the emitter of the PNP transistor Q1 and connected to a 3.3V voltage, the collector of the PNP transistor Q1 and the first end of the resistor R19 are interconnected and connected to the enable signal pin RE- and the enable signal pin DE of the MAX485ESA chip, and the second end of the resistor R19 is grounded.

[0012] Preferably, the address dip switch has 4 to 16 switch positions, and the address dip switch is connected to the MCU micro control unit through a coding circuit.

[0013] Preferably, the charging management module obtains charging power from the USB to UART communication module and / or the TTL to 485 communication module to charge the rechargeable battery; the charging management module is configured to charge the rechargeable battery in the following control manner:

[0014] When the voltage of the rechargeable battery is lower than 2.9V, a small current is used for pre-charging;

[0015] When the voltage of the rechargeable battery reaches 2.9V, charging is performed in a constant current mode;

[0016] When the voltage of the rechargeable battery is close to 4.24V, the charging current is controlled to gradually decrease and enter a constant voltage charging mode. When the charging current decreases to a charging end threshold, the charging cycle ends.

[0017] Preferably, the counting device further comprises a reset and burning unit connected to the MCU microcontroller unit; the rechargeable battery unit further comprises a power indication module connected to the rechargeable battery.

[0018] Another aspect of the present invention is to provide a counting system with multi-point networking communication function, the counting system includes a host computer and multiple counting devices as described above, each counting device is connected to the host computer through its corresponding USB to UART communication module and TTL to 485 communication module, each counting device sets the address code through its corresponding address dial switch, and the address codes of the multiple counting devices are different.

[0019] The counting device and counting system provided by the embodiments of the present invention have the following advantages compared with the prior art:

[0020] (1) The counting device is equipped with a USB to UART communication module and a TTL to 485 communication module, which can transmit and record the monitoring data in real time and communicate with the host computer instantly, thereby improving work efficiency and saving labor costs; in addition, the communication interface is diversified, the configuration is simple, the transmission speed is fast, the communication distance is long, and the anti-interference ability is enhanced, which can ensure the accuracy and stability of data transmission.

[0021] (2) The counting device is equipped with an address dip switch for setting the address code. Combined with the configured 485 communication module, multiple counting devices with different address codes can be networked at multiple points and communicated with the same host computer to collaborate simultaneously. The data of multiple counting devices can be transmitted to the same host computer in real time for analysis and processing. In the industrial manufacturing process, the accurate counting, coordinated control, and automated operation of materials, parts, or events can be performed more efficiently and accurately, and various operation events can be effectively monitored and tracked. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a structural block diagram of a counting device and a counting system in an embodiment of the present invention;

[0023] Figure 2 Schematic diagram of the circuit structure of the USB to UART communication module in an embodiment of the present invention;

[0024] Figure 3 Schematic diagram of the circuit structure of the TTL to 485 communication module in the embodiment of the present invention;

[0025] Figure 4 is a circuit structure diagram of a rechargeable battery unit in an embodiment of the present invention;

[0026] Figure 5 is a circuit structure diagram of a counting unit in an embodiment of the present invention;

[0027] Figure 6 is a corresponding diagram of the DIP switch positions and the corresponding coding addresses in the embodiment of the present invention;

[0028] Figure 7 It is an exemplary diagram of the communication connection between the host computer and multiple counting devices in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical scheme and advantages of the present invention clearer, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Examples of these preferred embodiments are illustrated in the accompanying drawings. The embodiments of the present invention shown in the accompanying drawings and described according to the accompanying drawings are merely exemplary, and the present invention is not limited to these embodiments.

[0030] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0031] See also Figure 1 An embodiment of the present invention provides a counting device 100 with a multi-point networking communication function and a counting system including the counting device 100. Specifically, the counting system includes the counting device 100, a host computer 200, and a communication line connecting the counting device 100 to the host computer 200.

[0032] like Figure 1 As shown, the counting device 100 with multi-point networking communication function in the embodiment of the present invention mainly includes an MCU microcontroller unit 1 and a communication unit 2, a counting unit 3, a rechargeable battery unit 4, a display unit 5 and a reset and burning unit 6 respectively connected to the MCU microcontroller unit 1.

[0033] Among them, the MCU microcontroller unit 1 preferably uses the STM32L101C6T6 chip, which has a proprietary ultra-low leakage current process, an autonomous dynamic voltage regulation function and 5 low-power modes, so that it can maintain low power consumption while running at high performance, which helps to extend battery life, reduce system heat dissipation problems, and improve system reliability.

[0034] Wherein, the communication unit 2 includes a USB to UART communication module 21 and a TTL to 485 communication module 22 respectively connected to the MCU microcontroller unit 1, and the USB to UART communication module 21 and the TTL to 485 communication module 22 are used for communication connection to an external host computer 200. By configuring the USB to UART communication module 21 and the TTL to 485 communication module 22, the counting device 100 can transmit and record the monitoring data in real time, and communicate with the host computer 200 in real time, thereby improving the operation efficiency and saving the labor cost; and the communication interface is diversified, the configuration is simple, the transmission speed is fast, the communication distance is long, and the anti-interference ability is enhanced, which can ensure the accuracy and stability of data transmission.

[0035] Wherein, the counting unit 3 includes a counting sensor 31, an address dial switch 32 and a count reset button 33 respectively connected to the MCU microcontroller unit 1. The counting sensor 31 can be selected as a pulse counter for counting and feeding back data signals to the MCU microcontroller unit 1. The address dial switch 32 has a plurality of switch positions, each of which can generate an address code corresponding to each switch position and input it into the MCU microcontroller unit 1. The count reset button 33 is used to reset the counting state. By configuring an address dial switch 32 that can set the address code, combined with the configured 485 communication module, multiple counting devices 100 with different address codes can be multi-point networked, communicated and connected with the same host computer 200 and cooperated at the same time, and the data of multiple counting devices 100 can be transmitted to the same host computer 200 in real time for analysis and processing, which can more efficiently and accurately count, coordinate and control, and automate the materials, components or events in the industrial manufacturing process, and effectively monitor and track various operation events.

[0036] The rechargeable battery unit 4 includes a charging management module 41, a rechargeable battery 42 and a power management module 43 connected in sequence, and also includes a power indicator module 44. The charging management module 41 is connected to the communication unit 2, specifically to the USB to UART communication module 21 and the TTL to 485 communication module 22, for accessing an external charging power supply and charging the rechargeable battery 42. The power management module 43 is connected to the MCU microcontroller unit 1, for providing working power to the MCU microcontroller unit 1. The power indicator module 44 is connected to the rechargeable battery 42, for indicating the power status of the rechargeable battery 42. By configuring the rechargeable battery unit 4, when the battery power is exhausted, there is no need to replace the battery, and the battery can be charged and used cyclically, reducing costs and protecting the environment.

[0037] The display unit 5 can be a LCD display for displaying counting information. The reset and burning unit 6 is used to reset or burn a program to the MCU microcontroller unit 1 .

[0038] For specific plans, see Figure 1 and Figure 2 The USB to UART communication module 21 includes a USB interface J1 and a USB to serial port chip U1, and the USB to serial port chip U1 is connected between the USB interface J1 and the UART serial port end (UART1_RX / TX) of the MCU micro control unit 1. The USB interface J1 is used to connect to an external host computer 200 via a USB communication line.

[0039] In this embodiment, if Figure 2 As shown, the USB to serial port chip U1 adopts FT234XD chip. Among them, a voltage conversion circuit is provided in the USB to UART communication module 21, and the voltage conversion circuit is used to convert the 5V voltage connected from the USB interface J1 into 3.3V and provide it to the USB to serial port chip U1. The voltage conversion circuit includes a resistor R3, a resistor R5 and a voltage zener diode D7, the first end of the resistor R3 is connected to the 5V voltage, the second end of the resistor R3 is connected to the first end of the resistor R5, the second end of the resistor R5 is connected to the positive electrode of the voltage zener diode D7 and grounded, and the negative electrode of the voltage zener diode D7 is connected to the second end of the resistor R3 to form a 3.3V voltage output end, thereby providing a 3.3V working voltage to the USB to serial port chip U1. The voltage conversion circuit has a simple structure, is easy to implement, and has low cost.

[0040] For specific plans, see Figure 1 and Figure 3The TTL to 485 communication module 22 includes an RS485 interface J2 and a MAX485ESA chip U6, and the MAX485ESA chip U6 is connected between the RS485 interface J2 and the UART serial port (UART1_RX / TX) of the MCU micro control unit 1. The RS485 interface J2 is used to connect to an external host computer 200 via a USB to 485 communication line.

[0041] In this embodiment, an enable signal control circuit is provided in the TTL to 485 communication module 22, and the enable signal control circuit is controlled by the level state of the UART1_TX sending pin of the UART serial port, and outputs a low-level or high-level enable signal to the MAX485ESA chip U6. When the UART1_TX sending pin is in a high-level state, the enable signal control circuit outputs a low-level enable signal, so that the MAX485ESA chip U6 is in a data receiving state; when the UART1_TX sending pin is in a low-level state, the enable signal control circuit outputs a high-level enable signal, so that the MAX485ESA chip U6 is in a data sending state.

[0042] Specifically, Figure 3 As shown, the enable signal control circuit includes a resistor R13, a resistor R18, a resistor R19 and a PNP transistor Q1. The first end of the resistor R13 is connected to the UART1_TX transmission pin, the second end of the resistor R13 is connected to the base of the PNP transistor Q1, the first end of the resistor R18 is connected to the second end of the resistor R13, the second end of the resistor R18 is connected to the emitter of the PNP transistor Q1 and connected to a 3.3V voltage, the collector of the PNP transistor Q1 and the first end of the resistor R19 are connected to each other and to the enable signal pin RE- and the enable signal pin DE of the MAX485ESA chip U6, and the second end of the resistor R19 is grounded.

[0043] The working process of the enable signal control circuit as described above is:

[0044] (1) When the MCU microcontroller unit 1 is not transmitting data, the UART serial port UART1_TX / RX is at a high level, the base of the PNP transistor Q1 is at a high level, Q1 is cut off, and the enable signal pins RE- and DE of the chip U6 are both at a low level. At this time, the data receiver inside the chip U6 is working, the driver is disabled, and the external bus data can be received normally. The external data signal passes through the A / B input terminals of the 6th and 7th pins of the chip U6, and after being processed by the receiver inside the chip U6, it is transmitted from the 1st pin R of the chip U6 to the MCU microcontroller unit 1 for data analysis and processing.

[0045] (2) When the MCU microcontroller unit 1 sends data, the UART1_TX pin of the UART serial port first sends a start bit signal (low level). At this time, the base voltage of the PNP transistor Q1 is pulled down by the RS485_TX signal through R13. At this time, Q1 is turned on, and the 3.3V voltage is transmitted from the emitter of Q1 to the collector. After being divided by resistor R19, it is transmitted to the chip U6. The enable signal pins RE- and DE of the chip U6 are both high. At this time, the data driver inside the chip U6 is working, and the receiver is disabled. The RS485_TX data is transmitted to the driver through the D terminal of the 4th pin of the chip U6 for processing and then output from the A / B terminal of the 6th and 7th pins of the chip U6. It is transmitted to the host computer through the external A / B bus for data processing and analysis.

[0046] Based on the above enable signal control circuit, the enable signal pins RE- and DE of chip U6 are connected to the UART1_TX pin of the UART serial port and are controlled by the level state of the UART1_TX pin. On the one hand, it does not occupy the IO port of the MCU chip and saves port resources. On the other hand, it can better synchronize with the data signal state (receiving or sending) of the UART serial port of the MCU, and can quickly respond and control the enable, so that chip U6 enters the corresponding action state.

[0047] Figure 4 is a circuit structure diagram of the rechargeable battery unit 4 in an embodiment of the present invention, Figure 4 In the figure, U2 is the chip of the charging management module 41, U3 is the chip of the power indicator module 44, and U4 is the chip of the power management module 43. The 5V voltage is connected from the communication module interface of the communication unit 2, and VBAT is the positive voltage of the rechargeable battery. Among them, the battery charging management chip U2 has two status indication output terminals with open drain output, which can display the battery status in real time; the charging status indication terminal CHRG is connected to the external indicator light D1; the battery charging completion indication output terminal STDBY is connected to the external indicator light D5, the status indicator light D1 is yellow when charging, and the status indicator light D5 is green when fully charged. Chip U3 is used to detect the battery power. When the battery power VBAT is lower than 3V, the VOUT pin of chip U3 outputs a low level, D6 is turned on, triggering a low power alarm, and the status indicator light D6 is red, indicating that the battery power is low and the battery needs to be charged.

[0048] In this embodiment, the battery charging management chip U2 adopts the SL4057 chip. The power tube circuit inside the chip automatically reduces the charging current when the junction temperature of the chip exceeds 135°C. This function allows users to maximize the use of chip charging without worrying about chip overheating and damage to the chip or external components. When the input voltage is greater than the UVLO detection threshold and the chip enable input terminal is connected to a high level, the battery starts to be charged. The 5V charging voltage is obtained from the USB to UART communication module 21 and / or the TTL to 485 communication module 22.

[0049] As a preferred solution, in this embodiment, the charging management module 41 is configured to charge the rechargeable battery in the following control manner: when the voltage of the rechargeable battery is lower than 2.9V, a small current is used for pre-charging; when the voltage of the rechargeable battery reaches 2.9V, a constant current mode is used for charging; when the voltage of the rechargeable battery approaches or reaches 4.24V, the charging current is controlled to gradually decrease and enter a constant voltage charging mode, and when the charging current is reduced to the charging end threshold, the charging cycle ends.

[0050] Figure 5 is a circuit structure diagram of the counting unit 3 in an embodiment of the present invention, wherein: Figure 5 - (a) corresponds to the circuit diagram of the counting sensor 31, Figure 5 -(b) corresponds to the circuit diagram of the count reset button 33, Figure 5 - (c) corresponds to the circuit diagram of the address DIP switch 32.

[0051] like Figure 5 -As shown in (a), after a pulse signal is input to the connector J3 of the counting sensor 31, it is de-jittered and filtered by a circuit composed of resistors R9, R11 and capacitor C9, and then input to the PC13 pin of the MCU microcontroller unit 1. After the nested vector interrupt controller (NVIC) of the MCU microcontroller unit 1 captures the rising edge of the pulse signal, it enters the counting interrupt processing, and the MCU internal data register starts counting. The counting data is immediately stored in the MCU internal Flash, and the counting data stored in the internal Flash is displayed on the display unit 5 in real time. After the pulse signal ends, the counting interrupt flag is cleared and the next pulse signal is waited for. When there is no pulse input or no external communication command is received, the MCU automatically enters the low power mode. When there is an external pulse or an external communication command is received, the MCU exits the low power mode and returns to the normal working mode.

[0052] like Figure 5-(b), for the count reset button 33, when the button S1 is long pressed, the reset signal is input to the PC14 pin of the MCU microcontroller unit 1. After the MCU's nested vector interrupt controller (NVIC) captures the reset low-level signal, it enters the counter reset interrupt processing, and the data register starts to reset the counting data. The reset data is stored in the MCU's internal Flash, and the reset data is displayed on the display unit in real time. After the reset signal ends, the counter reset interrupt flag is cleared, waiting for the next key reset.

[0053] like Figure 5 -(c), in this embodiment, the address dip switch 32 has 16 switch positions 0 to 9 and A to F, and the address dip switch 32 is connected to the BCD1 to 4 pins of the MCU micro control unit 1 through an encoding circuit. The dip switch positions of switch S2 and the corresponding addresses are shown in FIG. Figure 6 As shown, when the dip switch is turned to 0, the corresponding address is 0xF, and when the dip switch is turned to F, the corresponding address is 0X0. BCD1-4 is the address level representation combination (i.e., Code) of the dip switch. According to the level representation combination of BCD1-4 (0-15, 0x0-0xF), an RS485 address combination is formed and transmitted to the MCU. The host computer 200 can select the corresponding counting device 100 for communication according to the RS485 address combination, thereby realizing multi-point networking of up to 16 counting devices 100 with different address codes, and communicating and connecting with the same host computer 200 to cooperate at the same time. It should be noted that in some other embodiments, the address dip switch 32 can be configured to have 4-16 switch positions.

[0054] When multiple counting devices 100 are used for multi-point networking, for example, 16 counting devices 100 are used for networking. Figure 7 , the host computer 200 sends the communication data with the address to the two data lines A and B of the communication port. If a counting device 100 connected to the A and B lines matches the address sent by the host computer 200, the counting device 100 receives the communication data of the host computer 200 and sends a response. At this time, the host computer 200 and the matching counting device 100 shake hands and communicate, and other counting devices 100 wait for the matching host computer 200 to send the communication data with the address.

[0055] Based on the counting device described above, an embodiment of the present invention provides a counting system with a multi-point networking communication function, which includes a host computer 200 and multiple counting devices 100 described above, each counting device 100 is connected to the host computer 200 through its corresponding USB to UART communication module 21 and TTL to 485 communication module 22, and each counting device 100 sets the address code through its corresponding address dial switch, and the address codes of the multiple counting devices 100 are different. It should be noted that, Figure 1 In the counting system, only one counting device 100 is shown as an example. When multiple counting devices 100 are used for multi-point networking, the connection between each counting device 100 and the host computer 200 is the same as the following. Figure 1 The connections shown are the same.

[0056] To sum up, the counting system and counting system with multi-point networking communication function provided by the embodiments of the present invention can transmit and record monitoring data in real time, improve timeliness and accuracy, and can perform multi-point networking communication and simultaneous collaboration for multiple counting devices, thereby transmitting the monitoring data of multiple counters to the same host computer for analysis and processing, and can more efficiently and accurately count, coordinate control, and automate operations of materials, components, or events in the industrial manufacturing process, and effectively monitor and track various types of operation events.

[0057] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A counting device with multi-point networking communication function, characterized in that: It includes an MCU microcontroller unit, a communication unit, a counting unit, a rechargeable battery unit and a display unit; wherein the communication unit includes a USB to UART communication module and a TTL to 485 communication module respectively connected to the MCU microcontroller unit for communication connection to an external host computer; the counting unit includes a counting sensor, an address dial switch and a count reset button respectively connected to the MCU microcontroller unit, the address dial switch has a plurality of switch positions, and each switch position can generate an address code correspondingly; the rechargeable battery unit includes a charging management module, a rechargeable battery and a power management module connected in sequence, the charging management module is connected to the communication unit, and the power management module is connected to the MCU microcontroller unit; the display unit is connected to the MCU microcontroller unit for displaying counting information.

2. The counting device with multi-point networking communication function according to claim 1, characterized in that: The USB to UART communication module includes a USB interface and a USB to serial port chip, wherein the USB to serial port chip is connected between the USB interface and the UART serial port of the MCU microcontroller unit; the USB interface is used to connect to an external host computer via a USB communication line.

3. The counting device with multi-point networking communication function according to claim 2, characterized in that: The USB to UART communication module is provided with a voltage conversion circuit, which is used to convert the 5V voltage connected from the USB interface into 3.3V and provide it to the USB to serial port chip; the voltage conversion circuit includes a resistor R3, a resistor R5 and a voltage-stabilizing diode D7, the first end of the resistor R3 is connected to the 5V voltage, the second end of the resistor R3 is connected to the first end of the resistor R5, the second end of the resistor R5 is connected to the positive electrode of the voltage-stabilizing diode D7 and grounded, and the negative electrode of the voltage-stabilizing diode D7 is connected to the second end of the resistor R3 to form a 3.3V voltage output end.

4. The counting device with multi-point networking communication function according to claim 1, characterized in that: The TTL to 485 communication module includes an RS485 interface and a MAX485ESA chip, wherein the MAX485ESA chip is connected between the RS485 interface and the UART serial port of the MCU microcontroller unit; and the RS485 interface is used to connect to an external host computer via a USB to 485 communication line.

5. The counting device with multi-point networking communication function according to claim 4, characterized in that: An enable signal control circuit is provided in the TTL to 485 communication module. The enable signal control circuit is controlled by the level state of the UART1_TX sending pin of the UART serial port, and outputs a low-level or high-level enable signal to the MAX485ESA chip; wherein, when the UART1_TX sending pin is in a high-level state, the enable signal control circuit outputs a low-level enable signal to put the MAX485ESA chip in a data receiving state; when the UART1_TX sending pin is in a low-level state, the enable signal control circuit outputs a high-level enable signal to put the MAX485ESA chip in a data sending state.

6. The counting device with multi-point networking communication function according to claim 5, characterized in that: The enable signal control circuit includes a resistor R13, a resistor R18, a resistor R19 and a PNP transistor Q1; the first end of the resistor R13 is connected to the UART1_TX sending pin, the second end of the resistor R13 is connected to the base of the PNP transistor Q1, the first end of the resistor R18 is connected to the second end of the resistor R13, the second end of the resistor R18 is connected to the emitter of the PNP transistor Q1 and connected to a 3.3V voltage, the collector of the PNP transistor Q1 and the first end of the resistor R19 are interconnected and connected to the enable signal pin RE- and the enable signal pin DE of the MAX485ESA chip, and the second end of the resistor R19 is grounded.

7. The counting device with multi-point networking communication function according to claim 1, characterized in that: The address dip switch has 4 to 16 switch positions, and the address dip switch is connected to the MCU micro control unit through a coding circuit.

8. The counting device with multi-point networking communication function according to claim 1, characterized in that: The charging management module obtains charging power from the USB to UART communication module and / or the TTL to 485 communication module to charge the rechargeable battery; the charging management module is configured to charge the rechargeable battery in the following control manner: When the voltage of the rechargeable battery is lower than 2.9V, a small current is used for pre-charging; When the voltage of the rechargeable battery reaches 2.9V, charging is performed in a constant current mode; When the voltage of the rechargeable battery is close to 4.24V, the charging current is controlled to gradually decrease and enter a constant voltage charging mode. When the charging current decreases to a charging end threshold, the charging cycle ends.

9. The counting device with multi-point networking communication function according to claim 1, characterized in that: The counting device also includes a reset and burning unit connected to the MCU microcontroller unit; the rechargeable battery unit also includes a power indication module connected to the rechargeable battery.

10. A counting system with multi-point networking communication function, characterized in that: The counting system includes a host computer and multiple counting devices as described in any one of claims 1 to 9, each counting device is connected to the host computer through its corresponding USB to UART communication module and TTL to 485 communication module, each counting device sets the address code through its corresponding address dip switch, and the address codes of the multiple counting devices are different from each other.