Data transmission device and method
By integrating a data transmission device with multiple interfaces and protocol conversion, the problems of high communication costs, poor network stability, and low data security in overseas industrial and commercial energy storage projects have been solved, achieving efficient and reliable data transmission and fault diagnosis.
Patent Information
- Application Number
- CN202511577897.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-02-10
AI Technical Summary
Existing technologies in overseas industrial and commercial energy storage projects suffer from high communication costs, poor network stability, insufficient equipment compatibility, and low data security. In particular, the high cost of 4G roaming and poor compatibility of WiFi module interfaces lead to transmission interruptions and data tampering, affecting system stability and troubleshooting.
A data transmission device integrating multiple data transmission interfaces and protocol conversion circuits is adopted. Combined with a main control module, a clock module, and a security module, it achieves compatibility and adaptation with different terminal devices, and ensures data security and transmission efficiency through encryption and the addition of timestamps.
It improves device compatibility and data transmission security, ensures efficient data acquisition and accurate fault diagnosis, reduces communication costs, and enhances system stability and data reliability.
Smart Images

Figure CN121509534A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electric communication, and in particular to a data transmission device and method. BACKGROUND
[0002] With the continuous development and application of technologies such as Internet of Things and cloud computing, in the field of industrial Internet of Things and energy management, especially in overseas industrial and commercial energy storage projects, data transmission and management technology is the key to ensuring the efficient operation of the energy storage system. This technology mainly realizes the data interaction between terminal devices and cloud platforms, involving data collection, transmission, storage, processing, and command issuance and execution. These data include battery charging and discharging status, voltage, current, and other operating parameters, as well as charging and discharging strategies, which are of great significance for energy optimization, real-time monitoring, and timely troubleshooting of the system.
[0003] Currently, in the actual application of overseas industrial and commercial energy storage projects, existing technologies face prominent problems such as high communication costs, poor network stability, insufficient device compatibility, and low data security. To address these issues, existing technologies mainly adopt two schemes, but both have obvious defects: on the one hand, real-time transmission based on 4G networks can achieve cloud monitoring, but the high roaming fees of overseas 4G networks and insufficient network coverage can lead to transmission interruptions, severely affecting scheduling efficiency and fault response; on the other hand, using a single interface WiFi module for transmission, although the cost is lower, the interface compatibility is poor and requires additional converters, lacks data protection mechanisms and is vulnerable to tampering, and the fault time is difficult to trace, and the system cannot operate autonomously when the network is disconnected, causing system paralysis. In summary, existing solutions have deficiencies in cost, stability, compatibility, security, and offline operation, and there is an urgent need for more efficient and reliable data transmission and management technology. SUMMARY
[0004] The purpose of the present application is to provide a data transmission device and method that can adapt to multiple protocols and multiple interface devices, improve the efficiency and real-time performance of data transmission, and enhance the security of data transmission.
[0005] To achieve the above-mentioned purpose, the present application is implemented by using the following technical solutions:
[0006] In a first aspect, the present application provides a data transmission device, comprising:
[0007] a terminal device interface module integrated with multiple data transmission interfaces for collecting operating data of different terminal devices;
[0008] The main control module is connected with the terminal device interface module, is used for processing the operation data and storing the processed operation data with a time stamp to the local; and is used for data interaction with the cloud platform according to a preset time interval; wherein the data interaction comprises uploading the operation data with the time stamp stored locally to the cloud platform.
[0009] The clock module is used for providing the time stamp for the main control module.
[0010] The security module is used for encrypting and decrypting the data transmitted between the main control module and the cloud platform.
[0011] Further, the main control module is integrated with a WiFi module, in response to the arrival of the preset time interval, the main control module starts the WiFi module to start uploading the operation data to the cloud platform; in response to the completion of the uploading of the operation data, the main control module closes the WiFi module.
[0012] Further, the clock module adopts a clock chip with power-off maintaining timing function.
[0013] Further, the terminal device interface module at least comprises an RS485 interface and an RJ45 interface, the RS485 interface and the RJ45 interface are connected with the main control module through respective interface switching circuits.
[0014] Further, the interface switching circuit of the RS485 interface comprises a serial port to 485 circuit, which is used for connecting the TTL interface of the main control module with the RS485 interface to realize the conversion between TTL level and 485 bus level.
[0015] Further, the interface switching circuit of the RJ45 interface comprises an Ethernet physical layer chip and a network transformer, the Ethernet physical layer chip is connected with the main control module, and the RJ45 interface is connected with the Ethernet physical layer chip through the network transformer.
[0016] Further, a watchdog module is further included, which is used for monitoring the running state of the main control module and performing a restart operation when the main control module is monitored to enter an abnormal running state.
[0017] Further, a power module is included, which supplies power for the main control module, the watchdog module, the security module, the clock module and the terminal device interface module.
[0018] In the second aspect, the application further provides a data transmission method based on the device of the first aspect, comprising: the main control module collects operation data of a target terminal device through the terminal device interface module.
[0019] The master module receives the timestamp provided by the clock module, processes the running data, and stores the running data with the timestamp to the local after adding the timestamp;
[0020] The master module interacts with the cloud platform in response to the arrival of a preset time interval, wherein the data interaction includes uploading the running data with the timestamp stored locally to the cloud platform.
[0021] Further, the device further comprises a watchdog module for detecting the running state of the master module.
[0022] The method further comprises:
[0023] In response to the watchdog module monitoring that the running state of the master module is abnormal, the master module receives the instruction of the watchdog module and performs a restart operation.
[0024] Compared with the prior art, the application achieves the following beneficial effects:
[0025] 1. The data transmission device disclosed in the application integrates multiple data transmission interfaces and corresponding protocol conversion circuits through a terminal equipment interface module, realizes the simultaneous collection of running data of multiple different terminal equipments by the master module, and improves the compatibility of the device. Moreover, the device further adds a security module and a clock module to encrypt the data and add a timestamp, thereby better guaranteeing the data security and improving the fault troubleshooting efficiency.
[0026] 2. The transmission method of the data transmission device disclosed in the application realizes the efficient collection of running data of different terminal equipments through a terminal equipment interface module, improves the efficiency of data collection and simplifies the data collection process. Moreover, the collected data is encrypted and added with a timestamp by the master module, thereby ensuring the safety of the data in the transmission process and effectively preventing the risk of data tampering or loss. This not only enhances the reliability of data transmission, but also provides a data basis for subsequent data analysis, system monitoring and fault troubleshooting. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 FIG. 1 is a structural schematic diagram of the data transmission device of the application;
[0028] Figure 2 FIG. 4 is a circuit principle diagram of the master module;
[0029] Figure 3 FIG. 6 is a circuit principle diagram of a serial-to-485 circuit;
[0030] Figure 4 FIG. 8 is a circuit principle diagram of an Ethernet module;
[0031] Figure 5Circuit schematic diagram for RJ45 interface circuit;
[0032] Figure 6 Circuit schematic diagram for clock module;
[0033] Figure 7 Circuit schematic diagram for security module;
[0034] Figure 8 Circuit schematic diagram for watchdog module;
[0035] Figure 9 Step schematic diagram for data transmission method of the present application.
[0036] Legend: 1, power module; 2, main control module; 3, terminal device interface module; 4, clock module; 5, security module; 6, watchdog module. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. The description of the at least one exemplary embodiment is actually only illustrative, rather than any limitation on the present application and its application or use. Embodiment 1
[0038] As shown in the figure, the present embodiment provides a data transmission device, which includes a terminal device interface module 3, a main control module 2, a clock module 4, a security module 5 and a watchdog module 6. The main control module 2 is responsible for controlling and coordinating the work of the terminal device interface module 3, the clock module 4, the security module 5 and the watchdog module 6. Figure 1 The terminal device interface module 3 is integrated with multiple data transmission interfaces, which are used to realize the collection of running data of different terminal devices. In the present embodiment, the terminal device interface module 3 is integrated with an RS485 interface and an RJ45 interface. The RS485 interface is adapted to a battery management system using 485 communication protocol, which is used to collect state data of the battery management system and transmit control instructions. The RJ45 interface is adapted to a standard energy management system, which is used to realize the interaction of energy management data.
[0039]
[0040] As shown in the figure, the present embodiment provides a data transmission device, which includes a terminal device interface module 3, a main control module 2, a clock module 4, a security module 5 and a watchdog module 6. The main control module 2 is responsible for controlling and coordinating the work of the terminal device interface module 3, the clock module 4, the security module 5 and the watchdog module 6. Figure 3 As shown, by adopting CA-IS3082WX chip, logic gate chip RS1G14XC5-Q1 and bus driving and protection circuit, a serial port to 485 circuit is formed, the connection of the TTL interface and the RS485 interface of the master control module 2 realizes the conversion between the TTL level and the 485 bus level. Among them, the pin A and the output end Y of the logic gate chip RS1G14XC5-Q1 are connected to the pin UART_TX of the master control module 2 and the pin DE of the CA-IS3082WX chip respectively; the pin UART0_RX of the master control module 2 is directly connected to the pin RO of the CA-IS3082WX chip.
[0041] In the bus driving and protection circuit, the pins A and B of the CA-IS3082WX chip are connected to the RS485_1A and RS485_1B of the external RS485 bus respectively as the RS485 bus connection end, and the physical connection with the external RS485 bus is realized through the JK250-080U interface; the self-recovery fuses PTC1 and PTC2 are connected in series between the pin A and the JK250-080U interface, and between the pin B and the JK250-080U interface of the CA-IS3082WX chip respectively, for preventing the abnormal large current on the RS485 bus side from damaging the CA-IS3082WX chip and other related circuit elements, and the self-recovery fuse belongs to the PTC thermistor category.
[0042] In order to realize the protection of the 485 bus, the pin A of the CA-IS3082WX chip is connected to the 3.3V power supply through the pull-up resistor R54 with a resistance of 4.7kΩ, and the pin B of the CA-IS3082WX chip is grounded through the pull-down resistor R61 with a resistance of 4.7kΩ, for providing stable bias voltage for the pins A and B of the CA-IS3082WX chip. In addition, the SMAJ6.5CA type transient suppression diodes D3 and D6 are connected in reverse parallel between the pin A and the ground of the CA-IS3082WX, and between the pin B and the ground of the CA-IS3082WX, and the capacitors C32 and C34 are connected in parallel between the pin A and the pin B of the CA-IS3082WX chip and the ground respectively, for filtering out high-frequency interference. At the same time, the resistance R58 with a resistance of 120Ω is configured between the pins A and B of the CA-IS3082WX chip as a terminal matching resistance, for reducing signal reflection.
[0043] As shown in FIG. 2, the master control module 2 is connected to the RS485 bus through the RS485 interface, and the RS485 bus is connected to the external RS485 bus through the bus driving and protection circuit. Figure 4 and Figure 5As shown, the interface switching circuit of the RJ45 interface includes an Ethernet physical layer chip and a network transformer, wherein the Ethernet physical layer chip adopted by the Ethernet module is a YT8512H chip, and the network transformer adopts a B1617S. The pins 31, 36, 33, 10, 11, 12, and 25 of the main control module 2 are respectively connected to the pins 16, 17, 20, 9, 10, 26, and 15 of the Ethernet physical layer chip, thereby constructing an RMII communication link therebetween.
[0044] The Ethernet physical layer chip realizes conversion between the RMII signal and the Ethernet differential signal by being connected to the network transformer. The TX1_P, TX1_N, RX1_P, and RX1_N pins of the network transformer are respectively connected to the TX1_P, TX1_N, RX1_P, and RX1_N pins of the RJ45 interface, thereby forming a transmission path of the Ethernet signal and improving the anti-interference capability. In addition, the RJ45 interface adopts a model of RJ45-202-007-02 as a physical access point of the Ethernet signal.
[0045] In the embodiment, the Ethernet physical layer chip is further connected to a state indicating lamp circuit. The LED0 pin of the Ethernet physical layer chip is connected to the indicating lamp LED0 pin built in the RJ45 interface, which is used for indicating the network link connection state. The LED1 pin of the Ethernet physical layer chip is connected to the LED1 pin of the RJ45 interface, which is used for indicating the network data transceiving state.
[0046] As shown in Figure 2 The application provides a circuit structure schematic diagram of the main control module 2. The main control module 2 selects ESP32-WROOM-32UE-N4 as a core processor. The processor is powered by a 3.3V power supply, and a 22μF capacitor C6 and a 100nF capacitor C7 are connected in parallel at the power input end to form a filter circuit, so that the processor can still obtain stable working voltage in the case of voltage fluctuation. A reset circuit composed of a resistor R24 and a capacitor C8 is connected to the reset RST port of the processor. An oscillation circuit is composed of a crystal oscillator with an oscillation frequency of 32.768kHz, a capacitor C19 and a capacitor C22 with a capacitance of 12pF, and a resistor R25 with a resistance of 5MΩ.
[0047] As shown in Figure 6As shown, the clock module 4 adopts a clock chip with power-off maintenance timing function, in this embodiment, the clock module 4 adopts PCF85063ATT / AJ chip, but DS3231 chip or other chips that can meet the requirements can also be selected according to the actual situation. The clock module 4 is used to provide the time stamp for the master module 2, wherein the pins 6, 7 of the master module 2 are connected to the pins SDA, SCL of the PCF85063ATT / AJ chip, and the pin VDD of the PCF85063ATT / AJ chip is connected to the BAV74 button cell to ensure the time maintenance in the power-off state.
[0048] As shown in the figure, Figure 7 The security module 5 in this embodiment adopts AT88SC0104CA-SH chip supporting AES256 encryption standard to encrypt and decrypt the interaction data, the AT88SC0104CA-SH chip is connected with the master module 2 through the communication bus, the pin SDA is a serial data line connected with the pin 27 of the processor; the pin SCL is a serial clock pin used for inputting clock when inputting and outputting data in series, connected with the pin 26 of the processor, wherein the pins SCL and SDA need to be connected with the 3.3V power supply through pull-up resistors with a resistance of 4.7KΩ respectively.
[0049] In this embodiment, the watchdog module 6 is used to detect the running state of the master module 2 and perform a restart operation when it is monitored that the master module 2 enters an abnormal running state. As shown in the figure, Figure 8 The watchdog module 6 provided in this embodiment can adopt MAX6370KA+T chip, the signal pin WDI of the chip is connected to the pin 4 of the processor. When the device is normally running, a periodic pulse signal needs to be sent through the pin 4, and the sending period of the signal should be less than the timeout period of the watchdog, which is used to feedback the normal running of the device to the watchdog module 6; when the timeout period is not sent periodically, the watchdog module 6 triggers a reset operation. The reset signal pin WDO of the MAX6370KA+T chip is connected to the pin 3 of the processor, and the other pins 4, 5, 6 are configured to be pulled up and pulled down through resistors with a resistance of 4.7kΩ, which is used to set a specific watchdog timeout period.
[0050] In this embodiment, the power module 1 provides 3.3V voltage for the master module 2, the watchdog module 6, the security module 5, the clock module 4 and the terminal device interface module 3, to ensure the normal work of each module. Embodiment 2
[0051] The embodiment provides a transmission method of a data transmission device, and the method can be realized based on the data transmission device in embodiment 1, as shown in the figure, Figure 9 The method comprises the following steps:
[0052] Step 1: The main control module 2 collects the operating data of the target terminal device through the terminal device interface module 3;
[0053] In this embodiment, the main control module 2 collects the operating data of the battery management system and the energy management system through the terminal device interface module 3. The terminal device interface module integrates an RS485 interface and an RJ45 interface. The RS485 interface collects the operating data of the battery management system using the 485 communication protocol. This operating data is converted from TTL level to 485 bus level via a serial-to-485 circuit, and the converted signal is transmitted to the main control module 2.
[0054] The RJ45 interface collects operating data from the energy management system that uses the RJ45 interface standard. The operating data is converted to TTL level through the RJ45 interface conversion circuit and transmitted to the main control module 2. The RJ45 interface conversion circuit includes an Ethernet physical layer chip and a network transformer. The Ethernet physical layer chip is connected to the main control module 2, and the RJ45 interface is connected to the Ethernet physical layer chip through the network transformer.
[0055] Step 2: The main control module 2 receives the timestamp provided by the clock module 4, processes the running data, adds the timestamp, and stores it locally;
[0056] In this embodiment, the main control module 2 processes the obtained operating data from the battery management system and energy management system. The main control module 2 then... The communication bus is connected to the clock module 4, which provides a precise time base and timestamp information. The main control module 2 uses the timestamps provided by the clock module 4 to mark the processed data and stores the added timestamp running data locally.
[0057] Step 3: When the preset time interval arrives, the main control module 2 interacts with the cloud platform to exchange data. The data interaction includes uploading the locally stored, timestamped running data to the cloud platform.
[0058] In this embodiment, the WiFi module integrated in the main control module 2 activates upon the arrival of a preset time interval, initiating the upload of locally stored timestamped runtime data to the cloud platform. Once the upload of the timestamped runtime data is complete, the main control module 2 deactivates the WiFi module. After receiving the data, the cloud platform processes and stores it accordingly for subsequent analysis and monitoring. The entire process is automated, ensuring the real-time nature and accuracy of the data, thus providing strong data support for equipment maintenance and optimization.
[0059] In the embodiment, the data transmission device further comprises a watchdog module 6 configured to detect the running state of the master module 2.
[0060] The method comprises: when the master module receives a monitoring signal from the watchdog module 6, wherein the watchdog module 6 is configured to monitor the running state of the master module 2; if it is detected that the running state of the master module 2 is abnormal, the watchdog module 6 performs a restart operation on the master module 2; if the running state of the master module 2 remains normal, the master module 2 continues data interaction.
[0061] The above only describes the preferred embodiments of the present application, and it should be noted that those skilled in the art can make several improvements and modifications without departing from the technical principles of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims
1. A data transmission device, characterized in that, include: The terminal device interface module integrates multiple data transmission interfaces to collect operational data from different terminal devices. The main control module, connected to the terminal device interface module, is used to process the running data and add a timestamp to the processed running data before storing it locally; and to interact with the cloud platform at preset time intervals; wherein, the data interaction includes uploading the locally stored timestamped running data to the cloud platform; The clock module is used to provide the timestamp to the main control module; The security module is used to encrypt and decrypt the data transmitted between the main control module and the cloud platform.
2. The data transmission device according to claim 1, characterized in that, The main control module integrates a WiFi module. In response to the arrival of a preset time interval, the main control module starts the WiFi module and begins uploading the operating data to the cloud platform; in response to the completion of the uploading of the operating data, the main control module shuts down the WiFi module.
3. The data transmission device according to claim 1, characterized in that, The clock module uses a clock chip with a power-off timing function.
4. The data transmission device according to claim 1, characterized in that, The terminal device interface module includes at least an RS485 interface and an RJ45 interface, and the RS485 interface and the RJ45 interface are respectively connected to the main control module through their respective interface conversion circuits.
5. The data transmission device according to claim 4, characterized in that, The RS485 interface conversion circuit includes a serial-to-485 circuit, which is used to connect the TTL interface of the main control module to the RS485 interface to realize the conversion between TTL level and 485 bus level.
6. The data transmission device according to claim 4, characterized in that, The interface adapter circuit of the RJ45 interface includes an Ethernet physical layer chip and a network transformer. The Ethernet physical layer chip is connected to the main control module, and the RJ45 interface is connected to the Ethernet physical layer chip through the network transformer.
7. The data transmission device according to claim 1, characterized in that, It also includes a watchdog module, which is used to monitor the operating status of the main control module and perform a restart operation when the main control module is detected to have entered an abnormal operating state.
8. The data transmission device according to claim 7, characterized in that, It also includes a power supply module, which supplies power to the main control module, watchdog module, security module, clock module and terminal device interface module.
9. A data transmission method based on the device of claim 1, characterized in that, include: The main control module collects the operating data of the target terminal device through the terminal device interface module; The main control module receives the timestamp provided by the clock module, processes the running data, adds the timestamp, and stores it locally. The main control module responds to the arrival of a preset time interval by interacting with the cloud platform, wherein the data interaction includes uploading locally stored, timestamped running data to the cloud platform.
10. The data transmission method according to claim 9, characterized in that, The device also includes a watchdog module, which is used to detect the operating status of the main control module; The method further includes: In response to the watchdog module detecting an abnormal operating status of the main control module, the main control module receives the instruction from the watchdog module and performs a restart operation.