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

command prefix decodes any cmd with same length #7322

Closed
7 of 15 tasks
gemu2015 opened this issue Dec 25, 2019 · 0 comments
Closed
7 of 15 tasks

command prefix decodes any cmd with same length #7322

gemu2015 opened this issue Dec 25, 2019 · 0 comments
Assignees
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@gemu2015
Copy link
Contributor

PROBLEM DESCRIPTION

command prefix like display ...
decodes any text with same length

just type "abcdefg" in console to get display params

this prevents commands later in the call chain with the same length from executing
they all return "display" params

eg cmd "ibeacon"

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): generic
  • Tasmota binary firmware version number used: latest dev
    • Pre-compiled
    • Self-compiled
      • IDE / Compiler used: _____
  • Flashing tools used: _____
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:


  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:


  • Provide the output of this command: Status 0:
  STATUS 0 output here:

9:01:13 CMD: status 0
19:01:13 MQT: stat/sonoff/STATUS = {"Status":{"Module":18,"FriendlyName":["SSD1351"],"Topic":"sonoff","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
19:01:13 MQT: stat/sonoff/STATUS1 = {"StatusPRM":{"Baudrate":9600,"GroupTopic":"sonoffs","OtaUrl":"http://thehackbox.org/tasmota/release/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T00:04:32","StartupUTC":"2019-12-25T17:56:41","Sleep":50,"CfgHolder":5001,"BootCount":489,"SaveCount":813,"SaveAddress":"3F9000"}}
19:01:13 MQT: stat/sonoff/STATUS2 = {"StatusFWR":{"Version":"8.0.0.3(tasmota)","BuildDateTime":"2019.12.25 18:46:12","Boot":6,"Core":"2_6_1","SDK":"2.2.2-dev(38a443e)","Hardware":"ESP8266EX","CR":"340/699"}}
19:01:13 MQT: stat/sonoff/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"192.168.178.57","LogPort":514,"SSId":["WLAN-7490",""],"TelePeriod":10,"Resolution":"558180C0","SetOption":["00408009","2805C8000100060000005A00000000170700","00100000","00000000"]}}
19:01:13 MQT: stat/sonoff/STATUS4 = {"StatusMEM":{"ProgramSize":514,"Free":2556,"Heap":20,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"1640EF","FlashMode":3,"Features":["00000407","8620218D","04082101","00000001","00000140","00007885"],"Drivers":"1,2,6,10,13,14,24,29","Sensors":"1,2,4,52,97"}}
19:01:13 MQT: stat/sonoff/STATUS5 = {"StatusNET":{"Hostname":"sonoff-2759","IPAddress":"192.168.178.149","Gateway":"192.168.178.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.178.1","Mac":"EC:FA:BC:4C:4A:C7","Webserver":2,"WifiConfig":4}}
19:01:13 MQT: stat/sonoff/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.178.47","MqttPort":1883,"MqttClientMask":"SSD1351","MqttClient":"SSD1351","MqttUser":"gemu","MqttCount":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":30}}
19:01:13 MQT: stat/sonoff/STATUS7 = {"StatusTIM":{"UTC":"Wed Dec 25 18:01:13 2019","Local":"Wed Dec 25 19:01:13 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":99}}
19:01:13 MQT: stat/sonoff/STATUS10 = {"StatusSNS":{"Time":"2019-12-25T19:01:13"}}
19:01:13 MQT: stat/sonoff/STATUS11 = {"StatusSTS":{"Time":"2019-12-25T19:01:13","Uptime":"0T00:04:32","UptimeSec":272,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"WLAN-7490","BSSId":"34:31:C4:C6:EB:0F","Channel":6,"RSSI":64,"Signal":-68,"LinkCount":1,"Downtime":"0T00:00:06"}}}



  • Provide the output of the Console log output when you experience your issue; if applicable:
    (Please use weblog 4 for more debug information)
  Console output here:

18:57:01 CMD: ibeacon
18:57:01 MQT: stat/sonoff/RESULT = {"Display":{"Model":9,"Width":128,"Height":128,"Mode":0,"Dimmer":6,"Size":1,"Font":1,"Rotate":0,"Refresh":2,"Cols":[16,8],"Rows":12}}

TO REPRODUCE

Steps to reproduce the behavior:
abcdefg in console (with any display compiled)

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

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 Dec 26, 2019
@arendst arendst added the bug Type - Confirmated Bug label Dec 26, 2019
arendst added a commit that referenced this issue Dec 26, 2019
Fix commands ``Display`` and ``Counter`` from overruling command processing (#7322)
@arendst arendst added the fixed Result - The work on the issue has ended label Dec 26, 2019
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

2 participants