b89cda78c2
- Implement TelephoneSFPManager to manage telephony service interactions. - Create TelephonyService class to handle telephony states and actions. - Develop WebServerManager for handling HTTP requests and managing contacts. - Add HTML, CSS, and JavaScript files for the web UI to interact with the telephony system. - Introduce WifiManager for managing WiFi connections. - Implement unit tests for telephony features and state transitions. - Ensure proper input validation and error handling in web server routes.
32 lines
917 B
Markdown
32 lines
917 B
Markdown
# Structuration des tâches FreeRTOS — Agent RTOS
|
||
|
||
## Objectif
|
||
Organiser les tâches principales du firmware pour audio, web, batterie.
|
||
|
||
---
|
||
|
||
### Tâches à créer
|
||
- TaskAudio : gestion flux audio, lecture MP3, routage
|
||
- TaskWeb : gestion serveur HTTP, endpoints, logs
|
||
- TaskBattery : surveillance batterie, gestion deep sleep
|
||
- TaskBluetooth : gestion HFP, BLE, pairing
|
||
- TaskWiFi : gestion connexion, OTA, logs
|
||
|
||
### Priorités
|
||
- TaskAudio : haute priorité (temps réel)
|
||
- TaskBattery : priorité moyenne (surveillance périodique)
|
||
- TaskWeb, TaskBluetooth, TaskWiFi : priorité basse (événementiel)
|
||
|
||
### Synchronisation
|
||
- Utilisation de queues pour communication inter-tâches
|
||
- Mutex pour accès partagé (logs, config)
|
||
|
||
### Plan d’implémentation
|
||
- Créer chaque tâche via xTaskCreate
|
||
- Définir stack size, priorité, fonction
|
||
- Tester la robustesse (stress, interruption)
|
||
|
||
---
|
||
|
||
**Version :** 2026-02-17
|