Visual HMI Secure Login:Set_pwdパスワード管理による階層認証

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

セキュリティログイン:インターフェイスコントロールのレベル承認、ユーザーのレベルによって異なるものを表示/Operationします。サポート1 〜 8レベル(0は観光客)、パスワードを割り当てることができ、Lua変更することができ、タイムアウトして自動的に終了することができます。

1.構成

工程 → 工程→セキュリティレベル:レベル数、各レベルのパスワード、ホールドログイン、タイムアウト(秒)、复帰画面、キーボード位置(デフォルト/センター)、ユーザー名をする。

Visual HMI Secure Login:Set_pwdパスワード管理による階層認証插图

2.タイムアウトログインの終了

机能ボタン切替画面时勾选“ユーザーレベル→最低要求レベル”,レベル不足弹キーボード输パスワード。アイドルタイムアウトは自動的にログインをロールアウトします(ログインを有効にするまで有効にしません)。

Visual HMI Secure Login:Set_pwdパスワード管理による階層認証插图1

3.パスワード変更LUA

set_pwd level pwd len level 0~7は暗号レベル1~8に対応し、pwd 数字暗号、lenは選択して埋めます(先頭のゼロパディング、len=5の場合123は00123として保存されます)。

パスワードは読み取りをサポートしていません。初期化/変更時にRWゾーンに同期ミラーリングします。

function on_init
  local _= get_uint16_RW、0x2000
  if_val ~= 0 x 0055 then
    set_uint32 VT_RW、0x0000、1111111
    set_uint32 VT_RW、0x0002、2222222
    set_uint32_RW、0x0004、333333
    set_uint32 VT_RW、0x0006、4444444
    set_uint32 VT_RW、0x0008、555555
    set_pwd 0 111111 6; set_pwd 1 222222 6
    set_pwd 2 333333 6; set_pwd 3 444444 6
    set_pwd 4 555555 6
    set_uint16 VT_RW、0x2000、0x0055
    flash_sync
  elseさん
    set_pwd 0 get_uint32_RW 0x0000 6
    set_pwd 1 get_uint32_RW 0x0002 6
    -- ...残りのクラス
  End of Endシングル
End of Endシングル

Visual HMI Secure Login:Set_pwdパスワード管理による階層認証插图2

安全なログインパスワードは、分割パスワードと同じです。読まずに書く。RWゾーンにミラーリングする必要があります先頭のゼロはピットです。先頭のゼロを使用すると(len=6の場合、66は000066として保存されます)、すべてのレベルのコードは先頭のゼロを使用する。または一致しない。flash_syncの保存を終了します。

広州大彩科技Visual HMI開発ドキュメント(hmi-doc.gz-dc.com)からの整理他の技術チュートリアル“セキュアログイン”、著作権は大彩科技に帰属します。

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.