How balajiece2023/smart-bike-monitor works
Smart Bike Monitor is a Flutter app for live two-wheeler telemetry, safety controls, rider management, and emergency response. The main workflow runs from the rider/admin through the dashboard and BikeController, into the repository and Bluetooth services, then to bike firmware; incoming telemetry supports accident alerts and related actions. The README also describes geofencing, licensing, settings, and a hardware simulator. Runtime details for most Dart modules were not sampled, so feature links and subsystem relationships below rely on the README’s architecture and capability descriptions.
Main entry points: bike_controller.dart Bike controller · ble_service.dart BLE service · reactive_ble_service.dart Reactive BLE · scenario_views.dart Accident response
Components 21
App experience
- Live dashboard
lib/ui/features/bike/views/bike_dashboard_screen.dart - Device pairing
lib/ui/features/bike/views/device_pairing_screen.dart - Scenario views
lib/ui/features/bike/views/scenario_views.dart - Geofencing
lib/ui/features/bike/views/geofencing_screen.dart - Rider management
lib/ui/features/bike/views/user_management_screen.dart - Bike renewal
lib/ui/features/bike/views/bike_renewal_screen.dart - App settings
lib/ui/features/bike/views/settings_screen.dart
State and domain
- Bike controller
lib/ui/features/bike/view_models/bike_controller.dart - Bike models
lib/domain/models/bike_models.dart - Bike repository
lib/data/repositories/bike_repository_impl.dart
Bike connectivity
- BLE service
lib/data/services/ble_service.dart - Reactive BLE
lib/data/services/reactive_ble_service.dart - Classic Bluetooth
lib/data/services/classic_bluetooth_service.dart - Packet protocol
lib/data/services/ble_protocol.dart - Android Bluetooth bridge
android/app/src/main/kotlin/com/example/smart_bike_app/MainActivity.kt - ESP32 bike firmware
firmware/esp32_smart_bike.ino - Communication simulator
simulator.html
Safety and administration
- Accident response
lib/ui/features/bike/views/scenario_views.dart - Nearby hospitals
lib/ui/features/bike/views/scenario_views.dart - Emergency siren
assets/audio/alert.wav
Other components
- Rider or admin
Connections 25
- Rider or admin → Live dashboard: views telemetry
README.md - Rider or admin → Device pairing: pairs device
README.md - Rider or admin → Geofencing: sets restrictions
README.md - Rider or admin → Rider management: manages riders
README.md - Rider or admin → Bike renewal: views renewal
README.md - Rider or admin → App settings: changes settings
README.md - Live dashboard → Bike controller: uses state
README.md - Device pairing → Bike controller: connects through
README.md - Geofencing → Bike controller: uses state
README.md - Rider management → Bike controller: uses state
README.md - Bike renewal → Bike controller: uses state
- App settings → Bike controller: uses state
- Bike controller → Bike repository: delegates data
README.md - Bike repository → BLE service: uses service
README.md - Bike controller → Bike models: holds telemetry
- BLE service → Reactive BLE: supports BLE
README.md - BLE service → Classic Bluetooth: supports SPP
README.md - Reactive BLE → Android Bluetooth bridge: bridges Android
README.md - Reactive BLE → Packet protocol: frames packets
README.md - Classic Bluetooth → Android Bluetooth bridge: uses native SPP
README.md - ESP32 bike firmware → BLE service: exchanges telemetry
README.md - Communication simulator → BLE service: simulates hardware
- Bike controller → Accident response: triggers alert
- Accident response → Nearby hospitals: finds nearby care
README.md - Accident response → Emergency siren: plays siren
README.md