patents.google.com

CN115562895A - Abnormal recovery method and device for electronic equipment - Google Patents

  • ️Tue Jan 03 2023

CN115562895A - Abnormal recovery method and device for electronic equipment - Google Patents

Abnormal recovery method and device for electronic equipment Download PDF

Info

Publication number
CN115562895A
CN115562895A CN202210360639.5A CN202210360639A CN115562895A CN 115562895 A CN115562895 A CN 115562895A CN 202210360639 A CN202210360639 A CN 202210360639A CN 115562895 A CN115562895 A CN 115562895A Authority
CN
China
Prior art keywords
mcu
soc
user
fingerprint
time
Prior art date
2022-04-07
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210360639.5A
Other languages
Chinese (zh)
Other versions
CN115562895B (en
Inventor
李勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
2022-04-07
Filing date
2022-04-07
Publication date
2023-01-03
2022-04-07 Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
2022-04-07 Priority to CN202210360639.5A priority Critical patent/CN115562895B/en
2022-04-07 Priority to CN202311262445.2A priority patent/CN117453441A/en
2023-01-03 Publication of CN115562895A publication Critical patent/CN115562895A/en
2023-10-20 Application granted granted Critical
2023-10-20 Publication of CN115562895B publication Critical patent/CN115562895B/en
Status Active legal-status Critical Current
2042-04-07 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 59
  • 238000011084 recovery Methods 0.000 title claims abstract description 15
  • 230000002159 abnormal effect Effects 0.000 title description 13
  • 230000004044 response Effects 0.000 claims abstract description 45
  • 238000012545 processing Methods 0.000 claims abstract description 10
  • 230000005856 abnormality Effects 0.000 claims description 21
  • 238000012795 verification Methods 0.000 claims description 17
  • 230000008859 change Effects 0.000 claims description 14
  • 230000002618 waking effect Effects 0.000 claims description 3
  • 230000006870 function Effects 0.000 description 25
  • 238000010586 diagram Methods 0.000 description 10
  • 238000004891 communication Methods 0.000 description 8
  • 238000005516 engineering process Methods 0.000 description 8
  • 230000008569 process Effects 0.000 description 8
  • 230000009471 action Effects 0.000 description 4
  • 238000004590 computer program Methods 0.000 description 4
  • 230000000694 effects Effects 0.000 description 4
  • 230000007958 sleep Effects 0.000 description 4
  • 230000008878 coupling Effects 0.000 description 3
  • 238000010168 coupling process Methods 0.000 description 3
  • 238000005859 coupling reaction Methods 0.000 description 3
  • 238000013461 design Methods 0.000 description 3
  • 238000012544 monitoring process Methods 0.000 description 3
  • 230000002093 peripheral effect Effects 0.000 description 3
  • 239000004065 semiconductor Substances 0.000 description 3
  • 238000001514 detection method Methods 0.000 description 2
  • 230000006266 hibernation Effects 0.000 description 2
  • 230000003287 optical effect Effects 0.000 description 2
  • 238000004458 analytical method Methods 0.000 description 1
  • 230000006399 behavior Effects 0.000 description 1
  • 238000006243 chemical reaction Methods 0.000 description 1
  • 238000012790 confirmation Methods 0.000 description 1
  • 238000011161 development Methods 0.000 description 1
  • 230000018109 developmental process Effects 0.000 description 1
  • 238000000605 extraction Methods 0.000 description 1
  • 238000003709 image segmentation Methods 0.000 description 1
  • 238000004377 microelectronic Methods 0.000 description 1
  • 238000010606 normalization Methods 0.000 description 1
  • 238000007781 pre-processing Methods 0.000 description 1
  • 230000001960 triggered effect Effects 0.000 description 1
  • 239000002699 waste material Substances 0.000 description 1

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Image Input (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides an abnormity recovery method and equipment of electronic equipment, relates to the technical field of electronics, and can solve the problem that the electronic equipment cannot be logged in through fingerprint identification. The method is applied to electronic equipment comprising a fingerprint sensor, a microcontroller processing unit MCU, a system-on-chip (SoC) and an embedded controller EC, wherein the SoC and the MCU are connected through a USB (universal serial bus) line, and the method comprises the following steps: the fingerprint sensor responds to the pressing operation of a user, and sends a first interrupt instruction to the MCU and a second interrupt instruction to the EC; in response to the first interrupt instruction, the MCU acquires fingerprint information of the user from the fingerprint sensor; responding to a second interrupt instruction, and awakening the MCU by the EC; and in response to the MCU being awakened and the MCU recording the number of SOF (start of frame) packets which are received from the SoC and are recorded in a first time interval, the MCU sets the positive differential signal and the negative differential signal of the USB connection line to be low level and maintains the first time length, and the MCU sets the positive differential signal of the USB connection line to be high level.

Description

一种电子设备的异常恢复方法和设备Abnormal recovery method and device for electronic equipment

技术领域technical field

本申请涉及电子技术领域,尤其涉及一种电子设备的异常恢复方法和设备。The present application relates to the field of electronic technology, and in particular to a method and device for recovering abnormality of electronic equipment.

背景技术Background technique

随着移动终端技术的快速发展,采用指纹识别一键开机,越来越成为电脑开机的主流选择。利用指纹识别使用户无需输入密码就可以自动进入电脑的操作系统,不仅方便用户操作,还可以提高用户信息的安全性。With the rapid development of mobile terminal technology, one-button boot using fingerprint recognition has become more and more the mainstream choice for computer booting. The use of fingerprint recognition enables users to automatically enter the computer's operating system without entering a password, which not only facilitates user operations, but also improves the security of user information.

但是,在实际使用的过程中,有可能出现指纹识别失效的情况,即,用户的手指按压指纹式电源键后,仍需要验证密码才能进入电脑系统。这样,用户无法体验到指纹识别的便利性和安全性。同时,由于电脑内设置的指纹识别设备没有实现其功能,也会带来资源浪费。However, in the process of actual use, there may be situations where the fingerprint identification fails, that is, after the user's finger presses the fingerprint-type power button, it still needs to verify the password to enter the computer system. In this way, the user cannot experience the convenience and security of fingerprint identification. At the same time, because the fingerprint identification device installed in the computer does not realize its function, it will also cause waste of resources.

发明内容Contents of the invention

本申请实施例提供一种电子设备的异常恢复方法和设备,用于解决无法通过指纹识别登录电子设备的问题。Embodiments of the present application provide a method and device for recovering from an abnormality of an electronic device, which are used to solve the problem that the electronic device cannot be logged in through fingerprint identification.

第一方面,提供了一种电子设备的异常恢复方法,该方法包括:指纹传感器接收到用户的按压操作;响应于用户的按压操作,指纹传感器向MCU发送第一中断指令;响应于用户的按压操作,指纹传感器向EC发送第二中断指令;响应于第一中断指令,MCU从指纹传感器获取到用户的指纹信息;响应于第二中断指令,EC唤醒MCU;响应于MCU被唤醒,且MCU在第一时间间隔内记录的已经从SoC接收到的帧首包SOF包的数量不变,MCU将USB连线的正差分信号和负差分信号置为低电平并维持第一时长,其中,第一时间间隔是MCU被唤醒后的具有预设长度的时间间隔;MCU将USB连线的正差分信号置为高电平。In a first aspect, there is provided a method for recovering an abnormality of an electronic device, the method comprising: the fingerprint sensor receives a user's pressing operation; in response to the user's pressing operation, the fingerprint sensor sends a first interrupt instruction to the MCU; in response to the user's pressing operation, the fingerprint sensor sends a second interrupt command to the EC; in response to the first interrupt command, the MCU acquires the user’s fingerprint information from the fingerprint sensor; in response to the second interrupt command, the EC wakes up the MCU; in response to the MCU being woken up, and the MCU is The number of SOF packets that have been received from the SoC recorded in the first time interval remains unchanged, and the MCU sets the positive differential signal and negative differential signal of the USB connection to a low level and maintains the first duration, wherein, the first A time interval is a time interval with a preset length after the MCU wakes up; the MCU sets the positive differential signal of the USB connection to a high level.

其中,上述方法应用于电子设备,该电子设备包括指纹传感器,微控制器处理单元MCU,系统级芯片SoC,以及嵌入式控制器EC,SoC和MCU之间通过USB线连接。Wherein, the above-mentioned method is applied to an electronic device, and the electronic device includes a fingerprint sensor, a microcontroller processing unit MCU, a system-on-chip SoC, and an embedded controller EC, and the SoC and the MCU are connected through a USB cable.

也就是说,在用户试图通过指纹登录电子设备时,指纹传感器可以检测到用户的按压操作。然后向MCU发送第一中断指令,MCU响应于第一中断指令从指纹传感器中拿到用户的指纹信息。向EC发送第二中断指令,EC响应于第二中断指令唤醒MCU。MCU被唤醒后,MCU开始记录从SoC接收到的SOF包的数量。That is to say, when the user tries to log in the electronic device through the fingerprint, the fingerprint sensor can detect the pressing operation of the user. Then send a first interrupt command to the MCU, and the MCU obtains the user's fingerprint information from the fingerprint sensor in response to the first interrupt command. A second interrupt command is sent to the EC, and the EC wakes up the MCU in response to the second interrupt command. After the MCU is woken up, the MCU starts to record the number of SOF packets received from the SoC.

在SoC和MCU建立连接后,SoC会定时向MCU发送的SOF包。若MCU在第一时间间隔内接收到的SOF包的数量不变,说明MCU在第一时间间隔内没有从SoC接收到SOF包,即MCU与SoC未建立连接,则SoC不能从MCU获取用户的指纹信息,也无法验证用户的指纹信息。在此种情况下,MCU可以将USB连线的正差分信号和负差分信号先置为低电平并维持第一时长,然后将USB连线的正差分信号置为高电平,即可以通过模拟MCU拔插的动作,来触发SoC与MCU建立连接。这样,SoC可以从MCU获取用户的指纹信息,进而验证用户的指纹信息,在验证成功时,使用户登录电子设备。After the connection between the SoC and the MCU is established, the SoC will regularly send SOF packets to the MCU. If the number of SOF packets received by the MCU within the first time interval remains unchanged, it means that the MCU has not received SOF packets from the SoC within the first time interval, that is, the MCU has not established a connection with the SoC, and the SoC cannot obtain the user's ID from the MCU. fingerprint information, and cannot verify the user's fingerprint information. In this case, the MCU can first set the positive differential signal and the negative differential signal of the USB connection to low level and maintain it for the first time, and then set the positive differential signal of the USB connection to high level, that is, through Simulate the action of plugging and unplugging the MCU to trigger the establishment of a connection between the SoC and the MCU. In this way, the SoC can obtain the user's fingerprint information from the MCU, and then verify the user's fingerprint information, and enable the user to log in the electronic device when the verification is successful.

本申请方案中,在MCU被唤醒后通过检测一段时间内的接收到的SOF包的数量变化,能够确定SoC端的USB线是否出现了异常,并在SoC端的USB线发生异常的情况下,通过软件的方式重新实现USB连接线的软插拔,从而能够在异常情况下对电子设备进行异常恢复,进而使得用户后续能够正常登录电子设备。In the solution of this application, after the MCU is woken up, by detecting the change in the number of received SOF packets within a period of time, it can be determined whether the USB line at the SoC end is abnormal, and when the USB line at the SoC end is abnormal, through the software The method re-realizes the soft plugging and unplugging of the USB cable, so that the electronic device can be abnormally restored under abnormal circumstances, and then the user can log in to the electronic device normally in the future.

上述SoC端的USB线出现异常具体可以是指MCU在第一时间间隔内记录的已经从SoC接收到的SOF包的数量没有发生变化,这种情况下可以认为SoC没有发生枚举,这主要是由于SoC端的USB线出现了异常,需要控制SoC重新发起枚举。The abnormality of the above-mentioned USB cable at the SoC end can specifically mean that the number of SOF packets that the MCU has received from the SoC recorded within the first time interval has not changed. In this case, it can be considered that the SoC has not been enumerated, which is mainly due to The USB cable on the SoC end is abnormal, and the SoC needs to be controlled to re-initiate enumeration.

上述在异常情况下对电子设备进行异常恢复具体可以是控制SoC重新发起枚举,具体可以是指MCU将USB连线的正差分信号和负差分信号置为低电平并维持第一时长;MCU将USB连线的正差分信号置为高电平。The above-mentioned abnormal recovery of the electronic device under abnormal circumstances may specifically be to control the SoC to re-initiate enumeration. Specifically, it may mean that the MCU sets the positive differential signal and negative differential signal of the USB connection to low level and maintains the first duration; Assert the positive differential signal of the USB connection high.

在一种可能的实现方式中,第一时间间隔的起始时刻为T1时刻,第一时间间隔的结束时刻为T2时刻,响应于MCU被唤醒,且MCU在第一时间间隔内记录的已经接收到的帧首包的数量不变,MCU将USB连线的正差分信号和负差分信号置为低电平并维持第一时长,包括:响应于MCU被唤醒,且第一数量和第二数量相同,MCU将USB连线的正差分信号和负差分信号置为低电平并维持第一时长,其中,MCU在T1时刻记录的已经从SoC接收到的SOF包的数量为第一数量,MCU在T2时刻记录的已经从SoC接收到的SOF包的数量为第二数量。在确定T1时刻对应的第一数量与T2时刻对应的第二数量一致时,通过先拉低正差分信号和负差分信号一段时间,再拉高正差分信号的方式来触发SoC重新发起枚举,进而验证用户的指纹信息,以登陆笔记本电脑的桌面。In a possible implementation, the start time of the first time interval is time T1, and the end time of the first time interval is time T2. In response to the MCU being woken up, and the received information recorded by the MCU within the first time interval The number of received frame header packets remains unchanged, and the MCU sets the positive differential signal and negative differential signal of the USB connection to low level and maintains the first duration, including: in response to the MCU being woken up, and the first number and the second number Similarly, the MCU sets the positive differential signal and the negative differential signal of the USB connection to a low level and maintains the first duration, wherein the number of SOF packets that the MCU has received from the SoC recorded at T1 is the first number, and the MCU The number of SOF packets received from the SoC recorded at time T2 is the second number. When it is determined that the first quantity corresponding to the time T1 is consistent with the second quantity corresponding to the time T2, the SoC is triggered to re-initiate the enumeration by first pulling down the positive differential signal and the negative differential signal for a period of time, and then pulling the positive differential signal high. Then verify the user's fingerprint information to log in to the desktop of the laptop.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,响应于MCU被唤醒,MCU在T1时刻记录已经从SoC接收到的SOF包的数量为第一数量;响应于MCU被唤醒,MCU在T2时刻记录已经从SoC接收到的SOF包的数量为第二数量。In a possible implementation, the abnormality recovery method of the electronic device also includes, in response to the MCU being woken up, the MCU records the number of SOF packets received from the SoC at T1 as the first number; in response to the MCU being woken up , the MCU records the number of SOF packets received from the SoC as the second number at time T2.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,响应于MCU被唤醒,MCU设置定时器,定时器的定时起始时刻为T1时刻,定时器的定时时长为T2和T1之间的差值;响应于MCU被唤醒,MCU在T2时刻记录已经从SoC接收到的SOF包的数量为第二数量,包括:响应于MCU被唤醒,且达到定时器的定时时长,MCU在T2时刻记录已经从SoC接收到的SOF包的数量为第二数量。通过定时器设定定时起始时刻T1时刻和定时结束时刻T2时刻,在T1时刻和T2时刻到来时,分别获取用于表征SOF包数量的第一数量和第二数量,后续根据第一数量和第二数量判断SoC是否发起枚举。In a possible implementation, the abnormality recovery method of the electronic device further includes: in response to the MCU being woken up, the MCU sets a timer, the timing start time of the timer is time T1, and the timing duration of the timer is T2 and T1 The difference between; in response to the MCU being woken up, the MCU records the number of SOF packets received from the SoC as the second number at T2, including: in response to the MCU being woken up, and reaching the timing of the timer, the MCU is in Time T2 records the number of SOF packets received from the SoC as the second number. The timing start time T1 and the timing end time T2 are set by the timer. When the T1 time and the T2 time arrive, the first number and the second number used to characterize the number of SOF packets are obtained respectively, and the follow-up is based on the first number and the second number. The second quantity determines whether the SoC initiates enumeration.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,响应于用户的按压操作,指纹传感器采集用户的指纹信息。In a possible implementation manner, the abnormality recovery method of the electronic device further includes, in response to the user's pressing operation, the fingerprint sensor collects the user's fingerprint information.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,确定MCU在第二时间间隔内记录的已经从SoC接收到的SOF包的数量发生变化,第二时间间隔为第一时间间隔的下一个时间间隔;SoC从MCU获取用户的指纹信息,并根据用户的指纹信息验证用户的登录权限;响应于用户的登录权限验证成功,电子设备显示桌面。在通过先拉低正差分信号和负差分信号一段时间,再拉高正差分信号的方式来触发SoC重新枚举后,可以在第二时间间隔再次判断SoC是否发起枚举,当MCU在第二时间间隔内记录的已经从SoC接收到的SOF包的数量发生变化时,即认为SoC已发起枚举。接着SoC可以获取用户的指纹信息,并验证指纹信息,在指纹信息验证成功时,使用户登录笔记本电脑的桌面。In a possible implementation, the abnormality recovery method of the electronic device further includes determining that the number of SOF packets received from the SoC recorded by the MCU within a second time interval has changed, and the second time interval is the first time interval The next time interval of the interval; the SoC obtains the user's fingerprint information from the MCU, and verifies the user's login authority according to the user's fingerprint information; in response to the successful verification of the user's login authority, the electronic device displays the desktop. After triggering SoC re-enumeration by first pulling down the positive differential signal and negative differential signal for a period of time, and then pulling up the positive differential signal, you can judge whether the SoC initiates enumeration again at the second time interval. When the MCU is in the second The SoC is considered to have initiated enumeration when the recorded number of SOF packets received from the SoC changes within the time interval. Then the SoC can obtain the fingerprint information of the user, and verify the fingerprint information, and enable the user to log in the desktop of the notebook computer when the fingerprint information verification is successful.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,响应于MCU被唤醒,且MCU在第一时间间隔内记录的已经从SoC接收到的SOF包的数量发生变化;SoC从MCU获取用户的指纹信息,并根据用户的指纹信息验证用户的登录权限;响应于用户的登录权限验证成功,电子设备显示桌面。通过增加MCU判断SoC是否发起枚举这一步骤,可以在SoC发生异常时,第一时间进行处理,从而避免由于SoC异常,而导致的指纹识别失败的情况。In a possible implementation, the abnormality recovery method of the electronic device also includes, in response to the MCU being woken up, and the number of SOF packets that the MCU has recorded within the first time interval that has been received from the SoC changes; The MCU acquires the fingerprint information of the user, and verifies the user's login authority according to the user's fingerprint information; in response to the successful verification of the user's login authority, the electronic device displays a desktop. By adding the step of MCU judging whether SoC initiates enumeration, it can be processed at the first time when SoC is abnormal, so as to avoid the failure of fingerprint identification caused by SoC abnormality.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,在SoC从MCU获取用户的指纹信息之前,MCU对用户的指纹信息进行预处理,得到用户的指纹信息的指纹特征点,指纹特征点用于表征用户的身份信息;MCU对用户的指纹信息的指纹特征点进行加密,并存储加密后的用户的指纹信息的指纹特征点。这样,通过MCU对用户的指纹信息的指纹特征点进行加密,能够增强笔记本电脑对于用户信息的保护,同时提高用户信息的安全性。In a possible implementation, the abnormality recovery method of the electronic device further includes: before the SoC obtains the user's fingerprint information from the MCU, the MCU preprocesses the user's fingerprint information to obtain the fingerprint feature points of the user's fingerprint information, The fingerprint feature points are used to represent the identity information of the user; the MCU encrypts the fingerprint feature points of the user's fingerprint information, and stores the encrypted fingerprint feature points of the user's fingerprint information. In this way, by using the MCU to encrypt the fingerprint feature points of the user's fingerprint information, the protection of the user information by the notebook computer can be enhanced, and the security of the user information can be improved at the same time.

在一种可能的实现方式中,该电子设备的异常恢复方法还包括,响应于MCU被唤醒,且MCU在第一时间间隔内记录的已经从SoC接收到的帧首包SOF包的数量不变,清空存储第一数量和第二数量的存储空间。这样,当第一数量和第二数量没有作用时,及时删除第一数量和第二数量。以降低MCU的内存占用,提高MCU的数据处理效率。In a possible implementation, the abnormality recovery method of the electronic device further includes, in response to the MCU being woken up, and the number of SOF packets received from the SoC recorded by the MCU within the first time interval remains unchanged , clear the storage space for storing the first quantity and the second quantity. In this way, when the first quantity and the second quantity have no effect, the first quantity and the second quantity are deleted in time. In order to reduce the memory occupation of the MCU and improve the data processing efficiency of the MCU.

在一种可能的实现方式中,SoC从MCU获取用户的指纹信息,包括:SoC向MCU发送获取用户的指纹信息的请求;MCU响应于获取用户的指纹信息的请求,向SoC发送用户的指纹信息。In a possible implementation, the SoC obtains the user's fingerprint information from the MCU, including: the SoC sends a request to the MCU for obtaining the user's fingerprint information; the MCU sends the user's fingerprint information to the SoC in response to the request for obtaining the user's fingerprint information .

在一种可能的实现方式中,响应于第二中断指令,EC唤醒MCU,包括:EC响应于第二中断指令,拉高EC和MCU之间的EC_STATUS线,触发MCU被唤醒。提供一种EC通过EC_STATUS线唤醒MCU的方式。In a possible implementation manner, the EC waking up the MCU in response to the second interrupt command includes: the EC pulls up the EC_STATUS line between the EC and the MCU in response to the second interrupt command, triggering the MCU to be woken up. Provides a way for the EC to wake up the MCU through the EC_STATUS line.

第二方面,提供了一种电子设备,该电子设备具有实现上述第一方面的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an electronic device is provided, and the electronic device has a function of implementing the method in the first aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

第三方面,提供了一种电子设备,包括:处理器和存储器;该存储器用于存储计算机执行指令,当该电子设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使该电子设备执行如上述第一方面中任一项的电子设备的异常恢复方法。In a third aspect, an electronic device is provided, including: a processor and a memory; the memory is used to store computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory, so that the The electronic device executes the abnormality recovery method of the electronic device according to any one of the first aspect above.

第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项的电子设备的异常恢复方法。In the fourth aspect, there is provided a computer-readable storage medium, the computer-readable storage medium stores instructions, and when it is run on a computer, the computer can execute the abnormality of the electronic device in any one of the above-mentioned first aspects. recovery method.

第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项的电子设备的异常恢复方法。In a fifth aspect, a computer program product containing instructions is provided, and when it is run on a computer, the computer can execute the method for recovering from an abnormality of an electronic device according to any one of the above first aspects.

第六方面,提供了一种装置(例如,该装置可以是芯片系统),该装置包括处理器,用于支持第一设备实现上述第一方面中所涉及的功能。在一种可能的设计中,该装置还包括存储器,该存储器,用于保存第一设备必要的程序指令和数据。该装置是芯片系统时,可以由芯片构成,也可以包含芯片和其他分立器件。In a sixth aspect, an apparatus (for example, the apparatus may be a system on chip) is provided, and the apparatus includes a processor configured to support the first device to implement the functions involved in the above first aspect. In a possible design, the device further includes a memory, and the memory is used for storing necessary program instructions and data of the first device. When the device is a system-on-a-chip, it may consist of chips, or may include chips and other discrete devices.

其中,第二方面至第六方面中任一种设计方式所带来的技术效果可参见第一方面中不同设计方式所带来的技术效果,此处不再赘述。Wherein, the technical effect brought by any one of the design methods in the second aspect to the sixth aspect can refer to the technical effect brought by different design methods in the first aspect, which will not be repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种笔记本电脑的示意图;Fig. 1 is the schematic diagram of a kind of notebook computer that the embodiment of the present application provides;

图2为本申请实施例提供的一种设备管理器的显示界面图;FIG. 2 is a display interface diagram of a device manager provided by an embodiment of the present application;

图3为本申请实施例提供的一种波形变化图一;FIG. 3 is a waveform change diagram 1 provided by the embodiment of the present application;

图4为本申请实施例提供的一种波形变化图二;Fig. 4 is a waveform change diagram 2 provided by the embodiment of the present application;

图5为本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 5 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;

图6为本申请实施例提供的一种电子设备的异常恢复方法的流程示意图;FIG. 6 is a schematic flowchart of a method for recovering from an abnormality of an electronic device provided in an embodiment of the present application;

图7为本申请实施例提供的一种笔记本电脑的显示示意图一;FIG. 7 is a first display schematic diagram of a notebook computer provided by an embodiment of the present application;

图8为本申请实施例提供的一种笔记本电脑的显示示意图二;FIG. 8 is a second display schematic diagram of a notebook computer provided in the embodiment of the present application;

图9为本申请实施例提供的一种芯片系统的结构示意图。FIG. 9 is a schematic structural diagram of a chip system provided by an embodiment of the present application.

具体实施方式detailed description

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“至少一个”是指一个或多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the present application, unless otherwise specified, "at least one" refers to one or more, and "multiple" refers to two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.

为了下述各实施例的描述清楚简洁,首先给出相关概念或技术的简要介绍:In order to make the description of the following embodiments clear and concise, a brief introduction of related concepts or technologies is given first:

1、系统级芯片(System on Chip,SoC):又称片上系统,SoC是由信息系统的核心芯片集成的,具体是将信息系统的关键部件(例如,微处理器、模拟IP核、数字IP核和存储器(或片外存储控制接口))集成在一块芯片上。1. System on Chip (SoC): also known as system on chip, SoC is integrated by the core chip of the information system, specifically the key components of the information system (for example, microprocessor, analog IP core, digital IP Core and memory (or off-chip memory control interface)) are integrated on one chip.

2、微控制单元(Microcontroller Unit,MCU):又称单片微型计算机(Single ChipMicrocomputer)或者单片机,MCU是通过适当缩减中央处理器(Central Processing Unit,CPU)的频率与规格,并将内存、计数器、通用串行总线(Universal Serial Bus,USB)、A/D转换、通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)、可编程逻辑控制器(Programmable Logic Controller,PLC)、直接存储器访问(Direct MemoryAccess,DMA)等周边接口,甚至LCD驱动电路整合在单一芯片上,形成的芯片级计算机。2. Microcontroller Unit (MCU): also known as Single Chip Microcomputer (Single Chip Microcomputer) or single-chip microcomputer, MCU is to reduce the frequency and specifications of the Central Processing Unit (Central Processing Unit, CPU) appropriately, and integrate the memory and counter , Universal Serial Bus (Universal Serial Bus, USB), A/D conversion, Universal Asynchronous Receiver/Transmitter (UART), Programmable Logic Controller (Programmable Logic Controller, PLC), direct memory access ( Peripheral interfaces such as Direct Memory Access (DMA), and even LCD driver circuits are integrated on a single chip to form a chip-level computer.

3、嵌入式控制器(Embedded Controller,EC):用于执行指定控制功能,并具有复杂数据处理能力。EC可以通过微电子技术芯片来控制的电子设备或装置,使该电子设备或装置执行相关控制指令。3. Embedded Controller (Embedded Controller, EC): It is used to perform specified control functions and has complex data processing capabilities. EC is an electronic device or device that can be controlled by a microelectronic technology chip, so that the electronic device or device executes relevant control instructions.

4、寄存器:是有限容量的高速存贮部件,可以用来暂存指令、数据和地址等。4. Register: It is a high-speed storage unit with limited capacity, which can be used to temporarily store instructions, data and addresses.

随着移动终端引入指纹特征识别技术,指纹认证逐渐代替了传统的密码认证、手势动作认证等,使得用户认证不再需要其他操作,只需要手指与电源按键接触即可。这样,在保证电子终端安全的同时,极大地增加了移动终端使用的便利性。这也使得指纹特征识别功能成为电子终端甚至是传统电子产品的标配。With the introduction of fingerprint feature recognition technology into mobile terminals, fingerprint authentication has gradually replaced traditional password authentication, gesture authentication, etc., so that user authentication no longer requires other operations, and only requires finger contact with the power button. In this way, while ensuring the safety of the electronic terminal, the convenience of using the mobile terminal is greatly increased. This also makes the fingerprint feature recognition function a standard configuration of electronic terminals and even traditional electronic products.

以将上述指纹特征识别技术应用到笔记本电脑上为例,图1示例性的示出了一种笔记本电脑100。该笔记本电脑100可以包括电源按键101和指纹传感器102。其中,指纹传感器102和电源按键101集成于一体形成指纹式电源键。例如,指纹传感器102可粘贴或印制在电源按键101的表面。该表面可在用户按压电源按键101时接触到用户手指。这样,可实现在用户按压指纹式电源键的同时,指纹传感器102可采集到用户的指纹。Taking the above-mentioned fingerprint feature recognition technology applied to a notebook computer as an example, FIG. 1 exemplarily shows a notebook computer 100 . The notebook computer 100 may include a power button 101 and a fingerprint sensor 102 . Wherein, the fingerprint sensor 102 and the power button 101 are integrated to form a fingerprint type power button. For example, the fingerprint sensor 102 can be pasted or printed on the surface of the power button 101 . This surface can be in contact with the user's finger when the user presses the power button 101 . In this way, the fingerprint sensor 102 can collect the user's fingerprint when the user presses the fingerprint-type power key.

示例性的,指纹传感器102可以为光学指纹传感器、超声波指纹传感器、半导体电容传感器、半导体热敏传感器、半导体压感传感器和射频RF传感器等,本申请对此不作限制。Exemplarily, the fingerprint sensor 102 may be an optical fingerprint sensor, an ultrasonic fingerprint sensor, a semiconductor capacitive sensor, a semiconductor thermal sensor, a semiconductor pressure sensor, a radio frequency RF sensor, etc., which is not limited in this application.

用户首次使用笔记本电脑100时,可以通过指纹注册过程在笔记本电脑100上注册指纹。成功注册后,笔记本电脑100将注册的用户指纹保存为标准用户指纹。在后续开机启动过程中,用户可以在指纹式电源键上,通过滑动或按压注册过的手指,实现解锁或登录,从而完成笔记本电脑的开机全过程。When a user uses the notebook computer 100 for the first time, a fingerprint can be registered on the notebook computer 100 through a fingerprint registration process. After successful registration, the notebook computer 100 saves the registered user fingerprint as a standard user fingerprint. In the subsequent booting process, the user can unlock or log in by sliding or pressing the registered finger on the fingerprint power button, thereby completing the entire booting process of the notebook computer.

在用户使用指纹技术登录操作系统的场景中,如图1所示,当用户手指按压笔记本电脑100的电源按键101时,该用户手指也会接触到集成于电源按键101上的指纹传感器102。在验证指纹的过程中,可能出现指纹识别功能异常的情况。若指纹识别功能异常,用户可以通过输入密码进入笔记本电脑的操作系统。在进入笔记本电脑的操作系统后,可以通过查看操作系统的设备管理器功能,来确定指纹识别功能异常的原因。In the scenario where a user uses fingerprint technology to log in to the operating system, as shown in FIG. 1 , when the user presses the power button 101 of the notebook computer 100 with his finger, the user's finger will also touch the fingerprint sensor 102 integrated on the power button 101 . In the process of verifying fingerprints, the fingerprint recognition function may be abnormal. If the fingerprint recognition function is abnormal, the user can enter the operating system of the notebook computer by entering a password. After entering the operating system of the notebook computer, you can check the device manager function of the operating system to determine the cause of the abnormal fingerprint recognition function.

图2中的(a)示出了一种设备管理器的显示界面。该设备管理器的显示界面显示生物识别设备(即指纹USB设备)出现警告标记201。响应于用户对警告标记201的点击操作,笔记本电脑可以显示如图2中的(b)所示的界面202。界面202中显示了指纹USB设备的设备状态203。设备状态203用于指示指纹USB设备功能异常是由于Windows无法加载指纹识别设备所需的驱动程序,导致这个指纹识别设备工作异常。(a) in FIG. 2 shows a display interface of a device manager. The display interface of the device manager displays a warning mark 201 on the biometric device (ie, the fingerprint USB device). In response to the user's click operation on the warning mark 201, the notebook computer can display an interface 202 as shown in (b) in FIG. 2 . The device status 203 of the fingerprint USB device is displayed on the interface 202 . The device status 203 is used to indicate that the function of the fingerprint USB device is abnormal because Windows cannot load the driver required by the fingerprint recognition device, which causes the fingerprint recognition device to work abnormally.

根据设备状态203指示的内容,初步预测指纹识别功能异常是因为SoC端的USB功能异常导致的。为了验证这一原因,利用示波器对连接SoC和MCU的USB总线上的波形变化进行采集,采集到如图3所示的波形变化图。通过观察图3可知,在0~t1时刻,由于MCU还未被唤醒,正差分信号D+和负差分信号D-显示无信号输入,即正差分信号D+和负差分信号D-都是低电平。在t1时刻之后,MCU被唤醒,图3的正差分信号D+和负差分信号D-仍显示无信号输入,只有正差分信号D+显示高电平,负差分信号D-仍是低电平。According to the content indicated by the device status 203, it is preliminarily predicted that the abnormality of the fingerprint identification function is caused by the abnormality of the USB function on the SoC side. In order to verify this reason, use an oscilloscope to collect the waveform changes on the USB bus connecting SoC and MCU, and collect the waveform changes shown in Figure 3. By observing Figure 3, it can be seen that at time 0 to t1, since the MCU has not been awakened, the positive differential signal D+ and negative differential signal D- show no signal input, that is, the positive differential signal D+ and negative differential signal D- are both low level . After time t1, the MCU is woken up, and the positive differential signal D+ and negative differential signal D- in Figure 3 still show no signal input, only the positive differential signal D+ shows high level, and the negative differential signal D- is still low level.

图4示例性的示出了正常情况下,USB总线采集到的波形变化图。通过观察图4可知,在0~t1时刻,由于MCU还未被唤醒,正差分信号D+和负差分信号D-显示无信号输入,即正差分信号D+和负差分信号D-都是低电平。在t1时刻之后,MCU被唤醒,图4的正差分信号D+和负差分信号D-显示波形变化,即在t1时刻之后,USB总线上存在信号输入。当USB总线上存在信号输入时,正差分信号D+和负差分信号D-可以在高电平和低电平之间来回切换,正差分信号D+和负差分信号D-在高电平和低电平进行切换的方式可以有多种,正差分信号D+和负差分信号D-可以同步变化也可以不同步变化。例如,正差分信号D+和负差分信号D-同时置为高电平同时置为低电平,或者正差分信号D+先置为高电平,负差分信号D-后置为高电平等等。具体的切换方式本申请对此不作限制。示例性的,正差分信号D+和负差分信号D-的波形切换方式以图4中矩形波的形式示例性示出,即正差分信号D+先置为高电平,然后再置为低电平,周期性往复。负差分信号D-在正差分信号D+之后一段时间,也先置为高电平,然后再置为低电平,周期性往复。将图3和图4对比可知,在用户按压电源按键的这一段时间内,SoC和MCU的USB总线上没有信号输入。FIG. 4 exemplarily shows a waveform change graph collected by the USB bus under normal conditions. By observing Figure 4, it can be known that at time 0~t1, since the MCU has not been awakened, the positive differential signal D+ and negative differential signal D- show no signal input, that is, the positive differential signal D+ and negative differential signal D- are both low level . After time t1, the MCU is woken up, and the positive differential signal D+ and negative differential signal D- in Figure 4 show waveform changes, that is, after time t1, there is signal input on the USB bus. When there is a signal input on the USB bus, the positive differential signal D+ and the negative differential signal D- can switch back and forth between high level and low level, and the positive differential signal D+ and negative differential signal D- can be switched between high level and low level. There are many ways of switching, and the positive differential signal D+ and the negative differential signal D− can change synchronously or asynchronously. For example, the positive differential signal D+ and the negative differential signal D- are set to high level and low level at the same time, or the positive differential signal D+ is set to high level first, and the negative differential signal D- is set to high level later, and so on. The specific switching manner is not limited in this application. Exemplarily, the waveform switching mode of the positive differential signal D+ and the negative differential signal D- is exemplarily shown in the form of a rectangular wave in Figure 4, that is, the positive differential signal D+ is first set to a high level, and then set to a low level , reciprocating periodically. The negative differential signal D- is also set to a high level for a period of time after the positive differential signal D+, and then set to a low level, periodically reciprocating. Comparing Figure 3 and Figure 4, it can be seen that during the period when the user presses the power button, there is no signal input on the USB bus of the SoC and MCU.

基于上述设备状态203指示的内容和USB总线的波形变化图,对实现指纹识别功能所涉及到的设备进行定位分析。通过定位分析可知,由于设备型号不同,设备在实际运行过程中,存在SoC还未处于监测状态,MCU已完成拔插动作的情况,即,MCU的拔插动作在SoC开始监测之前已执行。Based on the content indicated by the above-mentioned device state 203 and the waveform change diagram of the USB bus, the device involved in realizing the fingerprint identification function is located and analyzed. Through the positioning analysis, it can be seen that due to different device models, during the actual operation of the device, the SoC has not been in the monitoring state, and the MCU has completed the unplugging action, that is, the MCU unplugging action has been executed before the SoC starts monitoring.

根据USB协议可知,SoC只有在监测到MCU的拔插动作后,才会发起枚举。因此,SoC无法监测到MCU的拔插操作,也不会发起枚举,从而不能与MCU建立USB连接。那么USB总线将不能为SoC传输来自于MCU的用户指纹,最终指纹一键开机功能失效。According to the USB protocol, the SoC will only initiate enumeration after monitoring the MCU's plugging and unplugging action. Therefore, the SoC cannot monitor the plugging and unplugging operation of the MCU, and will not initiate enumeration, so that it cannot establish a USB connection with the MCU. Then the USB bus will not be able to transmit the user fingerprint from the MCU to the SoC, and eventually the fingerprint one-key power-on function will fail.

为了实现指纹一键开机,快捷登录操作系统,本申请实施例提供一种电子设备的异常恢复方法,该方法可以解决SoC不能发起枚举的问题,在关机状态下,仍能实现一键开机。In order to realize one-key fingerprint booting and fast login to the operating system, the embodiment of the present application provides an abnormal recovery method for electronic equipment, which can solve the problem that the SoC cannot initiate enumeration, and can still realize one-key booting in the shutdown state.

如图5所示,为本申请实施例提供的一种电子设备的硬件架构示意图。该硬件架构可以实施于笔记本电脑上。笔记本电脑的硬件架构可以包括:SoC 501、EC 502和指纹识别模组503。其中,指纹识别模组503包括MCU 504和指纹传感器505。As shown in FIG. 5 , it is a schematic diagram of a hardware architecture of an electronic device provided in an embodiment of the present application. The hardware architecture can be implemented on a notebook computer. The hardware architecture of the notebook computer may include: SoC 501 , EC 502 and fingerprint identification module 503 . Wherein, the fingerprint recognition module 503 includes an MCU 504 and a fingerprint sensor 505 .

当用户按压笔记本电脑100的指纹式电源键时,由于EC 502与电源电路相连,EC502首先上电被唤醒。接着按照笔记本电脑100开机上电时序,SoC 501、MCU 504和指纹传感器505也开始上电运行。When the user presses the fingerprint power button of the notebook computer 100, since the EC502 is connected to the power circuit, the EC502 is first powered on and woken up. Then, according to the power-on sequence of the notebook computer 100 , the SoC 501 , the MCU 504 and the fingerprint sensor 505 also start to power on and run.

指纹传感器505连接EC 502,EC 502可以连接到指纹传感器505的INT引脚上。例如,指纹传感器505上电运行后,若指纹传感器505监测到用户手指按压电源按键的操作时,指纹传感器505通过INT引脚向EC 502发送中断指令。该中断指令用于通知EC 502已监测到用户手指按压电源按键的操作,并已收集到用户的用户指纹。The fingerprint sensor 505 is connected to the EC 502 , and the EC 502 may be connected to the INT pin of the fingerprint sensor 505 . For example, after the fingerprint sensor 505 is powered on, if the fingerprint sensor 505 detects that the user's finger presses the power button, the fingerprint sensor 505 sends an interrupt command to the EC 502 through the INT pin. The interrupt command is used to notify EC 502 that the operation of pressing the power button by the user's finger has been detected, and the user's fingerprint has been collected.

指纹传感器505连接MCU 504。MCU 504可以连接到指纹传感器505的INT引脚上。例如,在指纹传感器505监测到用户手指的按压电源按键的操作时,指纹传感器505还会通过INT引脚向MCU 504发送中断指令。该中断指令用于通知MCU 504已监测到用户手指按压电源按键的操作,并已采集用户的用户指纹。The fingerprint sensor 505 is connected to the MCU 504 . The MCU 504 can be connected to the INT pin of the fingerprint sensor 505 . For example, when the fingerprint sensor 505 detects that the user's finger presses the power button, the fingerprint sensor 505 will also send an interrupt command to the MCU 504 through the INT pin. The interrupt command is used to notify the MCU 504 that the operation of pressing the power button by the user's finger has been detected and the user's fingerprint has been collected.

EC 502连接MCU 504。EC 502可以与MCU 504通过EC_STATUS线连接。例如,EC 502接收到来自指纹传感器的中断指令后,EC将拉高EC_STATUS线。在MCU 504检测到EC 502_STATUS线被拉高,即,EC_STATUS=1时,MCU 504从休眠状态切换为正常运行状态。EC 502 is connected to MCU 504 . The EC 502 can be connected with the MCU 504 through the EC_STATUS line. For example, after the EC 502 receives an interrupt command from the fingerprint sensor, the EC will pull the EC_STATUS line high. When the MCU 504 detects that the EC 502_STATUS line is pulled high, ie, EC_STATUS=1, the MCU 504 switches from the sleep state to the normal operation state.

MCU 504还可以与指纹传感器505通过串行外设接口(serial peripheralinterface,SPI)接口进行通信。例如,在MCU 504从休眠状态切换为正常运行状态后,MCU504可以响应于指纹传感器505发送的中断指令,向指纹传感器505发送指纹获取请求。指纹传感器505响应于指纹获取请求向MCU 504发送采集到的用户指纹。MCU 504对来自指纹传感器505的用户指纹进行加密,并将加密后的用户指纹存储在MCU 504的存储器中。The MCU 504 can also communicate with the fingerprint sensor 505 through a serial peripheral interface (serial peripheral interface, SPI) interface. For example, after the MCU 504 switches from the dormant state to the normal running state, the MCU 504 may send a fingerprint acquisition request to the fingerprint sensor 505 in response to an interrupt command sent by the fingerprint sensor 505 . The fingerprint sensor 505 sends the collected user fingerprint to the MCU 504 in response to the fingerprint acquisition request. The MCU 504 encrypts the user fingerprint from the fingerprint sensor 505 and stores the encrypted user fingerprint in the memory of the MCU 504 .

MCU 504连接SoC 501。SoC 501可以与MCU 504通过USB进行通信。例如,SoC 501向MCU 504发送指纹录入指令或指纹验证指令,若此时MCU 504存储有用户指纹,MCU 504可以响应于指纹录入指令或指纹验证指令,向SoC 501发送缓存在MCU 504的存储器中的用户指纹。SoC 501可以根据来自MCU 504的用户指纹进行用户身份验证。如果来自MCU504的用户指纹与预先录入并存储在笔记本电脑100中的标准用户指纹一致,则验证通过;否则,验证未通过。在验证成功后,可直接进入笔记本电脑100的操作系统。其中,标准用户指纹是指提前录入并存储在笔记本电脑100中的用户指纹,相当于用户提前设置的用来登录操作系统的密码。The MCU 504 is connected to the SoC 501 . SoC 501 can communicate with MCU 504 via USB. For example, SoC 501 sends fingerprint entry instruction or fingerprint verification instruction to MCU 504, if MCU 504 stores user fingerprint at this time, MCU 504 can respond to fingerprint entry instruction or fingerprint verification instruction, send to SoC 501 buffered in the memory of MCU 504 user fingerprint. SoC 501 can perform user authentication based on user fingerprint from MCU 504 . If the user fingerprint from the MCU 504 is consistent with the standard user fingerprint entered in advance and stored in the notebook computer 100, the verification is passed; otherwise, the verification is not passed. After successful authentication, the operating system of the notebook computer 100 can be directly entered. Wherein, the standard user fingerprint refers to the user fingerprint entered and stored in the notebook computer 100 in advance, which is equivalent to the password set in advance by the user for logging in to the operating system.

在一些实施例中,SoC 501连接EC 502。SoC 501可以与EC 502通过高级配置和电源管理接口(Advanced Configuration and Power Management Interface,ACPI)进行通信。例如,在笔记本电脑100触发关机状态或休眠状态时,SoC 501可以通过ACPI向EC 502的存储器中写入笔记本电脑100的状态数据。具体的,SoC 501向EC 502存储器的0x00083800地址写入笔记本电脑100的状态数据。In some embodiments, SoC 501 is connected to EC 502 . The SoC 501 can communicate with the EC 502 through an advanced configuration and power management interface (Advanced Configuration and Power Management Interface, ACPI). For example, when the notebook computer 100 triggers a shutdown state or a hibernation state, the SoC 501 can write the state data of the notebook computer 100 to the memory of the EC 502 through ACPI. Specifically, the SoC 501 writes the state data of the notebook computer 100 to the address 0x00083800 of the memory of the EC 502 .

其中,笔记本电脑100包括以下几种运行状态:Wherein, the notebook computer 100 includes the following running states:

(1)工作状态(标记为S0):笔记本电脑100正常工作,所有硬件设备全部处于上电状态。(1) Working state (marked as S0 ): the notebook computer 100 is working normally, and all hardware devices are in the power-on state.

(2)休眠状态(标记为S3):当前处于运行状态的数据保存在硬盘中,整机将完全停止供电。在休眠时可以完全断开笔记本电脑100的电源,自动关闭显示器和硬盘。(2) Dormant state (marked as S3): The data currently in the running state is stored in the hard disk, and the whole machine will completely stop power supply. During hibernation, the power supply of the notebook computer 100 can be completely disconnected, and the display and the hard disk can be automatically turned off.

(3)关机状态(标记为S5):又称为软关机(soft off)。笔记本电脑100的大部分硬件设备断电,但有些部件仍然带电,使笔记本电脑100仍然可以被键盘、时钟、modem(电话唤醒)、局域网(local area network,LAN)模块以及USB设备唤醒。(3) Shutdown state (marked as S5): also known as soft shutdown (soft off). Most of the hardware devices of the notebook computer 100 are powered off, but some components are still charged, so that the notebook computer 100 can still be woken up by the keyboard, clock, modem (wake up by phone), local area network (local area network, LAN) module and USB device.

示例性的,向EC 502的存储器写入的笔记本电脑100状态对应的代码如下:Exemplarily, the code corresponding to the state of the notebook computer 100 written into the memory of the EC 502 is as follows:

#define SYSTEM_S0 0x10//从其它模式切到工作模式#define SYSTEM_S0 0x10//Switch to working mode from other modes

#define SYSTEM_S3 0x33//从工作模式切到休眠模式#define SYSTEM_S3 0x33//Switch from working mode to sleep mode

#define SYSTEM_S5 0x55//从工作模式切到关机模式#define SYSTEM_S5 0x55//Switch from working mode to shutdown mode

当EC 502检测到SoC 501的状态切换为休眠状态时,EC 502将拉低EC_STATUS线。在MCU 504检测到EC_STATUS线被拉低,即,EC_STATUS=0时,MCU 504从正常运行状态切换为休眠状态(即,低功耗状态)。When the EC 502 detects that the state of the SoC 501 is switched to the sleep state, the EC 502 will pull the EC_STATUS line low. When the MCU 504 detects that the EC_STATUS line is pulled low, ie, EC_STATUS=0, the MCU 504 switches from a normal operation state to a sleep state (ie, a low power consumption state).

在另一些实施例中,MCU 504还可以连接到SoC 501的RST引脚上,指纹传感器505还可以连接到MCU 504的RST引脚上。例如,当笔记本电脑从关机状态切换到开机状态时,SoC 501通过RST引脚向MCU 504发送复位指令。MCU 504在接收到复位指令后,使MCU504重新启动。同时,MCU 504还可以通过RST引脚向指纹传感器505发送复位指令。指纹传感器505在接收到复位指令后,使指纹传感器505重新启动。In other embodiments, the MCU 504 can also be connected to the RST pin of the SoC 501 , and the fingerprint sensor 505 can also be connected to the RST pin of the MCU 504 . For example, when the notebook computer switches from the power-off state to the power-on state, the SoC 501 sends a reset command to the MCU 504 through the RST pin. After receiving the reset command, MCU 504 restarts MCU 504 . At the same time, the MCU 504 can also send a reset command to the fingerprint sensor 505 through the RST pin. After the fingerprint sensor 505 receives the reset command, the fingerprint sensor 505 is restarted.

基于上述应用于笔记本电脑的硬件架构,本申请提供一种如图6所示的电子设备的异常恢复方法。该方法应用于如图5所示的电子设备中,该方法包括:Based on the above-mentioned hardware architecture applied to a notebook computer, the present application provides a method for recovering from an abnormality of an electronic device as shown in FIG. 6 . The method is applied to the electronic equipment shown in Figure 5, and the method includes:

S601、响应于用户的按压操作,指纹传感器采集用户的指纹信息。S601. In response to a user's pressing operation, the fingerprint sensor collects fingerprint information of the user.

结合图1和图5,在用户试图开启笔记本电脑100时,用户的手指会接触到电源按键101。当用户的手指接触电源按键101时,与电源按键101集成一体的指纹传感器102不仅可以检测到用户的按压操作,还可以采集用户的指纹信息。Referring to FIG. 1 and FIG. 5 , when the user tries to turn on the notebook computer 100 , the user's finger will touch the power button 101 . When the user's finger touches the power button 101 , the fingerprint sensor 102 integrated with the power button 101 can not only detect the user's pressing operation, but also collect the user's fingerprint information.

若笔记本电脑100处于关机状态,在用户试图开启笔记本电脑100时,用户的手指会按压电源按键101。电源按键101与EC 502相连,在电源按键101被按下后,电路所产生高电平脉冲信号可以唤醒EC 502,使EC 502处于运行状态。然后,笔记本电脑100中的各个硬件设备(如基本输入输出系统(Basic Input Output System,BIOS)、MCU 504、指纹传感器505、SoC 501、显示屏等)可按照上电时序进行上电。在SoC 501上电启动后会运行操作系统,并加载指纹传感器驱动。然后,操作系统会请求指纹传感器驱动控制指纹传感器505采集用户的指纹信息。若笔记本电脑100处于休眠状态,指纹传感器505还是同样基于上电时序被唤醒,从而进行用户的指纹信息采集。If the notebook computer 100 is turned off, when the user tries to turn on the notebook computer 100 , the user's finger will press the power button 101 . The power button 101 is connected to the EC 502. After the power button 101 is pressed, the high level pulse signal generated by the circuit can wake up the EC 502 and make the EC 502 in a running state. Then, various hardware devices in the notebook computer 100 (eg, Basic Input Output System (BIOS), MCU 504 , fingerprint sensor 505 , SoC 501 , display screen, etc.) can be powered on according to the power-on sequence. After the SoC 501 is powered on, it will run the operating system and load the fingerprint sensor driver. Then, the operating system will request the fingerprint sensor driver to control the fingerprint sensor 505 to collect the user's fingerprint information. If the notebook computer 100 is in a dormant state, the fingerprint sensor 505 is also awakened based on the power-on sequence, so as to collect the user's fingerprint information.

如果用户手指按压电源按键101的时间过短,则可能存在指纹传感器505还未使能,用户手指已离开指纹传感器505。这样,指纹传感器505将不能采集到用户指纹,从而无法登录操作系统。此时,笔记本电脑100可显示如图7所示的验证界面704,该验证界面704包括用户账户图标701、用户密码输入框702和提示框703,以供用户输入用户密码或者等待用户再次触摸指纹传感器输入指纹。其中,提示框703中显示“提示:请选择输入密码进入操作系统或再次按压电源按键,以通过验证指纹进入操作系统。”的提示字符。If the user's finger presses the power button 101 for too short a time, it may be that the fingerprint sensor 505 has not been enabled, and the user's finger has left the fingerprint sensor 505 . In this way, the fingerprint sensor 505 will not be able to collect the user's fingerprint, thereby failing to log into the operating system. At this time, the notebook computer 100 can display a verification interface 704 as shown in FIG. The sensor inputs the fingerprint. Among them, the prompt box 703 displays "Prompt: Please choose to enter the password to enter the operating system or press the power button again to enter the operating system through fingerprint verification." prompt characters.

如果用户密码或者用户再次触摸指纹传感器输入用户指纹验证成功后,笔记本电脑可显示如图8所示的内容显示界面801。If the user's password or the user touches the fingerprint sensor again to input the user's fingerprint for verification, the notebook computer may display a content display interface 801 as shown in FIG. 8 .

S602A、指纹传感器向MCU发送第一中断指令。S602A. The fingerprint sensor sends a first interrupt instruction to the MCU.

S602B、指纹传感器向EC发送第二中断指令。S602B. The fingerprint sensor sends a second interruption instruction to the EC.

指纹传感器在接收到用户的按压操作后,指纹传感器会采集用户指纹。在采集完用户指纹后,指纹传感器向MCU发送第一中断指令,向EC发送第二中断指令。其中,MCU和EC均连接在指纹传感器的INT引脚上。第一中断指令和第二中断指令用于通知MCU和EC,当前时刻有用户试图开启笔记本电脑。After the fingerprint sensor receives the user's pressing operation, the fingerprint sensor will collect the user's fingerprint. After collecting the user's fingerprint, the fingerprint sensor sends a first interrupt command to the MCU, and sends a second interrupt command to the EC. Among them, both MCU and EC are connected to the INT pin of the fingerprint sensor. The first interrupt command and the second interrupt command are used to notify the MCU and the EC that a user tries to turn on the notebook computer at the current moment.

S603、EC响应于第二中断指令,唤醒MCU。S603. The EC wakes up the MCU in response to the second interrupt command.

当EC接收到第二中断指令后,EC会拉高EC和MCU之间的EC_STATUS线。EC_STATUS线被拉高后,MCU可以检测到EC_STATUS线的变化状态。并根据EC_STATUS线的变化状态,MCU从低功耗状态调整为运行状态。When the EC receives the second interrupt command, the EC will pull up the EC_STATUS line between the EC and the MCU. After the EC_STATUS line is pulled high, the MCU can detect the changing state of the EC_STATUS line. And according to the changing state of the EC_STATUS line, the MCU is adjusted from the low power consumption state to the running state.

S604、MCU响应于第一中断指令,从指纹传感器获取用户的指纹信息。S604. The MCU acquires the fingerprint information of the user from the fingerprint sensor in response to the first interrupt command.

在MCU被唤醒后,MCU可以响应于指纹传感器发送的第一中断指令,通过SPI接口从指纹传感器获取用户的指纹信息。After the MCU is woken up, the MCU may respond to the first interrupt command sent by the fingerprint sensor, and obtain the user's fingerprint information from the fingerprint sensor through the SPI interface.

S605、MCU对用户的指纹信息进行预处理和加密,并存储处理后的用户指纹。S605. The MCU preprocesses and encrypts the user's fingerprint information, and stores the processed user's fingerprint.

MCU获取到用户的指纹信息后,对用户的指纹信息进行预处理,可以得到用户指纹的指纹特征点。指纹特征点可以包括端点、分叉点、中心点和三角点。在得到指纹特征点后,对指纹特征点进行提取,以获取用户指纹中具有唯一性和不变性的信息。其中,在提取过程中,除了简单的遍历用户指纹的所有指纹特征点之外,还需要对伪特征点进行去除,伪特征点主要是指由于用户指纹不清晰、不完整导致的断点以及边缘端点等。示例性的,对用户指纹进行的预处理可以包括图像归一化、图像分割、图像二值化和细化等。After the MCU acquires the user's fingerprint information, it preprocesses the user's fingerprint information to obtain the fingerprint feature points of the user's fingerprint. Fingerprint feature points can include endpoints, bifurcation points, center points and triangle points. After the fingerprint feature points are obtained, the fingerprint feature points are extracted to obtain unique and invariant information in the user's fingerprint. Among them, in the extraction process, in addition to simply traversing all the fingerprint feature points of the user's fingerprint, it is also necessary to remove the false feature points, which mainly refer to the breakpoints and edges caused by the unclear and incomplete user fingerprints. endpoint etc. Exemplarily, the preprocessing performed on the user fingerprint may include image normalization, image segmentation, image binarization and thinning, and the like.

在提取到指纹特征点之后,可以利用信息-摘要算法(message-digest algorithm5,MD5)对提取到的指纹特征点进行加密,并将加密后的指纹特征点存储在MCU中。After the fingerprint feature points are extracted, a message-digest algorithm (message-digest algorithm5, MD5) can be used to encrypt the extracted fingerprint feature points, and store the encrypted fingerprint feature points in the MCU.

在一些实施例中,MCU内还可以包括指纹处理模块的固件程序。MCU可通过指纹处理模块对存储在其内部的用户指纹进行预处理和加密。In some embodiments, the MCU may also include a firmware program of the fingerprint processing module. The MCU can preprocess and encrypt the user fingerprint stored inside it through the fingerprint processing module.

S606、MCU检测SoC是否发起枚举。S606. The MCU detects whether the SoC initiates enumeration.

根据USB协议,当USB主机检测到USB设备插入时,USB主机会主动发起枚举,为USB主机和USB设备建立连接。当USB协议应用到指纹特征识别技术上时,USB主机为SoC,USB设备为MCU。According to the USB protocol, when the USB host detects that the USB device is plugged in, the USB host will actively initiate enumeration to establish a connection between the USB host and the USB device. When the USB protocol is applied to the fingerprint feature recognition technology, the USB host is the SoC, and the USB device is the MCU.

当用户按压电源按键后,根据上电时序,MCU上电被唤醒。由于MCU与SoC通过USB总线连接,在MCU上电被唤醒时,SoC可以检测到USB总线上正差分信号线D+由低电平被拉高为高电平。此时,SoC认为存在USB设备(即MCU)插入,则SoC主动发起枚举。其中,枚举是指USB主机从USB设备获取USB设备的基础信息,比如USB设备的设备类型、通信方式等。在得到USB设备的基础信息后,USB主机就可以根据这些基础信息为USB设备加载合适的驱动程序以及配置,从而与USB设备建立连接。即,SoC从MCU获取MCU的基础信息,比如MCU的设备类型、通信方式等。在得到MCU的基础信息后,SoC就可以根据这些基础信息为MCU加载合适的驱动程序以及配置,从而与MCU建立连接。When the user presses the power button, according to the power-on sequence, the MCU is powered on and wakes up. Since the MCU is connected to the SoC through the USB bus, when the MCU is powered on and wakes up, the SoC can detect that the positive differential signal line D+ on the USB bus is pulled from a low level to a high level. At this time, the SoC believes that there is a USB device (that is, the MCU) plugged in, and the SoC actively initiates enumeration. Wherein, enumeration means that the USB host obtains basic information of the USB device from the USB device, such as the device type and communication mode of the USB device. After obtaining the basic information of the USB device, the USB host can load a suitable driver and configuration for the USB device according to the basic information, so as to establish a connection with the USB device. That is, the SoC obtains the basic information of the MCU from the MCU, such as the device type and communication mode of the MCU. After obtaining the basic information of the MCU, the SoC can load the appropriate driver and configuration for the MCU according to the basic information, so as to establish a connection with the MCU.

具体的,枚举过程包括如下步骤:Specifically, the enumeration process includes the following steps:

1、SoC可以向MCU发送复位指令(即,RST指令)。1. The SoC can send a reset command (ie, RST command) to the MCU.

RST指令使MCU处于复位状态。复位后,MCU的地址会置为0。The RST instruction puts the MCU in a reset state. After reset, the address of MCU will be set to 0.

2、SoC可以向地址为0的MCU发送第一获取设备描述符请求。2. The SoC may send a first request for obtaining a device descriptor to the MCU whose address is 0.

3、MCU在接收到第一获取设备描述符请求后,向SoC返回设备描述符。3. After receiving the first request for obtaining the device descriptor, the MCU returns the device descriptor to the SoC.

其中,设备描述符包括MCU的最大包大小。Among them, the device descriptor includes the maximum packet size of the MCU.

4、SoC在获取到设备描述符后,会返回一个0长度的确认数据包给MCU。4. After the SoC obtains the device descriptor, it will return a 0-length confirmation packet to the MCU.

5、SoC使MCU再次复位,并向MCU发送设置地址请求。5. The SoC resets the MCU again, and sends an address setting request to the MCU.

其中,设置地址请求中携带SoC为MCU分配的唯一地址。Wherein, the address setting request carries the unique address allocated by the SoC for the MCU.

6、MCU在接收到设置地址请求中的地址后,向SoC返回应答包。6. After receiving the address in the address setting request, the MCU returns a response packet to the SoC.

7、SoC在接收到应答包之后,MCU启用新的地址。7. After the SoC receives the response packet, the MCU activates a new address.

8、SoC向MCU发送第二获取设备描述符请求。8. The SoC sends a second request for obtaining the device descriptor to the MCU.

其中,第二获取设备描述符请求用于获取MCU的全部设备描述符,该设备描述符中包括MCU所支持的配置个数、MCU的设备类型、MCU的供应商ID(VID)和产品识别码(PID)等信息。Wherein, the second obtaining device descriptor request is used to obtain all device descriptors of the MCU, including the number of configurations supported by the MCU, the device type of the MCU, the vendor ID (VID) and the product identification code of the MCU (PID) and other information.

9、SoC根据设备描述符,为MCU安装设备驱动。9. The SoC installs the device driver for the MCU according to the device descriptor.

SoC根据设备描述符,在系统中查找驱动。如果系统中没有驱动MCU的驱动,SoC会通过显示屏弹出对画框,提示用户为MCU安装设备驱动。The SoC looks for drivers in the system based on the device descriptor. If there is no driver for the MCU in the system, the SoC will pop up a dialog box through the display to prompt the user to install the device driver for the MCU.

10、驱动加载后,SoC为MCU选择配置,配置成功后,SoC和MCU建立USB连接。10. After the driver is loaded, the SoC selects the configuration for the MCU. After the configuration is successful, the SoC and the MCU establish a USB connection.

驱动加载后,SoC发送设备配置请求为MCU选择合适的配置,配置成功后,SoC和MCU完成通信通道的建立,从而实现枚举。After the driver is loaded, the SoC sends a device configuration request to select an appropriate configuration for the MCU. After the configuration is successful, the SoC and the MCU complete the establishment of the communication channel to achieve enumeration.

下面对MCU检测SoC是否发起枚举过程进行介绍。其中,MCU确定SoC是否发起枚举是根据固定时长内的帧首包(Start of Frame,SOF)的数量确定的。在枚举成功后,SoC会向MCU发送SOF包和其它包。SOF包是SoC向MCU发送的心跳包,其它包是SoC根据实际需求向MCU发送的数据包。由于SOF包是按照约定的时间间隔周期性发送的,其它包是不定时发送的,那么在SoC发起枚举后的固定时长内,SOF包的数量必然按照规律增加,而其它包有可能发生变化,也有可能未发生变化。因此,基于上述考虑本申请采用固定时长内SOF包的数量变化来判断SoC是否发起枚举,以提高判断SoC是否发起枚举的准确性。The following describes whether the MCU detects whether the SoC initiates the enumeration process. Wherein, the MCU determines whether the SoC initiates the enumeration according to the number of frame start packets (Start of Frame, SOF) within a fixed duration. After successful enumeration, SoC will send SOF package and other packages to MCU. The SOF packet is the heartbeat packet sent by the SoC to the MCU, and the other packets are data packets sent by the SoC to the MCU according to actual needs. Since SOF packets are sent periodically according to the agreed time interval, and other packets are sent irregularly, within a fixed period of time after SoC initiates enumeration, the number of SOF packets must increase according to the law, while other packets may change , or it may not change. Therefore, based on the above considerations, this application uses the change in the number of SOF packets within a fixed time period to judge whether the SoC initiates enumeration, so as to improve the accuracy of judging whether the SoC initiates enumeration.

1、记录MCU运行时的SOF包的数量。1. Record the number of SOF packets when the MCU is running.

当用户触发电源按键之后,MCU开始上电。上电后,MCU进行初始化。MCU的初始化包括:配置MCU侧USB的通用输入/输出口(General-purpose input/output,GPIO)模式、配置MCU侧USB的控制寄存器、中断寄存器、时钟寄存器以及唤醒MCU侧USB的中断和时钟。When the user triggers the power button, the MCU starts to power on. After power-on, the MCU is initialized. The initialization of the MCU includes: configuring the general-purpose input/output (GPIO) mode of the MCU-side USB, configuring the MCU-side USB control register, interrupt register, clock register, and waking up the interrupt and clock of the MCU-side USB.

根据笔记本电脑的上电时序,与电源电路相连的EC会首先被唤醒。被唤醒后,EC会拉高与MCU相连的EC_STATUS线。当MCU初始化后,MCU可以检测到EC_STATUS线被拉高。并根据EC_STATUS线的变化状态,MCU从低功耗状态调整为运行状态。在MCU调整为运行状态时,MCU可通过查询MCU中的寄存器,确定当前时刻MCU接收到的SOF包的数量(即第一数量),并将此时确定的SOF包的数量作为起始时刻(即T1时刻)SOF包的数量,记录在st_sof_num字段中。According to the power-on sequence of the notebook computer, the EC connected to the power circuit will be woken up first. After being woken up, the EC will pull up the EC_STATUS line connected to the MCU. When the MCU is initialized, the MCU can detect that the EC_STATUS line is pulled high. And according to the changing state of the EC_STATUS line, the MCU is adjusted from the low power consumption state to the running state. When the MCU is adjusted to the running state, the MCU can determine the quantity (i.e. the first quantity) of the SOF packets received by the MCU at the current moment by querying the register in the MCU, and use the quantity of the SOF packets determined at this time as the starting moment ( That is, the number of SOF packets at time T1 is recorded in the st_sof_num field.

若MCU首次与SoC建立连接,或者在上一次MCU与SoC的连接断开时,SOF包的数量被清空,则T1时刻记录的第一数量通常为0。若MCU为不是首次与SoC建立连接,且MCU没有清空之前存储的SOF包的数量,则T1时刻记录的第一数量大于0。T1时刻记录的第一数量为截止T1时刻,MCU已经从SoC接收到的SOF包的数量。If the connection between the MCU and the SoC is established for the first time, or when the connection between the MCU and the SoC is disconnected last time, the number of SOF packets is cleared, and the first number recorded at T1 is usually 0. If the MCU is not establishing a connection with the SoC for the first time, and the MCU has not cleared the number of SOF packets stored before, the first number recorded at T1 is greater than 0. The first quantity recorded at the time T1 is the number of SOF packets that the MCU has received from the SoC by the time T1.

2、MCU使能usb_det_flag字段,使usb_det_flag=1。2. The MCU enables the usb_det_flag field and sets usb_det_flag=1.

在usb_det_flag=1时,说明MCU进入SoC是否发起枚举的检测阶段。When usb_det_flag=1, it means that the MCU enters the detection phase of whether the SoC initiates enumeration.

3、MCU根据操作系统的启动时长,设置定时器时长。3. The MCU sets the timer duration according to the startup duration of the operating system.

4、在EC_STATUS线被拉高,即EC_STATUS=1,同时usb_det_flag=1、且定时器设定的时间到达之后时,执行如下步骤:4. When the EC_STATUS line is pulled high, that is, EC_STATUS=1, at the same time usb_det_flag=1, and after the time set by the timer arrives, perform the following steps:

41、读取定时器设定的时间到达之后,MCU接收到的SOF包的数量。41. Read the number of SOF packets received by the MCU after the time set by the timer arrives.

根据USB协议,对于全速设备,在开始枚举和通信过程中,USB主机大约每秒会向USB设备发送一个SOF包,即,SoC大约每1s会向MCU发出一个SOF包。According to the USB protocol, for a full-speed device, the USB host will send a SOF packet to the USB device about every second during the start of enumeration and communication, that is, the SoC will send a SOF packet to the MCU about every 1s.

基于上述USB协议的内容可知,在正常枚举的情况下,若经过定时器设定的定时时长之后,MCU将收到多个SOF包。因而,本申请在定时器设置的定时时长到达后,再次读取MCU接收到的SOF包的数量。即统计截止T2时刻,MCU从SoC接收到的SOF包的数量(即第二数量),并将T2时刻读取的SOF包的数量作为终止时刻SOF包的数量,记录在end_sof_num字段中。其中,定时器设定的定时起始时刻为T1时刻,定时结束时刻为T2时刻,定时时长为T2时刻和T1时刻之间的差值。Based on the content of the above USB protocol, it can be known that in the case of normal enumeration, the MCU will receive multiple SOF packets after the time period set by the timer has elapsed. Therefore, the present application reads the number of SOF packets received by the MCU again after the time period set by the timer arrives. That is, count the number of SOF packets received by the MCU from the SoC (i.e. the second number) as of T2, and record the number of SOF packets read at T2 as the number of SOF packets at the end time in the end_sof_num field. Wherein, the timing start time set by the timer is T1 time, the timing end time is T2 time, and the timing duration is the difference between T2 time and T1 time.

42、对比首次记录的SOF包的数量和定时器设定时长到达之后记录的SOF包的数量,并根据对比结果确定是否枚举。42. Comparing the number of SOF packets recorded for the first time with the number of SOF packets recorded after the timer setting time elapses, and determining whether to enumerate according to the comparison result.

在得到st_sof_num和end_sof_num后,若st_sof_num字段中SOF包的数量与end_sof_num字段中SOF包的数量相等(即第一数量和第二数量相同),说明在第一时间间隔内,SoC没有向MCU发送SOF包,即SoC和MCU没有建立连接。其中,第一时间间隔的起始时刻为T1时刻,第一时间间隔的结束时刻为T2时刻。After obtaining st_sof_num and end_sof_num, if the number of SOF packets in the st_sof_num field is equal to the number of SOF packets in the end_sof_num field (that is, the first number and the second number are the same), it means that the SoC did not send SOF to the MCU during the first time interval package, SoC and MCU are not connected. Wherein, the start time of the first time interval is time T1, and the end time of the first time interval is time T2.

由于MCU不能主动发起枚举,进一步说明是SoC没有发起枚举操作。若st_sof_num字段中SOF包的数量与end_sof_num字段中SOF包的数量不相等(即第一数量和第二数量不相同),说明SoC已发起枚举,并且SoC和MCU已经建立连接。Since the MCU cannot actively initiate the enumeration, it is further explained that the SoC did not initiate the enumeration operation. If the number of SOF packets in the st_sof_num field is not equal to the number of SOF packets in the end_sof_num field (that is, the first number and the second number are different), it means that the SoC has initiated enumeration, and the SoC and the MCU have established a connection.

进一步,在确定出SoC是否发起枚举之后,MCU可以在寄存器中清空用于存储第一数量和第二数量的存储空间。以便于在下次判断时,可以重新开始计数,避免造成数据紊乱,从而提高判定SoC是否发起枚举的准确性。Further, after determining whether the SoC initiates the enumeration, the MCU may clear the storage space for storing the first quantity and the second quantity in the register. In order to facilitate the next judgment, the counting can be restarted to avoid data disorder, thereby improving the accuracy of judging whether the SoC initiates the enumeration.

示例性的,用于表征开始检测SoC是否发起枚举的条件,对应的代码可以如下述所示:Exemplarily, it is used to characterize the conditions for starting to detect whether the SoC initiates enumeration, and the corresponding code can be as follows:

If(ec_status==1&&usb_det_fiag=1&&定时器设定时长到来)If(ec_status==1&&usb_det_fiag=1&&timer setting time arrives)

同时,本公开不限于图8所示的时序,S606还可以和S604同步执行。Meanwhile, the present disclosure is not limited to the sequence shown in FIG. 8 , and S606 may also be executed synchronously with S604 .

S607、若SoC未发起枚举,MCU执行软拔插操作。S607. If the SoC does not initiate enumeration, the MCU performs a soft plugging operation.

其中,软拔插操作可以触发SoC发起枚举,使指纹识别功能正常进行。Among them, the soft plug-in operation can trigger the SoC to initiate enumeration, so that the fingerprint recognition function can be performed normally.

当SoC识别到有新的USB设备接入USB总线时,SoC会主动发起枚举。对于SoC而言,SoC是基于USB总线的电平是否发生变化,来确定是否有新的USB设备接入USB总线的。若USB总线没有接入USB设备,USB总线的差分信号D+、D-都是低电平。当有USB设备接入USB总线时,USB总线的正差分信号D+被拉高为高电平,USB总线的负差分信号D-保持不变,仍为低电平。When the SoC recognizes that a new USB device is connected to the USB bus, the SoC will actively initiate enumeration. For the SoC, the SoC determines whether a new USB device is connected to the USB bus based on whether the level of the USB bus changes. If the USB bus is not connected to the USB device, the differential signals D+ and D- of the USB bus are both low level. When a USB device is connected to the USB bus, the positive differential signal D+ of the USB bus is pulled up to a high level, and the negative differential signal D- of the USB bus remains unchanged and is still at a low level.

若SoC没有发起枚举,MCU执行软拔插操作的原理为:对MCU进行反初始化,通过反初始化,可以消除USB总线对于正差分信号D+和负差分信号D-的影响。反初始化之后,将MCU侧的USB的正差分信号D+信号线拉低一段时间(具体拉低的时长基于USB协议自定),然后再将MCU侧的USB的正差分信号D+信号线拉高,以完成软拔插操作。软拔插操作带来了电平信号变化,SoC在检测到电平变化时,可以响应于电平变化发起枚举。其中,MCU侧的反初始化包括:无效掉(Disable)MCU侧的USB中断和时钟、复位MCU侧的USB的控制寄存器、中断寄存器、时钟寄存器等以及清除掉MCU侧的USB的GPIO配置,设置为普通GPIO。If the SoC does not initiate the enumeration, the principle of the MCU performing the soft plug-in operation is: to de-initialize the MCU. Through de-initialization, the influence of the USB bus on the positive differential signal D+ and the negative differential signal D- can be eliminated. After de-initialization, pull down the positive differential signal D+ signal line of the USB on the MCU side for a period of time (the specific length of time is based on the USB protocol), and then pull up the positive differential signal D+ signal line of the USB on the MCU side. To complete the soft unplug operation. The soft unplug operation brings a level signal change, and the SoC can initiate enumeration in response to the level change when it detects the level change. Among them, the de-initialization on the MCU side includes: invalidating (Disable) the USB interrupt and clock on the MCU side, resetting the USB control registers, interrupt registers, clock registers, etc. on the MCU side, and clearing the GPIO configuration of the USB on the MCU side, set to Ordinary GPIOs.

示例性的,基于上述MCU执行软拔插操作的原理,可以通过USB_Dplus_GPIO_Init函数将MCU侧的USB的正差分信号D+信号线拉低一段时间,然后再将正差分信号D+信号线拉高,以通过软件实现拔插操作。Exemplarily, based on the above-mentioned principle of MCU performing soft plug-in operation, the positive differential signal D+ signal line of the USB on the MCU side can be pulled down for a period of time through the USB_Dplus_GPIO_Init function, and then the positive differential signal D+ signal line can be pulled high to pass The software implements plugging and unplugging operations.

软拔插部分的代码可以如表1所示。The code of the soft unplugging part can be shown in Table 1.

表1Table 1

Figure BDA0003585040830000101

Figure BDA0003585040830000101

Figure BDA0003585040830000111

Figure BDA0003585040830000111

S608:在检测到MCU的软拔插操作后,SoC端发起枚举。S608: After detecting the soft plugging operation of the MCU, the SoC side initiates enumeration.

在MCU执行软拔插操作后,SoC端认为此时有新的USB设备插入USB接口,SoC端则会发起枚举。After the MCU performs the soft plug-in operation, the SoC side thinks that there is a new USB device plugged into the USB interface at this time, and the SoC side will initiate enumeration.

SoC端发起枚举之后,MCU使能usb_det_flag字段,使usb_det_flag=0。在usb_det_flag=0时,说明不需要进入MCU检测SoC是否发起枚举的阶段。After the SoC end initiates the enumeration, the MCU enables the usb_det_flag field, so that usb_det_flag=0. When usb_det_flag=0, it means that there is no need to enter the stage where the MCU detects whether the SoC initiates enumeration.

在一些实施例中,还可以在寄存器中清空用于存储SOF包的数量的标志位。这样,对于新的检测流程可以在该寄存器中重新开始计数,以避免产生数据误差。In some embodiments, the flag bit for storing the number of SOF packets can also be cleared in the register. In this way, counting can be restarted in the register for a new detection process to avoid data errors.

若SoC正常发起枚举,则继续执行以下的步骤即可。If the SoC initiates enumeration normally, proceed to the following steps.

示例性的,在MCU执行软拔插操作后,可以再次检测SoC端是否发起枚举。具体的,通过检测MCU在第二时间间隔内中记录的已经从SoC接收到的SOF包的数量是否发生变化来判断SoC端是否发起枚举。其中,第二时间间隔为第一时间间隔的下一个时间间隔;第二时间间隔的起始时刻为T3时刻,第二时间间隔的结束时刻为T4时刻。Exemplarily, after the MCU performs the soft plugging operation, it may be detected again whether the SoC side initiates enumeration. Specifically, it is determined whether the SoC side initiates enumeration by detecting whether the number of SOF packets received from the SoC recorded by the MCU in the second time interval changes. Wherein, the second time interval is the next time interval of the first time interval; the start time of the second time interval is time T3, and the end time of the second time interval is time T4.

在MCU执行软拔插操作后,MCU设置定时器,定时器的定时起始时刻为T3时刻,定时器的定时结束时刻为T4时刻,定时器的定时时长为T4时刻和T3时刻之间的差值。然后MCU记录在T3时刻已经从SoC接收到的SOF包的数量,并将T3时刻记录的数量作为第三数量,记录在T4时刻已经从SoC接收到的SOF包的数量,并将T4时刻记录的数量作为第四数量。在第三数量和第四数量不一致时,认为在MCU执行软拔插操作后,SoC端成功发起枚举。After the MCU performs the soft plug-in operation, the MCU sets the timer. The timing start time of the timer is T3 time, the timing end time of the timer is T4 time, and the timing duration of the timer is the difference between T4 time and T3 time. value. Then the MCU records the quantity of the SOF packet that has been received from SoC at the moment of T3, and the quantity recorded at the moment of T3 is used as the third quantity, records the quantity of the SOF packet that has been received from the SoC at the moment of T4, and records the quantity of the SOF packet at the moment of T4 quantity as the fourth quantity. When the third number is inconsistent with the fourth number, it is considered that the SoC side successfully initiates enumeration after the MCU performs the soft plugging operation.

S609:在SoC枚举成功后,SoC从MCU获取用户指纹。S609: After the SoC enumerates successfully, the SoC obtains the user fingerprint from the MCU.

在枚举成功后,SoC向MCU发送指纹录入指令或指纹验证指令,以获取到用户指纹。具体的,SoC从MCU获取到的用户指纹为MCU经过预处理和加密后的指纹信息。通过对指纹信息进行加密,能够增强用户信息的保护,同时提高用户信息的安全性。其中,在SoC枚举成功后,SoC根据上一次用户关机之前设定的登录操作系统的验证方式,例如,人脸识别、指纹识别和账号密码识别等,来确定获取人脸数据、用户指纹还是账号密码。在确定上一次用户关机之前设定的登录操作系统的验证方式是指纹识别后,SoC从MCU中获取用户指纹。After the enumeration is successful, the SoC sends a fingerprint entry command or a fingerprint verification command to the MCU to obtain the user's fingerprint. Specifically, the user fingerprint obtained by the SoC from the MCU is preprocessed and encrypted fingerprint information of the MCU. By encrypting the fingerprint information, the protection of the user information can be enhanced, and the security of the user information can be improved at the same time. Among them, after the SoC enumeration is successful, the SoC determines whether to obtain face data, user fingerprint or account password. After determining that the verification method for logging into the operating system set before the last shutdown of the user is fingerprint recognition, the SoC obtains the user's fingerprint from the MCU.

S610:SoC验证用户指纹,并根据验证结果确定是否进入笔记本电脑桌面。S610: the SoC verifies the user's fingerprint, and determines whether to enter the laptop desktop according to the verification result.

SoC获取到加密的用户指纹后,对用户指纹进行解密,解密后通过算法获取用户的指纹特征点。将获取到的用户指纹的指纹特征点与SoC存储的指纹库中的标准用户指纹的指纹特征点进行匹配,在匹配一致的情况下,显示笔记本电脑桌面,并响应于用户的操作行为进行展示。在匹配不一致的情况下,则进入密码验证界面,最终可以响应于用户输入的账号密码进入笔记本电脑的操作系统。After the SoC obtains the encrypted user fingerprint, it decrypts the user fingerprint, and obtains the user's fingerprint feature points through an algorithm after decryption. Match the fingerprint feature points of the acquired user fingerprint with the fingerprint feature points of the standard user fingerprint in the fingerprint library stored by the SoC, and display the desktop of the laptop computer in response to the user's operation behavior in case of a consistent match. In the case of inconsistent matching, enter the password verification interface, and finally enter the operating system of the notebook computer in response to the account password input by the user.

本申请另一些实施例提供了一种电子设备,该电子设备可以包括:通信模块、存储器和一个或多个处理器。该通信模块、存储器与处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。Some other embodiments of the present application provide an electronic device, and the electronic device may include: a communication module, a memory, and one or more processors. The communication module, memory and processor are coupled. The memory is used to store computer program code comprising computer instructions.

本申请另一实施例提供一种芯片系统,如图9所示,该芯片系统包括至少一个处理器901和至少一个接口电路902。处理器901和接口电路902可通过线路互联。例如,接口电路902可用于从其它装置接收信号。又例如,接口电路902可用于向其它装置(例如处理器901)发送信号。Another embodiment of the present application provides a chip system. As shown in FIG. 9 , the chip system includes at least one processor 901 and at least one interface circuit 902 . The processor 901 and the interface circuit 902 may be interconnected through wires. For example, interface circuit 902 may be used to receive signals from other devices. As another example, the interface circuit 902 may be used to send signals to other devices (such as the processor 901).

例如,接口电路902可读取设备中存储器中存储的指令,并将该指令发送给处理器901。当指令被处理器901执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。For example, the interface circuit 902 may read instructions stored in a memory in the device and send the instructions to the processor 901 . When the instruction is executed by the processor 901, the electronic device may be made to execute various steps in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述方法实施例中电子设备(例如,手机)执行的各个功能或者步骤。An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the electronic device (for example, a mobile phone) in the above-mentioned method embodiment. The individual functions or steps performed.

本申请实施例还提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例中电子设备(例如,笔记本电脑)执行的各个功能或者步骤。The embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute various functions or steps performed by the electronic device (for example, a notebook computer) in the above method embodiments.

通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application. The above-mentioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and other various media that can store program codes.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only the specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered within the protection scope of the application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (13)

1. An abnormality recovery method of an electronic device is applied to the electronic device, the electronic device comprises a fingerprint sensor, a microcontroller processing unit (MCU), a system-on-chip (SoC) and an Embedded Controller (EC), the SoC and the MCU are connected through a USB line, and the method is characterized by comprising the following steps:

the fingerprint sensor receives a pressing operation of a user;

responding to the pressing operation of the user, and sending a first interrupt instruction to the MCU by the fingerprint sensor;

in response to a pressing operation by the user, the fingerprint sensor sends a second interrupt instruction to the EC;

responding to the first interrupt instruction, the MCU acquires fingerprint information of a user from the fingerprint sensor;

in response to the second interrupt instruction, the EC wakes up the MCU;

in response to the MCU being awakened and the MCU recording the number of SOF (start of frame) packets which are received from the SoC within a first time interval, the MCU sets a positive differential signal and a negative differential signal of the USB connection to be low level and maintains the low level for a first time length, wherein the first time interval is a time interval with a preset length after the MCU is awakened;

and the MCU sets the positive differential signal of the USB connection line to be high level.

2. The method according to claim 1, wherein the start time of the first time interval is time T1, the end time of the first time interval is time T2, and in response to the MCU being woken up and the MCU keeping constant the number of received frame start packets within the first time interval, the MCU setting the positive and negative differential signals of the USB connection to low level and maintaining the first time length comprises:

and in response to the MCU being awakened and the first number and the second number being the same, the MCU sets the positive differential signal and the negative differential signal of the USB connection to low level and maintains the low level for a first duration, wherein the number of SOF packets which are recorded by the MCU at the time T1 and received from the SoC is the first number, and the number of SOF packets which are recorded by the MCU at the time T2 and received from the SoC is the second number.

3. The method of claim 2, further comprising:

in response to the MCU being awakened, the MCU records the number of SOF packets received from the SoC as the first number at the T1 moment;

in response to the MCU being awakened, the MCU records the number of SOF packets that have been received from the SoC as the second number at the time T2.

4. The method of claim 3, further comprising:

responding to the MCU to be awakened, setting a timer by the MCU, wherein the timing starting time of the timer is the T1 time, and the timing duration of the timer is the difference between the T2 and the T1;

the responding to the MCU being awakened, the MCU recording the number of the SOF packets received from the SoC as the second number at the T2 moment, and the method comprises the following steps:

and responding to the MCU being awakened and reaching the timing duration of the timer, and recording the number of the SOF packets received from the SoC as the second number by the MCU at the T2 moment.

5. The method according to any one of claims 1-4, further comprising:

in response to the pressing operation of the user, the fingerprint sensor collects fingerprint information of the user.

6. The method according to any one of claims 1-5, further comprising:

determining that the MCU records a change in the number of SOF packets that have been received from the SoC within a second time interval, the second time interval being the next time interval to the first time interval;

the SoC acquires the fingerprint information of the user from the MCU and verifies the login authority of the user according to the fingerprint information of the user;

and responding to the successful verification of the login authority of the user, and displaying a desktop by the electronic equipment.

7. The method of claim 1, further comprising:

responding to the MCU being awakened and the MCU recording the change of the number of SOF packets which have been received from the SoC in the first time interval;

the SoC acquires the fingerprint information of the user from the MCU and verifies the login authority of the user according to the fingerprint information of the user;

and responding to the successful verification of the login authority of the user, and displaying a desktop by the electronic equipment.

8. The method according to claim 6 or 7, characterized in that the method further comprises:

before the SoC acquires the fingerprint information of the user from the MCU, the MCU preprocesses the fingerprint information of the user to obtain fingerprint feature points of the fingerprint information of the user, wherein the fingerprint feature points are used for representing the identity information of the user;

and the MCU encrypts the fingerprint characteristic points of the fingerprint information of the user and stores the encrypted fingerprint characteristic points of the fingerprint information of the user.

9. The method according to any one of claims 1-8, further comprising:

in response to the MCU being awakened and the MCU recording the number of SOF (start of frame) packets which have been received from the SoC within a first time interval as unchanged, emptying the storage space for storing the first number and the second number.

10. The method according to any of claims 6-9, wherein the SoC obtains fingerprint information of the user from the MCU, comprising:

the SoC sends a request for acquiring the fingerprint information of the user to the MCU;

and the MCU responds to the request for acquiring the fingerprint information of the user and sends the fingerprint information of the user to the SoC.

11. The method according to any of claims 1-10, wherein the EC waking up the MCU in response to the second interrupt instruction comprises:

the EC responds to the second interrupt instruction, pulls up an EC _ STATUS line between the EC and the MCU, and triggers the MCU to be awakened.

12. An electronic device comprising a fingerprint sensor, an MCU, an SoC, and an EC, wherein the fingerprint sensor, the MCU, the SoC, and the EC are configured to perform the method of recovering from an abnormality of the electronic device according to any one of claims 1 to 11.

13. A computer-readable storage medium comprising computer instructions;

the computer instructions, when run on an electronic device, cause the electronic device to perform the method of anomaly recovery of an electronic device of any of claims 1-11.

CN202210360639.5A 2022-04-07 2022-04-07 Abnormal recovery method and equipment for electronic equipment Active CN115562895B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210360639.5A CN115562895B (en) 2022-04-07 2022-04-07 Abnormal recovery method and equipment for electronic equipment
CN202311262445.2A CN117453441A (en) 2022-04-07 2022-04-07 Abnormality recovery method and device for electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210360639.5A CN115562895B (en) 2022-04-07 2022-04-07 Abnormal recovery method and equipment for electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311262445.2A Division CN117453441A (en) 2022-04-07 2022-04-07 Abnormality recovery method and device for electronic equipment

Publications (2)

Publication Number Publication Date
CN115562895A true CN115562895A (en) 2023-01-03
CN115562895B CN115562895B (en) 2023-10-20

Family

ID=84738134

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202311262445.2A Pending CN117453441A (en) 2022-04-07 2022-04-07 Abnormality recovery method and device for electronic equipment
CN202210360639.5A Active CN115562895B (en) 2022-04-07 2022-04-07 Abnormal recovery method and equipment for electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202311262445.2A Pending CN117453441A (en) 2022-04-07 2022-04-07 Abnormality recovery method and device for electronic equipment

Country Status (1)

Country Link
CN (2) CN117453441A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088658A (en) * 2022-05-16 2023-05-09 荣耀终端有限公司 Abnormality recovery method for electronic equipment and electronic equipment
CN116483014A (en) * 2023-06-20 2023-07-25 飞天诚信科技股份有限公司 Fingerprint input realization method, device and system
CN116521451A (en) * 2023-05-25 2023-08-01 深圳市众鸿科技股份有限公司 Method and system for recovering SOC abnormality of vehicle-mounted terminal
CN117093140A (en) * 2023-07-12 2023-11-21 荣耀终端有限公司 Method and device for controlling shutdown of electronic equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181870A (en) * 1998-12-16 2000-06-30 Hitachi Ltd Portable electronic device and fault detecting method
US7660938B1 (en) * 2004-10-01 2010-02-09 Super Talent Electronics, Inc. Flash card reader and data exchanger utilizing low power extended USB protocol without polling
CN101751534A (en) * 2008-12-16 2010-06-23 联想(新加坡)私人有限公司 Computers having a biometric authentication device
US20130167226A1 (en) * 2011-12-27 2013-06-27 Woodrow LIN Handheld Mobile Device with USB Hard Drive and Optional Biometric Scanner, and Systems Including the Same
CN203720844U (en) * 2013-12-18 2014-07-16 四川卫士通信息安全平台技术有限公司 USB (universal serial bus)-interface-based safety equipment
CN205788190U (en) * 2016-05-20 2016-12-07 国网天津市电力公司 A kind of office computer information security managing and control system based on fingerprint identification technology
CN108337913A (en) * 2018-02-01 2018-07-27 深圳市汇顶科技股份有限公司 Fingerprint login method, micro-control unit, fingerprint power supply module and electric terminal
CN108701180A (en) * 2017-04-26 2018-10-23 华为技术有限公司 A kind of method and apparatus of device power-up
US10235523B1 (en) * 2016-05-10 2019-03-19 Nokomis, Inc. Avionics protection apparatus and method
CN109711126A (en) * 2019-01-03 2019-05-03 黄河科技学院 A computer information security management system and method
CN110287666A (en) * 2019-06-03 2019-09-27 Oppo广东移动通信有限公司 Fingerprint unlocking method and related device
CN111125664A (en) * 2019-11-30 2020-05-08 华为技术有限公司 Electronic equipment and method for logging in operating system
US20210081271A1 (en) * 2020-09-25 2021-03-18 Intel Corporation Dynamic tracing control
CN113949116A (en) * 2020-07-15 2022-01-18 华为技术有限公司 Data transmission method and device
WO2022012644A1 (en) * 2020-07-15 2022-01-20 华为技术有限公司 Data transmission method employing charging cable, and electronic devices

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181870A (en) * 1998-12-16 2000-06-30 Hitachi Ltd Portable electronic device and fault detecting method
US7660938B1 (en) * 2004-10-01 2010-02-09 Super Talent Electronics, Inc. Flash card reader and data exchanger utilizing low power extended USB protocol without polling
CN101751534A (en) * 2008-12-16 2010-06-23 联想(新加坡)私人有限公司 Computers having a biometric authentication device
US20130167226A1 (en) * 2011-12-27 2013-06-27 Woodrow LIN Handheld Mobile Device with USB Hard Drive and Optional Biometric Scanner, and Systems Including the Same
CN203720844U (en) * 2013-12-18 2014-07-16 四川卫士通信息安全平台技术有限公司 USB (universal serial bus)-interface-based safety equipment
US10235523B1 (en) * 2016-05-10 2019-03-19 Nokomis, Inc. Avionics protection apparatus and method
CN205788190U (en) * 2016-05-20 2016-12-07 国网天津市电力公司 A kind of office computer information security managing and control system based on fingerprint identification technology
CN108701180A (en) * 2017-04-26 2018-10-23 华为技术有限公司 A kind of method and apparatus of device power-up
CN108337913A (en) * 2018-02-01 2018-07-27 深圳市汇顶科技股份有限公司 Fingerprint login method, micro-control unit, fingerprint power supply module and electric terminal
CN109711126A (en) * 2019-01-03 2019-05-03 黄河科技学院 A computer information security management system and method
CN110287666A (en) * 2019-06-03 2019-09-27 Oppo广东移动通信有限公司 Fingerprint unlocking method and related device
CN111125664A (en) * 2019-11-30 2020-05-08 华为技术有限公司 Electronic equipment and method for logging in operating system
CN113949116A (en) * 2020-07-15 2022-01-18 华为技术有限公司 Data transmission method and device
WO2022012644A1 (en) * 2020-07-15 2022-01-20 华为技术有限公司 Data transmission method employing charging cable, and electronic devices
US20210081271A1 (en) * 2020-09-25 2021-03-18 Intel Corporation Dynamic tracing control

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088658A (en) * 2022-05-16 2023-05-09 荣耀终端有限公司 Abnormality recovery method for electronic equipment and electronic equipment
CN116088658B (en) * 2022-05-16 2023-10-20 荣耀终端有限公司 Abnormality recovery method for electronic equipment and electronic equipment
CN116521451A (en) * 2023-05-25 2023-08-01 深圳市众鸿科技股份有限公司 Method and system for recovering SOC abnormality of vehicle-mounted terminal
CN116483014A (en) * 2023-06-20 2023-07-25 飞天诚信科技股份有限公司 Fingerprint input realization method, device and system
CN116483014B (en) * 2023-06-20 2023-09-19 飞天诚信科技股份有限公司 Fingerprint input realization method, device and system
CN117093140A (en) * 2023-07-12 2023-11-21 荣耀终端有限公司 Method and device for controlling shutdown of electronic equipment

Also Published As

Publication number Publication date
CN115562895B (en) 2023-10-20
CN117453441A (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN115562895B (en) 2023-10-20 Abnormal recovery method and equipment for electronic equipment
US11698792B2 (en) 2023-07-11 Method for starting up device and device
CN107741780B (en) 2021-01-29 Near Field Communication (NFC) device for click wake-on and click-to-login
US8914653B2 (en) 2014-12-16 Method and system for providing hybrid-shutdown and fast startup processes
WO2019200543A1 (en) 2019-10-24 Wake-up method, device and system for operating system
CN111125664B (en) 2022-07-12 Electronic equipment and method for logging in operating system
CN111194444A (en) 2020-05-22 Device wake-up based on fingerprint sensor
US11544414B2 (en) 2023-01-03 Secure wake-on of a computing device
CN214670566U (en) 2021-11-09 Computer wake-up circuit and computer
CN110058973B (en) 2022-10-14 Test system and test method for data storage device
CN108647047A (en) 2018-10-12 A kind of awakening method and system based on mobile terminal
CN104239822A (en) 2014-12-24 Computer and control method thereof
CN104008353A (en) 2014-08-27 Computer and control method thereof
CN113031825B (en) 2023-07-11 Fingerprint event processing device and method
CN104424086B (en) 2018-10-09 Computer error detection module and method
CN108197455B (en) 2020-11-03 Electronic device and safe starting method thereof
WO2018227475A1 (en) 2018-12-20 Fingerprint chip detection method, device and system
CN117056154A (en) 2023-11-14 Method, system, device and medium for detecting network port function of intelligent network card
CN116088658B (en) 2023-10-20 Abnormality recovery method for electronic equipment and electronic equipment
CN108108196B (en) 2021-02-19 Wake-up device, wake-up system, wake-up method and device
WO2020113469A1 (en) 2020-06-11 Power on self test method, power on self test device and mobile terminal
CN115100699A (en) 2022-09-23 Fingerprint unlocking module, method and related device
CN111814586B (en) 2024-09-17 Fingerprint module control method, device, electronic device and readable storage medium
CN108073481B (en) 2021-02-12 Server system capable of providing hardware operation information and processing method thereof
CN101989219B (en) 2013-01-02 Hardware fault detection debugging code information output method, device and system

Legal Events

Date Code Title Description
2023-01-03 PB01 Publication
2023-01-03 PB01 Publication
2023-01-20 SE01 Entry into force of request for substantive examination
2023-01-20 SE01 Entry into force of request for substantive examination
2023-10-20 GR01 Patent grant
2023-10-20 GR01 Patent grant
2025-02-25 CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

2025-02-25 CP03 Change of name, title or address