# US 2017/0286161 A1 · Method and apparatus for distributing tasks of autosar operating system

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

- Number: US 2017/0286161 A1
- Document ID: US20170286161A1
- Status: Published application
- Kind: A1
- Application number: 15/473,507
- Filed: 2017-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Hyundai Autron Co., Ltd.
- Applicants: Hyundai Autron Co., Ltd.
- Inventors: Dae-Hwan Lim
- Web page: https://patentgrep.com/patent/US20170286161A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 9/4806: {Task transfer initiation or dispatching}
- G06F 9/4825: {Interrupt from clock, e.g. time of day}
- G06F 9/4837: {time dependent}
- G06F 13/1689: {Synchronisation and timing concerns (synchronisation on a memory bus G06F13/4234)}
- H04J 3/06: Synchronising arrangements {(for television systems H04N5/04; bit-synchronisation H04L7/00)}
- H04L 12/40: Bus networks
- H04L 12/407: with decentralised control
- H04L 2012/40273: {the transportation system being a vehicle}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04J: MULTIPLEX COMMUNICATION (transmission in general H04B; peculiar to transmission of digital information H04L5/00; systems for the simultaneous or sequential transmission of more than one television signal H04N7/08; in exchanges H04Q11/00; stereophonic systems H04S)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Provided are a method of distributing tasks of an AUTomotive Open System Architecture (AUTOSAR) operating system and managing OsTask using OsAlarm in the AUTOSAR operating system, the method comprises, storing in Counter_BSW a value of a counter at a time when a function for setting an alarm for a basic software (BSW) module is called, storing in Counter_RTE the value of the counter at a time when a function for setting an alarm for an application software (ASW) module is called and correcting an offset value of the alarm for the ASW module using a value of Counter_BSW and a value of Counter_RTE.

## Claims

### Claim 1

A method of distributing tasks of an AUTomotive Open System Architecture (AUTOSAR) operating system and managing OsTask using OsAlarm in the AUTOSAR operating system, the method comprising:
storing in Counter_BSW a value of a counter at a time when a function for setting an alarm for a basic software (BSW) module is called;
storing in Counter_RTE the value of the counter at a time when a function for setting an alarm for an application software (ASW) module is called; and
correcting an offset value of the alarm for the ASW module using a value of Counter_BSW and a value of Counter_RTE.

### Claim 2 (depends on 1)

The method of claim 1, wherein the function for setting the alarm for the BSW module is a SchM_Init function, the function for setting the alarm for the ASW module is an Rte_Start function, and the SchM_Init function is executed before the Rte_Start function.

### Claim 3 (depends on 1)

The method of claim 1, wherein the correcting of the offset value comprises:
comparing the value of Counter_RTE with a value of (Counter_BSW+Offset); and
setting a new offset when the value of Counter_RTE is greater than the value of (Counter_BSW+Offset),
wherein the new offset is set by
new Offset=(Cycle−((Counter_RTE−(Counter_BSW+Offset)) % Cycle)), where Cycle is a cycle of the counter.

### Claim 4 (depends on 1)

The method of claim 1, wherein the correcting of the offset value comprises:
comparing the value of Counter_RTE with a value of (Counter_BSW+Offset); and
setting a new offset when the value of Counter_RTE is smaller than the value of (Counter_BSW+Offset),
wherein the new offset is set by
new Offset=(Cycle−(((Counter_BSW+Offset)−Counter_RTE) % Cycle)), where Cycle is a cycle of the counter.

### Claim 5

An apparatus for distributing tasks of an AUTOSAR operating system and managing OsTask using OsAlarm in the AUTOSAR operating system, the apparatus comprising:
a Counter_BSW storage unit which stores in Counter_BSW a value of a counter at a time when a function for setting an alarm for a BSW module is called;
a Counter_RTE storage unit which stores in Counter_RTE the value of the counter at a time when a function for setting an alarm for an ASW module is called; and
is an Offset correction unit which corrects an offset value of the alarm for the ASW module using a value of Counter_BSW and a value of Counter_RTE.

### Claim 6

A method of correcting an alarm offset when setting two or more alarms using one counter in an embedded operating system, the method comprising:
storing a value of a first counter at a time when a function for setting a first alarm using a relative method is called;
storing a value of a second counter at a time when a function for setting a second alarm using the relative method is called; and
correcting an offset value of the second alarm using the value of the first counter and the value of the second counter.

### Claim 7 (depends on 6)

The method of claim 6, wherein the correcting of the offset value of the second alarm comprises:
comparing the value of the second counter with (the value of the first counter+the offset value); and
setting a new offset when the value of the second counter is greater than (the value of the first counter+the offset value),
wherein the new offset is set by
new offset=(counter cycle−(value of the second counter−(value of the first counter)+offset value)) % counter cycle)).

### Claim 8 (depends on 6)

The method of claim 6, wherein the correcting of the offset value of the second alarm comprises:
comparing the value of the second counter with (the value of the first counter+the offset value); and
setting a new offset when the value of the second counter is smaller than (the value of the first counter+the offset value),
wherein the new offset is set by
new offset=(counter cycle−(((value of the first counter+offset value)−value of the second counter) % counter cycle)).
