TuyaOS
IoT SDK 资源统计
module file text data bss total
components/base_event base_event.c 1522 0 28 1550
total 1522 0 28 1550
components/tal_system_service uni_log.c 586 0 0 586
uni_random.c 207 0 4 211
mix_method.c 854 0 1 855
tuya_base_utilities.c 165 0 4 169
tal_time_serivce.c 1736 0 84 1820
tal_workq_service.c 552 0 8 560
total 4100 0 101 4201
components/lib_mqtt libemqtt.c 2690 0 0 2690
total 2690 0 0 2690
components/tal_compatible tuya_hal_storage.c 304 0 64 368
com_mmod.c 1513 0 20 1533
uni_fs.c 417 0 0 417
tuya_hal_bt.c 1377 0 90 1467
tuya_hal_system.c 162 0 0 162
tuya_driver.c 196 0 0 196
ty_work_queue.c 92 0 4 96
uni_queue.c 650 0 0 650
total 4711 0 178 4889
components/svc_api_wired tuya_iot_base_api.c 1340 1 4 1345
total 1340 1 4 1345
components/svc_dp smart_frame.c 14610 0 93 14703
sf_mqc_cb.c 282 0 0 282
total 14892 0 93 14985
components/base_security tuya_sha256.c 378 0 0 378
ty_asymmetric_mbedtls.c 300 0 0 300
aes_inf.c 2120 0 40 2160
crc32i.c 1090 0 0 1090
uni_md5.c 70 0 0 70
crc_8.c 288 0 0 288
crc_16.c 64 0 0 64
apr_sha1.c 3602 0 4 3606
uni_base64.c 92 0 0 92
total 8004 0 44 8048
components/tal_bluetooth tuya_ble_mempool.c 908 0 40 948
ble_att_svr.c 5827 0 846 6673
ble_hs_pvcy.c 464 0 17 481
ble_hs_stop.c 612 0 37 649
ble_hs_atomic.c 190 0 0 190
ble_hs_periodic_sync.c 0 0 0 0
ble_hs_adv.c 2180 0 129 2309
ble_hs_hci_evt.c 1350 0 0 1350
ble_gatts.c 4142 20 54 4216
ble_l2cap.c 931 0 84 1015
ble_svc_gap.c 315 116 6 437
ble_hs_hci.c 1374 0 344 1718
ble_hs_misc.c 122 0 0 122
ble_att.c 668 0 2 670
ble_hs_hci_util.c 501 0 0 501
ble_svc_gatt.c 211 56 6 273
addr.c 126 0 0 126
ble_sm_alg.c 0 0 0 0
ble_hs_shutdown.c 103 0 12 115
ble_hs_mbuf.c 314 0 0 314
tuya_ble_mbuf.c 2873 8 0 2881
tuya_ble_peer.c 1853 0 132 1985
tuya_ble_hs_mem.c 791 0 332 1123
ble_sm_lgcy.c 0 0 0 0
ble_monitor.c 0 0 0 0
tuya_hs_port.c 195 0 20 215
ble_hs_startup.c 878 0 0 878
ble_sm_sc.c 0 0 0 0
ble_gap.c 6914 0 108 7022
ble_gatts_lcl.c 0 0 0 0
ble_hs_id.c 556 0 12 568
ble_hs.c 1919 0 101 2020
ble_hs_mqueue.c 140 0 0 140
ble_att_clt.c 1712 0 0 1712
ble_hs_conn.c 1038 0 38 1076
ble_sm_cmd.c 82 0 0 82
ble_hs_log.c 4 0 0 4
ble_hs_cfg.c 0 40 0 40
ble_uuid.c 666 0 0 666
ble_hs_endian.c 376 0 0 376
ble_hs_hci_cmd.c 160 0 0 160
ble_hs_flow.c 8 0 0 8
ble_l2cap_sig_cmd.c 218 0 0 218
ble_l2cap_coc.c 0 0 0 0
ble_sm.c 90 0 0 90
ble_l2cap_sig.c 1204 0 57 1261
ble_gattc.c 7186 0 268 7454
ble_store_util.c 364 0 0 364
ble_store.c 703 0 0 703
tuya_ble_os_adapter.c 955 0 8 963
ble_att_cmd.c 1046 0 0 1046
tuya_bt_stack_adapter.c 0 0 0 0
ble_ibeacon.c 116 0 0 116
ble_eddystone.c 316 0 38 354
tuya_ble_cli_svc.c 169 0 0 169
tkl_bluetooth.c 5642 0 1514 7156
tal_bluetooth.c 2240 2 298 2540
total 60752 242 4503 65497
components/base_db simple_flash_protected.c 2254 0 0 2254
kv_storge.c 676 0 8 684
simple_flash_app.c 1625 0 4 1629
simple_flash.c 12313 0 4 12317
tuya_ws_db.c 2118 0 0 2118
total 18986 0 16 19002
components/lib_cJSON ty_cJSON.c 4595 0 4 4599
total 4595 0 4 4599
components/svc_tuya_cloud cloud_storage.c 3792 0 0 3792
iot_httpc.c 22075 0 4 22079
cipher_wrapper.c 852 0 0 852
com_protocol.c 2553 0 0 2553
svc_online_log_db.c 135 0 0 135
svc_online_log_mqtt.c 240 0 0 240
tuya_svc_online_log.c 2692 4 140 2836
svc_online_log_http.c 8 0 0 8
svc_netcfg_qrcode.c 1006 0 12 1018
uni_network.c 2502 0 144 2646
tuya_tls.c 5871 8 3044 8923
astro_timer.c 4135 0 4 4139
tuya_svc_timer_task.c 7156 0 48 7204
log_seq.c 4018 0 212 4230
mqtt_client.c 9722 2 4 9728
tuya_svc_mqtt_direct.c 1731 0 28 1759
mqc_app.c 7501 0 492 7993
total 75989 14 4132 80135
components/svc_mf_test mf_test.c 1883 4 20 1907
basic_test.c 4410 0 20 4430
wifi_test.c 1177 0 0 1177
mf_test_suite.c 50 0 0 50
ota_download_test.c 1626 0 36 1662
gpio_test.c 658 4 0 662
wifi6_test.c 2 0 0 2
bt_test.c 1063 0 0 1063
cat1_test.c 0 0 0 0
homekit_test.c 0 0 0 0
ffs_test.c 4 0 0 4
mf_core.c 929 0 8 937
total 11802 8 84 11894
components/svc_wired base_nw_intf.c 54 0 0 54
tuya_svc_wired.c 445 0 5 450
total 499 0 5 504
components/lib_transport tcp_transporter.c 845 0 0 845
tuya_transport.c 401 0 0 401
websocket_transporter.c 0 0 0 0
tls_transporter.c 606 0 0 606
total 1852 0 0 1852
components/svc_rpc rpc_base.c 2043 0 0 2043
rpc_pipe.c 570 0 0 570
rpc_node.c 716 0 0 716
svc_rpc.c 4886 0 0 4886
json_rpc.c 2327 0 0 2327
total 10542 0 0 10542
components/svc_wifi_ffc ffc_frame.c 1195 4 4 1203
ffc_master.c 6026 0 0 6026
ffc_slave.c 9147 0 0 9147
ffc_app.c 1394 140 1 1535
ffc_slaver_fittings.c 1517 0 8 1525
ffc_slaver_scene.c 2341 0 124 2465
total 21620 144 137 21901
components/tal_wired tal_wired.c 136 0 0 136
total 136 0 0 136
components/tal_network tal_network.c 1792 0 0 1792
total 1792 0 0 1792
components/svc_bt tuya_ble_mutli_tsf_protocol.c 1638 2 1 1641
bt_netcfg.c 353 0 8 361
bt_dp.c 2353 4 12 2369
tuya_xxtea.c 540 0 0 540
tuya_bt_sdk.c 1117 0 56 1173
tuya_bt_link.c 1186 28 0 1214
tuya_ble_api.c 5010 49 196 5255
tuya_ble_data_handler.c 3198 4 59 3261
device_id_compress.c 284 0 0 284
tuya_ble_rmt_ctrl.c 11850 8 82 11940
tuya_ble_cryption_api.c 1305 0 224 1529
tuya_ble_active.c 2591 0 20 2611
tuya_ble_timer_task.c 0 0 0 0
total 31425 95 658 32178
components/svc_api_iot tuya_iot_dev_check.c 2180 0 0 2180
tuya_iot_com_api.c 4433 0 8 4441
tuya_iot_internal_api.c 871 0 0 871
tuya_iot_api_pre_handle.c 102 0 4 106
total 7586 0 12 7598
components/lib_websocket websocket_client.c 3109 0 0 3109
total 3109 0 0 3109
components/tal_wifi tal_wifi.c 2338 0 28 2366
tal_wifi_mgnt.c 2493 4 16 2513
total 4831 4 44 4879
components/svc_upgrade tuya_svc_upgrade.c 4966 0 44 5010
tuya_svc_schema_upgrade.c 1777 0 48 1825
tuya_svc_upgrade_http.c 1150 0 0 1150
total 7893 0 92 7985
components/tal_lwip init.c 40 0 0 40
mem.c 812 0 16 828
ip6_frag.c 0 0 0 0
inet6.c 0 0 0 0
mld6.c 0 0 0 0
ethip6.c 0 0 0 0
ip6_addr.c 0 0 0 0
nd6.c 0 0 0 0
icmp6.c 0 0 0 0
dhcp6.c 0 0 0 0
ip6.c 0 0 0 0
timeouts.c 564 0 12 576
tcp.c 4472 6 2 4480
dns.c 2250 0 1162 3412
raw.c 770 0 4 774
ip4_frag.c 1944 0 6 1950
autoip.c 0 0 0 0
igmp.c 1298 0 8 1306
ip4.c 1508 0 6 1514
etharp.c 1852 0 241 2093
ip4_addr.c 638 0 16 654
icmp.c 568 0 0 568
dhcp.c 4614 0 9 4623
ip.c 0 0 0 0
def.c 334 0 0 334
pbuf.c 1956 0 0 1956
stats.c 0 0 0 0
netif.c 1058 0 1 1059
inet_chksum.c 616 0 0 616
tcp_out.c 3950 0 0 3950
udp.c 1448 2 0 1450
memp.c 228 0 0 228
sys.c 36 0 0 36
tcp_in.c 5380 0 48 5428
api_lib.c 2529 0 4 2533
tcpip.c 793 0 12 805
netbuf.c 316 0 0 316
api_msg.c 4003 0 0 4003
netdb.c 588 0 293 881
netifapi.c 424 0 0 424
err.c 100 0 0 100
sockets.c 7778 0 844 8622
ethernet.c 270 0 0 270
lwip_init.c 220 0 0 220
lwip_dhcpc.c 481 0 10 491
ethernetif.c 672 0 0 672
sys_arch.c 466 0 4 470
total 54976 8 2698 57682
components/svc_devos tuya_svc_devos.c 4457 0 1 4458
ws_db_gw.c 4390 0 0 4390
tuya_devos_utils.c 5109 4 3669 8782
tuya_devos.c 368 0 4 372
tuya_devos_mqc.c 915 0 0 915
tuya_svc_devos_activate.c 1536 0 28 1564
tuya_devos_data.c 0 0 0 0
tuya_devos_health.c 2892 180 4 3076
tuya_devos_reset.c 787 0 0 787
tuya_svc_devos_activate_token.c 756 0 0 756
tuya_svc_devos_daemons.c 1889 4 29 1922
tuya_svc_devos_activate_meta.c 508 0 0 508
tuya_devos_stride.c 1106 0 4 1110
tuya_devos_localkey_update.c 2244 0 40 2284
total 26957 188 3779 30924
components/tal_driver tal_flash.c 188 0 0 188
tal_rtc.c 96 0 0 96
tal_watchdog.c 72 0 0 72
tal_uart.c 812 0 0 812
total 1168 0 0 1168
components/lib_tls version.c 0 0 0 0
ecdsa.c 0 0 0 0
pk.c 0 0 0 0
ssl_ticket.c 0 0 0 0
hmac_drbg.c 0 0 0 0
aes.c 3600 0 2604 6204
x509_crl.c 0 0 0 0
ssl_cookie.c 0 0 0 0
hkdf.c 399 0 0 399
xtea.c 0 0 0 0
asn1write.c 0 0 0 0
sha256.c 3316 0 0 3316
md2.c 0 0 0 0
gcm.c 1798 0 0 1798
rsa.c 0 0 0 0
ecdh.c 800 0 0 800
sha512.c 0 0 0 0
net_sockets.c 0 0 0 0
threading.c 46 16 0 62
base64.c 740 0 0 740
platform.c 58 8 0 66
des.c 0 0 0 0
version_features.c 0 0 0 0
ecp_curves.c 1456 4 0 1460
entropy.c 944 0 0 944
havege.c 0 0 0 0
ssl_ciphersuites.c 1601 0 40 1641
entropy_poll.c 62 0 0 62
poly1305.c 0 0 0 0
md_wrap.c 481 0 0 481
x509_create.c 0 0 0 0
chachapoly.c 0 0 0 0
chacha20.c 0 0 0 0
pk_wrap.c 0 0 0 0
rsa_internal.c 0 0 0 0
certs.c 0 0 0 0
padlock.c 0 0 0 0
cipher_wrap.c 1036 0 0 1036
ssl_srv.c 0 0 0 0
ripemd160.c 0 0 0 0
pkwrite.c 0 0 0 0
aesni.c 0 0 0 0
x509.c 0 0 0 0
md4.c 0 0 0 0
ecjpake.c 0 0 0 0
md5.c 2956 0 0 2956
cmac.c 0 0 0 0
ccm.c 1046 0 0 1046
oid.c 0 0 0 0
pem.c 0 0 0 0
pkcs5.c 228 0 0 228
x509write_crt.c 0 0 0 0
ctr_drbg.c 1156 0 0 1156
ssl_tls.c 8747 15 0 8762
pkcs11.c 0 0 0 0
md.c 1061 0 0 1061
aria.c 0 0 0 0
ssl_cli.c 2674 0 0 2674
ssl_cache.c 0 0 0 0
asn1parse.c 0 0 0 0
cipher.c 2148 0 4 2152
blowfish.c 0 0 0 0
ecp.c 6590 0 6 6596
x509_csr.c 0 0 0 0
dhm.c 0 0 0 0
sha1.c 4834 0 0 4834
x509write_csr.c 0 0 0 0
arc4.c 0 0 0 0
nist_kw.c 0 0 0 0
error.c 0 0 0 0
memory_buffer_alloc.c 0 0 0 0
camellia.c 0 0 0 0
bignum.c 7975 0 0 7975
pkcs12.c 0 0 0 0
platform_util.c 20 4 0 24
pkparse.c 0 0 0 0
debug.c 0 0 0 0
timing.c 0 0 0 0
x509_crt.c 0 0 0 0
total 55772 47 2654 58473
components/svc_api_wifi tuya_iot_wifi_api.c 1895 0 0 1895
total 1895 0 0 1895
components/svc_wifi ap_netcfg.c 6069 0 20 6089
netcfg_module.c 1285 32 5 1322
wf_nw_cfg.c 3192 5 4 3201
airkiss_bc.c 3435 0 4 3439
thing_config.c 2357 0 19 2376
ez_mc.c 1496 0 4 1500
tlink_bc.c 4060 0 4 4064
user_netcfg.c 205 0 4 209
wifi_netcfg_frame_transporter.c 3114 4 4 3122
wifi_netcfg_frame_sniffer.c 1789 0 8 1797
tuya_wifi_link.c 2604 28 0 2632
tuya_wifi_connect.c 3306 0 32 3338
tuya_wifi_status.c 634 1 11 646
wf_protect.c 8971 0 4 8975
tuya_wifi_reset.c 3346 4 32 3382
tuya_wifi_netcfg.c 3234 1 16 3251
total 49097 75 171 49343
components/tal_system tal_system.c 363 0 4 367
tal_thread.c 1887 0 16 1903
tal_template.c 412 0 0 412
tal_fs.c 632 0 0 632
tal_sleep.c 737 0 16 753
tal_workqueue.c 807 0 0 807
tal_log.c 1804 0 4 1808
tal_sw_timer.c 1547 0 40 1587
total 8189 0 80 8269
components/svc_lan tuya_svc_lan.c 12190 52 68 12310
total 12190 52 68 12310
components/base_uf uf_flash_huge_file.c 1742 0 0 1742
uf_flash_file.c 5813 0 0 5813
uf_flash_file_app.c 1708 0 4 1712
uf_file.c 724 0 4 728
tuya_uf_db.c 663 0 0 663
total 10650 0 8 10658
components/svc_netmgr tuya_svc_netmgr_linkage.c 1472 0 36 1508
tuya_svc_netmgr.c 310 0 0 310
tuya_svc_netmgr_linkage_virtual.c 32 0 0 32
total 1814 0 36 1850
components/lib_http http_inf.c 1913 0 0 1913
httpc.c 7943 10 32 7985
http_manager.c 1423 0 92 1515
total 11279 10 124 11413
adapter/utilities tuya_ringbuf.c 524 0 0 524
tuya_hashmap.c 1628 0 0 1628
tuya_mem_heap.c 2187 0 80 2267
tuya_queue.c 740 0 0 740
tuya_smartpointer.c 214 0 0 214
tuya_list.c 78 0 0 78
tuya_tools.c 760 0 0 760
total 6131 0 80 6211
adapter/init tkl_init_system.c 288 0 0 288
tkl_init_wifi.c 108 0 0 108
tkl_init_common.c 352 0 0 352
tkl_init.c 50 0 88 138
total 798 0 88 886
total 541584 888 19921 562393