CN117724875B - Semiconductor device communication method for realizing SESC drive based on Rust language - Google Patents

Semiconductor device communication method for realizing SESC drive based on Rust language Download PDF

Info

Publication number
CN117724875B
CN117724875B CN202410173945.7A CN202410173945A CN117724875B CN 117724875 B CN117724875 B CN 117724875B CN 202410173945 A CN202410173945 A CN 202410173945A CN 117724875 B CN117724875 B CN 117724875B
Authority
CN
China
Prior art keywords
message
error
early warning
value
hsms
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410173945.7A
Other languages
Chinese (zh)
Other versions
CN117724875A (en
Inventor
马益飞
金星勋
丁亮亮
高超
符欣扬
刘小贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Xinheng Information Technology Co ltd
Original Assignee
Wuxi Xinheng Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Xinheng Information Technology Co ltd filed Critical Wuxi Xinheng Information Technology Co ltd
Priority to CN202410173945.7A priority Critical patent/CN117724875B/en
Publication of CN117724875A publication Critical patent/CN117724875A/en
Application granted granted Critical
Publication of CN117724875B publication Critical patent/CN117724875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a semiconductor device communication method for realizing SESC drive based on Rust language, which relates to the field of semiconductor manufacture and comprises the following steps: connection setup, message reception, message encapsulation, message transmission, and timeout setup. The invention can minimize common memory errors by writing SESC drive through Rust, the memory management mechanism of Rust comprises an automatic recovery mechanism and an ownership system, can automatically release the memory which is not used any more, supports concurrent programming, has high performance characteristics and the capability of improving the processing speed of large-scale message objects by optimizing a compiler and carrying out seamless integration with other languages, thereby realizing the further optimization of memory occupation, the improvement of the memory recovery speed, the concurrent processing of messages and the performance of processing large-scale message objects, supporting multilingual development and quotation, and providing better use tests for developers and equipment.

Description

Semiconductor device communication method for realizing SESC drive based on Rust language
Technical Field
The invention relates to the field of semiconductor manufacturing, in particular to a semiconductor device communication method for realizing SESC driving based on Rust language.
Background
SECS is a semiconductor device communication standard, specified by SEMI (Semiconductor Equipment AND MATERIALS International, international union of semiconductor devices and materials). The factory uses it to realize the functions of device communication, data transmission, instruction control, etc., and any host conforming to SECS can communicate with the device conforming to SECS because it is a semiconductor industry standard. After the standard is implemented on the device, the factory software can fully control and monitor the device through the SESC interface, which brings a lot of benefits to the device manufacturer and the factory communication and is an indispensable part of realizing the factory automation.
The Rust language is a system level programming language developed by Mozilla, is a safe, efficient and highly concurrent programming language, maintains the simplicity and usability of the language, and has the characteristics of memory security, concurrency, high performance, usability and superior cross-platform performance.
The SECS drivers on the market are basically developed in languages such as C#, java and the like, and the drivers developed in the languages are suitable for being used for reference removal on a specific platform or a specific language; the characteristics of languages such as C#, java and the like all have the problems of memory security, performance and cross-platform, and the method is specifically as follows:
1. Language compatibility is poor: at present, most of language development SECS drivers are only suitable for calling development application programs in the language and cannot be used for dereferencing in other languages; the driving package developed by part of languages can be used for reference by other languages, but the problems of type conversion, memory variable calling and the like in the development process cause great development difficulty;
2. Memory recovery is slow: a set of memory garbage collection mechanism is adopted when a program or a driving packet developed by C#, java language runs, but the mechanism needs to be triggered at a specific or set time to execute memory garbage collection, if the garbage collection mechanism is not triggered all the time, the occupied memory of the program is continuously increased, the message processing speed of the program is reduced, and meanwhile, the problem of memory leakage is possibly caused;
3. Platform compatibility is relatively poor: c#, java developed programs run under different operating systems requiring installation of corresponding runtime environments. If the version of the development language is updated, the runtime environment also needs to be updated correspondingly;
4. the performance is relatively poor: because C#, java are not system level development languages, written programs are worse than system level programming languages in terms of concurrency performance and running speed;
accordingly, there is a need to provide a semiconductor device communication method for implementing SESC driving based on Rust language to solve the above technical problems.
Disclosure of Invention
The invention provides a semiconductor device communication method for realizing SESC driving based on Rust language, which uses Rust language to develop SECS driving, and can improve usability, cross-platform and high concurrency of SECS driving while effectively playing the advantages of Rust language so as to solve the problems in the prior art.
In order to solve the technical problems, the semiconductor device communication method for realizing SESC driving based on Rust language provided by the invention comprises the following steps:
S1: connection setting: setting connection parameters of SECS communication protocol at the semiconductor device and the main control terminal respectively; connection parameters include, but are not limited to, device address, port number, etc.;
s2: and (3) receiving a message: a protocol stack of an HSMS protocol is realized by using a Rust language, a monitor is established by using a network library provided by the Rust language, and the monitor monitors HSMS messages sent by semiconductor equipment; after receiving the HSMS message, carrying out data receiving and checking;
S3: message analysis: analyzing the received HSMS message, dividing the HSMS message into a message header and a message body, and extracting necessary information; the method comprises the following specific steps:
s31: analyzing the message header part of the HSMS message, and extracting the identification information; identification information includes, but is not limited to, protocol version, message type, etc.;
s32: analyzing the message body part of the HSMS message, setting a format defined by SEMI E37 standard, marking the format as a standard definition format, and extracting the specific content of the data field according to the standard definition format;
S4: message encapsulation: setting a communication requirement, realizing a packaging module by using Rust language, and packaging data to be transmitted into a complete message according to an HSMS protocol format; the method comprises the following specific steps:
S41: the method comprises the steps of developing by using Rust language, acquiring related information of a protocol version and a message type, acquiring the related information of the protocol version and the message type by defining variables or parameters, and creating a data structure for representing an HSMS message header part according to the acquired related information of the protocol version and the message type; the HSMS message header portion includes, but is not limited to, fields for protocol version, message type, message ID, message length, etc.; setting a corresponding field value according to the protocol version and the message type; calculating the message length according to the specific message content to obtain an updated field value, and updating the value of the message length field in the message header part by using the updated field value; serializing the data of the message header part into a format conforming to the HSMS protocol requirement by using a serialization library or manually splicing bytes;
S42: creating a corresponding data structure or class according to the specification definition format to represent a data domain to be transmitted, and filling the data to be transmitted into the fields of the data structure or class according to the specification definition format; according to the protocol requirements, the data domain is packed into a message body part by using a set coding mode;
s43: combining the message header part and the message body part to obtain a complete message meeting the requirement of the HSMS protocol;
S5: and (3) message sending: transmitting the packaged complete message to the semiconductor device by using a network library provided by Rust language, and transmitting data;
S6: timeout setting: corresponding timeout times are set for each stage in the communication process according to timeout time requirements defined by SEMI E37 specifications.
The method is also used for implementing the concurrent processing in the processes of receiving, analyzing, packaging and sending the messages in the steps S2, S3, S4 and S5 by using the concurrent and asynchronous programming functions of the Rust language, and specifically comprises the following steps:
in step S2, the operation of receiving and checking the HSMS message is encapsulated into one asynchronous task or a plurality of concurrent asynchronous tasks; in step S3, the parsing operation of the HSMS message is divided into two asynchronous tasks or a plurality of concurrent asynchronous tasks for parsing the header and body of the message; in step S4, the encapsulation operation of the HSMS message is divided into two asynchronous tasks or a plurality of concurrent asynchronous tasks of an encapsulation message header and an encapsulation message body; in step S5, the transmission of the HSMS message and the data transmission operation are performed using an asynchronous task.
As a preferred embodiment of the present invention, an error handling or recovery mechanism is added to each step, specifically:
Acquiring identification information corresponding to any step, setting verification information corresponding to the identification information by using a standard definition format, matching the identification information with the corresponding verification information, and generating corresponding error processing measures or signaling if any parameter in the identification information is not matched with the corresponding verification information; and executing corresponding operations or instructions according to error processing measures or signaling corresponding to the identification information.
As a preferred embodiment of the present invention, based on S2, in the process of data reception and verification after receiving the HSMS message, a verification algorithm provided by the Rust language is used; wherein the checking algorithm refers to CRC check or hash check.
As a preferred embodiment of the present invention, based on S3, when parsing the received HSMS message and dividing the HSMS message into a header and a body, the method is further used for performing a selection analysis on the usage data structure, specifically:
Acquiring the related information of the message header field, acquiring and identifying the rule information corresponding to each data structure, and calculating the similarity algorithm of the rule information corresponding to each data structure and the related information of the message header field to obtain a similarity value of each data structure and the related information; selecting a data structure with the maximum similarity value with the related information as a selected data structure; extracting necessary information by using the selected data structure; the related information of the message header fields comprises the number, the type, the naming rule, the query mode, the order requirement, the insertion or deletion operation requirement and the association relation among the fields, and the data structure comprises a data structure corresponding to a hash table, a linked list, a tree and a heap.
As a preferred implementation mode of the invention, the early warning analysis is carried out by adding an error processing or recovery mechanism to each step, specifically:
selecting error processing measures or signaling corresponding to all the identification information in a set time zone before the current moment, and numbering parameters in the identification information to be i; extracting the generation time of the error processing measures or signaling corresponding to the identification information, performing time difference calculation on the generation time of the adjacent error processing measures or signaling to obtain error time difference, and performing variance calculation on the error time difference of all the error processing measures or signaling in the set time region to obtain error fluctuation value; obtaining error handling measures or number marks of signaling corresponding to the identification information in a set time zone as error values; calculating all error fluctuation values and error numerical values in the identification information to obtain error early warning values; setting an early warning threshold, comparing the error early warning value with the set early warning threshold, and generating an early warning prompt instruction if the error early warning value is greater than or equal to the set early warning threshold; the early warning prompt instruction is used for prompting that an error processing or recovery mechanism may be abnormal.
As a preferred implementation mode of the invention, the method is also used for carrying out time zone abnormality analysis on the moment of generating the early warning prompt instruction by early warning analysis of an error processing or recovery mechanism, and specifically comprises the following steps:
Marking the time for generating the early warning prompt instruction as error recovery abnormal time; if the error-free threshold value is smaller than the set early warning threshold value, marking the current moment as an error recovery regression moment; when the error early warning value is smaller than the set early warning threshold value, marking the time as error recovery regression time, and marking a time zone between the error recovery abnormal time and the error recovery regression time as a correction mechanism abnormal time zone; setting an early warning management time area, and carrying out time summation calculation on all corrected abnormal time zones in the early warning management time area to obtain corrected abnormal total duration; extracting the number marks of all corrected abnormal time zones in the early warning management time zone as abnormal values; calculating the total abnormal time length and the abnormal value to obtain an early warning deviation correction value; setting a deviation rectifying threshold corresponding to an error processing or recovering mechanism, comparing the early warning deviation rectifying value with the deviation rectifying threshold, and generating a mechanism deviation rectifying signaling if the early warning deviation rectifying value is larger than the deviation rectifying threshold; marking the generation time, error fluctuation value, error early warning value, correction mechanism abnormal time zone, correction abnormal total time length, abnormal value and early warning deviation correcting value corresponding to the identification information in the set time zone as auxiliary repair logs, and transmitting the mechanism deviation correcting signaling and the auxiliary logs to the intelligent terminal; and the user acquires detailed information of the auxiliary repair log by using the intelligent terminal so as to repair the abnormal state in the error processing or recovery mechanism.
Compared with the related art, the semiconductor device communication method for realizing SESC drive based on Rust language has the following beneficial effects:
1. The invention can minimize common memory errors by writing SESC drive through Rust, the memory management mechanism of Rust comprises an automatic recovery mechanism and an ownership system, can automatically release unused memory, supports concurrent programming, has high performance characteristics and an optimization compiler, can improve the processing speed of large-scale message objects, and has the capability of carrying out seamless integration with other languages (such as C, C ++, python and the like), thereby realizing the performances of further optimizing memory occupation, improving the memory recovery speed, concurrently processing messages and processing large-scale message objects, supporting multilingual development and quotation, and providing better use tests for developers and devices.
2. The invention enhances the self-adaptability and self-repairing capability of the system through early warning analysis and anomaly analysis of error processing or recovery mechanism, provides effective evaluation and processing mechanism for abnormal state of system operation, can reduce the influence of system fault on production and communication to the greatest extent, and improves the stability and reliability of the semiconductor device communication system.
Drawings
Fig. 1 is a diagram of a SESC driver architecture of a semiconductor device communication method for implementing SESC driving based on Rust language provided by the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination", depending on the context "
Please refer to fig. 1 in combination. A semiconductor device communication method for realizing SESC drive based on Rust language includes the following steps:
s1: setting connection parameters of SECS communication protocol at the semiconductor device and the main control terminal respectively; connection parameters include, but are not limited to, device address, port number, etc.;
s2: a protocol stack of an HSMS protocol is realized by using a Rust language, a monitor is established by using a network library provided by the Rust language, and the monitor monitors HSMS messages sent by semiconductor equipment; after receiving the HSMS message, carrying out data receiving and checking;
s3: analyzing the received HSMS message, dividing the HSMS message into a message header and a message body, and extracting necessary information; the method comprises the following specific steps:
s31: analyzing the message header part of the HSMS message, and extracting the identification information; identification information includes, but is not limited to, protocol version, message type, etc.;
s32: analyzing the message body part of the HSMS message, setting a format defined by SEMI E37 standard, marking the format as a standard definition format, and extracting the specific content of the data field according to the standard definition format;
s4: setting a communication requirement, realizing a packaging module by using Rust language, and packaging data to be transmitted into a complete message according to an HSMS protocol format; the method comprises the following specific steps:
S41: the method comprises the steps of developing by using Rust language, acquiring related information of a protocol version and a message type, acquiring the related information of the protocol version and the message type by defining variables or parameters, and creating a data structure for representing an HSMS message header part according to the acquired related information of the protocol version and the message type; the HSMS message header portion includes, but is not limited to, fields for protocol version, message type, message ID, message length, etc.; setting a corresponding field value according to the protocol version and the message type; calculating the message length according to the specific message content to obtain an updated field value, and updating the value of the message length field in the message header part by using the updated field value; serializing the data of the message header part into a format conforming to the HSMS protocol requirement by using a serialization library or manually splicing bytes;
S42: creating a corresponding data structure or class according to the specification definition format to represent a data domain to be transmitted, and filling the data to be transmitted into the fields of the data structure or class according to the specification definition format; according to the protocol requirements, the data domain is packed into a message body part by using a set coding mode (such as binary coding, XML coding and the like);
s43: combining the message header part and the message body part to obtain a complete message meeting the requirement of the HSMS protocol;
s5: transmitting the packaged complete message to the semiconductor device by using a network library provided by Rust language, and transmitting data;
S6: corresponding Timeout times are set for various phases in the communication process according to Timeout requirements defined by SEMI E37 specifications, including, but not limited to T3 Reply Timeout、T5 Connect Separate Timeout、T6 Control Transaction Timeout、T7 Note Selected Timeout and T8 Network Inter-Char Timeout, etc.
In the application, the method is also used for using the concurrency and asynchronous programming functions of Rust language to realize the concurrency processing in the processes of receiving, analyzing, packaging and sending the messages in the steps S2, S3, S4 and S5, and specifically comprises the following steps:
in step S2, the operation of receiving and checking the HSMS message is encapsulated into one asynchronous task or a plurality of concurrent asynchronous tasks; in step S3, the parsing operation of the HSMS message is divided into two asynchronous tasks or a plurality of concurrent asynchronous tasks for parsing the header and body of the message; in step S4, the encapsulation operation of the HSMS message is divided into two asynchronous tasks or a plurality of concurrent asynchronous tasks of an encapsulation message header and an encapsulation message body; in step S5, the transmission of the HSMS message and the data transmission operation are performed using an asynchronous task.
In the present application, an error handling or recovery mechanism is added to each step, specifically:
Acquiring identification information corresponding to any step, setting verification information corresponding to the identification information by using a standard definition format, matching the identification information with the corresponding verification information, and generating corresponding error processing measures or signaling if any parameter in the identification information is not matched with the corresponding verification information; and executing corresponding operations or instructions according to error processing measures or signaling corresponding to the identification information.
In the application, based on S2, in the process of data receiving and checking after receiving the HSMS message, a checking algorithm provided by Rust language is used; wherein the checking algorithm refers to CRC check or hash check.
In the application, when analyzing the received HSMS message and dividing the HSMS message into a message header and a message body, the application is also used for selecting and analyzing the usage data structure, and specifically comprises the following steps:
Selecting and analyzing the data structure, acquiring the related information of the message header field, acquiring and identifying the rule information corresponding to each data structure, and calculating the similarity algorithm of the rule information corresponding to each data structure and the related information of the message header field to acquire the similarity value of each data structure and the related information; selecting a data structure with the maximum similarity value with the related information as a selected data structure; extracting necessary information by using the selected data structure; the related information of the message header fields comprises the number, the type, the naming rule, the query mode, the order requirement, the insertion or deletion operation requirement and the association relation among the fields, the data structure comprises but is not limited to a hash table, a linked list, a tree, a heap and other data structures, and the similarity algorithm comprises but is not limited to cosine similarity, jaccard similarity coefficient, editing distance, information entropy and other algorithms for calculating the similarity.
In the application, an error processing or recovery mechanism is added to each step for early warning analysis, specifically:
Selecting error processing measures or signaling corresponding to all the identification information in a set time zone before the current moment, and numbering parameters in the identification information to be i; extracting the generation time of the error processing measures or signaling corresponding to the identification information, performing time difference calculation on the generation time of the adjacent error processing measures or signaling to obtain error time difference, and performing variance calculation on the error time difference of all the error processing measures or signaling in the set time region to obtain an error fluctuation value FR1; acquiring the number mark of error processing measures or signaling corresponding to the identification information in the set time zone as an error value FR2; calculating all error fluctuation values and error numerical values in the identification information by using a formula Obtaining an error early warning value FR; wherein/>Respectively representing error fluctuation value, error numerical value and corresponding weight corresponding to the parameter of the number i in the identification information; setting an early warning threshold, comparing the error early warning value with the set early warning threshold, and generating an early warning prompt instruction if the error early warning value is greater than or equal to the set early warning threshold; the early warning prompt instruction is used for prompting that an error processing or recovery mechanism may be abnormal.
In the application, the method is also used for carrying out time zone abnormality analysis on the moment of generating the early warning prompt instruction by early warning analysis of an error processing or recovery mechanism, and specifically comprises the following steps:
Marking the time for generating the early warning prompt instruction as error recovery abnormal time; if the error-free threshold value is smaller than the set early warning threshold value, marking the current moment as an error recovery regression moment; when the error early warning value is smaller than the set early warning threshold value, marking the time as error recovery regression time, and marking a time zone between the error recovery abnormal time and the error recovery regression time as a correction mechanism abnormal time zone; setting an early warning management time area, and carrying out time summation calculation on all correction abnormal time zones in the early warning management time area to obtain correction abnormal total duration TY1; extracting the number marks of all corrected abnormal time zones in the early warning management time zone as abnormal values TY2; calculating total abnormal time length and abnormal value correction, and obtaining an early warning deviation correction value TY by using a formula TY=TY1×y1+TY2×y2; wherein y1 and y2 respectively represent the total correction abnormal time length and the weight corresponding to the abnormal value; setting a deviation rectifying threshold corresponding to an error processing or recovering mechanism, comparing the early warning deviation rectifying value with the deviation rectifying threshold, and generating a mechanism deviation rectifying signaling if the early warning deviation rectifying value is larger than the deviation rectifying threshold; marking the generation time, error fluctuation value, error early warning value, correction mechanism abnormal time zone, correction abnormal total time length, abnormal value and early warning deviation correcting value corresponding to the identification information in the set time zone as auxiliary repair logs, and transmitting the mechanism deviation correcting signaling and the auxiliary logs to the intelligent terminal; and the user acquires detailed information of the auxiliary repair log by using the intelligent terminal so as to repair the abnormal state in the error processing or recovery mechanism.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (7)

1. The semiconductor device communication method for realizing SESC drive based on Rust language is characterized by comprising the following steps:
s1: connection setting: setting connection parameters of SECS communication protocol at the semiconductor device and the main control terminal respectively;
s2: and (3) receiving a message: a protocol stack of an HSMS protocol is realized by using a Rust language, a monitor is established by using a network library provided by the Rust language, and the monitor monitors HSMS messages sent by semiconductor equipment; after receiving the HSMS message, carrying out data receiving and checking;
S3: message analysis: analyzing the received HSMS message, dividing the HSMS message into a message header and a message body, and extracting necessary information; the method comprises the following specific steps:
s31: analyzing the message header part of the HSMS message, and extracting the identification information;
s32: analyzing the message body part of the HSMS message, setting a format defined by SEMI E37 standard, marking the format as a standard definition format, and extracting the specific content of the data field according to the standard definition format;
S4: message encapsulation: setting a communication requirement, realizing a packaging module by using Rust language, and packaging data to be transmitted into a complete message according to an HSMS protocol format; the method comprises the following specific steps:
S41: the method comprises the steps of developing by using Rust language, acquiring related information of a protocol version and a message type, acquiring the related information of the protocol version and the message type by defining variables or parameters, and creating a data structure for representing an HSMS message header part according to the acquired related information of the protocol version and the message type; the HSMS message header part comprises fields of protocol version, message type, message ID and message length; setting a corresponding field value according to the protocol version and the message type; calculating the message length according to the specific message content to obtain an updated field value, and updating the value of the message length field in the message header part by using the updated field value; serializing the data of the message header part into a format conforming to the HSMS protocol requirements;
S42: creating a corresponding data structure or class according to the specification definition format to represent a data domain to be transmitted, and filling the data to be transmitted into the fields of the data structure or class according to the specification definition format; according to the protocol requirements, the data domain is packed into a message body part by using a set coding mode;
s43: combining the message header part and the message body part to obtain a complete message meeting the requirement of the HSMS protocol;
S5: and (3) message sending: transmitting the packaged complete message to the semiconductor device by using a network library provided by Rust language, and transmitting data;
S6: timeout setting: corresponding timeout times are set for each stage in the communication process according to timeout time requirements defined by SEMI E37 specifications.
2. The Rust language-based semiconductor device communication method for implementing SESC driving according to claim 1, further used for implementing concurrency processing in the processes of receiving, parsing, encapsulating and sending messages in steps S2, S3, S4, S5 by using concurrency and asynchronous programming functions of Rust language, specifically:
in step S2, the operation of receiving and checking the HSMS message is encapsulated into one asynchronous task or a plurality of concurrent asynchronous tasks; in step S3, the parsing operation of the HSMS message is divided into two asynchronous tasks or a plurality of concurrent asynchronous tasks for parsing the header and body of the message; in step S4, the encapsulation operation of the HSMS message is divided into two asynchronous tasks or a plurality of concurrent asynchronous tasks of an encapsulation message header and an encapsulation message body; in step S5, the transmission of the HSMS message and the data transmission operation are performed using an asynchronous task.
3. The Rust language-based semiconductor device communication method for implementing SESC driving according to claim 1, wherein an error handling or recovery mechanism is added to each step, specifically:
acquiring identification information corresponding to any step, setting verification information corresponding to the identification information by using a standard definition format, matching the identification information with the corresponding verification information, and generating corresponding error processing measures or signaling if any parameter in the identification information is not matched with the corresponding verification information;
And executing corresponding operations or instructions according to error processing measures or signaling corresponding to the identification information.
4. The method for implementing SESC-driven semiconductor device communication based on Rust language according to claim 1, wherein based on S2, in the process of data reception and verification after receiving the HSMS message, a verification algorithm provided by Rust language is used; wherein the checking algorithm refers to CRC check or hash check.
5. The method for implementing SESC driven semiconductor device communication based on Rust language according to claim 1, wherein based on S3, when parsing the received HSMS message and dividing the HSMS message into a header and a body, the method is further used for selecting and analyzing the usage data structure, specifically:
Acquiring the related information of the message header field, acquiring and identifying the rule information corresponding to each data structure, and calculating the similarity algorithm of the rule information corresponding to each data structure and the related information of the message header field to obtain a similarity value of each data structure and the related information; selecting a data structure with the maximum similarity value with the related information as a selected data structure; extracting necessary information by using the selected data structure; the related information of the message header fields comprises the number, the type, the naming rule, the query mode, the order requirement, the insertion or deletion operation requirement and the association relation among the fields, and the data structure comprises a data structure corresponding to a hash table, a linked list, a tree and a heap.
6. The Rust language-based semiconductor device communication method for implementing SESC driving according to claim 3, wherein an error handling or recovery mechanism is added to each step for performing early warning analysis, specifically:
Selecting error processing measures or signaling corresponding to all the identification information in a set time zone before the current moment, and numbering parameters in the identification information to be i; extracting the generation time of the error processing measures or signaling corresponding to the identification information, performing time difference calculation on the generation time of the adjacent error processing measures or signaling to obtain error time difference, and performing variance calculation on the error time difference of all the error processing measures or signaling in the set time region to obtain an error fluctuation value FR1; acquiring the number mark of error processing measures or signaling corresponding to the identification information in the set time zone as an error value FR2; calculating all error fluctuation values and error numerical values in the identification information by using a formula Obtaining an error early warning value FR; wherein/>Respectively representing error fluctuation value, error numerical value and corresponding weight corresponding to the parameter of the number i in the identification information; setting an early warning threshold, comparing the error early warning value with the set early warning threshold, and generating an early warning prompt instruction if the error early warning value is greater than or equal to the set early warning threshold; the early warning prompt instruction is used for prompting that an error processing or recovery mechanism may be abnormal.
7. The Rust language-based semiconductor device communication method for implementing SESC driving according to claim 6, further comprising performing a time zone anomaly analysis on a time point when an early warning prompt instruction is generated by an early warning analysis of an error handling or recovery mechanism, specifically:
Marking the time for generating the early warning prompt instruction as error recovery abnormal time; if the error-free threshold value is smaller than the set early warning threshold value, marking the current moment as an error recovery regression moment; when the error early warning value is smaller than the set early warning threshold value, marking the time as error recovery regression time, and marking a time zone between the error recovery abnormal time and the error recovery regression time as a correction mechanism abnormal time zone; setting an early warning management time area, and carrying out time summation calculation on all correction abnormal time zones in the early warning management time area to obtain correction abnormal total duration TY1; extracting the number marks of all corrected abnormal time zones in the early warning management time zone as abnormal values TY2; calculating total abnormal time length and abnormal value correction, and obtaining an early warning deviation correction value TY by using a formula TY=TY1×y1+TY2×y2; wherein y1 and y2 respectively represent the total correction abnormal time length and the weight corresponding to the abnormal value; setting a deviation rectifying threshold corresponding to an error processing or recovering mechanism, comparing the early warning deviation rectifying value with the deviation rectifying threshold, and generating a mechanism deviation rectifying signaling if the early warning deviation rectifying value is larger than the deviation rectifying threshold; marking the generation time, error fluctuation value, error early warning value, correction mechanism abnormal time zone, correction abnormal total time length, abnormal value and early warning deviation correcting value corresponding to the identification information in the set time zone as auxiliary repair logs, and transmitting the mechanism deviation correcting signaling and the auxiliary logs to the intelligent terminal; and the user acquires detailed information of the auxiliary repair log by using the intelligent terminal so as to repair the abnormal state in the error processing or recovery mechanism.
CN202410173945.7A 2024-02-07 2024-02-07 Semiconductor device communication method for realizing SESC drive based on Rust language Active CN117724875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410173945.7A CN117724875B (en) 2024-02-07 2024-02-07 Semiconductor device communication method for realizing SESC drive based on Rust language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410173945.7A CN117724875B (en) 2024-02-07 2024-02-07 Semiconductor device communication method for realizing SESC drive based on Rust language

Publications (2)

Publication Number Publication Date
CN117724875A CN117724875A (en) 2024-03-19
CN117724875B true CN117724875B (en) 2024-04-23

Family

ID=90211035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410173945.7A Active CN117724875B (en) 2024-02-07 2024-02-07 Semiconductor device communication method for realizing SESC drive based on Rust language

Country Status (1)

Country Link
CN (1) CN117724875B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513639A (en) * 2013-10-08 2014-01-15 周炳君 Label-based communication method for semiconductor device in remote control
WO2022212396A1 (en) * 2021-03-29 2022-10-06 Visa International Service Association Systems and methods of protecting secrets in use with containerized applications
CN115408169A (en) * 2022-08-02 2022-11-29 武汉烽火技术服务有限公司 Remote procedure calling method, device, equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513639A (en) * 2013-10-08 2014-01-15 周炳君 Label-based communication method for semiconductor device in remote control
WO2022212396A1 (en) * 2021-03-29 2022-10-06 Visa International Service Association Systems and methods of protecting secrets in use with containerized applications
CN115408169A (en) * 2022-08-02 2022-11-29 武汉烽火技术服务有限公司 Remote procedure calling method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN117724875A (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US8458681B1 (en) Method and system for optimizing the object code of a program
CN110704063B (en) Method and device for compiling and executing intelligent contract
US8464230B2 (en) Methods and systems to implement non-ABI conforming features across unseen interfaces
US20090037804A1 (en) Annotation processing of computer files
US8984497B2 (en) Source code converting, method program, and systems for first programming language to a code in a second programming language
CN110825385B (en) Method for constructing read Native offline package and storage medium
US9405518B2 (en) Leveraging legacy applications for use with modern applications
CN111736954B (en) Multi-intelligent contract virtual machine implementation method, multi-intelligent contract virtual machine and system
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN113867732A (en) Message information processing method, system and storage medium
CN113050984A (en) Resource calling method and device, electronic equipment and storage medium
CN111369237B (en) Data processing method and device and computer storage medium
CN113384896A (en) Unity-based resource packaging method, device, equipment and medium
US20150082322A1 (en) Data Upgrade Framework for Distributed Systems
CN113660307B (en) Algorithm comprehensive integrated service system
CN117724875B (en) Semiconductor device communication method for realizing SESC drive based on Rust language
CN106550026B (en) Network communication device and method
CN111352631A (en) Interface compatibility detection method and device
CN116450194A (en) Method and device for generating python installation package, electronic equipment and readable storage medium
US7533373B2 (en) Method for prevention of system execution malfunction
CN110018816B (en) Virtual machine control system based on C/C + + compiling system and control method thereof
CN114265638A (en) Communication method, device, equipment and storage medium based on plug-in compatibility
US20040015876A1 (en) Method and structure of implementing a safe pointer
US8898524B2 (en) Computer-readable medium storing wrapper program and integrated circuit apparatus
CN112800194A (en) Interface change identification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant