esp8266 软串口是否有缺陷 重启-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1645|回复: 1

esp8266 软串口是否有缺陷 重启

[复制链接]
发表于 2021-4-3 09:28 | 显示全部楼层 |阅读模式
ESP8266 用软串口 串口通讯485设备一直会重启好困扰呀,使用额外供电。应该不存在电源问题。求各位大侠帮忙,每次重启都不一样但是基本都是 28 ,更换最新0.36 lib显示如下。



09:15:56.802 -> User exception (panic/abort/assert)
09:15:56.802 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
09:15:56.802 ->
09:15:56.802 -> Panic core_esp8266_main.cpp:206 loop_task
09:15:56.802 ->
09:15:56.802 -> >>>stack>>>
09:15:56.802 ->
09:15:56.802 -> ctx: sys
09:15:56.802 -> sp: 3fffeee0 end: 3fffffb0 offset: 0000
09:15:56.802 -> 3fffeee0:  011624c1 01254db5 40265726 3ffee0a0  
09:15:56.802 -> 3fffeef0:  000000fe 00000000 00000000 00000000  
09:15:56.802 -> 3fffef00:  00000000 00000000 00000000 3fff1260  
09:15:56.802 -> 3fffef10:  c0000000 3fffd9d0 3ffef110 3fff1220  
09:15:56.849 -> 3fffef20:  3fffdad0 00000000 3ffe85cc 4022391e  
09:15:56.849 -> 3fffef30:  40269992 3fffdab0 00000000 4022397b  
09:15:56.849 -> 3fffef40:  00000000 3fffdad0 3fff1220 40223112  
09:15:56.849 -> 3fffef50:  40000f49 3ffe9e58 3fffdab0 40000f49  
09:15:56.849 -> 3fffef60:  40000e19 00000005 00088a88 00000000  
09:15:56.849 -> 3fffef70:  00000000 aa55aa55 0000000e 40105375  
09:15:56.849 -> 3fffef80:  4010537b 00088a88 00000000 f59b6101  
09:15:56.849 -> 3fffef90:  4010000d 453047df 3d476fac 2b604f09  
09:15:56.849 -> 3fffefa0:  40260ba8 3fffef3c 40260b61 3ffff1b8  
09:15:56.849 -> 3fffefb0:  00000005 00000000 00000020 40100758  
09:15:56.849 -> 3fffefc0:  feefeffe feefeffe 00000005 40101fc4  
09:15:56.897 -> 3fffefd0:  3ffe9e05 4010526f 3ffed890 feefeffe  
09:15:56.897 -> 3fffefe0:  40102b5b 3ffed890 feefeffe feefeffe  
09:15:56.897 -> 3fffeff0:  00000001 03ac39fb 3ffee2b4 40102d38  
09:15:56.897 -> 3ffff000:  3ffea680 00000000 00000000 feefeffe  
09:15:56.897 -> 3ffff010:  00000001 03ac39fb 401031fa 00000100  
09:15:56.897 -> 3ffff020:  3ffea680 7fffffff 00000000 00000001  
09:15:56.897 -> 3ffff030:  00000001 00000080 0000001f 40100758  
09:15:56.897 -> 3ffff040:  3ffea680 feefeffe 3fffc228 03ac39fb  
09:15:56.897 -> 3ffff050:  3ffea4e8 2c9f0300 4000050c 3fffc278  
09:15:56.897 -> 3ffff060:  40102f1c 3fffc200 00000022 ffffffff  
09:15:56.897 -> 3ffff070:  40224b54 00000030 00000010 ffffffff  
09:15:56.945 -> 3ffff080:  40224b74 6000001c 6000001c 3ffff1ef  
09:15:56.945 -> 3ffff090:  00000009 00000006 402212a8 44410031  
09:15:56.945 -> 3ffff0a0:  00000000 00000003 00000000 00000000  
09:15:56.945 -> 3ffff0b0:  00000032 0000007e 00000005 00000030  
09:15:56.945 -> 3ffff0c0:  00000000 00000000 0000001f 40100758  
09:15:56.945 -> 3ffff0d0:  feefeffe feefeffe 3fffc228 40105b15  
09:15:56.945 -> 3ffff0e0:  4000050c feefeffe feefeffe feefeffe  
09:15:56.945 -> 3ffff0f0:  40224b74 00000030 00000018 ffffffff  
09:15:56.945 -> 3ffff100:  40224b74 0000007f 6000001c 3ffff250  
09:15:56.945 -> 3ffff110:  3ffff167 00000000 40203a65 40224c39  
09:15:56.993 -> 3ffff120:  3ffff167 00000000 3f203a65 40224c39  
09:15:56.993 -> 3ffff130:  3ffff1b0 00000000 30303532 40224c39  
09:15:56.993 -> 3ffff140:  3ffff1b0 4027cf94 00000000 402212b4  
09:15:56.993 -> 3ffff150:  00000007 4027cf94 00000000 3fff10c4  
09:15:56.993 -> 3ffff160:  3ffff1e0 00000000 32218d7d 40224c39  
09:15:56.993 -> 3ffff170:  3ffff1e0 3fff10c4 3ffff1a6 40218d7d  
09:15:56.993 -> 3ffff180:  00000031 0000000a 3ffff1a5 3fff10c4  
09:15:56.993 -> 3ffff190:  402212a8 3fff10c4 3ffff1df 402212b4  
09:15:56.993 -> 3ffff1a0:  402212a8 3fff10c4 3ffff1df 40218d7d  
09:15:56.993 -> 3ffff1b0:  00000000 00000000 00000000 3fff0194  
09:15:56.993 -> 3ffff1c0:  3fff05c8 000000cc 4022317c 3fffefa0  
09:15:57.041 -> 3ffff1d0:  3ffe935e 00000000 5b000a0d 4022400a  
09:15:57.041 -> 3ffff1e0:  3ffe935e 3fff0194 3fff0298 40219810  
09:15:57.041 -> 3ffff1f0:  00004b4f 4bc6a7f0 04189374 3ffe8bae  
09:15:57.041 -> 3ffff200:  402212a8 3fff10c4 3ffe935c 3ffefb48  
09:15:57.041 -> 3ffff210:  3fff065c 00000001 3fff0194 40219841  
09:15:57.041 -> 3ffff220:  3fff065c 00000000 3fff00b4 4020edd5  
09:15:57.041 -> 3ffff230:  4026c3f3 0000007f 30302e00 3ffefb48  
09:15:57.041 -> 3ffff240:  3fff065c 3ffefd48 3ffefb48 40225a70  
09:15:57.041 -> 3ffff250:  00000064 3ffefd48 3ffefb48 402112f0  
09:15:57.041 -> 3ffff260:  6067c194 4027c850 40100adc 0000f0c0  
09:15:57.088 -> 3ffff270:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.088 -> 3ffff280:  01165e51 4bc6a700 805c28f5 30302e00  
09:15:57.088 -> 3ffff290:  00000000 80000000 30302e00 3ffefb48  
09:15:57.088 -> 3ffff2a0:  00000064 03ac6f11 00000064 402115c5  
09:15:57.088 -> 3ffff2b0:  0000f0c0 3ffefa08 00000001 00000001  
09:15:57.088 -> 3ffff2c0:  01163c1a 00000000 3fff00b4 00000001  
09:15:57.088 -> 3ffff2d0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.088 -> 3ffff2e0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.088 -> 3ffff2f0:  6067c194 4027c850 40100adc 0000f08e  
09:15:57.088 -> 3ffff300:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.135 -> 3ffff310:  0116248f 4bc6a700 80c08312 30302e00  
09:15:57.135 -> 3ffff320:  00000000 80000000 30302e00 3ffefb48  
09:15:57.135 -> 3ffff330:  00000064 03ababf0 00000064 402115c5  
09:15:57.135 -> 3ffff340:  0000f08e 3ffefa08 00000001 00000001  
09:15:57.135 -> 3ffff350:  011601fb 00000000 3fff00b4 00000001  
09:15:57.135 -> 3ffff360:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.135 -> 3ffff370:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.135 -> 3ffff380:  6067c194 4027c850 40100adc 0000f058  
09:15:57.135 -> 3ffff390:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.135 -> 3ffff3a0:  0115e6c9 4bc6a700 80cccccc 30302e00  
09:15:57.135 -> 3ffff3b0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.181 -> 3ffff3c0:  00000064 03aadb41 00000064 402115c5  
09:15:57.181 -> 3ffff3d0:  0000f058 3ffefa08 00000001 00000001  
09:15:57.181 -> 3ffff3e0:  0115c490 00000000 3fff00b4 00000001  
09:15:57.181 -> 3ffff3f0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.181 -> 3ffff400:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.181 -> 3ffff410:  6067c194 4027c850 40100adc 0000f026  
09:15:57.181 -> 3ffff420:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.181 -> 3ffff430:  0115ad03 4bc6a700 8022d0e5 30302e00  
09:15:57.181 -> 3ffff440:  00000000 80000000 30302e00 3ffefb48  
09:15:57.181 -> 3ffff450:  00000064 03aa1813 00000064 402115c5  
09:15:57.226 -> 3ffff460:  0000f026 3ffefa08 00000001 00000001  
09:15:57.226 -> 3ffff470:  01158aac 00000000 3fff00b4 00000001  
09:15:57.226 -> 3ffff480:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.226 -> 3ffff490:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.226 -> 3ffff4a0:  6067c194 4027c850 40100adc 0000eff4  
09:15:57.226 -> 3ffff4b0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.226 -> 3ffff4c0:  0115722d 4bc6a700 80395810 30302e00  
09:15:57.226 -> 3ffff4d0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.226 -> 3ffff4e0:  00000064 03a9514b 00000064 402115c5  
09:15:57.226 -> 3ffff4f0:  0000eff4 3ffefa08 00000001 00000001  
09:15:57.273 -> 3ffff500:  01154ff6 00000000 3fff00b4 00000001  
09:15:57.273 -> 3ffff510:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.273 -> 3ffff520:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.273 -> 3ffff530:  6067c194 4027c850 40100adc 0000efc2  
09:15:57.273 -> 3ffff540:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.273 -> 3ffff550:  01153878 4bc6a700 801cac08 30302e00  
09:15:57.273 -> 3ffff560:  00000000 80000000 30302e00 3ffefb48  
09:15:57.273 -> 3ffff570:  00000064 03a88e59 00000064 402115c5  
09:15:57.273 -> 3ffff580:  0000efc2 3ffefa08 00000001 00000001  
09:15:57.273 -> 3ffff590:  0115162d 00000000 3fff00b4 00000001  
09:15:57.321 -> 3ffff5a0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.321 -> 3ffff5b0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.321 -> 3ffff5c0:  6067c194 4027c850 40100adc 0000ef8f  
09:15:57.321 -> 3ffff5d0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.321 -> 3ffff5e0:  0114fdc2 4bc6a700 8010624d 30302e00  
09:15:57.321 -> 3ffff5f0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.321 -> 3ffff600:  00000064 03a7c7ff 00000064 402115c5  
09:15:57.321 -> 3ffff610:  0000ef8f 3ffefa08 00000001 00000001  
09:15:57.321 -> 3ffff620:  0114db7c 00000000 3fff00b4 00000001  
09:15:57.321 -> 3ffff630:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.321 -> 3ffff640:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.368 -> 3ffff650:  6067c194 4027c850 40100adc 0000ef5d  
09:15:57.368 -> 3ffff660:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.368 -> 3ffff670:  0114c399 4bc6a700 8024dd2f 30302e00  
09:15:57.368 -> 3ffff680:  00000000 80000000 30302e00 3ffefb48  
09:15:57.368 -> 3ffff690:  00000064 03a70384 00000064 402115c5  
09:15:57.368 -> 3ffff6a0:  0000ef5d 3ffefa08 00000001 00000001  
09:15:57.368 -> 3ffff6b0:  0114a14e 00000000 3fff00b4 00000001  
09:15:57.368 -> 3ffff6c0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.368 -> 3ffff6d0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.368 -> 3ffff6e0:  6067c194 4027c850 40100adc 0000ef2a  
09:15:57.413 -> 3ffff6f0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.413 -> 3ffff700:  01148938 4bc6a700 807ef9db 30302e00  
09:15:57.413 -> 3ffff710:  00000000 80000000 30302e00 3ffefb48  
09:15:57.413 -> 3ffff720:  00000064 03a63e48 00000064 402115c5  
09:15:57.413 -> 3ffff730:  0000ef2a 3ffefa08 00000001 00000001  
09:15:57.413 -> 3ffff740:  011466ef 00000000 3fff00b4 00000001  
09:15:57.413 -> 3ffff750:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.413 -> 3ffff760:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.413 -> 3ffff770:  6067c194 4027c850 40100adc 0000eef7  
09:15:57.413 -> 3ffff780:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.459 -> 3ffff790:  01144ebe 4bc6a700 8078d4fd 30302e00  
09:15:57.459 -> 3ffff7a0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.459 -> 3ffff7b0:  00000064 03a578bb 00000064 402115c5  
09:15:57.459 -> 3ffff7c0:  0000eef7 3ffefa08 00000001 00000001  
09:15:57.459 -> 3ffff7d0:  01142c64 00000000 3fff00b4 00000001  
09:15:57.459 -> 3ffff7e0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.459 -> 3ffff7f0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.459 -> 3ffff800:  6067c194 4027c850 40100adc 0000eec3  
09:15:57.459 -> 3ffff810:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.459 -> 3ffff820:  01141271 4bc6a700 80c49ba5 30302e00  
09:15:57.506 -> 3ffff830:  00000000 80000000 30302e00 3ffefb48  
09:15:57.506 -> 3ffff840:  00000064 03a4ad01 00000064 402115c5  
09:15:57.506 -> 3ffff850:  0000eec3 3ffefa08 00000001 00000001  
09:15:57.506 -> 3ffff860:  0113f03a 00000000 3fff00b4 00000001  
09:15:57.506 -> 3ffff870:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.506 -> 3ffff880:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.506 -> 3ffff890:  6067c194 4027c850 40100adc 0000ee91  
09:15:57.506 -> 3ffff8a0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.506 -> 3ffff8b0:  0113d8af 4bc6a700 806a7ef9 30302e00  
09:15:57.506 -> 3ffff8c0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.506 -> 3ffff8d0:  00000064 03a3e9e1 00000064 402115c5  
09:15:57.553 -> 3ffff8e0:  0000ee91 3ffefa08 00000001 00000001  
09:15:57.553 -> 3ffff8f0:  0113b61b 00000000 3fff00b4 00000001  
09:15:57.553 -> 3ffff900:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.553 -> 3ffff910:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.553 -> 3ffff920:  6067c194 4027c850 40100adc 0000ee5c  
09:15:57.553 -> 3ffff930:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.553 -> 3ffff940:  01139b22 4bc6a700 805c28f5 30302e00  
09:15:57.553 -> 3ffff950:  00000000 80000000 30302e00 3ffefb48  
09:15:57.553 -> 3ffff960:  00000064 03a319f1 00000064 402115c5  
09:15:57.553 -> 3ffff970:  0000ee5c 3ffefa08 00000001 00000001  
09:15:57.598 -> 3ffff980:  011378e9 00000000 3fff00b4 00000001  
09:15:57.598 -> 3ffff990:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.598 -> 3ffff9a0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.598 -> 3ffff9b0:  6067c194 4027c850 40100adc 0000ee2a  
09:15:57.598 -> 3ffff9c0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.598 -> 3ffff9d0:  0113616e 4bc6a700 80db22d0 30302e00  
09:15:57.598 -> 3ffff9e0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.598 -> 3ffff9f0:  00000064 03a256fd 00000064 402115c5  
09:15:57.598 -> 3ffffa00:  0000ee2a 3ffefa08 00000001 00000001  
09:15:57.598 -> 3ffffa10:  01133f25 00000000 3fff00b4 00000001  
09:15:57.646 -> 3ffffa20:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.646 -> 3ffffa30:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.646 -> 3ffffa40:  6067c194 4027c850 40100adc 0000edf7  
09:15:57.646 -> 3ffffa50:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.646 -> 3ffffa60:  0113260f 4bc6a700 80624dd2 30302e00  
09:15:57.646 -> 3ffffa70:  00000000 80000000 30302e00 3ffefb48  
09:15:57.646 -> 3ffffa80:  00000064 03a18e6b 00000064 402115c5  
09:15:57.646 -> 3ffffa90:  0000edf7 3ffefa08 00000001 00000001  
09:15:57.646 -> 3ffffaa0:  011303d8 00000000 3fff00b4 00000001  
09:15:57.646 -> 3ffffab0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.692 -> 3ffffac0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.692 -> 3ffffad0:  6067c194 4027c850 40100adc 0000edc5  
09:15:57.692 -> 3ffffae0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.692 -> 3ffffaf0:  0112ec50 4bc6a700 80978d4f 30302e00  
09:15:57.692 -> 3ffffb00:  00000000 80000000 30302e00 3ffefb48  
09:15:57.692 -> 3ffffb10:  00000064 03a0cb54 00000064 402115c5  
09:15:57.692 -> 3ffffb20:  0000edc5 3ffefa08 00000001 00000001  
09:15:57.692 -> 3ffffb30:  0112c9bc 00000000 3fff00b4 00000001  
09:15:57.692 -> 3ffffb40:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.692 -> 3ffffb50:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.739 -> 3ffffb60:  6067c194 4027c850 40100adc 0000ed90  
09:15:57.739 -> 3ffffb70:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.739 -> 3ffffb80:  0112aeb5 4bc6a700 800624dd 30302e00  
09:15:57.739 -> 3ffffb90:  00000000 80000000 30302e00 3ffefb48  
09:15:57.739 -> 3ffffba0:  00000064 039ffb34 00000064 402115c5  
09:15:57.739 -> 3ffffbb0:  0000ed90 3ffefa08 00000001 00000001  
09:15:57.739 -> 3ffffbc0:  01128c65 00000000 3fff00b4 00000001  
09:15:57.739 -> 3ffffbd0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.739 -> 3ffffbe0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.739 -> 3ffffbf0:  6067c194 4027c850 40100adc 0000ed5d  
09:15:57.739 -> 3ffffc00:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.787 -> 3ffffc10:  01127489 4bc6a700 80ed9168 30302e00  
09:15:57.787 -> 3ffffc20:  00000000 80000000 30302e00 3ffefb48  
09:15:57.787 -> 3ffffc30:  00000064 039f36ae 00000064 402115c5  
09:15:57.787 -> 3ffffc40:  0000ed5d 3ffefa08 00000001 00000001  
09:15:57.787 -> 3ffffc50:  01125246 00000000 3fff00b4 00000001  
09:15:57.787 -> 3ffffc60:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.787 -> 3ffffc70:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.787 -> 3ffffc80:  6067c194 4027c850 40100adc 0000ed2b  
09:15:57.787 -> 3ffffc90:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.787 -> 3ffffca0:  01123a3c 4bc6a700 803d70a3 30302e00  
09:15:57.832 -> 3ffffcb0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.832 -> 3ffffcc0:  00000064 039e71b6 00000064 402115c5  
09:15:57.832 -> 3ffffcd0:  0000ed2b 3ffefa08 00000001 00000001  
09:15:57.832 -> 3ffffce0:  011217f1 00000000 3fff00b4 00000001  
09:15:57.832 -> 3ffffcf0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.832 -> 3ffffd00:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.832 -> 3ffffd10:  6067c194 4027c850 40100adc 0000ecf8  
09:15:57.832 -> 3ffffd20:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.832 -> 3ffffd30:  0111ffa0 4bc6a700 80978d4f 30302e00  
09:15:57.832 -> 3ffffd40:  00000000 80000000 30302e00 3ffefb48  
09:15:57.879 -> 3ffffd50:  00000064 039dabb5 00000064 402115c5  
09:15:57.879 -> 3ffffd60:  0000ecf8 3ffefa08 00000001 00000001  
09:15:57.879 -> 3ffffd70:  0111dd48 00000000 3fff00b4 00000001  
09:15:57.879 -> 3ffffd80:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.879 -> 3ffffd90:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.879 -> 3ffffda0:  6067c194 4027c850 40100adc 0000ecc4  
09:15:57.879 -> 3ffffdb0:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.879 -> 3ffffdc0:  0111c388 4bc6a700 806e978d 30302e00  
09:15:57.879 -> 3ffffdd0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.879 -> 3ffffde0:  00000064 039ce0b1 00000064 402115c5  
09:15:57.879 -> 3ffffdf0:  0000ecc4 3ffefa08 00000001 00000001  
09:15:57.927 -> 3ffffe00:  0111a152 00000000 3fff00b4 00000001  
09:15:57.927 -> 3ffffe10:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.927 -> 3ffffe20:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.927 -> 3ffffe30:  6067c194 4027c850 40100adc 0000ec92  
09:15:57.927 -> 3ffffe40:  00000000 3ffefb4c 3ffefd48 40205db1  
09:15:57.927 -> 3ffffe50:  011189cc 4bc6a700 80f1a9fb 30302e00  
09:15:57.927 -> 3ffffe60:  00000000 80000000 30302e00 3ffefb48  
09:15:57.927 -> 3ffffe70:  00000064 039c1da3 00000064 402115c5  
09:15:57.927 -> 3ffffe80:  0000ec92 3ffefa08 00000001 00000001  
09:15:57.927 -> 3ffffe90:  01116738 00000000 3fff00b4 00000001  
09:15:57.974 -> 3ffffea0:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:57.974 -> 3ffffeb0:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:57.974 -> 3ffffec0:  6067c194 4027c850 40100adc 0000ec5d  
09:15:57.974 -> 3ffffed0:  00000000 3ffeff3c 3ffefd48 40205db1  
09:15:57.974 -> 3ffffee0:  01114c29 4bc60000 806872b0 30302e00  
09:15:57.974 -> 3ffffef0:  00000000 80000000 30302e00 3ffefb48  
09:15:57.974 -> 3fffff00:  00000064 039b4d6a 00000064 402115c5  
09:15:57.974 -> 3fffff10:  0000ec5d 000000fc ffffffff 00000001  
09:15:57.974 -> 3fffff20:  01111e5f 00000000 3fff00b4 00000001  
09:15:57.974 -> 3fffff30:  3fff0048 3ffefd48 3ffefb48 40211750  
09:15:58.020 -> 3fffff40:  3fff0048 3ffefd48 3ffefb48 402114e2  
09:15:58.020 -> 3fffff50:  00000003 00000079 40100adc 0000ec21  
09:15:58.020 -> 3fffff60:  007a1200 203f354a 3ffefa00 402127fe  
09:15:58.020 -> 3fffff70:  00000000 3ffefa28 3ffefb48 402028d9  
09:15:58.020 -> 3fffff80:  00000000 00000000 00000001 3fff1220  
09:15:58.020 -> 3fffff90:  3fffdad0 00000000 3ffefb48 40211c71  
09:15:58.020 -> 3fffffa0:  3fffdad0 00000000 3fff11e0 402232a0  
09:15:58.020 -> <<<stack<<<
09:15:58.020 ->
09:15:58.020 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------

 楼主| 发表于 2021-4-3 09:32 | 显示全部楼层
void sensor_read(){
  ESP.wdtFeed();
  s=(Blinker.second());
  int i=0;
  unsigned char c[6];
  unsigned char highbyte,lowbyte,highbyte2,lowbyte3;
  double num,num1;
  serial1.write(0x01);
  serial1.write(0x03);
  serial1.write(0x00);
  serial1.write(0x00);
  serial1.write(0x00);
  serial1.write(0x02);
  serial1.write(0xC4);
  serial1.write(0x0B);
  Blinker.delay(100);
while(serial1.available())
  {
c[i]=serial1.read();
Blinker.delay(4);
i++;
}
if (c[0]==03&&c[1]==03)
{
highbyte=c[3];
lowbyte=c[4];
num=highbyte*256+lowbyte;
if (num>=0&&num<=32767){
temp_read3=num/10.0;}
else if (num>=32767&&num<=65535){
temp_read3=(num-65535)/10.0;}
highbyte2=c[5];
lowbyte3=c[6];
num1=highbyte2*256+lowbyte3;
humi_read3=num1/10.0;
Blinker.run();
}

通讯设备部分的代码,都是局部变量 应该不存在野指针问题 回复的数组大概是10 但是只有前6位有用所以只创建了部分数组空间。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 10:49 , Processed in 1.869224 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表