{"id":21002669,"url":"https://github.com/mictronics/bqev23k","last_synced_at":"2026-04-07T13:31:30.229Z","repository":{"id":117166084,"uuid":"147567337","full_name":"Mictronics/bqev23k","owner":"Mictronics","description":"A project that controls the Texas Instruments (TI) EV2300 hardware interface through C# WPF. Especially written for the BQ40Z80 (2-Series to 7-Series battery pack manager with impedance track gas gauge).","archived":false,"fork":false,"pushed_at":"2021-08-06T07:43:58.000Z","size":590,"stargazers_count":20,"open_issues_count":0,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-03T10:38:25.784Z","etag":null,"topics":["bq40z80","bq80xrw","csharp","ev2300","ev2400","oxyplot","texas-instruments","wpf"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mictronics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-05T19:12:11.000Z","updated_at":"2025-04-05T22:50:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"6789bd2a-348a-465e-9122-417eda7e011f","html_url":"https://github.com/Mictronics/bqev23k","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mictronics/bqev23k","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mictronics%2Fbqev23k","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mictronics%2Fbqev23k/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mictronics%2Fbqev23k/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mictronics%2Fbqev23k/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mictronics","download_url":"https://codeload.github.com/Mictronics/bqev23k/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mictronics%2Fbqev23k/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bq40z80","bq80xrw","csharp","ev2300","ev2400","oxyplot","texas-instruments","wpf"],"created_at":"2024-11-19T08:19:32.860Z","updated_at":"2026-04-07T13:31:30.213Z","avatar_url":"https://github.com/Mictronics.png","language":"C#","readme":"# BQEV23K\r\nA project that controls the Texas Instruments (TI) EV2300 hardware interface through C# WPF.\r\nEspecially written for the BQ40Z80 (2-Series to 7-Series battery pack manager with impedance track gas gauge). It runs a learning cycle or GPC cycle in manual or full automatic mode.\r\n\r\n## Features\r\nAs a side effect it demonstrates:\r\n- Implementation and access of bq80xrw.ocx COM component in C# WPF\r\n- Controlling the EV2300 GPIO pins (relay jig control)\r\n- Read device configuration files in TI .bqz format\r\n- Read and write to BQ40Z80 registers in normal mode and ManufacturerAccessBlock mode\r\n- Reading the entire BQ40Z80 dataflash\r\n- Running the BQ40Z80 learning and GPC cycle\r\n- Implementation and usage of Oxyplot WPF with real time update\r\n\r\n## Recommended documentation\r\n\r\n[BQ40Z80 Technical documents](http://www.ti.com/product/BQ40Z80/technicaldocuments)\r\n- SLUA848 How to Complete a Successful Learning Cycle for the bq40z80\r\n- SLUA868 bq40z80 Manufacture, Production, and Calibration\r\n- SLUUBT4A bq40z80EVM Li-Ion Battery Pack Manager Evaluation Module\r\n- SLUUBT5 bq40z80 Technical Reference Manual\r\n- SLVA725 Simple Guide to Chemical ID Selection Tool (GPC)\r\n\r\n## Requirements\r\n\r\n- Project written for and tested with custom design BQ40Z80 battery pack management board.\r\n- EV2300 hardware interface (EV2400 not tested, but expected to work).\r\n- External relay jig for fully automated cycle (charger and load control).\r\n\r\n## Build instructions\r\nBuilt and tested on Windows7 64bit with Visual Studio 2015.\r\n\r\n### Dependencies\r\n\r\n- Installed EV2300 customer kit (see below).\r\n- NuGet Oxplot.Core and Oxplot.Wpf packages.\r\n\r\n### Setup of new Visual Studio project with bq80xrw implementation\r\n1. Download [EV2300 customer kit](https://www.mictronics.de/aO8F2bW9/EV2300_Customer_Kit.zip)\r\n2. Run and install *EV2300DevKitSetup.exe*\r\n3. Create new C# WPF project in Visual Studio\r\n   - BQEK23K_Demo\r\n   - Add a new a Visual Studio C# Windows Form Control Library project (located in *Visual C#* =\u003e *Classic Desktop*\r\n     - AxBQEV23K\r\n\t - Rename automatically generated UserControl1 into AxBQEV23KControl. Choose *Yes* in popup dialog.\r\n   - Add Bq80xRW COM control in AxBQEV23KControl\r\n     - In Toolbox, right click =\u003e *Choose Item* =\u003e Select *COM Components* tab =\u003e Select checkbox *Bq80xRW Control*\r\n     - Search Bq80xRW Control in Toolbox (General) and drag it into AxBQEV23KControl, AxBQ80XRWLib and BQ80XRWLib will be added as reference automatically.\r\n     - Build AxBQEV23K\r\n   - Add AxInterop.BQ80XRWLib as reference in BQEV23K\r\n     - In solution explorer, selected *References*, right click and *Add Reference*\r\n\t - Browse to AxBQEV23K project build folder (bin\\Debug or bin\\Release)\r\n\t - Select *AxInterop.BQ80XRWLib.dll* and add\r\n   - Add System.Windows.Forms as reference in BQEV23K\r\n   - Add WindowsFormsIntegration as reference in BQEV23K\r\n4. Add new AxBQ80XRWLib.AxBq80xRW class to your project code.\r\n\r\nMainWindow.xaml.cs\r\n```\r\nusing System.Windows;\r\n\r\nnamespace BQEV23K_Demo\r\n{\r\n    public partial class MainWindow : Window\r\n    {\r\n        AxBQ80XRWLib.AxBq80xRW EV23K;\r\n        public MainWindow()\r\n        {\r\n            InitializeComponent();\r\n            AxBQ80XRWLib.AxBq80xRW EV23K;\r\n            System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();\r\n            EV23K = new AxBQ80XRWLib.AxBq80xRW();\r\n            host.Child = EV23K;\r\n            MainGrid1.Children.Add(host);\r\n        }\r\n    }\r\n}\r\n```\r\nMainWindow.xaml\r\n```\r\n\u003cWindow x:Class=\"BQEV23K_Demo.MainWindow\"\r\n        xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\r\n        xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\r\n        xmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"\r\n        xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\r\n        xmlns:local=\"clr-namespace:BQEV23K_Demo\"\r\n        mc:Ignorable=\"d\"\r\n        Title=\"MainWindow\" Height=\"350\" Width=\"525\"\u003e\r\n    \u003cGrid Name=\"MainGrid1\"\u003e\r\n        \r\n    \u003c/Grid\u003e\r\n\u003c/Window\u003e\r\n```\r\n5. Build project.\r\n\r\n[Original source](http://e2e.ti.com/support/power_management/battery_management/f/180/p/640114/2363362#2363362)\r\n\r\n## License\r\n\r\nCopyright \u0026copy; 2018 Michael Wolf, mictronics.de\r\nDistributed under the modified [MIT license](LICENSE).\r\n\r\n#### Disclaimer\r\nI'm not an TI employee or part of their product support. This is a pure hobbyist project.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmictronics%2Fbqev23k","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmictronics%2Fbqev23k","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmictronics%2Fbqev23k/lists"}