Fault detection method and calibration system of inertial measurement unit
By using multi-stage routing to transmit the routing table information and product serial number of the inertial measurement unit in the inertial measurement unit calibration system, the problems of data loss and high bit error rate are solved, the efficiency of calibration and fault detection is improved, and large batches are met Calibration requirements of inertial measurement units.
Patent Information
- Application Number
- CN202411401066.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2024-12-06
AI Technical Summary
The existing inertial measurement unit calibration system is prone to data loss, garbled code and high bit error rates, and it is impossible to calibrate multiple inertial measurement units at the same time, resulting in low calibration and fault detection efficiency and cannot meet the calibration requirements of large-scale inertial measurement units.
Through multi-level routing transmission between the master controller and the slave controller, the routing table information and product serial number of the inertial measurement unit are obtained and recorded, to avoid data loss and bit error rate, and to increase the number of inertial measurement units that can be connected to the calibration system. And quickly determine the location of the fault.
It effectively avoids data loss and bit error rate problems, improves the efficiency and applicability of calibration and fault detection, and improves the production efficiency of inertial measurement units.
Smart Images

Figure CN119085711A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of inertial measurement unit calibration, and in particular to a fault detection method and calibration system of an inertial measurement unit. Background Art
[0002] An inertial measurement unit (IMU) is an electronic device used to measure and report information such as the attitude, angular velocity, and acceleration of an object to be measured. IMUs may include accelerometers and gyroscopes and are widely used in aviation, aerospace, navigation, robotics, automobiles, consumer electronics, and other fields. Before use, it is necessary to correct the key characteristics of the inertial measurement unit, such as temperature drift, noise, and zero bias, by certain means. This process is called calibration.
[0003] At present, general inertial measurement unit calibration systems are prone to system instability problems such as data loss, garbled characters, and bit error rates. In addition, it is impossible to calibrate too many inertial measurement units at the same time, which makes the calibration and fault detection efficiency low and cannot meet the demand for large-scale inertial measurement unit calibration. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a fault detection method and calibration system for an inertial measurement unit, wherein a target slave controller connected to the target inertial measurement unit among a main controller and at least one slave controller forwards a detection instruction issued by a host computer to obtain routing table information corresponding to the target inertial measurement unit, and forwards the corresponding routing table information received from the target inertial measurement unit back to the host computer, and adopts multi-level routing to record the correspondence between the location information of the inertial measurement unit and the product serial number, which can effectively avoid system instability problems such as data loss, garbled characters, and bit error rate, increase the number of inertial measurement units to be calibrated that can be connected to the calibration system, and quickly determine the location of the faulty inertial measurement unit, thereby improving the efficiency and applicability of calibration and fault detection, thereby improving the production efficiency of the inertial measurement unit.
[0005] The embodiment of the present application provides a fault detection method for an inertial measurement unit, the fault detection method is applied to a calibration system of an inertial measurement unit, the calibration system includes a host computer, a master controller and at least one slave controller, wherein each of the at least one slave controller is connected to at least one inertial measurement unit, and the fault detection method includes:
[0006] The host computer sends a detection instruction to the main controller to instruct the acquisition of routing table information corresponding to the target inertial measurement unit in the at least one inertial measurement unit; the routing table information is used to indicate the network path and data content of forwarded data;
[0007] The master controller receives the detection instruction, and forwards the detection instruction to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit among the at least one slave controller;
[0008] The target slave controller, in response to receiving corresponding routing table information sent by the target inertial measurement unit, records the routing table information into a sub-routing table of the calibration system, and forwards the sub-routing table to the host computer through the master controller;
[0009] The host computer checks whether the sub-routing table meets the fault condition, and determines the fault information of the target inertial measurement unit based on the check result.
[0010] Further, the master controller receives the detection instruction, and the step of forwarding the detection instruction to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit among the at least one slave controller includes:
[0011] The master controller controls the first serial port connected to the host computer and the second serial port connected to the at least one slave controller to perform initialization processing respectively;
[0012] In response to both the first serial port and the second serial port being initialized, receiving the detection instruction;
[0013] Performing cache polling and parsing verification processing on the detection instructions respectively, and sending the processed detection instructions to a target slave controller connected to the target inertial measurement unit among the at least one slave controller;
[0014] The target receives the processed detection instruction from the controller and sends the detection instruction to the target inertial measurement unit.
[0015] Further, the steps of performing cache polling and parsing verification processing on the detection instructions respectively, and sending the processed detection instructions to a target slave controller connected to the target inertial measurement unit among the at least one slave controller include:
[0016] The detection instruction is saved in a first cache corresponding to the second serial port, and data in the first cache is polled and accessed;
[0017] After performing the polling access, determining whether the second serial port is in a serial port interrupt state;
[0018] If yes, extracting and parsing the detection instruction in the first cache to determine whether the detection instruction passes the data verification;
[0019] If passed, the main position information corresponding to the main controller is packaged and integrated with the detection instruction to obtain the processed detection instruction, and the processed detection instruction is sent to the target slave controller connected to the target inertial measurement unit in the at least one slave controller.
[0020] Further, the step of the target receiving the processed detection instruction from the controller and sending the detection instruction to the target inertial measurement unit includes:
[0021] The target slave controller controls the second serial port connected to the master controller and the third serial port connected to the target inertial measurement unit to perform initialization processing respectively;
[0022] In response to the second serial port and the third serial port being initialized, receiving the processed detection instruction;
[0023] The processed detection instruction is saved in a second cache corresponding to the third serial port, and data in the second cache is polled and accessed;
[0024] After performing the polling access, determining whether the third serial port is in a serial port interrupt state;
[0025] If yes, extracting and parsing the processed detection instruction in the second cache, and determining whether the processed detection instruction passes the data verification;
[0026] If it passes, the main position information corresponding to the main controller is recorded, and the processed detection instruction is sent to the target inertial measurement unit.
[0027] Further, the target slave controller records the routing table information into the sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit, and forwards the sub-routing table to the host computer through the main controller, including:
[0028] The target slave controller, in response to receiving the corresponding routing table information sent by the target inertial measurement unit, performs cache polling and parsing verification processing on the routing table information, and records the processed routing table information into the sub-routing table of the calibration system;
[0029] Sending the sub-routing table to the main controller;
[0030] The main controller receives the sub-routing table and sends the sub-routing table to the host computer.
[0031] Furthermore, the steps of performing cache polling and parsing verification processing on the routing table information respectively, and recording the processed routing table information into the sub-routing table of the calibration system include:
[0032] Saving the routing table information in a second cache corresponding to a third serial port connected to the target inertial measurement unit, and performing polling access to data in the second cache;
[0033] After performing the polling access, determining whether the third serial port is in a serial port interrupt state;
[0034] If so, extracting and parsing the routing table information in the second cache, obtaining the product serial number corresponding to the target inertial measurement unit, and determining whether the product serial number passes the data verification;
[0035] If it passes, the slave position information corresponding to the target slave controller and the product serial number are packaged and integrated to obtain processed routing table information, and the processed routing table information is recorded in the sub-routing table of the calibration system.
[0036] Furthermore, the main controller receives the sub-routing table and sends the sub-routing table to the host computer, comprising:
[0037] The main controller receives the sub-routing table, saves the sub-routing table to a third cache corresponding to the first serial port connected to the host computer, and performs polling access to the data in the third cache;
[0038] After performing the polling access, determining whether the first serial port is in a serial port interrupt state;
[0039] If not, the sub-routing table is sent to the host computer.
[0040] Further, the host computer checks whether the sub-routing table meets the fault condition, and based on the check result, determines the fault information of the target inertial measurement unit, including:
[0041] The host computer saves the received sub-routing table into the local memory, and determines whether the product serial number in the sub-routing table is equal to the preset value, so as to check whether the sub-routing table meets the fault condition and obtain the inspection result;
[0042] If the inspection result is that the product serial number is equal to a preset value, determining that the fault information of the target inertial measurement unit is that a fault exists;
[0043] If the checking result is that the product serial number is not equal to the preset value, it is determined that the fault information of the target inertial measurement unit is empty, so as to determine that there is no fault in the target inertial measurement unit.
[0044] The embodiment of the present application further provides a calibration system for an inertial measurement unit, the calibration system comprising: a host computer, a master controller and at least one slave controller; wherein the host computer comprises:
[0045] An instruction sending module, used for sending a detection instruction to the main controller to instruct the acquisition of routing table information corresponding to a target inertial measurement unit in at least one inertial measurement unit; the routing table information is used to indicate a network path and data content for forwarding data;
[0046] A fault checking module, used to check whether the sub-routing table of the calibration system meets the fault condition, and determine the fault information of the target inertial measurement unit based on the check result;
[0047] The main controller comprises:
[0048] An instruction receiving module, used for receiving the detection instruction;
[0049] A first forwarding module, used for forwarding the sub-routing table to the host computer;
[0050] The slave controller comprises:
[0051] A second forwarding module, used for forwarding the detection instruction to the target inertial measurement unit;
[0052] The information recording module is used for recording the routing table information into the sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit.
[0053] Furthermore, when the instruction receiving module is used to receive the detection instruction, the instruction receiving module is used to:
[0054] Controlling a first serial port connected to the host computer and a second serial port connected to the at least one slave controller to respectively perform initialization processing;
[0055] In response to both the first serial port and the second serial port being initialized, receiving the detection instruction;
[0056] The detection instructions are respectively subjected to cache polling and parsing verification processing, and the processed detection instructions are sent to a target slave controller connected to the target inertial measurement unit among the at least one slave controller.
[0057] Further, when the instruction receiving module is used to perform cache polling and parsing verification processing on the detection instruction respectively, and send the processed detection instruction to the target slave controller connected to the target inertial measurement unit among the at least one slave controller, the instruction receiving module is used to:
[0058] The detection instruction is saved in a first cache corresponding to the second serial port, and data in the first cache is polled and accessed;
[0059] After performing the polling access, determining whether the second serial port is in a serial port interrupt state;
[0060] If yes, extracting and parsing the detection instruction in the first cache to determine whether the detection instruction passes the data verification;
[0061] If passed, the main position information corresponding to the main controller is packaged and integrated with the detection instruction to obtain the processed detection instruction, and the processed detection instruction is sent to the target slave controller connected to the target inertial measurement unit in the at least one slave controller.
[0062] Further, when the second forwarding module is used to forward the detection instruction to the target inertial measurement unit, the second forwarding module is used to:
[0063] The processed detection instruction is received, and the detection instruction is sent to the target inertial measurement unit.
[0064] Further, when the second forwarding module is used to receive the processed detection instruction and send the detection instruction to the target inertial measurement unit, the second forwarding module is used to:
[0065] Controlling the second serial port connected to the main controller and the third serial port connected to the target inertial measurement unit to perform initialization processing respectively;
[0066] In response to the second serial port and the third serial port being initialized, receiving the processed detection instruction;
[0067] The processed detection instruction is saved in a second cache corresponding to the third serial port, and data in the second cache is polled and accessed;
[0068] After performing the polling access, determining whether the third serial port is in a serial port interrupt state;
[0069] If yes, extracting and parsing the processed detection instruction in the second cache, and determining whether the processed detection instruction passes the data verification;
[0070] If it passes, the main position information corresponding to the main controller is recorded, and the processed detection instruction is sent to the target inertial measurement unit.
[0071] Further, when the information recording module is used to record the routing table information into the sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit, the information recording module is used to:
[0072] In response to receiving the corresponding routing table information sent by the target inertial measurement unit, performing cache polling and parsing verification processing on the routing table information respectively, and recording the processed routing table information into the sub-routing table of the calibration system;
[0073] The sub-routing table is sent to the main controller.
[0074] Furthermore, when the information recording module is used to perform cache polling and parsing verification processing on the routing table information respectively, and record the processed routing table information into the sub-routing table of the calibration system, the information recording module is used to:
[0075] Saving the routing table information in a second cache corresponding to a third serial port connected to the target inertial measurement unit, and performing polling access to data in the second cache;
[0076] After performing the polling access, determining whether the third serial port is in a serial port interrupt state;
[0077] If so, extracting and parsing the routing table information in the second cache, obtaining the product serial number corresponding to the target inertial measurement unit, and determining whether the product serial number passes the data verification;
[0078] If it passes, the slave position information corresponding to the target slave controller and the product serial number are packaged and integrated to obtain processed routing table information, and the processed routing table information is recorded in the sub-routing table of the calibration system.
[0079] Further, when the first forwarding module is used to forward the sub-routing table to the host computer, the first forwarding module is used to:
[0080] The sub-routing table is received and sent to the host computer.
[0081] Further, when the first forwarding module is used to receive the sub-routing table and send the sub-routing table to the host computer, the first forwarding module is used to:
[0082] Receiving the sub-routing table, saving the sub-routing table to a third cache corresponding to the first serial port connected to the host computer, and performing polling access to the data in the third cache;
[0083] After performing the polling access, determining whether the first serial port is in a serial port interrupt state;
[0084] If not, the sub-routing table is sent to the host computer.
[0085] Further, when the fault checking module is used to check whether the sub-routing table of the calibration system meets the fault condition and determine the fault information of the target inertial measurement unit based on the check result, the fault checking module is used to:
[0086] The host computer saves the received sub-routing table into the local memory, and determines whether the product serial number in the sub-routing table is equal to the preset value, so as to check whether the sub-routing table meets the fault condition and obtain the inspection result;
[0087] If the inspection result is that the product serial number is equal to a preset value, determining that the fault information of the target inertial measurement unit is that a fault exists;
[0088] If the checking result is that the product serial number is not equal to the preset value, it is determined that the fault information of the target inertial measurement unit is empty, so as to determine that there is no fault in the target inertial measurement unit.
[0089] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the fault detection method of the inertial measurement unit as described above are performed.
[0090] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned method for detecting a fault in an inertial measurement unit are executed.
[0091] The fault detection method and calibration system of an inertial measurement unit provided in an embodiment of the present application, the fault detection method is applied to the calibration system of an inertial measurement unit, the calibration system includes a host computer, a main controller and at least one slave controller, wherein each of the at least one slave controller is connected to at least one inertial measurement unit, and the fault detection method includes: the host computer sends a detection instruction to the main controller to instruct to obtain routing table information corresponding to a target inertial measurement unit in the at least one inertial measurement unit; the routing table information is used to indicate a network path and data content of forwarded data; the main controller receives the detection instruction, and forwards the detection instruction to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit in the at least one slave controller; the target slave controller records the routing table information in a sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit, and forwards the sub-routing table to the host computer through the main controller; the host computer checks whether the sub-routing table meets the fault condition, and determines the fault information of the target inertial measurement unit based on the check result.
[0092] Compared with the batch calibration system of inertial measurement units in the prior art, it is impossible to calibrate too many inertial measurement units at the same time, which makes the efficiency of calibration and fault detection low and cannot meet the full-temperature calibration requirements of large quantities of inertial measurement units. The target slave controller connected to the target inertial measurement unit in the main controller and at least one slave controller forwards the detection instruction issued by the host computer to obtain the routing table information corresponding to the target inertial measurement unit, and forwards the corresponding routing table information received from the target inertial measurement unit back to the host computer. Multi-level routing is used to record the correspondence between the location information of the inertial measurement unit and the product serial number, which can effectively avoid system instability problems such as data loss, garbled characters and bit error rate, increase the number of inertial measurement units to be calibrated that can be connected to the calibration system, and quickly determine the location of the faulty inertial measurement unit, thereby improving the efficiency and applicability of calibration and fault detection, thereby improving the production efficiency of the inertial measurement unit.
[0093] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0095] Figure 1 A schematic diagram of the architecture of a calibration system for an inertial measurement unit provided in an embodiment of the present application;
[0096] Figure 2 A flowchart of a fault detection method for an inertial measurement unit provided in an embodiment of the present application;
[0097] Figure 3 A schematic diagram of the device structure of a calibration system for an inertial measurement unit provided in an embodiment of the present application;
[0098] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0099] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0100] Research has found that general inertial measurement unit calibration systems are prone to system instability problems such as data loss, garbled characters, and bit error rates. In addition, it is impossible to calibrate too many inertial measurement units at the same time, which makes the calibration and fault detection efficiency low and cannot meet the demand for large-scale inertial measurement unit calibration.
[0101] Based on this, an embodiment of the present application provides a fault detection method for an inertial measurement unit, wherein a target slave controller connected to the target inertial measurement unit among a main controller and at least one slave controller forwards a detection instruction issued by a host computer to obtain routing table information corresponding to the target inertial measurement unit, and forwards the corresponding routing table information received from the target inertial measurement unit back to the host computer, and adopts multi-level routing to record the correspondence between the location information of the inertial measurement unit and the product serial number, which can effectively avoid system instability problems such as data loss, garbled characters, and bit error rate, can increase the number of inertial measurement units to be calibrated that can be connected to the calibration system, and can also quickly determine the location of the faulty inertial measurement unit, thereby improving the efficiency and applicability of calibration and fault detection, thereby improving the production efficiency of the inertial measurement unit.
[0102] See also Figure 1 , Figure 1 A schematic diagram of the architecture of a calibration system for an inertial measurement unit provided in an embodiment of the present application.
[0103] like Figure 1 As shown in, the architecture of the calibration system 10 of the inertial measurement unit provided in the embodiment of the present application includes: a host computer 110, a main controller 120 and at least one slave controller 130; wherein the host computer 110 is communicatively connected with the main controller 120 through a first serial port (RS422 communication serial port); the main controller 120 and at least one slave controller 130 are respectively connected through a second serial port (first TTL serial port); each of the at least one slave controller 130 is respectively connected to at least one inertial measurement unit 140 through a third serial port (second TTL serial port).
[0104] It can be understood that the calibration system 10 may include at least one data acquisition board, and each of the at least one data acquisition board is configured with a main controller 120 and at least one slave controller 130 corresponding to the main controller 120 .
[0105] In the embodiment of the present application, the first serial port (RS422 communication serial port) may include a first communication serial port and a second communication serial port; wherein the serial port baud rate of the first communication serial port may be set to 6Mbps, and the first communication serial port may be used as a data output and command response serial port; the serial port baud rate of the second communication serial port may be set to 921600bps, and the second communication serial port may be used as an input serial port for configuration commands and firmware upgrades. Based on the RS422 communication serial port, the problems of serial port signal interference and long-distance transmission over the slip ring may be solved. In addition, considering the power supply voltage connection and ground connection of the RS422 communication serial port and the calibration system 10, the slip ring line over the turntable in the calibration system 10 may be provided with 6 wires, so that the wiring is relatively less, which may improve the calibration efficiency.
[0106] In the embodiment of the present application, the baud rates of the second serial port (first TTL serial port) and the third serial port (second TTL serial port) can be set to 921600 bps.
[0107] In an embodiment of the present application, each slave controller 130 can be connected to up to 8 modules, the data volume of the IMU sensor of the inertial measurement unit contained in each module does not exceed 400 bytes, and the output frequency of each module can be set to 20Hz. Therefore, the data volume of each serial port can be 640000bps, which is less than the baud rate of the second serial port and the third serial port.
[0108] See also Figure 2, Figure 2 A flowchart of a fault detection method for an inertial measurement unit provided in an embodiment of the present application.
[0109] like Figure 2 As shown in, the fault detection method of the inertial measurement unit provided in the embodiment of the present application is generally applied to a calibration system of the inertial measurement unit, the calibration system includes a host computer, a master controller and at least one slave controller, wherein each of the at least one slave controller is connected to at least one inertial measurement unit, and the fault detection method includes:
[0110] S100, the host computer sends a detection instruction to the main controller to instruct the acquisition of routing table information corresponding to a target inertial measurement unit in the at least one inertial measurement unit; the routing table information is used to indicate a network path and data content for forwarding data.
[0111] It should be noted that the Inertial Measurement Unit (IMU) is an electronic device used to measure and report information such as the posture, angular velocity and acceleration of the object to be measured. The IMU may include an accelerometer and a gyroscope and is widely used in aviation, aerospace, navigation, robotics, automobiles, consumer electronics and other fields.
[0112] In an embodiment of the present application, for the target inertial measurement unit in the at least one inertial measurement unit, the routing table information corresponding to the target inertial measurement unit is used to indicate the network path and data content of forwarded data, and each record in the routing table information is called a routing entry, and each routing entry specifies a destination of one or a group of networks and the path information required to reach the destination.
[0113] Here, the routing table information corresponding to the target inertial measurement unit includes but is not limited to output data, product serial number and location information.
[0114] In an embodiment of the present application, when the number of the target inertial measurement unit is one, the detection instruction may be a unicast message instruction, that is, the host computer sends the detection instruction to the target inertial measurement unit alone; when the number of the target inertial measurement unit is multiple, the detection instruction may be a broadcast message instruction, that is, the host computer broadcasts the detection instruction to multiple target inertial measurement units.
[0115] In this step, the host computer sends a detection instruction to the main controller to obtain the routing table information corresponding to the target inertial measurement unit in the at least one inertial measurement unit according to the user's external instructions or algorithm settings, so as to send a detection instruction for the target inertial measurement unit failure to the target inertial measurement unit through the multi-level routing of the main controller and at least one slave controller.
[0116] S200: The main controller receives the detection instruction, and forwards the detection instruction to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit among the at least one slave controller.
[0117] In an embodiment of the present application, the master controller and at least one slave controller use a unified message frame format to perform communication operations such as data sending, receiving and forwarding when performing multi-level routing communication.
[0118] As an example of a message frame format, assume that the character string in a QDCR message frame is a decimal character string, and the format of the QDCR message frame is: "$QDCR,{POS_ID},{MEMS_SN},{PAYLOAD_LEN},{PAYLOAD}#{crc}\r\n"; wherein, "PAYLOAD" represents the output data of the stored inertial measurement unit; "PAYLOAD_LEN" represents the data length of the stored output data; and "MEMS_SN" represents the product serial number of the inertial measurement unit.
[0119] Among them, "POS_ID" represents the position information, which consists of 2 characters. The first character is the slave position information ({slave_pos_id}) corresponding to the slave controller, and the second character is the master position information ({master_pos_id}) corresponding to the master controller; the slave position information includes 2 characters, the first character is the position information corresponding to the slave controller, and the second character is filled with the character "0" for the master controller to update the master position information.
[0120] In one implementation of the present application, during specific implementation, step S200 may include:
[0121] S210: The master controller controls a first serial port connected to the host computer and a second serial port connected to the at least one slave controller to perform initialization processing respectively.
[0122] In the embodiment of the present application, initialization processing is an important step to achieve communication between the controller and the device. The "initialization processing" here refers to setting the communication parameters of the serial port to ensure that data can be correctly transmitted between the main controller and the host computer and between the main controller and the slave controller.
[0123] S220: In response to the first serial port and the second serial port being initialized, receiving the detection instruction.
[0124] S230, performing cache polling and parsing verification processing on the detection instruction respectively, and sending the processed detection instruction to a target slave controller connected to the target inertial measurement unit among the at least one slave controller.
[0125] In an embodiment of the present application, after initializing the serial port, the main controller will perform cache polling and parsing verification on the received detection instructions. After determining that the detection instructions meet the verification, the processed detection instructions will be sent to the target inertial measurement unit via at least one slave controller connected to the target inertial measurement unit.
[0126] In one implementation of the present application, during specific implementation, step S230 may include:
[0127] S231. Save the detection instruction in a first cache corresponding to the second serial port, and perform polling access to data in the first cache.
[0128] In this step, the main controller saves the detection instruction into the first cache associated with the second serial port, and periodically checks the data in the first cache through a first-in-first-out polling access method to obtain communication status information or other responses.
[0129] In the embodiment of the present application, the first buffer corresponding to the second serial port includes but is not limited to a FIFO buffer.
[0130] S232: After performing the polling access, determine whether the second serial port is in a serial port interrupt state.
[0131] In the embodiment of the present application, the serial port interrupt state refers to the idle interrupt (Idle Interrupt) of the serial port. When the serial port completes the reception of a frame of data and the bus enters the idle state, the serial port interrupt state can be triggered. This interrupt is mainly used to detect the boundary of the data frame, especially when the length of the data frame is uncertain.
[0132] In this step, whether there is data waiting to be processed is determined by querying the status register of the second serial port, so as to determine whether the second serial port is in the serial port interrupt state.
[0133] S233: If yes, extract and parse the detection instruction in the first cache to determine whether the detection instruction passes the data verification.
[0134] S234. If passed, the main position information corresponding to the main controller is packaged and integrated with the detection instruction to obtain the processed detection instruction, and the processed detection instruction is sent to the target slave controller connected to the target inertial measurement unit in at least one slave controller.
[0135] In an embodiment of the present application, when the second serial port is in a serial port interrupt state and the detection instruction extracted and parsed in the first cache passes the data verification, the main controller updates the corresponding main position information in the message header of the communication message frame, and packages and integrates it with the detection instruction; then, the processed detection instruction is sent to the target slave controller connected to the target inertial measurement unit among the at least one slave controller.
[0136] Here, the data check may be a cyclic redundancy check (CRC) which appends a check code to the end of the data block. The receiving end can detect whether the data has changed during transmission by recalculating the check code and comparing it with the received check code.
[0137] S240: The target receives the processed detection instruction from the controller, and sends the detection instruction to the target inertial measurement unit.
[0138] In an embodiment of the present application, when the third serial port of the target slave controller is in a serial port interrupt state, data including detection instructions sent by the main controller is received from the target slave controller, and the received data is saved in a second cache corresponding to the third serial port. The target slave controller polls to obtain the data in the second cache, and sends it to the target inertial measurement unit through splicing, parsing, and verification.
[0139] In one implementation of the present application, during specific implementation, step S240 may include:
[0140] S241: The target slave controller controls the second serial port connected to the master controller and the third serial port connected to the target inertial measurement unit to perform initialization processing respectively.
[0141] In an embodiment of the present application, since the outputs of multiple inertial measurement units are higher than 20 Hz, the calibration system will cause abnormal transmission. Therefore, each serial port connected to the slave controller can only be set to enable reception during initialization, that is, the serial port baud rate and output frequency will be forced to switch to 20 Hz during initialization and saved in the serial port cache; after the switch is successful, each serial port connected to the slave controller will be reinitialized so that the serial port can receive and send data at the same time.
[0142] S242: In response to the second serial port and the third serial port being initialized, receiving the processed detection instruction.
[0143] S243: Save the processed detection instruction into a second cache corresponding to the third serial port, and perform polling access to the data in the second cache.
[0144] S244: After performing the polling access, determine whether the third serial port is in a serial port interrupt state.
[0145] S245: If yes, extract and parse the processed detection instruction in the second cache to determine whether the processed detection instruction passes data verification.
[0146] Among them, the description of S243 to S245 can refer to the description of S231 to S233, and can achieve the same technical effect, which will not be repeated here.
[0147] S246: If passed, record the main position information corresponding to the main controller, and send the processed detection instruction to the target inertial measurement unit.
[0148] In this step, after receiving and processing the detection instruction, the target slave controller needs to record the master position information corresponding to the master controller that sent the detection instruction, and send the processed detection instruction to the target inertial measurement unit.
[0149] S300, in response to receiving corresponding routing table information sent by the target inertial measurement unit, the target slave controller records the routing table information into a sub-routing table of the calibration system, and forwards the sub-routing table to the host computer through the main controller.
[0150] In an embodiment of the present application, the sub-routing table of the calibration system is a data structure that stores routing table information. The sub-routing table is used to guide the transmission path of the data packet from the source address to the destination address. When the device receives a data packet, it will search the corresponding entry in the routing table according to the destination IP address of the data packet, and then decide how to send the data packet to the next hop or directly send it to the destination address through the specified interface.
[0151] Furthermore, when a unit in at least one of the inertial measurement units fails, the dynamic routing protocol of the sub-routing table will automatically update the routing table to ensure that the data packet can bypass the failure point and continue to reach the destination.
[0152] In one implementation of the present application, during specific implementation, step S300 may include:
[0153] S310, in response to receiving corresponding routing table information sent by the target inertial measurement unit, the target slave controller performs cache polling and parsing verification processing on the routing table information, and records the processed routing table information into the sub-routing table of the calibration system.
[0154] In one embodiment of the present application, in a specific implementation, the steps of performing cache polling and parsing verification processing on the routing table information respectively in step S310, and recording the processed routing table information into the sub-routing table of the calibration system may include:
[0155] S311. Save the routing table information in a second cache corresponding to a third serial port connected to the target inertial measurement unit, and perform polling access to data in the second cache.
[0156] S312: After performing the polling access, determine whether the third serial port is in a serial port interrupt state.
[0157] Among them, the description of S311 to S312 can refer to the description of S231 to S232, and can achieve the same technical effect, which is not repeated here.
[0158] S313: If yes, extract and parse the routing table information in the second cache, obtain the product serial number corresponding to the target inertial measurement unit, and determine whether the product serial number passes the data verification.
[0159] S314: If passed, the slave location information corresponding to the target slave controller and the product serial number are packaged and integrated to obtain processed routing table information, and the processed routing table information is recorded in the sub-routing table of the calibration system.
[0160] In an embodiment of the present application, when the third serial port of the target slave controller is in a serial port interrupt state, the routing table information is extracted and parsed in the second cache corresponding to the third serial port to obtain the product serial number corresponding to the target inertial measurement unit. After the data verification is passed, the slave position information and the product serial number are updated in the message header of the communication message frame, and the data is packaged and integrated; further, the processed routing table information is recorded in the sub-routing table of the calibration system.
[0161] S320: Send the sub-routing table to the main controller.
[0162] In this step, the target slave controller sends the sub-routing table to the main controller, so that the sub-routing table is forwarded to the host computer via the main controller.
[0163] S330: The main controller receives the sub-routing table and sends the sub-routing table to the host computer.
[0164] In one implementation of the present application, during specific implementation, step S330 may include:
[0165] S331, the main controller receives the sub-routing table, saves the sub-routing table to a third cache corresponding to the first serial port connected to the host computer, and performs polling access to the data in the third cache.
[0166] S332: After performing the polling access, determine whether the first serial port is in a serial port interrupt state.
[0167] S333: If not, send the sub-routing table to the host computer.
[0168] In an embodiment of the present application, when the main controller forwards the sub-routing table, it is necessary to determine that the first serial port is in a non-serial port interrupt state, that is, when the first serial port is in a serial port direct access state (Direct Memory Access), the main controller sends the received sub-routing table to the host computer.
[0169] Among them, when the first serial port corresponding to the main controller is in the serial port direct access state (DMA), the transmission of serial port data can be carried out directly between the memory and the serial port without the intervention of the main controller or data analysis. This can reduce the burden of the main controller and improve the overall performance of the system, especially in applications that require high-speed data transmission or real-time processing, it can improve communication efficiency.
[0170] S400: The host computer checks whether the sub-routing table meets the fault condition, and determines the fault information of the target inertial measurement unit based on the check result.
[0171] In one implementation of the present application, during specific implementation, step S400 may include:
[0172] S410, the host computer saves the received sub-routing table into the local memory, and determines whether the product serial number in the sub-routing table is equal to the preset value to check whether the sub-routing table meets the fault condition and obtain the inspection result.
[0173] In this step, after receiving the sub-routing table of the target inertial measurement unit, the host computer saves the sub-routing table to the local memory; then, by parsing the product serial number of the target inertial measurement unit in the sub-routing table, it is determined whether the product serial number is equal to the preset value to check whether the sub-routing table meets the fault condition and obtain the inspection result.
[0174] In an embodiment of the present application, the preset value may be set to 0; when the product serial number of the target inertial measurement unit is 0, it indicates that the target inertial measurement unit meets the fault condition.
[0175] S420: If the inspection result is that the product serial number is equal to a preset value, determine that the fault information of the target inertial measurement unit is that a fault exists.
[0176] S430: If the checking result is that the product serial number is not equal to the preset value, determine that the fault information of the target inertial measurement unit is empty to determine that the target inertial measurement unit does not have a fault.
[0177] In an embodiment of the present application, based on a detection result of whether the product serial number of the target inertial measurement unit is equal to a preset value, it is determined whether the content in the fault information of the target inertial measurement unit indicates whether the target inertial measurement unit has a fault.
[0178] The fault detection method of the inertial measurement unit provided in the embodiment of the present application forwards a detection instruction issued by a host computer to obtain routing table information corresponding to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit among a main controller and at least one slave controller, and forwards the corresponding routing table information received from the target inertial measurement unit back to the host computer, and adopts multi-level routing to record the correspondence between the position information of the inertial measurement unit and the product serial number, which can effectively avoid system instability problems such as data loss, garbled characters, and bit error rate, and can increase the number of inertial measurement units to be calibrated that can be connected to the calibration system, and can also quickly determine the position of the faulty inertial measurement unit, thereby improving the efficiency and applicability of calibration and fault detection, thereby improving the production efficiency of the inertial measurement unit.
[0179] See also Figure 3 , Figure 3 A schematic diagram of the structure of a calibration system for an inertial measurement unit provided in an embodiment of the present application.
[0180] like Figure 3 As shown in , the calibration system 10 includes: a host computer 110, a main controller 120 and at least one slave controller 130; wherein the host computer 110 includes:
[0181] The instruction sending module 111 is used to send a detection instruction to the main controller to instruct the acquisition of routing table information corresponding to the target inertial measurement unit in at least one inertial measurement unit; the routing table information is used to indicate the network path and data content of the forwarded data;
[0182] A fault checking module 112 is used to check whether the sub-routing table of the calibration system meets the fault condition, and determine the fault information of the target inertial measurement unit based on the check result;
[0183] The main controller 120 includes:
[0184] An instruction receiving module 121, used for receiving the detection instruction;
[0185] A first forwarding module 122, used for forwarding the sub-routing table to the host computer;
[0186] The slave controller 130 includes:
[0187] A second forwarding module 131, configured to forward the detection instruction to the target inertial measurement unit;
[0188] The information recording module 132 is configured to, in response to receiving corresponding routing table information sent by the target inertial measurement unit, record the routing table information into the sub-routing table of the calibration system.
[0189] Furthermore, when the instruction receiving module 121 is used to receive the detection instruction, the instruction receiving module 121 is used to:
[0190] Controlling a first serial port connected to the host computer and a second serial port connected to the at least one slave controller to respectively perform initialization processing;
[0191] In response to both the first serial port and the second serial port being initialized, receiving the detection instruction;
[0192] The detection instructions are respectively subjected to cache polling and parsing verification processing, and the processed detection instructions are sent to a target slave controller connected to the target inertial measurement unit among the at least one slave controller.
[0193] Further, when the instruction receiving module 121 is used to perform cache polling and parsing verification processing on the detection instruction respectively, and send the processed detection instruction to the target slave controller connected to the target inertial measurement unit among the at least one slave controller, the instruction receiving module 121 is used to:
[0194] The detection instruction is saved in a first cache corresponding to the second serial port, and data in the first cache is polled and accessed;
[0195] After performing the polling access, determining whether the second serial port is in a serial port interrupt state;
[0196] If yes, extracting and parsing the detection instruction in the first cache to determine whether the detection instruction passes the data verification;
[0197] If passed, the main position information corresponding to the main controller is packaged and integrated with the detection instruction to obtain the processed detection instruction, and the processed detection instruction is sent to the target slave controller connected to the target inertial measurement unit in the at least one slave controller.
[0198] Further, when the second forwarding module 131 is used to forward the detection instruction to the target inertial measurement unit, the second forwarding module 131 is used to:
[0199] The processed detection instruction is received, and the detection instruction is sent to the target inertial measurement unit.
[0200] Further, when the second forwarding module 131 is used to receive the processed detection instruction and send the detection instruction to the target inertial measurement unit, the second forwarding module 131 is used to:
[0201] Controlling the second serial port connected to the main controller and the third serial port connected to the target inertial measurement unit to perform initialization processing respectively;
[0202] In response to the second serial port and the third serial port being initialized, receiving the processed detection instruction;
[0203] The processed detection instruction is saved in a second cache corresponding to the third serial port, and data in the second cache is polled and accessed;
[0204] After performing the polling access, determining whether the third serial port is in a serial port interrupt state;
[0205] If yes, extracting and parsing the processed detection instruction in the second cache, and determining whether the processed detection instruction passes the data verification;
[0206] If it passes, the main position information corresponding to the main controller is recorded, and the processed detection instruction is sent to the target inertial measurement unit.
[0207] Further, when the information recording module 132 is used to record the routing table information into the sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit, the information recording module 132 is used to:
[0208] In response to receiving the corresponding routing table information sent by the target inertial measurement unit, performing cache polling and parsing verification processing on the routing table information respectively, and recording the processed routing table information into the sub-routing table of the calibration system;
[0209] The sub-routing table is sent to the main controller.
[0210] Further, when the information recording module 132 is used to perform cache polling and parsing verification processing on the routing table information respectively, and record the processed routing table information into the sub-routing table of the calibration system, the information recording module 132 is used to:
[0211] Saving the routing table information in a second cache corresponding to a third serial port connected to the target inertial measurement unit, and performing polling access to data in the second cache;
[0212] After performing the polling access, determining whether the third serial port is in a serial port interrupt state;
[0213] If so, extracting and parsing the routing table information in the second cache, obtaining the product serial number corresponding to the target inertial measurement unit, and determining whether the product serial number passes the data verification;
[0214] If it passes, the slave position information corresponding to the target slave controller and the product serial number are packaged and integrated to obtain processed routing table information, and the processed routing table information is recorded in the sub-routing table of the calibration system.
[0215] Further, when the first forwarding module 122 is used to forward the sub-routing table to the host computer, the first forwarding module 122 is used to:
[0216] The sub-routing table is received and sent to the host computer.
[0217] Further, when the first forwarding module 122 is used to receive the sub-routing table and send the sub-routing table to the host computer, the first forwarding module 122 is used to:
[0218] Receiving the sub-routing table, saving the sub-routing table to a third cache corresponding to the first serial port connected to the host computer, and performing polling access to the data in the third cache;
[0219] After performing the polling access, determining whether the first serial port is in a serial port interrupt state;
[0220] If not, the sub-routing table is sent to the host computer.
[0221] Further, when the fault checking module 112 is used to check whether the sub-routing table of the calibration system meets the fault condition and determine the fault information of the target inertial measurement unit based on the check result, the fault checking module 112 is used to:
[0222] The host computer saves the received sub-routing table into the local memory, and determines whether the product serial number in the sub-routing table is equal to the preset value, so as to check whether the sub-routing table meets the fault condition and obtain the inspection result;
[0223] If the inspection result is that the product serial number is equal to a preset value, determining that the fault information of the target inertial measurement unit is that a fault exists;
[0224] If the checking result is that the product serial number is not equal to the preset value, it is determined that the fault information of the target inertial measurement unit is empty, so as to determine that there is no fault in the target inertial measurement unit.
[0225] The calibration system of the inertial measurement unit provided in the embodiment of the present application forwards a detection instruction issued by a host computer to obtain routing table information corresponding to the target inertial measurement unit through a main controller and at least one slave controller connected to the target inertial measurement unit, and forwards the corresponding routing table information received from the target inertial measurement unit back to the host computer. Multi-level routing is used to record the correspondence between the location information of the inertial measurement unit and the product serial number, which can effectively avoid system instability problems such as data loss, garbled characters, and bit error rate, increase the number of inertial measurement units to be calibrated that can be connected to the calibration system, and quickly determine the location of a faulty inertial measurement unit, thereby improving the efficiency and applicability of calibration and fault detection, thereby improving the production efficiency of the inertial measurement unit.
[0226] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .
[0227] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The specific implementation of the steps of the fault detection method of the inertial measurement unit in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0228] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The specific implementation of the steps of the fault detection method of the inertial measurement unit in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0229] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0230] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0231] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0232] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0233] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0234] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A fault detection method for an inertial measurement unit, characterized in that: A calibration system applied to an inertial measurement unit, the calibration system comprising a host computer, a master controller and at least one slave controller, wherein each of the at least one slave controller is connected to at least one inertial measurement unit, and the fault detection method comprises: The host computer sends a detection instruction to the main controller to instruct the acquisition of routing table information corresponding to the target inertial measurement unit in the at least one inertial measurement unit; the routing table information is used to indicate the network path and data content of forwarded data; The master controller receives the detection instruction, and forwards the detection instruction to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit among the at least one slave controller; The target slave controller, in response to receiving corresponding routing table information sent by the target inertial measurement unit, records the routing table information into a sub-routing table of the calibration system, and forwards the sub-routing table to the host computer through the master controller; The host computer checks whether the sub-routing table meets the fault condition, and determines the fault information of the target inertial measurement unit based on the check result.
2. The method according to claim 1, characterized in that The master controller receives the detection instruction, and the step of forwarding the detection instruction to the target inertial measurement unit through a target slave controller connected to the target inertial measurement unit among the at least one slave controller comprises: The master controller controls the first serial port connected to the host computer and the second serial port connected to the at least one slave controller to perform initialization processing respectively; In response to both the first serial port and the second serial port being initialized, receiving the detection instruction; Performing cache polling and parsing verification processing on the detection instructions respectively, and sending the processed detection instructions to a target slave controller connected to the target inertial measurement unit among the at least one slave controller; The target receives the processed detection instruction from the controller and sends the detection instruction to the target inertial measurement unit.
3. The method according to claim 2, characterized in that The steps of performing cache polling and parsing verification processing on the detection instructions respectively, and sending the processed detection instructions to a target slave controller connected to the target inertial measurement unit among the at least one slave controller include: The detection instruction is saved in a first cache corresponding to the second serial port, and data in the first cache is polled and accessed; After performing the polling access, determining whether the second serial port is in a serial port interrupt state; If yes, extracting and parsing the detection instruction in the first cache to determine whether the detection instruction passes the data verification; If passed, the main position information corresponding to the main controller is packaged and integrated with the detection instruction to obtain the processed detection instruction, and the processed detection instruction is sent to the target slave controller connected to the target inertial measurement unit in the at least one slave controller.
4. The method according to claim 2, characterized in that: The step of the target receiving the processed detection instruction from the controller and sending the detection instruction to the target inertial measurement unit includes: The target slave controller controls the second serial port connected to the master controller and the third serial port connected to the target inertial measurement unit to perform initialization processing respectively; In response to the second serial port and the third serial port being initialized, receiving the processed detection instruction; The processed detection instruction is saved in a second cache corresponding to the third serial port, and data in the second cache is polled and accessed; After performing the polling access, determining whether the third serial port is in a serial port interrupt state; If yes, extracting and parsing the processed detection instruction in the second cache, and determining whether the processed detection instruction passes the data verification; If it passes, the main position information corresponding to the main controller is recorded, and the processed detection instruction is sent to the target inertial measurement unit.
5. The method according to claim 1, characterized in that The target slave controller records the routing table information into the sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit, and forwards the sub-routing table to the host computer through the main controller, including: The target slave controller, in response to receiving the corresponding routing table information sent by the target inertial measurement unit, performs cache polling and parsing verification processing on the routing table information, and records the processed routing table information into the sub-routing table of the calibration system; Sending the sub-routing table to the main controller; The main controller receives the sub-routing table and sends the sub-routing table to the host computer.
6. The method according to claim 5, characterized in that The steps of performing cache polling and parsing verification processing on the routing table information respectively, and recording the processed routing table information into the sub-routing table of the calibration system include: Saving the routing table information in a second cache corresponding to a third serial port connected to the target inertial measurement unit, and performing polling access to data in the second cache; After performing the polling access, determining whether the third serial port is in a serial port interrupt state; If so, extracting and parsing the routing table information in the second cache, obtaining the product serial number corresponding to the target inertial measurement unit, and determining whether the product serial number passes the data verification; If it passes, the slave position information corresponding to the target slave controller and the product serial number are packaged and integrated to obtain processed routing table information, and the processed routing table information is recorded in the sub-routing table of the calibration system.
7. The method according to claim 5, characterized in that The main controller receives the sub-routing table and sends the sub-routing table to the host computer, comprising: The main controller receives the sub-routing table, saves the sub-routing table to a third cache corresponding to the first serial port connected to the host computer, and performs polling access to the data in the third cache; After performing the polling access, determining whether the first serial port is in a serial port interrupt state; If not, the sub-routing table is sent to the host computer.
8. The method according to claim 1, characterized in that: The host computer checks whether the sub-routing table meets the fault condition, and based on the check result, determines the fault information of the target inertial measurement unit. The steps include: The host computer saves the received sub-routing table into the local memory, and determines whether the product serial number in the sub-routing table is equal to the preset value, so as to check whether the sub-routing table meets the fault condition and obtain the inspection result; If the inspection result is that the product serial number is equal to a preset value, determining that the fault information of the target inertial measurement unit is that a fault exists; If the checking result is that the product serial number is not equal to the preset value, it is determined that the fault information of the target inertial measurement unit is empty, so as to determine that there is no fault in the target inertial measurement unit.
9. A calibration system for an inertial measurement unit, characterized in that: The calibration system comprises: a host computer, a master controller and at least one slave controller; wherein the host computer comprises: An instruction sending module, used for sending a detection instruction to the main controller to instruct the acquisition of routing table information corresponding to a target inertial measurement unit in at least one inertial measurement unit; the routing table information is used to indicate a network path and data content for forwarding data; A fault checking module, used to check whether the sub-routing table of the calibration system meets the fault condition, and determine the fault information of the target inertial measurement unit based on the check result; The main controller comprises: An instruction receiving module, used for receiving the detection instruction; A first forwarding module, used for forwarding the sub-routing table to the host computer; The slave controller comprises: A second forwarding module, used for forwarding the detection instruction to the target inertial measurement unit; The information recording module is used for recording the routing table information into the sub-routing table of the calibration system in response to receiving the corresponding routing table information sent by the target inertial measurement unit.
10. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the fault detection method of the inertial measurement unit as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault detection method for an inertial measurement unit according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Synchronous measurement system
CN105247816A
Expansion interface and method for data communication through same
CN105718403A
Multi-level cache receiving and forwarding method based on FPGA synchronous serial port
CN112491496A
Batch automatic acquisition method and device for calibration data of IMU (Inertial Measurement Unit) module
CN115655304A
Visual-inertial positional awareness for autonomous and non-autonomous device
US10390003B1
