Professional Documents
Culture Documents
Guide
8-bit Atmel
Features Microcontrollers
• Supports battery management development using Atmel® AVR® microcontrollers
• Supports multiple-devices connections
• Workspace based documents management system
- Support multiple projects opened in the same workspace Application Note
- Support multiple battery management windows opened in the same time
• Optional SQL server database for each battery pack
• Supplies SBS standard commands quick list – click to issue
1 Introduction
Atmel AVR Battery Studio 2 is the front-end to the Atmel battery management
development tools. Together, AVR Battery Studio and the tools support the
development, test and manufacturing process. AVR Battery Studio 2 has three
editions: enterprise, standard and professional. This document will help you to
quickly establish a working environment with Atmel Battery Management.
Rev. 8335A-AVR-11/11
2 Getting started
2.1 Workspace
Atmel AVR Battery Studio 2 is a workspace based IDE. It is recommended to use
different workspace layouts for different steps of the process. Recommended
workspace layouts are available with the installation of AVR Battery Studio. These
can be used as is or modified for individual requirements.
When you open a workspace, all projects in this workspace will be opened
automatically and all components will try to resume working state. The idea of
projects and components are just concepts for making customers’ daily work clean
and efficient. So there is no need for opening/closing a project individually.
When you close a workspace or the studio, whole workspace will be saved.
2 Atmel AVR363
8335A-AVR-11/11
Atmel AVR363
3
8335A-AVR-11/11
Figure 3-2. The states transparent of the battery management module.
X ?
Battery #1 Battery #1
Disconnect Unknown
47% 47%
Battery #1 Battery #1 Battery #1
4 Atmel AVR363
8335A-AVR-11/11
Atmel AVR363
3.1.4 Charging state
After the identification, if a charging current is detected, charging state is entered. In
this state, if system lost connection with the battery pack, disconnected state is
entered. If the Atmel BM300 is re-plugged in, system will re-enter charging state
directly.
5
8335A-AVR-11/11
4 Working with a battery pack
After the connection with a battery pack through Atmel BM300 is created properly and
the identification stage is passed the system is ready to be used. In use, detailed
information of the target pack can be read, the battery status over a specified time
span can be scanned and saved to a dedicated database and the Battery
parameters/settings can be configured.
If a battery module in a project work field is double clicked, or select in the right click
pop-up menu, a battery window will be shown (see Figure 4-1). There are five
different table pages in this window: General, Information, Settings, SMBus and
Properties.
6 Atmel AVR363
8335A-AVR-11/11
Atmel AVR363
of the item, a value can be written into the target device or a value can be read from
the device when you click the parameter item name. To prevent unintended writing to
the battery pack every time a new battery management window is opened, all
parameter items will be set to read information mode as default when you click the
label.
For parameter items, all values are displayed in blue. For information items
unchanged value will be shown in brown and changed value will be in blue. Left
clicking an information value will switch the item behavior state between auto refresh
and manual refresh. All auto-refreshed items will be highlighted (shown as Figure
4-2).
You can manually refresh all information items by clicking the refresh button in the
right top corner. If the system failed in data exchange with a pack, the color of the
item will become gray.
7
8335A-AVR-11/11
Figure 4-3. Start an auto-refresh service.
NOTE The SQL server 2005 installation is required to support advanced data formats.
Without this installation, the auto-refresh service will work properly and all sampled
record could be save to a log file when you check the “Output to Text (*.log)
documents at background” selection.
With a database, you can export any sampling plan into log file or excel documents
by click the Export button of the toolbar in the top of the history page. During export,
you can still auto-scan the target and add new records to the same sampling plan. If
the record number is large, it is strongly recommended to export a sampling plan into
a log file first, and then open this log file in excel.
8 Atmel AVR363
8335A-AVR-11/11
Atmel AVR363
Figure 4-5. History window for reviewing data records in database.
9
8335A-AVR-11/11
4.3 Configure a battery pack
All of the configurations of a battery pack are done on the Settings page. An example
of the setting page is shown in Figure 4-8. Parameter items and information items are
organized by category and functionality. The values of all parameter items from the
battery pack can be read by clicking the “Read All” button in the toolbar.
To change the value of a parameter item, double click the original value (keep your
mouse point in the editor range) write a new value and press enter to apply. For more
details about the battery parameter configuration, please refer to dedicated
application notes.
10 Atmel AVR363
8335A-AVR-11/11
Atmel AVR363
Figure 4-9. SMBus window.
After setting all the necessary information, clicking the “Execute” button will issue the
command. Figure 4-11 shows the available target buses and Figure 4-13 shows the
response mode used by the reply monitor.
11
8335A-AVR-11/11
Figure 4-12. User-defined SBS command window.
NOTE A wait-forever command will consume an un-recoverable system resource when the
target device is not responding. It is better to set a timeout value if it is possible.
A successful No Parameter command, Write Word commands and the Write Block
commands will show a pop-up dialog; a Read Word command will display the value
on the result textbox of the target device; a Read Block command will display the
received binary stream in a specified way (hexadecimal value or normal string).
12 Atmel AVR363
8335A-AVR-11/11
Atmel AVR363
5 Table of contents
Features ............................................................................................... 1
1 Introduction ...................................................................................... 1
2 Getting started ................................................................................. 2
2.1 Workspace........................................................................................................... 2
2.2 How to load a workspace .................................................................................... 2
3 How to connect to Atmel BM300 .................................................... 3
3.1 Reading battery status from the visual pattern.................................................... 3
3.1.1 Disconnect state........................................................................................................ 4
3.1.2 Unknown state........................................................................................................... 4
3.1.3 Normal (idle) state ..................................................................................................... 4
3.1.4 Charging state ........................................................................................................... 5
3.1.5 Discharging state....................................................................................................... 5
13
8335A-AVR-11/11
Atmel Corporation Atmel Asia Limited Atmel Munich GmbH Atmel Japan
2325 Orchard Parkway Unit 01-5 & 16, 19F Business Campus 16F, Shin Osaki Kangyo Bldg.
San Jose, CA 95131 BEA Tower, Milennium City 5 Parkring 4 1-6-4 Osaki Shinagawa-ku
USA 418 Kwun Tong Road D-85748 Garching b. Munich Tokyo 104-0032
Tel: (+1)(408) 441-0311 Kwun Tong, Kowloon GERMANY JAPAN
Fax: (+1)(408) 487-2600 HONG KONG Tel: (+49) 89-31970-0 Tel: (+81) 3-6417-0300
www.atmel.com Tel: (+852) 2245-6100 Fax: (+49) 89-3194621 Fax: (+81) 3-6417-0370
Fax: (+852) 2722-1369
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to
any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL
TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE
LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION,
DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO
USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or
warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and
product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically
provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or
warranted for use as components in applications intended to support or sustain life.
8335A-AVR-11/11