Last active
February 2, 2022 07:27
-
-
Save TiNredmc/95f29e8446a00db3bb0b9d5603105b4f to your computer and use it in GitHub Desktop.
check seal status of the Fuel gauge protection of BQ27541/BQ27542 via i2ctransfer on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple Script to check SEAL status of the BQ27541 or BQ27542 | |
# Coded by TinLethax 2021/06/02 +7 | |
# structure [Control_command0x00][lower byte][higher byte] | |
# Sending 0x00 subcommand (Sending Big endian ) | |
i2ctransfer -y -f 0 w3@0x55 0x00 0x00 0x00 | |
i2ctransfer -y -f 0 w1@0x55 0x00 r2 | |
echo Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment