Elevator memory card state detection method
By using an elevator memory card status detection method, the problem of misjudging the memory card status in elevator intelligent rescue terminals under harsh environments has been solved, achieving accurate status judgment and stable system operation, and reducing operation and maintenance costs and safety risks.
Patent Information
- Application Number
- CN202511721814.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-03-20
AI Technical Summary
Existing elevator intelligent rescue terminals are prone to misjudging the memory card status in harsh environments, leading to increased maintenance burden or loss of alarm event data, posing a significant security risk.
An elevator memory card status detection method is adopted. By detecting the mounting path, reading and writing test data, and combining historical records and shutdown records, the memory card status is intelligently judged to avoid misjudgment.
It can effectively distinguish between the normal, ejected, not inserted, and damaged states of memory cards, reduce the false judgment rate, ensure the stable operation of the elevator system, and reduce the cost of manual inspection and maintenance.
Smart Images

Figure CN121709007A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the elevator Internet of Things technical field, and particularly relates to an elevator memory card state detection method. BACKGROUND
[0002] In an elevator Internet of Things system, a smart rescue terminal deployed in an elevator car or a control cabinet undertakes public safety functions and business operation functions. The public safety functions are to automatically record alarm events, elevator numbers, fault codes and on-site audio and video in emergency events such as elevator trapping and failure, and upload them to an operation and maintenance platform through a wireless network, which can effectively protect the safety of passengers. The business operation functions are embodied in that the smart rescue terminal can be used as an advertisement playing terminal to continuously display video or picture content and generate commercial benefits. In order to realize the above two main functions, the smart rescue terminal needs to connect an external memory card through a standard interface (such as SDIO or USB). The memory card is used to store relevant data of emergency events such as elevator trapping and failure, which can facilitate the acquisition of relevant data after the events occur. At the same time, the memory card is used to store advertisement related data, which can facilitate maintenance personnel to update the advertisement content in real time. However, the elevator operating environment is relatively harsh, and long-term high-frequency vibration can easily cause the memory card to loosen or have poor contact. Sudden power failure can also cause file system damage. Frequent insertion and removal of the memory card by maintenance personnel for advertisement update can also cause confusion of the memory card state. The existing smart rescue terminal only relies on the automatic mounting result of the operating system or simple reading test to judge the state of the memory card, which can easily cause misjudgment of "card damage" and trigger invalid alarms (such as when the memory card is normally ejected during regular maintenance), thereby increasing the operation and maintenance burden. In a more serious case, when the memory card cannot normally write data and is not found, it can cause loss of alarm event data and cause major safety responsibility risks. SUMMARY
[0003] The present application aims to provide an elevator memory card state detection method, and particularly to provide an elevator memory card state detection method with historical state memory and intelligent inference capability for special working conditions.
[0004] To achieve the above-mentioned purpose, the present application adopts the following technical scheme: an elevator memory card state detection method, comprising the following steps: S1, the control system of the elevator smart rescue terminal judges whether the mounting path of the memory card exists by accessing the mounting path of the memory card.
[0005] S2, if it is detected in step S1 that the mounting path of the memory card exists, the state of the memory card is judged as "damaged" by attempting to read the business resource data stored in the memory card, if the business resource data stored in the memory card cannot be read.
[0006] S3. If the business resource data stored in the memory card can be read normally in step S2, then try to write test data to the memory card. If the test data cannot be written, then the memory card is judged to be "damaged". If the test data can be written normally, then delete it after writing the test data and judge the memory card to be "normal".
[0007] S4. If the mounting path of the memory card in step S1 does not exist, then query the memory card status in the history of the memory card status. If the previous memory card status was "damaged", then determine that the memory card status is "damaged".
[0008] S5. If the memory card status in step S4 was "normal", then check if there is a normal shutdown record in the elevator intelligent rescue terminal. If there is a normal shutdown record, it is determined that the maintenance personnel normally ejected the memory card to update the memory card content. At this time, the memory card status is determined to be "ejected". If there is no normal shutdown record, the memory card status is determined to be "damaged".
[0009] Specifically, in step S5, if the memory card status in step S4 was "ejected", then the memory card status is determined to be "ejected".
[0010] In addition, if the maintenance personnel eject the memory card normally during the maintenance period, but fail to insert the memory card due to damage requiring replacement or other reasons, the maintenance personnel shall set the memory card status to "not inserted".
[0011] Specifically, in step S5, if the memory card status in step S4 was "not inserted", then the memory card status is determined to be "not inserted".
[0012] Specifically, the historical record of the memory card status in step S4 is stored in the non-volatile flash memory built into the elevator intelligent rescue terminal; and it is stored in the historical record of the memory card status after each update.
[0013] The beneficial effects of this invention are as follows: 1. Not only does it detect the mounting path of the memory card, but it also detects the reading and writing of the memory card to avoid problems such as the inability to read advertising data or write alarm event data, thus ensuring the stable operation of the elevator intelligent rescue terminal. 2. By adopting a degradation query mechanism that combines historical records and shutdown records, it is possible to effectively distinguish between different states such as popped-up, not inserted, and damaged, thereby reducing misjudgment of damage and thus reducing the cost of manual inspection and maintenance. Attached Figure Description
[0014] Appendix Figure 1 This is a logic block diagram of an elevator memory card status detection method in an embodiment. Detailed Implementation
[0015] Reference Figure 1 A method for detecting the status of an elevator memory card, comprising the following steps: S1. The control system of the elevator intelligent rescue terminal determines whether the memory card's mounting path exists by accessing the mounting path of the memory card.
[0016] S2. If the mounting path of the memory card is detected in step S1, then try to read the service resource data stored in the memory card. If the service resource data stored in the memory card cannot be read, then the memory card is determined to be "damaged".
[0017] S3. If the business resource data stored in the memory card can be read normally in step S2, then try to write test data to the memory card. If the test data cannot be written, then the memory card is judged to be "damaged". If the test data can be written normally, then delete it after writing the test data and judge the memory card to be "normal".
[0018] S4. If the mounting path of the memory card in step S1 does not exist, then query the memory card status in the history of the memory card status. If the previous memory card status was "damaged", then determine that the memory card status is "damaged".
[0019] S5. If the memory card status in step S4 was "normal", then check if there is a normal shutdown record in the elevator intelligent rescue terminal. If there is a normal shutdown record, it is determined that the maintenance personnel normally ejected the memory card to update the memory card content. At this time, the memory card status is determined to be "ejected". If there is no normal shutdown record, the memory card status is determined to be "damaged".
[0020] Specifically, in step S5, if the memory card status in step S4 was "ejected", then the memory card status is determined to be "ejected".
[0021] In addition, if the maintenance personnel eject the memory card normally during the maintenance period, but fail to insert the memory card due to damage requiring replacement or other reasons, the maintenance personnel shall set the memory card status to "not inserted".
[0022] Specifically, in step S5, if the memory card status in step S4 was "not inserted", then the memory card status is determined to be "not inserted".
[0023] Specifically, the historical record of the memory card status in step S4 is stored in the non-volatile flash memory built into the elevator intelligent rescue terminal; and it is stored in the historical record of the memory card status after each update.
[0024] To further illustrate how to implement the above memory card detection method, this application provides two commonly used elevator rescue terminal types as specific embodiments: Example 1: Low-cost, high-reliability intelligent elevator rescue terminal based on RTOS For specific configuration details, please refer to the following: Hardware configuration: The main control chip is STM32H743 (Cortex-M7, 480 MHz), which connects to a microSD card via the SDIO interface; it has 8 MB of built-in SPI Nor Flash for storing historical states; the communication module is NB-IoT; and it has a power failure detection circuit.
[0025] Software platform: running FreeRTOS real-time operating system, with FatFs file system; the above detection steps are performed by a separate high-priority task.
[0026] Implementation details: In step S1, the mount path of the memory card is logical volume "0:"; In step S3, when attempting to write test data to the memory card, the test file written is / .test.tmp, and it is deleted immediately after writing 512 bytes of verification data; The historical records of the memory card status are stored in a fixed sector of Nor Flash in single-byte form (0x00~0x03), and are updated by atomic write before power-off; The test results are reported via NB-IoT using lightweight JSON.
[0027] Applicable scenarios: Lightweight terminals that only need to store alarm logs and local advertisements, emphasizing fast startup, anti-interference, and low power consumption.
[0028] Example 2: A multi-functional high-end terminal based on Linux For specific configuration details, please refer to the following: Hardware configuration: The main controller is NXP i.MX6ULL (Cortex-A7, 800 MHz), with 512 MB DDR3 + 4GB eMMC onboard; the SD card interface supports UHS-I; it integrates a 1080p camera and a 4G module; and it supports UPS backup power.
[0029] Software platform: A lightweight Linux system built on Buildroot (including the PREEMPT_RT patch), with the SD card mounted at / mnt / sdcard and the file system being vfat; the detection logic is implemented by the systemd daemon.
[0030] Implementation details: In step S1, the mount path of the memory card is / mnt / sdcard; In step S2, when reading the service resource data stored in the memory card, the test file read is / mnt / sdcard / ad / video.mp4; In step S3, when attempting to write test data to the memory card, 4KB of data is used for the test write and fsync() is called to ensure that the data is written to disk; The historical records of the memory card status are stored in JSON format in / etc / sd_history.bin of the eMMC, and are combined with system logs to determine the shutdown type; Supports periodic checks during operation (once every 5 minutes).
[0031] Applicable scenarios: High-end terminals that require local storage of multiple channels of high-definition alarm recordings and support remote OTA upgrades.
[0032] Of course, the above are only preferred embodiments of the present invention and are not intended to limit the scope of application of the present invention. Therefore, any equivalent changes made to the principle of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for detecting the status of an elevator memory card, characterized in that, Includes the following steps: S1. The control system of the elevator intelligent rescue terminal determines whether the memory card mounting path exists by accessing the mounting path of the memory card. S2. If the mounting path of the memory card is detected in step S1, then try to read the service resource data stored in the memory card. If the service resource data stored in the memory card cannot be read, then the memory card is determined to be "damaged". S3. If the business resource data stored in the memory card can be read normally in step S2, then try to write test data to the memory card. If the test data cannot be written, then the memory card is judged to be "damaged". If the test data can be written normally, then delete it after writing the test data and judge the memory card to be "normal". S4. If the mounting path of the memory card in step S1 does not exist, then query the memory card status in the history of memory card status. If the previous memory card status was "damaged", then determine that the memory card status is "damaged". S5. If the memory card status in step S4 was "normal", check if there is a normal shutdown record in the elevator intelligent rescue terminal. If there is a normal shutdown record, it is determined that the maintenance personnel normally ejected the memory card to update the memory card content. At this time, the memory card status is determined to be "ejected". If there is no normal shutdown record, the memory card status is determined to be "damaged".
2. The elevator memory card status detection method according to claim 1, characterized in that: In step S5, if the memory card status in step S4 was "ejected", then the memory card status is determined to be "ejected".
3. The elevator memory card status detection method according to claim 1, characterized in that: If the maintenance personnel eject the memory card normally during the maintenance period, but fail to insert the memory card due to damage requiring replacement or other reasons, the maintenance personnel shall set the memory card status to "not inserted".
4. The elevator memory card status detection method according to claim 3, characterized in that: In step S5, if the memory card status in step S4 was "not inserted", then the memory card status is determined to be "not inserted".
5. The elevator memory card status detection method according to claim 1, characterized in that: The historical record of the memory card status in step S4 is stored in the non-volatile flash memory built into the elevator intelligent rescue terminal; and it is stored in the historical record of the memory card status after each update.