CN116010314A - Data resource conversion method and device, electronic equipment and storage medium - Google Patents

Data resource conversion method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116010314A
CN116010314A CN202211371754.9A CN202211371754A CN116010314A CN 116010314 A CN116010314 A CN 116010314A CN 202211371754 A CN202211371754 A CN 202211371754A CN 116010314 A CN116010314 A CN 116010314A
Authority
CN
China
Prior art keywords
data
target
data resource
usb
resource storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211371754.9A
Other languages
Chinese (zh)
Inventor
单莉
朱春磊
邱刚
赵鸣远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202211371754.9A priority Critical patent/CN116010314A/en
Publication of CN116010314A publication Critical patent/CN116010314A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a data resource conversion method, a device, an electronic device and a storage medium, wherein the data resource storage device with different aviation plug types is firstly subjected to data reading, then target data transmitted by the data resource storage device with different aviation plug types are mapped into USB files, and the USB files are encoded to form encoded USB data and then transmitted to a data resource guarantee device, so that the data on the data resource storage device with different aviation plug types can be uniformly converted into USB data; through the design, the method provided by the invention can realize unified conversion of corresponding data of different aviation interfaces, so that when data extraction is carried out, data conversion is not needed to be carried out by means of different equipment, the workload is reduced, the extraction efficiency is improved, the rapid maintenance and guarantee of the equipment are facilitated, and the method is suitable for wide application and popularization.

Description

Data resource conversion method and device, electronic equipment and storage medium
Technical Field
The invention belongs to the technical field of data conversion, and particularly relates to a data resource conversion method, a data resource conversion device, electronic equipment and a storage medium.
Background
Avionics systems have undergone four stages of development in the course of their development: the system is a stand-alone avionic system, a combined avionic system, a comprehensive avionic system and a current advanced comprehensive avionic system, and the architecture of the avionic system is provided with a comprehensive unitized avionic system and a distributed unitized avionic system respectively, wherein compared with the integrated unitized avionic system and the distributed unitized avionic system, the integrated avionic system realizes the upgrade and iterative update of a larger span, has high integration level, is relatively independent, can effectively compatible with units in the avionic system, realizes the physical separation of functional units, and is connected by a high-speed and stable data bus, so that the direct communication of data is ensured.
The reliability of the avionics system is an important guarantee for ensuring the safe flight of the aircraft, so that information in each electronic device in the avionics system needs to be read after each flight to realize the detection and maintenance of the device; however, with the increasing integration, unitization and complexity of avionics devices, the magnitude of avionics interface data transmitted through a high-speed bus between devices of an avionics information system is continuously increasing, and the interactivity, complexity and diversity of data are gradually emerging, meanwhile, because the signal formats of devices with different bus types defined by the avionics interface are very complex, when information extraction of the avionics devices is performed each time, a corresponding interface is needed to perform data extraction, and data with different interface types are also needed to perform data conversion; however, at present, a unified data conversion method is not available for each type of aviation interface, so that different data are required to be converted by means of different devices, the workload is increased, the efficiency is reduced, and great difficulty is brought to maintenance and guarantee of the devices; therefore, the data resource conversion method of the avionic interface is provided to realize unified conversion of information in devices corresponding to different avionic interfaces, and the method becomes a hot problem in the current research field.
Disclosure of Invention
The invention aims to provide a data resource conversion method, a device, electronic equipment and a storage medium, which are used for solving the problems that in the prior art, a unified data conversion method is not available for all types of aviation interfaces, so that different data are required to be converted by means of different equipment, the workload is increased, the efficiency is reduced, and great difficulty is brought to the maintenance and the guarantee of the equipment.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in a first aspect, a data resource conversion method is provided, including:
receiving target data transmitted by an external data resource storage device, and storing the target data into a RAM (random access memory) in a memory data block mode, wherein the external data resource storage device comprises a storage device with an aviation interface;
reading a target memory data block from the RAM, and mapping the target memory data block into a U disk file, wherein the target memory data block is a memory data block corresponding to the target data;
coding the USB flash disk file to obtain coded USB data;
transmitting the encoded USB data to data resource guarantee equipment through a USB bus so as to finish data transmission of target data in the external data resource storage equipment after transmission is finished.
Based on the above disclosure, the method firstly performs data reading on the data resource storage devices with different aviation plug types, then maps the target data transmitted by the data resource storage devices with different aviation plug types into USB files, and transmits the USB files to the data resource guarantee device after encoding to form encoded USB data, so that the data on the data resource storage devices with different aviation plug types can be uniformly converted into USB data; through the design, the method provided by the invention can realize unified conversion of corresponding data of different aviation interfaces, so that when data extraction is carried out, data conversion is not needed to be carried out by means of different equipment, the workload is reduced, the extraction efficiency is improved, the rapid maintenance and guarantee of the equipment are facilitated, and the method is suitable for wide application and popularization.
In one possible design, receiving target data transmitted by an external data resource storage device includes:
receiving a communication mode inquiry request sent by the external data resource storage device, and determining a serial port communication mode between the external data resource storage device and the serial port communication mode based on the communication mode inquiry request, wherein the serial port communication mode comprises asynchronous serial port communication, and the asynchronous serial port communication comprises RS232 serial port communication or TTL serial port communication;
the serial communication mode is sent to the external data resource storage equipment, so that the external data resource storage equipment divides the target data into N groups of data messages after receiving the serial communication mode;
and receiving N groups of data messages sequentially sent by the external data resource storage equipment according to a target transmission protocol, and analyzing the N groups of data messages to obtain the target data, wherein the target transmission protocol is a transmission protocol corresponding to the serial port communication mode, and N is a positive integer.
Based on the above disclosure, the present invention discloses a specific manner of performing data transmission with an external data resource storage device, that is, firstly, a communication mode query request transmitted by the external data resource storage device is received, then, a serial communication manner (such as RS232 serial communication or TTL serial communication) can be obtained based on the request, and finally, the serial communication manner is returned to the external data resource storage device, thereby, the communication manner with the external data resource storage device can be determined, and thus, the data transmission between different interfaces can be realized by the communication manner.
In one possible design, receiving N groups of data messages sequentially transmitted by the external data resource storage device includes:
generating a confirmation response message of the ith group of data messages after receiving the ith group of data messages, wherein i is a positive integer;
the acknowledgement message is sent to the external data resource storage equipment, so that the external data resource storage equipment transmits the (i+1) th group of data messages after receiving the acknowledgement message;
and when i is looped from 1 to N, receiving the N groups of data messages.
In one possible design, reading a target memory data block from the RAM memory and mapping the target memory data block to a usb disk file includes: and mapping the target memory data block into a USB flash disk file in a zero copy mode.
Based on the above disclosure, the invention stores the target data in the form of memory data blocks, and can quickly read according to the memory address when reading; meanwhile, the data is mapped into the USB flash disk file in a zero-copy mode, so that the risk of bit errors caused by multiple copies in the conversion process can be eliminated, and the reliability of data conversion is ensured.
In one possible design, the encoding the USB file to obtain encoded USB data includes: and encoding the data in the USB flash disk file by adopting an inverse non-return-to-zero inversion encoding algorithm to obtain the encoded USB data. .
Based on the above disclosure, the invention encodes the transmitted data by adopting the inverse non-return-to-zero inversion coding algorithm, so that clock synchronization between the transmitting and receiving parties can be ensured, and independent clock signals are not required to be transmitted, and start bits and stop bits are not required to be carried before and after each byte, thereby improving the convenience of data transmission.
In one possible design, the method further comprises:
if the target data is an electronic key signal, a first channel conversion instruction is acquired, and after the first channel conversion instruction is acquired, the electronic key signal is converted into a first I2C signal; or (b)
If the target data is an IC card signal, a second channel conversion instruction is acquired, and after the second channel conversion instruction is acquired, the IC card signal is converted into a second I2C signal;
and sending the first I2C signal or the second I2C signal to the data resource guarantee equipment so as to finish transparent transmission between target data and the data resource guarantee equipment.
Based on the above disclosure, when the signal transmitted by the external data resource storage device is an electronic key signal or an IC card signal, the invention can directly realize the transparent transmission of the electronic key signal or the IC card signal, thereby, the device also supports the conversion of data using the electronic key as a carrier and the conversion of data using the IC card as a carrier, and the applicability of the device is further improved.
In one possible design, before receiving the target data transmitted by the external data resource storage device, the method further comprises:
acquiring a data transmission instruction, and performing fault self-checking based on the data transmission instruction to obtain self-checking information;
judging whether transmission faults exist or not according to the self-checking information;
if yes, generating alarm information, otherwise, executing the data transmission instruction, and receiving the target data transmitted by the external data resource storage equipment.
Based on the above disclosure, the invention sets a self-checking step before data transmission and carries out alarm prompt when in fault, thus ensuring stable data transmission each time, and simultaneously reminding operators in time when in fault so as to take corresponding fault treatment measures.
In a second aspect, there is provided a data resource conversion apparatus, comprising:
the data receiving unit is used for receiving target data transmitted by an external data resource storage device and storing the target data into the RAM in a memory data block mode, wherein the external data resource storage device comprises a storage device with an aviation interface;
the data conversion unit is used for reading a target memory data block from the RAM, and mapping the target memory data block into a U disk file, wherein the target memory data block is a memory data block corresponding to the target data;
the encoding unit is used for encoding the USB flash disk file to obtain encoded USB data;
and the sending unit is used for transmitting the encoded USB data to the data resource guarantee equipment through a USB bus so as to finish the data transmission of the target data in the external data resource storage equipment after the transmission is finished.
In a third aspect, another data resource conversion device is provided, taking the device as an electronic device, where the device includes a memory, a processor, and a transceiver, where the memory is configured to store a computer program, the transceiver is configured to send and receive a message, and the processor is configured to read the computer program, and perform the data resource conversion method as in the first aspect or any one of the possible designs of the first aspect.
In a fourth aspect, there is provided a storage medium having instructions stored thereon which, when executed on a computer, perform the data resource conversion method as in the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data resource conversion method as in the first aspect or any one of the possible designs of the first aspect.
The beneficial effects are that:
(1) The method provided by the invention can realize unified conversion of the corresponding data of different aviation interfaces, so that when data extraction is carried out, data conversion is not needed to be carried out by means of different equipment, the extraction efficiency is improved while the workload is reduced, the rapid maintenance and guarantee of the equipment are facilitated, and the method is suitable for wide application and popularization.
(2) The invention stores the transmitted data in a memory block mode, carries out USB mapping of the data in a zero copy mode and encodes the U disk file by using the reverse non-return-to-zero inversion encoding, thus effectively ensuring the correctness and the effectiveness of data resource conversion, simultaneously generating different files aiming at different conversations, ensuring the data independence of the different conversations, and ensuring the data conversion integrity and the independence of the whole using process in a conversation and file independent mode
Drawings
Fig. 1 is a schematic flow chart of steps of a data resource conversion method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of transmission of target data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of channel switching according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data resource conversion device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly described below with reference to the accompanying drawings and the description of the embodiments or the prior art, and it is obvious that the following description of the structure of the drawings is only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art. It should be noted that the description of these examples is for aiding in understanding the present invention, but is not intended to limit the present invention.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
It should be understood that for the term "and/or" that may appear herein, it is merely one association relationship that describes an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a alone, B alone, and both a and B; for the term "/and" that may appear herein, which is descriptive of another associative object relationship, it means that there may be two relationships, e.g., a/and B, it may be expressed that: a alone, a alone and B alone; in addition, for the character "/" that may appear herein, it is generally indicated that the context associated object is an "or" relationship.
Examples:
referring to fig. 1, the data resource conversion method provided by the embodiment can realize unified conversion of data corresponding to different aviation interfaces, so that when data extraction is performed, data conversion is not required to be performed by means of different devices, the extraction efficiency is improved, and the workload is reduced; in this embodiment, the method may be, but not limited to, executed on the data resource conversion device side, and it is to be understood that the foregoing execution subject is not limited to the embodiment of the present application, and accordingly, the operation steps of the method may be, but not limited to, as shown in the following steps S1 to S4.
S1, receiving target data transmitted by an external data resource storage device, and storing the target data into a RAM (random access memory) in a memory data block mode, wherein the external data resource storage device comprises a storage device with an aviation interface; in this embodiment, before the data transmission, a communication query is used for example to determine a communication manner between the data resource conversion device and the external data resource storage device, and then the external data resource storage device may be made to use the determined communication manner to transmit the target data, where the transmission process of the target data may be, but is not limited to, as shown in the following steps S11 to S13.
S11, receiving a communication mode query request sent by the external data resource storage device, and determining a serial port communication mode between the external data resource storage device and the serial port communication mode based on the communication mode query request, wherein the serial port communication mode can be, for example, asynchronous serial port communication, and the asynchronous serial port communication can be, for example, RS232 serial port communication or TTL serial port communication; referring to fig. 2, in this embodiment, the communication mode query request sent by the external data resource storage device to the device may be, but not limited to, a communication query frame, and after the device receives the communication query frame, it may determine that a serial port communication mode is obtained, and transmit the serial port communication mode to the external data resource storage device, so that it completes data transmission based on the determined serial port communication mode, as shown in step S12 below.
S12, the serial communication mode is sent to the external data resource storage device, so that the external data resource storage device divides the target data into N groups of data messages after receiving the serial communication mode; in a specific application, the serial port communication manner of the device sent to the external data resource storage device may be, but is not limited to,: the communication response frame is, of course, sent by using a determined serial port communication mode, for example, RS232 serial port (that is, RS232 level) or TTL serial port, and finally, after receiving the communication response frame, the external data resource storage device can realize data transmission; optionally, after receiving the communication response frame, the external data resource device divides the target data into N groups of data packets, and uses a transmission protocol corresponding to the serial communication mode (i.e. RS232 serial port or TTL serial port) to transmit the N groups of data packets to the device, where N is a positive integer, as also shown in fig. 2, where the text frame 1 in fig. 2 represents the first group of data packets, and the text frame 2 represents the second group of data packets, so that the transmission of the target data can be completed in the above manner.
After the external data resource storage device transmits the N sets of data packets to the data resource conversion device, the packet analysis can be performed, so that the N sets of data packets are restored to the target data, as shown in step S13 below.
S13, receiving N groups of data messages sequentially sent by the external data resource storage equipment according to a target transmission protocol, and analyzing the N groups of data messages to obtain target data, wherein the target transmission protocol is a transmission protocol corresponding to the serial port communication mode, and N is a positive integer; in a specific application, for example, the method provided in this embodiment performs a receiving acknowledgement when transmitting text, that is, after receiving a group of data messages, an acknowledgement is performed, and the external data resource storage device performs transmission of the next group of data messages after receiving the acknowledgement, where the receiving acknowledgement steps are shown in the following steps S13a to S13c.
S13a, after receiving the ith group of data messages, generating a confirmation response message of the ith group of data messages, wherein i is a positive integer; in specific application, the confirmation response message is also transmitted by adopting a determined serial port communication mode.
S13b, sending the confirmation response message to the external data resource storage equipment, so that the external data resource storage equipment can transmit the (i+1) th group of data messages after receiving the confirmation response message.
S13c, when i circulates from 1 to N, receiving the N groups of data messages.
Referring to fig. 2, after receiving the acknowledgement message, the external data resource storage device sends a next group of data messages to the data resource conversion device, so that the external data resource storage device transmits the next group of messages after receiving a group of data messages, thereby avoiding packet loss and ensuring the reliability of data transmission.
Through the design, the communication mode between the external data resource storage equipment and the data resource conversion equipment can be determined by adopting a communication inquiry mode, so that the data transmission among different interfaces is realized by the communication mode; thus, a software foundation can be provided for one device to read the realization of different aviation interfaces; meanwhile, the text transmission mode of receiving confirmation is adopted, so that data loss can be avoided, and the reliability of transmission is ensured.
After the target data transmitted by the external data resource storage device is obtained, the target data can be stored in a memory data block mode, so that the data can be quickly read according to the memory address when the data is read later, and the reading efficiency is improved; meanwhile, the data can be completely lost after the equipment is powered off by storing the data in the RAM, so that the transmission safety of the data is ensured.
After the storage of the target data is completed, the conversion of the target data may be performed as shown in step S2 below.
S2, reading a target memory data block from the RAM, and mapping the target memory data block into a U disk file, wherein the target memory data block is a memory data block corresponding to the target data; when the method is applied specifically, the target memory data block is mapped into the USB flash disk file in a zero-copy mode, wherein the zero-copy technology is a technology for avoiding using a CPU to copy data from one storage to another storage, and can reduce the times of data copying and bus sharing operation and eliminate unnecessary intermediate copying times between memories for transmitting data, so that the data transmission efficiency is effectively improved, and the zero-copy technology reduces the cost caused by context switching between an address space of a user application program and an address space of an operating system kernel, so that the transmission efficiency can be improved while the bit error risk caused by multiple copies in the internal conversion process is eliminated.
After the target data is converted into the usb file, it is further required to encode the target data to ensure the security of data transmission, where the encoding process is described in the following step S3.
S3, carrying out coding processing on the USB flash disk file to obtain coded USB data; in specific application, for example, but not limited to, an inverse non-return-to-zero inversion coding algorithm is adopted to code the data in the USB flash disk file, so as to obtain the coded USB data; in the embodiment, the inverse non-return-to-zero inversion coding algorithm can ensure that clocks between the transmitting and receiving parties are kept synchronous without sending independent clock signals and without carrying a start bit and a stop bit before and after each byte, so that the convenience of data transmission is improved and the transmission safety is ensured; furthermore, for the encoded USB data, the present embodiment uses CRC5 (cyclic redundancy check of 5 bits) to protect the token packet in the encoded USB data, uses CRC16 (cyclic redundancy check of 16 bits) to protect the content of the data packet in the encoded USB data, and uses CRC32 (cyclic redundancy check of 32 bits) to protect the entire encoded USB data, thereby further ensuring the data transmission security.
Therefore, the storage mode, the coding mode and the copying mode provided by the embodiment can effectively ensure the correctness and the effectiveness of data resource conversion.
After the usb disk file is encoded, data transmission may be performed, as shown in step S4 below.
S4, transmitting the encoded USB data to data resource guarantee equipment through a USB bus so as to finish data transmission of target data in the external data resource storage equipment after transmission is finished; when the method is implemented, for example, when the data resource conversion equipment side operates, the cable and the PCB wiring related to USB data transmission of the equipment are controlled in impedance strictly according to the standard requirements, and the differential shielding stranded wire is adopted to inhibit the interference of external electromagnetic noise on signal transmission, so that the anti-interference capability of the data transmission can be improved, and the reliability and the stability of the transmission are further improved; in addition, the embodiment can generate different files aiming at different sessions, ensure the data independence of the different sessions, and ensure the data conversion integrity and independence of the whole use process in a session and file independent mode.
Furthermore, after receiving the target data, the present embodiment may further implement corresponding channel switching according to the signal type of the target data, that is, when the external data resource is stored as an electronic key or an IC card, the present embodiment may implement transparent transmission of data on both, where the transmission process is as shown in the following steps S5 to S7.
S5, if the target data are electronic key signals, acquiring a first channel conversion instruction, and converting the electronic key signals into first I2C signals after acquiring the first channel conversion instruction; or (b)
S6, if the target data is an IC card signal, a second channel conversion instruction is acquired, and after the second channel conversion instruction is acquired, the IC card signal is converted into a second I2C signal; in specific application, the corresponding signal type can be judged according to the interface of the target data transmission.
S7, the first I2C signal or the second I2C signal is sent to the data resource guarantee equipment so as to complete transparent transmission between target data and the data resource guarantee equipment.
In particular, referring to fig. 3, in this embodiment, the second channel conversion instruction and the first channel conversion instruction are exemplified as enabling control signals (issued by a control module in the device), that is, the channel conversion is completed by using the enabling control signals, wherein if the target data is an electronic key signal, an enabling control 1 signal is received, and the electronic key channel is switched to implement the conversion of the electronic key signal, and if the target data is an IC card signal, an enabling control 2 signal is received, that is, the electronic key channel is switched to implement the conversion of the IC card signal; after channel switching, a data transmission function can be realized, namely, the device transmits a first I2C signal or a second I2C signal to the data resource guarantee device so as to complete data transmission between target data on the electronic key and the data resource guarantee device and data transmission between target data on the IC card and the data resource guarantee device.
Therefore, through the design, the method provided by the embodiment also supports the conversion of the data taking the electronic key as the carrier and the conversion of the data taking the IC card as the carrier, and the usability of the method is further improved.
In addition, in this embodiment, before the data transmission, a self-checking step is further provided to ensure normal transmission of the data, where the self-checking step is shown in the following steps S01 to S03.
S01, acquiring a data transmission instruction, and performing fault self-checking based on the data transmission instruction to obtain self-checking information; in a specific application, the data transmission instruction may be, but not limited to, a start-up instruction, and may be generated by a user during man-machine interaction.
S02, judging whether transmission faults exist or not according to the self-checking information; when the method is applied specifically, if the fault code in the fault matching table exists in the self-checking information, the transmission fault exists, otherwise, the transmission fault does not exist, and the fault matching table is preset in the equipment.
S03, if yes, generating alarm information, otherwise, executing the data transmission instruction, and receiving the target data transmitted by the external data resource storage equipment.
Through the self-checking step, stable transmission of data each time can be ensured, and meanwhile, operators can be timely reminded when in fault, so that corresponding fault treatment measures are adopted.
The method provided by the invention can realize unified conversion of corresponding data of different aviation interfaces through the data resource conversion method described in detail in the steps S1-S4, so that when data extraction is carried out, data conversion is not needed by means of different equipment, the workload is reduced, the extraction efficiency is improved, the rapid maintenance and guarantee of the equipment are facilitated, and the method is suitable for wide application and popularization.
As shown in fig. 4, a second aspect of the present embodiment provides a hardware device for implementing the data resource conversion method described in the first aspect of the present embodiment, including:
a data receiving unit, configured to receive target data transmitted by an external data resource storage device, and store the target data in a RAM memory in a manner of a memory data block, where the external data resource storage device includes a storage device with an avionics interface
And the data conversion unit is used for reading a target memory data block from the RAM, and mapping the target memory data block into a U disk file, wherein the target memory data block is a memory data block corresponding to the target data.
And the encoding unit is used for encoding the USB flash disk file to obtain encoded USB data.
And the sending unit is used for transmitting the encoded USB data to the data resource guarantee equipment through a USB bus so as to finish the data transmission of the target data in the external data resource storage equipment after the transmission is finished.
When the device is particularly applied, the device is also provided with a display screen which is used for displaying an operation mode menu and various operation states, supports the selection of multiple modes such as equipment, an IC card, an electronic key and the like through the touch screen, only allows one mode to be selected at the same time, and simultaneously, the process state of the device can be displayed on the display screen.
The working process, working details and technical effects of the device provided in this embodiment may refer to the first aspect of the embodiment, and are not described herein again.
As shown in fig. 5, a third aspect of the present embodiment provides another data resource conversion device, taking the device as an electronic device as an example, including: the device comprises a memory, a processor and a transceiver which are connected in sequence in communication, wherein the memory is used for storing a computer program, the transceiver is used for receiving and transmitting messages, and the processor is used for reading the computer program and executing the data resource conversion method according to the first aspect of the embodiment.
By way of specific example, the Memory may include, but is not limited to, random access Memory (random access Memory, RAM), read Only Memory (ROM), flash Memory (Flash Memory), first-in-first-out Memory (First Input First Output, FIFO) and/or first-in-last-out Memory (First In Last Out, FILO), etc.; in particular, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ), and may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state.
In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit, image processor) for taking charge of rendering and rendering of content required to be displayed by the display screen, for example, the processor may not be limited to a microprocessor employing a model number of STM32F105 family, a reduced instruction set computer (reduced instruction set computer, RISC) microprocessor, an X86 or other architecture processor, or a processor integrating an embedded neural network processor (neural-network processing units, NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (low power local area network protocol based on the ieee802.15.4 standard), a 3G transceiver, a 4G transceiver, and/or a 5G transceiver, etc. In addition, the device may include, but is not limited to, a power module, a display screen, and other necessary components.
The working process, working details and technical effects of the electronic device provided in this embodiment may refer to the first aspect of the embodiment, and are not described herein again.
A fourth aspect of the present embodiment provides a storage medium storing instructions containing the data resource conversion method according to the first aspect of the present embodiment, i.e. the storage medium has instructions stored thereon, which when executed on a computer, perform the data resource conversion method according to the first aspect.
The storage medium refers to a carrier for storing data, and may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash Memory, a flash disk, and/or a Memory Stick (Memory Stick), where the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
The working process, working details and technical effects of the storage medium provided in this embodiment may refer to the first aspect of the embodiment, and are not described herein again.
A fifth aspect of the present embodiment provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data resource conversion method of the first aspect of the embodiment, wherein the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus.
Finally, it should be noted that: the foregoing description is only of the preferred embodiments of the invention and is not intended to limit the scope of the invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for converting data resources, comprising:
receiving target data transmitted by an external data resource storage device, and storing the target data into a RAM (random access memory) in a memory data block mode, wherein the external data resource storage device comprises a storage device with an aviation interface;
reading a target memory data block from the RAM, and mapping the target memory data block into a U disk file, wherein the target memory data block is a memory data block corresponding to the target data;
coding the USB flash disk file to obtain coded USB data;
transmitting the encoded USB data to data resource guarantee equipment through a USB bus so as to finish data transmission of target data in the external data resource storage equipment after transmission is finished.
2. The method of claim 1, wherein receiving the target data transmitted by the external data resource storage device comprises:
receiving a communication mode inquiry request sent by the external data resource storage device, and determining a serial port communication mode between the external data resource storage device and the serial port communication mode based on the communication mode inquiry request, wherein the serial port communication mode comprises asynchronous serial port communication, and the asynchronous serial port communication comprises RS232 serial port communication or TTL serial port communication;
the serial communication mode is sent to the external data resource storage equipment, so that the external data resource storage equipment divides the target data into N groups of data messages after receiving the serial communication mode;
and receiving N groups of data messages sequentially sent by the external data resource storage equipment according to a target transmission protocol, and analyzing the N groups of data messages to obtain the target data, wherein the target transmission protocol is a transmission protocol corresponding to the serial port communication mode, and N is a positive integer.
3. The method of claim 2, wherein receiving N sets of data messages sequentially transmitted by the external data resource storage device comprises:
generating a confirmation response message of the ith group of data messages after receiving the ith group of data messages, wherein i is a positive integer;
the acknowledgement message is sent to the external data resource storage equipment, so that the external data resource storage equipment transmits the (i+1) th group of data messages after receiving the acknowledgement message;
and when i is looped from 1 to N, receiving the N groups of data messages.
4. The method of claim 1, wherein reading a target memory data block from the RAM memory and mapping the target memory data block to a usb disk file comprises: and mapping the target memory data block into a USB flash disk file in a zero copy mode.
5. The method of claim 1, wherein the encoding the USB disk file to obtain encoded USB data comprises: and encoding the data in the USB flash disk file by adopting an inverse non-return-to-zero inversion encoding algorithm to obtain the encoded USB data.
6. The method according to claim 1, wherein the method further comprises:
if the target data is an electronic key signal, a first channel conversion instruction is acquired, and after the first channel conversion instruction is acquired, the electronic key signal is converted into a first I2C signal; or (b)
If the target data is an IC card signal, a second channel conversion instruction is acquired, and after the second channel conversion instruction is acquired, the IC card signal is converted into a second I2C signal;
and sending the first I2C signal or the second I2C signal to the data resource guarantee equipment so as to finish transparent transmission between target data and the data resource guarantee equipment.
7. Before receiving the target data transmitted by the external data resource storage device, the method further comprises:
acquiring a data transmission instruction, and performing fault self-checking based on the data transmission instruction to obtain self-checking information;
judging whether transmission faults exist or not according to the self-checking information;
if yes, generating alarm information, otherwise, executing the data transmission instruction, and receiving the target data transmitted by the external data resource storage equipment.
8. A data resource conversion device, comprising:
the data receiving unit is used for receiving target data transmitted by an external data resource storage device and storing the target data into the RAM in a memory data block mode, wherein the external data resource storage device comprises a storage device with an aviation interface;
the data conversion unit is used for reading a target memory data block from the RAM, and mapping the target memory data block into a U disk file, wherein the target memory data block is a memory data block corresponding to the target data;
the encoding unit is used for encoding the USB flash disk file to obtain encoded USB data;
and the sending unit is used for transmitting the encoded USB data to the data resource guarantee equipment through a USB bus so as to finish the data transmission of the target data in the external data resource storage equipment after the transmission is finished.
9. An electronic device, comprising: a memory, a processor and a transceiver in communication with each other in sequence, wherein the memory is configured to store a computer program, the transceiver is configured to send and receive messages, and the processor is configured to read the computer program and perform the data resource conversion method according to any one of claims 1 to 7.
10. A storage medium having stored thereon instructions which, when executed on a computer, perform the data resource conversion method of any of claims 1 to 7.
CN202211371754.9A 2022-11-03 2022-11-03 Data resource conversion method and device, electronic equipment and storage medium Pending CN116010314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211371754.9A CN116010314A (en) 2022-11-03 2022-11-03 Data resource conversion method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211371754.9A CN116010314A (en) 2022-11-03 2022-11-03 Data resource conversion method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116010314A true CN116010314A (en) 2023-04-25

Family

ID=86018162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211371754.9A Pending CN116010314A (en) 2022-11-03 2022-11-03 Data resource conversion method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116010314A (en)

Similar Documents

Publication Publication Date Title
CN102831096B (en) A kind of 1553B bus protocol IP kernel
US20140068134A1 (en) Data transmission apparatus, system, and method
CN102929836B (en) Special ASIC (Application Specific Integrated Circuit) chip system for spaceflight
CN104365057B (en) Three-phase-polarity safe reverse link shutdown
WO2021244194A1 (en) Register reading/writing method, chip, subsystem, register group, and terminal
CN105471917A (en) Data transmission method and system
CN102664902A (en) Hardware implementing method for kernels of POWERLINK communication protocol master and slave stations
CN111489279B (en) GPU acceleration optimization method and device and computer storage medium
EP4075759A1 (en) Processor, implementation method, electronic device, and storage medium
CN114817114A (en) MIPI interface, control method, device and medium thereof
CN114356671A (en) Board card debugging device, system and method
CN114138476A (en) Processing method and device of pooled resources, electronic equipment and medium
CN116010314A (en) Data resource conversion method and device, electronic equipment and storage medium
CN115333609A (en) Satellite measurement and control system, method, device, equipment and medium
CN116599589A (en) Signal synchronization method, device, equipment and medium
CN114647610B (en) Voice chip implementation method, voice chip and related equipment
WO2022100148A1 (en) Backplane communication device and control method therefor, and storage medium
CN115903744A (en) Automobile remote detection method and device, electronic equipment and storage medium
CN107113245A (en) Methods, devices and systems for the coded command information in packet-based network
CN104518850B (en) Reference template is synchronized to the method and information processing system of data flow
CN115695573A (en) Multi-carrier data resource conversion equipment
CN112882985A (en) Data transmission system, method, device and medium
CN102025738B (en) Method, equipment and system for processing transaction message
CN103118023A (en) Method and system for transmitting standard data in network
CN108848398A (en) A kind of distribution method, device, terminal and the storage medium of local barrage message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination