CN115292398B - 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
CN115292398B
CN115292398B CN202210923239.0A CN202210923239A CN115292398B CN 115292398 B CN115292398 B CN 115292398B CN 202210923239 A CN202210923239 A CN 202210923239A CN 115292398 B CN115292398 B CN 115292398B
Authority
CN
China
Prior art keywords
interrupt
data
converted
timer
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.)
Active
Application number
CN202210923239.0A
Other languages
Chinese (zh)
Other versions
CN115292398A (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

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)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a data format conversion method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: the external interrupt, the universal asynchronous receiving and transmitting serial port interrupt and the timer interrupt of the singlechip are adopted to realize the time interval setting of data acquisition, data transmission and data transmission; initializing the interrupt priority of the set timer to be highest; the timer is used for controlling the universal asynchronous receiving and transmitting serial port interruption and the external interruption so as to avoid conflict, the function of each interruption is correctly realized, and the current acquired data is discarded if an overflow mark of the timer is encountered in the external interruption program. Under the condition of ensuring that conflict can not occur among all the interrupts, the format conversion of the data to be converted is successfully completed through the whole process of data acquisition, data conversion and data transmission, and the accuracy of target data obtained through the format conversion is ensured. Moreover, the problems of huge workload and other working pressure and labor cost caused by the manual development of interface butt joint of different systems can be avoided.

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, a data format conversion device, 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 other existing systems, a direct docking interface of the system needs to be established, and the interfaces are used for carrying out transaction requests, data synchronization and the like between the two systems. Because different systems use different implementation modes and different implementation programming languages, when implementing new interfaces or multiplexing old interfaces for data transmission on the basis of the existing systems, the internal data format of the system cannot be directly docked with other systems according to agreed interface specifications in most cases, and the internal data format needs to be converted into the data format on an interface protocol for transmission or the received data format on the interface protocol is converted into the internal data format.
With more and more systems to be docked, more and more data format conversion works are needed, and the data format conversion device aims at reducing the cost caused by the difference of internal and external data formats of the system under the condition that the interface protocol between the system platforms is not changed, so that the access data of each system platform can be processed by the data format conversion device and then can be processed by the corresponding service by using the internal data format of the system platform. The existing data format conversion method generally needs manual development to realize interface butt joint of different systems, and has huge workload.
For this reason, it is urgently required 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 of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide a data format conversion method, a device, electronic equipment and a storage medium, which can realize automatic conversion of data formats and avoid working pressure and labor cost such as huge workload caused by interface butt joint of different systems developed manually.
The other purpose of the invention is to realize data acquisition, transmission and time interval setting by adopting external interrupt, universal asynchronous receiving and transmitting serial port interrupt and timer interrupt of the singlechip; initializing the interrupt priority of the set timer to be highest; the timer is used for controlling the universal asynchronous receiving and transmitting serial port interrupt and the external interrupt to avoid conflict, and the current acquired data is discarded when an overflow mark of the timer is encountered in the external interrupt program. Under the condition of ensuring that conflict can not occur among all the interrupts, the method smoothly completes the format conversion of the data to be converted through the whole process of data acquisition, data conversion and data transmission, and ensures the accuracy of target data obtained through the 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 interruption of the singlechip is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption;
performing format conversion on the data to be converted to obtain target data;
if the set duration of the first timer interrupt of the singlechip reaches the preset number, prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and transmitting serial port interrupt, transmitting the target data to a target system in the service program of the universal asynchronous receiving and transmitting serial port interrupt, prohibiting the universal asynchronous receiving and transmitting serial port interrupt after the transmission action of the target data is completed, and enabling the external interrupt.
In an embodiment of the present invention, the collecting the data to be converted based on the external interrupt includes:
initializing configuration is carried out on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is determined to be forbidden, the initialization state of the first timer interrupt is enabled interrupt and the initialization state of the external interrupt is enabled interrupt, and the baud rate of the universal asynchronous receiving and transmitting serial port of the singlechip is set based on a second timer;
And setting the priority of the universal asynchronous receiving and transmitting 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 transmitting serial port interrupt in sequence from high to low.
In one embodiment of the present invention, the data to be converted includes a predetermined number of consecutive bytes;
correspondingly, based on the external interrupt, collecting the data to be converted includes:
if the specified byte is detected in the service program of the external interrupt, starting to receive the first byte in the data to be converted by utilizing the external interrupt;
if the overflow flag 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 the array for storing the received data to 0.
In one embodiment of the present invention, the external interrupt starts receiving the first byte of the data to be converted, including:
setting a subscript of an array for storing received data to 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 interrupt, and sending a notification to a main program of the singlechip 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 BCD code, and the format of the target data is a character string.
In an embodiment of the present invention, the set duration is 20ms, and the up to preset number is 5.
In one 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 invention also provides a data format conversion device, which comprises:
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 prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and sending serial port interrupt, sending the target data to a target system in the service program of the universal asynchronous receiving and sending serial port interrupt, and prohibiting the universal asynchronous receiving and sending serial port interrupt and enabling the external interrupt after the sending action of the target data is completed.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the data format conversion method as described in any one 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, the data format conversion method, the device, the electronic equipment and the storage medium adopt external interrupt, universal asynchronous receiving and transmitting serial port interrupt and timer interrupt of a singlechip to realize data acquisition, transmission and time interval setting; initializing the interrupt priority of the set timer to be highest; the timer is used for controlling the universal asynchronous receiving and transmitting serial port interrupt and the external interrupt to avoid conflict, and the current acquired data is discarded when an overflow mark of the timer is encountered in the external interrupt program. Under the condition of ensuring that conflict can not occur among all the interrupts, the method smoothly completes the format conversion of the data to be converted through the whole process of data acquisition, data conversion and data transmission, and ensures the accuracy of target data obtained through the format conversion.
Drawings
Fig. 1 is a 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 flow chart of format conversion performed by a main program of a single chip microcomputer in a data format conversion method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a service program of a first timer interrupt of a single chip microcomputer in a data format conversion method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a service program of external interrupt of a single chip microcomputer in a data format conversion method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of a service procedure for a UART (UART) serial interrupt of a singlechip in a 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 embodiments of the invention is, therefore, to be taken in conjunction with the accompanying drawings, and it is to be understood that the scope of the invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the term "comprise" or variations thereof such as "comprises" or "comprising", etc. will be understood to include the stated element or component without excluding other elements or components.
Fig. 1 is a flow chart of a data format conversion method provided in an embodiment of the present invention, as shown in fig. 1, the method includes:
s1, if the universal asynchronous receiving and transmitting serial port interruption of a singlechip 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;
s3, if the set duration of the first timer interrupt of the singlechip reaches the preset number, prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and transmitting serial port interrupt, and sending the target data to a target system in a service program of the universal asynchronous receiving and transmitting serial port interrupt, and prohibiting the universal asynchronous receiving and transmitting serial port interrupt and enabling the external interrupt after the sending action of the target data is completed.
Specifically, the embodiment of the invention provides a data format conversion method, wherein an execution body of the method is a data format conversion device. The data format conversion device can comprise a singlechip, a transceiver chip and peripheral circuits thereof. The single chip microcomputer generally adopts a query mode or an interrupt mode for processing the event, and the interrupt mode is needed for the event which needs to be processed in time. The synchronous signal is used for sampling data, so that the real-time performance is high, 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 measurement device such as a barometric pressure altitude parameter and a radio altitude, and the field to which the measurement device belongs may be any field, for example, the field of aerospace geophysical prospecting, and the measurement device may be a comprehensive measurement system in an aerospace geophysical prospecting measurement system. The data to be converted may thus comprise the value of the barometric pressure altitude parameter and the value of the radio altitude.
The format of the data to be converted may be BCD code, it may be understood that the data to be converted may also have no data attribute, but the data in the pure BCD code format, where whether the data to be converted has the data attribute is not specifically limited.
Taking the measuring device as an example, the comprehensive measuring system is used for outputting various collected geophysical prospecting data through 10 data lines (wherein 8 data lines, 1 data line is a ground line, 1 data line is a synchronous signal line), each frame of data is continuously provided with 5 bytes, each byte occupies 8 lines, each byte is provided with 1 negative pulse synchronous signal, and the synchronous signals of 5 bytes commonly occupy 1 synchronous signal line. 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 5 bytes per frame of data in the format shown in table 1.
TABLE 1 Format of data to be converted
Byte sequence number Signal signal Definition of the definition
1 0xCC Frame start byte
2 High four-bit BCD code+low four-bit BCD code High-pressure kilobit and hundred bit
3 High four-bit BCD code+low four-bit BCD code Pneumatic high-altitude tens and units
4 High four-bit BCD code+low four-bit BCD code Radio altitude kilobits and hundred bits
5 High four-bit BCD code+low four-bit BCD code Radio altitude ten and unit
The universal asynchronous receiving and transmitting serial port of the singlechip can be a serial port UART0, the external interrupt can be the external interrupt 0, and the first timer can be the timer 0, and the following is only a detailed description taking this as an example.
When step S1 is executed, the serial UART0 interrupt is disabled (i.e., es0=0), the external interrupt 0 is allowed to interrupt, and the timer 0 interrupt is allowed to interrupt (i.e., et0=1), so that the timer 0 interrupt can be executed in a manner of calling the service program of the timer 0 interrupt by the main program of the single-chip microcomputer, and counting is started (tr0=1); and executing the external interrupt by calling the external interrupt service program, and collecting 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 singlechip to obtain target data. It will be appreciated that the target data differs from the data to be converted only in terms of the data format which it is in a form that it can receive by the target system to which it is to be transmitted, for example the target system is the DAARK500 listing system, which can receive 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, in step S3, the set duration and the preset number of interrupts of the timer 0 may be preset, for example, the set duration may be 20ms, and the preset number may be 5. Therefore, when the set duration of the timer 0 interrupt reaches the preset number, the elapsed duration is 100ms, that is, the count of the duration of 100ms can be considered to be realized by 5 times of the timer 0 interrupt. At this time, the external interrupt 0 is disabled inside the service routine of the timer 0 interrupt, and the serial UART0 interrupt is enabled, i.e. the serial UART0 interrupt is enabled.
And then, the target data can be sent to the target system according to characters in the service program interrupted by the serial UART0 in a mode of calling the service program interrupted by the serial UART0 through the main program of the singlechip, so that the whole process of data receiving and transmitting 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, a group of character strings can be sent within the duration of 100ms, and 10 groups of character strings can be sent within 1s, that is, the refresh rate of output data implemented by the data format conversion method is 10Hz.
Thereafter, the serial UART0 interrupt may be disabled in the service routine of the serial UART0 interrupt, enabling the external interrupt 0, i.e., allowing the external interrupt 0 interrupt. Thus, the execution condition of step S1 is satisfied, and thus the loop execution of steps S1 to S3 can be realized.
In general, the following interrupts are needed for programming the singlechip: 1) The external interrupt 0 collects data to be converted; 2) The UART0 interrupts and outputs target data; 3) Timer 0 interrupts the set time interval. Because the singlechip is operated by a single task, interrupt response is executed according to priority, and when multiple interrupts are simultaneously requested, the interrupt with high priority is executed first, and then the interrupt with low priority is executed, so that interrupt conflict can be caused when the singlechip processes multiple interrupts.
In principle, short and urgent tasks are performed before and long and slow tasks are performed after. According to the principle, the external interrupt 0 collects data by using a negative pulse synchronous signal, the real-time performance is strongest, the priority should be highest, but the time length for realizing 100ms of the interrupt of the timer 0 is prolonged; if the interrupt priority of the timer 0 is set to be the highest, since the data to be converted collected by the external interrupt 0 is continuous 5 bytes per frame, the data loss is likely to occur due to the interference of 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 between interrupt services of the singlechip.
When the set time length of the timer 0 interrupt reaches a preset number, for example, when the elapsed time length is 100ms, in the service program of the timer 0 interrupt, the external interrupt 0 interrupt is forbidden, that is, the data to be converted is not collected, and the serial port UART0 interrupt is allowed. At this time, the target data converted by the main program of the singlechip, i.e. the character string, is sent in the service program interrupted by the serial UART 0. After the character string is sent, the serial port UART0 is forbidden to interrupt in the service program of the serial port UART0 interrupt, namely, the character string is not sent, the external interrupt 0 is allowed, and the data to be converted is continuously collected.
Fig. 2 is a hardware circuit diagram of the data format conversion device. 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. 1 to 8 pins of J1 are data lines, 9 pins are ground lines, and 10 pins are synchronization signal INT0 lines. And J2 is an RS232 serial port output port, and the converted character string is sent to a target system through the output port.
The model of the singlechip U1 can be a singlechip C8051F020, 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 power positive, DGNND is 3.3V power ground.
The 1-8 pins of the J1 are used for transmitting data to be converted output by an output port of the comprehensive measurement system, are respectively connected with a P1 port (comprising 29-36 pins) of the singlechip U1, the 9 pins of the J1 are grounded, and the 10 pins are used for transmitting synchronous signals and are connected with the 60 pins of the singlechip U1; the 37 feet, the 64 feet and the 90 feet of the singlechip U1 are connected with Vcc, the 38 feet, the 63 feet and the 89 feet of the singlechip U1 are connected with DGND, and the 62 feet of the singlechip U1 are connected with the 13 feet of the transceiver chip U2. The 14 feet, 19 feet and 20 feet of the transceiver chip U2 are connected with Vcc, the 1 feet and 18 feet are connected with DGND, the 17 feet are connected with 3 feet of the J2, the capacitor C1 is connected with 2 feet and 4 feet of the transceiver chip U2, the capacitor C2 is connected with 5 feet and 6 feet of the transceiver chip U2, the capacitor C3 is connected with 7 feet and 18 feet of the transceiver chip U2, the capacitor C4 is connected with 3 feet and 18 feet of the U2, and the 5 feet of the J2 are connected with DGND.
The data format conversion method provided by the embodiment of the invention comprises the following steps: the external interrupt, the universal asynchronous receiving and transmitting serial port interrupt and the timer interrupt of the singlechip are adopted to realize the time interval setting of data acquisition, data transmission and data transmission; initializing the interrupt priority of the set timer to be highest; the timer is used for controlling the universal asynchronous receiving and transmitting serial port interruption and the external interruption so as to avoid conflict, the function of each interruption is correctly realized, and the current acquired data is discarded if an overflow mark of the timer is encountered in the external interruption program. Under the condition of ensuring that conflict can not occur among all the interrupts, the method smoothly completes the format conversion of the data to be converted through the whole process of data acquisition, data conversion and data transmission, and ensures the accuracy of target data obtained through the format conversion. Moreover, the method can also avoid the problems of huge workload and other working pressure and labor cost caused by the manual development of interface butt joint of different systems.
On the basis of the foregoing embodiment, the data format conversion method provided in the embodiment of the present invention, based on the external interrupt, collects data to be converted, includes:
And initializing 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 interrupt and the initialization state of the external interrupt is allowed interrupt, and setting the baud rate of the universal asynchronous receiving and transmitting serial port of the singlechip based on a second timer.
And setting the priority of the universal asynchronous receiving and transmitting 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 transmitting serial port interrupt in sequence from high to low.
Specifically, in the embodiment of the present invention, before the timer 0 of the singlechip is executed, that is, before the step of the data format conversion method starts, an initialization configuration is required, where the initialization configuration may include performing an initialization configuration on the serial UART0 interrupt, the timer 0 interrupt, and the external interrupt 0, determining that the initialization state of the serial UART0 interrupt is prohibited, the initialization state of the timer 0 interrupt is allowed, and the initialization state of the external interrupt 0 is allowed. Meanwhile, the baud rate of the serial port UART0 of the singlechip can be set according to a second timer, which can be timer 2, and the baud rate can be set to 9600.
Further, the priority of the UART serial interrupt, the first timer interrupt, and the external interrupt may be set to be the first timer interrupt, the external interrupt, and the UART serial interrupt in order from high to low.
After the configuration is initialized, 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, based on the external interrupt, collecting the data to be converted includes:
if the specified byte is detected in the service program of the external interrupt, starting to receive the first byte in the data to be converted by utilizing the external interrupt;
if the overflow flag 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 the array for storing the received data to 0.
Specifically, in the 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 a specific byte and four data bytes, where the specific byte may be represented as 0XCC, and the specific byte is located before the first digital byte and is used as a header of the data to be converted.
On the basis, when the external interrupt is utilized to collect 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 subsequent data is necessarily the data to be converted, so that the first byte of the data to be converted is started to be received by utilizing the external interrupt 0 until 5 bytes are received, and the receiving of one data to be converted is completed.
If an 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 provided, so that the time when the data to be converted starts to be received and the time when the acquisition of all bytes in 1 data to be converted is completed can be rapidly 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, including:
Setting a subscript of an array for storing received data to 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 interrupt, and sending a notification to a main program of the singlechip 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 index 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 index of 0 in the array. Further, when the subsequent bytes continue to be received, the received subsequent bytes are sequentially stored in the array.
And after the external interrupt 0 receives the last data byte in the data to be converted, prohibiting the external interrupt 0, and sending a notification to the main program of the singlechip so that the main program of the singlechip acquires the data to be converted based on the received notification.
If an 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 embodiment, the flow of format conversion performed by the main program of the singlechip in the data format conversion method provided by the embodiment of the invention is shown in fig. 3.
In fig. 3, the main program first performs an initialization operation including: external interrupt 0 allows interrupts (i.e., EX0 = 1) and is set to a falling edge trigger; the timer 0 interrupt is set to be a set duration of 20ms, and 5 times of timer 0 interrupts reach a recording duration of 100ms, so that the refresh rate of output target data is 10Hz, the priority of the timer 0 interrupt is highest, the timer 0 interrupt is allowed (i.e. ET 0=1), and counting is started (i.e. tr0=1); serial UART0 interrupt disable (i.e., es0=0), timer 2 sets the baud rate of serial UART0 to 9600.
After the initialization operation is finished, judging whether to receive the data to be converted in the BCD code format of 5 bytes which are continuously collected from the P1 port of the singlechip and start with the first byte 0xCC, 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 continuously collect 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 program for the first timer interrupt is shown in fig. 4.
Taking the first timer as timer 0 as an example, the interrupt entry from timer 0 enters the service routine for timer 0 interrupt. And judging whether the counting time length reaches 100ms or not, namely, firstly using the first timer interrupt to count until the counting time length reaches 100ms when 5 times of interrupt are realized, and transmitting 10 target data to a target system in 1 second. When the counting time length reaches 100ms, the external interrupt INTO is forbidden to continuously receive the data to be converted in the service program of the first timer interrupt, then the serial port UART 0 interrupt is enabled, and the main program of the singlechip is returned. And when the counting time length does not reach 100ms, directly returning to the main program of the singlechip.
On the basis of the above embodiment, the flow of the external interrupt service routine in the data format conversion method provided in the embodiment of the present invention is shown in fig. 5.
Taking external interrupt 0 as an example, the external interrupt 0 is utilized to receive the data to be converted sent by the comprehensive measurement system. When the singlechip detects that the 10 pins of J1 are pulse falling edges, the external interrupt 0 enters the service program of the external interrupt 0 from the external interrupt 0 inlet. Firstly judging whether an overflow flag of the timer 0 is detected, namely TF0 = 1, if the overflow flag of the timer 0 is detected, discarding the received incomplete data, and setting the subscript of an array for storing the received data to 0; then, whether a specified byte (namely 0 XCC) is received or not is detected, if the specified byte is detected, the index of an array for receiving data (the array is used for storing data of 5 bytes) is set to 0, the first byte starts to be received and stored to the element position with the index of 0 in the array, and the subsequent bytes continue to be received and stored in the array in sequence.
If the overflow flag of timer 0 is not detected, it is directly detected whether a specified byte is received. If the specified byte is not received, then the 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 interrupt 0, and informing the main program to take the data in the array. If not, i.e. if the last byte is not received, it is returned directly to the main program.
On the basis of the above embodiment, the flow of the service program of the data format conversion method, universal asynchronous receiving and transmitting serial port interrupt, provided in the embodiment of the present invention is shown in fig. 6.
In the embodiment of the present invention, taking the UART0 as an example, the UART0 is used as the serial port for receiving and transmitting serial signals, and the serial port UART0 is interrupted to enter the service program of the UART 0. And (3) using the serial port UART0 to interrupt the character string converted by the main program of the singlechip according to the baud rate set by the timer 2 and using the character as a unit, namely sending one character for each interrupt in sequence by the character string converted by the main program. Then judging whether a character string is sent, if so, prohibiting the serial UART0 from interrupting, allowing the external interrupt 0 to interrupt, and returning to the main program. If one character string is not transmitted, the next character is continuously transmitted.
In summary, in the data format conversion method provided in the embodiment of the present invention, when the count duration of the interrupt service of the timer 0 is 100ms, the external interrupt 0 is prohibited in the service program of the interrupt of the timer 0, i.e. the data to be converted is not collected, and the serial UART0 is allowed to be interrupted. At this time, in the service program for serial UART0 interrupt, the character string converted by the main program is sent at the baud rate set by the timer 2, and after the character string is sent, the serial UART0 interrupt is prohibited, i.e. the character string is not sent, and the external interrupt 0 is allowed, i.e. the data to be converted is continuously collected in the service program for serial UART0 interrupt. In the service program of the external interrupt 0, firstly judging whether an interrupt overflow flag of the timer 0 is detected, if the overflow flag of the timer 0 is detected (namely, TF 0=1), discarding the received incomplete data, and setting the subscript of an array for storing the received data to 0; then, whether a specified byte is received or not is detected, if the specified byte is detected, the index of an array for storing received data (particularly, data to be converted for storing 5 bytes) is set to 0, the first byte starts to be received, the first byte is stored to an element position with the index of 0 in the array, and subsequent fields are continuously received and sequentially stored in the array. Then, judging whether the last byte in the data to be converted is received, if yes, prohibiting the external interrupt 0 from interrupting, and informing the main program to take the data in the array. The UART0 interrupt of the serial port is allowed by the interrupt of the timer 0, and the transmission is forbidden after a character string is transmitted; the external interrupt 0 is allowed by the serial port UART0 interrupt, and is forbidden by the timer 0 interrupt, and meanwhile, the overflow mark of the timer 0 is processed in the service program of the external interrupt 0 interrupt, so that the conflict between interrupt services is thoroughly solved, the function of each interrupt is correctly realized, and the format conversion of the data to be converted is completed.
As shown in fig. 7, on the basis of the above embodiment, an embodiment of the present invention provides a data format conversion device, including:
the acquisition module 71 is configured to acquire data to be converted based on an external interrupt if the universal asynchronous receiving and transmitting serial port interrupt of the single chip microcomputer is disabled 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 configured to prohibit the external interrupt in the service program of the first timer interrupt if the set duration of the first timer interrupt of the singlechip reaches a preset number, enable the universal asynchronous receiving and sending serial port interrupt, send the target data to a target system in the service program of the universal asynchronous receiving and sending serial port interrupt, prohibit the universal asynchronous receiving and sending serial port interrupt after the sending action of the target data is completed, and enable the external interrupt.
On the basis of the foregoing embodiment, the data format conversion device provided in the embodiment of the present invention further includes an initialization configuration module, configured to:
initializing configuration is carried out on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is determined to be forbidden, the initialization state of the first timer interrupt is enabled interrupt and the initialization state of the external interrupt is enabled interrupt, and the baud rate of the universal asynchronous receiving and transmitting serial port of the singlechip is set based on a second timer;
And setting the priority of the universal asynchronous receiving and transmitting 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 transmitting serial port interrupt in sequence from high to low.
On the basis of the above embodiment, the data format conversion device provided in the embodiment of the present invention, where the data to be converted includes a preset number of consecutive bytes;
correspondingly, the acquisition module is specifically configured to:
if the specified byte is detected in the service program of the external interrupt, starting to receive the first byte in the data to be converted by utilizing the external interrupt;
if the overflow flag 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 the array for storing the received data to 0.
On the basis of the foregoing embodiments, the data format conversion device provided in the embodiments of the present invention, the acquisition module is further specifically configured to:
setting a subscript of an array for storing received data to 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 interrupt, and sending a notification to a main program of the singlechip so that the main program acquires the data to be converted based on the notification.
On the basis of the foregoing embodiment, the data format conversion device provided in the embodiment of the present invention has the set duration of 20ms, and the up to preset number of 5.
On the basis of the foregoing embodiments, the data format conversion device provided in the embodiments of the present invention is configured such that the format of the data to be converted is BCD code, and the format of the target data is a character string.
On the basis of the above embodiments, the data format conversion device provided in the embodiments of the present invention, where the data to be converted includes a value of a barometric altitude parameter and a value of a radio altitude.
Specifically, the functions of each module in the data format conversion device provided in the embodiment of the present invention are in one-to-one correspondence with the operation flows of each step in the above method embodiment, and the achieved effects are consistent.
Fig. 8 illustrates a physical structure diagram of an electronic device, as shown in fig. 8, which may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform the data format conversion method provided in the embodiments described above, the method comprising: if the universal asynchronous receiving and transmitting serial port interruption of the singlechip is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption; performing format conversion on the data to be converted to obtain target data; if the set duration of the first timer interrupt of the singlechip reaches the preset number, prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and transmitting serial port interrupt, transmitting the target data to a target system in the service program of the universal asynchronous receiving and transmitting serial port interrupt, prohibiting the universal asynchronous receiving and transmitting serial port interrupt after the transmission action of the target data is completed, and enabling the external interrupt.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of performing the data format conversion method provided in the above embodiments, the method comprising: if the universal asynchronous receiving and transmitting serial port interruption of the singlechip is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption; performing format conversion on the data to be converted to obtain target data; if the set duration of the first timer interrupt of the singlechip reaches the preset number, prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and transmitting serial port interrupt, transmitting the target data to a target system in the service program of the universal asynchronous receiving and transmitting serial port interrupt, prohibiting the universal asynchronous receiving and transmitting serial port interrupt after the transmission action of the target data is completed, and enabling the external interrupt.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the data format conversion method provided in the above embodiments, the method comprising: if the universal asynchronous receiving and transmitting serial port interruption of the singlechip is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption; performing format conversion on the data to be converted to obtain target data; if the set duration of the first timer interrupt of the singlechip reaches the preset number, prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and transmitting serial port interrupt, transmitting the target data to a target system in the service program of the universal asynchronous receiving and transmitting serial port interrupt, prohibiting the universal asynchronous receiving and transmitting serial port interrupt after the transmission action of the target data is completed, and enabling the external interrupt.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 are 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 the specific principles of the invention and its practical application to thereby enable one skilled in the art to make and utilize the invention in various exemplary embodiments and with various 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 (6)

1. A method of data format conversion, comprising:
if the universal asynchronous receiving and transmitting serial port interruption of the singlechip is forbidden and the external interruption is enabled, acquiring data to be converted based on the external interruption;
performing format conversion on the data to be converted through unconditional circulation of a main program of the singlechip to obtain target data;
if the set duration of the first timer interrupt of the singlechip reaches a preset number, prohibiting the external interrupt in a service program of the first timer interrupt, enabling the universal asynchronous receiving and transmitting serial port interrupt, and transmitting the target data to a target system in the service program of the universal asynchronous receiving and transmitting serial port interrupt, and prohibiting the universal asynchronous receiving and transmitting serial port interrupt after the transmission action of the target data is completed, enabling the external interrupt; the set duration is 20ms, and the preset number is 5;
based on the external interrupt, collecting data to be converted, including:
initializing configuration is carried out on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is determined to be forbidden, the initialization state of the first timer interrupt is enabled interrupt and the initialization state of the external interrupt is enabled interrupt, and the baud rate of the universal asynchronous receiving and transmitting serial port of the singlechip is set based on a second timer;
Setting the priority of the universal asynchronous receiving and transmitting 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 transmitting serial port interrupt in sequence from high to low;
the data to be converted comprises a preset number of continuous bytes;
correspondingly, based on the external interrupt, collecting the data to be converted includes:
if the specified byte is detected in the service program of the external interrupt, starting to receive the first byte in the data to be converted by utilizing the external interrupt;
if the overflow flag 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 the array for storing the received data to 0;
the external interrupt begins to receive a first byte of the data to be converted, including:
setting a subscript of an array for storing received data to 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 interrupt, and sending a notification to a main program of the singlechip so that the main program acquires the data to be converted based on the notification.
2. The data format conversion method according to claim 1, wherein the format of the data to be converted is BCD code and the format of the target data is character string.
3. The data format conversion method according to claim 1, wherein the data to be converted includes a value of a barometric pressure altitude parameter and a value of a radio altitude.
4. 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 through unconditional circulation of a main program of the singlechip to obtain target data;
the sending module is used for prohibiting the external interrupt in a service program of the first timer interrupt, enabling the UART serial port interrupt, sending the target data to a target system in the service program of the UART serial port interrupt, prohibiting the UART serial port interrupt and enabling the external interrupt after the sending action of the target data is completed; the set duration is 20ms, and the preset number is 5;
The system also comprises an initialization configuration module, which is used for:
initializing configuration is carried out on the universal asynchronous receiving and transmitting serial port interrupt, the first timer interrupt and the external interrupt, the initialization state of the universal asynchronous receiving and transmitting serial port interrupt is determined to be forbidden, the initialization state of the first timer interrupt is enabled interrupt and the initialization state of the external interrupt is enabled interrupt, and the baud rate of the universal asynchronous receiving and transmitting serial port of the singlechip is set based on a second timer;
setting the priority of the universal asynchronous receiving and transmitting 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 transmitting serial port interrupt in sequence from high to low;
the data to be converted comprises a preset number of continuous bytes;
correspondingly, the acquisition module is specifically configured to:
if the specified byte is detected in the service program of the external interrupt, starting to receive the first byte in the data to be converted by utilizing the external interrupt;
if the overflow flag 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 the array for storing the received data to 0;
The acquisition module is further specifically configured to:
setting a subscript of an array for storing received data to 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 interrupt, and sending a notification to a main program of the singlechip so that the main program acquires the data to be converted based on the notification.
5. 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 of claims 1-3 when the program is executed by the processor.
6. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the data format conversion method according to any one of claims 1-3.
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 CN115292398A (en) 2022-11-04
CN115292398B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304335A (en) * 2018-02-07 2018-07-20 南京南瑞继保电气有限公司 A method of the indefinite long message of serial ports is received by DMA

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3905703B2 (en) * 2000-11-29 2007-04-18 株式会社ルネサステクノロジ Data processor and data processing system
CN102298095B (en) * 2011-06-27 2014-04-16 中国国土资源航空物探遥感中心 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
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304335A (en) * 2018-02-07 2018-07-20 南京南瑞继保电气有限公司 A method of the indefinite long message of serial ports is received by DMA

Also Published As

Publication number Publication date
CN115292398A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN115292398B (en) Data format conversion method and device, electronic equipment and storage medium
CN109921915B (en) Method and device for testing wake-up function of real-time clock module and electronic equipment
CN106548213B (en) Blood vessel recognition methods and device
CN110910629B (en) Infrared remote control signal decoding method and system based on single chip microcomputer and metering device
CN110309065B (en) Concurrent execution method, device and equipment of test tasks and storage medium
CN109389120A (en) A kind of object detecting device based on zynqMP
CN112383439B (en) Intelligent gas meter air upgrading system and upgrading method
CN101533083A (en) System for parallel capture of GPS signals and method
CN104655179A (en) Stress-strain test method, device and system
CN108595312A (en) A kind of automatic performance method and device of modelling customer behavior
CN105515866A (en) FC-AE-ASM protocol communication based event and time monitoring method
CN110212937B (en) Low-power-consumption module based on single Beidou module and multi-card data transmission mode
CN105653207B (en) A kind of real time parsing method and system of flash interface information
CN101197729B (en) Universal message test approach and device based on device status judgment
CN204856469U (en) General signal acquisition driver
CN109977062A (en) A kind of method, apparatus and electronic equipment of software realization Serial data receiving
CN108880835A (en) Data analysing method and device, computer storage medium
CN205722376U (en) Human body lower limbs exercise recovery situation test system
CN107562594B (en) Method and system for testing operating system of mobile terminal
CN106716381B (en) Data analysing method, system and equipment
CN115599722B (en) Method and device for realizing accurate transmission of serial port data based on kernel of operating system
CN111162963A (en) Method and system for testing performance of network communication equipment based on binary iteration method
CN117459502A (en) General efficient IP proxy pool construction system and method
CN117834750B (en) Device, method, system, equipment, medium and server for acquiring protocol data
CN113407577B (en) Query method and device for kafka data and computer readable storage medium

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