Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RMT error while trying to read a ds18b20 ow sensor that is not connected #3656

Open
bpop2000 opened this issue Jul 26, 2024 · 0 comments
Open

Comments

@bpop2000
Copy link

Expected behavior

I can capture the error of a ds18b20 ow sensor that is not connected and I expect no other error messages in the console

Actual behavior

With the ds18b20 sensor disconnected, there are bursts of RMT RX errors in the console. This is not always visible but arrives in intervals. This is tested with an idx v3.3-beta2 build from the #Nodemcu custom build page.

�[0;31mE (51114) rmt: RMT RX BUFFER FULL�[0m
�[0;31mE (51124) rmt: RMT RX BUFFER FULL�[0m
�[0;31mE (51134) rmt: RMT RX BUFFER FULL�[0m
�[0;31mE (51144) rmt: RMT RX BUFFER FULL�[0m
�[0;31mE (51154) rmt: RMT RX BUFFER FULL�[0m
�[0;31mE (51164) rmt: RMT RX BUFFER FULL�[0m
�[0;31mE (51174) rmt: RMT RX BUFFER FULL�[0m

Test code

Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.

temp_pin = 27

readtemp(temp_pin) -- read ds18b20

main_timer = tmr.create()
main_timer:alarm(10000, tmr.ALARM_AUTO, function()
readtemp(temp_pin) -- read ds18b20
end)

t = require("ds18b20")
send_idx = { [27] = 127, [21] = 128, [22] = 129}

function readout(temp)
  local amb_t = ""

  for addr, temp in pairs(temp) do
--    amb_t = string.gsub(temp,"%.", "") * 1    -- convert to integer
    amb_t = tonumber(string.format("%.1f", temp)) -- float version
  end

  if amb_t ~= "" then
    if debug == 1 then print ('Temp: '..amb_t) end
    Send(send_idx[temp_pin], amb_t)
  else
    local txt = Host.."_ds18b20_fout:_"..amb_t.."_"
    if debug == 1 then print (txt) end
    Send(269, txt)
  end
end

function readtemp()
  t.sens={}
  t:readTemp(readout, temp_pin)                      -- use address in flash
end

### NodeMCU startup banner
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6772
load:0x40078000,len:11172
ho 0 tail 12 room 4
load:0x40080400,len:5892
entry 0x400806f8
�[0;32mI (70) boot: Chip Revision: 3�[0m
�[0;32mI (70) boot_comm: chip revision: 3, min. bootloader chip revision: 0�[0m
�[0;32mI (41) boot: ESP-IDF v3.3-beta2-1234-gb64b375234 2nd stage bootloader�[0m
�[0;32mI (41) boot: compile time 10:43:15�[0m
�[0;32mI (43) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (48) boot: SPI Speed      : 40MHz�[0m
�[0;32mI (52) boot: SPI Mode       : DIO�[0m
�[0;32mI (56) boot: SPI Flash Size : 4MB�[0m
�[0;32mI (60) boot: Partition Table:�[0m
�[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
�[0;32mI (79) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
�[0;32mI (86) boot:  2 factory          factory app      00 00 00010000 00180000�[0m
�[0;32mI (94) boot:  3 lfs              unknown          c2 01 00190000 00010000�[0m
�[0;32mI (101) boot:  4 nodemcuspiffs    unknown          c2 00 001a0000 00070000�[0m
�[0;32mI (109) boot: End of partition table�[0m
�[0;32mI (113) boot_comm: chip revision: 3, min. application chip revision: 0�[0m
�[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x21098 (135320) map�[0m
�[0;32mI (175) esp_image: segment 1: paddr=0x000310c0 vaddr=0x3ffb0000 size=0x035b4 ( 13748) load�[0m
�[0;32mI (180) esp_image: segment 2: paddr=0x0003467c vaddr=0x40080000 size=0x00400 (  1024) load�[0m
�[0;32mI (182) esp_image: segment 3: paddr=0x00034a84 vaddr=0x40080400 size=0x0b58c ( 46476) load�[0m
�[0;32mI (209) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x872a8 (553640) map�[0m
�[0;32mI (396) esp_image: segment 5: paddr=0x000c72c8 vaddr=0x4008b98c size=0x0a6a4 ( 42660) load�[0m
�[0;32mI (413) esp_image: segment 6: paddr=0x000d1974 vaddr=0x400c0000 size=0x00064 (   100) load�[0m
�[0;32mI (427) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (427) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (427) cpu_start: Pro cpu up.�[0m
�[0;32mI (431) cpu_start: Application information:�[0m
�[0;32mI (436) cpu_start: Project name:     NodeMCU�[0m
�[0;32mI (441) cpu_start: App version:      0294835-dirty�[0m
�[0;32mI (446) cpu_start: Compile time:     Jul 25 2024 10:43:18�[0m
�[0;32mI (452) cpu_start: ELF file SHA256:  fab95c24b8b0b8ae...�[0m
�[0;32mI (458) cpu_start: ESP-IDF:          v3.3-beta2-1234-gb64b375234�[0m
�[0;32mI (465) cpu_start: Starting app cpu, entry point is 0x400813d8�[0m
�[0;32mI (451) cpu_start: App cpu up.�[0m
�[0;32mI (476) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (482) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM�[0m
�[0;32mI (488) heap_init: At 3FFB9B00 len 00026500 (153 KiB): DRAM�[0m
�[0;32mI (495) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (501) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (507) heap_init: At 40096030 len 00009FD0 (39 KiB): IRAM�[0m
�[0;32mI (514) cpu_start: Pro cpu start user code�[0m
�[0;32mI (196) cpu_start: Starting scheduler on PRO CPU.�[0m
�[0;32mI (0) cpu_start: Starting scheduler on APP CPU.�[0m

Mounting flash filesystem...
No LFS image loaded
I (357) wifi:wifi driver task: 3ffc4660, prio:23, stack:3584, core=0
�[0;32mI (357) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
�[0;32mI (357) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE�[0m
I (387) wifi:wifi firmware version: 74b0970
I (387) wifi:config NVS flash: enabled
I (387) wifi:config nano formating: disabled
I (397) wifi:Init dynamic tx buffer num: 32
I (397) wifi:Init data frame dynamic rx buffer num: 32
I (397) wifi:Init management frame dynamic rx buffer num: 32
I (407) wifi:Init management short buffer num: 32
I (407) wifi:Init static rx buffer size: 1600
I (417) wifi:Init static rx buffer num: 10
I (417) wifi:Init dynamic rx buffer num: 32

NodeMCU ESP32 built on nodemcu-build.com provided by frightanic.com
	branch: dev-esp32-idf3-final
	commit: 0294835c0243f69bba733961fb0e2642dbcb6f63
	SSL: true
	modules: adc,bit,encoder,file,gpio,i2c,net,node,ow,spi,tmr,uart,wifi
 build 2024-07-25-10-43-13 powered by Lua 5.1.4 on ESP-IDF v3.3-beta1-1738-gb64b375234 on SDK IDF

### Hardware
ESP32 WROOM-32 nodemcu module
issue is seen with these two idx v3.3-beta2 builds:
modules: adc,bit,dht,encoder,file,gpio,i2c,ledc,net,node,ow,spi,time,tmr,uart,wifi,ws2812
modules: adc,bit,encoder,file,gpio,i2c,net,node,ow,spi,tmr,uart,wifi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant