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

ESP32 Gpio command not working #9962

Closed
14 of 15 tasks
czikus opened this issue Nov 23, 2020 · 0 comments
Closed
14 of 15 tasks

ESP32 Gpio command not working #9962

czikus opened this issue Nov 23, 2020 · 0 comments
Assignees
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@czikus
Copy link

czikus commented Nov 23, 2020

PROBLEM DESCRIPTION

When using the latest development branch with ESP32 (basic devkit), setting all GPIOs works correctly using the web UI. However, the Gpio command works only for buttons and ignores all other values. For instance, issuing:

Backlog GPIO2 800; GPIO5 768; GPIO12 5408; GPIO13 5409; GPIO14 5410; GPIO15 5411; GPIO16 1696; GPIO18 736; GPIO19 672; GPIO21 640; GPIO22 608; GPIO23 704; GPIO25 992

results in:

{"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO12":{"5408":"Button_tc1"},"GPIO13":{"5409":"Button_tc2"},"GPIO14":{"5410":"Button_tc3"},"GPIO15":{"5411":"Button_tc4"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"},"GPIO18":{"0":"None"},"GPIO19":{"0":"None"},"GPIO21":{"0":"None"},"GPIO22":{"0":"None"},"GPIO23":{"0":"None"},"GPIO25":{"0":"None"},"GPIO26":{"0":"None"},"GPIO27":{"0":"None"},"GPIO32":{"0":"None"},"GPIO33":{"0":"None"},"GPIO34":{"0":"None"},"GPIO35":{"0":"None"},"GPIO36":{"0":"None"},"GPIO39":{"0":"None"}}

Yet, setting the exact same values in Configure Module, works as expected.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in the docs
  • Searched the problem in the forum
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): ESP32 DevKit
  • Tasmota binary firmware version number used: 9.1.0.2(tasmota)-1_0_4_2
    • Pre-compiled
    • Self-compiled
      • IDE / Compiler used: PlatformIO
  • Flashing tools used: esptool
  • Provide the output of command: Backlog Template; Module; GPIO 255:
18:30:25 MQT: tasmota/stat/tasmota_wemos3/RESULT = {"NAME":"ESP32-DevKit","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,1,0,0,1],"FLAG":0,"BASE":1}
18:30:25 MQT: tasmota/stat/tasmota_wemos3/RESULT = {"Module":{"1":"ESP32-DevKit"}}
18:30:25 MQT: tasmota/stat/tasmota_wemos3/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"5408":"Button_tc1"},"GPIO13":{"5409":"Button_tc2"},"GPIO14":{"5410":"Button_tc3"},"GPIO15":{"5411":"Button_tc4"},"GPIO16":{"0":"None"},"GPIO17":{"0":"None"},"GPIO18":{"0":"None"},"GPIO19":{"0":"None"},"GPIO20":{"0":"None"},"GPIO21":{"0":"None"},"GPIO22":{"0":"None"},"GPIO23":{"0":"None"},"GPIO24":{"0":"None"},"GPIO25":{"0":"None"},"GPIO26":{"0":"None"},"GPIO27":{"0":"None"},"GPIO28":{"0":"None"},"GPIO29":{"0":"None"},"GPIO30":{"0":"None"},"GPIO31":{"0":"None"},"GPIO32 ...
  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  • Provide the output of this command: Status 0:
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS = {"Status":{"Module":1,"DeviceName":"tasmota_wemos3","FriendlyName":["tasmota_wemos3"],"Topic":"tasmota_wemos3","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":2,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota.bin","RestartReason":"Software reset CPU","Uptime":"0T00:00:26","StartupUTC":"2020-11-23T17:31:38","Sleep":50,"CfgHolder":4617,"BootCount":6,"BCResetTime":"2020-11-23T18:11:24","SaveCount":10}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS2 = {"StatusFWR":{"Version":"9.1.0.2(tasmota)","BuildDateTime":"2020-11-23T18:05:53","Core":"1_0_4_2","SDK":"v3.3.4-232-g44ec7972b","CpuFrequency":80,"Hardware":"ESP32","CR":"426/699"}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["wifi",""],"TelePeriod":60,"Resolution":"558180C0","SetOption":["0000800B","0505C8000100060000005A00000000000000","00800000","00006000","00000000"]}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS4 = {"StatusMEM":{"ProgramSize":1039,"Free":1984,"Heap":111,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashFrequency":40,"FlashMode":3,"Features":["00000809","0FA0058E","000007A1","00240443","00000000","00000001","00000020","00000000"],"Drivers":"1,2,4,8,9,10,13,24","Sensors":"1,2,5,9,15,18"}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS5 = {"StatusNET":{"Hostname":"tasmota_wemos3-8160","IPAddress":"192.168.42.6","Gateway":"192.168.42.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.42.1","Mac":"10:52:1C:67:9F:E0","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.42.1","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_679FE0","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS7 = {"StatusTIM":{"UTC":"2020-11-23T17:32:04","Local":"2020-11-23T18:32:04","StartDST":"2020-03-29T02:00:00","EndDST":"2020-10-25T03:00:00","Timezone":99,"Sunrise":"07:10","Sunset":"15:49"}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS10 = {"StatusSNS":{"Time":"2020-11-23T18:32:04"}}
18:32:04 MQT: tasmota/stat/tasmota_wemos3/STATUS11 = {"StatusSTS":{"Time":"2020-11-23T18:32:04","Uptime":"0T00:00:26","UptimeSec":26,"Heap":111,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":1,"Wifi":{"AP":1,"SSId":"wifi","BSSId":"DC:A6:32:3D:8D:A5","Channel":6,"RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:04"}}}
  • Provide the output of the Console log output when you experience your issue; if applicable:
    (Please use weblog 4 for more debug information)
18:39:10 CMD: GPIO2 800
18:39:10 SRC: WebConsole from 192.168.41.11
18:39:10 CMD: Group 0, Index 2, Command "GPIO", Data "800"
18:39:10 MQT: tasmota/stat/tasmota_wemos3/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"}...

TO REPRODUCE

  1. Flash tasmota32
  2. Run: GPIO2 800
  3. See that GPIO2 is not set
  4. Set GPIO2 in Configure Module
  5. See that GPIO2 is set

EXPECTED BEHAVIOUR

GPIOx y command sets GPIO nr x to y.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

@arendst arendst self-assigned this Nov 24, 2020
@arendst arendst added the bug Type - Confirmated Bug label Nov 24, 2020
arendst added a commit that referenced this issue Nov 24, 2020
Fix command ``gpio`` using non-indexed functions regression from v9.1.0 (#9962)
@arendst arendst added the fixed Result - The work on the issue has ended label Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

3 participants