Battery device and program executed therein
AssigneeRenesas Electronics Corporation
InventorHajime NOZAKI
Life of this patent
Estimating the term…
Abstract
A connector of a battery device includes a first terminal and a second terminal. The first terminal is coupleable to an opposed unit through a cable in a first state. The second terminal is coupleable to the opposed unit through the cable in the second state which is inverted upside down from the first state. A control device of the battery device is configured to charge the battery device with electric power from the opposed unit, when it is coupled to the opposed unit through the cable in the first state, and to supply the opposed unit with electric power from the battery device, when it is coupled to the opposed unit through the cable in the second state.
Claims7
A battery device coupleable to an opposed unit through a cable, comprising:
- a connector which is coupleable to the cable;
- a battery;
- and
- a control device which switches between a power supply mode for supplying electric power from the battery to the opposed unit through the cable and a power receiving mode for charging the battery with electric power from the opposed unit through the cable,
- wherein the connector includes
- a first terminal coupleable to the opposed unit through a cable in a first state, and
- a second terminal coupleable to the opposed unit through a cable in a second state which is inverted upside down from the first state,
- wherein the control device is configured to
- charge the battery with electric power from the opposed unit, in a state where the power receiving mode is set, and when the first terminal and the opposed unit are coupled with each other through the cable in the first state, and
- supply the opposed unit with electric power from the battery, in a state where the power supply mode is set, when the second terminal and the opposed unit are coupled with each other through the cable in the second state.
A program executed by a computer of a battery device coupleable to an opposed unit through a cable,
- wherein a connector to be coupled to the cable provided in the battery device includes
- a first terminal coupleable to the opposed unit through the cable in a first state, and
- a second terminal coupleable to the opposed unit through the cable in a second state which is inverted upside down from the first state,
- wherein the program causes a computer to execute the steps of:
- switching a coupling destination of the first terminal and the second terminal between different pull-up resistors and different pull-down resistors, in a state where the battery device and the opposed unit are not coupled with each other,
- judging whether any of the first terminal and the second terminal is coupled to the opposed unit through the cable, when the battery device and the opposed unit are coupled with each other,
- judging whether a coupling destination of the first terminal and the second terminal is any of the pull-up resistors and the pull-down resistors, when the battery device and the opposed unit are coupled with each other,
- judging whether a predetermined condition regarding the judged terminal and the judged resistor is satisfied, and
- switching a coupling destination of the first terminal and the second terminal from the judged resistor, when it is judged that the condition is not satisfied.
Dependencies are inferred from the claim text.