1# Copyright (c) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14domain: NFC
15
16FIRMWARE_UPDATE:
17  __BASE: {type: STATISTIC, level: MINOR, desc: record the event of updating firmware}
18  FAILED_FIRMWARE_UPDATE_CNT: {type: INT16, desc: count when fail to update firmware}
19  REQUEST_FIRMWARE_UPDATE_CNT: {type: INT16, desc: count when update firmware}
20
21OPEN_AND_CLOSE:
22  __BASE: {type: STATISTIC, level: MINOR, desc: record the event of opening and closing NFC}
23  CLOSE_FAILED_CNT: {type: INT16, desc: count when fail to close NFC}
24  CLOSE_REQUEST_CNT: {type: INT16, desc: count when close NFC}
25  OPEN_FAILED_CNT: {type: INT16, desc: count when fail to open NFC}
26  OPEN_REQUEST_CNT: {type: INT16, desc: count when open NFC}
27
28OPERATION_FAILED:
29  __BASE: {type: FAULT, level: CRITICAL, desc: record when NFC functions fail}
30  APP_PACKAGE_NAME: {type: STRING, desc: app triggered by current event}
31  CURRENT_DEFAULT_ROUTE: {type: INT16, desc: current default route}
32  CURRENT_FIRMWARE_VERSION: {type: STRING, desc: current version of firmware}
33  CURRENT_NFC_STATE: {type: INT16, desc: current status of NFC}
34  CURRENT_PASSIVE_LISTEN_STATE: {type: INT16, desc: current status of passive listen}
35  CURRENT_SCREEN_STATE: {type: INT16, desc: current status of screen}
36  MAIN_ERROR_CODE: {type: INT16, desc: refer to different types of failed events}
37  SUB_ERROR_CODE: {type: INT16, desc: refer to different reasons of failed events}
38
39PASSIVE_LISTEN:
40  __BASE: {type: STATISTIC, level: MINOR, desc: record the event of turning on NFC passive listen mode}
41  FAILED_PASSIVE_LISTEN_CNT: {type: INT16, desc: count when fail to turn on NFC passive listen mode}
42  REQUEST_PASSIVE_LISTEN_CNT: {type: INT16, desc: count when turn on NFC passive listen mode}
43
44TAG_FOUND:
45  __BASE: {type: STATISTIC, level: MINOR, desc: record the event and types when NFC tag found}
46  TOTAL_TAG_FOUND_CNT: {type: INT16, desc: count when NFC tag found}
47  TYPE_A_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type A}
48  TYPE_B_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type B}
49  TYPE_F_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type F}
50  TYPE_V_TAG_FOUND: {type: INT16, desc: count when the found NFC tag is type V}
51