bumpemu
This is a bump controller emulator for CellPro PowerLab 6 and 8 chargers. It allows you to use the CCS mobile app to control your charger over bluetooth low energy (BLE).
To interface to the PowerLab with BLE, you need two pieces of hardware:
If you've ever hooked up your PowerLab to your PC and monitored charging, you already have the FUIM3.
Pi Zero W Setup
This controller emulator will run on the Pi Zero W. Follow the instructions for installing the Pi with the latest version of Raspbian.
Once you have the Pi up and running, make sure everything is up to date:
sudo apt-get update
sudo apt-get upgrade
Then install the required libraries:
sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev libgirepository1.0-dev libcairo2-dev
The Pi will come with bluez already installed, but it will probably be an
older version. Version 5.45 has proven to work well so you will need to
install it. Download it from here.
Then follow these instructions
to install it. Make sure to do the step where you enable the experimental
features.
Finally, bumpemu can be installed using pip:
sudo pip3 install bumpemu
Then you can run bumpemu as follows:
/usr/local/bin/bumpemu-controller
You can view various configuration options with -h:
/usr/local/bin/bumpemu-controller -h
A systemd service is in the repo if you wish to have bumpemu run at boot.
Presets configuration
The BumpCCS2 app has 7 predefined charger profiles:
- Accurate
- Analyze
- Discharge
- Fastest
- Monitor
- Normal
- Storage
Bumpemu will map the app's predefined profiles to existing presets in your charger. To do this, create the file /etc/bumpemu/presets.yml on your pi. Set the number of the charger preset you want each app charger profile to map to. An example presets file is in the repo.
To verify you have set the profiles the way you want them, make sure no other instances of bumpemu-controller are running, and then run the following:
/usr/local/bin/bumpemu-controller --show-presets
Battery configuration
When running the BumpCCS app with a real bump controller, you would bump a battery to load the battery configuration to the app. To emulate that, bumpemu loads a battery configuration when it starts up. The battery configuration should go in /etc/bumpemu/battery.yml. An example battery configuration file is in the repo.
Release files for bumpemu 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bumpemu-0.0.8.tar.gz | 33.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bumpemu-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 95.9 kB
Release files / bumpemu-0.0.8.tar.gz
| Download URL | bumpemu-0.0.8.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18600ec56557a88904ca85c883b07bbf84b9897fd1e3afaad1ebd0a696dcabcf
|
|
BLAKE2b-256 checksum How to use checksums |
0323749f604c63fa375554e0e12c2948c7813dcf380709ae57a7ab4ecec8ea38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / bumpemu-0.0.8-py3-none-any.whl
| Download URL | bumpemu-0.0.8-py3-none-any.whl |
|---|---|
| Size | 62.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e38e1cf5d560f2b2b7894a6aa6fbcbb1a83f57641396905983f23d9273a3603
|
|
BLAKE2b-256 checksum How to use checksums |
232c37d8fe0e0bf2f5628ecf69341f3b165a5c222a90677ec10f3b696a09d911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|