An open coal mine vehicle-mounted terminal accidental power-off data saving system and method
By introducing components such as a main controller, power failure detection circuit, and ferroelectric memory into the on-board terminal of an open-pit coal mine, the problem of data loss caused by unstable power supply and misoperation has been solved, realizing automatic data saving and accuracy, and improving the reliability of production and scheduling management.
Patent Information
- Application Number
- CN202210157762.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2042-02-21
AI Technical Summary
In open-pit mine vehicle operations, unstable power supply and human error can cause unexpected power outages in smart terminals, leading to the loss of critical data, affecting production and scheduling management. Furthermore, existing data storage methods cannot effectively prevent data loss caused by unexpected power outages.
It employs a main controller, a power failure detection circuit, a wide voltage input circuit, a data storage module, and a ferroelectric memory. By detecting power failures, it maintains power supply to the main controller and automatically backs up the real-time information address configuration table to non-volatile memory during power failures. After power is restored, the data is updated to ensure data integrity and accuracy.
It enables automatic data saving in the event of an unexpected power outage, ensuring data reliability and accuracy, preventing data loss, and improving the reliability of production and scheduling management.
Smart Images

Figure CN114564416B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of open-pit mine vehicle-mounted terminals, and in particular to a data storage system and method for unexpected power outages of open-pit coal mine vehicle-mounted terminals. Background Technology
[0002] Currently, vehicle operations in open-pit mines rely primarily on manual dispatching. The limited adoption of intelligent vehicle terminals stems from numerous shortcomings discovered during practical use. Traditionally, production capacity data and critical information from open-pit mine vehicle operations are transmitted to remote servers via 4G or Wi-Fi. However, due to the instability of 4G and Wi-Fi signals, critical data typically requires local storage. Intelligent terminals mostly consist of industrial control computers and auxiliary circuits. Currently, most industrial control computers on the market use 12V DC power, but the power supply is susceptible to interference due to the working environment of open-pit mine vehicles, leading to unexpected power outages and system crashes. Human error can also cause power outages or shutdowns, resulting in the loss of critical data. This severely impacts the accuracy of intelligent production, smart dispatching, and big data statistics, and can even lead to frequent coal loss, causing significant economic losses. Furthermore, the current data saving method used by intelligent terminal systems lacks a solution for data loss due to unexpected power outages, relying solely on manual calibration afterward. This significantly reduces data reliability and accuracy, even affecting the overall dispatching and management of the mine. Summary of the Invention
[0003] To address the problems existing in the prior art, this invention provides a data storage system and method for unexpected power outages of onboard terminals in open-pit coal mines, preventing data loss due to unexpected power outages.
[0004] This invention discloses a data storage system for unexpected power outages of an on-board terminal in an open-pit coal mine, comprising a main controller connected to:
[0005] Power failure detection circuit, used to detect power failure of the vehicle terminal;
[0006] Wide voltage input circuitry is used to maintain power supply to the main controller during power failure;
[0007] The data storage module includes: a power-down storage circuit and / or a power-down storage ferroelectric memory; the power-down storage circuit includes a static random access memory serial storage chip U3 with non-volatile data storage backup, and the power-down storage ferroelectric memory includes a ferroelectric memory U5.
[0008] The main controller has a real-time information address configuration table. The main controller is used to: back up and store the real-time information address configuration table to the data storage module when the vehicle terminal loses power; and read the real-time information address configuration table from the data storage module after the vehicle terminal is powered on again, and increment the value of the data update count in the real-time information address configuration table by 1 to update the real-time information address configuration table.
[0009] Furthermore, the power-down detection circuit includes an optocoupler. The anode of the optocoupler is connected in sequence to the light-emitting diode L1, resistor R8, and 12V input power supply. The cathode is connected to the power supply ground. The emitter is connected in sequence to the power supply ground, capacitor C10, and the LP1 terminal of the main controller circuit. The collector is connected in sequence to resistor R3 and 3.3V power supply.
[0010] Furthermore, the wide voltage input circuit includes a power supply module U4. The GND pin of the power supply module U4 is connected to the power supply ground. The VIN pin of the power supply module U4 is sequentially connected to the 12V input power supply, capacitor C30, and power supply ground. The VOUT+ pin of the power supply module U4 is sequentially connected to the 5V input power supply, capacitor C31, capacitor C6, and power supply ground. The GND1 pin of the power supply module U4 is connected to the power supply ground.
[0011] Furthermore, in the power-down preservation circuit, the Vcap pin of memory chip U3 is sequentially connected to capacitor C22 and power ground; the A1, A2, and Vss pins of memory chip U3 are connected to power ground; the SDA pin of memory chip U3 is sequentially connected to resistor R22 and 3.3V input power; the SCL pin of memory chip U3 is sequentially connected to resistor R23 and 3.3V input power; the HS pin of memory chip U3 is connected to the HS terminal of the main controller circuit; and the Vcc pin of memory chip U3 is connected to the 3.3V input power, capacitor C22, and power ground.
[0012] Furthermore, in the power-down retention ferroelectric memory, the CS pin of ferroelectric memory U5 is connected to the SPI1_CS1 terminal of the main controller circuit, the SO pin of ferroelectric memory U5 is connected to the SPI1_MISO terminal of the main controller circuit, the WP pin of ferroelectric memory U5 is connected to the 3.3V input power supply, the GND pin of ferroelectric memory U5 is connected to the power ground, the SI pin of ferroelectric memory U5 is connected to the SPI1_MOSI terminal of the main controller circuit, the SCK pin of ferroelectric memory U5 is connected to the SPI1_SCK terminal of the main controller circuit, the HOLD pin of ferroelectric memory U5 is connected to the 3.3V input power supply, and the VCC pin of ferroelectric memory U5 is sequentially connected to the 3.3V input power supply, capacitor C41, and power ground.
[0013] Furthermore, the main controller is also connected to: an industrial computer, an ACC detection circuit, a reverse connection protection circuit, a power supply filtering circuit, an overvoltage protection circuit, an overcurrent protection circuit, a temperature detection circuit, a CAN communication circuit, a serial communication circuit, a reset circuit, a key acquisition circuit, a power-off control circuit, a high-precision positioning circuit, a WiFi module, a power amplifier module, a 4G module, and reserved I / O ports.
[0014] This invention also discloses a method for saving data in the event of an unexpected power outage of an on-board terminal in an open-pit coal mine, comprising:
[0015] The main controller determines the power failure status of the vehicle terminal based on the power failure detection circuit;
[0016] When a power failure is detected, the main controller, which is powered by the wide voltage input circuit, backs up and stores the real-time information address configuration table to the data storage module when the vehicle terminal loses power.
[0017] After the vehicle terminal is powered on again, it reads the real-time information address configuration table from the data storage module and increments the value of the data update count in the real-time information address configuration table by 1 to update the real-time information address configuration table.
[0018] The data storage module includes: a power-off storage circuit and / or a power-off storage ferroelectric memory.
[0019] Furthermore, the main controller detects the power failure status of the vehicle terminal based on the power failure detection circuit, including:
[0020] The optocoupler in the power failure detection circuit detects the voltage of the input DC power supply. When the vehicle terminal loses power, the minimum conduction current I of the optocoupler is detected. min If the value is below the threshold, it is considered a power outage.
[0021] Furthermore, when the data storage module includes both a power-down retention circuit and a power-down retention ferroelectric memory, the method further includes:
[0022] After the vehicle terminal is powered on again, it reads the real-time information address configuration tables of the power-down preservation circuit and the power-down preservation ferroelectric memory, and extracts the data update counts from the two real-time information address configuration tables respectively.
[0023] If the update counts of the two data entries are equal, then both real-time information address configuration tables are considered valid. If the update counts of the two data entries are not equal, then the real-time information address configuration table corresponding to the one with the larger value is valid, and the other real-time information address configuration table is invalid. The invalid real-time information address configuration table is then replaced with a valid one.
[0024] This invention enables accidental power failure shutdown through two methods: power input interference and manual power-off. Each time the system powers on, the data update count in the real-time information address configuration table is automatically incremented by 1. The main controller transmits the data update count and other address data in real-time via RS232 communication, allowing the host computer to display relevant data in real-time via a USB-to-RS232 serial port. Through pulse group interference and manual power-off, the system was powered off 1000 times. After each power failure, the last frame of uploaded data displayed on the host computer interface was saved. Upon restarting, the corresponding data was read and compared; the saved data consistently matched the data before the power failure. This achieves real-time data saving for accidental power failures in the vehicle terminal, with no data loss, ensuring data reliability and accuracy.
[0025] Other beneficial effects of the present invention will be described in detail in the Detailed Description of the Embodiments section. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is the system framework of the open-pit coal mine vehicle-mounted terminal accidental power failure data storage system disclosed in the preferred embodiment of the present invention.
[0028] Figure 2 This is a circuit diagram of the power-off preservation circuit disclosed in a preferred embodiment of the present invention.
[0029] Figure 3 This is a circuit diagram of the power-down detection circuit disclosed in a preferred embodiment of the present invention.
[0030] Figure 4 This is a circuit diagram of a wide voltage input circuit disclosed in a preferred embodiment of the present invention.
[0031] Figure 5 This is a circuit diagram of a power-off ferroelectric memory disclosed in a preferred embodiment of the present invention.
[0032] In the diagram, 100-Main controller, 101-Wide voltage input circuit, 102-Reverse connection protection circuit, 103-Power supply filtering circuit, 104-Overvoltage protection circuit, 105-Overcurrent protection circuit, 106-Temperature detection circuit, 107-ACC detection circuit, 108-CAN communication circuit, 109-Serial communication circuit, 110-Reset circuit, 111-Key acquisition circuit, 112-Power-off control circuit, 113-High-precision positioning circuit, 114-WiFi module, 115-Power amplifier module, 116-4G module, 117-Industrial computer, 118-Reserved IO interface, 119-Power-down detection circuit, 120-Power-down save circuit, 121-Power-down save ferroelectric memory. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be described in detail below. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other implementation methods obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0034] The existing intelligent terminals of open-pit mining vehicles have poor anti-interference capabilities, often leading to system malfunctions due to the following reasons:
[0035] ① Heavy-duty vehicles may experience a sudden drop in system voltage when the electric motor is started.
[0036] ② Trucks, oil drills, auxiliary vehicles and other DC-powered vehicles are mainly powered by batteries. When the batteries age, the voltage drop of the lines is too large, or the environment is extremely low temperature, the power supply will be undervoltage.
[0037] ③When the vehicle starts, the generator will generate an inrush voltage.
[0038] ④Voltage pulse groups are generated during vehicle welding and repair.
[0039] ⑤ During installation or maintenance, the positive and negative terminals of the power supply may be reversed.
[0040] The aforementioned reasons frequently lead to unexpected power outages and data loss in smart terminals. This invention proposes a dual data protection measure from both hardware structure and method perspectives. Upon detecting a power outage, a delayed power-off hardware circuit saves the data to a non-volatile data storage device (EEPROM), thus achieving data preservation and providing an effective method for intelligent data preservation in vehicle-mounted terminals during power outages. This eliminates data ambiguity issues caused by unexpected data loss and ensures accurate data statistics.
[0041] Example 1
[0042] like Figure 1 As shown, an open-pit coal mine vehicle-mounted terminal accidental power failure data storage system includes a main controller 100, which is connected to:
[0043] (1) Power failure detection circuit 119, used to detect the power failure status of the vehicle terminal;
[0044] (2) Wide voltage input circuit 101, used to maintain power supply to main controller 100 when power is lost;
[0045] (3) Data storage module, which includes a power-down storage circuit 120 and / or a power-down storage ferroelectric memory 121. That is, the system may have three configurations: only a power-down storage circuit is provided; only a power-down storage ferroelectric memory 121 is provided; or both a power-down storage circuit 120 and a power-down storage ferroelectric memory 121 are provided. The power-down storage circuit 120 includes a static random access memory serial storage chip U3 with non-volatile data memory backup, and the power-down storage ferroelectric memory 121 includes a ferroelectric memory U5.
[0046] The main controller 100 is provided with a real-time information address configuration table, which reflects the address and corresponding data. This embodiment provides a preferred real-time information address configuration table, as shown in Table 1 below:
[0047]
[0048]
[0049] Table 1
[0050] The main controller 100 is used to: back up and store the real-time information address configuration table to the data storage module when the vehicle terminal loses power; and read the real-time information address configuration table from the data storage module after the vehicle terminal is powered on again, and increment the value of the data update count in the real-time information address configuration table by 1 to update the real-time information address configuration table.
[0051] like Figure 2 As shown, the power-down preservation circuit 120 includes a memory chip U3 (47L04CN). Pin 1 is connected in sequence to capacitor C22 and power ground. Pin 2, pin 3, and pin 4 of memory chip U3 are connected to power ground. Pin 5 is connected in sequence to resistor R22 and input power supply 3.3V. Pin 6 is connected in sequence to resistor R23 and input power supply 3.3V. Pin 7 of memory chip U3 is connected to the HS terminal of the main controller circuit. Pin 8 of memory chip U3 is connected to input power supply 3.3V, capacitor C22, and power ground.
[0052] The hardware circuitry uses the 47L04 serial static random access memory (SRAM) chip with non-volatile data memory (EEPROM) backup. This device consists of 512 x 8 bits of memory and employs an I2C serial interface. The 47L04 supports unlimited read and write operations to the SRAM, while the EEPROM cells provide highly erasable and write-resistant non-volatile storage. With the aid of external capacitors, SRAM data is automatically transferred to the EEPROM when power is off. Upon power-up, the EEPROM data is automatically transferred back to the SRAM.
[0053] like Figure 3 As shown, the power-down detection circuit 119 includes an optocoupler P1 (PT521). Pin 1 is sequentially connected to LED L1, resistor R8, and the 12V input power supply. Pin 2 of optocoupler P1 is connected to ground. Pin 3 of optocoupler P1 is sequentially connected to ground, capacitor C10, and the LP1 terminal of the main controller circuit. Pin 4 of optocoupler P1 is sequentially connected to resistor R3 and the 3.3V power supply. The optocoupler PT521 is used to detect the input DC power supply voltage, ensuring the optocoupler's conduction voltage V remains constant even when the system experiences an unexpected power outage. 导通 =1.3V (LED and optocoupler on-state voltage drop), minimum on-state current I min =2mA calculation, (V 断电 -V 导通 ) / 2.4kΩ>I min .
[0054] like Figure 4 As shown, the wide voltage input circuit 101 includes U4 (URB1205YMD), wherein pin 1 is connected to power ground, pin 2 of U4 is sequentially connected to input power 12V, capacitor C30, and power ground, pin 3 of U4 is sequentially connected to input power 5V, capacitor C31, capacitor C6, and power ground, and pin 5 of U4 is connected to power ground.
[0055] like Figure 5 As shown, the power-down retention ferroelectric memory 121 includes a ferroelectric memory U5 (MB85RS128A), wherein pin 1 is connected to the SPI1_CS1 terminal of the main controller circuit, pin 2 of U5 is connected to the SPI1_MISO terminal of the main controller circuit, pin 3 of U5 is connected to the input power supply 3.3V, pin 4 of U5 is connected to the power supply ground, pin 5 of U5 is connected to the SPI1_MOSI terminal of the main controller circuit, pin 6 of U5 is connected to the SPI1_SCK terminal of the main controller circuit, pin 7 of U5 is connected to the input power supply 3.3V, and pin 8 of U5 is sequentially connected to the input power supply 3.3V, capacitor C41, and power supply ground.
[0056] When a system power failure is detected, the power input terminal experiences undervoltage. A 1000µF / 16V capacitor C31 is added to the 5V side of the main controller's operating power supply in the system's self-made circuit. This capacitor ensures the main controller can maintain power for a short period after a power failure; the circuit in this invention maintains power for approximately 200ms. When the main controller detects a power failure signal (LP1 transitions from high to low), it considers the system to be powered down. The main controller then stores the data from the real-time information address configuration table into the SPI protocol ferroelectric memory chip MB85RS128A. This invention sets the SPI communication rate to 100Kbit / s, the number of bytes to be stored to 30, and the time to store the data to approximately 2.4ms. This capacitor value is sufficient to meet the time requirement for data retention during a current system power failure.
[0057] like Figure 1 As shown, the main controller in the system is also connected to: reverse connection protection circuit 102, power supply filtering circuit 103, overvoltage protection circuit 104, overcurrent protection circuit 105, temperature detection circuit 106, CAN communication circuit 108, serial communication circuit 109, reset circuit 110, key acquisition circuit 111, power off control circuit 112, high-precision positioning circuit 113, WiFi module 114, power amplifier module 115, 4G module 116, industrial computer 117, and reserved IO port 118.
[0058] This embodiment also discloses a method for saving data during unexpected power outages of an on-board terminal in an open-pit coal mine, which can be applied to the aforementioned data saving system for unexpected power outages of an on-board terminal in an open-pit coal mine. Specifically, when the minimum conducting current I of P1 (PT521)... min It conducts when the current is ≥ the threshold (2mA), otherwise it powers off. min =(V 断 -V 导通 ) / R8 resistance value (R8=2.4KΩ), V 导通 =1.3V is the PT521 calibration value plus the forward voltage drop of diode D1. LP1 is high when power is off and low when power is on. After power is off from a high level, the main controller sends the real-time information address configuration table (Table 1) to the power-off ferroelectric memory backup storage via the SPI1_CS1, SPI1_MISO, SPI1_MOSI, and SPI1_SCK interfaces. Simultaneously, the power-off preservation circuit automatically backs up the real-time information address configuration table.
[0059] After the system is powered on, it reads the number of times the power-off ferroelectric memory data is updated, increments by 1 upon power-on, and forms a new number of times the power-off ferroelectric memory data is updated. The real-time information address configuration table is saved to the power-off ferroelectric memory.
[0060] After power-on, the power-down save circuit automatically reads the real-time information address configuration table data from the non-volatile data memory (EEPROM) to the static random access memory (SRAM), and at the same time reads the power-down save circuit data update count and increments it by 1 to form a new power-down save circuit data update count, which is automatically saved when power is off.
[0061] When the data storage system for unexpected power outages in an open-pit coal mine vehicle terminal includes both a power-off storage circuit 120 and a power-off storage ferroelectric memory 121, there may be data ambiguity in the real-time information address configuration tables of the two. Therefore, this embodiment also discloses two effective data judgment mechanisms for data ambiguity. By comparing the "number of times the power-off storage circuit data is updated" and the "number of times the power-off storage ferroelectric memory data is updated" in Table 1, data ambiguity is judged. If the two values are different, it is considered that there is ambiguity between the two storage methods. The one with the larger update count value is considered to be valid storage, thereby confirming whether to read the data from the power-off storage circuit 120 or the data from the power-off storage ferroelectric memory 121, effectively solving the two data ambiguity problems.
[0062] Preferably, if the number of times the data of the power-down preservation circuit is updated is greater than or equal to that of the power-down preservation ferroelectric memory after a power outage and subsequent power-on, the real-time information address configuration table of the power-down preservation circuit is valid; otherwise, the real-time information address configuration table of the power-down preservation ferroelectric memory is valid, and the invalid table is replaced with a new real-time information address configuration table.
[0063] Example 2
[0064] Record relevant system data and manually unplug the terminal power supply. The ACC detection circuit 107 and power failure detection circuit 119 simultaneously detect system undervoltage, and the power failure storage circuit 120 and power failure storage ferroelectric memory 121 begin storing data. After the system is powered on again, the data from the real-time information address configuration table of the power failure storage circuit 120 and the real-time information address configuration table of the power failure storage ferroelectric memory 121 are read into the system memory. The update count values of the power failure storage circuit data and the update count of the power failure storage ferroelectric memory data are extracted from the real-time information address configuration table of the power failure storage circuit 120 and the real-time information address configuration table of the power failure storage ferroelectric memory 121. Refer to Table 2 for the data comparison record table, where the data is in hexadecimal format.
[0065]
[0066] Table 2
[0067] The comparison revealed that the values were the same as before the power outage, and the number of data updates by the power-outage data preservation circuit and the number of data updates by the power-outage ferroelectric memory both increased by 1 each time compared to before the power outage. Therefore, this invention can automatically save data after an unexpected power outage in a smart terminal, ensuring the integrity and authenticity of the data.
[0068] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for saving data during unexpected power outages of an on-board terminal in an open-pit coal mine, comprising an on-board terminal data saving system for unexpected power outages in an open-pit coal mine, including a main controller connected to: Power failure detection circuit, used to detect power failure of the vehicle terminal; Wide voltage input circuitry is used to maintain power supply to the main controller during power failure; The data storage module includes: a power-down storage circuit and / or a power-down storage ferroelectric memory; the power-down storage circuit includes a static random access memory serial storage chip U3 with non-volatile data storage backup, and the power-down storage ferroelectric memory includes a ferroelectric memory U5. The main controller has a real-time information address configuration table. The main controller is used to: back up and store the real-time information address configuration table to the data storage module when the vehicle terminal loses power; and read the real-time information address configuration table from the data storage module after the vehicle terminal is powered on again, and increment the value of the data update count in the real-time information address configuration table by 1 to update the real-time information address configuration table. The method for saving data in case of unexpected power failure of the on-board terminal in an open-pit coal mine includes: The main controller determines the power failure status of the vehicle terminal based on the power failure detection circuit; When a power failure is detected, the main controller, which is powered by the wide voltage input circuit, backs up and stores the real-time information address configuration table to the data storage module when the vehicle terminal loses power. After the vehicle terminal is powered on again, it reads the real-time information address configuration table from the data storage module and increments the value of the data update count in the real-time information address configuration table by 1 to update the real-time information address configuration table. The main controller detects the power failure status of the vehicle terminal based on the power failure detection circuit, including: The optocoupler in the power failure detection circuit detects the voltage of the input DC power supply. When the vehicle terminal loses power, the minimum conduction current I of the optocoupler is detected. min A power outage is determined when the value is below the threshold. When the minimum on-current I of the optocoupler PT521 min It conducts when the current is ≥2mA, otherwise it loses power. min =(V 断电 -V 导通 ) / 2.4KΩ, V 导通 =1.3V is the PT521 calibration value plus the forward voltage drop of diode D1. When the power is off, the LP1 terminal of the main controller circuit is at a high level, and when the power is on, the LP1 terminal of the main controller circuit is at a low level. After the high-level power is cut off, the main controller sends the real-time information address configuration table to the backup storage of the power-down ferroelectric memory through the SPI1_CS1, SPI1_MISO, SPI1_MOSI, and SPI1_SCK interfaces. Simultaneously, the circuit automatically backs up the real-time information address configuration table when power is lost.
2. The method for saving data in case of accidental power failure of an on-board terminal in an open-pit coal mine according to claim 1, characterized in that, The power failure detection circuit includes an optocoupler. The anode of the optocoupler is connected in sequence to LED L1, resistor R8, and 12V input power supply. The cathode is connected to power ground. The emitter is connected in sequence to power ground, capacitor C10, and the LP1 terminal of the main controller circuit. The collector is connected in sequence to resistor R3 and 3.3V power supply.
3. The method for saving data in case of accidental power failure of an on-board terminal in an open-pit coal mine according to claim 1, characterized in that, The wide voltage input circuit includes a power supply module U4. The GND pin of the power supply module U4 is connected to the power supply ground. The VIN pin of the power supply module U4 is connected in sequence to the 12V input power supply, capacitor C30, and power supply ground. The VOUT+ pin of the power supply module U4 is connected in sequence to the 5V input power supply, capacitor C31, capacitor C6, and power supply ground. The GND1 pin of the power supply module U4 is connected to the power supply ground.
4. The method for saving data in case of accidental power failure of an on-board terminal in an open-pit coal mine according to claim 1, characterized in that, In the power-down preservation circuit, the Vcap pin of memory chip U3 is connected sequentially to capacitor C22 and power ground; the A1, A2, and Vss pins of memory chip U3 are connected to power ground; the SDA pin of memory chip U3 is connected sequentially to resistor R22 and 3.3V input power; the SCL pin of memory chip U3 is connected sequentially to resistor R23 and 3.3V input power; the HS pin of memory chip U3 is connected to the HS terminal of the main controller circuit; and the Vcc pin of memory chip U3 is connected to the 3.3V input power, capacitor C22, and power ground.
5. The method for saving data in case of accidental power failure of an on-board terminal in an open-pit coal mine according to claim 1, characterized in that, In the power-down retention ferroelectric memory, the CS pin of ferroelectric memory U5 is connected to the SPI1_CS1 terminal of the main controller circuit; the SO pin of ferroelectric memory U5 is connected to the SPI1_MISO terminal of the main controller circuit; the WP pin of ferroelectric memory U5 is connected to the 3.3V input power supply; the GND pin of ferroelectric memory U5 is connected to the power ground; the SI pin of ferroelectric memory U5 is connected to the SPI1_MOSI terminal of the main controller circuit; the SCK pin of ferroelectric memory U5 is connected to the SPI1_SCK terminal of the main controller circuit; the HOLD pin of ferroelectric memory U5 is connected to the 3.3V input power supply; and the VCC pin of ferroelectric memory U5 is sequentially connected to the 3.3V input power supply, capacitor C41, and power ground.
6. The method for saving data in case of accidental power failure of an on-board terminal in an open-pit coal mine according to claim 1, characterized in that, The main controller is also connected to: an industrial computer, an ACC detection circuit, a reverse connection protection circuit, a power supply filtering circuit, an overvoltage protection circuit, an overcurrent protection circuit, a temperature detection circuit, a CAN communication circuit, a serial communication circuit, a reset circuit, a key acquisition circuit, a power-off control circuit, a high-precision positioning circuit, a WiFi module, a power amplifier module, a 4G module, and a reserved I / O port.
7. The method for saving data in case of accidental power failure of an on-board terminal in an open-pit coal mine according to claim 1, characterized in that, When the data storage module includes both a power-down retention circuit and a power-down retention ferroelectric memory, the method further includes: After the vehicle terminal is powered on again, it reads the real-time information address configuration tables of the power-down preservation circuit and the power-down preservation ferroelectric memory, and extracts the data update counts from the two real-time information address configuration tables respectively. If the update counts of the two data entries are equal, then both real-time information address configuration tables are considered valid. If the update counts of the two data entries are not equal, then the real-time information address configuration table corresponding to the one with the larger value is valid, and the other real-time information address configuration table is invalid. The invalid real-time information address configuration table is then replaced with a valid one.
Citation Information
Patent Citations
Electric locomotive stringing automatic power-off control apparatus and control method
CN104503300A
Method and device for data storage, and terminal
CN105512056A