How seer300/nbiot_xy1100 works
This tree is firmware for the XY1100 NB-IoT module, not a standalone cloud service. Its visible entry point initializes hardware and system services, invokes user initialization hooks, then starts the OS scheduler. The source tree also includes cellular networking, AT-facing protocol clients, cloud-device-management stacks, and firmware-update implementations. The README describes build setup only; wiring among these subsystems is not established by the sampled excerpts, so the graph shows only the startup calls evident in main.c and otherwise represents major capabilities without speculative links.
Main entry points: main.c Application entry · atiny_fota_manager.c Agent OTA · http_client.c HTTP client · MQTTClient.c MQTT client
Components 21
Firmware startup
- Application entry
xinyi/TARGETS/xinyiNBSoC/USERAPP/basic/src/main.c - User init hooks
xinyi/TARGETS/xinyiNBSoC/USERAPP/basic/src/main.c - System services
- FreeRTOS scheduler
xinyi/KERNEL/OS/FreeRTOS/tasks.c
Connectivity
- lwIP networking
xinyi/APPLIB/lwip/lwip-2.1.2/core/ip.c - AT sockets
xinyi/APPLIB/at_socket/src/at_socket_cmd.c - HTTP client
xinyi/APPLIB/http/httpcore/src/http_client.c - MQTT client
xinyi/APPLIB/mqtt/xy_mqtt/src/MQTTClient.c - CoAP client
xinyi/APPLIB/libcoap/xy_coap/src/xy_coap_api.c
Cloud clients
- CDP AT interface
xinyi/APPLIB/cloud/cdp/xy_cdp/src/at_cdp.c - CDP LwM2M agent
xinyi/APPLIB/cloud/cdp/AgentTiny/atiny_lwm2m/agenttiny.c - OneNET client
xinyi/APPLIB/cloud/onenet/xy_onenet/src/xy_cis_api.c - OneNET protocol core
xinyi/APPLIB/cloud/onenet/ciscore/cis_core.c
Firmware updates
- Agent OTA
xinyi/APPLIB/cloud/cdp/AgentTiny/ota/fota/atiny_fota_manager.c - OTA package handling
xinyi/APPLIB/cloud/cdp/AgentTiny/ota/package/package.c - Upgrade flags
xinyi/APPLIB/cloud/cdp/AgentTiny/ota/flag_operate/flag_manager.c - ABUP FOTA
xinyi/APPLIB/abup/src/abup_fota.c
Secure transport
- DTLS transport
xinyi/APPLIB/Dtls/xy_dtls/src/dtls_interface.c - TLS implementation
xinyi/APPLIB/Dtls/mbedtls-2.6.0/library/ssl_tls.c
Other components
- Device user
- Cloud service
Connections 17
- Application entry → System services: calls
- Application entry → User init hooks: calls
- Application entry → FreeRTOS scheduler: starts
- Device user → Application entry: boots firmware
- Device user → CDP AT interface: issues commands
- Device user → OneNET client: uses API
- Device user → MQTT client: uses client
- Device user → HTTP client: uses client
- Device user → CoAP client: uses client
- Cloud service → CDP LwM2M agent: manages device
- Cloud service → OneNET protocol core: communicates
- Cloud service → MQTT client: exchanges messages
- Agent OTA → Upgrade flags: reads/writes flags
- Agent OTA → OTA package handling: initializes package
- Agent OTA → CDP LwM2M agent: reports update state
- ABUP FOTA → HTTP client: uses HTTP
- TLS implementation → DTLS transport: supports transport