CN114237647B - Single-chip microcomputer programming control system and single-chip microcomputer programming control method - Google Patents

Single-chip microcomputer programming control system and single-chip microcomputer programming control method Download PDF

Info

Publication number
CN114237647B
CN114237647B CN202111559088.7A CN202111559088A CN114237647B CN 114237647 B CN114237647 B CN 114237647B CN 202111559088 A CN202111559088 A CN 202111559088A CN 114237647 B CN114237647 B CN 114237647B
Authority
CN
China
Prior art keywords
programming
address
module
chip microcomputer
preset
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
CN202111559088.7A
Other languages
Chinese (zh)
Other versions
CN114237647A (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.)
Shenzhen Deyi Electronic Technology Co ltd
Original Assignee
Shenzhen Deyi Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Deyi Electronic Technology Co ltd filed Critical Shenzhen Deyi Electronic Technology Co ltd
Priority to CN202111559088.7A priority Critical patent/CN114237647B/en
Publication of CN114237647A publication Critical patent/CN114237647A/en
Application granted granted Critical
Publication of CN114237647B publication Critical patent/CN114237647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Probability & Statistics with Applications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a singlechip programming control system and a singlechip programming control method, comprising an acquisition module, a first address generation module and a second address generation module, wherein the acquisition module is used for acquiring a first address of a compiled file; the judging module is used for judging whether the first address is legal or not; the determining module is used for sending a first signal to the singlechip when the judging module judges that the first address is legal: receiving the second signal, processing the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performing a programming task according to the second address; and the singlechip is used for receiving the first signal, performing programming preparation work, and sending a second signal to the determining module when the programming preparation work is finished. The control precision of the programming of the single chip microcomputer is improved, and the accuracy of the programming of the single chip microcomputer is guaranteed.

Description

Single-chip microcomputer programming control system and single-chip microcomputer programming control method
Technical Field
The invention relates to the technical field of single-chip microcomputers, in particular to a single-chip microcomputer programming control system and a single-chip microcomputer programming control method.
Background
The single chip microcomputer is equivalent to a micro computer. The operation of the singlechip depends on a program stored in the singlechip, and in order to write the debugged singlechip program into a storage medium of the singlechip, the programming process of the singlechip needs to be executed. Among the prior art, the control accuracy is not high in the programming of singlechip, leads to easily developing the process of programming when the singlechip is not ready for the program that the singlechip was programmed in the programming is incomplete or the mistake appears, must adopt simultaneously with singlechip assorted host computer just can write in, leads to the commonality of host computer relatively poor, in addition can't in time accurately acquire the progress information of programming, can't in time take measures to handle more.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, the first purpose of the invention is to provide a singlechip programming control system, which improves the control precision of singlechip programming and ensures the accuracy of a program programmed by the singlechip programming.
The second purpose of the invention is to provide a single chip microcomputer programming control method.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a monolithic computer programming control system, including:
the obtaining module is used for obtaining a first address of the compiled file;
the judging module is used for judging whether the first address is legal or not;
a determination module to:
when the judging module judges that the first address is legal, a first signal is sent to the singlechip:
receiving the second signal, processing the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performing a programming task according to the second address;
and the singlechip is used for receiving the first signal, performing programming preparation work and sending a second signal to the determining module when the programming preparation work is finished.
According to some embodiments of the invention, the determining module comprises:
the first obtaining submodule is used for obtaining attribute information of the first address;
the calculating submodule is used for calculating the matching degree of the attribute information and preset attribute information and judging whether the matching degree is greater than the preset matching degree; when the matching degree is determined to be larger than the preset matching degree, the first address is legal; otherwise, it indicates that the first address is illegal.
According to some embodiments of the invention, the determining module comprises:
the second obtaining submodule is used for obtaining the number of the second addresses and judging whether the number is larger than the preset number;
the clustering submodule is used for carrying out clustering analysis on the plurality of second addresses when the number is determined to be larger than the preset number, obtaining a plurality of classification sets and determining a clustering center of each classification set;
and the determining submodule is used for determining a functional area on the single chip microcomputer corresponding to each classification set based on a preset data table according to the clustering center of each classification set.
According to some embodiments of the invention, the determining module is further configured to:
creating a monitoring model according to the programming task, dividing the monitoring model according to a plurality of sub-programming tasks included in the programming task, and marking the monitoring model; the sub programming task is a programming task of a single functional area on the single chip microcomputer;
acquiring actual progress information when a programming task is executed;
and matching the actual progress information with the monitoring model, comparing the matched monitoring model with preset progress information, determining the sub programming task with the delayed progress, and sending an alarm prompt.
According to some embodiments of the invention, the determining module is further configured to:
analyzing the sub programming task with the delayed progress, and judging whether a functional area corresponding to the sub programming task with the delayed progress meets a re-programming condition;
and when determining that the functional area corresponding to the sub-programming task with the lagging progress meets the re-programming condition, acquiring the data to be programmed and performing re-programming.
According to some embodiments of the invention, further comprising:
the detection module is used for detecting a current signal of the singlechip during operation after the determination module completes the programming task according to the second address;
the time-frequency transformation module is used for performing time-frequency transformation processing on the current signal to obtain a time-frequency spectrogram, and performing feature extraction on the time-frequency spectrogram to obtain a plurality of spectral lines;
the filtering processing module is used for acquiring a plurality of peak values of the current spectral line, calculating the average peak value of the current spectral line, inquiring a preset data table according to the average peak value to obtain a corresponding filtering coefficient, and filtering the current spectral line according to the filtering coefficient;
the time-frequency inverse transformation processing module is used for obtaining a filtering time-frequency spectrogram according to the plurality of spectral lines after filtering processing, and performing time-frequency inverse transformation processing on the filtering time-frequency spectrogram to obtain a filtering current signal;
the recognition module is used for inputting the filtering current signal into a pre-trained abnormity recognition model and outputting the abnormal time and the abnormal area of the filtering current signal;
the calculation module is used for acquiring the temperature parameter and the power parameter of the abnormal area in the preset time period and respectively calculating a first change frequency and a second change frequency;
the marking module is used for determining to mark the abnormal area to obtain marking information when the first change frequency is determined to be greater than a first preset change frequency and the second change frequency is determined to be greater than a second preset change frequency;
and the message generation module is used for acquiring address information of the record descriptor, storing the marking information according to the address information, forming a fault message and carrying out alarm prompt.
According to some embodiments of the invention, further comprising:
and the repairing module is used for determining a fault mode according to the fault message, determining a repairing scheme according to the fault mode and a preset fault coping strategy, and repairing the fault according to the repairing scheme.
According to some embodiments of the invention, the functional area comprises a configuration area, an application area, a BOOT area.
In order to achieve the above object, an embodiment of the present invention provides a single chip microcomputer, including:
the receiving module is used for receiving a first signal sent by the determining module when the judging module judges that the first address of the compiled file is legal, and performing programming preparation work;
and the sending module is used for sending a second signal to the determining module when the programming preparation work is finished.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides a method for controlling programming of a single chip, including:
acquiring a first address of a compiled file;
the judging module judges whether the first address is legal or not;
the determining module is used for sending a first signal to the singlechip when the judging module judges that the first address is legal:
the singlechip is used for receiving the first signal, performing programming preparation work, and sending a second signal to the determining module when the programming preparation work is finished;
and the determining module receives the second signal, processes the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performs a programming task according to the second address.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of a single-chip microcomputer programming control system according to an embodiment of the present invention;
FIG. 2 is a block diagram of a single-chip microcomputer according to one embodiment of the present invention;
FIG. 3 is a flow chart of a single-chip microcomputer programming control method according to an embodiment of the invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
As shown in fig. 1, an embodiment of a first aspect of the present invention provides a monolithic computer programming control system, including:
the obtaining module is used for obtaining a first address of the compiled file;
the judging module is used for judging whether the first address is legal or not;
a determination module to:
when the judging module judges that the first address is legal, a first signal is sent to the singlechip:
receiving the second signal, processing the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performing a programming task according to the second address;
and the singlechip is used for receiving the first signal, performing programming preparation work and sending a second signal to the determining module when the programming preparation work is finished.
The working principle of the technical scheme is as follows: the obtaining module is used for obtaining a first address of the compiled file; the judging module is used for judging whether the first address is legal or not; a determination module to: when the judging module judges that the first address is legal, a first signal is sent to a singlechip: receiving the second signal, processing the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performing a programming task according to the second address; and the singlechip is used for receiving the first signal, performing programming preparation work and sending a second signal to the determining module when the programming preparation work is finished. The compiled file is compiled by the upper computer.
The beneficial effects of the above technical scheme are as follows: the control precision of the programming of the single chip microcomputer is improved, the programming process is prevented from being carried out when the single chip microcomputer is not prepared, the programming program of the single chip microcomputer is complete, the error probability is reduced, and the accuracy of the programming program of the single chip microcomputer is ensured.
According to some embodiments of the invention, the determining module comprises:
the first obtaining submodule is used for obtaining attribute information of the first address;
the calculating submodule is used for calculating the matching degree of the attribute information and preset attribute information and judging whether the matching degree is greater than the preset matching degree or not; when the matching degree is determined to be greater than the preset matching degree, the first address is legal; otherwise, it indicates that the first address is illegal.
The working principle of the technical scheme is as follows: the first obtaining submodule is used for obtaining attribute information of the first address; the calculating submodule is used for calculating the matching degree of the attribute information and preset attribute information and judging whether the matching degree is greater than the preset matching degree or not; when the matching degree is determined to be greater than the preset matching degree, the first address is legal; otherwise, it indicates that the first address is illegal.
The beneficial effects of the above technical scheme are that: the accuracy of judging whether the first address is legal or not is improved, and the safe work before the singlechip is programmed is further ensured.
According to some embodiments of the invention, the determining module comprises:
the second obtaining submodule is used for obtaining the number of the second addresses and judging whether the number is larger than the preset number;
the clustering submodule is used for carrying out clustering analysis on the second addresses to obtain a plurality of classification sets when the number is determined to be larger than the preset number, and determining a clustering center of each classification set;
and the determining submodule is used for determining a functional area on the single chip microcomputer corresponding to each classification set based on a preset data table according to the clustering center of each classification set.
The working principle of the technical scheme is as follows: the determining module comprises: the second obtaining submodule is used for obtaining the number of the second addresses and judging whether the number is larger than the preset number; the clustering submodule is used for carrying out clustering analysis on the plurality of second addresses when the number is determined to be larger than the preset number, obtaining a plurality of classification sets and determining a clustering center of each classification set; and the determining submodule is used for determining a functional area on the single chip microcomputer corresponding to each classification set based on a preset data table according to the clustering center of each classification set. The preset data table is a corresponding table of information of the clustering center and the functional area. The singlechip is provided with a plurality of functional areas which can be burned with programs.
The beneficial effects of the above technical scheme are that: and realizing batch processing of the first address into the second address. Each first address obtains a second address based on a preset address conversion strategy. The method realizes that a plurality of second addresses are respectively programmed in a corresponding functional area based on the classification result, improves the programming accuracy and efficiency, and realizes batch processing.
According to some embodiments of the invention, the determining module is further configured to:
creating a monitoring model according to the programming task, dividing the monitoring model according to a plurality of sub-programming tasks included in the programming task, and marking the monitoring model; the sub programming task is a programming task of a single functional area on the single chip microcomputer;
acquiring actual progress information when a programming task is executed;
and matching the actual progress information with the monitoring model, comparing the matched monitoring model with preset progress information, determining the sub programming task with the delayed progress, and sending an alarm prompt.
The working principle of the technical scheme is as follows: the determining module is also used for creating a monitoring model according to the programming task, dividing the monitoring model according to a plurality of sub-programming tasks included in the programming task and carrying out marking processing; the sub programming task is a programming task of a single functional area on the single chip microcomputer; acquiring actual progress information when a programming task is executed; and matching the actual progress information with the monitoring model, comparing the matched monitoring model with preset progress information, determining the sub programming task with the delayed progress, and sending an alarm prompt.
The beneficial effects of the above technical scheme are that: the progress of each sub programming task is monitored, the sub programming tasks with the lagged progress are found in time, an alarm prompt is sent, timely processing is facilitated, and the programming time is shortened.
According to some embodiments of the invention, the determining module is further configured to:
analyzing the sub programming tasks with the delayed progress, and judging whether the functional areas corresponding to the sub programming tasks with the delayed progress meet the condition of programming again;
and when determining that the functional area corresponding to the sub-programming task with the lagged progress meets the re-programming condition, acquiring the data to be programmed and performing re-programming.
The working principle of the technical scheme is as follows: analyzing the sub programming task with the delayed progress, and judging whether a functional area corresponding to the sub programming task with the delayed progress meets a re-programming condition; and when determining that the functional area corresponding to the sub-programming task with the lagging progress meets the re-programming condition, acquiring the data to be programmed and performing re-programming. The re-programming condition includes that the program programmed on the corresponding functional area is editable.
The beneficial effects of the above technical scheme are that: and when determining that the functional area corresponding to the sub-programming task with the lagged progress meets the re-programming condition, acquiring the data to be programmed and performing the re-programming, so that the programming task can be completed in time.
According to some embodiments of the invention, the attribute information comprises an ID name.
According to some embodiments of the invention, the functional areas include a configuration area, an application area, a BOOT program area.
And correspondingly burning different types of programs in each functional area.
According to some embodiments of the invention, further comprising:
the detection module is used for detecting a current signal of the singlechip during operation after the determination module completes the programming task according to the second address;
the time-frequency transformation module is used for performing time-frequency transformation processing on the current signal to obtain a time-frequency spectrogram, and performing feature extraction on the time-frequency spectrogram to obtain a plurality of spectral lines;
the filtering processing module is used for acquiring a plurality of peak values of the current spectral line, calculating the average peak value of the current spectral line, inquiring a preset data table according to the average peak value to obtain a corresponding filtering coefficient, and filtering the current spectral line according to the filtering coefficient;
the time-frequency inverse transformation processing module is used for obtaining a filtering time-frequency spectrogram according to the plurality of spectral lines after filtering processing, and carrying out time-frequency inverse transformation processing on the filtering time-frequency spectrogram to obtain a filtering current signal;
the recognition module is used for inputting the filtering current signal into a pre-trained abnormity recognition model and outputting the abnormal time and the abnormal area of the filtering current signal;
the calculation module is used for acquiring the temperature parameter and the power parameter of the abnormal area in a preset time period and respectively calculating a first change frequency and a second change frequency;
the marking module is used for determining to mark the abnormal area to obtain marking information when the first change frequency is determined to be greater than a first preset change frequency and the second change frequency is determined to be greater than a second preset change frequency;
and the message generation module is used for acquiring address information of the record descriptor, storing the marking information according to the address information, forming a fault message and carrying out alarm prompt.
The working principle of the technical scheme is as follows: the detection module is used for detecting a current signal of the singlechip during operation after the determination module completes the programming task according to the second address; the time-frequency transformation module is used for performing time-frequency transformation processing on the current signal to obtain a time-frequency spectrogram, and performing feature extraction on the time-frequency spectrogram to obtain a plurality of spectral lines; the filtering processing module is used for acquiring a plurality of peak values of the current spectral line, calculating the average peak value of the current spectral line, inquiring a preset data table according to the average peak value to obtain a corresponding filtering coefficient, and filtering the current spectral line according to the filtering coefficient; the time-frequency inverse transformation processing module is used for obtaining a filtering time-frequency spectrogram according to the plurality of spectral lines after filtering processing, and performing time-frequency inverse transformation processing on the filtering time-frequency spectrogram to obtain a filtering current signal; the recognition module is used for inputting the filtering current signal into a pre-trained abnormity recognition model and outputting the abnormal time and the abnormal area of the filtering current signal; the calculation module is used for acquiring the temperature parameter and the power parameter of the abnormal area in a preset time period and respectively calculating a first change frequency and a second change frequency; the first variation frequency represents a variation frequency of the temperature parameter of the abnormal region within a preset time period; the second variation frequency represents a variation frequency of the power parameter of the abnormal area within a preset time period; the marking module is used for determining to mark the abnormal area to obtain marking information when the first change frequency is determined to be greater than a first preset change frequency and the second change frequency is determined to be greater than a second preset change frequency; and the message generation module is used for acquiring address information of the record descriptor, storing the marking information according to the address information, forming a fault message and carrying out alarm prompt. The preset data table is an average peak value-filter coefficient corresponding table.
The beneficial effects of the above technical scheme are that: the current signal is subjected to time-frequency transformation processing, filtering processing is carried out on the filtering coefficients obtained by the spectral lines based on the average peak value inquiry preset data table, the detail characteristics of the current spectral line are comprehensively balanced, the balanced filtering coefficient is determined, the filtering effect of the current spectral line is guaranteed to be improved, accurate filtering current signals are convenient to obtain, and the identification accuracy based on the abnormal identification model is further improved. Determining the abnormal time and the abnormal area of the filtering current signal, wherein the abnormal area cannot be completely determined as a fault area; based on the temperature parameter and the power parameter of the abnormal region in the preset time period, the first change frequency and the second change frequency are respectively calculated, and the abnormal region is accurately determined to be the fault region according to the comparison result of the first change frequency and the second change frequency, so that the accuracy of determining the fault region is improved, the misjudgment is avoided, the corresponding fault message is generated for alarm prompt, and the fault can be timely repaired.
According to some embodiments of the invention, further comprising:
and the repairing module is used for determining a fault mode according to the fault message, determining a repairing scheme according to the fault mode and a preset fault coping strategy, and repairing the fault according to the repairing scheme.
The working principle of the technical scheme is as follows: and the repairing module is used for determining a fault mode according to the fault message, determining a repairing scheme according to the fault mode and a preset fault coping strategy, and repairing the fault according to the repairing scheme.
The beneficial effects of the above technical scheme are as follows: the method and the device are convenient to determine the repair scheme and repair the fault in a short time based on the preset fault coping strategy, and the maintenance timeliness is improved.
In an embodiment, before inputting the filtered current signal into a pre-trained anomaly recognition model, normalization processing is further performed on the filtered current signal.
In one embodiment, training the anomaly recognition model includes:
acquiring P sample filter circuit signals and sample abnormal information, digitizing N1 indexes of each sample filter circuit signal in the P sample filter circuit signals respectively, and generating a matrix A, wherein the matrix A comprises P rows and N columns, and N = N1, the P rows correspond to the P sample filter circuit signals respectively, and each column in the N columns represents the value of one index of the sample filter circuit signals;
normalizing the index value digitized in the matrix A:
Figure GDA0003814579080000121
wherein A is i,j Is the value of ith row and j column of matrix A, B i,j The value of j column in ith row of matrix B, i =1, 2, 3 \8230, 82308230, P, j =1, 2, 3 \8230, 8230N; a. The i1,j The value of the ith row and the jth column of the matrix A is i1=1, 2, 3 \8230; P; (ii) a A. The i2,j The value of the jth column of the ith 2 row of the matrix A, i2=1, 2, 3 \8230, 8230, P;
and inputting the index value after normalization processing into an abnormality identification model, outputting predicted abnormality information, comparing the sample abnormality information with the predicted abnormality information, and correcting the model parameters of the abnormality identification model according to the comparison result.
The working principle and the beneficial effects of the technical scheme are as follows: in the process of identifying the abnormal model based on the sample filter circuit signal and the sample abnormal information, N1 indexes of the sample filter circuit signal are respectively digitized, a matrix A is generated, normalization processing is carried out, normalization of the weight of the N1 indexes of each sample filter circuit signal for judging the abnormal information is facilitated, inaccuracy of the abnormal identification model and the abnormal information due to the fact that a certain index value and the weight are too large is avoided, normalization processing is carried out at the same time, convergence of a training grid can be accelerated, and the trained abnormal identification model can be obtained quickly. Based on the formula, the index value after normalization processing is accurately calculated.
As shown in fig. 2, an embodiment of the present invention provides a single chip microcomputer, including:
the receiving module is used for receiving a first signal sent by the determining module when the judging module judges that the first address of the compiled file is legal, and performing programming preparation work;
and the sending module is used for sending a second signal to the determining module when the programming preparation work is finished.
The working principle of the technical scheme is as follows: the singlechip comprises a receiving module used for receiving a first signal sent by the determining module when the judging module judges that the first address of the compiled file is legal, and performing programming preparation work; and the sending module is used for sending a second signal to the determining module when the programming preparation work is finished.
The beneficial effects of the above technical scheme are as follows: the control precision of the programming of the single chip microcomputer is improved, the programming process is prevented from being carried out when the single chip microcomputer is not prepared, the programming program of the single chip microcomputer is complete, the error probability is reduced, and the accuracy of the programming program of the single chip microcomputer is ensured.
As shown in fig. 3, a second embodiment of the present invention provides a method for controlling programming of a single chip, including steps S1 to S5:
s1, acquiring a first address of a compiled file;
s2, judging whether the first address is legal or not by a judging module;
s3, a determining module, which sends a first signal to the singlechip when the judging module judges that the first address is legal:
s4, the single chip microcomputer is used for receiving the first signal, performing programming preparation work, and sending a second signal to the determining module when the programming preparation work is completed;
and S5, the determining module receives the second signal, processes the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performs a programming task according to the second address.
The working principle of the technical scheme is as follows: the programming control method of the single chip microcomputer comprises the steps of obtaining a first address of a compiled file; the judging module judges whether the first address is legal or not; the determining module is used for sending a first signal to the singlechip when the judging module judges that the first address is legal: the singlechip is used for receiving the first signal, performing programming preparation work, and sending a second signal to the determining module when the programming preparation work is finished; and the determining module receives the second signal, processes the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performs a programming task according to the second address.
The beneficial effects of the above technical scheme are as follows: the control precision of the programming of the single chip microcomputer is improved, the programming process is prevented from being carried out when the single chip microcomputer is not prepared, the programming program of the single chip microcomputer is complete, the error probability is reduced, and the accuracy of the programming program of the single chip microcomputer is guaranteed.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A singlechip burns writes control system which characterized in that includes:
the acquisition module is used for acquiring a first address of the compiled file;
the judging module is used for judging whether the first address is legal or not;
a determination module to:
when the judging module judges that the first address is legal, a first signal is sent to the single chip microcomputer;
receiving a second signal, processing the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performing a programming task according to the second address;
the singlechip is used for receiving the first signal, performing programming preparation work and sending a second signal to the determining module when the programming preparation work is finished;
the determining module comprises:
the second obtaining submodule is used for obtaining the number of the second addresses and judging whether the number is larger than the preset number;
the clustering submodule is used for carrying out clustering analysis on the second addresses to obtain a plurality of classification sets when the number is determined to be larger than the preset number, and determining a clustering center of each classification set;
and the determining submodule is used for determining a functional area on the single chip microcomputer corresponding to each classification set based on a preset data table according to the clustering center of each classification set.
2. The single-chip microcomputer programming control system of claim 1, wherein the judging module comprises:
the first obtaining submodule is used for obtaining attribute information of the first address;
the calculating submodule is used for calculating the matching degree of the attribute information and preset attribute information and judging whether the matching degree is greater than the preset matching degree; when the matching degree is determined to be larger than the preset matching degree, the first address is legal; otherwise, it indicates that the first address is illegal.
3. The single-chip microcomputer programming control system of claim 1, wherein the determining module is further configured to:
creating a monitoring model according to the programming task, dividing the monitoring model according to a plurality of sub-programming tasks included in the programming task, and marking the monitoring model; the sub programming task is a programming task of a single functional area on the single chip microcomputer;
acquiring actual progress information when a programming task is executed;
and matching the actual progress information with the monitoring model, comparing the matched monitoring model with preset progress information, determining the sub programming task with delayed progress, and sending an alarm prompt.
4. The single-chip microcomputer programming control system of claim 1, wherein the determining module is further configured to:
analyzing the sub programming tasks with the delayed progress, and judging whether the functional areas corresponding to the sub programming tasks with the delayed progress meet the condition of programming again;
and when determining that the functional area corresponding to the sub-programming task with the lagged progress meets the re-programming condition, acquiring the data to be programmed and performing re-programming.
5. The single-chip microcomputer programming control system of claim 1, further comprising:
the detection module is used for detecting a current signal of the singlechip during operation after the determination module completes the programming task according to the second address;
the time-frequency transformation module is used for performing time-frequency transformation processing on the current signal to obtain a time-frequency spectrogram, and performing feature extraction on the time-frequency spectrogram to obtain a plurality of spectral lines;
the filtering processing module is used for acquiring a plurality of peak values of the current spectral line, calculating the average peak value of the current spectral line, inquiring a preset data table according to the average peak value to obtain a corresponding filtering coefficient, and filtering the current spectral line according to the filtering coefficient;
the time-frequency inverse transformation processing module is used for obtaining a filtering time-frequency spectrogram according to the plurality of spectral lines after filtering processing, and carrying out time-frequency inverse transformation processing on the filtering time-frequency spectrogram to obtain a filtering current signal;
the recognition module is used for inputting the filtering current signal into a pre-trained abnormity recognition model and outputting the abnormal time and the abnormal area of the filtering current signal;
the calculation module is used for acquiring the temperature parameter and the power parameter of the abnormal area in the preset time period and respectively calculating a first change frequency and a second change frequency;
the marking module is used for determining to mark the abnormal area to obtain marking information when the first change frequency is determined to be greater than a first preset change frequency and the second change frequency is determined to be greater than a second preset change frequency;
and the message generation module is used for acquiring address information of the record descriptor, storing the marking information according to the address information, forming a fault message and carrying out alarm prompt.
6. The single-chip microcomputer programming control system of claim 5, further comprising:
and the repairing module is used for determining a fault mode according to the fault message, determining a repairing scheme according to the fault mode and a preset fault coping strategy, and repairing the fault according to the repairing scheme.
7. The single-chip microcomputer programming control system of claim 1, wherein the functional area comprises a configuration area, an application program area and a BOOT program area.
8. A single chip microcomputer programming control method is characterized by comprising the following steps:
acquiring a first address of a compiled file;
the judging module judges whether the first address is legal or not;
the determining module is used for sending a first signal to the single chip microcomputer when the judging module judges that the first address is legal;
the singlechip is used for receiving the first signal, performing programming preparation work, and sending a second signal to the determining module when the programming preparation work is finished;
the determining module receives the second signal, processes the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performs a programming task according to the second address;
the determining module receives the second signal, processes the first address based on a preset address conversion strategy to obtain a second address of the single chip microcomputer, and performs a programming task according to the second address, and the method comprises the following steps:
acquiring the number of the second addresses, and judging whether the number is greater than a preset number;
when the number is determined to be larger than the preset number, performing cluster analysis on the plurality of second addresses to obtain a plurality of classification sets, and determining a cluster center of each classification set;
and determining a functional area on the single chip microcomputer corresponding to each classification set based on a preset data table according to the clustering center of each classification set.
CN202111559088.7A 2021-12-20 2021-12-20 Single-chip microcomputer programming control system and single-chip microcomputer programming control method Active CN114237647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111559088.7A CN114237647B (en) 2021-12-20 2021-12-20 Single-chip microcomputer programming control system and single-chip microcomputer programming control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111559088.7A CN114237647B (en) 2021-12-20 2021-12-20 Single-chip microcomputer programming control system and single-chip microcomputer programming control method

Publications (2)

Publication Number Publication Date
CN114237647A CN114237647A (en) 2022-03-25
CN114237647B true CN114237647B (en) 2022-10-14

Family

ID=80758822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111559088.7A Active CN114237647B (en) 2021-12-20 2021-12-20 Single-chip microcomputer programming control system and single-chip microcomputer programming control method

Country Status (1)

Country Link
CN (1) CN114237647B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528222A (en) * 2014-09-28 2016-04-27 比亚迪股份有限公司 Single-chip microcomputer programming control system, single-chip microcomputer and single-chip microcomputer programming control method
CN106990983A (en) * 2017-03-21 2017-07-28 北京新能源汽车股份有限公司 Single-chip microcomputer programming method, device, system and single-chip microcomputer
EP3321938A1 (en) * 2016-11-15 2018-05-16 Huawei Technologies Co., Ltd. Chip and chip burning method
CN111381837A (en) * 2018-12-28 2020-07-07 广州众诺电子技术有限公司 Burning method, system and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170487B (en) * 2016-12-06 2020-08-25 比亚迪股份有限公司 Program programming method and device in DSP (digital Signal processor) and vehicle
CN109885315A (en) * 2019-01-18 2019-06-14 南京亚派科技股份有限公司 A kind of method of the wireless wifi programming program of SCM system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528222A (en) * 2014-09-28 2016-04-27 比亚迪股份有限公司 Single-chip microcomputer programming control system, single-chip microcomputer and single-chip microcomputer programming control method
EP3321938A1 (en) * 2016-11-15 2018-05-16 Huawei Technologies Co., Ltd. Chip and chip burning method
CN106990983A (en) * 2017-03-21 2017-07-28 北京新能源汽车股份有限公司 Single-chip microcomputer programming method, device, system and single-chip microcomputer
CN111381837A (en) * 2018-12-28 2020-07-07 广州众诺电子技术有限公司 Burning method, system and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OTP型单片机烧录后的程序修改方法研究;陈远浩等;《单片机与嵌入式系统应用》;20190401(第04期);第41-44页 *

Also Published As

Publication number Publication date
CN114237647A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US11132787B2 (en) Method for monitoring manufacture of assembly units
US8868985B2 (en) Supervised fault learning using rule-generated samples for machine condition monitoring
CN109934268B (en) Abnormal transaction detection method and system
CN111580506A (en) Industrial process fault diagnosis method based on information fusion
CN115981240B (en) Method, device, equipment and medium for determining fault cause of numerical control machine tool
JP2020509521A (en) System and method for determining defect patterns from sensor data in product validation and manufacturing processes
CN108009740B (en) Intelligent fine identification system and method for tobacco essence and flavor
CN109189407A (en) Statistical method, system, device and the storage medium of a kind of pair of multi-chip burning
CN117575624A (en) Conductive adhesive traceability management system
CN114237647B (en) Single-chip microcomputer programming control system and single-chip microcomputer programming control method
US20120323506A1 (en) Semiconductor Defect Signal Capturing and Statistical System and Method
CN112434023A (en) Process data analysis method and device, storage medium and computer equipment
CN110427316B (en) Embedded software defect repairing method based on access behavior perception
CN113569988A (en) Algorithm model evaluation method and system
CN117520184A (en) Test system for developing computer software
CN114384885B (en) Process parameter adjusting method, device, equipment and medium based on abnormal working conditions
CN114227378B (en) Clamp state detection method and device, terminal and storage medium
CN114155914A (en) Detection and correction system based on metagenome splicing error
CN115659271A (en) Sensor abnormality detection method, model training method, system, device, and medium
CN115200513A (en) Coaxiality jumping detection, analysis and control system for rotating body clamp
CN108039984A (en) A kind of automatic identification method of automobile engine communications protocol
TWI399660B (en) A method of detecting variance by regression model
CN114660931A (en) Method and system for diagnosing and identifying petrochemical process fault
CN116910499A (en) System state monitoring method and device, electronic equipment and readable storage medium
CN114580982B (en) Method, device and equipment for evaluating data quality of industrial equipment

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