Communication signal conversion method and device based on daisy chain equipment

By establishing a unified communication protocol standard and dynamically loading plug-in modules, the problems of diversification and lack of standardization of existing daisy-chain communication chips are solved, and the effect of simplifying data interaction, improving development efficiency and system flexibility is achieved.

CN119892293AInactive Publication Date: 2025-04-25DONGGUAN HAILUN ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411871514.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The diversification and lack of standardization of existing daisy-chain communication chips have led developers to develop special communication interfaces for each chip, which increases system complexity and affects product compatibility and versatility.

Method used

By obtaining the technical parameters of multiple different types of daisy chain communication chips, establishing a unified communication protocol standard, and dynamically loading the corresponding plug-in modules to realize communication connection with daisy chain equipment. This method includes processing, converting and verifying communication data to ensure uniform and accurate data formats.

Benefits of technology

The data interaction process with daisy chain devices is simplified, the work burden of developers is reduced, the development efficiency and system flexibility and scalability are improved, and efficient and accurate data transmission is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention relates to a communication signal conversion method and device based on daisy chain equipment, and the method comprises the steps: obtaining first communication data, carrying out the processing of the first communication data, obtaining second communication data, transmitting the second communication data to the daisy chain equipment, obtaining third communication data, and carrying out the conversion of a communication signal based on the third communication data. And determining communication state parameters. According to the method, the first communication data is firstly obtained and standardized into the second communication data, so that the requirement of developing an independent communication interface for each specific chip is reduced, the data interaction process with daisy chain equipment is simplified, the workload of developers is remarkably reduced, the development efficiency is improved, and further, the development cost is reduced. The formatting of the second communication data ensures efficient and accurate data transmission, ensures that the data transmission from the upper computer to the daisy chain equipment is correct, reliably processes the returned third communication data, and ensures the stability of the third communication data according to the communication state parameters. Therefore, the universality, the compatibility and the expansibility of interaction among the devices are improved, and the development workload is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of daisy chain technology, and in particular to a communication signal conversion method and device based on daisy chain equipment. Background Art

[0002] Daisy chain technology mainly refers to a serial device connection method in which multiple devices are connected through a single communication path, and data is transmitted sequentially from one node to the next. This technical structure makes the expansion of the entire system simple and cost-effective. It is widely used in various electronic systems, such as computer networks, communication systems, and complex industrial control systems such as battery management systems (BMS). In this way, data exchange between multiple devices can be effectively managed to maintain efficient information flow.

[0003] However, the main problem with the existing technology is the diversity and lack of standardization of daisy chain communication chips, which leads to different communication solutions for different chips, greatly increasing the workload of developers. Each chip may need to develop a dedicated communication interface, which not only increases the complexity of the system, but also affects the compatibility and versatility of the product. The communication interaction between devices faces major challenges, and a universal solution is urgently needed to simplify the development process, reduce costs, and improve the flexibility and scalability of the system. Summary of the invention

[0004] In order to solve the shortcomings of the prior art, in a first aspect, an embodiment of the present application provides a communication signal conversion method based on a daisy chain device, comprising: Acquiring first communication data; Processing the first communication data to obtain second communication data; sending the second communication data to the daisy chain device to obtain third communication data; Based on the third communication data, a communication status parameter is determined.

[0005] Further, the first communication data is processed to obtain second communication data, including: Performing a first operation on the first communication data to obtain a first logic signal; A second operation is performed on the first logic level to obtain second communication data.

[0006] Further, performing a first operation on the first communication data to obtain a first logic signal includes: Get the preset data conversion rules; The data conversion rules include: If the first communication data is an analog signal, it is first converted into a digital signal by A / D conversion, and then a subsequent logic level conversion process is performed; Determine the data format and encoding method of the first communication data, and determine the corresponding conversion rule according to the determination result; According to the first communication data, obtaining a level value of a corresponding first logic signal from a preset conversion table; By threshold comparison, the value of the first communication data is compared with a preset threshold, and the first logic signal is determined according to the comparison result.

[0007] Further, performing a second operation on the first logic signal to obtain second communication data includes: Performing filtering and smoothing processing on the level of the first logic signal, and removing burrs and spike noise; According to a preset communication protocol, determining whether the first logic signal is an SPI communication signal or an I2C communication signal; If it is determined to be an SPI communication signal, a clock signal, a chip select signal and a data signal of the SPI communication protocol are obtained, and the first logic signal is parsed according to the SPI communication protocol to obtain SPI communication data; If it is determined to be an I2C communication signal, a clock signal and a data signal of the I2C communication protocol are obtained, and the first logic signal is parsed according to the I2C communication protocol to obtain I2C communication data; A data verification algorithm is used to verify the SPI communication data or I2C communication data obtained through analysis to determine whether the communication data is correct. If the verification is correct, the communication data is transmitted to the data processing module, and the communication data is processed by the data processing module to obtain processed second communication data; If the verification is wrong, the communication data is transmitted to the data error correction module, and the communication data is corrected by a data error correction algorithm to obtain second communication data after error correction.

[0008] Further, the second communication data is sent to the daisy chain device to obtain third communication data, including: Determine the communication interface type of the peripheral device and determine whether it is an SPI interface or an I2C interface; If it is an SPI interface, convert the second communication data into SPI format data; If it is an I2C interface, convert the second communication data into I2C format data; The converted data is sent to the daisy chain device through the corresponding communication interface; receiving the returned third communication data from the daisy chain device; According to the communication interface type, the third communication data is converted into data in a unified format to obtain processed third communication data.

[0009] Further, based on the third communication data, determining a communication state parameter comprises: Acquire third communication data in the communication interaction process with the daisy chain product according to a preset data format; Determine whether the third communication data meets the preset data format requirement, and if so, execute the next step; If not satisfied, re-acquire the third communication data; Extracting parameters related to the communication status from the third communication data that meets the data format requirements; According to the preset parameter range, determine whether the extracted communication status parameters are within a reasonable range. If they are within a reasonable range, proceed to the next step; If it is not within a reasonable range, reacquire the third communication data and extract the parameters; The extracted communication status parameters are input into a pre-established communication quality evaluation model, and the communication quality is evaluated using a support vector machine algorithm; According to the communication quality evaluation results, a decision tree algorithm is used to determine whether the current communication link state is stable. If stable, the current communication state parameters are determined; If it is unstable, a link abnormality prompt message will be sent.

[0010] Furthermore, before the step of obtaining the first communication data, the method further includes: Get technical parameters of multiple different types of daisy chain communication chips; According to the technical parameters, a unified communication protocol standard is established, wherein the communication protocol standard includes a unified data frame format and a control instruction set; Get the device descriptor of the connected daisy-chain device through broadcast detection; Parsing the device descriptor to obtain the chip type and communication parameters of the daisy chain device; According to the chip type, dynamically load the corresponding plug-in module; The communication protocol standard is adopted to establish a communication connection with the daisy chain device.

[0011] In a second aspect, an embodiment of the present application provides a communication signal conversion device based on a daisy chain device, comprising: An acquisition device, used for acquiring first communication data; A first determining module, configured to process the first communication data to obtain second communication data; a second determining module, configured to send the second communication data to a daisy chain device to obtain third communication data; The third determining module is used to determine a communication state parameter based on the third communication data.

[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of a communication signal conversion method based on a daisy chain device as described in the first aspect above are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a communication signal conversion method based on a daisy chain device as described in the first aspect above are implemented.

[0014] The embodiment of the present invention first obtains the first communication data and standardizes it into the second communication data, reducing the need to develop an independent communication interface for each specific chip, which not only simplifies the data interaction process with the daisy chain devices, but also significantly reduces the workload of developers and improves development efficiency. Furthermore, the formatting of the second communication data ensures efficient and accurate data transmission, ensures correct data transmission from the host computer to the daisy chain device, and reliably processes the returned third communication data. The stability of the third communication data is then ensured by the communication status parameters, thereby improving the versatility, compatibility, and extensibility of the interaction between the devices and reducing the development workload. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0016] Figure 1 is a flow chart of a communication signal conversion method based on a daisy chain device according to a first embodiment of the present invention; Figure 2 is a structural block diagram of a communication signal conversion device based on a daisy chain device according to a second embodiment of the present invention; Figure 3 is a structural block diagram of a computer device according to another embodiment of the present invention; Figure 4 is a structural block diagram of an electronic device according to another embodiment of the present invention; Figure 5 It is a working principle diagram of a multi-channel SPI communication controller according to an embodiment of the present invention; Figure 6It is a schematic diagram of a communication system with a daisy chain structure according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, and the well-known modules, units and their connections, links, communications or operations are not shown or described in detail. In addition, the described features, architectures or functions can be combined in any way in one or more embodiments. It should be understood by those skilled in the art that the various embodiments described below are only for illustration and not for limiting the scope of protection of the present invention. It can also be easily understood that the modules or units or processing methods in the various embodiments described herein and shown in the drawings can be combined and designed according to various different configurations. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0018] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0019] The limitations of various nouns or methods referred to in the following embodiments, except for those that are logically untenable, are generally based on the broad concepts that can be implemented under the premise of the disclosure in the embodiments. Under such understanding, the various specific subordinate specific limitations of the nouns or methods should be regarded as the inventive content of the present invention, and should not be understood narrowly or interpreted in a biased manner on the grounds that the specification does not disclose the specific limitations. Similarly, under the premise that it can be implemented logically, the order of the steps in the method is flexible and changeable, and the specific subordinate specific limitations in the broad concepts of various nouns or methods all belong to the protection scope of the present invention.

[0020] First embodiment: Please refer to Figure 1 As shown, this embodiment proposes a communication signal conversion method based on a daisy chain device, including S11-S14, wherein: S11, obtaining first communication data.

[0021] First, it is necessary to establish a connection with an external device or sensor to ensure that data can be effectively received. This process may involve multiple communication interfaces, such as UART, SPI, or I2C, to adapt to the communication requirements of different devices.

[0022] In actual operation, you first need to identify the type of access device and the communication protocol it supports. You can broadcast detection and acquisition through the device's descriptor to ensure the accuracy and reliability of data acquisition.

[0023] The acquired data may include various signal forms, such as analog signals, TTL levels, or CMOS levels. In this step, the system should consider the format and encoding of the signal for subsequent appropriate processing.

[0024] Once the acquired data is collected, the system needs to conduct a preliminary check to ensure its integrity and validity. This step usually involves determining whether the data conforms to the preset data format to avoid errors in subsequent processing. In addition, depending on different application requirements, the system may also need to configure preset parameters or conditions to ensure that it can adapt to diverse equipment characteristics.

[0025] As a preferred solution but not a limitation, before step S11, steps S100 to S104 are also included, wherein: S100, obtaining technical parameters of multiple different types of daisy chain communication chips; According to the technical parameters, a unified communication protocol standard is established, wherein the communication protocol standard includes a unified data frame format and a control instruction set; S101, obtaining a device descriptor of a connected daisy chain device through broadcast detection; S102, parsing the device descriptor to obtain the chip type and communication parameters of the daisy chain device; S103, dynamically loading a corresponding plug-in module according to the chip type; S104, using the communication protocol standard to establish a communication connection with the daisy chain device.

[0026] Specifically, in step S100, it is first necessary to collect the technical parameters of multiple different types of daisy chain communication chips. This process involves an in-depth study of the mainstream daisy chain communication chips on the market, including their performance indicators, supported communication protocols, operating voltage, data transmission rate, interface type and compatibility. By consulting the chip manufacturer's technical documents, data manuals and related application examples, developers can fully understand the characteristics and application scenarios of different chips. The key to this step is that the system can organize these technical parameters into an easy-to-process format to facilitate the establishment of a subsequent unified communication protocol standard.

[0027] Through the S100 step, a comprehensive daisy chain communication chip database is established, which lays a solid foundation for the subsequent formulation of unified communication protocol standards, ensuring that there is a basis to follow when facing different chips, thereby achieving system flexibility and scalability.

[0028] In step S101, the device descriptor of the connected daisy-chain device is obtained through broadcast detection technology. This process is an important part of realizing automated communication connection: broadcast detection allows the system to send detection requests to all potential daisy-chain devices, inquiring about their existence and basic information. After receiving the request, the device must return the corresponding device descriptor, including its model, supported communication protocols, current status and other relevant information. Through step S101, the overview of all connected devices can be quickly obtained, providing an important basis for subsequent data analysis and application of communication protocols.

[0029] Step S102 parses the device descriptor obtained in step S101 to extract the chip type and communication parameters of the daisy chain device. This process includes converting the original device descriptor information into an operable data format to ensure that the system can effectively use this information for subsequent communication management. The parsing process involves field-by-field analysis of the device descriptor, including chip model, manufacturer, supported communication protocol, maximum data transmission rate, address configuration, etc. In this step, it will also be compared with the existing daisy chain chip database to verify the validity of the extracted communication parameters. If inconsistencies or error information are found during the parsing process, the system must be able to re-initiate broadcast detection to obtain the latest device descriptor. Through step S102, the specific characteristics of the connected daisy chain device can be clearly understood, and full preparations can be made for the next step of dynamic loading of the plug-in module.

[0030] In step S103, the corresponding plug-in module is dynamically loaded according to the resolved chip type. Each daisy chain chip supports different communication protocols and operation modes. Therefore, the system must select the appropriate plug-in module according to the specific type of the device to ensure the efficiency and reliability of communication. The plug-in module contains drivers, communication protocol implementations and other functional modules related to the specific chip. The design of these modules should fully consider the characteristics of the chip, including data transmission rate, data format and electrical characteristics. Through the dynamic loading mechanism, the system can select the appropriate module according to the actual connected device type at runtime without restarting or manual intervention, thereby greatly improving the flexibility of the system and user experience.

[0031] In step S104, based on the unified communication protocol standard established in the previous steps, a communication connection is established with the daisy chain device to ensure that different types of devices can exchange data seamlessly.

[0032] First, you need to select a suitable communication protocol (such as SPI or I2C) based on the technical parameters obtained in S100 and the communication parameters parsed in S102. Then, the system will configure the corresponding communication parameters according to the selected communication protocol standard, including data frame format, clock signal setting and control instruction set. This process ensures that the system can follow specific communication specifications when interacting with daisy chain devices to ensure data integrity and accuracy.

[0033] During the actual connection process, the system will send a connection request to the target daisy chain device and wait for the device's confirmation response. If the device accepts the connection request, the system will establish a stable communication channel to start two-way data transmission. In addition, in order to improve the reliability of communication, the system may also perform a preliminary status check after the connection is established to ensure the stability and performance of the link.

[0034] Through the implementation of step S104, the system can quickly adapt to the communication needs of different devices in a dynamic environment, thereby achieving efficient signal conversion and data exchange.

[0035] S12: Process the first communication data to obtain second communication data.

[0036] Step S12 ensures that the data meets the subsequent communication requirements and enhances the compatibility and reliability between the system and the daisy chain devices, as follows: As a preferred solution but not a limitation, this step S12 also includes S121-S122, wherein: S111 , performing a first operation on the first communication data to obtain a first logic signal (TTL / CMOS logic level).

[0037] S112, performing a second operation on the first logic level to obtain second communication data (SPI / I2C communication signal).

[0038] Steps S111-S112 are specifically as follows: As a preferred solution but not a limitation, this step S121 also includes S1211-S1215, wherein: S1211, obtaining a preset data conversion rule; In step S1211, the system first obtains a set of preset data conversion rules, which provide a guiding framework for subsequent data processing. These rules are designed according to different communication protocols, data types and application scenarios to ensure that the system can flexibly respond to various input signals.

[0039] Specifically, the data conversion rules are as follows: S1212, if the first communication data is an analog signal, first convert it into a digital signal by using A / D conversion, and then perform subsequent logic level conversion processing; S1213, determining the data format and encoding method of the first communication data, and determining a corresponding conversion rule according to the determination result; S1214, acquiring a level value of a corresponding first logic signal from a preset conversion table according to the first communication data; S1215, comparing the value of the first communication data with a preset threshold through threshold comparison, and determining a first logic signal according to the comparison result.

[0040] In step S1212, after the system first identifies that the first communication data is an analog signal, it must perform A / D conversion, which is a process of converting a continuous analog signal into a discrete digital signal for subsequent digital processing and logic level conversion. The implementation steps of A / D conversion generally include sampling, quantization, and encoding.

[0041] 1. Sampling; The analog signal is sampled regularly, usually according to the Nyquist sampling theorem. The sampling frequency should be at least twice the highest frequency of the signal to avoid aliasing. The result of sampling is a series of voltage values ​​representing the input signal at different time points.

[0042] 2. Quantification; The step of converting the sampled voltage value into a finite number of discrete values ​​is called quantization. The accuracy of quantization depends on the resolution of the system, usually expressed in bits. After quantization, the voltage value is mapped to the corresponding digital value to ensure that the characteristics of the analog signal can be accurately reflected in subsequent processing.

[0043] 3. Coding; Finally, the quantized value needs to be converted into a digital format through a specific encoding method (such as binary encoding). After the A / D conversion is completed, the analog signal is effectively converted into a digital signal, so that subsequent logic level conversion can be performed in the digital domain.

[0044] In step S1213, the system analyzes the acquired first communication data to determine its data format and encoding method. This process is a key step to ensure correct signal conversion, because different data formats and encoding methods will affect data analysis and processing strategies.

[0045] 1. Data format identification; The system first needs to identify the type of input data. For example, the data may be in binary, hexadecimal, or ASCII text format. By analyzing the data header information, data length, and content characteristics, the system can accurately determine the data format.

[0046] 2. Identify the encoding method; After determining the data format, the system then needs to identify the data encoding method, which may include common NRZ, Manchester encoding, etc. Each encoding method has its own unique decoding and processing requirements. The system determines the encoding method by looking at the waveform or encoding characteristics of the signal.

[0047] 3. Determine the conversion rules; Based on the judgment of data format and encoding method, the system will select corresponding conversion rules. These rules may cover specific decoding algorithms, format conversion processes or logic level generation strategies.

[0048] As a preferred solution but not a limitation, this step S122 also includes S1221-S1227, wherein: S1221: filtering and smoothing the level of the first logic signal, and removing burrs and spike noise; In step S1221, the first logic signal is first filtered and smoothed to eliminate burrs and peak noise caused by environmental interference or electrical noise.

[0049] Specifically, a low-pass filter or digital filtering algorithm (such as moving average filtering, Kalman filtering, etc.) is used to process the input signal. The low-pass filter can effectively suppress high-frequency noise and retain only the effective components of the signal. By adjusting the cutoff frequency of the filter, the system can optimize the noise suppression effect according to actual needs. After filtering, the signal will become smoother, which helps to reduce the impact of sudden or rapid changes. For example, in SPI and I2C communications, the stability of the signal directly affects the interpretation and transmission of data, so it is crucial to maintain the coherence of the signal.

[0050] Subsequently, through effective filtering and signal smoothing, short-term spikes and interference can be removed, which not only improves the reliability of the signal but also lays a good foundation for subsequent data analysis.

[0051] S1222: Determine, according to a preset communication protocol, whether the first logic signal is an SPI communication signal or an I2C communication signal; In step S1222, it is necessary to determine whether the processed first logic signal belongs to the SPI communication protocol or the I2C communication protocol.

[0052] Among them, there are significant differences in the signal characteristics of SPI and I2C. SPI usually uses multiple signal lines, such as clock signal (SCK), chip select signal (CS) and data signal (MOSI / MISO), while I2C uses a single two-wire protocol, including clock line (SCL) and data line (SDA). The system makes a preliminary judgment by analyzing the number of signal lines and signal behavior.

[0053] Specifically, during the judgment process, the timing characteristics of the signal will also be analyzed. The clock frequency of SPI is usually higher and more flexible, while I2C uses a lower clock frequency, and its data transmission is based on the master-slave mode. After comparing these characteristics, the communication protocol used can be accurately identified. Then, through analysis and judgment, the system finally determines whether the received first logic signal is an SPI or I2C communication signal.

[0054] S1223: If it is determined to be an SPI communication signal, a clock signal, a chip select signal, and a data signal of the SPI communication protocol are obtained, and the first logic signal is parsed according to the SPI communication protocol to obtain SPI communication data; In step S1223, if the system determines that the first logic signal is an SPI communication signal, it will perform corresponding analysis to extract SPI data.

[0055] First, obtain the clock signal (SCK), chip select signal (CS) and data signal (MOSI / MISO) related to the SPI protocol. By monitoring the logic signals, the system can clearly identify the state changes of each signal to facilitate subsequent data extraction. After obtaining the SPI protocol signal, the system will perform data analysis according to the rules of the SPI communication protocol. The system will sample the data signal according to the changing timing of the clock signal to extract valid data information. After analysis, the system will generate a set of data that conforms to the SPI protocol format. These data include control instructions, status feedback or transmitted data packets to ensure the integrity and validity of the information. Through this process, the system successfully extracts the SPI communication data, laying the foundation for subsequent processing and analysis.

[0056] S1224: If it is determined to be an I2C communication signal, a clock signal and a data signal of the I2C communication protocol are obtained, and the first logic signal is parsed according to the I2C communication protocol to obtain I2C communication data; In step S1224, if it is determined that the first logic signal is an I2C communication signal, data analysis is performed according to the I2C communication protocol to extract valid I2C data.

[0057] First, obtain the signal lines required by the I2C protocol, namely the clock signal (SCL) and the data line (SDA). These two signal lines work together in I2C communication. The clock signal controls the rhythm of data transmission, while the data line carries the actual information.

[0058] After obtaining the I2C signal, the system will parse it according to the specifications of the I2C protocol. The I2C protocol adopts the master-slave mode. The system needs to monitor the changes of SCL and SDA to extract information such as the start bit, address bit, data bit and stop bit. The parsing process must follow the I2C frame structure to ensure data integrity.

[0059] After parsing, the system will construct data that conforms to the I2C protocol format. This data contains information such as device address, read and write instructions, data length, and actual data, ensuring that the generated I2C communication data can meet subsequent data processing requirements and provide necessary information support for communication with I2C devices.

[0060] S1225: Using a data verification algorithm to verify the SPI communication data or I2C communication data obtained by the analysis, to determine whether the communication data is correct; In step S1225, the system verifies the parsed SPI or I2C communication data to ensure the integrity and correctness of the data during the transmission process.

[0061] This step uses common data verification algorithms such as CRC (cyclic redundancy check), parity check or checksum. During the verification process, the corresponding verification calculation will be performed on the parsed data block. First, the system will generate a check code according to the predefined verification rules, and then compare the generated check code with the check code attached to the data. If the two match, it means that there is no error in the data transmission process. If the verification results do not match, the system will mark the data as erroneous data. Through this step, the system can quickly identify and exclude unreliable data to ensure the accuracy of subsequent processing and analysis. Data verification not only enhances the robustness of the system, but also improves the reliability of the overall communication.

[0062] S1226: If the verification is correct, the communication data is transmitted to the data processing module, and the communication data is processed by the data processing module to obtain processed second communication data; In step S1226, after confirming that the communication data verification has passed, the system transmits the valid data to the data processing module for further processing, and transmits the verified SPI or I2C communication data to the data processing module through the internal bus or communication interface. Specifically, in the data processing module, the system will perform various processing on the transmitted data, including decoding, data format conversion, statistical analysis or information extraction, etc. Through these processing, the system can extract valuable information from the original data for subsequent use.

[0063] The processed data will be output in the form of second communication data. The data will be in a unified format and meet system requirements. It can be further used for user interface display, storage or input of other system modules. Through this process, the system realizes the effective flow of data and provides support for subsequent operations.

[0064] S1227: If the verification is wrong, the communication data is transmitted to the data error correction module, and the communication data is corrected by a data error correction algorithm to obtain the second communication data after error correction; In step S1227, if the verification result shows that there are errors in the communication data, the system will start the data error correction mechanism and transmit the problematic data to the data error correction module for processing.

[0065] S13, sending the second communication data to the daisy chain device to obtain third communication data.

[0066] In step S13, the system is responsible for sending the processed second communication data to the daisy chain device and receiving the third communication data returned by it. This process ensures the effective transmission of data between devices and is the core link for realizing the system function. By interacting with the daisy chain device, the system can obtain necessary feedback information and further optimize communication and control.

[0067] As a preferred solution but not a limitation, this step S13 also includes S131-S136, wherein: S131: Determine the communication interface type of the peripheral device, and determine whether it is an SPI interface or an I2C interface; In step S131 , the system first needs to determine the type of communication interface used by the connected peripheral device.

[0068] This judgment is the basis for subsequent data conversion and transmission, ensuring that the system can select the appropriate communication protocol according to device requirements.

[0069] The system determines the type of interface used by the peripheral device by analyzing its physical connection and signal characteristics. SPI usually requires multiple signal lines, including clock line, chip select line and data line, while I2C only uses two lines (clock line and data line). The system can initially identify the interface type by monitoring the number of connection lines and their behavior.

[0070] In actual applications, the communication interface types of devices are diverse, and SPI and I2C interfaces may exist at the same time. The system needs to be flexible to adapt to devices with different interface types to ensure the compatibility and scalability of the system in various environments.

[0071] The result of the judgment will directly affect the way data is processed and sent in subsequent steps, ensuring that the system can adopt appropriate communication strategies according to different device types.

[0072] S132: If it is an SPI interface, convert the second communication data into SPI format data; In step S132, if the system determines that the peripheral device uses the SPI interface, the second communication data is converted into a data format suitable for the SPI protocol. This step ensures that the data can be correctly parsed and understood, ensuring the success of the communication.

[0073] The SPI protocol has strict requirements on the data format, including the number of data bits, timing, and frame structure. The system reformats the second communication data according to the SPI specification to meet these requirements. Usually, SPI data is transmitted in MSB (most significant bit) first.

[0074] During the conversion process, the system will package the data according to the data frame structure defined by the SPI protocol. This packaging process must include control signals (such as chip select signals) and data content to ensure that the sent data can be correctly parsed by the target device.

[0075] After the format conversion, the SPI data will be ready for sending. The system ensures that the data is strictly checked before sending to prevent communication failure due to format errors.

[0076] S133: If it is an I2C interface, convert the second communication data into I2C format data; In step S133, if it is determined that the peripheral device uses an I2C interface, the system converts the second communication data into a format that complies with the I2C protocol. This conversion process is the key to ensuring that data can be correctly transmitted through the I2C bus.

[0077] The I2C protocol specifies a specific data frame format, including a start bit, address bit, data bit, and stop bit. The system needs to ensure that the second communication data is formatted according to these requirements to meet the I2C specification.

[0078] During the conversion process, the system will build a complete I2C data frame. First, the system will add the start bit, then insert the device address and read and write instructions, and finally attach the actual data and add the stop bit. This process ensures that the data can be correctly transmitted on the I2C bus.

[0079] The converted I2C data will be in a waiting state. The system ensures the integrity and correctness of the data and prevents format errors during transmission, thereby improving the reliability of communication.

[0080] S134: sending the converted data to the daisy chain device via the corresponding communication interface; In step S134, the system will send the converted data to the daisy chain device through the corresponding communication interface according to the previous judgment and formatting results. This process is the key link to ensure the success of data transmission.

[0081] According to the previous judgment results, the system will select the corresponding SPI or I2C interface to send data. In this process, the system needs to ensure good connection with the peripheral device to avoid data transmission failure due to poor contact or line failure.

[0082] When sending data, the system will coordinate the transmission of data through control signals such as chip select signals or clock signals. For example, in SPI, the system needs to activate the chip select signal to select the target device and send data under the control of the clock signal. In I2C, data will be transmitted synchronously through the clock signal.

[0083] Once the data is successfully sent, the system will wait for feedback from the daisy chain device to ensure the correct reception of the data and the smooth progress of subsequent operations. The successful completion of this step lays the foundation for subsequent data reception.

[0084] S135: receiving the third communication data returned from the daisy chain device; In step S135 , the system receives the third communication data returned by the daisy chain device, which is a key link in data interaction and ensures that the system can obtain feedback and status information of the device.

[0085] After sending data, the system needs to prepare a mechanism to receive the data. This process may involve monitoring the signal line and setting a suitable time window for receiving data to avoid losing the signal.

[0086] Once the daisy chain device returns data, the system will receive the data through the corresponding SPI or I2C interface. In SPI, the system will read the data through the clock signal, while in I2C, the system will capture the data signal according to the timing of the protocol.

[0087] The received third communication data will be temporarily stored for subsequent processing and analysis. The system needs to ensure the integrity and accuracy of the data so that the information can be used for decision-making and control in subsequent steps.

[0088] S136: Convert the third communication data into data in a unified format according to the communication interface type to obtain processed third communication data; In step S136, the system converts the third communication data received from the daisy chain device into a unified format according to the communication interface type determined previously. This process ensures that data returned by different protocols can be effectively processed within the system.

[0089] Since the system may communicate with multiple different types of devices at the same time, it is very important to ensure that the received data can be unified into a specific format. This format will help in subsequent data processing and analysis, and reduce errors caused by inconsistent formats.

[0090] During the conversion process, the system parses and formats the data according to the characteristics of the communication interface. For example, for SPI data, the system needs to parse the received raw data into a standard data structure; for I2C data, the system will extract the necessary fields from the data frame and organize it accordingly.

[0091] After the third-party communication data is converted into a unified format, it will be ready for subsequent processing and use. The system ensures the consistency of data during storage and analysis, improving the robustness and efficiency of the entire communication system.

[0092] S14: Determine a communication status parameter based on the third communication data.

[0093] In step S14, the system performs a series of processing on the third communication data received from the daisy chain device to extract information related to the communication status and evaluate the communication quality. This process ensures that the system can monitor the stability and effectiveness of the communication in real time and provide a basis for subsequent decision-making.

[0094] As a preferred solution but not a limitation, this step S14 also includes S141-S149, wherein: S141: Acquire third communication data in the communication interaction process with the daisy chain product according to a preset data format; In step S141, the system first extracts the third communication data according to a preset data format. This process involves filtering out information related to communication interaction from the received raw data. The preset data format is usually designed based on a standardized protocol to ensure data consistency and parseability.

[0095] By extracting data according to a preset format, the system can ensure that the information obtained meets the requirements of subsequent processing. This extraction process usually requires the use of parsing algorithms to ensure that the acquired data includes the necessary identifiers and signal parameters and can reflect the current communication status.

[0096] The system will identify specific fields from the raw data, such as device address, data type, checksum, etc., which play a key role in subsequent evaluation. In addition, the system will store this data for subsequent analysis and decision support.

[0097] After this step, the system will obtain a formatted third communication data, which will provide the basis for subsequent steps, enabling the system to accurately analyze the communication status and take necessary actions.

[0098] S142: Determine whether the third communication data meets the preset data format requirement, if yes, execute S143; In step S142, the system performs format verification on the extracted third communication data to ensure that it meets the preset data format requirements. This process is a key step in ensuring data validity and availability.

[0099] Format validation ensures that the structure and content of the data meet the system requirements and avoids parsing errors caused by incorrect data format. By checking the number, type, and order of data fields, the system can confirm whether the data is usable.

[0100] The system usually sets a series of criteria, such as the length of the data packet, the field type (such as integer, floating point number), and the presence of specific flags. These criteria form the basis for evaluating the validity of the third-party communication data.

[0101] If the data format meets the requirements, the system will continue S143; if not, the data acquisition process needs to be restarted. This judgment mechanism improves the flexibility and reliability of the system in processing communication data, ensuring that subsequent analysis is based on valid data.

[0102] S143: If not satisfied, reacquire the third communication data; In step S143, if the format verification in step S142 fails, the system will re-acquire the third communication data. This mechanism ensures that the system always performs subsequent processing based on reliable data.

[0103] The system will resend a request to the daisy chain device to obtain new third communication data according to the previous acquisition strategy. This process may include re-establishing the communication connection or sending a specific command to prompt the device to return the required data.

[0104] After re-obtaining the data, the system will perform format verification again. This loop mechanism ensures that the system can continuously try to obtain compliant data until the preset requirements are met.

[0105] This strategy improves the efficiency and reliability of the system and avoids the interruption of the entire communication process due to a single acquisition failure. By continuously retrying, the system can adapt to unstable communication environments and ensure that valid data can be obtained in the end.

[0106] S144: Extracting parameters related to the communication status from the third communication data that meets the data format requirements In step S144, the system extracts parameters related to the communication status from the third communication data that meets the format requirements. This process is the core link in realizing communication quality monitoring, ensuring that the system can obtain real-time status information, and extracting parameters related to the communication status helps to analyze the stability and efficiency of the communication in the subsequent process. These parameters may include signal strength, transmission delay, error rate, etc. These indicators are crucial to evaluating the quality of communication. The system will use the parsing algorithm to extract the required fields from the verified data structure. For example, if the data contains a transmission delay field, the system will record the value for subsequent analysis. At the same time, the system will classify the extracted parameters for subsequent processing, and the extracted parameters will be stored in a specific data structure for analysis in subsequent steps.

[0107] S145: judging whether the extracted communication status parameter is within a reasonable range according to a preset parameter range; In step S145, the system determines the validity of the extracted communication status parameters according to the preset parameter range. This step ensures that the extracted parameters meet the expected standards and can truly reflect the status of the communication link.

[0108] The preset parameter ranges are usually formed by historical data analysis, industry standards or system design requirements. These ranges can include signal strength, delay time, error rate, etc. The specific values ​​will be set according to the specific needs of the system. Reasonable parameter ranges can help the system identify abnormal situations and respond in time.

[0109] The system compares the extracted communication status parameters with the upper and lower limits of the preset range to confirm whether they are within a reasonable range. This judgment usually involves simple logical judgment, such as using conditional statements to detect whether the parameters exceed the upper or lower limits. Once the parameters are found to be out of range, the system will start the corresponding processing flow.

[0110] If the parameters are within a reasonable range, the system will continue to S146 and enter the subsequent communication quality evaluation process. If the parameters are not within a reasonable range, the system needs to re-acquire the third communication data and extract new parameters. This step ensures that the parameters used by the system during analysis are true and reliable, which helps to improve the overall communication quality monitoring capability.

[0111] S146: If it is not within a reasonable range, reacquire the third communication data and extract parameters; In step S146, when the system finds that the extracted communication state parameter is not within a reasonable range, it will start the process of re-acquiring the third communication data. This mechanism is to ensure the data accuracy and reliability of the system, thereby improving the overall communication performance.

[0112] The system will resend data requests to the daisy chain device, and may need to use specific commands or data formats to obtain new data depending on the specific communication protocol. This process may involve re-establishing the connection to ensure that the latest communication data is obtained.

[0113] After reacquiring the data, the system will repeat the format verification and parameter extraction in the previous steps. This repeated verification mechanism ensures that the system can continuously adjust and adapt to changes in the communication environment, ensuring that the data finally extracted is valid and reliable.

[0114] Once the new data is successfully acquired, the system will extract the parameters related to the communication status again and make a reasonable judgment according to step S145. Through this process, the system can continuously track the health status of the communication link and reduce the risk of communication failure caused by inaccurate data.

[0115] S147: inputting the extracted communication status parameters into a pre-established communication quality evaluation model, and using a support vector machine algorithm to evaluate the communication quality; In step S147, the system inputs the extracted communication status parameters into the established communication quality evaluation model, and uses a support vector machine (SVM) algorithm to perform evaluation to determine the quality and stability of the current communication link.

[0116] The model is trained with historical data to identify key factors that affect communication quality. Support vector machine is a supervised learning model that is particularly suitable for classification and regression problems. It maximizes the interval between categories by finding the best separating hyperplane, thereby effectively predicting the category of new data.

[0117] The extracted parameters will be standardized and preprocessed to meet the input requirements of the SVM algorithm. The system will use a preset feature set to ensure that the input data conforms to the standard format when training the model. The success or failure of this step directly affects the subsequent communication quality evaluation results.

[0118] Once the model calculation is completed, the system will obtain the evaluation results of the communication quality. These results will provide a basis for decision-making in subsequent steps, help the system identify whether the communication status is normal, and adjust relevant parameters in time to optimize communication performance.

[0119] S148: Based on the communication quality evaluation result, a decision tree algorithm is used to determine whether the current communication link state is stable; In step S148, the system further applies a decision tree algorithm to determine the status of the current communication link based on the evaluation results of the support vector machine algorithm. This process is intended to achieve in-depth analysis of the communication status to ensure the stability and reliability of the system in actual applications.

[0120] The decision tree algorithm is a supervised learning method for classification and regression analysis. It divides data into layers by building a decision tree model to facilitate fast and efficient decision making. In this step, the system will build a decision tree to determine the stability of the link based on the results of the communication quality assessment.

[0121] The system will set a series of judgment criteria, such as signal strength, delay, error rate, etc., and select branches on the decision tree based on these indicators. The final leaf node of the decision tree will represent the classification result of the communication status, such as "stable" or "unstable".

[0122] If the result shows that the link status is stable, the system will confirm the current communication status parameters and record this information for future reference. If the result shows that the link status is unstable, the system will enter the exception handling process to ensure that the communication link can be restored to a stable state in time.

[0123] S149: If it is unstable, a link abnormality prompt message is sent; In step S149, if the system determines that the current communication link is unstable through the decision tree algorithm, it will immediately send a link abnormality prompt message. This link is crucial to maintaining the normal operation of the system and user experience.

[0124] The system's abnormality prompt mechanism can be implemented in a variety of ways, such as displaying through the user interface, sending emails, or pushing notifications through the network. The prompt information usually includes the type of abnormality, the time of occurrence, and the possible impact, so that users or maintenance personnel can take timely measures.

[0125] By sending abnormal prompt information, the system can immediately provide feedback to relevant personnel when communication failure occurs, ensuring a quick response. This mechanism helps improve the maintainability of the system, reduce downtime, and ensure high system availability.

[0126] After receiving the abnormal prompt information, the user or system maintenance personnel can take corresponding measures according to the prompt, such as checking the device connection, adjusting the communication parameters or performing hardware maintenance. The system can also record these abnormal events for subsequent analysis and optimization to improve the stability and reliability of the overall communication link.

[0127] Second embodiment: Please refer to Figure 2 As shown, this embodiment proposes a communication signal conversion device 100 based on a daisy chain device, comprising: An acquisition device 110, used for acquiring first communication data; A first determining module 120, configured to process the first communication data to obtain second communication data; A second determining module 130, configured to send the second communication data to a daisy chain device to obtain third communication data; The third determination module 140 is configured to determine a communication state parameter based on the third communication data.

[0128] Specifically, the communication signal conversion device 100 based on the daisy chain device of the second embodiment significantly improves the flexibility and scalability of the system through modular design. First, the acquisition device 110 can efficiently acquire the first communication data and lay the foundation for subsequent processing, ensuring the accuracy and real-time nature of data collection. Secondly, the first determination module 120 can perform intelligent processing on different types of first communication data to generate second communication data suitable for subsequent transmission, thereby enhancing the compatibility of the system with various types of equipment. This processing not only reduces the dependence on specific communication protocols, but also reduces the complexity of the system.

[0129] In addition, the second determination module 130 is responsible for sending the processed second communication data to the daisy chain device to ensure the smoothness and efficiency of the communication process and obtain the third communication data in real time. Finally, the third determination module 140 analyzes the third communication data to accurately judge the communication status parameters, thereby improving the monitoring capability of communication quality and the stability of the system.

[0130] Specifically, refer to Figure 5-Figure 6 The present invention also provides an isolated communication SPI protocol daisy chain controller: 1 is a CANFD communication interface, 2 is an RS232 communication interface, 3 is an MCU, 4 is an isolated SPI chip, 5 is an electrical isolation device, 6 is a first channel, 7 is a second channel, and 8 is an external slave device.

[0131] Specifically, the MCU unit receives instructions input from the CANFD and RS232 interfaces, and converts the instructions into SPI communication format. The MCU is connected to the SPI isolation chip via the SPI interface. The chip is used to achieve electrical isolation communication with multiple external slave devices. The controller supports two isolated SPI communication channels, each of which can be flexibly switched between master and slave modes. The multiple slave devices are connected in series in a daisy chain manner via the SPI interface to achieve cascade transmission of data.

[0132] The SPI protocol daisy chain controller of this isolated communication has the following beneficial effects: 1. Realize electrical isolation communication based on SPI protocol, effectively preventing electrical noise and interference.

[0133] 2. Direct instruction forwarding is realized, which can be applied to a variety of different types of slave devices.

[0134] 3. Support multi-channel SPI communication and can handle data transmission tasks of different channels at the same time.

[0135] 4. Supports daisy chain communication, which is suitable for cascade control of multiple slave devices, greatly simplifying the wiring complexity of the communication system.

[0136] 5. Supports master-slave mode switching, provides flexible communication mode selection, and adapts to various application scenarios.

[0137] In summary, this embodiment not only improves data processing efficiency and reduces development costs, but also enhances the adaptability of the system, providing a good foundation for future diversified application scenarios, thus showing broad application prospects in the fields of smart devices and industrial control.

[0138] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0139] An embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, a communication signal conversion method based on a daisy chain device as described in the above embodiments is implemented.

[0140] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of each embodiment of the communication signal conversion method based on a daisy chain device as described above. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0141] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.

[0142] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a communication signal conversion method based on a daisy chain device as in the above-mentioned embodiments is implemented.

[0143] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a communication signal conversion method based on a daisy chain device is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0144] The electronic device in the embodiment of the present application can be various types of electronic devices, or it can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0145] Alternatively, if Figure 4 As shown, an embodiment of the present application also provides an electronic device 200, including a processor 201, a memory 202, and a program or instruction stored in the memory 202 and executable on the processor 201. When the program or instruction is executed by the processor 201, each process of the above-mentioned embodiment of a communication signal conversion method based on a daisy chain device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0146] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0147] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A communication signal conversion method based on daisy chain devices, characterized in that: include: Acquiring first communication data; Processing the first communication data to obtain second communication data; sending the second communication data to the daisy chain device to obtain third communication data; Based on the third communication data, a communication status parameter is determined.

2. The control method according to claim 1, characterized in that: The processing of the first communication data to obtain second communication data includes: Performing a first operation on the first communication data to obtain a first logic signal; A second operation is performed on the first logic level to obtain second communication data.

3. The control method according to claim 2, characterized in that: The performing a first operation on the first communication data to obtain a first logic signal includes: Get the preset data conversion rules; If the first communication data is an analog signal, it is first converted into a digital signal by A / D conversion, and then a subsequent logic level conversion process is performed; Determine the data format and encoding method of the first communication data, and determine the corresponding conversion rule according to the determination result; According to the first communication data, obtaining a level value of a corresponding first logic signal from a preset conversion table; By threshold comparison, the value of the first communication data is compared with a preset threshold, and the first logic signal is determined according to the comparison result.

4. The control method according to claim 2, characterized in that: The performing a second operation on the first logic signal to obtain second communication data includes: Performing filtering and smoothing processing on the level of the first logic signal, and removing burrs and spike noise; According to a preset communication protocol, determining whether the first logic signal is an SPI communication signal or an I2C communication signal; If it is determined to be an SPI communication signal, a clock signal, a chip select signal, and a data signal of the SPI communication protocol are obtained, and the first logic signal is parsed according to the SPI communication protocol to obtain SPI communication data; if it is determined to be an I2C communication signal, a clock signal and a data signal of the I2C communication protocol are obtained, and the first logic signal is parsed according to the I2C communication protocol to obtain I2C communication data; A data verification algorithm is used to verify the SPI communication data or I2C communication data obtained through analysis to determine whether the communication data is correct. If the verification is correct, the communication data is transmitted to the data processing module, and the communication data is processed by the data processing module to obtain processed second communication data; If the verification is wrong, the communication data is transmitted to the data error correction module, and the communication data is corrected by a data error correction algorithm to obtain second communication data after error correction.

5. The control method according to claim 1, characterized in that: The sending the second communication data to the daisy chain device to obtain the third communication data includes: Determine the communication interface type of the peripheral device and determine whether it is an SPI interface or an I2C interface; If it is an SPI interface, convert the second communication data into SPI format data; If it is an I2C interface, convert the second communication data into I2C format data; The converted data is sent to the daisy chain device through the corresponding communication interface; receiving the returned third communication data from the daisy chain device; According to the communication interface type, the third communication data is converted into data in a unified format to obtain processed third communication data.

6. The control method according to claim 1, characterized in that: The determining of the communication state parameter based on the third communication data comprises: Acquire third communication data in the communication interaction process with the daisy chain product according to a preset data format; Determine whether the third communication data meets the preset data format requirement, and if so, execute the next step; If not satisfied, re-acquire the third communication data; Extracting parameters related to the communication status from the third communication data that meets the data format requirements; According to the preset parameter range, determine whether the extracted communication status parameters are within a reasonable range. If they are within a reasonable range, proceed to the next step; If it is not within a reasonable range, reacquire the third communication data and extract the parameters; The extracted communication status parameters are input into a pre-established communication quality evaluation model, and the communication quality is evaluated using a support vector machine algorithm; According to the communication quality evaluation results, a decision tree algorithm is used to determine whether the current communication link state is stable. If stable, the current communication state parameters are determined; If it is unstable, a link abnormality prompt message will be sent.

7. The control method according to claim 1, characterized in that: Before the step of obtaining the first communication data, the method further includes: Get technical parameters of multiple different types of daisy chain communication chips; According to the technical parameters, a unified communication protocol standard is established, wherein the communication protocol standard includes a unified data frame format and a control instruction set; Get the device descriptor of the connected daisy-chain device through broadcast detection; Parsing the device descriptor to obtain the chip type and communication parameters of the daisy chain device; According to the chip type, dynamically load the corresponding plug-in module; The communication protocol standard is adopted to establish a communication connection with the daisy chain device.

8. A communication signal conversion device based on a daisy chain device, characterized in that: include: An acquisition device, used for acquiring first communication data; A first determining module, configured to process the first communication data to obtain second communication data; a second determining module, configured to send the second communication data to a daisy chain device to obtain third communication data; The third determining module is used to determine a communication state parameter based on the third communication data.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the communication signal conversion device based on the daisy chain device, the communication signal conversion method based on the daisy chain device as described in any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the communication signal conversion method based on a daisy chain device as described in any one of claims 1 to 7 when executing the computer program.