开发中重新计算了一下 发现温度采样分压电阻R30需要改成15k 监控范围才能上到150度以上 不改就只能到70度 感觉不够用
软件总算写完了 主要功能就是采样显示 控制输出 详细点还包括一个命令行界面 一个web界面 和传统的LCD界面 电压电流各支持27个预设值和16点的多点校正 提供按秒分时的统计 支持中文和英文两种语言 支持WIFI两种模式STA和AP 支持查看和设置分别要求密码 还有看门狗等等
大概看了一下 代码约250k 其中甚至有几行汇编来产生CS1237需要的时序 字体文件500k 基本用PC2LCD2002生成 最后bin文件1.5M 再加上嵌入的网页100k左右
Total sizes: Used static DRAM: 50288 bytes ( 130448 remain, 27.8% used) .data size: 16936 bytes .bss size: 33352 bytes Used static IRAM: 97411 bytes ( 33661 remain, 74.3% used) .text size: 96384 bytes .vectors size: 1027 bytes Used stat D/IRAM: 147699 bytes ( 164109 remain, 47.4% used) .data size: 16936 bytes .bss size: 33352 bytes .text size: 96384 bytes .vectors size: 1027 bytes Used Flash size : 1303843 bytes .text : 627443 bytes .rodata : 676144 bytes Total image size: 1532537 bytes (.bin may be padded larger)
支持的命令行命令有
zxd2400> zxd2400> help help Print the list of registered commands version Show version infomation memory Show free memory task Show current task running state file [format - to format internal file system] Show file system timer Show timer state log [log number, 0:this boot, 1:last ...] [clear, to delete logs from the number] Show current and history logs stored in flash reset Reset the system config [(empty means show)/load/save/default(restore to factory default)] Configuation operations name [new machine name if specified, <32 chars] Show (without parameters) or set machine name pass [new password if specified, "" means empty, <32 chars] Show existence (without parameters) or set password admpass [new password if specified, "" means empty, <32 chars] Show existence (without parameters) or set admin password sta [on/off] [auth open/wep/wpa_psk/wpa2_psk/wpa_1_2_psk] [ssid ...] [pass ...] [ip ...] [mask ...] [gw ...] Show (without parameters) or set WIFI station parameters ap [on/off] [auth open/wep/wpa_psk/wpa2_psk/wpa_1_2_psk] [ssid ...] [pass ...] [ip ...] [mask ...] Show (without parameters) or set WIFI AP parameters quickv [position to set] [voltage to set (mV)] show (without parameters) or set quick-pick voltage quicki [position to set] [current to set (mA)] show (without parameters) or set quick-pick current calv [del/set] [voltage to-del/measured (mV)] Show (without parameters) or delete/set calibration of voltage cali [del/set] [cu show Show all parameters getv Get actual voltage geti Get actual current getp Get actual power gete Get integral energy gett Get temperature setv [new voltage setting, if specified, in mV] Get and set target of voltage seti [new current setting, if specified, in mA] Get and set target of current sete [new integral energy value, 0 to reset totally] Set new integral energy value stat [reset: to reset whole-time statistics data] Show gathered whole-time statistics data, from last boot or last reset statv [s:last seconds, m:last seconds, h:last hours] Show gathered statistics of voltage stati [s:last seconds, m:last seconds, h:last hours] Show gathered statistics of current statp [s:last seconds, m:last seconds, h:last hours] Show gathered statistics of power net [reset] Show network interfaces, if [reset] is appended, network will restart for ne w configuration ping [ip destination like xx.xx.xx.xx] [repeat times] ping ip address, if [ip destination] is not set, WIFI station gateway is use zxd2400>
web界面如下
菜单界面大致拍几张照
当有个web界面在2秒轮询刷怪的时候 性能大致如下 内存快不够了 CPU还剩很多
zxd2400> memory Free MEM : 67732, DRAM : 35708 zxd2400> task Total runtime : 1658848651 # Name Status Prio StackHWM Core Time 14 REPL_TASK 0 2/2 2220 1 <1% 7 IDLE 1 0/0 1012 0 95% 8 IDLE 1 0/0 1016 1 94% 16 tiT 2 18/18 2104 N/A 1% 15 MAIN_TASK 2 3/3 1236 1 2% 12 sys_evt 2 20/20 1352 0 <1% 3 ipc0 2 24/24 532 0 <1% 4 ipc1 2 24/24 544 1 1% 17 mdns 2 1/1 2256 0 <1% 19 httpd 2 5/5 2912 N/A 1% 13 APP_ELOOP 2 3/3 1700 N/A 2% 18 wifi 2 23/23 4092 0 3% 5 esp_timer 3 22/22 3348 0 1% 9 Tmr Svc 2 1/1 1596 0 <1%
用的是最新的IDF5.0 dirty版 用到的最新功能应该是2周前刚上的磨损均衡的FAT的分区生成 因此还发现了BUG去提出了(自己也改了)
离线测试基本没有意外 下面再做两个小板 灯泡放电和风扇加速 然后找个吉时就可以接上试试了
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |