Method for generating random number and microcontroller unit using the method

US2024427554A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2024427554-A1
Application numberUS-202418748348-A
CountryUS
Kind codeA1
Filing dateJun 20, 2024
Priority dateJun 21, 2023
Publication dateDec 26, 2024
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method of generating a random number for a microcontroller unit, the microcontroller unit using the method, an apparatus including the microcontroller unit are provided. The method includes: reading, from a flash memory of the microcontroller unit, a random number generated the previous time the microcontroller unit was powered on, in response to the microcontroller unit being powered on; acquiring, random information of the microcontroller unit and using the random information as a seed of a random number generation algorithm to generate the random number in a case that the reading fails, and using, the read random number as the seed of the random number generation algorithm to generate the random number in case that the reading succeeds; and writing, the generated random number to the flash memory of the microcontroller unit.

First claim

Opening claim text (preview).

1 . A method of generating a random number for a microcontroller unit, comprising: reading, from a flash memory of the microcontroller unit, a random number generated the previous time the microcontroller unit was powered on, in response to the microcontroller unit being powered on; acquiring, random information of the microcontroller unit and using the random information as a seed of a random number generation algorithm to generate the random number in a case that the reading fails, and using, the read random number as the seed of the random number generation algorithm to generate the random number in case that the reading succeeds; and writing, the generated random number to the flash memory of the microcontroller unit. 2 . The method of claim 1 , wherein writing the generated random number to the flash memory of the microcontroller unit comprises: writing the generated random number to one of a plurality of memory cells of a first space selected from the flash memory sequentially according to flash memory addresses of the plurality of memory cells, wherein each of the plurality of memory cells corresponds to a minimum writing unit of the flash memory. 3 . The method of claim 2 , wherein reading, from a flash memory of the microcontroller unit, a random number generated the previous time the microcontroller unit was powered on comprises: searching for the memory cell where a latest random number was written among the plurality of memory cells of the first space and reading the random number in the memory cell; and erasing the first space to reuse the first space for storing a new random number in a case that the last memory cell of the first space in order of flash memory addresses has been written with a random number. 4 . The method of claim 3 , wherein the first space comprises a plurality of pages, and wherein writing the generated random number to the flash memory of the microcontroller unit further comprises: when the flash memory address of the memory cell of the first space where a random number is to be written is a start address of one of the plurality of pages, writing a predetermined value to a memory cell of a plurality of memory cells of a second space selected from the flash memory that is used to record a usage of the page, wherein the plurality of memory cells of the second space are used for recording the usage of each of the plurality of pages of the first space, respectively. 5 . The method of claim 4 , wherein searching for the memory cell where the latest random number was written among the plurality of memory cells of the first space comprises: searching for the memory cell where the latest random number was written among the page of a first space corresponding to the memory cell in the second space where the predetermined value was written latest. 6 . The method of claim 4 , wherein the plurality of memory cells of the second space are also erased while the first space is erased. 7 . The method of claim 1 , wherein the random information comprises a reading of a general-purpose input/output (GPIO) port that is in a floating state of the microcontroller unit and/or a clock difference between a high speed internal clock and a low speed internal clock of the microcontroller unit. 8 . A microcontroller unit comprising: a reading module, configured to read, from a flash memory of the microcontroller unit, a random number generated the previous time the microcontroller unit was powered on, in response to the microcontroller unit being powered on; an acquiring module, configured to acquire random information of the microcontroller unit in a case that the reading fails; a random number generating module, configured to generate a random number by using the random information as a seed of a random number generation algorithm in a case that the reading fails, and to generate the random number by using the read random number as a seed of the random number generation algorithm in a case that the reading succeeds; and a writing module, writing the generated random number to the flash memory of the microcontroller unit. 9 . The microcontroller unit of claim 8 , wherein the random information comprises a reading of a general-purpose input/output (GPIO) port that is in a floating state of the microcontroller unit and/or a clock difference between a high-speed internal clock and a low-speed internal clock of the microcontroller unit. 10 . A non-transitory computer-readable storage medium having instructions stored thereon which, when executed by a processor, cause the processor to carry out the method of claim 1 .

Assignees

Inventors

Classifications

  • Microcontrol or microprogram arrangements · CPC title

  • G06F7/588Primary

    Random number generators, i.e. based on natural stochastic processes · CPC title

  • Flash memory · CPC title

  • in hierarchically structured memory systems, e.g. virtual memory systems · CPC title

  • G06F7/58Primary

    Random or pseudo-random number generators · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2024427554A1 cover?
A method of generating a random number for a microcontroller unit, the microcontroller unit using the method, an apparatus including the microcontroller unit are provided. The method includes: reading, from a flash memory of the microcontroller unit, a random number generated the previous time the microcontroller unit was powered on, in response to the microcontroller unit being powered on; acq…
Who is the assignee on this patent?
Schneider Electric Ind Sas
What technology area does this patent fall under?
Primary CPC classification G06F7/588. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Dec 26 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).