# US 2012/0254512 A1 · Memory configuring method, memory controller and memory storage apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0254512 A1
- Document ID: US20120254512A1
- Status: Published application
- Kind: A1
- Application number: 13/113,101
- Filed: 2011-05-23
- Published: 2012-10-04
- Earliest claimed: 2011-03-28
- Assignees: Phison Electronics Corp.
- Inventors: Chien-Fu Lee
- Web page: https://patentgrep.com/patent/US20120254512A1

## CPC

- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory configuring method for a memory storage apparatus is provided, wherein a rewritable non-volatile memory module of the memory storage apparatus has a plurality of physical blocks. The method includes receiving a plurality of query commands from a host system, identifying a pattern corresponding to the query commands and recognizing a type of an operating system executed on the host system. The method further includes configuring the rewritable non-volatile memory module according to the type of the operating system and announcing a configuration of the memory storage apparatus to the host system. Accordingly, the method can configure the non-volatile memory module according different operating systems, and thereby the memory storage apparatus can successfully receive commands and re-set according to user's demand.

## Claims

### Claim 1

A memory configuring method for a memory storage apparatus, wherein the memory storage apparatus has a rewritable non-volatile memory module and the rewritable non-volatile memory module has a plurality of physical blocks, the memory configuring method comprising:
receiving a plurality of query commands from a host system;
identifying a pattern corresponding to the query commands and recognizing a type of an operating system of the host system according to the pattern; and
configuring the rewritable non-volatile memory module according to the type of the operating system and announcing a configuration of the memory storage apparatus to the host system.

### Claim 2 (depends on 1)

The memory configuring method as claimed in claim 1, wherein the step of identifying the pattern corresponding to the query commands and recognizing the type of the operating system of the host system according to the pattern comprises:
identifying a transmitting sequence of the query commands and recognizing the type of the operating system of the host system according to the transmitting sequence.

### Claim 3 (depends on 1)

The memory configuring method as claimed in claim 1, further comprising:
configuring a first partition and a second partition on the memory storage apparatus,
wherein the step of configuring the rewritable non-volatile memory module according to the type of the operating system and announcing the configuration of the memory storage apparatus to the host system comprises:
when the operating system of the host system is a first operating system platform, simulating the second partition as a rewritable optical disc partition and announcing that the memory storage apparatus is an apparatus comprising a mass storage device and a rewritable optical disc drive to the host system,
wherein the mass storage device corresponds to the first partition and the rewritable optical disc drive corresponds to the second partition.

### Claim 4 (depends on 3)

The memory configuring method as claimed in claim 3, wherein the second partition is a virtual partition without occupying memory space.

### Claim 5 (depends on 3)

The memory configuring method as claimed in claim 3, further comprising:
receiving a mass-storage devices support command from a mount point and setting a storage attribute of the first partition to a writable mode according to the mass-storage devices support command,
wherein the host system mounts the rewritable optical disc drive to the mount point.

### Claim 6 (depends on 1)

The memory configuring method as claimed in claim 1, further comprising:
configuring a first partition and a second partition on the memory storage apparatus,
wherein the step of configuring the rewritable non-volatile memory module according to the type of the operating system and announcing the configuration of the memory storage apparatus to the host system comprises:
when the operating system of the host system is a second operating system platform, simulating the second partition as an optical disc partition and announcing that the memory storage apparatus is an apparatus comprising a mass storage device and an optical disc drive to the host system,
wherein the mass storage device corresponds to the first partition and the optical disc drive corresponds to the second partition.

### Claim 7 (depends on 6)

The memory configuring method as claimed in claim 6, further comprising:
receiving a mass-storage devices support command from a mount point and setting a storage attribute of the first partition to a writable mode according to the mass-storage devices support command,
wherein the host system mounts the optical disc drive to the mount point.

### Claim 8 (depends on 1)

The memory configuring method as claimed in claim 1, further comprising:
configuring a first partition on the memory storage apparatus,
wherein the step of configuring the rewritable non-volatile memory module according to the type of the operating system and announcing the configuration of the memory storage apparatus to the host system comprises:
announcing that the memory storage apparatus is a composite device comprising a human interface and a mass storage device to the host system when the operating system of the host system is a third operating system platform,
wherein the mass storage device corresponds to the first partition.

### Claim 9 (depends on 8)

The memory configuring method as claimed in claim 8, further comprising:
receiving a command complied with a human interface protocol through a human interface device path of the host system and setting the storage attribute of the first partition to a writable mode according to the command.

### Claim 10

A memory controller for controlling a rewritable non-volatile memory module of a memory storage apparatus, wherein the rewritable non-volatile memory module has a plurality of physical blocks, and the memory controller comprising:
a host interface, configured to couple to a host system;
a memory interface, configured to couple to the rewritable non-volatile memory module; and
a memory management circuit, coupled to the host interface and the memory interface,
wherein the memory management circuit is configured to receive a plurality of query commands from the host system, and recognize a type of an operating system of the host system according to a pattern corresponding to the query commands,
wherein the memory management circuit configures the rewritable non-volatile memory module according to the type of the operating system and announces a configuration of the memory storage apparatus to the host system.

### Claim 11 (depends on 10)

The memory controller as claimed in claim 10, wherein the memory management circuit identifies a transmitting sequence of the query commands and recognizes the type of the operating system of the host system according to the transmitting sequence.

### Claim 12 (depends on 10)

The memory controller as claimed in claim 10, wherein the memory management circuit configures a first partition and a second partition,
wherein when the operating system of the host system is a first operating system platform, the memory management circuit simulates the second partition as a rewritable optical disc partition and announces that the memory storage apparatus is an apparatus comprising a mass storage device and a rewritable optical disc drive to the host system,
wherein the mass storage device corresponds to the first partition and the rewritable optical disc drive corresponds to the second partition.

### Claim 13 (depends on 12)

The memory controller as claimed in claim 12, wherein the second partition is a virtual partition without occupying memory space.

### Claim 14 (depends on 12)

The memory controller as claimed in claim 12, wherein the host system mounts the rewritable optical disc drive to a mount point,
wherein the memory management circuit receives a mass-storage devices support command from the mount point and sets a storage attribute of the first partition to a writable mode according to the mass-storage devices support command.

### Claim 15 (depends on 10)

The memory controller as claimed in claim 10, wherein the memory management circuit configures a first partition and a second partition,
wherein when the operating system of the host system is a second operating system platform, the memory management circuit simulates the second partition as an optical disc partition and announces that the memory storage apparatus is an apparatus comprising a mass storage device and an optical disc drive to the host system,
wherein the mass storage device corresponds to the first partition and the optical disc drive corresponds to the second partition.

### Claim 16 (depends on 15)

The memory controller as claimed in claim 15, wherein the host system mounts the optical disc drive to the mount point,
wherein the memory management circuit receives a mass-storage devices support command from the mount point and sets a storage attribute of the first partition to a writable mode according to the mass-storage devices support command.

### Claim 17 (depends on 10)

The memory controller as claimed in claim 10, wherein the memory management circuit configures a first partition,
wherein when the operating system of the host system is a third operating system platform, the memory management circuit announces that the memory storage apparatus is a composite device comprising a human interface and a mass storage device to the host system,
wherein the mass storage device corresponds to the first partition.

### Claim 18 (depends on 17)

The memory controller as claimed in claim 17, wherein the memory management circuit receives a command complied with a human interface protocol through a human interface device path of the host system and sets the storage attribute of the first partition to a writable mode according to the command.

### Claim 19

A memory storage apparatus, comprising:
a connector, configured to couple to a host system;
a rewritable non-volatile memory module, having a plurality of physical blocks; and
a memory controller, coupled to the connector and the rewritable non-volatile memory module,
wherein the memory controller is configured to receive a plurality of query commands from the host system and recognize a type of an operating system of the host system according to a pattern corresponding to the query commands,
wherein the memory controller configures the rewritable non-volatile memory module according to the type of the operating system and announces a configuration of the memory storage apparatus to the host system.

### Claim 20 (depends on 19)

The memory storage apparatus as claimed in claim 19, wherein the memory controller identifies a transmitting sequence of the query commands and recognizes the type of the operating system of the host system according to the transmitting sequence.

### Claim 21 (depends on 19)

The memory storage apparatus as claimed in claim 19, wherein the memory controller configures a first partition and a second partition,
wherein when the operating system of the host system is a first operating system platform, the memory controller simulates the second partition as a rewritable optical disc partition and announces that the memory storage apparatus is an apparatus comprising a mass storage device and a rewritable optical disc drive to the host system,
wherein the mass storage device corresponds to the first partition and the rewritable optical disc drive corresponds to the second partition.

### Claim 22 (depends on 21)

The memory storage apparatus as claimed in claim 21, wherein the second partition is a virtual partition without occupying a memory space.

### Claim 23 (depends on 19)

The memory storage apparatus as claimed in claim 19, wherein the host system mounts the rewritable optical disc drive to a mount point,
wherein the memory controller receives a mass-storage devices support command from the mount point and sets a storage attribute of the first partition to a writable mode according to the mass-storage devices support command.

### Claim 24 (depends on 19)

The memory storage apparatus as claimed in claim 19, wherein the memory controller configures a first partition and a second partition,
wherein when the operating system of the host system is a second operating system platform, the memory controller simulates the second partition as an optical disc partition and announces that the memory storage apparatus is an apparatus comprising a mass storage device and an optical disc drive to the host system,
wherein the mass storage device corresponds to the first partition and the optical disc drive corresponds to the second partition.

### Claim 25 (depends on 24)

The memory storage apparatus as claimed in claim 24, wherein the host system mounts the optical disc drive to the mount point,
wherein the memory controller receives a mass-storage devices support command from the mount point and sets a storage attribute of the first partition to a writable mode according to the mass-storage devices support command.

### Claim 26 (depends on 19)

The memory storage apparatus as claimed in claim 19, wherein the memory controller configures a first partition,
wherein when the operating system of the host system is a third operating system platform, the memory controller announces that the memory storage apparatus is a composite device comprising a human interface and a mass storage device to the host system,
wherein the mass storage device corresponds to the first partition.

### Claim 27 (depends on 26)

The memory storage apparatus as claimed in claim 26, wherein the memory controller receives a command complied with a human interface protocol through a human interface device path of the host system and sets the storage attribute of the first partition to a writable mode according to the command.
