A hierarchical battery-management system mainly comprises a monitoring and equalizing module, an intermediary module, and a decision and communication module. Each base station uses primary scrambling codes and an associated one of secondary scrambling code sets, each consisting of a plurality of secondary scrambling codes. The scanned image of the finger is compared with a plurality of stored fingerprint images in a storage unit to validate an identity of a user.