CN113609057A - Portable CSDB bus coding and decoding device and method - Google Patents

Portable CSDB bus coding and decoding device and method Download PDF

Info

Publication number
CN113609057A
CN113609057A CN202110720805.3A CN202110720805A CN113609057A CN 113609057 A CN113609057 A CN 113609057A CN 202110720805 A CN202110720805 A CN 202110720805A CN 113609057 A CN113609057 A CN 113609057A
Authority
CN
China
Prior art keywords
module
data
instruction
csdb
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110720805.3A
Other languages
Chinese (zh)
Inventor
秦海兵
严小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Star Electronic Technology Co ltd
Original Assignee
Shaanxi Star Electronic Technology Co ltd
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 Shaanxi Star Electronic Technology Co ltd filed Critical Shaanxi Star Electronic Technology Co ltd
Priority to CN202110720805.3A priority Critical patent/CN113609057A/en
Publication of CN113609057A publication Critical patent/CN113609057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a portable CSDB bus coding and decoding device and a method, which comprises a USB-to-RS-422 module connected with a CSDB bus, a text instruction interaction module and a form data processing module, wherein the output ends of the text instruction interaction module and the form data processing module are connected with the instruction processing module, and the output end of the instruction processing module is connected with an analysis module; the output end of the analysis module is connected with a dynamic interface, and the analysis module is also connected with a network sharing module for sharing resources in the local area network, a driving module and a hardware state monitoring module for monitoring and optimizing hardware; the invention can complete the analysis and simulation of CSDB bus data only by the USB-to-RS-422 module and the portable processing module, and the method is simple and universal.

Description

Portable CSDB bus coding and decoding device and method
Technical Field
The invention relates to the technical field of aviation maintenance, in particular to a portable CSDB bus coding and decoding device and method.
Background
The Commercial Standard Digital Bus (CSDB) is a serial bus standard for interconnection between avionics devices, the transmission rate is two types, namely low-speed (12.5Kbps) and high-speed (50Kbps), and the physical layer electrical standard is compatible with the RS-422 bus. The CSDB bus asynchronous serial transmission is configured such that a Byte (Byte) is formed from bits (Bite), a Message block (Message Box) is formed from bytes, and a Frame (Frame) is formed from the Message block. CSDB bus structure as shown in fig. 1, each byte contains 1 start bit, 8 data bits, 1 odd parity bit and 1 stop bit, each message block contains an address word, a status word and 4 or 6 data words (each byte in the sync message block is a5 in 16), and the message between two sync blocks is a frame.
When the avionic device is detected and maintained, CSDB bus data needs to be coded and decoded. Although some CSDB bus coding and decoding devices are available in the market at present, the CSDB bus coding and decoding devices are expensive, large in size and inconvenient to use, and therefore portable CSDB bus coding and decoding devices are needed.
Disclosure of Invention
The invention aims to solve the problems and provides a portable CSDB bus coding and decoding device which realizes the CSDB bus coding and decoding functions and meets the requirements of CSDB bus test and simulation of avionic equipment.
In order to achieve the purpose, the invention adopts the following technical scheme:
a portable CSDB bus coding and decoding device comprises a USB-to-RS-422 module connected with a CSDB bus, a text instruction interaction module and a form data processing module, wherein the output ends of the text instruction interaction module and the form data processing module are connected with the instruction processing module, and the output end of the instruction processing module is connected with an analysis module; the output end of the analysis module is connected with a dynamic interface, and the analysis module is also connected with a network sharing module for sharing resources in the local area network, a driving module and a hardware state monitoring module for monitoring and optimizing hardware; the network sharing module, the driving module and the hardware state monitoring module are also connected with a USB-to-RS-422 module through USB interfaces, and the driving module is connected with a CSDB bus.
In the portable CSDB bus coding and decoding device, the instruction processing module comprises an instruction calling module and an instruction analyzing module; the analysis module comprises a preprocessing information module for processing original information, an interface configuration information module for processing engineering values and a timing callback module; the table data processing module comprises a table data reading module, a table data analyzing module and a configuration file generating module; the driving module comprises a DA card driving module, a DIO card driving module, a 429 card driving module, a synchronous signal card driving module, a serial port card driving module, a DMM driving module and a DMM driving module.
A portable CSDB bus coding and decoding method comprises data analysis and simulation, wherein the data analysis comprises the following steps: the text instruction interaction module inputs an instruction and delivers the instruction to the instruction processing module for processing, and the instruction processing module inputs the processed instruction to the analysis module; the USB-to-RS-422 module receives CSDB bus data and transmits the CSDB bus data to the analysis module through the driving module; the analysis module generates a dynamic interface and completes data analysis; the data analysis method comprises the following steps: firstly, automatically judging the type of a data frame according to the length and the initial position of the data frame, extracting fields after the data frame is fixed, analyzing according to signed integers, unsigned integers, discrete quantities and the like, and finally correcting according to a proportional coefficient and the like; the division of the data frame is carried out by a multimedia timer, whether data exists or not is checked once every 1ms, and no data is considered as a data frame gap;
the simulation of the data includes: the table data processing module delivers the data to be executed to the instruction processing module for processing; the instruction processing module inputs the processed instruction to the analysis module; the analysis module sends data to be simulated to the USB-to-RS-422 module through the drive module to be converted into CSDB bus data to complete data simulation.
In the above-mentioned portable CSDB bus codec device,
the beneficial effects produced by adopting the invention are as follows:
the invention can finish the analysis and simulation of CSDB bus data only by the USB-to-RS-422 module and the portable processing module, and is simple and convenient.
And (II) the data frame segmentation is finished by a multimedia timer, whether data exists or not is checked once every 1ms, and no data is considered as a data frame gap, so that the data frame is segmented.
And (III) analyzing the data, namely automatically judging the type of the data frame according to the length of the data frame and the initial position, extracting fields after the data is fixed, analyzing the fields according to signed integers, unsigned integers, discrete quantities and the like, correcting the fields according to a proportional coefficient and the like.
Drawings
FIG. 1 is a schematic diagram of a conventional CSDB bus structure.
FIG. 2 is a schematic view of the structural principle of the present invention
In the figure: 101-text instruction interaction module; 102-table data processing module; 201-instruction processing module; 601-an analysis module; 301 — dynamic interface; 401 — network sharing module; 402-a drive module; 403 — hardware status monitoring module; 501-USB to RS-422 module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 2, the present invention relates to a portable CSDB bus encoding and decoding apparatus, which comprises a USB to RS-422 module 501 connected to a CSDB bus, a text instruction interaction module 101 and a table data processing module 102, wherein the output ends of the text instruction interaction module 101 and the table data processing module 102 are connected to an instruction processing module 201, and the output end of the instruction processing module 201 is connected to an analysis module 601; the output end of the analysis module 601 is connected with a dynamic interface 301, and the analysis module 601 is further connected with a network sharing module 401 for resource sharing in the local area network, a driving module 402 and a hardware state monitoring module 403 for monitoring and optimizing hardware; the network sharing module 401, the driving module and the hardware state monitoring module 403 are further connected with a USB-to-RS-422 module 501 through a USB interface, and the driving module is connected with a CSDB bus;
the text instruction interaction module 101 inputs an instruction and sends the instruction to the instruction processing module 201 for processing, and the instruction processing module 201 inputs the processed instruction to the analysis module 601; the USB-to-RS-422 module 501 receives CSDB bus data and transmits the CSDB bus data to the analysis module 601 through the driving module 402, and the analysis module 601 generates the dynamic interface 301 and completes data analysis;
the table data processing module 102 delivers the data to be executed to the instruction processing module 201 for processing; the instruction processing module 201 inputs the processed instruction to the analysis module 601; the analysis module 601 sends the data to be simulated to the USB to RS-422 module 501 through the driver module to convert the data into CSDB bus data to complete data simulation.
The instruction processing module 201 comprises an instruction calling module and an instruction analyzing module; the analysis module 601 comprises a preprocessing information module for processing original information, an interface configuration information module for processing engineering values and a timing callback module; the table data processing module 102 comprises a table data reading module, a table data analyzing module and a configuration file generating module; the driving module comprises a DA card driving module, a DIO card driving module, a 429 card driving module, a synchronous signal card driving module, a serial port card driving module, a DMM driving module and a DMM driving module.
The invention also provides a portable CSDB bus coding and decoding method, which comprises the steps of data analysis and simulation, wherein the data analysis comprises the following steps: the text instruction interaction module 101 inputs an instruction and sends the instruction to the instruction processing module 201 for processing, and the instruction processing module 201 inputs the processed instruction to the analysis module 601; the USB-to-RS-422 module 501 receives CSDB bus data and transmits the CSDB bus data to the analysis module 601 through the driving module 402; the analysis module 601 generates the dynamic interface 301 and completes data analysis; the data analysis method comprises the following steps: firstly, automatically judging the type of a data frame according to the length and the initial position of the data frame, extracting fields after the data frame is fixed, analyzing according to signed integers, unsigned integers, discrete quantities and the like, and finally correcting according to a proportional coefficient and the like; the division of the data frame is carried out by a multimedia timer, whether data exists or not is checked once every 1ms, and no data is considered as a data frame gap;
the simulation of the data includes: the table data processing module 102 delivers the data to be executed to the instruction processing module 201 for processing; the instruction processing module 201 inputs the processed instruction to the analysis module 601; the analysis module 601 sends the data to be simulated to the USB to RS-422 module 501 through the driver module to convert the data into CSDB bus data to complete data simulation.
The modules adopted by the invention are mature goods shelves, the cost is low, the most common notebook computer is adopted, and the USB-RS-422 conversion module only needs dozens of yuan to dozens of yuan.
API (Application Programming Interface) functions are some predefined functions. The operating system is a large service center besides coordinating the execution of the application program, memory allocation and system resource management, and calls various services (each service is a function) of the service center to help the application program achieve the purposes of opening a window, drawing a graph and using peripheral equipment. The special baud rate communication of the USB serial port refers to any baud rate with a nonstandard numerical value. Since these baud rates are non-standard, there are special requirements and methods from hardware to software to implement. The method adopts a serial port API function of a Windows bottom layer, and can set a low speed (12.5Kbps) and a high speed (50Kbps) with special baud rates.
In a real-time control system using Windows as a platform, a certain action is often required to be completed in a timed or periodic manner, the precision of sampling time is the key for the normal operation of the system, and for the control system using Dos as the platform, the accurate sampling time can be obtained by directly operating hardware. By adopting the multimedia timer technology, the time can be accurately controlled, the error does not exceed 1ms, and the accumulation is avoided, thereby meeting the requirement of simulation test.
The CSDB bus protocol is deeply understood, and common serial port data are utilized to decompose or construct CSDB bus data frames and message blocks, so that the CSDB bus data is analyzed or simulated.
Doing one thing is to do what and how to do two steps. Under the condition of lacking of data, layered design is carried out, designers are mainly responsible for doing what, and repair detection personnel are responsible for doing what, so that communication among the designers is very important, so that the well-known Excel files are used as bridges, the designers work out some Excel templates, description of a test interface comprises signal types (such as DA corresponding text boxes and SW corresponding switches), parameter positions (pages, lines and columns), parameter names, parameter descriptions (for switching values, interfaces for automatically generating switches) and parameter default values, meanwhile, the parameters are not required to be confirmed at a time and can be left empty, remarks can be made, colors can be used for distinguishing, and the operation and the detection personnel can record and supplement all information in the files, so that the information sources are single and convenient.
And (3) according to the Excel VBA production configuration file, the VBA only reads effective information, the remark information is ignored, and a normalized plain text file is produced, so that the software processing is facilitated.
The traditional software interface is fixed and can only dynamically configure parameters generally, the human-computer interaction interface is dynamically generated according to configuration files in scientific research and is based on LabWindows design, virtual instrument controls such as buttons and the like can be realized more vividly, and the interface can also be automatically zoomed.
Because the requirement of the signal source on the real-time property is not high, the operation on the hardware is normalized into an interface in an instruction form, so that the machine identification and the manual identification are convenient, the calling through a dll function is convenient, and the network data processing is convenient
When the text interaction is debugged, sometimes only simple modification is needed, and the instruction is directly input in the command prompt.
The hardware state monitoring module monitors and optimizes hardware (particularly relays in switch cards), for example, the service life of some relays is 10 ten thousand times, after the service life reaches 10 ten thousand times, even if the relays are not damaged, the relays can be considered to be unreliable, and the frequency of measurement needs to be changed or increased
The network sharing service module is convenient for resource sharing in the local area network, and is particularly suitable for testing that some exclusive resources, such as 429 cards, can be shared and used based on a plurality of programs when the resources are distributed in a plurality of computers.
At present, most serial port programming is based on a control or a third-party library, but a special baud rate is difficult to set.
The data frame segmentation is completed through a multimedia timer, whether data exists or not is checked once every 1ms, and no data is considered as a data frame gap, so that the data frame is segmented according to the data frame gap.
The method is also suitable for analyzing ARINC 429 bus data fields and MIL-1553B bus data fields.
The foregoing is a more detailed description of the invention that is presented in connection with specific embodiments, which are not intended to limit the invention to the particular embodiments described herein. For a person skilled in the art to which the invention pertains, several equivalent alternatives or obvious modifications, all of which have the same properties or uses, without departing from the inventive concept, should be considered as falling within the scope of the patent protection of the invention, as determined by the claims filed.

Claims (3)

1. A portable CSDB bus coding and decoding device comprises a USB-to-RS-422 module (501) connected with a CSDB bus, and is characterized by comprising a text instruction interaction module (101) and a form data processing module (102), wherein the output ends of the text instruction interaction module (101) and the form data processing module (102) are connected with an instruction processing module (201), and the output end of the instruction processing module (201) is connected with an analysis module (601); the output end of the analysis module (601) is connected with a dynamic interface (301), and the analysis module (601) is also connected with a network sharing module (401) for sharing resources in the local area network, a driving module (402) and a hardware state monitoring module (403) for monitoring and optimizing hardware; the network sharing module (401), the driving module and the hardware state monitoring module (403) are further connected with a USB-to-RS-422 module (501) through a USB interface, and the driving module is connected with a CSDB bus.
2. The portable CSDB bus codec device of claim 1, wherein the instruction processing module (201) comprises an instruction calling module and an instruction analyzing module; the analysis module (601) comprises a preprocessing information module for processing original information, an interface configuration information module for processing engineering values and a timing callback module; the table data processing module (102) comprises a table data reading module, a table data analysis module and a configuration file generation module; the driving module comprises a DA card driving module, a DIO card driving module, a 429 card driving module, a synchronous signal card driving module, a serial port card driving module, a DMM driving module and a DMM driving module.
3. A portable CSDB bus codec method using the portable CSDB bus codec device of any one of claims 1 or 2, the method comprising parsing and simulating data, wherein parsing the data comprises: the text instruction interaction module (101) inputs an instruction and sends the instruction to the instruction processing module (201) for processing, and the instruction processing module (201) inputs the processed instruction to the analysis module (601); the USB-to-RS-422 module (501) receives CSDB bus data and transmits the CSDB bus data to the analysis module (601) through the driving module (402); the analysis module (601) generates a dynamic interface (301) and completes data analysis; the data analysis method comprises the following steps: firstly, automatically judging the type of a data frame according to the length and the initial position of the data frame, extracting fields after the data frame is fixed, analyzing according to signed integers, unsigned integers, discrete quantities and the like, and finally correcting according to a proportional coefficient and the like; the division of the data frame is carried out by a multimedia timer, whether data exists or not is checked once every 1ms, and no data is considered as a data frame gap;
the simulation of the data includes: the table data processing module (102) delivers the data to be executed to the instruction processing module (201) for processing; the instruction processing module (201) inputs the processed instruction to the analysis module (601);
the analysis module (601) sends data to be simulated to the USB-to-RS-422 module (501) through the drive module, and the data is converted into CSDB bus data to complete data simulation.
CN202110720805.3A 2021-06-28 2021-06-28 Portable CSDB bus coding and decoding device and method Pending CN113609057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110720805.3A CN113609057A (en) 2021-06-28 2021-06-28 Portable CSDB bus coding and decoding device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110720805.3A CN113609057A (en) 2021-06-28 2021-06-28 Portable CSDB bus coding and decoding device and method

Publications (1)

Publication Number Publication Date
CN113609057A true CN113609057A (en) 2021-11-05

Family

ID=78336844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110720805.3A Pending CN113609057A (en) 2021-06-28 2021-06-28 Portable CSDB bus coding and decoding device and method

Country Status (1)

Country Link
CN (1) CN113609057A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202285098U (en) * 2011-10-19 2012-06-27 成都金本华科技有限公司 Advanced RISC machine (ARM)-technology-based visual aeronautical multi-bus monitoring tester
CN202364238U (en) * 2011-12-14 2012-08-01 陕西千山航空电子有限责任公司 CSDB (commercial standard digital bus) decoding circuit
CN103645947A (en) * 2013-11-25 2014-03-19 北京航空航天大学 MIL-STD-1553B bus monitoring and data analysis system
CN109696899A (en) * 2017-10-20 2019-04-30 中国商用飞机有限责任公司 A kind of dedicated quality synthesis evaluation system of aircraft ARINC429 bus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202285098U (en) * 2011-10-19 2012-06-27 成都金本华科技有限公司 Advanced RISC machine (ARM)-technology-based visual aeronautical multi-bus monitoring tester
CN202364238U (en) * 2011-12-14 2012-08-01 陕西千山航空电子有限责任公司 CSDB (commercial standard digital bus) decoding circuit
CN103645947A (en) * 2013-11-25 2014-03-19 北京航空航天大学 MIL-STD-1553B bus monitoring and data analysis system
CN109696899A (en) * 2017-10-20 2019-04-30 中国商用飞机有限责任公司 A kind of dedicated quality synthesis evaluation system of aircraft ARINC429 bus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜震 等: "CSDB协议及其总线信号的测试", 《航空计测技术》 *

Similar Documents

Publication Publication Date Title
CN113079072B (en) Vehicle data acquisition method and system, computer equipment and storage medium
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN114138861A (en) Multi-source heterogeneous data processing method, device and system
CN114036183A (en) Data ETL processing method, device, equipment and medium
CN109788251B (en) Video processing method, device and storage medium
CN113010473B (en) Method and equipment for editing YAML file
CN113609057A (en) Portable CSDB bus coding and decoding device and method
CN108259958B (en) Remote control key response method, device, equipment and storage medium
CN105677505A (en) Serial port-based IPMI management method
CN214253055U (en) Docking station
CN111736572B (en) Numerical control system complete machine hardware testing platform based on Codesys software development system
CN114003022A (en) Equipment monitoring platform based on data flow
CN112134564A (en) Multichannel cascade AD acquisition system and acquisition method
CN108614805A (en) Method and system, server and the medium of colored expression are shown using QML
CN220419845U (en) Fault alarm system for laminating machine and solar photovoltaic module production line
CN214429556U (en) Screen sharing equipment based on domestic CPU
CN113259233B (en) DDS-based automation gateway of heterogeneous communication protocol
CN203745873U (en) Digital input controller used for Internet of things
CN209086926U (en) A kind of effect controller protocol translation equipment
CN210629520U (en) Network message recording and analyzing device
CN212587218U (en) Intelligent voice control device and intelligent voice control system
CN108092809B (en) Intelligent substation network switch modeling method and equipment asset model mapping method
WO2024044976A1 (en) Data acquisition apparatus, method and system, electronic device, and storage medium
CN113886739A (en) Information visualization method, system and device based on dynamic configuration of content
CN101615167A (en) The transmission method of serial ports of computers transmission data on the SMBUS bus

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211105

RJ01 Rejection of invention patent application after publication