A bus control system and method

By working together with the controller unit and the main control unit, PXI/PXIe boards are converted into LXI devices, solving the problems of poor testing flexibility and cumbersome development process of PXI/PXIe bus instruments, and realizing low-cost and efficient bus control.

CN115794689BActive Publication Date: 2025-11-21BEIJING AEROSPACE MEASUREMENT & CONTROL TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211589024.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2025-11-21
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

Existing technologies cannot quickly switch between and manage multiple different PXI/PXIe boards, resulting in poor flexibility in PXI/PXIe bus instrument testing, cumbersome development processes, and high costs.

Method used

A bus control system is provided, which uses a controller unit and a main control unit to generate corresponding LXI devices from PXI/PXIe boards using target service software, thereby enabling rapid switching and management, simplifying the development process, and reducing costs.

Benefits of technology

It enables control of all PXI/PXIe boards through a single network cable, simplifying the development process, reducing costs, and transferring the control work of the main control computer to the LXI bus device, thereby improving the system's flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794689B_ABST
    Figure CN115794689B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to a kind of bus control system and method, comprising: controller unit, for running target service software, by target service software, each described PXI\PXIe board card generates corresponding LXI equipment;Receive the target command sent by main control unit;Determine the target LXI equipment corresponding to target command, and control target LXI equipment by target command;PXI\PXIe board card, connect with controller unit, for receiving and responding target command;Main control unit, connect with controller unit by target network cable, for generating target command.Thereby, it can be realized by a network cable to control all PXI\PXIe board card in whole system, and each board card is virtually different LXI equipment, replace the board card in instrument case can be combined into different test system.And the part of main control computer control work is placed in LXI bus equipment.Simplify the development process of using PXI\PXIe board card to develop LXI bus instrument, reduce cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of testing equipment technology, and in particular to a bus control system and method. Background Technology

[0002] In the field of testing equipment technology, instruments and equipment based on PXI / PXIe buses are widely used. Most PXI / PXIe bus devices are used as virtual instruments. PXI / PXIe bus cards need to be inserted into a dedicated chassis and connected to the PCI / PCIe bus of the host computer through adapter cards and cables. The chassis must be started before the host computer starts. All logic control needs to be completed in the host computer. It has the characteristics of miniaturization, modularity, serialization and universality, which makes it easy for users to use.

[0003] The LXI bus combines the advantages of traditional instrument buses with computer local area networks (LANs), expanding the commands and protocols used by bus instruments. Based on IEEE 802.3, the LXI bus offers advantages such as high transmission speed, high flexibility, and the ability to build distributed systems. It can be readily connected to a LAN. In a distributed measurement and testing system built on LXI, each LXI instrument is an independent network device, acting like a server. Any computer on the Ethernet network can access the LXI instrument like a website, and can even control it directly via a web page. The LXI bus effectively enables edge computing, allowing hardware and data usage logic to be packaged into the LXI instrument, which can then be controlled via SCPI commands to complete data acquisition and processing. The LXI bus transmission speed is network-dependent; with advancements in network technology, the transmission speed can continuously increase, reaching 10 Gigabit speeds using fiber optic cables.

[0004] The LXI bus can be implemented using the VXI-11 protocol. The VXI-11 protocol addresses the communication between the control computer and instruments over a TCP / IP network. It utilizes ONC / RPC remote procedure calls and defines three channels: a core channel, an exception channel, and an interrupt channel. It also defines 17 network instrument protocol-related functions, including connection management and data read / write capabilities. The computer obtains the instrument's IP address, name, and other identifying information by sending commands, and establishes a communication connection between the control computer and the instrument.

[0005] However, existing technologies cannot quickly switch and manage multiple different PXI / PXIe boards, and the existing development process for developing LXI bus instruments using PXI / PXIe boards is relatively cumbersome. Therefore, testing with PXI / PXIe bus instruments is prone to problems such as poor flexibility and high cost of building a test system. Summary of the Invention

[0006] In view of this, in order to solve the above-mentioned technical problems or some of the technical problems, embodiments of the present invention provide a bus control system and method.

[0007] In a first aspect, embodiments of the present invention provide a bus control system, including: a controller unit, multiple PXI / PXIe boards, and a main control unit;

[0008] The controller unit is used to run the target service software, and generate a corresponding LXI device for each PXI / PXIe board through the target service software;

[0009] Receive the target command sent by the main control unit;

[0010] Identify the target LXI device corresponding to the target command, and control the target LXI device through the target command;

[0011] The PXI / PXIe board is connected to the controller unit and is used to receive and respond to the target command;

[0012] The main control unit is connected to the controller unit via a target network cable and is used to generate the target command.

[0013] In one possible implementation, the controller unit includes: a command list file, a service program, a board driver library, and a service function library;

[0014] The command list file is used to store SCPI commands based on the LXI bus protocol, as well as the number corresponding to each PXI / PXIe board.

[0015] The service program is used to implement the LXI bus function based on the VXI-11 protocol. The LXI bus function includes: binding the PXI / PXIe board, parsing SCPI commands, and executing the target command.

[0016] The board driver library and the business function library are used to provide operation interface functions for the service program.

[0017] In one possible implementation, the service program is also used to extract command parameters from the command list file;

[0018] Generate a corresponding command tree based on the command parameters;

[0019] When the target command is received, the function corresponding to the target command is invoked through the command tree;

[0020] The target LXI device is controlled based on the function and the target command.

[0021] In one possible implementation, the service program is further configured to determine the board control handle corresponding to each PXI\PXIe board from the board driver library;

[0022] Construct a data structure corresponding to the PXI / PXIe board, the data structure being used to store the board control handle and the preset number of the PXI / PXIe board.

[0023] In one possible implementation, the service program is further configured to:

[0024] Registered users' remote procedure call services corresponding to Datagram Protocol and Transmission Control Protocol;

[0025] After the remote procedure call service is started, the service program responds to the target command.

[0026] In one possible implementation, the service program is also used to set a corresponding logical address for each of the PXI\PXIe boards;

[0027] Determine the device name of the PXI\PXIe board in the logical address;

[0028] Generate the association between the device name, the PXI / PXIe board number, and the board control handle for storage;

[0029] Each of the PXI\PXIe boards after the association relationship is generated is considered as one LXI device;

[0030] When the target command is received, the target device name corresponding to the target command is obtained;

[0031] Determine the target number or target board control handle corresponding to the target device name from the association relationship;

[0032] The corresponding target PXI / PXIe board is determined based on the target number or target board control handle.

[0033] In one possible implementation, the service program is also used to obtain the IP address and port number corresponding to the interrupt channel when the main control unit constructs an interrupt channel, for storage.

[0034] When any of the PXI / PXIe boards is interrupted, an interrupted connection is established based on the IP address and port number;

[0035] Determine the board control handle corresponding to the PXI / PXIe board that experienced the interruption;

[0036] An interrupt signal is sent to the main control unit based on the board control handle.

[0037] In one possible implementation, the service program runs in Linux user space;

[0038] The board driver library and the service function library are dynamic libraries based on Linux.

[0039] Secondly, embodiments of the present invention provide a bus control method, including:

[0040] The controller unit receives the target command sent by the main control unit. The controller unit includes: a command list file, a service program, and ported board driver library and business function library.

[0041] Based on the command list file and service program, and by porting the board driver library and service function library, the PXI / PXIe board is converted into the corresponding LXI device;

[0042] The LXI device is controlled according to the target command.

[0043] In one possible implementation, controlling the LXI device according to the target command includes:

[0044] Determine the device name corresponding to the target command;

[0045] The board control handle corresponding to the device name is determined from the association relationship, which includes the correspondence between the board control handle and the device name;

[0046] The target PXI\PXIe board is determined based on the board control handle;

[0047] The target PXI / PXIe board is controlled according to the board control handle and the target command.

[0048] The bus control system provided in this invention includes: a controller unit, multiple PXI / PXIe boards, and a main control unit. The controller unit runs target service software to generate corresponding LXI devices for each PXI / PXIe board; receives target commands sent by the main control unit; determines the target LXI device corresponding to the target command; and controls the target LXI device using the target command. Each PXI / PXIe board is connected to the controller unit and receives and responds to the target command. The main control unit is connected to the controller unit via a target network cable and generates the target command. This allows control of all PXI / PXIe boards in the entire system via a single network cable, virtualizing each board as a different LXI device. Changing the boards in the instrument chassis allows for the combination of different test systems. Furthermore, some control operations of the main control computer are performed on the LXI bus devices. This simplifies the development process of developing LXI bus instruments using PXI / PXIe boards and reduces costs. Attached Figure Description

[0049] Figure 1 A schematic diagram of a bus control system provided in an embodiment of the present invention;

[0050] Figure 2 A flowchart illustrating a bus control method provided in an embodiment of the present invention;

[0051] Figure 3 This is a schematic diagram of the structure of a control device provided for an embodiment of the invention. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0053] To facilitate understanding of the embodiments of the present invention, further explanations and descriptions will be provided below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.

[0054] Figure 1 A schematic diagram of a bus control system provided for an embodiment of the invention, such as... Figure 1 The system specifically includes:

[0055] The main control computer, network cable, controller, PXI / PXIe chassis, PXI / PXIe board 1 and PXI / PXIe board 2... The main control computer is the main control unit and the controller is the controller unit.

[0056] This application is based on PXI / PXIe bus devices, where the main control unit is connected to the controller unit via a target network cable. The controller unit and multiple PXI / PXIe boards are housed in a general-purpose PXI / PXIe bus chassis. Each board can be considered an independent instrument, independent of the others. The controller unit is an embedded controller running a Linux operating system, used to run target service software, which can be service software using the VXI-11 protocol. The target service software consists of a command list file, a service program, a board driver library, and a service function library. The command list file is a text file storing a list of SCPI commands. The service program is a VXI-11 service program running in Linux user space. The board driver library and service function library are Linux-based dynamic libraries. After the main control unit generates target commands, it sends them to the controller unit. Software supporting the LXI protocol, such as VISA, can then control all PXI / PXIe boards.

[0057] Furthermore, generating a corresponding LXI device for each PXI / PXIe board through the target service software includes: porting the board driver library corresponding to the board to the LXI bus instrument system, and adding the corresponding interface in the VXI-11 service program to convert the PXI / PXIe board into an LXI instrument, with each PXI / PXIe board serving as an LXI device. Placing the corresponding service function library of the board into the LXI bus instrument system and adding the corresponding interface in the VXI-11 service program allows the execution of target commands sent by the main control unit, thereby enabling the construction of the LXI instrument. When a target command is received, the controller unit determines the board responding to the target command, i.e., determines the target LXI device corresponding to the target command, and controls the target LXI device through the target command to enable the target LXI device to complete tasks such as data processing.

[0058] Specifically, the command list file stores various SCPI commands and their numbers based on the LXI bus protocol. This may include, but is not limited to, general commands (e.g., *IDN?), PXI / PXIe board-specific commands (corresponding to functions in the board's driver library), and service function commands (functions in the service function library). Commands can be added or removed based on the specific board and service requirements.

[0059] When the VXI-11 service program starts, it reads the command list file, extracts the command parameters from the command list file to create a command tree, and then parses the target command sent by the main control unit according to the command tree and calls the corresponding function to control the target LXI device.

[0060] The command tree format is as follows:

[0061]

[0062] The parameters are enclosed in curly braces.

[0063] The service program is used to implement LXI bus functions based on the VXI-11 protocol, PXI / PXIe board bonding functions, SCPI command parsing functions, and command execution functions.

[0064] The VXI-11 service procedure is as follows:

[0065] The first step is to read the contents of the SCPI command list file and create a command tree based on the contents. After receiving the target command from the master control unit, the command number of the target command is determined through the command tree.

[0066] The second step involves determining the board control handle corresponding to each PXI / PXIe board from the board driver library; and constructing the data structure corresponding to the PXI / PXIe board, including:

[0067] Locate all PXI / PXIe boards in the system, call the initialization function in the corresponding board driver library to initialize and obtain the board control handle, create a data structure to store the board's private data, and number the boards sequentially (e.g., 0, 1, 2, 3...). Then store the number and control handle in the board's private data structure.

[0068] The third step involves the remote procedure call service corresponding to the registered user datagram protocol and transmission control protocol; after starting the remote procedure call service, the service program responds to the target command, including:

[0069] The basic process for establishing an LXI server is to first register UDP and TCP RPC services, and then call svc_run() to start the RPC service. After starting the RPC service, the service program can respond to LXI bus commands and perform functions such as creating connections, reading and writing data, and initiating interrupts.

[0070] To convert each PXI / PXIe board into an independent LXI device, additional processing is required in the network instrumentation protocol-related functions.

[0071] Function 1: Create_LinkResp*create_link_1_svc(Create_LinkParms*argp,structsvc_req*rqstp)

[0072] This function corresponds to the device open function (viOpen) in VISA within the VXI-11 protocol. It is called when the host control unit opens a device. This function is used to bind each PXI / PXIe board in the system to a different logical address, allowing different boards to be distinguished by different logical addresses, such as "TCPIP0::192.168.245.161::inst0::INSTR" and "TCPIP0::192.168.245.161::inst1:INSTR".

[0073] The main control unit opens an LXI device using a logical address and `viOpen` according to the LXI protocol, such as "TCPIP0::192.168.1.1::inst0::INSTR". The device name "inst0" in the logical address can be obtained through the parameter `argp->device` of this function. Setting the `lid` in the return value to the board number (e.g., 0) allows binding this name to the board corresponding to the board number found in the main process. That is, it generates an association relationship between the device name, board number, and board control handle for storage; it treats each PXI / PXIe board after determining the logical address and generating the association relationship as an LXI device; when a target command is received, it extracts the target device name from the target command; it determines the target number or target board control handle corresponding to the target device name from the association relationship; it determines the corresponding target PXI / PXIe board based on the target number or target board control handle, and performs operations on the target PXI / PXIe board or target LXI device based on the target command. Specifically, the passed-in `lid` parameter in other network instrument protocol-related functions can determine which PXI / PXIe board is being used. The corresponding board control handle can then be used to operate the board. This allows for the independent control of multiple PXI / PXIe boards using a single network cable and IP address.

[0074] Function 2: Device_WriteResp*device_write_1_svc(Device_WriteParms*argp,struct svc_req*rqstp)

[0075] This function corresponds to the write function (viWrite) in VISA within the VXI-11 protocol. All SCPI commands are transmitted to the LXI instrument through this function. Upon receiving a command, the instrument first selects the PXI / PXIe board to be controlled based on the passed-in lid number. Then, it parses the command according to the command tree and calls the corresponding function in the board's driver library or service function library.

[0076] Function 3: Device_Error* create_intr_chan_1_svc(Device_RemoteFunc* argp, struct svc_req* rqstp)

[0077] This function is called when the host computer creates an interrupt channel via the VXI-11 protocol. The IP address and port number of the interrupt channel created by the host computer can be obtained through the passed Device_RemoteFunc structure, and stored in memory for later use.

[0078] Function four: Device_Error*device_enable_srq_1_svc(Device_EnableSrqParms*argp,struct svc_req*rqstp)

[0079] This function is called when the host computer enables interrupts via the VXI-11 protocol. First, it selects the PXI / PXIe board to be enabled for interruption based on the passed-in `lid` number. It then creates an interrupt connection using the IP address and port number obtained in the `create_intr_chan_1_svc` function and stores the handle in a data structure containing the board's private data. When an interrupt occurs on a different PXI / PXIe board, it can send an interrupt signal to the host unit through the stored private interrupt handle. This allows the host computer to distinguish interrupts from different boards within the LXI device.

[0080] Furthermore, the board driver library is a driver library for different PXI / PXIe boards, used to provide operation interface functions for VXI-11 service programs. The original PXI / PXIe board drivers can then be ported to the embedded controller.

[0081] The business function library is a function library for business processes such as data processing, used to provide operation interface functions for VXI-11 service programs. Hardware-related data processing logic from the main control computer can be ported to this library to achieve edge computing of data, and finally, the results are transmitted to the main control unit.

[0082] The bus control system provided in this invention streamlines the development process of LXI bus instruments using chassis boards, enabling rapid setup of an LXI bus-based instrument. All boards in the system can be controlled from the main control computer via a single network cable, and each board can be treated as an independent instrument, without interference. Multiple different PXI / PXIe boards can be incorporated into the instrument; simply porting the board driver library to the LXI bus instrument system and adding interfaces to the VXI-11 service program converts the PXI / PXIe boards into LXI instruments. Adding the business function library to the LXI bus instrument system and corresponding interfaces to the VXI-11 service program allows for data processing and other tasks to be performed, reducing the computational load on the main control computer. Each board can be virtualized as a different LXI device; changing the boards in the instrument chassis allows for the creation of different test systems. A portion of the main control computer's control work is offloaded to the LXI bus devices. This simplifies the development process of LXI bus instruments using PXI / PXIe boards and reduces costs.

[0083] Figure 2 A flowchart illustrating a bus control method provided for an embodiment of the invention, as shown below. Figure 2 The method specifically includes:

[0084] S21. The controller unit receives the target command sent by the main control unit. The controller unit includes: a command list file, a service program, and ported board driver library and business function library.

[0085] The bus control method provided in this invention is applied to a controller unit in a PXI / PXIe bus device. The controller unit is an embedded controller running a Linux operating system, and it runs service software using the VXI-11 protocol. The service software consists of four parts: a command list file, a service program, a board driver library, and a service function library. The command list file is a text file storing a list of SCPI commands. The VXI-11 service program runs in the Linux user space. The board driver library and the service function library are Linux-based dynamic libraries. The controller unit is connected to a host computer via a network cable and receives target commands sent by the host computer. The host computer is connected to the controller unit via a network cable, and can control all PXI / PXIe boards connected to the controller unit using software supporting the LXI protocol, such as VISA.

[0086] S22. Based on the command list file and service program, and by porting the board driver library and service function library, convert the PXI / PXIe board into the corresponding LXI device; control the LXI device according to the target command.

[0087] In this embodiment, multiple required PXI / PXIe cards are inserted into the chassis. Command listing files and service programs are installed in the Linux system, and the card driver library and service function library are ported. Different cards are distinguished by different logical addresses, and an association is established based on the device name in the logical address, the card control handle of each card, and the card number. This completes the setup of the LXI instrument. For details on converting PXI / PXIe cards into corresponding LXI devices, please refer to [link to relevant documentation]. Figure 1 The descriptions provided in the previous section will not be repeated in this embodiment. The main control computer is connected to the controller of the LXI instrument via a network cable, and all boards can be controlled using software that supports the LXI protocol, such as VISA.

[0088] Specifically, when a target command is received, it is parsed to determine the device name of the board to be controlled by the target command, and the board control handle corresponding to the device name is determined from the association relationship; the target PXI / PXIe board is determined based on the board control handle; then, the target command sent by the main control computer is parsed according to the pre-built command tree, and the corresponding target function in the board driver library or business function library is called; the target PXI / PXIe board is controlled according to the board control handle and the target function to realize functions such as creating connections, reading and writing data, and starting interrupts.

[0089] The bus control method provided in this invention receives target commands sent by a main control unit through a controller unit. The controller unit includes a command list file, a service program, and ported board driver libraries and service function libraries. Based on the command list file, service program, and ported board driver libraries and service function libraries, PXI / PXIe boards are converted into corresponding LXI devices. The LXI devices are controlled according to the target commands. This allows for the rapid conversion of a PXI / PXIe bus-based system into an LXI bus system, and the control of all PXI / PXIe boards in the entire system via a single network cable. Each board is virtualized as a different LXI device, and different test systems can be assembled by changing the boards in the instrument chassis. Furthermore, some control operations of the main control computer are placed within the LXI bus devices. This simplifies the development process of developing LXI bus instruments using PXI / PXIe boards and reduces costs.

[0090] Figure 3 This is a schematic diagram of the structure of a control device provided in an embodiment of the present invention. Figure 3The illustrated electronic device 300 includes at least one processor 301, a memory 302, at least one network interface 304, and other user interfaces 303. The various components in the electronic device 300 are coupled together via a bus system 305. It is understood that the bus system 305 is used to implement communication between these components. In addition to a data bus, the bus system 305 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 3 The general designated all buses as Bus System 305.

[0091] The user interface 303 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).

[0092] It is understood that the memory 302 in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 302 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0093] In some implementations, memory 302 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 3021 and application program 3022.

[0094] The operating system 3021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 3022 includes various applications, such as a media player and a browser, used to implement various application functions. The program implementing the method of this embodiment can be included in the application program 3022.

[0095] In this embodiment of the invention, by calling the program or instructions stored in the memory 302, specifically the program or instructions stored in the application program 3022, the processor 301 executes the method steps provided in each method embodiment, including, for example:

[0096] The controller unit receives the target command sent by the main control unit. The controller unit includes: a command list file, a service program, and ported board driver library and business function library.

[0097] Based on the command list file and service program, and by porting the board driver library and service function library, the PXI / PXIe board is converted into the corresponding LXI device;

[0098] The LXI device is controlled according to the target command.

[0099] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 301. Processor 301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 301 or by instructions in the form of software. The processor 301 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 302. The processor 301 reads the information in memory 302 and, in conjunction with its hardware, completes the steps of the above method.

[0100] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.

[0101] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

[0102] The control device provided in this embodiment can be as follows: Figure 3 The control device shown can perform the following: Figure 2 All steps of the bus control method are then implemented. Figure 2 For details on the technical effects of the bus control method shown, please refer to [link / reference]. Figure 2 The relevant descriptions are presented concisely and will not be elaborated upon here.

[0103] This invention also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory may also include combinations of the above types of memory.

[0104] One or more programs in the storage medium can be executed by one or more processors to implement the bus control method described above that is executed on the device side.

[0105] The processor is used to execute a bus control program stored in memory to implement the following steps of a bus control method executed on the device side:

[0106] The controller unit receives the target command sent by the main control unit. The controller unit includes: a command list file, a service program, and ported board driver library and business function library.

[0107] Based on the command list file and service program, and by porting the board driver library and service function library, the PXI / PXIe board is converted into the corresponding LXI device;

[0108] The LXI device is controlled according to the target command.

[0109] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0110] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0111] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A bus control system, characterized in that, include: Controller unit, multiple PXI / PXIe boards and main control unit; The controller unit is used to run the target service software, which generates a corresponding LXI device for each PXI / PXIe board. The target service software consists of a command list file, a service program, a board driver library, and a service function library. Receive the target command sent by the main control unit; Identify the target LXI device corresponding to the target command, and control the target LXI device through the target command; The PXI / PXIe board is connected to the controller unit and is used to receive and respond to the target command; The main control unit is connected to the controller unit via a target network cable and is used to generate the target command; The command list file is used to store SCPI commands based on the LXI bus protocol, as well as the number corresponding to each PXI / PXIe board. The service program is used to implement the LXI bus function based on the VXI-11 protocol. The LXI bus function includes: binding the PXI / PXIe board, parsing SCPI commands, and executing the target command. The board driver library and the business function library are used to provide operation interface functions for the service program.

2. The system according to claim 1, characterized in that, The service program is also used to extract command parameters from the command list file; Generate a corresponding command tree based on the command parameters; When the target command is received, the function corresponding to the target command is invoked through the command tree; The target LXI device is controlled based on the function and the target command.

3. The system according to claim 1, characterized in that, The service program is also used to determine the board control handle corresponding to each PXI\PXIe board from the board driver library; Construct a data structure corresponding to the PXI / PXIe board, the data structure being used to store the board control handle and the preset number of the PXI / PXIe board.

4. The system according to claim 1, characterized in that, The service program is also used for: Registered users' remote procedure call services corresponding to Datagram Protocol and Transmission Control Protocol; After the remote procedure call service is started, the service program responds to the target command.

5. The system according to claim 1, characterized in that, The service program is also used to set a corresponding logical address for each of the PXI\PXIe boards. Determine the device name of the PXI\PXIe board in the logical address; Generate the association between the device name, the PXI / PXIe board number, and the board control handle for storage; Each of the PXI\PXIe boards after the association relationship is generated is considered as one LXI device; When the target command is received, the target device name corresponding to the target command is obtained; Determine the target number or target board control handle corresponding to the target device name from the association relationship; The corresponding target PXI / PXIe board is determined based on the target number or target board control handle.

6. The system according to claim 5, characterized in that, The service program is also used for When the main control unit constructs an interrupt channel, it obtains the IP address and port number corresponding to the interrupt channel for storage. When any of the PXI / PXIe boards is interrupted, an interrupted connection is established based on the IP address and port number; Determine the board control handle corresponding to the PXI / PXIe board that experienced the interruption; An interrupt signal is sent to the main control unit based on the board control handle.

7. The system according to claim 5, characterized in that, The service program runs in Linux user space; The board driver library and the service function library are dynamic libraries based on Linux.

8. A bus control method, characterized in that, Applied to the system according to any one of claims 1-7, comprising: The controller unit receives the target command sent by the main control unit. The controller unit includes: a command list file, a service program, and ported board driver library and business function library. Based on the command list file and service program, and by porting the board driver library and service function library, the PXI / PXIe board is converted into the corresponding LXI device; The LXI device is controlled according to the target command.

9. The method according to claim 8, characterized in that, The step of controlling the LXI device according to the target command includes: Determine the device name corresponding to the target command; The board control handle corresponding to the device name is determined from the association relationship, which includes the correspondence between the board control handle and the device name; The target PXI\PXIe board is determined based on the board control handle; The target PXI / PXIe board is controlled according to the board control handle and the target command.

Citation Information

Patent Citations

  • LXI-PXI\PXIe adaptation system

    CN103678238A

  • LAN (Local Area Network) based distributed LAN-PXI service system

    CN103685545A