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

The Flags command is setting extra bits #1458

Open
sigmdel opened this issue Dec 5, 2024 · 0 comments
Open

The Flags command is setting extra bits #1458

sigmdel opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sigmdel
Copy link

sigmdel commented Dec 5, 2024

Describe the bug
The Flags command is setting spurious higher bits

Firmware:

  • Version: 1.17.776
  • Device: Globe Outdoor 2-Outlet Smart Plug
  • Chip/model: BK7231T
  • Device config: (slightly modified)
  "vendor": "Globe Electric",
  "bDetailed": "0",
  "name": "Outdoor 2-Outlet Smart Plug",
  "model": "50151",
  "chip": "BK7231T",
  "board": "Onboard",
  "flags": "1024",
  "pins": {
    "6": "Rel;1;0",
    "7": "Rel;2;0",
    "10": "LED_n;2;0",
    "24": "Btn;1;2",
    "26": "LED_n;1"
  },
  "command": ""
}

To Reproduce

  1. Submit Flags 1024 in Command Tool
    Error: bits 35, 36, 39, 45, 46, 47, 49 set in addition to 10
    Configure General/Flags shows Flags (Current value=1024)
    The WebApp shows Flags: 1024
    Resetting the device does not change the flags.

  2. Submit Flags 1025 in Command Tool
    Error: bits 35, 36, 39, 45, 46, 47, 49 set in addition to 0 and 10
    etc. everything else being equal

Additional context
The problem manifested itself when importing a template in the WebApp. The generated script had the Flags 1024 command but when the script was applied numerous extra bits were set.

Not always the same extra bits set, although that may have been observed with a second plug.

Thank you for all this excellent work!
Very much appreciated.

@sigmdel sigmdel changed the title The Flags command is extra bits The Flags command is setting extra bits Dec 5, 2024
@openshwprojects openshwprojects added the bug Something isn't working label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants