CN115292398A - Data format conversion method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN115292398A
CN115292398A CN202210923239.0A CN202210923239A CN115292398A CN 115292398 A CN115292398 A CN 115292398A CN 202210923239 A CN202210923239 A CN 202210923239A CN 115292398 A CN115292398 A CN 115292398A
Authority
CN
China
Prior art keywords
data
interrupt
interruption
format conversion
serial port
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.)
Granted
Application number
CN202210923239.0A
Other languages
Chinese (zh)
Other versions
CN115292398B (en
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.)
China Aero Geophysical Survey and Remote Sensing Center for Natural Resources
Original Assignee
China Aero Geophysical Survey and Remote Sensing Center for Natural Resources
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 China Aero Geophysical Survey and Remote Sensing Center for Natural Resources filed Critical China Aero Geophysical Survey and Remote Sensing Center for Natural Resources
Priority to CN202210923239.0A priority Critical patent/CN115292398B/en
Publication of CN115292398A publication Critical patent/CN115292398A/en
Application granted granted Critical
Publication of CN115292398B publication Critical patent/CN115292398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a data format conversion method, a data format conversion device, electronic equipment and a storage medium, wherein the method comprises the following steps: the time interval setting of data acquisition, data transmission and data transmission is realized by adopting the external interruption of a singlechip, the universal asynchronous receiving and transmitting serial port interruption and the timer interruption; initializing the highest interrupt priority of a set timer; the timer is used for controlling the universal asynchronous receiving and transmitting serial port interrupt and the external interrupt so as to avoid conflict, the function of each interrupt is correctly realized, and the currently acquired data is discarded when the overflow mark of the timer is met in the external interrupt program. Under the condition of ensuring that the conflicts among the interrupts cannot be generated, the format conversion of the data to be converted is smoothly completed through the whole processes of data acquisition, data conversion and data transmission, and the accuracy of the target data obtained by the format conversion is ensured. Moreover, the problems of huge workload and the like and labor cost caused by manual development of interface butt joint of different systems can be solved.

Description

Data format conversion method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data format conversion technologies, and in particular, to a data format conversion method, an apparatus, an electronic device, and a storage medium.
Background
With the rapid development of the internet, the telecommunication industry, the internet industry support system and other third-party systems are gradually expanded and released. When an existing system needs to be docked to another existing system, direct docking interfaces of the system need to be established, and the interfaces are used for transaction requests, data synchronization and the like between the two systems. Because different systems have different implementation modes and programming languages, when a new interface or an old interface is reused for data transmission on the basis of the existing system, the internal data format of the system can not be directly butted with other systems according to the appointed interface specification under most conditions, and the internal data format needs to be converted into the data format on the interface protocol for transmission first or the data format received on the interface protocol is converted into the internal data format.
The data format conversion device aims at reducing the overhead caused by solving the difference of the internal and external data formats of the system under the condition of not changing the interface protocol between the system platforms, so that the access data of each system platform can use the internal data format of the data platform to carry out corresponding service processing after being processed by the data format conversion device. The existing data format conversion method usually needs manual development, realizes the interface butt joint of different systems, and has huge workload.
Therefore, it is urgently needed to provide a data format conversion method.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a data format conversion method, a data format conversion device, electronic equipment and a storage medium, which can realize automatic conversion of data formats and avoid the working pressure and labor cost of huge workload and the like caused by interface butt joint of different systems developed manually.
The invention also aims to realize data acquisition, transmission and time interval setting by adopting the external interrupt of the singlechip, the universal asynchronous receiving and transmitting serial port interrupt and the timer interrupt; initializing the highest interrupt priority of a set timer; and controlling the universal asynchronous receiving and transmitting serial port interrupt and the external interrupt by using a timer so as to avoid conflict, and discarding the currently acquired data when an overflow mark of the timer is met in an external interrupt program. The method smoothly completes format conversion of the data to be converted through the whole processes of data acquisition, data conversion and data transmission under the condition of ensuring that no conflict is generated among the interrupts, and ensures the accuracy of the target data obtained by format conversion.
In order to achieve the above object, the present invention provides a data format conversion method, including:
if the universal asynchronous receiving and transmitting serial port interrupt of the single chip microcomputer is forbidden and the external interrupt is enabled, acquiring data to be converted based on the external interrupt;
carrying out format conversion on the data to be converted to obtain target data;
if the set time length of the first timer interruption of the single chip microcomputer reaches the preset number, the external interruption is forbidden in the service program interrupted by the first timer to enable the universal asynchronous receiving and sending serial port interruption, the target data are sent to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and after the sending action of the target data is completed, the universal asynchronous receiving and sending serial port interruption is forbidden to enable the external interruption.
In an embodiment of the present invention, the collecting data to be converted based on the external interrupt previously includes:
carrying out initialization configuration on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, determining that the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is forbidden, the initialization state of the first timer interrupt is allowed to be interrupted and the initialization state of the external interrupt is allowed to be interrupted, and setting the baud rate of the universal asynchronous receiving and transmitting serial port of the single chip microcomputer based on a second timer;
and setting the priorities of the universal asynchronous receiving and sending serial port interrupt, the first timer interrupt and the external interrupt to be the first timer interrupt, the external interrupt and the universal asynchronous receiving and sending serial port interrupt from high to low in sequence.
In an embodiment of the present invention, the data to be converted includes a preset number of consecutive bytes;
correspondingly, the collecting the data to be converted based on the external interrupt comprises:
if the specified byte is detected in the service program of the external interrupt, starting to receive a first byte in the data to be converted by using the external interrupt;
and if the overflow mark of the first timer is detected in the service program of the external interrupt, discarding the received incomplete data by using the external interrupt, and setting the subscript of an array for storing the received data to be 0.
In an embodiment of the present invention, the external interrupt starting to receive the first byte in the data to be converted includes:
setting the subscript of an array for storing received data to be 0, storing the first byte to an element position with the subscript of 0 in the array, and sequentially storing subsequent bytes in the data to be converted in the array;
and after receiving the last data byte in the data to be converted, prohibiting the external interruption, and sending a notification to a main program of the single chip microcomputer so that the main program acquires the data to be converted based on the notification.
In an embodiment of the present invention, the format of the data to be converted is a BCD code, and the format of the target data is a character string.
In an embodiment of the present invention, the set time period is 20ms, and the predetermined number of times is 5.
In an embodiment of the present invention, the data to be converted includes a value of a barometric altitude parameter and a value of a radio altitude.
The present invention also provides a data format conversion apparatus, comprising:
the acquisition module is used for acquiring data to be converted based on the external interrupt if the universal asynchronous receiving and transmitting serial port interrupt of the singlechip is forbidden and the external interrupt is enabled;
the conversion module is used for carrying out format conversion on the data to be converted to obtain target data;
and the sending module is used for forbidding the external interruption to enable the interruption of the universal asynchronous receiving and sending serial port in the service program interrupted by the universal asynchronous receiving and sending serial port if the set time of the interruption of the first timer of the singlechip reaches the preset number, sending the target data to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and forbidding the interruption of the universal asynchronous receiving and sending serial port to enable the external interruption after the sending action of the target data is completed.
The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the processor implements the data format conversion method as described in any of the above when executing the program.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data format conversion method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a data format conversion method as described in any one of the above.
Compared with the prior art, according to the data format conversion method, the device, the electronic equipment and the storage medium, the data format conversion method adopts the external interruption of the singlechip, the universal asynchronous receiving and transmitting serial port interruption and the timer interruption to realize data acquisition, transmission and time interval setting; initializing the highest interrupt priority of a set timer; and controlling the universal asynchronous receiving and transmitting serial port interrupt and the external interrupt by using a timer so as to avoid conflict, and discarding the currently acquired data when an overflow mark of the timer is met in an external interrupt program. The method smoothly completes format conversion of the data to be converted through the whole processes of data acquisition, data conversion and data transmission under the condition of ensuring that no conflict is generated among the interrupts, and ensures the accuracy of the target data obtained by format conversion.
Drawings
Fig. 1 is a schematic flow chart of a data format conversion method according to an embodiment of the present invention;
fig. 2 is a hardware circuit diagram of a data format conversion device according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating format conversion performed by a main program of a single chip in a data format conversion method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a service procedure of a first timer interrupt of a chip in a data format conversion method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a service procedure of an external interrupt of a single chip in a data format conversion method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a service procedure of a universal asynchronous receive/transmit serial port interrupt of a single chip microcomputer in the data format conversion method according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a data format conversion device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
Fig. 1 is a schematic flowchart of a data format conversion method provided in an embodiment of the present invention, and as shown in fig. 1, the method includes:
s1, if the universal asynchronous receiving and sending serial port interruption of the single chip microcomputer is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption;
s2, carrying out format conversion on the data to be converted to obtain target data;
and S3, if the set time length of the interruption of the first timer of the single chip microcomputer reaches the preset number, prohibiting the external interruption in the service program of the interruption of the first timer, enabling the interruption of the universal asynchronous receiving and sending serial port, sending the target data to a target system in the service program of the interruption of the universal asynchronous receiving and sending serial port, and after the sending action of the target data is completed, prohibiting the interruption of the universal asynchronous receiving and sending serial port, and enabling the external interruption.
Specifically, an execution subject of the data format conversion method provided in the embodiment of the present invention is a data format conversion device. The data format conversion device can comprise a single chip microcomputer, a receiving and transmitting chip and peripheral circuits thereof. The single chip computer generally adopts a query mode or an interrupt mode to process events, and the interrupt mode is necessary to process the events needing to be processed in time. Because the synchronous signal is used for sampling data, the real-time performance is strong, and the data format conversion method based on the multi-task interruption of the singlechip is realized.
First, step S1 is performed. The data attribute of the data to be converted may include parameters that can be acquired by a measuring device, such as an air pressure altitude parameter and a radio altitude, the field to which the measuring device belongs may be any field, for example, the field of airborne geophysical prospecting, and the measuring device may be a comprehensive measuring system in an airborne geophysical prospecting measuring system. The data to be converted may thus include values for the barometric altitude parameter and values for the radio altitude.
The format of the data to be converted may be BCD code, it can be understood that the data to be converted may also have no data attribute, but data in pure BCD code format, and here, whether the data to be converted has the data attribute is not specifically limited.
Taking the measuring device as an example of a comprehensive measuring system, the comprehensive measuring system passes through 10 data lines (wherein, 8 data lines, 1 ground line and 1 synchronous signal line) with various collected geophysical prospecting data, and takes each frame of continuous 5 bytes, each byte occupies 8 lines, each byte has a synchronous signal of 1 negative pulse, and the synchronous signals of 5 bytes occupy 1 synchronous signal line together to complete output. The output port of the comprehensive measurement system is the input port of the data format conversion device.
At this time, the data to be converted may be continuous 5 bytes per frame of data, and its format is shown in table 1.
TABLE 1 Format of data to be converted
Byte sequence number Signal Definition of
1 0xCC Frame start byte
2 High four-bit BCD code + low four-bit BCD code Pressure height of thousands and hundreds
3 High four-bit BCD code + low four-bit BCD code Ten and one units of air pressure height
4 High four-bit BCD code + low four-bit BCD code Radio height thousands and hundreds
5 High four-bit BCD code + low four-bit BCD code Radio altitude ten and unit
The universal asynchronous receiving and sending serial port of the single chip microcomputer can be a serial port UART0, the external interrupt can be an external interrupt 0, the first timer can be a timer 0, and the following detailed description is only given by taking the serial port as an example.
In step S1, the serial UART0 interrupt is disabled (i.e., ES0= 0), the external interrupt 0 allows the interrupt, and the timer 0 interrupt allows the interrupt (i.e., ET0= 1), so that the timer 0 interrupt can be executed by the main program of the single chip microcomputer in a manner of calling the service program interrupted by the timer 0, and counting is started (TR 0= 1); and executing the external interrupt by calling a service program of the external interrupt, and acquiring the data to be converted through the external interrupt.
And then executing step S2, and performing format conversion on the data to be converted through unconditional circulation of a main program of the single chip microcomputer to obtain target data. It will be appreciated that the target data differs from the data to be converted only in the data format that it is in a form that can be received by the target system to which it is to be transmitted, for example the target system is the DAARK500 record system, which can receive data in a standard RS232 serial format. Thus, the data format of the target data may be a character string, such as "AUX, barometric altitude, radio altitude".
Finally, step S3 is executed, and the set duration and the preset number of the interrupts of the timer 0 can be preset, for example, the set duration can be 20ms, and the preset number can be 5. Therefore, when the set duration of the timer 0 interrupt reaches the preset number, the elapsed duration is 100ms, that is, it can be considered that the count of the duration of 100ms is realized by the 5-time timer 0 interrupt. At this time, the external interrupt 0 is prohibited in the service routine of the timer 0 interrupt, and the serial UART0 interrupt is enabled, that is, the serial UART0 interrupt is allowed.
And then, target data can be sent to a target system according to characters in the service program interrupted by the serial port UART0 in a mode of calling the service program interrupted by the serial port UART0 through a main program of the single chip microcomputer, namely, the whole process of data receiving and sending and format conversion is realized.
It can be understood that, since the timer 0 defines the set duration and the preset number, taking 100ms as an example, within the duration of 100ms, the sending of one group of character strings can be realized, and within 1s, the sending of 10 groups of character strings can be realized, that is, the output data refresh rate realized by the data format conversion method is 10Hz.
Thereafter, the serial UART0 interrupt may be disabled in the serial UART0 interrupt service routine, and the external interrupt 0 may be enabled, i.e., the external interrupt 0 interrupt may be allowed. In this manner, the execution condition of step S1 is satisfied, and therefore the loop execution of steps S1 to S3 can be realized.
Generally, the programming of a single-chip requires the following interrupts: 1) External interrupt 0 collects data to be converted; 2) The serial port UART0 interrupts output target data; 3) Timer 0 interrupts the set time interval. Because the single chip microcomputer works in a single task, the interrupt response is executed according to the priority, the interrupt with high priority is executed firstly when multiple interrupts are simultaneously requested, and then the interrupt with low priority is executed, the interrupt conflict can be caused when the single chip microcomputer processes the multiple interrupts.
In principle, short and urgent tasks are performed on the front, and long and slow tasks are performed on the back. According to the principle, the external interrupt 0 acquires data by using a synchronization signal of a negative pulse, the real-time performance is strongest, the priority should be highest, but the time length of 100ms for the interrupt of the timer 0 is prolonged; if the interrupt priority of the timer 0 is set to be the highest, data to be converted collected by the external interrupt 0 is continuously 5 bytes per frame, and data loss is caused by the interrupt of the timer 0. Therefore, in order to correctly realize the function of each interrupt and complete the format conversion of the data to be converted, the data format conversion method provided by the embodiment of the invention adopts a mutual control strategy among interrupt services of the single chip microcomputer.
When the set time length of the timer 0 interrupt reaches a preset number, for example, the elapsed time length is 100ms, in the service program of the timer 0 interrupt, the external interrupt 0 interrupt is prohibited, that is, the data to be converted is not collected, and the serial port UART0 is allowed to interrupt. At this time, the target data, namely the character string, converted by the main program of the single chip microcomputer is sent in the service program interrupted by the serial port UART 0. After the character string is sent, prohibiting the interruption of the serial port UART0 in a service program of the interruption of the serial port UART0, namely not sending the character string, allowing the external interruption 0, and continuously collecting the data to be converted.
Fig. 2 is a hardware circuit diagram of the data format conversion apparatus. As shown in fig. 2, the data format conversion device includes a single chip microcomputer U1, a transceiver chip U2 and peripheral circuits thereof. Wherein J1 is an input port of the data format conversion device. Pins 1 to 8 of the J1 are data lines, pin 9 is a ground line, and pin 10 is a synchronous signal INT0 line. J2 is an RS232 serial port output port, and the converted character string is sent to a target system through the output port.
The type of the singlechip U1 can be a singlechip C8051F020, and can also be other 51 series singlechips, and the transceiver chip U2 can be an RS232 transceiver chip SP3223EA. C1-C4 are 0.1 μ F capacitors, vcc is 3.3V positive supply, and DGNND is 3.3V ground.
Pins 1 to 8 of the J1 are used for transmitting data to be converted output by an output port of the comprehensive measurement system, and are respectively connected with a P1 port (comprising pins 29 to 36) of the singlechip U1, pins 9 and 10 of the J1 are grounded, and are used for transmitting synchronous signals and connected with pins 60 of the singlechip U1; the pins 37, 64 and 90 of the singlechip U1 are connected with Vcc, the pins 38, 63 and 89 of the singlechip U1 are connected with DGND, and the pin 62 of the singlechip U1 is connected with the pin 13 of the transceiver chip U2. Pins 14, 19 and 20 of the transceiver chip U2 are connected with Vcc, pins 1 and 18 are connected with DGND, pin 17 is connected with pin 3 of J2, a capacitor C1 is connected with pins 2 and 4 of the transceiver chip U2, a capacitor C2 is connected with pins 5 and 6 of the transceiver chip U2, a capacitor C3 is connected with pins 7 and 18 of the transceiver chip U2, a capacitor C4 is connected with pins 3 and 18 of U2, and pin 5 of J2 is connected with DGND.
The data format conversion method provided in the embodiment of the invention comprises the following steps: the time interval setting of data acquisition, data transmission and data transmission is realized by adopting the external interruption of a singlechip, the universal asynchronous receiving and transmitting serial port interruption and the timer interruption; initializing the interrupt priority of the timer to be highest; the timer is used for controlling the universal asynchronous receiving and transmitting serial port interrupt and the external interrupt so as to avoid conflict, the function of each interrupt is correctly realized, and the currently acquired data is discarded when the overflow mark of the timer is met in the external interrupt program. The method smoothly completes format conversion of the data to be converted through the whole processes of data acquisition, data conversion and data transmission under the condition of ensuring that no conflict is generated among the interrupts, and ensures the accuracy of the target data obtained by format conversion. Moreover, the method can also avoid the problems of huge workload and the like and labor cost caused by manual development of interface butt joint of different systems.
On the basis of the above embodiment, the data format conversion method provided in the embodiment of the present invention, where the acquiring data to be converted based on the external interrupt previously includes:
and carrying out initialization configuration on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, determining that the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is forbidden, the initialization state of the first timer interrupt is allowed to be interrupted and the initialization state of the external interrupt is allowed to be interrupted, and setting the baud rate of the universal asynchronous receiving and transmitting serial port of the single chip microcomputer based on a second timer.
And setting the priorities of the universal asynchronous receiving and sending serial port interrupt, the first timer interrupt and the external interrupt to be the first timer interrupt, the external interrupt and the universal asynchronous receiving and sending serial port interrupt from high to low in sequence.
Specifically, in the embodiment of the present invention, before executing the timer 0 interrupt of the single chip, that is, before the step of the data format conversion method is started, initialization configuration needs to be performed, where the initialization configuration may include performing initialization configuration on the serial UART0 interrupt, the timer 0 interrupt, and the external interrupt 0, and determining that the initialization state of the serial UART0 interrupt is disabled, the initialization state of the timer 0 interrupt is allowed to be interrupted, and the initialization state of the external interrupt 0 is allowed to be interrupted. Meanwhile, the baud rate of the serial port UART0 of the singlechip can be set according to a second timer, the second timer can be a timer 2, and the baud rate can be set to 9600.
Furthermore, the priority of the UART serial port interrupt, the first timer interrupt and the external interrupt can be set to be the first timer interrupt, the external interrupt and the UART serial port interrupt from high to low in sequence.
After the initialization configuration, the triggering condition of step S1 in the data format conversion method can be satisfied.
On the basis of the above embodiment, in the data format conversion method provided in the embodiment of the present invention, the data to be converted includes a preset number of consecutive bytes;
correspondingly, the collecting the data to be converted based on the external interrupt comprises:
if a specified byte is detected in the service program of the external interrupt, starting to receive a first byte in the data to be converted by using the external interrupt;
and if the overflow mark of the first timer is detected in the service program of the external interrupt, discarding the received incomplete data by using the external interrupt, and setting the subscript of an array for storing the received data to be 0.
Specifically, in this embodiment of the present invention, each data to be converted may include a preset number of consecutive bytes, where the preset number may be 5, and may include one designated byte and four data bytes, where the designated byte may be represented as 0XCC, and the designated byte is located before the first digital byte and serves as a header of the data to be converted.
On the basis, when the external interrupt is used for collecting the data to be converted, the detection action and the collection action are continuously executed in the service program of the external interrupt 0, if the specified byte 0XCC is detected in the service program of the external interrupt 0, the following data is definitely the data to be converted, and therefore, the external interrupt 0 is used for starting to receive the first byte of the data to be converted until 5 bytes are received, namely, the receiving of the data to be converted is completed.
If the overflow flag of timer 0 (i.e., TF0= 1) is detected in the service program of external interrupt 0, the received incomplete data is discarded using external interrupt 0 and the index of the array for storing the received data is set to 0.
In the embodiment of the invention, the acquisition strategy of the data to be converted is given, the time when the data to be converted is received is started and the time when the acquisition of all bytes in 1 data to be converted is finished can be quickly and accurately identified, and the integrity of each data to be converted is ensured.
On the basis of the foregoing embodiment, in the data format conversion method provided in the embodiment of the present invention, the external interrupt starts to receive the first byte in the data to be converted, and the method includes:
setting the subscript of an array for storing received data to be 0, storing the first byte to an element position with the subscript of 0 in the array, and sequentially storing subsequent bytes in the data to be converted in the array;
and after receiving the last data byte in the data to be converted, prohibiting the external interruption, and sending a notification to a main program of the single chip microcomputer so that the main program acquires the data to be converted based on the notification.
Specifically, in the embodiment of the present invention, when the external interrupt 0 starts to receive the first byte in the data to be converted, the subscript of the array for storing the received data may be set to 0, and then the first byte is stored to the element position with the subscript of 0 in the array. And further, when the subsequent bytes are continuously received, the received subsequent bytes are sequentially stored in the array.
And after receiving the last data byte in the data to be converted, the external interrupt 0 prohibits the external interrupt 0 and sends a notification to the main program of the single chip microcomputer so that the main program of the single chip microcomputer obtains the data to be converted based on the received notification.
If the overflow flag of timer 0 (i.e., TF0= 1) is detected in the service program of external interrupt 0, the index of the array for storing the received data is set to 0 (i.e., the received incomplete data is discarded).
On the basis of the above embodiments, the data format conversion method provided in the embodiments of the present invention, and the flow of format conversion performed by the main program of the single chip microcomputer are shown in fig. 3.
In FIG. 3, the main program first performs initialization operations, including: external interrupt 0 allows interrupts (i.e., EX0= 1) and is set to falling edge trigger; the timer 0 interruption is set to be a set time length of 20ms, the timer 0 interruption for 5 times reaches a recording time length of 100ms, the refresh rate of output target data can be further made to be 10Hz, the priority of the timer 0 interruption is the highest, the timer 0 interruption is allowed (namely ET0= 1), and counting is started (namely TR0= 1); the interrupt of the serial UART0 is disabled (i.e., ES0= 0), and the timer 2 sets the baud rate of the serial UART0 to 9600.
Judging whether to receive data to be converted in a continuous 5-byte BCD code format started by a first byte 0xCC and acquired from a P1 port of a single chip microcomputer by an external interrupt 0 after the initialization operation is finished, if the data to be converted is received, storing the data to be converted into another array, allowing the external interrupt 0 to be interrupted (namely EX0= 1) so as to continue acquiring the data to be converted, and then performing format conversion operation, namely converting the data to be converted into character strings, such as 'AUX, air pressure height and radio height'; if the data to be converted is not received, the judging process is continued.
On the basis of the foregoing embodiment, in the data format conversion method provided in the embodiment of the present invention, a flow of a service routine of the first timer interrupt is shown in fig. 4.
Taking the first timer as timer 0 as an example, the service program of timer 0 interrupt enters from the timer 0 interrupt entry. And then judging whether the counting time length reaches 100ms or not, namely, firstly using a first timer to interrupt for counting until 5 times of interruption is reached to realize the counting time length of 100ms, so as to realize that 10 target data are sent to a target system in 1 second. When the counting time reaches 100ms, the external interrupt INTO is prohibited from continuously receiving the data to be converted in the service program interrupted by the first timer, then the serial UART0 is enabled to interrupt, and then the data are returned to the main program of the single chip microcomputer. And when the counting time does not reach 100ms, directly returning to the main program of the singlechip.
On the basis of the foregoing embodiments, in the data format conversion method provided in the embodiments of the present invention, a flow of a service routine of an external interrupt is shown in fig. 5.
Taking the external interrupt as the external interrupt 0 as an example, the external interrupt 0 is used to receive the data to be converted sent by the comprehensive measurement system. And when the singlechip detects that the 10 feet of the J1 are pulse falling edges, entering a service program of the external interrupt 0 from an external interrupt 0 inlet. Firstly, judging whether an overflow mark of a timer 0 is detected, namely TF0=1, if the overflow mark of the timer 0 is detected, discarding the received incomplete data, and setting a subscript of an array for storing the received data to be 0; then whether the specified byte (namely 0 XCC) is received or not is detected, if the specified byte is detected, the subscript of an array (used for storing data of 5 bytes) for receiving the data is set to be 0, the first byte is started to be received and stored to the element position with the subscript of 0 in the array, and the subsequent bytes are continuously received and stored to the array in sequence.
If the overflow flag of timer 0 is not detected, it is directly detected whether the specified byte is received. If the specified byte is not received, subsequent bytes continue to be received.
And then, continuously judging whether the last byte of the data to be converted is received, if so, prohibiting external interruption 0, and informing the main program to take away the data in the array. If not, i.e. if the last byte is not received, then the program returns directly to the main program.
On the basis of the above embodiments, the flow of the service program of the universal asynchronous receive and transmit serial port interrupt in the data format conversion method provided in the embodiments of the present invention is shown in fig. 6.
In the embodiment of the invention, the universal asynchronous receiving and sending serial port is the serial port UART0 as an example, and the service program entering the serial port UART0 from the interrupt inlet of the serial port UART 0. The character string converted by the main program of the single chip microcomputer is sent by using the serial UART0 interrupt according to the baud rate set by the timer 2 and taking characters as units, namely, the character string converted by the main program sends one character for each interrupt in sequence. And then judging whether a character string is sent or not, if so, prohibiting the interruption of the serial port UART0, allowing the interruption of the external interruption 0, and then returning to the main program. If one character string is not transmitted, the next character is continuously transmitted.
In summary, according to the data format conversion method provided in the embodiment of the present invention, when the counting duration of the timer 0 interrupt service reaches 100ms, in the service program of the timer 0 interrupt, the external interrupt 0 is prohibited, that is, the data to be converted is not collected, and the serial UART0 is allowed to interrupt. At this time, in the service program of the serial port UART0 interrupt, the character string converted from the main program is sent at the baud rate set by the timer 2, and when the sending of the character string is finished, the serial port UART0 interrupt is prohibited in the service program of the serial port UART0 interrupt, that is, the character string is not sent, the external interrupt 0 is allowed, that is, the data to be converted is continuously collected. In the service program of the external interrupt 0, firstly, judging whether an interrupt overflow mark of a timer 0 is detected, if the overflow mark of the timer 0 is detected (namely TF0= 1), discarding the received incomplete data, and setting a subscript of an array for storing the received data to be 0; and then detecting whether the specified byte is received, if so, setting the subscript of an array (particularly for storing data to be converted of 5 bytes) for storing the received data to be 0, starting to receive the first byte, storing the first byte to the element position with the subscript of 0 in the array, continuing to receive subsequent fields and sequentially storing the subsequent fields in the array. And then, judging whether the last byte in the data to be converted is received, if so, prohibiting the interruption of the external interrupt 0, and informing the main program to take away the data in the array. The interrupt of the serial port UART0 is allowed by the interrupt of the timer 0, and the serial port UART0 is forbidden to be sent after one character string is sent; the external interrupt 0 is allowed by the serial UART0 interrupt, and is prohibited by the timer 0 interrupt, and simultaneously, the processing of the overflow mark of the timer 0 in the service program of the external interrupt 0 interrupt thoroughly solves the conflict between interrupt services, correctly realizes the function of each interrupt, and completes the format conversion of the data to be converted.
As shown in fig. 7, on the basis of the above embodiment, an embodiment of the present invention provides a data format conversion apparatus, including:
the acquisition module 71 is configured to acquire data to be converted based on external interrupt if the universal asynchronous receive/transmit serial port interrupt of the single chip microcomputer is prohibited and the external interrupt is enabled;
the conversion module 72 is configured to perform format conversion on the data to be converted to obtain target data;
and the sending module 73 is used for forbidding the external interruption to enable the interruption of the universal asynchronous receiving and sending serial port in the service program interrupted by the universal asynchronous receiving and sending serial port if the set duration of the interruption of the first timer of the singlechip reaches the preset number, sending the target data to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and forbidding the interruption of the universal asynchronous receiving and sending serial port to enable the external interruption after the sending action of the target data is completed.
On the basis of the foregoing embodiment, the data format conversion apparatus provided in the embodiment of the present invention further includes an initialization configuration module, configured to:
carrying out initialization configuration on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, determining that the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is forbidden, the initialization state of the first timer interrupt is allowed to be interrupted and the initialization state of the external interrupt is allowed to be interrupted, and setting the baud rate of the universal asynchronous receiving and transmitting serial port of the single chip microcomputer based on a second timer;
and setting the priorities of the universal asynchronous receiving and sending serial port interrupt, the first timer interrupt and the external interrupt to be the first timer interrupt, the external interrupt and the universal asynchronous receiving and sending serial port interrupt from high to low in sequence.
On the basis of the above embodiment, in the data format conversion apparatus provided in the embodiment of the present invention, the data to be converted includes a preset number of consecutive bytes;
correspondingly, the acquisition module is specifically configured to:
if a specified byte is detected in the service program of the external interrupt, starting to receive a first byte in the data to be converted by using the external interrupt;
and if the overflow mark of the first timer is detected in the service program of the external interrupt, discarding the received incomplete data by using the external interrupt, and setting the subscript of an array for storing the received data to be 0.
On the basis of the foregoing embodiment, in the data format conversion apparatus provided in the embodiment of the present invention, the acquisition module is further specifically configured to:
setting subscripts of an array for storing received data to be 0, storing the first bytes to element positions with subscripts of 0 in the array, and sequentially storing subsequent bytes in the data to be converted in the array;
and after receiving the last data byte in the data to be converted, prohibiting the external interruption, and sending a notification to a main program of the single chip microcomputer so that the main program acquires the data to be converted based on the notification.
On the basis of the above embodiment, in the data format conversion apparatus provided in the embodiment of the present invention, the set time duration is 20ms, and the number of the predetermined times is 5.
On the basis of the above embodiment, in the data format conversion apparatus provided in the embodiment of the present invention, the format of the data to be converted is a BCD code, and the format of the target data is a character string.
On the basis of the above embodiment, in the data format conversion apparatus provided in the embodiment of the present invention, the data to be converted includes a value of the barometric altitude parameter and a value of the radio altitude.
Specifically, the functions of the modules in the data format conversion apparatus provided in the embodiment of the present invention correspond to the operation flows of the steps in the above method embodiments one to one, and the implementation effects are also consistent.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor) 810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call logic instructions in the memory 830 to perform the data format conversion method provided in the above embodiments, the method including: if the universal asynchronous receiving and sending serial port interruption of the single chip microcomputer is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption; carrying out format conversion on the data to be converted to obtain target data; if the set time length of the first timer interruption of the single chip microcomputer reaches the preset number, the external interruption is forbidden in the service program interrupted by the first timer to enable the universal asynchronous receiving and sending serial port interruption, the target data are sent to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and after the sending action of the target data is completed, the universal asynchronous receiving and sending serial port interruption is forbidden to enable the external interruption.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program being capable of executing, when executed by a processor, the data format conversion method provided in the above embodiments, the method including: if the universal asynchronous receiving and sending serial port interruption of the single chip microcomputer is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption; carrying out format conversion on the data to be converted to obtain target data; if the set time length of the first timer interruption of the single chip microcomputer reaches the preset number, the external interruption is forbidden in the service program interrupted by the first timer to enable the universal asynchronous receiving and sending serial port interruption, the target data are sent to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and after the sending action of the target data is completed, the universal asynchronous receiving and sending serial port interruption is forbidden to enable the external interruption.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the data format conversion method provided in the above embodiments, the method including: if the universal asynchronous receiving and sending serial port interruption of the single chip microcomputer is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption; carrying out format conversion on the data to be converted to obtain target data; if the set time length of the first timer interruption of the single chip microcomputer reaches a preset number, the external interruption is forbidden in the service program of the first timer interruption, the universal asynchronous receiving and sending serial port interruption is enabled, the target data are sent to a target system in the service program of the universal asynchronous receiving and sending serial port interruption, and after the sending action of the target data is completed, the universal asynchronous receiving and sending serial port interruption is forbidden, and the external interruption is enabled.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (10)

1. A data format conversion method, comprising:
if the universal asynchronous receiving and sending serial port interruption of the single chip microcomputer is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption;
carrying out format conversion on the data to be converted to obtain target data;
if the set time length of the first timer interruption of the single chip microcomputer reaches the preset number, the external interruption is forbidden in the service program interrupted by the first timer to enable the universal asynchronous receiving and sending serial port interruption, the target data are sent to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and after the sending action of the target data is completed, the universal asynchronous receiving and sending serial port interruption is forbidden to enable the external interruption.
2. The data format conversion method according to claim 1, wherein the collecting of the data to be converted based on the external interrupt previously comprises:
initializing and configuring the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, determining that the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is forbidden, the initialization state of the first timer interrupt is allowed to be interrupted and the initialization state of the external interrupt is allowed to be interrupted, and setting the baud rate of the universal asynchronous receiving and transmitting serial port of the single chip microcomputer based on a second timer;
and setting the priorities of the universal asynchronous receiving and sending serial port interrupt, the first timer interrupt and the external interrupt to be the first timer interrupt, the external interrupt and the universal asynchronous receiving and sending serial port interrupt from high to low in sequence.
3. The data format conversion method according to claim 1, wherein the data to be converted includes a preset number of consecutive bytes;
correspondingly, the collecting the data to be converted based on the external interrupt comprises:
if the specified byte is detected in the service program of the external interrupt, starting to receive a first byte in the data to be converted by using the external interrupt;
and if the overflow mark of the first timer is detected in the service program of the external interrupt, discarding the received incomplete data by using the external interrupt, and setting the subscript of an array for storing the received data to be 0.
4. The data format conversion method according to claim 3, wherein the external interrupt starting to receive the first byte in the data to be converted includes:
setting the subscript of an array for storing received data to be 0, storing the first byte to an element position with the subscript of 0 in the array, and sequentially storing subsequent bytes in the data to be converted in the array;
and after receiving the last data byte in the data to be converted, prohibiting the external interruption, and sending a notification to a main program of the single chip microcomputer so that the main program acquires the data to be converted based on the notification.
5. The data format conversion method according to any one of claims 1 to 4, wherein the set time period is 20ms, and the up to preset number is 5.
6. The data format conversion method according to any one of claims 1 to 4, wherein the format of the data to be converted is BCD code, and the format of the target data is character string.
7. The data format conversion method according to any one of claims 1 to 4, wherein the data to be converted includes a value of a barometric pressure altitude parameter and a value of a radio altitude.
8. A data format conversion apparatus, comprising:
the acquisition module is used for acquiring data to be converted based on the external interrupt if the universal asynchronous receiving and transmitting serial port interrupt of the singlechip is forbidden and the external interrupt is enabled;
the conversion module is used for carrying out format conversion on the data to be converted to obtain target data;
and the sending module is used for forbidding the external interruption to enable the interruption of the universal asynchronous receiving and sending serial port in the service program interrupted by the universal asynchronous receiving and sending serial port if the set time of the interruption of the first timer of the single chip microcomputer reaches a preset number, sending the target data to a target system in the service program interrupted by the universal asynchronous receiving and sending serial port, and forbidding the interruption of the universal asynchronous receiving and sending serial port to enable the external interruption after the sending action of the target data is finished.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data format conversion method of any one of claims 1-7 when executing the program.
10. A non-transitory computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the data format conversion method according to any one of claims 1 to 7.
CN202210923239.0A 2022-08-02 2022-08-02 Data format conversion method and device, electronic equipment and storage medium Active CN115292398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210923239.0A CN115292398B (en) 2022-08-02 2022-08-02 Data format conversion method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210923239.0A CN115292398B (en) 2022-08-02 2022-08-02 Data format conversion method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115292398A true CN115292398A (en) 2022-11-04
CN115292398B CN115292398B (en) 2023-07-25

Family

ID=83825510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210923239.0A Active CN115292398B (en) 2022-08-02 2022-08-02 Data format conversion method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115292398B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578631A (en) * 2023-07-13 2023-08-11 国仪量子(合肥)技术有限公司 Data interaction method, data acquisition equipment, data processing equipment and interaction system
CN117234706A (en) * 2023-08-30 2023-12-15 中科驭数(北京)科技有限公司 Numeric data type conversion method, device and accelerator card

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020073352A1 (en) * 2000-11-29 2002-06-13 Haruyasu Okubo Data processor and data processing system
CN102298095A (en) * 2011-06-27 2011-12-28 中国国土资源航空物探遥感中心 Method for ensuring accurate measurement on pulse width in multi-task singlechip system and device
CN104239255A (en) * 2014-09-04 2014-12-24 华北电力大学 Universal data converter and method for Wiegand bus
CN107769901A (en) * 2017-10-19 2018-03-06 中国科学院寒区旱区环境与工程研究所 A kind of method and apparatus of field inspection data transfer
CN108304335A (en) * 2018-02-07 2018-07-20 南京南瑞继保电气有限公司 A method of the indefinite long message of serial ports is received by DMA
CN208199647U (en) * 2018-02-27 2018-12-07 段荣华 A kind of belt of belt conveyor skidding early warning detection device
CN208314229U (en) * 2018-06-27 2019-01-01 广东省气象探测数据中心 A kind of Portable gas image sensor fault detection means

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020073352A1 (en) * 2000-11-29 2002-06-13 Haruyasu Okubo Data processor and data processing system
CN102298095A (en) * 2011-06-27 2011-12-28 中国国土资源航空物探遥感中心 Method for ensuring accurate measurement on pulse width in multi-task singlechip system and device
CN104239255A (en) * 2014-09-04 2014-12-24 华北电力大学 Universal data converter and method for Wiegand bus
CN107769901A (en) * 2017-10-19 2018-03-06 中国科学院寒区旱区环境与工程研究所 A kind of method and apparatus of field inspection data transfer
CN108304335A (en) * 2018-02-07 2018-07-20 南京南瑞继保电气有限公司 A method of the indefinite long message of serial ports is received by DMA
CN208199647U (en) * 2018-02-27 2018-12-07 段荣华 A kind of belt of belt conveyor skidding early warning detection device
CN208314229U (en) * 2018-06-27 2019-01-01 广东省气象探测数据中心 A kind of Portable gas image sensor fault detection means

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578631A (en) * 2023-07-13 2023-08-11 国仪量子(合肥)技术有限公司 Data interaction method, data acquisition equipment, data processing equipment and interaction system
CN116578631B (en) * 2023-07-13 2023-10-13 国仪量子(合肥)技术有限公司 Data interaction method, data acquisition equipment, data processing equipment and interaction system
CN117234706A (en) * 2023-08-30 2023-12-15 中科驭数(北京)科技有限公司 Numeric data type conversion method, device and accelerator card

Also Published As

Publication number Publication date
CN115292398B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN115292398A (en) Data format conversion method and device, electronic equipment and storage medium
CN106155950B (en) Parameter processing method and device
CN109658414A (en) A kind of intelligent checking method and device of pig
CN106548213B (en) Blood vessel recognition methods and device
CN104850499A (en) Automatic test method and device for base band software
CN110309065B (en) Concurrent execution method, device and equipment of test tasks and storage medium
CN104598355A (en) Automatic testing system and method of router USB performance
CN103853648A (en) Embedded software performance evaluating hardware auxiliary test device and method
CN110262978A (en) It is a kind of based on long process automation test interface retry method and data flow
CN110134036A (en) A kind of method, monitoring system and the storage medium of serial port data acquisition poll
CN108595312A (en) A kind of automatic performance method and device of modelling customer behavior
CN116087752A (en) Chip testing method, system, device and medium
CN115576827A (en) Performance test method, device, equipment and storage medium of business process software
CN108234228B (en) Method, device and system for acquiring network energy efficiency
CN113364625B (en) Data transmission method, intermediate transmission equipment and storage medium
CN103618713A (en) User relevance method, system and related equipment
CN204856469U (en) General signal acquisition driver
CN107992397A (en) BIOS program starts monitoring method and electronic equipment
CN110544064B (en) Data processing method and device, readable storage medium and electronic equipment
CN110868703A (en) Method and device for ensuring signal quality of application program
CN110781878A (en) Target area determination method and device, storage medium and electronic device
CN107103003B (en) Method for acquiring data in link, acquisition equipment, processing equipment and system
CN109977062A (en) A kind of method, apparatus and electronic equipment of software realization Serial data receiving
CN112801296B (en) Data processing method, device and system
CN106528577B (en) Method and device for setting file to be cleaned

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
GR01 Patent grant
GR01 Patent grant