Wireless data storage method and system and programmable wireless transmission equipment

By setting up an analog memory area in a programmable wireless transmission device for data storage and encrypted transmission, the problems of low data storage efficiency and insufficient security in the prior art are solved, and efficient and secure data storage is achieved.

CN120499650APending Publication Date: 2025-08-15HANGZHOU OPTIMAX TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510551866.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, when debugging the installed equipment through external memory, data storage efficiency is low and data security needs to be improved.

Method used

An analog memory area is set in a programmable wireless transmission device, and data storage is performed by an analog memory area consistent with the preset nonvolatile memory operation attributes, encrypted transmission and integrity verification of data packets are realized, and the data packet to be stored is written to the corresponding storage sector.

Benefits of technology

It improves the security and storage efficiency of wireless debugging data, avoids the need for external memory, and enhances the security and efficiency of data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499650A_ABST
    Figure CN120499650A_ABST
Patent Text Reader

Abstract

The invention relates to a wireless data storage method and system and programmable wireless transmission equipment, and is applied to the field of data management.The wireless data storage method comprises the steps that under the condition that a client side and the programmable wireless transmission equipment start communication transmission, an encrypted data storage ciphertext sent by the client side is received and analyzed, and the encrypted data storage ciphertext is sent to the programmable wireless transmission equipment; obtaining a packet attribute and a storage key of the to-be-stored data packet; dividing a data storage area based on the packet attribute of the to-be-stored data packet to obtain a plurality of storage sectors corresponding to the packet attribute; in response to a data storage request sent by the client, performing integrity verification on a to-be-stored data packet carried in the received data storage request based on the storage key; and writing the to-be-stored data packet passing the integrity verification into the storage sector corresponding to the packet attribute of the to-be-stored data packet, thereby solving the problems that the data storage efficiency is relatively low and the data security needs to be improved when the micro-control processor performs wireless debugging operation on the installed equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data management, and in particular to a wireless data storage method, system and programmable wireless transmission device. Background Art

[0002] Currently, post-commissioning and maintenance of installed equipment typically requires flashing new programs onto external storage devices to perform functional updates and troubleshoot problems. Traditional external storage for functional updates and troubleshooting requires factory personnel to flash the upgrade package onto the device and then mail it to maintenance personnel. If the upgrade or repair package is unusable, it must be mailed again, significantly extending the maintenance cycle and reducing data storage efficiency. Furthermore, when returning the device to the factory for a functional update or troubleshooting upgrade, there is a risk of memory write anomalies or data loss, resulting in reduced security.

[0003] Regarding the problems in related technologies of low data storage efficiency and need to improve data security when debugging an installed device through an external memory, no effective solution has been proposed so far. Summary of the Invention

[0004] In this embodiment, a wireless data storage method, system, and programmable wireless transmission device are provided to solve the problems in the related art of low data storage efficiency and need to improve data security when wireless debugging operations are performed on installed devices through a microcontroller processor.

[0005] In a first aspect, this embodiment provides a wireless data storage method, which is applied to a programmable wireless transmission device; the programmable wireless transmission device is provided with an analog memory area; the analog memory area includes a data storage area; the operation attributes corresponding to the analog memory area are consistent with the operation attributes of a preset non-volatile memory; the programmable wireless transmission device establishes a wireless connection with a client based on a preset protocol; the method includes:

[0006] When the client and the programmable wireless transmission device start communication transmission, receiving and parsing the encrypted data storage ciphertext sent by the client to obtain the packet attributes of the data packet to be stored and the storage key;

[0007] Dividing the data storage area based on the packet attributes of the data packet to be stored to obtain a plurality of storage sectors corresponding to the packet attributes;

[0008] In response to the data storage request sent by the client, performing an integrity check on the data packet to be stored carried in the received data storage request based on the storage key;

[0009] The data packet to be stored that has passed the integrity check is written into the storage sector corresponding to the packet attribute of the data packet to be stored.

[0010] In some embodiments, the simulated memory area further includes a key storage area; after obtaining the packet attributes of the data packet to be stored and the storage key, the method further includes:

[0011] Writing the storage key into the key storage area in the simulation memory area;

[0012] Moving the memory pointer of the simulated memory area until the memory pointer points to the address of the storage sector corresponding to the data packet to be stored;

[0013] A data storage return frame is sent to the client, so that the client encrypts the data packet to be stored according to the storage key based on the data storage return frame.

[0014] In some embodiments, the data packet to be stored includes a plurality of sub-packets of data to be stored; and performing integrity verification on the data packet to be stored carried by the data storage request based on the storage key includes:

[0015] Decrypting the data packet to be stored based on the storage key to obtain the plurality of sub-packet data to be stored;

[0016] Based on the sub-packet verification frames of the plurality of sub-packet data to be stored, and according to a preset verification strategy, sequentially verifying the sub-packet data to be stored;

[0017] If it is determined that the sub-packet identifier corresponding to the sub-packet number of the sub-packet data to be stored is an end bit identifier, determining whether the sub-packet number of the sub-packet data to be stored is consistent with the number of sub-packets in the data packet to be stored;

[0018] If the judgment is consistent, it is determined that the data packet to be stored passes the integrity check.

[0019] In some embodiments, writing the to-be-stored data packet that has passed the integrity check into a storage sector corresponding to the to-be-stored data packet includes:

[0020] Performing a pre-erasing operation on a storage sector corresponding to the data packet to be stored, and setting a memory address in the storage sector to a programmable state;

[0021] Convert the data format of the data packet to be stored according to a preset data format;

[0022] The data packet to be stored after the data format is converted is written to the memory address in the storage sector.

[0023] In some embodiments, the programmable wireless transmission device establishes a communication connection with the device to be debugged via a preset serial physical interface; the method further includes:

[0024] receiving a reconnection request from the client; the reconnection request is generated based on the client determining that the storage key of the key storage area is consistent with the storage key previously transmitted by the client;

[0025] In response to a data read request from a device to be debugged, determining a storage sector where debug data required to be read by the device to be debugged is located;

[0026] Reading the debugging data of the storage sector and decrypting the read debugging data;

[0027] Send the decrypted debugging data to the device to be debugged.

[0028] In some embodiments, in response to a data read request from a device to be debugged, a storage sector where debug data to be read by the device to be debugged is located is determined; the data read request is generated based on the client determining that a storage key in the key storage area is inconsistent with a storage key last transmitted by the client, or when the programmable wireless transmission device is not connected to the client;

[0029] Reading debugging data from the storage sector, and symmetrically encrypting the read debugging data;

[0030] Send the symmetrically encrypted debugging data to the device to be debugged.

[0031] In some embodiments, the programmable wireless transmission device includes a register; and the method further includes:

[0032] In response to a data read request from a device to be debugged that is communicatively connected to the programmable wireless transmission device, determining a data processing state of the register based on a chip select signal in the data read request;

[0033] Determine whether to send data to the device to be debugged according to the data processing status.

[0034] In a second aspect, a wireless data storage system is provided in this embodiment, the system comprising: a memory partitioning module, a verification module, and a storage module;

[0035] The memory partitioning module is used to receive and parse the encrypted data storage ciphertext sent by the client when the client and the programmable wireless transmission device start communication transmission, and obtain the packet attributes and storage key of the data packet to be stored; and is also used to divide the data storage area based on the packet attributes of the data packet to be stored to obtain multiple storage sectors corresponding to the packet attributes;

[0036] The verification module is configured to perform, in response to the data storage request sent by the client, an integrity check on the data packet to be stored carried in the received data storage request based on the storage key;

[0037] The storage module is used to write the data packet to be stored that has passed the integrity check into the storage sector corresponding to the packet attribute of the data packet to be stored.

[0038] In a third aspect, a programmable wireless transmission device is provided in this embodiment, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the wireless data storage method described in the first aspect when executing the computer program.

[0039] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored. When the program is executed by a processor, the wireless data storage method described in the first aspect is implemented.

[0040] Compared with related technologies, the wireless data storage method, system, and programmable wireless transmission device provided in this embodiment improve the security of wireless debugging data by setting an analog memory area consistent with the memory operation properties in the programmable wireless transmission device, encrypting and transmitting the data of the wireless debugging operation, and storing it in the analog memory area; and no external memory is required, making data storage more efficient.

[0041] The details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0043] Figure 1 This is a hardware structure block diagram of a terminal of the wireless data storage method provided in an embodiment of the present application;

[0044] Figure 2 This is a flowchart of the wireless data storage method provided by an embodiment of the present application;

[0045] Figure 3 is a schematic diagram of a wireless data storage and transmission device provided in this specific embodiment;

[0046] Figure 4 is a logical diagram of data packet transmission in this specific embodiment;

[0047] Figure 5 This is a timing diagram of the MCU simulating FLASH storage provided by this specific embodiment;

[0048] Figure 6 1 is a flow chart of reading a status register according to an embodiment of the present application;

[0049] Figure 7 This is a timing diagram of the memory encryption transmission method provided in this specific embodiment;

[0050] Figure 8 This is a structural block diagram of the wireless data storage device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0052] Unless otherwise defined, technical or scientific terms used in this application shall have the ordinary meanings as understood by persons of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," "these," and similar expressions in this application do not denote limitations on quantity and may be singular or plural. The terms "comprise," "include," "have," and any variations thereof, as used in this application, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include unlisted steps or modules (units) or other steps or modules (units) inherent to the process, method, product, or device. The terms "connected," "connected," "coupled," and similar expressions used in this application are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. As used in this application, "plurality" means two or more. "And / or" describes an association between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone; A and B exist simultaneously; or B exists alone. Generally, the character " / " indicates that the objects in the preceding and following relationship are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0053] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 This is a hardware structure diagram of the terminal of the wireless data storage method provided in the embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 The terminal may further include a transmission device 106 and an input / output device 108 for communication functions. It will be appreciated by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0054] Memory 104 includes a simulated memory area having operational attributes consistent with those of a pre-set non-volatile memory and can be divided into multiple sectors, etc., according to the data attributes of the data to be stored. Memory 104 can be used to store computer programs and data transmitted by clients, such as application software programs and data such as log packets and upgrade packets, such as the computer program corresponding to the wireless data transmission method in this embodiment. Processor 102 executes the computer program stored in memory 104 to execute various functional applications and data processing, thereby implementing the aforementioned method.

[0055] Transmission device 106 is used to receive or transmit data via a network. This network may include a wireless network provided by the terminal's communications provider. In one embodiment, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0056] Currently, flashing new programs into an independent external storage device is a common method for debugging and maintaining installed devices. This method allows for functional updates, performance optimization, and troubleshooting. This not only improves device flexibility and maintainability, but also extends the device lifecycle and reduces the user's total cost of ownership. During the operation of an installed device, logic errors, memory leaks, or other software issues may arise, which can usually be resolved through program updates. However, because traditional external storage devices for upgrading or debugging installed devices require mailing the debug or upgrade package to the device's manufacturer, the package must be stored in the external storage device and then returned to maintenance personnel for program flashing via a dedicated interface. Consequently, existing technologies for wireless debugging of installed devices using external storage devices suffer from low data storage efficiency and require improved data security.

[0057] In order to solve the above problems, a wireless data storage method is provided in this embodiment. By sending a debugging or upgrade package to a programmable wireless transmission device and storing it in the corresponding internal storage area, wireless burning into the microcontroller is achieved, and each data packet is verified, thereby improving data storage efficiency and data security.

[0058] The wireless data storage method is applied to a programmable wireless transmission device; the programmable wireless transmission device is provided with an analog memory area; the analog memory area includes a data storage area; the operation attributes corresponding to the analog memory area are consistent with the operation attributes of a preset non-volatile memory; the programmable wireless transmission device establishes a wireless connection with a client based on a preset protocol; Figure 2 This is a flow chart of the wireless data storage method provided by the embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0059] Step S210: When the client and the programmable wireless transmission device start communication transmission, the encrypted data storage ciphertext sent by the client is received and parsed to obtain the packet attributes of the data packet to be stored and the storage key.

[0060] Among them, when the client needs to send an upgrade package or debug package data to the microcontroller for upgrading or debugging, it needs to first start communication transmission with the wirelessly connected programmable wireless transmission device. The process of connecting the client and the programmable wireless transmission device can be based on the cloud database connected to the client. The communication identification and device identification of the programmable wireless device are matched and verified. After the matching verification is passed, it is determined that the communication connection between the client and the programmable wireless transmission device is opened, as well as the connection between the client and the device to be debugged. At the same time, when the matching verification is passed, the client and the programmable wireless transmission device set a consistent encryption coding and decryption decoding strategy to achieve security and consistency in the data transmission process. Exemplarily, the encryption coding and decryption decoding strategy can include: asymmetric encryption algorithm, hash function and message authentication code, etc., which are not specifically limited here.

[0061] Afterwards, the client sends the required upgrade or debugging package data to the programmable wireless transmission device for storage, allowing the microcontroller to retrieve the upgrade or debugging package corresponding to the installed device from the data storage area of the programmable wireless transmission device. At the same time, the programmable wireless transmission device is provided with an analog memory area. The storage hierarchy settings and operational properties in this analog memory area can refer to the external memory. For example, the analog memory area is divided according to the smallest addressable unit. Furthermore, the addressable unit includes multiple smaller areas to implement operations such as erasing, writing, and reading, thereby efficiently and orderly storing data to ensure data security and integrity.

[0062] When the programmable wireless transmission device obtains the data storage ciphertext sent by the client, it parses the data storage ciphertext based on the encryption coding and decryption decoding strategy between the client and the programmable wireless transmission device to obtain data information corresponding to the data packet to be stored, such as packet attributes and storage keys. Among them, the packet attributes include the data type corresponding to the data packet to be stored, such as: upgrade data packet, debug data packet or device data packet of the device to be debugged, log data packet, etc. The packet attributes are determined based on the actual storage requirements and are not specifically limited here. Furthermore, the programmable wireless transmission device parses the data storage ciphertext and can also obtain the storage key corresponding to the data packet to be stored. After the programmable wireless transmission device obtains the storage key, it indicates to start or end the reception of the data packet to be stored based on the position of the memory pointer corresponding to the storage key.

[0063] Furthermore, each time a storage update is required, the storage key will be updated to ensure that each data packet to be stored corresponds to a separate key, thereby preventing third-party devices from writing data to the programmable wireless transmission device or reading data in the programmable wireless transmission device, thereby improving the security of data storage.

[0064] Step S220 , dividing the data storage area based on the packet attributes of the data packet to be stored to obtain a plurality of storage sectors corresponding to the packet attributes.

[0065] After obtaining the packet attributes of the data packets to be stored, the programmable wireless transmission device divides the simulated memory area into regions. Specifically, the data storage area in the simulated memory area can be divided into multiple storage sectors based on the data type of the data packets to be stored and the data capacity corresponding to different data types. Different storage sectors store data packets with different packet attributes, thereby achieving orderly and efficient data storage.

[0066] Step S230 , in response to the data storage request sent by the client, an integrity check is performed on the data packet to be stored carried in the received data storage request based on the storage key.

[0067] In this step, after the data storage area in the simulated memory area is divided according to the data storage ciphertext sent by the client, the programmable wireless transmission device receives the data storage request sent by the client, decrypts the data packet to be stored according to the storage key, and then starts data storage. The data packet to be stored includes multiple sub-packets of data to be stored.

[0068] The method comprises the following steps: performing an integrity check on a data packet to be stored carried in a data storage request based on a storage key, comprising: decrypting the data packet to be stored based on the storage key to obtain a plurality of sub-packet data to be stored; sequentially verifying the sub-packet data to be stored according to a preset verification strategy based on sub-packet verification frames of the plurality of sub-packet data to be stored; and determining whether the sub-packet number of the sub-packet data to be stored is consistent with the number of sub-packets in the data packet to be stored when it is determined that the sub-packet identifier corresponding to the sub-packet number of the sub-packet data to be stored is an end bit identifier; and determining that the data packet to be stored passes the integrity check if they are consistent.

[0069] Among them, each sub-package corresponding to the multiple sub-package data to be stored carries a check frame, and the multiple sub-package data to be stored are checked in turn based on the check frame and the sub-package number of the sub-package data to be stored; for example, a CRC check frame or a hash check, which is not specifically limited here. After the multiple sub-package data to be stored are checked, it is determined whether the sub-package identifier corresponding to the sub-package number of the sub-package data to be stored is the end bit identifier. When determining whether the sub-package number of the current sub-package data to be stored corresponds to the end bit identifier, it is determined whether the sub-package number is consistent with the total number of sub-packages. If they are consistent, it means that the entire data packet to be stored has passed the integrity check.

[0070] By sequentially verifying the sub-packet data to be stored in the data packet to be stored, and after the verification is completed, determining the integrity of the data packet to be stored, the security of receiving the data packet to be stored is improved.

[0071] Step S240: writing the data packet to be stored that has passed the integrity check into the storage sector corresponding to the packet attribute of the data packet to be stored.

[0072] In this step, the programmable wireless transmission device stores the sub-packet data to be stored that has passed the integrity check in the corresponding storage sector according to the data identifier of the sub-packet data to be stored, thereby achieving compatible storage of the data packet to be stored and improving the storage security of the data packet to be stored.

[0073] Through the above steps, by setting up an emulated memory area with the same operating properties as the external memory in the programmable wireless transmission device, the data packets to be stored corresponding to operations such as wireless debugging or upgrading are divided into packets and encrypted for transmission, and after verification is completed, the data packets to be stored are stored in the multiple storage sector architectures in the emulated memory area, thereby improving the security of the wireless debugging data; and without the need for external memory, making data storage more efficient.

[0074] In some of the embodiments, the simulated memory area also includes a key storage area; after obtaining the packet attributes of the data packet to be stored and the storage key, the method also includes: writing the storage key into the key storage area in the simulated memory area; moving the memory pointer of the simulated memory area until the memory pointer points to the address of the storage sector corresponding to the data packet to be stored; sending a data storage return frame to the client, so that the client encrypts the data packet to be stored according to the storage key based on the data storage return frame.

[0075] Among them, after parsing the encrypted data storage ciphertext sent by the client and obtaining the storage key of the data packet to be stored, the storage key needs to be stored in the key storage area in the simulated memory area; when the storage key is written to the corresponding key storage area, at this time, the memory pointer of the simulated memory area is moved until the memory pointer points to the address of the key storage area, and a data storage return frame is sent to indicate that the client can start the encrypted transmission of the data packet to be stored.

[0076] By storing the storage key in the key storage area in the simulated memory area, the storage key can be prevented from being obtained by a third party; at the same time, based on whether the memory pointer of the simulated memory area points to the address of the storage sector corresponding to the data packet to be stored, it is determined whether to instruct the client to start encrypted transmission and storage of the data packet to be stored, which is conducive to further improving data security during data transmission and storage.

[0077] In some embodiments, writing the to-be-stored data packet that has passed the integrity check into the storage sector corresponding to the to-be-stored data packet includes:

[0078] A pre-erasing operation is performed on the storage sector corresponding to the data packet to be stored, and the memory address in the storage sector is set to a programmable state; the data format of the data packet to be stored is converted according to a preset data format; and the data packet to be stored after the data format conversion is written to the memory address in the storage sector.

[0079] After the data packet to be stored passes the integrity check, the programmable wireless transmission device pre-erases the storage sector where the data packet is to be stored, clearing the original data in the storage sector to prevent the old data from interfering with the writing of new data. Subsequently, the address corresponding to the storage sector is mapped to a writable state through registers in the programmable wireless transmission device. Furthermore, a write protection lock is applied to other storage sectors in the simulated memory area to prevent writing to other storage sectors. Furthermore, multiple data packets to be stored can be stored in parallel in the corresponding storage sectors, thereby improving the storage efficiency of the data packets to be stored.

[0080] In some embodiments, a programmable wireless transmission device establishes a communication connection with a device to be debugged through a preset serial physical interface; the wireless data storage method provided in the present application also includes: receiving a reconnection request from a client; generating a reconnection request based on a judgment by the client that a storage key in a key storage area is consistent with a storage key historically transmitted by the client; responding to a data read request from the device to be debugged, determining a storage sector where debug data required to be read by the device to be debugged is located; reading debug data from the storage sector, and decrypting the read debug data; and sending the decrypted debug data to the device to be debugged.

[0081] Among them, after the client completes the transmission and storage of the data packet to be stored, it disconnects from the programmable wireless transmission device. Thereafter, when the external control device needs to obtain the corresponding data in the simulated memory area of the programmable wireless transmission device, it needs to reconnect with the client. Before the client initiates a reconnection request, the client needs to determine whether the storage key of the key storage area is consistent with the storage key when the client last transmitted data. If they are consistent, a reconnection request is generated and sent to the programmable wireless transmission device. After the programmable wireless transmission device receives the reconnection request, it responds to the data read request of the device to be debugged to read the debug data of the storage sector where the debug data required to be read by the device to be debugged is located, and then the read debug data is decrypted and sent to the device to be debugged. Here, the debug data required to be read by the device to be debugged is only an example. In specific cases, it can also be other data such as upgrade data, log data, etc. based on upgrade requirements, which are not specifically limited here.

[0082] In some of the embodiments, in response to a data read request from a device to be debugged, a storage sector where debug data to be read by the device to be debugged is located is determined; the data read request is generated based on a client's determination that a storage key in a key storage area is inconsistent with a storage key last transmitted by the client, or when the programmable wireless transmission device is not connected to the client; debug data from the storage sector is read, and the read debug data is symmetrically encrypted; and the symmetrically encrypted debug data is sent to the device to be debugged.

[0083] Among them, when the client determines that the storage key of the key storage area is inconsistent with the storage key transmitted by the client last time, or the programmable wireless transmission device is not connected to the client, after the device to be debugged sends a data read request, the programmable wireless transmission device determines the storage sector where the debugging data to be read by the device to be debugged is located, and sends the erroneous encrypted data to the device to be debugged; or randomly sends the erroneous encrypted data to the device to be debugged, so as to avoid the leakage of data in the storage sector of the programmable wireless transmission device.

[0084] In some embodiments, the programmable wireless transmission device includes a register; the wireless data storage method provided in the present application also includes: responding to a data read request of a device to be debugged that is communicatively connected to the programmable wireless transmission device, determining a data processing status of the register based on a chip select signal in the data read request; and determining whether to send data to the device to be debugged based on the data processing status.

[0085] During the data transmission process, when the client allows the programmable wireless transmission device to transmit data to the device to be debugged, the programmable wireless transmission device communicates with the device to be debugged via a serial peripheral interface (SPI) and a communication port configured on the programmable wireless transmission device. At this point, a register within the programmable wireless transmission device determines a chip select signal (i.e., a level signal) based on the data read request sent by the device to be debugged. The chip select signal then determines the corresponding data processing state of the register, thereby determining the data processing request of the device to be debugged. Exemplarily, the data processing state may include erase, write, and read processing states, which are not specifically limited herein.

[0086] In some possible embodiments, a wireless data transmission method is also included. When a client needs to perform wireless data transmission with a programmable wireless transmission device, the client will search for programmable wireless transmission devices within a certain range and obtain a unique communication identifier of the programmable wireless transmission device. For example, the communication identifier here includes an independent ID number of the programmable wireless transmission device, such as the Bluetooth ID corresponding to the programmable wireless transmission device. After the client establishes a connection with the programmable wireless transmission device through the communication identifier, it sends a connection request carrying a first ciphertext to the programmable wireless transmission device. The first ciphertext is used to obtain the device identifier of the programmable wireless transmission device. The programmable wireless transmission device receives the connection request sent by the client, obtains the first ciphertext, and sends the device identifier of the programmable wireless transmission device to the client. After the client obtains the communication identifier and the device identifier, it will match them in the cloud database.

[0087] If the client verifies that the communication identifier and device identifier are bound to the same programmable wireless transmission device, then the verification is passed and the client is successfully connected to the programmable wireless transmission device. At the same time, the programmable wireless transmission device connects the first interface and the second interface internally, forming a data transmission channel. If the client verifies that the communication identifier and device identifier are not bound to the same programmable wireless transmission device, then the client fails the verification. Upon receiving the signal from the client indicating that the identifier verification has failed, the programmable wireless transmission device disconnects from the client.

[0088] Furthermore, the client and the cloud are connected in communication; after sending the device identification of the programmable wireless transmission device to the client according to the first ciphertext, it also includes: receiving the verification result sent by the client according to the first interface; the verification result includes the result obtained after verifying the communication identification and the device identification according to the data identification library in the cloud; the communication identification and the device identification are received and forwarded to the cloud according to the client; when the verification result indicates that the communication identification and the communication identification verification fail, the first interface is disconnected.

[0089] Afterwards, when the programmable wireless transmission device passes verification of the communication identifier and device identifier and connects the first interface and the second interface, the client sends a communication start instruction to the programmable wireless transmission device, which is used to obtain the communication interface data of the device to be debugged through the data transmission channel in the programmable wireless transmission device, thereby enabling data transmission with the device to be debugged. After receiving the communication start instruction sent by the client, the programmable wireless transmission device specifically encodes and encrypts the communication start instruction according to a pre-stored key and a preset encoding method to obtain a corresponding handshake protocol. The programmable wireless transmission device then transmits the encrypted handshake protocol to the device to be debugged connected to the second interface of the programmable wireless transmission device.

[0090] After the device to be debugged receives the handshake protocol, it needs to verify the handshake protocol. If the device to be debugged verifies the handshake protocol once, that is, the single handshake is unsuccessful, a signal indicating the single handshake failure is returned through the programmable wireless transmission device. At this time, the client again sends a communication start instruction to the programmable wireless transmission device, so that the programmable wireless transmission device encrypts the second ciphertext carried in the received communication start instruction to obtain the handshake protocol, and sends it to the device to be debugged through the second interface for verification of the handshake protocol. If the verification fails three times in a row, it is determined that the device to be debugged is not the device previously registered by the client, and the connection of the second interface is disconnected.

[0091] After the device to be debugged passes the handshake protocol verification, it broadcasts the device's communication interface data, allowing the programmable wireless transmission device to receive the data. After receiving the data, the programmable wireless transmission device encrypts the received data and sends it to the client.

[0092] After receiving the encrypted communication interface data, the client performs decoding and decryption operations to obtain the communication interface data. The client then establishes a communication connection with the device to be debugged based on the communication interface data and the data transmission formed by the connection between the first interface and the second interface to achieve encrypted data transmission.

[0093] In some embodiments, the method for transmitting a data packet to be transmitted further includes: receiving a data transmission instruction sent by a client through a first interface, and in response to the data transmission instruction, verifying a data transmission frame carried by the data transmission instruction to obtain a verification result; feeding back the verification result to the client through the first interface, and controlling and updating the baud rate of the first interface according to the data transmission frame; receiving a data packet to be transmitted sent by the client through the first interface, and verifying the data packet to be transmitted; if the data packet to be transmitted passes the verification, returning a data transmission completion frame to the client through the first interface, and controlling and restoring the baud rate of the first interface.

[0094] Among them, when the client needs to transmit the data packet to be transmitted to the programmable wireless transmission device, so that the device to be debugged can obtain the data packet to be transmitted through the programmable wireless transmission device and realize the device debugging and upgrading of the device to be transmitted, a data transmission instruction is first sent to the programmable wireless transmission device. The programmable wireless transmission device receives the data packet to be transmitted sent by the client through the first interface and verifies the data packet to be transmitted.

[0095] Before sending a data packet to be transmitted to the device to be debugged, to ensure the integrity of the data packet and the accuracy of the file attributes in the upgrade data packet, the client first sends data transmission instruction data, including a data transmission frame, to the programmable wireless transmission device. The programmable wireless transmission device verifies the frame header, specific instruction frame, and verification frame of the data transmission frame. If the verification is successful, the programmable wireless transmission device sends a verification result indicating the verification is successful to the client via the first interface. After receiving the verification result, the client begins transmitting the data packet to be transmitted and verifies the data packet to be transmitted.

[0096] At the same time, after the programmable wireless transmission device obtains the verification result of passing the verification, it determines whether the data transmitted by the client is packet data based on the data attributes corresponding to the data transmission frame; when it is determined that the data transmitted by the client is packet data, it controls the update of the baud rate of the first interface; when it is determined that the data to be transmitted by the client is not packet data, it maintains the baud rate of the first interface. For example, when the above-mentioned data packet to be transmitted is a single piece of data to be transmitted, there is no need to update and restore the baud rate of the first interface. That is, the data packets to be transmitted that have been packaged at the client will use the high-speed transmission that updates the baud rate of the first interface. For a single piece of data information, there is no need to update and restore the baud rate of the first interface, and ordinary transmission is directly used. The above-mentioned data packets to be transmitted include data packets to be stored.

[0097] Through the above steps, the client obtains the communication identification and device identification of the programmable wireless transmission device through the first interface and verifies them. After the verification is passed, the programmable wireless transmission device connects the first interface and the second interface, so that the client obtains the communication interface data of the device to be debugged through the fully closed communication data transmission channel formed by the first interface and the second interface; then the client realizes data transmission between the device to be debugged based on the communication interface data and the data transmission channel. The programmable wireless transmission device encrypts and encodes the multi-party transmission data, and there is no need to limit the debugging operation to a short distance. After the entire wireless data transmission device completes the handshake, data is transmitted through the data transmission channel formed by the first interface and the second interface, which can realize encrypted communication of multi-party data. A third party cannot obtain the plaintext data of the communication process, thereby improving the security and transmission efficiency of the wireless debugging operation.

[0098] The present embodiment is described and illustrated below through specific examples.

[0099] Based on the wireless data storage method provided in the above embodiment, the elevator debugging process is used as an example for explanation. With the development of the elevator industry and the continuous increase in the number of houses, the installation, debugging, and maintenance of elevator-related components have become a major focus. Every year, a large amount of manpower and time costs are incurred in elevator maintenance, and new programs need to be flashed during debugging to update functions or repair faults. When performing traditional elevator maintenance, the relevant data needs to be stored in the upgrader. The upgrader is essentially an independent external memory. The original manufacturer needs to flash the upgrade package into it through a computer and then mail it to the maintenance personnel. In addition, there is a situation where one version of the upgrade package cannot be used and needs to be mailed again, which greatly extends the maintenance cycle. In addition to poor real-time performance, there may be memory write anomalies or data loss. Therefore, efficiency and safety become particularly important when maintaining components.

[0100] This specific embodiment takes the client as a mobile phone, the programmable wireless transmission device as a Bluetooth device, and the device to be debugged as an elevator control cabinet as an example. In this specific embodiment, a method for data storage and subsequent transmission suitable for an elevator control cabinet is provided, which is established in a system including a Bluetooth device, an elevator control cabinet, and a mobile phone. Figure 3 Schematic diagram of the wireless data storage and transmission device provided by this specific embodiment. Figure 3 The mobile phone and the Bluetooth device in the device realize wireless data transmission based on Bluetooth communication, and the Bluetooth device and the elevator control cabinet in the device to be upgraded realize data transmission through serial communication; specifically, the Bluetooth device is provided with multiple communication interfaces, including but not limited to Figure 3 The first interface, the second interface and the third interface shown are connected; the device to be upgraded is provided with multiple interfaces for communicating with Bluetooth devices, including but not limited to Figure 3 The debugging interface and upgrade interface shown. The mobile phone communicates with the Bluetooth device via the first interface of the Bluetooth device. When the device to be upgraded requires debugging, the debugging interface communicates with the second interface of the Bluetooth device to retrieve the debugging data stored in the Bluetooth device's memory. When the device to be upgraded requires an upgrade, the upgrade interface communicates with the third interface of the Bluetooth device to retrieve the upgrade data stored in the Bluetooth device's memory.

[0101] The data storage and transmission method for an elevator control cabinet provided in an embodiment of the present application replaces the traditional method of burning related files through a wired connection to an external expansion memory for storage; the mobile phone data is directly stored wirelessly in the memory of the Bluetooth device, and the Bluetooth device divides the memory to simulate the memory architecture and read and write process of the external memory, thereby achieving the effect of being read and written by an external device.

[0102] After the mobile phone is connected to the Bluetooth device, it is necessary to start communication transmission. At this time, the mobile phone sends a first ciphertext to the first interface of the Bluetooth device and waits for feedback. This first ciphertext is used to start the data packet transmission and storage function. After the mobile phone starts communication transmission with the Bluetooth device, the mobile phone sends a second ciphertext containing the file name, size and other related attributes corresponding to the data packet to be stored to the Bluetooth device; when the Bluetooth device receives the second ciphertext, the Bluetooth device first parses the second ciphertext, and then writes the file-related information to the designated memory area for storage. If data packets or other content need to be stored, the Bluetooth device divides the storage area into other multiple blocks and integrates the memory according to the page and sector style of the external memory. The second ciphertext here is the data storage ciphertext in the aforementioned embodiment.

[0103] During the data packet transmission process, each data frame in the data packet carries a packet number. When the packet number is the same as the total number of packets calculated by the Bluetooth device and the end frame sent by the mobile phone is received, the Bluetooth device will stop receiving the data packet and perform memory integration and overall verification of the data packet. When the integration is completed and the verification passes, the storage is completed. Figure 4 This is a logical diagram of data packet transmission in this specific embodiment, such as Figure 4 As shown, the data packet transmission process is as follows: After the mobile phone splits the entire data packet to be stored into N sub-packets to be stored, it combines the packet numbers, check frames, and sub-packets of the multiple sub-packets to be stored into a single file frame and sends it to the Bluetooth device. After receiving the file frame, the Bluetooth device divides its memory according to the file name and packet size contained in the file frame. Subsequently, the Bluetooth device receives the data packet to be stored sent by the mobile phone, splits the data packet into multiple sub-packets to be stored, and stores them in the cache.

[0104] The Bluetooth device counts while receiving and verifying the data packet to be stored, sets pack=0, and starts transmitting the data packet. It then performs CRC checks on the received sub-packet data to be stored in sequence according to the sub-packet number pack. When the CRC check of the current sub-packet data to be stored is determined to be correct, it determines whether the sub-packet identifier corresponding to the sub-packet number of the sub-packet data to be stored is the end bit. If so, it determines whether the sub-packet number pack of the sub-packet data to be stored is N. If so, it indicates that the data packet to be stored has passed the integrity check. If the CRC check of the current sub-packet data to be stored is determined to be incorrect, it performs CRC checks on the current sub-packet data to be stored again. If the sub-packet number pack of the sub-packet data to be stored is not N, it obtains the sub-packet data to be stored corresponding to the sub-packet number pack+1, performs CRC checks, and checks whether it is the end bit. Finally, it determines whether the transmission of the data packet to be stored is completed by the packet number and end bit of the last frame of data.

[0105] After the Bluetooth device stores the data packet, it establishes a communication connection with the device to be upgraded via the Bluetooth device's third interface. This allows the external device to read the upgrade data from the Bluetooth device's memory without changing any of its functions, ultimately completing the upgrade. This improves the efficiency of the external device upgrade process. Furthermore, the Bluetooth device's second interface can be used to debug the external device, eliminating the need to carry multiple devices during debugging and upgrading, making the debugging process easier for users. Users can also view information such as the external device's upgrade status on their mobile phone, improving the upgrade's fault tolerance.

[0106] For example, when an external device reads data stored in the Bluetooth device's memory, the Bluetooth device's memory pointer reads, erases, and writes the data in sequence, based on the properties of the external memory, such as the properties of a FLASH memory, by word, page, and sector. After each page, each sector, and all the data are written in sequence, the Bluetooth device rechecks the data in each sector and finally performs a comprehensive check on the entire data packet to be stored. After the entire data packet is stored, the Bluetooth device connects to the external device to be upgraded via its third interface. This allows the external device to communicate with the third interface protocol via the upgrade interface without changing any of its functions, read the Bluetooth device's chip memory, and ultimately complete the upgrade of the external device.

[0107] This specific embodiment also proposes a memory encryption method to keep stored data confidential, preventing third-party users from arbitrarily connecting to Bluetooth devices and writing content, as well as any third-party devices from reading the internal information of Bluetooth devices, thereby ensuring system and memory data security. Specifically, when the mobile phone packages the files to be stored for transmission, the mobile phone's debugging app generates a key K, which is used to encrypt the packaged and transmitted data packets to be stored.

[0108] Afterwards, the debugging APP sends the protocol frame header, encryption flag, key K and check bit to the first interface of the Bluetooth device through Bluetooth communication; the key K will be parsed by the Bluetooth device and stored in the designated storage area. After writing the key K, the Bluetooth device will move the memory pointer to the storage area and send a data storage return frame to the mobile phone to notify the mobile phone that the Bluetooth device is ready to receive the data packet. After receiving the data storage return frame, the mobile phone will encrypt each frame of data with the key K and send it to the Bluetooth device, and write it into the simulated memory area of the MCU in the Bluetooth device until every frame of data in the data packet to be stored is completely transmitted and stored in the simulated memory area of the Bluetooth device.

[0109] In one possible embodiment, the Bluetooth device simulates external memory as follows: the simulated memory area of the Bluetooth device is divided into multiple sectors according to the address, such as the BOOT area, running area, key and upgrade package attribute storage area, integrity check flag storage area, mainboard upgrade package storage area and other information storage areas such as logs shown in Table 1 below.

[0110] Table 1 Simulated external memory

[0111]

[0112] The Bluetooth device's simulated memory area is divided into multiple sectors based on address space: a boot area, a run area, an area for storing keys and upgrade package attributes, an integrity check flag, a mainboard upgrade package, and other information storage areas such as logs. The area between memory addresses 0x08000000 and 0x08004000 is designated as the Bluetooth device's boot area, used as the IAP software area, storing the bootloader and application code to enable Bluetooth device startup and upgrades. The area between memory addresses 0x08004000 and 0x08084FE0 is designated as the Bluetooth device's run area, used for processing Bluetooth information, or the main program area, for executing the main logic. The area between memory addresses 0x08084FE0 and 0x08084FF0 is designated as the Bluetooth device's key and upgrade package attribute storage area, or the data packet name and size storage area, used for post-transmission verification and responding to app polling. The area between memory addresses 0x08084FF0 and 0x08085000 is set as the Bluetooth device integrity check flag storage area, which is used to verify the integrity of the data packet. The area between memory addresses 0x08085000 and 0x08100000 is set as the motherboard upgrade data packet storage area, which is used to simulate FLASH storage. The area after memory address 0x08100000 is set as the Bluetooth device log and other information area, which is used to store control cabinet data and logs, which is used to simulate FLASH storage.

[0113] Furthermore, the Bluetooth device has a built-in single-chip microcontroller (MCU), which uses flash memory to emulate the read and write functions of FLASH, controlling read and write operations. In this embodiment, the Bluetooth device primarily communicates with the elevator control cabinet via the SPI (Serial Peripheral Interface). Because the FLASH is in slave mode, the MCU needs to emulate slave logic to communicate with the elevator control cabinet (the device to be upgraded). Figure 5 This is a timing diagram of the MCU simulating FLASH storage provided by this specific embodiment. Figure 5After the mobile phone allows the simulated OMU (Operation and Maintenance Unit) communication, the Bluetooth device automatically configures the communication port, and judges the request of the elevator control cabinet according to the level signal, and responds based on the request of the elevator control cabinet. After the elevator control cabinet responds, the Bluetooth device communicates with the mobile phone through the OMU, and then ends the simulated FLASH.

[0114] Specifically, the elevator control cabinet first sends a chip ID verification request to the Bluetooth device. If the verification request passes and the elevator control cabinet needs to read data, it sends a simulated EEP (Electrically Erasable Programmable Memory) read request to the FLASH storage, thereby reading data from the Bluetooth device's simulated memory area. It then checks the chip's current status (e.g., whether it's idle or has errors) to ensure read and write operations are possible. When the elevator control cabinet needs to write data, it sends a simulated EEP write request to the FLASH storage, writing the data to the Bluetooth device's simulated memory area and performing data verification. After the elevator control cabinet responds, the Bluetooth device communicates with the mobile phone through the OMU, and the simulated FLASH session ends.

[0115] To cope with communication rates as high as 1MB / s, software logic processing must be fast enough. If the processing is slower than the host request, data errors will occur and the upgrade will fail. Therefore, traditional polling cannot meet the requirements. Experiments have shown that interrupt processing through direct register programming is required to meet the timing requirements.

[0116] In one embodiment, the Bluetooth device simulates FLASH through a single-chip microcomputer. After the mobile phone allows simulated OMU communication, the Bluetooth device configures the communication port. Only the clock line is configured in the configuration. The slave (FLASH in the Bluetooth device) outputs the host input line, and the slave inputs the host output line. The Bluetooth device immediately triggers a communication interrupt after receiving a byte of data. The chip select signal is used as an external interrupt and is used for reset and separate configuration to improve the response speed of the MCU.

[0117] When the host begins communication, it pulls the chip select signal low, marking the start of a function. The MCU then captures the signal and initiates an external interrupt to reset all logic. It then waits for data to fill a data register, triggering a communication interrupt. The MCU enters several different states based on the data value, including write enable, write disable, read ID, read status register, read data, write data, and sector erase. Different states correspond to different processing logic. After a communication is completed, the host pulls the chip select signal high, indicating that the communication is complete.

[0118] Among them, the processing logic of reading ID is: the elevator control cabinet needs to confirm the correct connection with the Bluetooth device. Only when the correct ID is returned, the mainboard will perform other communications, and the ID will be confirmed before each other communication. When the ID is wrong three times, the elevator control cabinet will not try to communicate. The processing logic of reading data is: when the elevator control cabinet sends the read data and sends the data address bit, the MCU will read the specific FLASH address and fill it into the SPI. If the elevator control cabinet is still requesting new data after one byte of data, the Bluetooth device will automatically increase the word address and continue to send the subsequent data. The processing logic of writing data is: before the elevator control cabinet writes data, it needs to send a write permission signal, and after the write data is sent, it needs to send a write static signal to prevent accidental write operations. When the elevator control cabinet sends the data, the MCU will enter the write cycle. During this period, no other read and write operations will be performed. Other read and write operations need to read the status register until the write cycle is completed. Once the internal write cycle of the MCU is started, the processing input of the read status register is invalid. Figure 6 This is a flow chart of reading the status register provided by the embodiment of the present application. Figure 6 When the register status is write-enabled, write data. After writing the data, change the register status to write-disabled. At this point, read the status register, sending the start condition and device address. Only after the internal MCU read cycle is complete will it return a "0" to proceed to the next step, after which the write operation can continue.

[0119] In one specific embodiment, a memory encryption transmission method based on software implementation is provided. Figure 7 This is a timing diagram of the memory encryption transmission method provided by this specific embodiment. Figure 7 , the method is applied to a system including a cloud, a mobile phone, a Bluetooth device and a device. The cloud is used to store information such as keys for interaction between the mobile phone and the Bluetooth device. When data storage and transmission are required, the mobile phone sends a command to the Bluetooth device to open the data packet transmission mode. The user can choose encrypted content or non-encrypted content according to needs in the designated APP on the mobile phone. The mobile phone and the Bluetooth device are connected through protocol communication. After the mobile phone and the Bluetooth device are connected via Bluetooth and the transmission mode is turned on, if the user chooses to transmit and store encrypted content, when the file to be stored is packaged and transmitted by a specific mobile phone device, the mobile phone APP dynamically generates a key K for encryption. The APP then sends the protocol frame header, data type and size, encryption flag, key K and check bit to the first communication interface of the device via Bluetooth. When the check is passed, the key K will be parsed and stored in the designated storage area, and the memory of the Bluetooth device will be partitioned according to the attributes of the data type and size, and the attributes will be stored in the partition corresponding to the file type. At the same time, the mobile phone stores the key in the cloud.

[0120] After writing the key, the Bluetooth device will move the memory pointer to the specified data type storage area and send a return frame to the mobile phone through the first communication interface. At this time, the Bluetooth device is ready to receive the encrypted data packet. After receiving the return frame, the mobile phone will write each frame of the sub-packet data packet encrypted by the key into the specified MCU memory area for storage. After the storage of the sub-packet data packet to the Bluetooth device is completed, a reply indicating the completion of storage is returned to the mobile phone. When an external device sends a read request to the Bluetooth device, the Bluetooth device applies to the mobile phone for permission to read data; at this time, a key check is required through the cloud to read the key from the Bluetooth device, and then the key read from the Bluetooth device this time is checked with the key during the last transmission. If the key check is consistent, the Bluetooth device is allowed to decrypt and send the memory data requested by the external device. When the external device completes reading the memory data, a signal indicating the completion of the reading is returned to the Bluetooth device and the mobile phone.

[0121] When a data packet needs to be updated, the mobile phone sends a protocol containing the packet type, the key and size of the new packet to the Bluetooth device. The Bluetooth device stores the attributes in the partition corresponding to the file type. When the verification is passed, the key of the new packet will be parsed and stored in the designated storage area. The memory of the Bluetooth device will be partitioned according to the attributes of the data type and size, and the attributes will be stored in the partition corresponding to the file type. At the same time, the mobile phone stores the key of the new package in the cloud. After writing the new package key, the Bluetooth device will move the memory pointer to the designated data type storage area and send a return frame to the mobile phone through the first communication interface. At this time, the Bluetooth device is ready to receive the encrypted data packet. After receiving the return frame, the mobile phone will write the sub-packet data packet encrypted by the key for each frame into the designated MCU memory area for storage. After the storage of the sub-packet data packet to the Bluetooth device is completed, a storage completion reply is returned to the mobile phone.

[0122] When reconnecting a Bluetooth device to a mobile phone after disconnecting, if the designated mobile app is used to connect to the device, the app will read the Bluetooth device's key through the protocol and compare it with the key of the last packet transmitted in the mobile phone account database. If the verification results are the same, the connection is re-established. At this time, the external device reads the memory as decrypted plaintext. If the Bluetooth device fails to successfully connect to the mobile phone and allows the external device to read data directly, the data read by the external device will be incorrect encrypted data. Each time the memory needs to be updated, the key is updated and saved, ensuring that each data content corresponds to a separate decryption key, effectively preventing illegal devices from writing data to the device.

[0123] This embodiment also provides a wireless data storage device for implementing the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated. The terms "module," "unit," "subunit," etc. used below may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0124] Figure 8 This is a structural block diagram of a wireless data storage device provided in an embodiment of the present application. Figure 8 As shown, the device includes: a memory partition module 10, a verification module 20 and a storage module 30.

[0125] The memory partitioning module 10 is used to receive and parse the encrypted data storage ciphertext sent by the client when the client and the programmable wireless transmission device start communication transmission, and obtain the packet attributes and storage key of the data packet to be stored; it is also used to divide the data storage area based on the packet attributes of the data packet to be stored, and obtain multiple storage sectors corresponding to the packet attributes.

[0126] The verification module 20 is configured to respond to a data storage request sent by a client and perform integrity verification on a data packet to be stored carried in the received data storage request based on a storage key.

[0127] The storage module 30 is configured to write the data packet to be stored that has passed the integrity check into a storage sector corresponding to the packet attribute of the data packet to be stored.

[0128] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0129] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0130] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0131] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0132] S1, when the client and the programmable wireless transmission device start communication transmission, receive and parse the encrypted data storage ciphertext sent by the client to obtain the packet attributes and storage key of the data packet to be stored.

[0133] S2, based on the packet attributes of the data packet to be stored, dividing the data storage area to obtain a plurality of storage sectors corresponding to the packet attributes.

[0134] S3, in response to the data storage request sent by the client, performing an integrity check on the data packet to be stored carried in the received data storage request based on the storage key.

[0135] S4, writing the data packet to be stored that has passed the integrity check into the storage sector corresponding to the packet attribute of the data packet to be stored.

[0136] It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0137] In addition, in combination with the wireless data storage method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the wireless data storage method. The storage medium stores a computer program that, when executed by a processor, implements any of the wireless data storage methods in the above embodiments.

[0138] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0139] Obviously, the accompanying drawings are merely examples or embodiments of the present application. A person skilled in the art can also apply the present application to other similar situations based on these drawings without inventive effort. Furthermore, it is understandable that, although the work involved in this development process may be complex and lengthy, certain design, manufacturing, or production changes based on the technical content disclosed in this application are merely routine technical means for a person skilled in the art and should not be considered to constitute a deficiency in the disclosure of the present application.

[0140] The term "embodiment" as used in this application refers to specific features, structures, or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily mean that the embodiment is the same, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is understood, either explicitly or implicitly, by those skilled in the art that the embodiments described in this application can be combined with other embodiments when there is no conflict.

[0141] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A wireless data storage method, characterized in that: Applicable to a programmable wireless transmission device; the programmable wireless transmission device is provided with an analog memory area; the analog memory area includes a data storage area; the operation attributes corresponding to the analog memory area are consistent with the operation attributes of a preset non-volatile memory; The programmable wireless transmission device establishes a wireless connection with the client based on a preset protocol; the method includes: When the client and the programmable wireless transmission device start communication transmission, receiving and parsing the encrypted data storage ciphertext sent by the client to obtain the packet attributes of the data packet to be stored and the storage key; Dividing the data storage area based on the packet attributes of the data packet to be stored to obtain a plurality of storage sectors corresponding to the packet attributes; In response to the data storage request sent by the client, performing an integrity check on the data packet to be stored carried in the received data storage request based on the storage key; The data packet to be stored that has passed the integrity check is written into the storage sector corresponding to the packet attribute of the data packet to be stored.

2. The wireless data storage method according to claim 1, wherein: The simulation memory area also includes a key storage area; after obtaining the packet attributes of the data packet to be stored and the storage key, the method further includes: Writing the storage key into the key storage area in the simulation memory area; Moving the memory pointer of the simulated memory area until the memory pointer points to the address of the storage sector corresponding to the data packet to be stored; A data storage return frame is sent to the client, so that the client encrypts the data packet to be stored according to the storage key based on the data storage return frame.

3. The wireless data storage method according to claim 1, wherein: The data packet to be stored includes a plurality of sub-packet data to be stored; The performing integrity verification on the data packet to be stored carried by the data storage request based on the storage key includes: Decrypting the data packet to be stored based on the storage key to obtain the plurality of sub-packet data to be stored; Based on the sub-packet verification frames of the plurality of sub-packet data to be stored, and according to a preset verification strategy, sequentially verifying the sub-packet data to be stored; If it is determined that the sub-packet identifier corresponding to the sub-packet number of the sub-packet data to be stored is an end bit identifier, determining whether the sub-packet number of the sub-packet data to be stored is consistent with the number of sub-packets in the data packet to be stored; If the judgment is consistent, it is determined that the data packet to be stored passes the integrity check.

4. The wireless data storage method according to claim 1, wherein: Writing the data packet to be stored that has passed the integrity check into the storage sector corresponding to the data packet to be stored includes: Performing a pre-erasing operation on a storage sector corresponding to the data packet to be stored, and setting a memory address in the storage sector to a programmable state; Convert the data format of the data packet to be stored according to a preset data format; The data packet to be stored after the data format is converted is written to the memory address in the storage sector.

5. The wireless data storage method according to claim 2, wherein: The programmable wireless transmission device establishes a communication connection with the device to be debugged via a preset serial physical interface; the method further includes: receiving a reconnection request from the client; the reconnection request is generated based on the client determining that the storage key of the key storage area is consistent with the storage key previously transmitted by the client; In response to a data read request from a device to be debugged, determining a storage sector where debug data required to be read by the device to be debugged is located; Reading the debugging data of the storage sector and decrypting the read debugging data; Send the decrypted debugging data to the device to be debugged.

6. The wireless data storage method according to claim 5, characterized in that: The method further comprises: In response to a data read request from a device to be debugged, determining a storage sector where debug data to be read by the device to be debugged is located; the data read request is generated based on a determination by the client that a storage key in the key storage area is inconsistent with a storage key last transmitted by the client, or when the programmable wireless transmission device is not connected to the client; Reading debugging data from the storage sector, and symmetrically encrypting the read debugging data; Send the symmetrically encrypted debugging data to the device to be debugged.

7. The wireless data storage method according to any one of claims 1 to 6, characterized in that: The programmable wireless transmission device includes a register; the method further includes: In response to a data read request from a device to be debugged that is communicatively connected to the programmable wireless transmission device, determining a data processing state of the register based on a chip select signal in the data read request; Determine whether to send data to the device to be debugged according to the data processing status.

8. A wireless data storage system, characterized in that: The system includes: a memory partition module, a verification module and a storage module; The memory partitioning module is used to receive and parse the encrypted data storage ciphertext sent by the client when the client and the programmable wireless transmission device start communication transmission, and obtain the packet attributes and storage key of the data packet to be stored; and is also used to divide the data storage area based on the packet attributes of the data packet to be stored to obtain multiple storage sectors corresponding to the packet attributes; The verification module is configured to perform, in response to the data storage request sent by the client, an integrity check on the data packet to be stored carried in the received data storage request based on the storage key; The storage module is used to write the data packet to be stored that has passed the integrity check into the storage sector corresponding to the packet attribute of the data packet to be stored.

9. A programmable wireless transmission device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the wireless data storage method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the wireless data storage method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Program upgrading method, device and equipment for air conditioner outdoor unit and readable storage medium

    CN115268972A

  • Register simulation configuration method and device, computer equipment and storage medium

    CN117112452A

  • Magnetic disk device and method

    US11929094B1

  • Data security protection method, device, system, server-side, and storage medium

    US20250110648A1