How awesome-harmonyos/harmonyos works
This repository is a curated HarmonyOS resource collection, not a complete HarmonyOS implementation. The supplied tree shows a substantial Huawei LiteOS slice, including embedded networking, IoT connectivity, OTA support, filesystems, and ARM/Microcontroller hardware support. A representative device workflow starts at a board entry point, initializes LiteOS and networking, then uses an IoT agent to communicate with a server and handle firmware updates. The README describes broader HarmonyOS capabilities, but those distributed-OS subsystems are not represented by this tree. Connections beyond sampled calls are shown only where module responsibilities are clear.
Main entry points: atiny_fota_manager.c FOTA manager · src lwIP networking · atiny_lwm2m Tiny LwM2M agent · core LwM2M protocol
Components 18
LiteOS platform
- Board startup
Huawei_LiteOS/targets/STM32F103VET6_NB_GCC/Src/main.c - LiteOS kernel
Huawei_LiteOS/arch/arm/arm-m/src - ARM hardware support
Huawei_LiteOS/arch/arm/arm-m/src/los_hw.c
Network stack
- lwIP networking
Huawei_LiteOS/components/net/lwip/lwip-2.0.3/src - AT modem interface
Huawei_LiteOS/components/net/at_frame/at_api.c
IoT connectivity
- Tiny LwM2M agent
Huawei_LiteOS/components/connectivity/agent_tiny/atiny_lwm2m - LwM2M protocol
Huawei_LiteOS/components/connectivity/lwm2m/core - Tiny MQTT client
Huawei_LiteOS/components/connectivity/agent_tiny/atiny_mqtt/mqtt_client.c - MQTT client library
Huawei_LiteOS/components/connectivity/mqtt/MQTTClient-C/src/MQTTClient.c - MQTT secret storage
Huawei_LiteOS/components/connectivity/agent_tiny/atiny_mqtt/flash_manager.c
Firmware update
- FOTA manager
Huawei_LiteOS/components/connectivity/agent_tiny/atiny_lwm2m/atiny_fota_manager.c - Firmware object
Huawei_LiteOS/components/connectivity/agent_tiny/atiny_lwm2m/object_firmware.c - OTA flags
Huawei_LiteOS/components/ota/flag_operate/flag_manager.c
Filesystems
- Virtual filesystem
Huawei_LiteOS/components/fs/vfs/los_vfs.c - FAT filesystem
Huawei_LiteOS/components/fs/fatfs/los_fatfs.c - SPI flash filesystem
Huawei_LiteOS/components/fs/spiffs/los_spiffs.c
Other components
- IoT server
- Device flash
Connections 18
- Board startup → LiteOS kernel: initializes
- LiteOS kernel → ARM hardware support: uses hardware
- Board startup → lwIP networking: initializes
- Tiny LwM2M agent → LwM2M protocol: uses protocol
- Tiny LwM2M agent → IoT server: exchanges data
- LwM2M protocol → IoT server: sends protocol
- FOTA manager → OTA flags: initializes flags
- FOTA manager → LwM2M protocol: updates resource
- Firmware object → FOTA manager: manages update
- FOTA manager → Device flash: reads/writes flags
- Tiny MQTT client → MQTT client library: uses client
- Tiny MQTT client → MQTT secret storage: stores secrets
- MQTT secret storage → Device flash: reads/writes secrets
- Tiny LwM2M agent → lwIP networking: uses networking
- MQTT client library → lwIP networking: uses networking
- AT modem interface → lwIP networking: provides modem link
- Virtual filesystem → FAT filesystem: dispatches filesystem
- Virtual filesystem → SPI flash filesystem: dispatches filesystem