WO2020029244A1 - Method and apparatus for detecting electronic device, and electronic device and medium - Google Patents
Method and apparatus for detecting electronic device, and electronic device and medium Download PDFInfo
- Publication number
- WO2020029244A1 WO2020029244A1 PCT/CN2018/099944 CN2018099944W WO2020029244A1 WO 2020029244 A1 WO2020029244 A1 WO 2020029244A1 CN 2018099944 W CN2018099944 W CN 2018099944W WO 2020029244 A1 WO2020029244 A1 WO 2020029244A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- state
- collection device
- collection
- electronic
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
- G06F9/4413—Plug-and-play [PnP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0229—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present disclosure relates to the technical field of electronic devices, and in particular, to a method for detecting an electronic device, a device for detecting an electronic device, an electronic device, and a medium.
- the inventors found that at least the following problems exist in the prior art: if the various components are in a usable state when the mobile phone is powered on, but after the power is turned on, because the user As a result, the connection is disconnected. In this case, the mobile phone does not re-detect and mark the status of the parts, which causes the user to fail in the functions supported by the parts when using the phone, thereby reducing the user experience.
- a method for detecting an electronic device, a detection device for an electronic device, an electronic device, and a medium according to the embodiments of the present disclosure are capable of detecting a state of a collection device of the electronic device in real time.
- a method for detecting an electronic device including detecting whether the electronic device receives an insertion event of a collection device inserted into the electronic device; and if so, determining whether attribute information of the collection device is consistent with all The configuration information stored by the electronic device matches; if the configuration information matches, the state of the collection device is set to an available state.
- the method further comprises: detecting whether the electronic device has received a pull-out event of the collection device; and if so, setting the collection device to an unavailable state according to the pull-out event.
- the method when the state of the acquisition device is an unavailable state, the method further includes setting a peripheral device related to the acquisition device to a sleep state.
- the method when the use state of the acquisition device is changed from an unavailable state to an available state, the method further includes: waking up a peripheral device related to the acquisition device.
- the method further includes detecting whether the collecting device of the electronic device supports hot plugging; if so, recording attribute information of the collecting device.
- the attribute information of the collection device is stored in a user space of the electronic device.
- the peripheral device includes an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
- a detection device for an electronic device comprising: a detection module for detecting whether the electronic device has received an insertion event of a collection device; and a determination module, if so, determining the attributes of the collection device Whether the information matches the configuration information stored by the electronic device; and a setting module, if it matches, sets a state of the collection device to an available state.
- an electronic device including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are used by the one When being executed by one or more processors, the one or more processors are caused to execute the method for detecting an electronic device provided by the first aspect.
- a computer-readable storage medium having executable instructions stored thereon, which when executed by a processor, cause the processor to perform the method for detecting an electronic device provided by the first aspect.
- a method for detecting an electronic device After the electronic device is started, the method can determine the state of the collecting device by detecting whether the electronic device receives an insertion event of the collecting device. Specifically, if it is determined that the electronic device receives the insertion event of the collection device, it can be further judged whether the attribute information of the collection device matches the configuration information stored by the electronic device, and if it matches, the status of the collection device is set to an available state, otherwise, If they do not match, the status of the collection device is set to an unavailable state, so that the user can know the status of the collection device in real time, which will not affect the user's use and improve the user experience.
- FIG. 1 schematically illustrates a flowchart of a method for detecting an electronic device according to an embodiment of the present disclosure
- FIG. 2 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure
- FIG. 3 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure
- FIG. 4 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure
- FIG. 5 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure
- FIG. 6 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure
- FIG. 7 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure
- FIG. 8 schematically illustrates a block diagram of a detection apparatus for an electronic device according to an embodiment of the present disclosure
- FIG. 9 schematically illustrates a block diagram of a computer system of an electronic device according to an embodiment of the present disclosure.
- FIG. 1 schematically illustrates a flowchart of a detection method of an electronic device according to an embodiment of the present disclosure.
- the method for detecting an electronic device includes steps S110 to S140.
- step S110 it is detected whether the electronic device receives an insertion event of a collection device.
- step S120 if yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device.
- step S130 if there is a match, the state of the acquisition device is set to an available state.
- step S140 if there is no match, the state of the collection device is set to an unavailable state.
- the method can determine the state of the collecting device by detecting whether the electronic device receives an insertion event of the collecting device. Specifically, if it is determined that the electronic device receives the insertion event of the collection device, it can be further judged whether the attribute information of the collection device matches the configuration information stored by the electronic device, and if it matches, the status of the collection device is set to an available state, otherwise, If they do not match, the status of the collection device is set to an unavailable state, so that the user can know the status of the collection device in real time, which will not affect the user's use and improve the user experience.
- the electronic device may be a mobile phone, but is not limited to a mobile phone.
- it can be a mobile phone that supports hot plugging of the collection device.
- the acquisition device may be a camera module of a mobile phone.
- the service program of the collection device receives the insertion event of the collection device.
- the service program of the collection device can also be used to determine whether the attribute information of the collection device matches the configuration information stored by the electronic device, and set the state of the corresponding collection device according to the determination result.
- the service program of the collection device can detect the configuration information of the collection device in the electronic device, obtain the total number of collection devices currently supported by the electronic device, and attribute information of each collection device.
- the detection process of the acquisition device is not immediately performed when the electronic device is started, but the process is skipped directly, the status of the hot-swap acquisition device is set to unavailable, and then waiting for the acquisition device
- the service program judges the matching between the attribute information of the collecting device and the configuration information stored by the electronic device, sets the status of the collecting device to be available according to the matching result, and notifies the corresponding application program.
- the service program of the collection device receives the unplugging event of the collection device, the service program of the collection device sets the status of the collection device to unavailable and notifies the corresponding application program.
- the method further includes steps S210 and S220.
- step S210 it is detected whether the electronic device has received the unplugging event of the collection device.
- step S220 if yes, the acquisition device is set to an unavailable state according to the unplugging event.
- This method can set the state of the collecting device according to the unplugging event received from the collecting device. For example, if the interface between the acquisition device and the electronic device is poor, or the acquisition device fails, the above method can facilitate users to maintain or replace the acquisition device in a timely manner.
- the service program of the collecting device when the collecting device is unplugged from the electronic device, the service program of the collecting device receives the unplugging event of the collecting device, and the service program of the collecting device may set the state of the collecting device according to the unplugging event. In the unavailable state, the acquisition device in the unavailable state cannot use its corresponding function.
- FIG. 3 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
- the method further includes step S310.
- step S110 it is detected whether the electronic device receives an insertion event of a collection device.
- step S120 if yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device.
- step S130 if there is a match, the state of the acquisition device is set to an available state.
- step S140 if there is no match, the state of the collection device is set to an unavailable state.
- step S310 when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
- the state of the collection device is set to an unavailable state, and the peripheral device related to the collection device is set to The hibernation state helps to save power for the electronic device, thereby increasing the standby time of the electronic device.
- the peripheral device may include an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
- FIG. 4 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
- the method further includes step S410.
- step S210 it is detected whether the electronic device has received the unplugging event of the collection device.
- step S220 if yes, the acquisition device is set to an unavailable state according to the unplugging event.
- step S410 when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
- the acquisition device if the electronic device receives the unplugging event of the acquisition device, the acquisition device is set to an unavailable state, and a peripheral device related to the acquisition device is set to a sleep state, which helps Save power for electronic devices, thereby increasing the standby time of electronic devices.
- the peripheral device may include an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
- FIG. 5 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
- the method further includes step S510.
- step S110 it is detected whether the electronic device receives an insertion event of a collection device.
- step S120 if yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device.
- step S130 if there is a match, the state of the acquisition device is set to an available state.
- step S140 if there is no match, the state of the collection device is set to an unavailable state.
- step S310 when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
- step S510 when the state of the acquisition device changes from an unavailable state to an available state, the peripheral device related to the acquisition device is woken up.
- the state of the collection device is set to an unavailable state, and the peripheral device related to the collection device is set to sleep.
- the unavailable state of the acquisition device is modified to The available state, while awakening the peripheral device related to the acquisition device, thereby intelligently controlling the status of the peripheral device.
- the user can obtain which types of electronic devices can support by viewing the configuration information of the collection device stored by the electronic device. Acquisition device, so that users can quickly find the acquisition device supported by the electronic device.
- FIG. 6 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
- the method when the state of the collection device is changed from an unavailable state to an available state, the method further includes step S610.
- step S210 it is detected whether the electronic device has received the unplugging event of the collection device.
- step S220 if yes, the acquisition device is set to an unavailable state according to the unplugging event.
- step S410 when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
- step S610 when the state of the acquisition device changes from an unavailable state to an available state, the peripheral device related to the acquisition device is woken up.
- the state of the acquisition device is set to an unavailable state
- the peripheral device related to the acquisition device is set to a sleep state.
- the unavailable state of the acquisition device is changed to the available state
- the peripheral device related to the acquisition device is woken up at the same time. status.
- the peripheral device may include an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
- FIG. 7 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
- the method further includes steps S710 and S720.
- step S710 it is detected whether the collection device of the electronic device supports hot plugging.
- step S720 if supported, record the attribute information of the collection device.
- the method can detect whether the collecting device of the electronic device supports hot plugging, and if so, record the attribute information of the collecting device, so as to facilitate the accumulation of which collecting devices the electronic device specifically supports.
- the attribute information of the collecting device may include, but is not limited to, resolution, pixels, high-definition camera, sensor size, sensor type, shooting performance, interface parameters, flash parameters, lens parameters, exposure control, and so on.
- the attribute information of the collection device is stored in a user space of the electronic device.
- the attribute information of the acquisition device may be stored in a camera implementation framework in user space.
- the function of the acquisition device may be implemented by control instructions stored in a kernel space.
- the control instruction may be stored in a camera implementation framework in the kernel space, and the control instruction may implement functions of the camera such as photographing and video recording.
- the camera implementation framework in the operating system kernel of the electronic device can read the configuration information of the camera stored in the user space, and start running support according to the configuration information of the camera A driver for the processor peripherals that the camera module runs.
- a camera module that supports hot-swap does not immediately start a driver that runs a processor peripheral that supports the operation of the camera module when the electronic device is started, but maintains a non-started state.
- the camera service program receives the insertion event of the camera module and starts detection by the detection module, it starts a driver that runs a processor peripheral that supports the operation of the camera module to support the camera module detection process.
- the processor peripheral device supporting the operation of the camera module is set to the sleep mode. After the camera service program receives the insertion event of the camera module again, the processor peripheral device supporting the operation of the camera module is set to the wake-up mode to support the operation of the camera module.
- FIG. 8 schematically illustrates a block diagram of a detection apparatus for an electronic device according to an embodiment of the present disclosure.
- the detection device 800 of the electronic device includes a detection module 810, a determination module 820, and a setting module 830.
- the detection module 810 is configured to detect whether the electronic device receives an insertion event of a collection device.
- the determining module 820 determines whether the attribute information of the collection device matches the configuration information stored by the electronic device.
- the setting module 830 if it matches, sets the state of the acquisition device to an available state.
- the detection device 800 of the electronic device may determine the state of the collection device by detecting whether the electronic device receives an insertion event of the collection device after the electronic device is started. Specifically, if it is determined that the electronic device receives the insertion event of the collection device, it can be further determined whether the attribute information of the collection device matches the configuration information stored by the electronic device, and if it matches, the status of the collection device is set to an available state, and vice versa, If they do not match, the status of the collection device is set to an unavailable state, so that the user can know the status of the collection device in real time, which will not affect the user's use and improve the user experience.
- the detection device 800 for an electronic device may be used to implement the detection method for the electronic device described in FIG. 1 to FIG. 7 described above.
- each module of the detection device 800 of the electronic device can be used to implement the steps of the example embodiment of the detection method of the electronic device, for details not disclosed in the device embodiment of the present invention, please refer to this An embodiment of the above-mentioned detection method for an electronic device.
- FIG. 9 schematically illustrates a block diagram of a computer system of an electronic device according to an embodiment of the present disclosure.
- FIG. 9 illustrates a schematic structural diagram of a computer system 900 suitable for implementing an electronic device according to an embodiment of the present invention.
- the computer system 900 of the electronic device shown in FIG. 9 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
- the computer system 900 includes a central processing unit (CPU) 901, which may be based on a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903. Instead, perform various appropriate actions and processes.
- ROM read-only memory
- RAM random access memory
- various programs and data required for system operation are also stored.
- the CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904.
- An input / output (I / O) interface 905 is also connected to the bus 904.
- the following components are connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the speaker; a storage portion 908 including a hard disk and the like And a communication section 909 including a network interface card such as a LAN card, a modem, and the like.
- the communication section 909 performs communication processing via a network such as the Internet.
- the driver 910 is also connected to the I / O interface 905 as needed.
- a removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
- the process described above with reference to the flowchart may be implemented as a computer software program.
- embodiments of the present invention include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
- the computer program may be downloaded and installed from a network through the communication section 909, and / or installed from a removable medium 911.
- this computer program is executed by a central processing unit (CPU) 901
- CPU central processing unit
- the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing.
- the computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- the computer-readable signal medium may include a data signal transmitted in baseband or transmitted as a part of a carrier wave, in which a computer-readable program code is carried. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
- Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
- each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more of the logic functions used to implement the specified logic.
- Executable instructions may also occur in a different order than those marked in the drawings. For example, two successively represented boxes may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with A combination of dedicated hardware and computer instructions.
- the units described in the embodiments of the present invention may be implemented by software or hardware.
- the described units may also be provided in a processor.
- the names of these units do not, in some cases, define the unit itself.
- the present application also provides a computer-readable medium, which may be included in the electronic device described in the foregoing embodiments; or may exist alone without being assembled into the electronic device in.
- the computer-readable medium carries one or more programs, and when the one or more programs are executed by one of the electronic devices, the electronic device is enabled to implement the method for detecting an electronic device as described in the foregoing embodiment.
- the electronic device may be implemented as shown in FIG. 1: step S110, detecting whether the electronic device receives an insertion event of a collection device; step S120, if yes, determining whether attribute information of the collection device is related to The configuration information stored by the electronic device matches; in step S130, if it matches, the state of the collection device is set to an available state; in step S140, if it does not match, the state of the collection device is set to an unavailable state.
- modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory.
- the features and functions of the two or more modules or units described above may be embodied in one module or unit.
- the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
- the technical solution according to the embodiment of the present invention may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, a U disk, a mobile hard disk, etc.) or on a network. It includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
- a computing device which may be a personal computer, a server, a touch terminal, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
A method for detecting an electronic device. The method comprises: detecting whether the electronic device receives an insert event of a collection apparatus being inserted into the electronic device (S110); if so, determining whether attribute information of the collection apparatus matches configuration information stored in the electronic device (S120); and if so, setting the state of the collection apparatus as an available state (S130). Further provided are an apparatus for detecting an electronic device, an electronic device and a computer-readable medium.
Description
本公开涉及电子设备技术领域,具体涉及一种电子设备的检测方法、一种电子设备的检测装置、一种电子设备、以及一种介质。The present disclosure relates to the technical field of electronic devices, and in particular, to a method for detecting an electronic device, a device for detecting an electronic device, an electronic device, and a medium.
随着互联网技术的快速发展,电子设备的更新速度也越来越快。目前,市面上已经出现了支持热插拔的电子设备。例如,谷歌公司的一款手机属于支持热插拔的手机。该电子设备的屏幕、摄像头、存储空间、电池甚至摄像头都是可以通过用户更换的。通常该手机在开机时,需要对手机的各个部件进行检测,并对各个部件的状态进行设置,以使得用户可以了解手机的各个部件的状态,这样方便用户对出现故障的部件进行维修或者更换。With the rapid development of Internet technology, the update speed of electronic devices is getting faster and faster. At present, electronic devices that support hot plugging have appeared on the market. For example, one of Google ’s phones is a hot-pluggable phone. The screen, camera, storage space, battery and even the camera of the electronic device can be replaced by the user. Generally, when the mobile phone is powered on, it is necessary to detect each component of the mobile phone and set the status of each component so that the user can understand the status of each component of the mobile phone, which is convenient for the user to repair or replace the faulty component.
但是,在实现本发明构思的过程中,发明人发现现有技术中至少存在如下问题:如果在手机开机时,各个部件都处于可用状态,但是在开机之后,由于用户在运动过程中对部分部件造成连接断开,在这种情况下,手机并没有对该部分部件重新检测以及标注其状态,这样导致用户在使用手机时部分部件支持的功能失灵,从而降低了用户体验。However, in the process of realizing the concept of the present invention, the inventors found that at least the following problems exist in the prior art: if the various components are in a usable state when the mobile phone is powered on, but after the power is turned on, because the user As a result, the connection is disconnected. In this case, the mobile phone does not re-detect and mark the status of the parts, which causes the user to fail in the functions supported by the parts when using the phone, thereby reducing the user experience.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.
发明内容Summary of the invention
根据本公开实施例提供的一种电子设备的检测方法、一种电子设备的检测装置、一种电子设备、以及一种介质,能够实时检测电子设备的采集装置的状态。A method for detecting an electronic device, a detection device for an electronic device, an electronic device, and a medium according to the embodiments of the present disclosure are capable of detecting a state of a collection device of the electronic device in real time.
根据本公开的第一方面提供一种电子设备的检测方法,包括检测所述电子设备是否接收到采集装置插入所述电子设备的插入事件;如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配;如果匹配,将所述采集装置的状态设置为可用状态。According to a first aspect of the present disclosure, there is provided a method for detecting an electronic device, including detecting whether the electronic device receives an insertion event of a collection device inserted into the electronic device; and if so, determining whether attribute information of the collection device is consistent with all The configuration information stored by the electronic device matches; if the configuration information matches, the state of the collection device is set to an available state.
根据本公开的实施例,该方法还包括:检测所述电子设备是否接收到所述采集装置的拔出事件;如果是,根据所述拔出事件,将所述采集装置设置为不可用状态。According to an embodiment of the present disclosure, the method further comprises: detecting whether the electronic device has received a pull-out event of the collection device; and if so, setting the collection device to an unavailable state according to the pull-out event.
根据本公开的实施例,当所述采集装置的状态为不可用状态时,该方法还包括将与所述采集装置相关的外设装置设置为休眠状态。According to an embodiment of the present disclosure, when the state of the acquisition device is an unavailable state, the method further includes setting a peripheral device related to the acquisition device to a sleep state.
根据本公开的实施例,当所述采集装置的使用状态由不可用状态变为可用状态时,该方法还包括:唤醒与所述采集装置相关的外设装置。According to an embodiment of the present disclosure, when the use state of the acquisition device is changed from an unavailable state to an available state, the method further includes: waking up a peripheral device related to the acquisition device.
根据本公开的实施例,该方法还包括检测所述电子设备的采集装置是否支持热插拔;如果支持,记录所述采集装置的属性信息。According to an embodiment of the present disclosure, the method further includes detecting whether the collecting device of the electronic device supports hot plugging; if so, recording attribute information of the collecting device.
根据本公开的实施例,所述采集装置的属性信息存储在所述电子设备的用户空间。According to an embodiment of the present disclosure, the attribute information of the collection device is stored in a user space of the electronic device.
根据本公开的实施例,所述外设装置包括连接所述采集装置的接口和/或为所述采集装置供电的电源。According to an embodiment of the present disclosure, the peripheral device includes an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
根据本公开的第二方面提供一种电子设备的检测装置,包括:检测模块,用于检测所述电子设备是否接收到采集装置的插入事件;判断模块,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配;设置模块,如果匹配,将所述采集装置的状态设置为可用状态。According to a second aspect of the present disclosure, there is provided a detection device for an electronic device, comprising: a detection module for detecting whether the electronic device has received an insertion event of a collection device; and a determination module, if so, determining the attributes of the collection device Whether the information matches the configuration information stored by the electronic device; and a setting module, if it matches, sets a state of the collection device to an available state.
根据本公开的第三方面提供了一种电子设备,包括:一个或多个处理器;以及存储装置,用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行上述第一方面提供的电子设备的检测方法。According to a third aspect of the present disclosure, there is provided an electronic device including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are used by the one When being executed by one or more processors, the one or more processors are caused to execute the method for detecting an electronic device provided by the first aspect.
根据本公开的第四方面提供一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述第一方面提供的电子设备的检测方法。According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having executable instructions stored thereon, which when executed by a processor, cause the processor to perform the method for detecting an electronic device provided by the first aspect.
由上述技术方案可知,本公开提供的一种虚拟系统蓝牙通信方法,其优点和积极效果在于:It can be known from the foregoing technical solutions that the virtual system Bluetooth communication method provided by the present disclosure has the advantages and positive effects of:
本公开的一种实施例所提供的电子设备的检测方法,该方法可以在电子设备启动之后,通过检测电子设备是否接收到采集装置的插入事件来判断采集装置的状态。具体地,如果确定该电子设备接收到采集装置的插入事件,可以进一步判断采集设备的属性信息是否与该电子设备存储的配置信息匹配,如果匹配,将采集装置的状态设置为可用状态,反之,如果不匹配,将采集装置的状态设置为不可用状态,这样使得用户可以实时了解到采集设备的状态,进而不会影响用户的使用,提高了用户体验。A method for detecting an electronic device according to an embodiment of the present disclosure. After the electronic device is started, the method can determine the state of the collecting device by detecting whether the electronic device receives an insertion event of the collecting device. Specifically, if it is determined that the electronic device receives the insertion event of the collection device, it can be further judged whether the attribute information of the collection device matches the configuration information stored by the electronic device, and if it matches, the status of the collection device is set to an available state, otherwise, If they do not match, the status of the collection device is set to an unavailable state, so that the user can know the status of the collection device in real time, which will not affect the user's use and improve the user experience.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the disclosure will become apparent from the following detailed description, or may be learned in part through the practice of the disclosure.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present disclosure.
图1示意性示出了根据本公开实施例的电子设备的检测方法的流程图;FIG. 1 schematically illustrates a flowchart of a method for detecting an electronic device according to an embodiment of the present disclosure;
图2示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图;2 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure;
图3示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图;3 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure;
图4示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图;4 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure;
图5示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图;5 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure;
图6示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图;6 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure;
图7示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图;7 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure;
图8示意性示出了根据本公开实施例的电子设备的检测装置的方框图;FIG. 8 schematically illustrates a block diagram of a detection apparatus for an electronic device according to an embodiment of the present disclosure;
图9示意性示出了根据本公开实施例的电子设备的计算机系统的方框图。FIG. 9 schematically illustrates a block diagram of a computer system of an electronic device according to an embodiment of the present disclosure.
现在将结合附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, the embodiments are provided so that this disclosure will be more comprehensive and complete, and the concepts of the example embodiments will be fully conveyed To those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure may be practiced without omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, well-known technical solutions are not shown or described in detail to avoid obsession and obscure aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。In addition, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus repeated descriptions thereof will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily have to correspond to physically or logically independent entities. These functional entities may be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
用语“一个”、“一”、“该”和“所述”用以表示存在一个或多个要素/组成部分/等;用语“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;用语“第一”和“第二”等仅作为标记使用,不是对其对象的数量限制。The terms "a," "an," "the," and "said" are used to indicate the presence of one or more elements / components / etc .; the terms "include" and "having" are used to include open-ended inclusive Means and means that there may be additional elements / components / etc. In addition to the listed elements / components / etc; the terms "first" and "second" etc. are only used as markers, not their number of objects limit.
图1示意性示出了根据本公开实施例的电子设备的检测方法的流程图。FIG. 1 schematically illustrates a flowchart of a detection method of an electronic device according to an embodiment of the present disclosure.
如图1所示,电子设备的检测方法包括步骤S110~步骤S140。As shown in FIG. 1, the method for detecting an electronic device includes steps S110 to S140.
在步骤S110中,检测所述电子设备是否接收到采集装置的插入事件。In step S110, it is detected whether the electronic device receives an insertion event of a collection device.
在步骤S120中,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配。In step S120, if yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device.
在步骤S130中,如果匹配,将所述采集装置的状态设置为可用状态。In step S130, if there is a match, the state of the acquisition device is set to an available state.
在步骤S140中,如果不匹配,将所述采集装置的状态设置为不可用状态。In step S140, if there is no match, the state of the collection device is set to an unavailable state.
该方法可以在电子设备启动之后,通过检测电子设备是否接收到采集装置的插入事件来判断采集装置的状态。具体地,如果确定该电子设备接收到采集装置的插入事件,可以进一步判断采集设备的属性信息是否与该电子设备存储的配置信息匹配,如果匹配,将采集装置的状态设置为可用状态,反之,如果不匹配,将采集装置的状态设置为不可用状态,这样使得用户可以实时了解到采集设备的状态,进而不会影响用户的使用,提高了用户体验。After the electronic device is started, the method can determine the state of the collecting device by detecting whether the electronic device receives an insertion event of the collecting device. Specifically, if it is determined that the electronic device receives the insertion event of the collection device, it can be further judged whether the attribute information of the collection device matches the configuration information stored by the electronic device, and if it matches, the status of the collection device is set to an available state, otherwise, If they do not match, the status of the collection device is set to an unavailable state, so that the user can know the status of the collection device in real time, which will not affect the user's use and improve the user experience.
在本公开的一些实施例,电子设备可以是手机,但不限于手机。例如,可以是支持采集装置热插拔的手机。所述采集装置可以手机的照相机模块。In some embodiments of the present disclosure, the electronic device may be a mobile phone, but is not limited to a mobile phone. For example, it can be a mobile phone that supports hot plugging of the collection device. The acquisition device may be a camera module of a mobile phone.
在本公开的一些实施例,可以实时检测电子设备中的采集装置的插拔状态,当采集装 置插到电子设备时,采集装置的服务程序接收到了采集装置的插入事件,在这种情况下,采集装置的服务程序还可以用于判断该采集装置的属性信息是否与电子设备存储的配置信息匹配,并根据判断结果设置对应采集装置的状态。In some embodiments of the present disclosure, it is possible to detect the plug-in state of the collection device in the electronic device in real time. When the collection device is inserted into the electronic device, the service program of the collection device receives the insertion event of the collection device. In this case, The service program of the collection device can also be used to determine whether the attribute information of the collection device matches the configuration information stored by the electronic device, and set the state of the corresponding collection device according to the determination result.
例如,采集装置的服务程序可以检测电子设备中的采集装置的配置信息,得到电子设备当前支持的采集装置的总数量,以及各个采集装置的属性信息。对于支持热插拔的采集装置,在电子设备启动时并不立即进行采集装置的检测等过程,而是直接跳过该过程,设置热插拔采集装置的状态为不可用,然后等待采集装置的服务程序接收到采集装置的插入事件后,判断采集装置的属性信息与电子设备存储的配置信息的匹配情况,并根据匹配结果设置采集装置的状态为可用,并通知相应的应用程序。相反,在采集装置的服务程序接收到采集装置的拔出事件后,采集装置的服务程序设置采集装置的状态为不可用,并通知相应的应用程序。For example, the service program of the collection device can detect the configuration information of the collection device in the electronic device, obtain the total number of collection devices currently supported by the electronic device, and attribute information of each collection device. For acquisition devices that support hot-swap, the detection process of the acquisition device is not immediately performed when the electronic device is started, but the process is skipped directly, the status of the hot-swap acquisition device is set to unavailable, and then waiting for the acquisition device After receiving the insertion event of the collecting device, the service program judges the matching between the attribute information of the collecting device and the configuration information stored by the electronic device, sets the status of the collecting device to be available according to the matching result, and notifies the corresponding application program. On the contrary, after the service program of the collection device receives the unplugging event of the collection device, the service program of the collection device sets the status of the collection device to unavailable and notifies the corresponding application program.
当采集装置从电子设备上拔出时,具体实施过程可以参考图2。When the collecting device is unplugged from the electronic device, the specific implementation process can refer to FIG. 2.
如图2所示,该方法还包括步骤S210和步骤S220。As shown in FIG. 2, the method further includes steps S210 and S220.
在步骤S210中,检测所述电子设备是否接收到所述采集装置的拔出事件。In step S210, it is detected whether the electronic device has received the unplugging event of the collection device.
在步骤S220中,如果是,根据所述拔出事件,将所述采集装置设置为不可用状态。In step S220, if yes, the acquisition device is set to an unavailable state according to the unplugging event.
该方法可以根据接收到采集装置的拔出事件来设定采集装置的状态。例如,如果采集装置与电子设备接口接触不良,或者采集装置出现故障,通过上述方法可以便于用户及时维护或更换采集装置。This method can set the state of the collecting device according to the unplugging event received from the collecting device. For example, if the interface between the acquisition device and the electronic device is poor, or the acquisition device fails, the above method can facilitate users to maintain or replace the acquisition device in a timely manner.
在本公开的一些实施例,当采集装置从电子设备上拔出时,采集装置的服务程序接收到了采集装置的拔出事件,采集装置的服务程序可以根据该拔出事件将采集装置的状态设置为不可用状态,处于不可用状态下的采集装置不能使用其相应的功能。In some embodiments of the present disclosure, when the collecting device is unplugged from the electronic device, the service program of the collecting device receives the unplugging event of the collecting device, and the service program of the collecting device may set the state of the collecting device according to the unplugging event. In the unavailable state, the acquisition device in the unavailable state cannot use its corresponding function.
图3示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图。FIG. 3 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
如图3所示,当所述采集装置的状态为不可用状态时,该方法还包括步骤S310。As shown in FIG. 3, when the state of the collection device is an unavailable state, the method further includes step S310.
在步骤S110中,检测所述电子设备是否接收到采集装置的插入事件。In step S110, it is detected whether the electronic device receives an insertion event of a collection device.
在步骤S120中,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配。In step S120, if yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device.
在步骤S130中,如果匹配,将所述采集装置的状态设置为可用状态。In step S130, if there is a match, the state of the acquisition device is set to an available state.
在步骤S140中,如果不匹配,将所述采集装置的状态设置为不可用状态。In step S140, if there is no match, the state of the collection device is set to an unavailable state.
在步骤S310中,当所述采集装置的状态为不可用状态时,将与所述采集装置相关的外设装置设置为休眠状态。In step S310, when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
在该方法中,当插入电子设备的采集装置的属性信息与电子设备的配置信息不匹配时,将该采集装置的状态设置为不可用状态,并且将与该采集装置相关的外设装置设置为休眠状态,这样有助于为电子设备节省电量,从而增长了电子设备的待机时间。In this method, when the attribute information of the collection device inserted into the electronic device does not match the configuration information of the electronic device, the state of the collection device is set to an unavailable state, and the peripheral device related to the collection device is set to The hibernation state helps to save power for the electronic device, thereby increasing the standby time of the electronic device.
在本公开的一些实施例,外设装置可以包括连接采集装置的接口和/或为采集装置供电的电源。In some embodiments of the present disclosure, the peripheral device may include an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
图4示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图。FIG. 4 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
如图4所示,当所述采集装置的状态为不可用状态时,该方法还包括步骤S410。As shown in FIG. 4, when the state of the collection device is an unavailable state, the method further includes step S410.
在步骤S210中,检测所述电子设备是否接收到所述采集装置的拔出事件。In step S210, it is detected whether the electronic device has received the unplugging event of the collection device.
在步骤S220中,如果是,根据所述拔出事件,将所述采集装置设置为不可用状态。In step S220, if yes, the acquisition device is set to an unavailable state according to the unplugging event.
在步骤S410中,当所述采集装置的状态为不可用状态时,将与所述采集装置相关的外设装置设置为休眠状态。In step S410, when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
在该方法中,如果电子设备接收到所述采集装置的拔出事件时,将该采集装置设置为不可用状态,并将与该采集装置相关的外设装置设置为休眠状态,这样有助于为电子设备节省电量,从而增长了电子设备的待机时间。In this method, if the electronic device receives the unplugging event of the acquisition device, the acquisition device is set to an unavailable state, and a peripheral device related to the acquisition device is set to a sleep state, which helps Save power for electronic devices, thereby increasing the standby time of electronic devices.
在本公开的一些实施例,外设装置可以包括连接采集装置的接口和/或为采集装置供电的电源。In some embodiments of the present disclosure, the peripheral device may include an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
图5示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图。FIG. 5 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
如图5所示,当所述采集装置的状态由不可用状态变为可用状态时,该方法还包括步骤S510。As shown in FIG. 5, when the state of the collection device is changed from an unavailable state to an available state, the method further includes step S510.
在步骤S110中,检测所述电子设备是否接收到采集装置的插入事件。In step S110, it is detected whether the electronic device receives an insertion event of a collection device.
在步骤S120中,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配。In step S120, if yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device.
在步骤S130中,如果匹配,将所述采集装置的状态设置为可用状态。In step S130, if there is a match, the state of the acquisition device is set to an available state.
在步骤S140中,如果不匹配,将所述采集装置的状态设置为不可用状态。In step S140, if there is no match, the state of the collection device is set to an unavailable state.
在步骤S310中,当所述采集装置的状态为不可用状态时,将与所述采集装置相关的外设装置设置为休眠状态。In step S310, when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
在步骤S510中,当所述采集装置的状态由不可用状态变为可用状态时,唤醒与采集装置相关的外设装置。In step S510, when the state of the acquisition device changes from an unavailable state to an available state, the peripheral device related to the acquisition device is woken up.
在该方法中,当插入电子设备的采集装置的属性信息与电子设备的配置信息不匹配时,将该采集装置的状态设置为不可用状态,并将与采集装置相关的外设装置设置为休眠状态,在这种情况下,如果用户在一段时间后,用户更换了新的采集装置,并且此时该采集装置的属性信息与电子设备存储的配置信息匹配,将采集装置的不可用状态修改为可用状态,同时唤醒与采集装置相关的外设装置,从而实现了智能化控制外设装置的状态。In this method, when the attribute information of the collection device inserted into the electronic device does not match the configuration information of the electronic device, the state of the collection device is set to an unavailable state, and the peripheral device related to the collection device is set to sleep. State, in this case, if the user replaces a new acquisition device after a period of time, and at this time the attribute information of the acquisition device matches the configuration information stored by the electronic device, the unavailable state of the acquisition device is modified to The available state, while awakening the peripheral device related to the acquisition device, thereby intelligently controlling the status of the peripheral device.
在本公开的一些实施例,如果插入电子设备的采集装置的属性信息与电子设备的配置信息不匹配时,用户可以通过查看电子设备存储的采集装置的配置信息获取该电子设备可以支持哪些种类的采集装置,这样方便用户快速的找到该电子设备支持的采集装置。In some embodiments of the present disclosure, if the attribute information of the collection device inserted into the electronic device does not match the configuration information of the electronic device, the user can obtain which types of electronic devices can support by viewing the configuration information of the collection device stored by the electronic device. Acquisition device, so that users can quickly find the acquisition device supported by the electronic device.
图6示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图。FIG. 6 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
如图6所示,当所述采集装置的状态由不可用状态变为可用状态时,该方法还包括步骤S610。As shown in FIG. 6, when the state of the collection device is changed from an unavailable state to an available state, the method further includes step S610.
在步骤S210中,检测所述电子设备是否接收到所述采集装置的拔出事件。In step S210, it is detected whether the electronic device has received the unplugging event of the collection device.
在步骤S220中,如果是,根据所述拔出事件,将所述采集装置设置为不可用状态。In step S220, if yes, the acquisition device is set to an unavailable state according to the unplugging event.
在步骤S410中,当所述采集装置的状态为不可用状态时,将与所述采集装置相关的外设装置设置为休眠状态。In step S410, when the state of the acquisition device is an unavailable state, a peripheral device related to the acquisition device is set to a sleep state.
在步骤S610中,当所述采集装置的状态由不可用状态变为可用状态时,唤醒与采集装置相关的外设装置。In step S610, when the state of the acquisition device changes from an unavailable state to an available state, the peripheral device related to the acquisition device is woken up.
在该方法中,当电子设备接收到所述采集装置的拔出事件时,将该采集装置的状态设置为不可用状态,并将与采集装置相关的外设装置设置为休眠状态,在这种情况下,如果用户在一段时间后,又将采集装置插入电子设备,将采集装置的不可用状态修改为可用状态,同时唤醒与采集装置相关的外设装置,从而实现了智能化控制外设装置的状态。In this method, when the electronic device receives the unplugging event of the acquisition device, the state of the acquisition device is set to an unavailable state, and the peripheral device related to the acquisition device is set to a sleep state. In some cases, if the user inserts the acquisition device into the electronic device after a period of time, the unavailable state of the acquisition device is changed to the available state, and the peripheral device related to the acquisition device is woken up at the same time. status.
在本公开的一些实施例,外设装置可以包括连接采集装置的接口和/或为采集装置供电的电源。In some embodiments of the present disclosure, the peripheral device may include an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
图7示意性示出了根据本公开另一个实施例的电子设备的检测方法的流程图。FIG. 7 schematically illustrates a flowchart of a method for detecting an electronic device according to another embodiment of the present disclosure.
如图7所示,该方法还包括步骤S710和步骤S720。As shown in FIG. 7, the method further includes steps S710 and S720.
在步骤S710中,检测所述电子设备的采集装置是否支持热插拔。In step S710, it is detected whether the collection device of the electronic device supports hot plugging.
在步骤S720中,如果支持,记录所述采集装置的属性信息。In step S720, if supported, record the attribute information of the collection device.
该方法可以检测电子设备的采集装置是否支持热插拔,如果支持,记录所述采集装置的属性信息,这样方便积累该电子设备具体支持哪些采集装置。The method can detect whether the collecting device of the electronic device supports hot plugging, and if so, record the attribute information of the collecting device, so as to facilitate the accumulation of which collecting devices the electronic device specifically supports.
在本公开的一些实施例,采集装置的属性信息可以包括但不限于分辨率、像素、高清摄像、传感器尺寸、传感器类型、拍摄性能、接口参数、闪光灯参数、镜头参数、曝光控制等等。In some embodiments of the present disclosure, the attribute information of the collecting device may include, but is not limited to, resolution, pixels, high-definition camera, sensor size, sensor type, shooting performance, interface parameters, flash parameters, lens parameters, exposure control, and so on.
在本公开的一些实施例,采集装置的属性信息存储在电子设备的用户空间。例如,采集装置的属性信息可以存储在用户空间的照相机实现框架中。In some embodiments of the present disclosure, the attribute information of the collection device is stored in a user space of the electronic device. For example, the attribute information of the acquisition device may be stored in a camera implementation framework in user space.
在本公开的一些实施例,可以通过存储在内核空间的控制指令来实现采集装置的功能。例如,控制指令可以存储在内核空间的照相机实现框架中,该控制指令可以实现照相机的拍照、摄像等功能。In some embodiments of the present disclosure, the function of the acquisition device may be implemented by control instructions stored in a kernel space. For example, the control instruction may be stored in a camera implementation framework in the kernel space, and the control instruction may implement functions of the camera such as photographing and video recording.
例如,在实施本公开提供的电子设备的检测方法的过程中,电子设备的操作系统内核中的照相机实现框架可以读取用户空间中存储的照相机的配置信息,并根据照相机的配置信息启动运行支持照相机模块运行的处理器外设的驱动。支持热插拔的照相机模块,在电子设备启动时并不立即启动运行支持该照相机模块运行的处理器外设的驱动,而是保持未启动的状态。当照相机服务程序接收到照相机模块的插入事件后,启动检测模块检测时,再启动运行支持该照相机模块运行的处理器外设的驱动,以支持照相机模块检测的过程。当照相机服务程序接收到照相机模块的拔出事件后,将支持该照相机模块运行的处理器外设装置设置为休眠模式。当照相机服务程序再次接收到照相机模块的插入事件后,将支持该照相机模块运行的处理器外设装置设置为唤醒模式,以支持对照相机模块的操作。For example, in the process of implementing the detection method for an electronic device provided by the present disclosure, the camera implementation framework in the operating system kernel of the electronic device can read the configuration information of the camera stored in the user space, and start running support according to the configuration information of the camera A driver for the processor peripherals that the camera module runs. A camera module that supports hot-swap does not immediately start a driver that runs a processor peripheral that supports the operation of the camera module when the electronic device is started, but maintains a non-started state. After the camera service program receives the insertion event of the camera module and starts detection by the detection module, it starts a driver that runs a processor peripheral that supports the operation of the camera module to support the camera module detection process. When the camera service program receives the unplugging event of the camera module, the processor peripheral device supporting the operation of the camera module is set to the sleep mode. After the camera service program receives the insertion event of the camera module again, the processor peripheral device supporting the operation of the camera module is set to the wake-up mode to support the operation of the camera module.
图8示意性示出了根据本公开实施例的电子设备的检测装置的方框图。FIG. 8 schematically illustrates a block diagram of a detection apparatus for an electronic device according to an embodiment of the present disclosure.
如图8所示,电子设备的检测装置800包括检测模块810、判断模块820和设置模块830。As shown in FIG. 8, the detection device 800 of the electronic device includes a detection module 810, a determination module 820, and a setting module 830.
具体地,检测模块810,用于检测所述电子设备是否接收到采集装置的插入事件。Specifically, the detection module 810 is configured to detect whether the electronic device receives an insertion event of a collection device.
判断模块820,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配。The determining module 820 determines whether the attribute information of the collection device matches the configuration information stored by the electronic device.
设置模块830,如果匹配,将所述采集装置的状态设置为可用状态。The setting module 830, if it matches, sets the state of the acquisition device to an available state.
该电子设备的检测装置800可以在电子设备启动之后,通过检测电子设备是否接收到采集装置的插入事件来判断采集装置的状态。具体地,如果确定该电子设备接收到采集装置的插入事件,可以进一步判断采集设备的属性信息是否与该电子设备存储的配置信息匹配,如果匹配,将采集装置的状态设置为可用状态,反之,如果不匹配,将采集装置的状态设置为不可用状态,这样使得用户可以实时了解到采集设备的状态,进而不会影响用户的使用,提高了用户体验。The detection device 800 of the electronic device may determine the state of the collection device by detecting whether the electronic device receives an insertion event of the collection device after the electronic device is started. Specifically, if it is determined that the electronic device receives the insertion event of the collection device, it can be further determined whether the attribute information of the collection device matches the configuration information stored by the electronic device, and if it matches, the status of the collection device is set to an available state, and vice versa, If they do not match, the status of the collection device is set to an unavailable state, so that the user can know the status of the collection device in real time, which will not affect the user's use and improve the user experience.
根据本发明的实施例,电子设备的检测装置800可以用于实现上述图1~图7描述的电子设备的检测方法。According to the embodiment of the present invention, the detection device 800 for an electronic device may be used to implement the detection method for the electronic device described in FIG. 1 to FIG. 7 described above.
由于本发明的示例实施例的电子设备的检测装置800的各个模块可以用于实现上述电子设备的检测方法的示例实施例的步骤,因此对于本发明装置实施例中未披露的细节,请参照本发明上述的电子设备的检测方法的实施例。Since each module of the detection device 800 of the electronic device according to the example embodiment of the present invention can be used to implement the steps of the example embodiment of the detection method of the electronic device, for details not disclosed in the device embodiment of the present invention, please refer to this An embodiment of the above-mentioned detection method for an electronic device.
图9示意性示出了根据本公开实施例的电子设备的计算机系统的方框图。FIG. 9 schematically illustrates a block diagram of a computer system of an electronic device according to an embodiment of the present disclosure.
下面参考图9,其示出了适于用来实现本发明实施例的电子设备的计算机系统900的结构示意图。图9示出的电子设备的计算机系统900仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Reference is now made to FIG. 9, which illustrates a schematic structural diagram of a computer system 900 suitable for implementing an electronic device according to an embodiment of the present invention. The computer system 900 of the electronic device shown in FIG. 9 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
如图9所示,计算机系统900包括中央处理单元(CPU)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储部分908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有系统操作所需的各种程序和数据。CPU 901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9, the computer system 900 includes a central processing unit (CPU) 901, which may be based on a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903. Instead, perform various appropriate actions and processes. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
以下部件连接至I/O接口905:包括键盘、鼠标等的输入部分906;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分907;包括硬盘等的存储部分908;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分909。通信部分909经由诸如因特网的网络执行通信处理。驱动器910也根据需要连接至I/O接口905。可拆卸介质911,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器910上,以便于从其上读出的计算机程序根据需要被安装入存储部分908。The following components are connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the speaker; a storage portion 908 including a hard disk and the like And a communication section 909 including a network interface card such as a LAN card, a modem, and the like. The communication section 909 performs communication processing via a network such as the Internet. The driver 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
特别地,根据本发明的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分909从网络上被下载和安装,和/或从可拆卸介质911被安装。在该计算机程序被中央处理单元(CPU)901执行时,执行本申请的系统中限定的上述功能。In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present invention include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and / or installed from a removable medium 911. When this computer program is executed by a central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present application are executed.
需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium may include a data signal transmitted in baseband or transmitted as a part of a carrier wave, in which a computer-readable program code is carried. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指 令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more of the logic functions used to implement the specified logic. Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than those marked in the drawings. For example, two successively represented boxes may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with A combination of dedicated hardware and computer instructions.
描述于本发明实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor. The names of these units do not, in some cases, define the unit itself.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如上述实施例中所述的电子设备的检测方法。As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the foregoing embodiments; or may exist alone without being assembled into the electronic device in. The computer-readable medium carries one or more programs, and when the one or more programs are executed by one of the electronic devices, the electronic device is enabled to implement the method for detecting an electronic device as described in the foregoing embodiment.
例如,所述的电子设备可以实现如图1中所示的:步骤S110,检测所述电子设备是否接收到采集装置的插入事件;步骤S120,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配;步骤S130,如果匹配,将所述采集装置的状态设置为可用状态;步骤S140,如果不匹配,将所述采集装置的状态设置为不可用状态。For example, the electronic device may be implemented as shown in FIG. 1: step S110, detecting whether the electronic device receives an insertion event of a collection device; step S120, if yes, determining whether attribute information of the collection device is related to The configuration information stored by the electronic device matches; in step S130, if it matches, the state of the collection device is set to an available state; in step S140, if it does not match, the state of the collection device is set to an unavailable state.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本发明的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of the two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本发明实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本发明实施方式的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, a U disk, a mobile hard disk, etc.) or on a network. It includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily contemplate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the present invention. These variations, uses, or adaptations follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed by the present invention. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims.
Claims (10)
- 一种电子设备的检测方法,包括:A detection method for electronic equipment includes:检测所述电子设备是否接收到采集装置的插入事件;Detecting whether the electronic device receives an insertion event of a collection device;如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配;If yes, determine whether the attribute information of the collection device matches the configuration information stored by the electronic device;如果匹配,将所述采集装置的状态设置为可用状态。If they match, the state of the acquisition device is set to a usable state.
- 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:检测所述电子设备是否接收到所述采集装置的拔出事件;Detecting whether the electronic device has received the unplugging event of the collection device;如果是,根据所述拔出事件,将所述采集装置设置为不可用状态。If yes, set the collection device to an unavailable state according to the unplugging event.
- 根据权利要求1所述的方法,其特征在于,当所述采集装置的状态为不可用状态时,该方法还包括:The method according to claim 1, wherein when the state of the collection device is an unavailable state, the method further comprises:将与所述采集装置相关的外设装置设置为休眠状态。Setting a peripheral device related to the acquisition device to a sleep state.
- 根据权利要求1所述的方法,其特征在于,当所述采集装置的使用状态由不可用状态变为可用状态时,该方法还包括:The method according to claim 1, wherein when the use state of the collection device is changed from an unavailable state to a usable state, the method further comprises:唤醒与所述采集装置相关的外设装置。Wake up a peripheral device related to the acquisition device.
- 根据权利要求1所述的方法,还包括:The method of claim 1, further comprising:检测所述电子设备的采集装置是否支持热插拔;Detecting whether the collection device of the electronic device supports hot plugging;如果支持,记录所述采集装置的属性信息。If supported, record the attribute information of the collection device.
- 根据权利要求5所述的方法,其特征在于,所述采集装置的属性信息存储在所述电子设备的用户空间。The method according to claim 5, wherein the attribute information of the collection device is stored in a user space of the electronic device.
- 根据权利要求3或4所述的方法,其特征在于,所述外设装置包括连接所述采集装置的接口和/或为所述采集装置供电的电源。The method according to claim 3 or 4, wherein the peripheral device comprises an interface connected to the acquisition device and / or a power supply for powering the acquisition device.
- 一种电子设备的检测装置,包括:A detection device for electronic equipment includes:检测模块,用于检测所述电子设备是否接收到采集装置的插入事件;A detection module, configured to detect whether the electronic device receives an insertion event of a collection device;判断模块,如果是,判断所述采集设备的属性信息是否与所述电子设备存储的配置信息匹配;A judging module, if yes, judging whether the attribute information of the collecting device matches the configuration information stored by the electronic device;设置模块,如果匹配,将所述采集装置的状态设置为可用状态。The setting module, if matched, sets a state of the acquisition device to an available state.
- 一种电子设备,包括:An electronic device includes:一个或多个处理器;以及One or more processors; and存储装置,用于存储一个或多个程序,A storage device for storing one or more programs,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行根据权利要求1~7任意一项所述的方法。Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method according to any one of claims 1 to 7.
- 一种计算机可读介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行根据权利要求1~7任意一项所述的方法。A computer-readable medium stores executable instructions, which when executed by a processor, cause the processor to execute the method according to any one of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201880001321.XA CN109076127A (en) | 2018-08-10 | 2018-08-10 | Detection method, device, electronic equipment and the medium of electronic equipment |
PCT/CN2018/099944 WO2020029244A1 (en) | 2018-08-10 | 2018-08-10 | Method and apparatus for detecting electronic device, and electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/099944 WO2020029244A1 (en) | 2018-08-10 | 2018-08-10 | Method and apparatus for detecting electronic device, and electronic device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020029244A1 true WO2020029244A1 (en) | 2020-02-13 |
Family
ID=64789334
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/099944 WO2020029244A1 (en) | 2018-08-10 | 2018-08-10 | Method and apparatus for detecting electronic device, and electronic device and medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109076127A (en) |
WO (1) | WO2020029244A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393791A (en) * | 2011-07-06 | 2012-03-28 | 杭州华三通信技术有限公司 | Device and method for realizing power supply control on hardware modules |
CN103870376A (en) * | 2012-12-12 | 2014-06-18 | 联想(北京)有限公司 | Electronic device extension board card detection method and electronic device |
CN107153621A (en) * | 2017-04-20 | 2017-09-12 | 青岛海信电器股份有限公司 | device identification method and device |
CN107608739A (en) * | 2017-09-18 | 2018-01-19 | 广州视源电子科技股份有限公司 | Method, device and equipment for automatically running program on HID (human interface device) |
CN107918550A (en) * | 2016-10-08 | 2018-04-17 | 中标软件有限公司 | A kind of method for USB device history service condition of auditing under linux system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750355A (en) * | 2013-12-31 | 2015-07-01 | 三星电子株式会社 | Screen display method and electronic device supporting same |
CN103809879B (en) * | 2014-02-20 | 2017-01-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2018
- 2018-08-10 WO PCT/CN2018/099944 patent/WO2020029244A1/en active Application Filing
- 2018-08-10 CN CN201880001321.XA patent/CN109076127A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393791A (en) * | 2011-07-06 | 2012-03-28 | 杭州华三通信技术有限公司 | Device and method for realizing power supply control on hardware modules |
CN103870376A (en) * | 2012-12-12 | 2014-06-18 | 联想(北京)有限公司 | Electronic device extension board card detection method and electronic device |
CN107918550A (en) * | 2016-10-08 | 2018-04-17 | 中标软件有限公司 | A kind of method for USB device history service condition of auditing under linux system |
CN107153621A (en) * | 2017-04-20 | 2017-09-12 | 青岛海信电器股份有限公司 | device identification method and device |
CN107608739A (en) * | 2017-09-18 | 2018-01-19 | 广州视源电子科技股份有限公司 | Method, device and equipment for automatically running program on HID (human interface device) |
Also Published As
Publication number | Publication date |
---|---|
CN109076127A (en) | 2018-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI684859B (en) | Method for remote system recovery | |
US9501291B2 (en) | Method and system for providing hybrid-shutdown and fast startup processes | |
CN108566634B (en) | Method and device for reducing continuous awakening delay of Bluetooth sound box and Bluetooth sound box | |
WO2019119994A1 (en) | Method and device for preloading application, storage medium, and terminal device | |
US11086635B2 (en) | Electronic device, method for controlling electronic device, and program | |
US7478187B2 (en) | System and method for information handling system hot insertion of external graphics | |
US9678560B2 (en) | Methods and apparatuses to wake computer systems from sleep states | |
CN101371240B (en) | Fast display initialization and light up | |
US8345891B2 (en) | Intelligent selective system mute | |
US20160062780A1 (en) | Pausing virtual machine based on idle state | |
US10283117B2 (en) | Systems and methods for identification of response cue at peripheral device | |
CN111459523A (en) | Image quality chip software upgrading method and device, electronic equipment and storage medium | |
CN109445994A (en) | Starting processing method, device, terminal device and storage medium | |
CN112764817A (en) | Equipment function awakening method and device | |
CN116339838A (en) | Server starting method and device, electronic equipment and storage medium | |
US9513686B2 (en) | Context based power saving | |
WO2020029244A1 (en) | Method and apparatus for detecting electronic device, and electronic device and medium | |
WO2020113469A1 (en) | Power on self test method, power on self test device and mobile terminal | |
US11687484B2 (en) | Electronic device and operation method thereof | |
US20230030973A1 (en) | Change of firmware settings | |
CN106407087B (en) | Device power monitoring and optimization | |
CN112015443A (en) | Upgrading method and device for electronic equipment, electronic equipment and storage medium | |
US11854500B2 (en) | Display brightness management for loading content | |
US12111707B2 (en) | System and method for power management of devices connected to data processing systems | |
US20240231453A9 (en) | System and method for identifying presence and function of components of data processing systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18929122 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14/05/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18929122 Country of ref document: EP Kind code of ref document: A1 |