Electronic equipment control method and device, electronic equipment and readable storage medium
By determining the location and application type of electronic devices while the vehicle is in motion, and restricting unsafe applications, the safety risks caused by the driver operating electronic devices are resolved, achieving precise control and improved safety.
Patent Information
- Application Number
- CN202411048126.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-01
AI Technical Summary
Safety risks arising from drivers operating electronic devices while driving cannot be precisely controlled by existing technologies that analyze video footage due to privacy concerns.
By determining whether electronic devices are located in the driver's area and what types of applications are running while the vehicle is in motion, the use of unsafe applications can be restricted, thus preventing driver distraction.
It enables precise control over the driver's use of electronic devices, reducing driver distraction, improving driving safety, and without involving privacy issues.
Smart Images

Figure CN118876867A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of driving safety technology, and in particular, relates to an electronic equipment control method, device, electronic equipment and readable storage medium. Background Art
[0002] With the rapid development of the automobile industry, driving safety issues are receiving increasing attention. Especially with the popularity of smartphones, traffic accidents caused by operating mobile phones while driving are frequent. Traditional safety measures mainly rely on the constraints of laws and regulations, but some drivers still operate their mobile phones while driving, which easily leads to distraction and seriously affects driving safety. Summary of the invention
[0003] The embodiments of the present application provide an electronic device control method, device, electronic device and readable storage medium to control the driver's use of the electronic device during vehicle driving and improve driving safety.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, wherein the electronic device is located in a vehicle, and the method for controlling the electronic device includes:
[0005] When the vehicle is in a driving state, the electronic device is located in a driver's area of the vehicle, and the electronic device is in use, determining a type of application currently running on the electronic device;
[0006] If the currently running application type is a non-safe application type, the use of the currently running application is restricted, and the non-safe application type includes an application type that affects safe driving.
[0007] In an embodiment of the present application, when a vehicle is in motion, an electronic device is located in the driver's area of the vehicle, and the electronic device is in use, by determining the type of application currently running on the electronic device, if the currently running application type is an application type that affects safe driving, the use of the currently running application can be restricted, thereby reducing the driver's distraction and improving driving safety.
[0008] In a second aspect, an embodiment of the present application provides an electronic device control device, wherein the electronic device is located in a vehicle, and the electronic device control device includes:
[0009] an application determination module, configured to determine a type of application currently running on the electronic device when the vehicle is in a driving state, the electronic device is located in a driver's area of the vehicle, and the electronic device is in a use state;
[0010] The application restriction module is used to restrict the use of the currently running application if the currently running application type is a non-safe application type, and the non-safe application type includes an application type that affects safe driving.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device control method as described in the first aspect above is implemented.
[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the electronic device control method as described in the first aspect above is implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the electronic device control method described in the first aspect above.
[0014] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 is a schematic flow chart of an electronic device control method provided in an embodiment of the present application;
[0017] Figure 2 is a schematic flow chart of implementing different degrees of control on an electronic device provided by an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of the structure of an electronic device control device provided in an embodiment of the present application;
[0019] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0021] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0022] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0023] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0024] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0025] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0026] In order to solve the safety risks caused by the driver operating electronic devices during driving, in the relevant technology, video image analysis is usually used to determine whether the driver is using a mobile phone, but this video image analysis method requires the collection of video images in the car, which involves privacy issues, and the camera in the car cannot fully capture every corner of the driver's position, and it is impossible to achieve precise control of the use of electronic devices. In order to solve this technical problem, the embodiment of the present application provides an electronic device control method. When the vehicle is in a driving state, the electronic device is located in the driver's area of the vehicle, and the electronic device is in use, by determining the application currently running on the electronic device, when the currently running application is an application that affects safe driving, the use of the currently running application can be restricted, thereby achieving precise control of the use of electronic devices during driving, reducing the driver's distraction, and improving driving safety, and the above process does not involve privacy issues.
[0027] It should be noted that the information collection process involved in this application (such as the facial image collection process) is carried out with the user's knowledge and permission, that is, the information collection process complies with the requirements of laws and regulations and does not constitute an act that harms the public interest.
[0028] The electronic device control method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, laptop computers, netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0029] See also Figure 1 , Figure 1 A schematic flow chart of an electronic device control method provided in an embodiment of the present application is shown. As an example but not a limitation, the electronic device control method includes the following steps:
[0030] Step 101, when a vehicle is in a driving state, an electronic device is located in a driver's area of the vehicle, and the electronic device is in use, determining the type of application currently running on the electronic device.
[0031] When the vehicle is in motion, the electronic device is located in the driver's area of the vehicle, and the electronic device is in use, it means that the driver is using a mobile phone while driving the vehicle. In this case, by determining the application type currently running on the electronic device and judging whether the currently running application type is a non-safe application type, and controlling the electronic device according to the judgment result, it is possible to achieve precise control of the use of the electronic device during driving, reduce the driver's distraction, and improve driving safety.
[0032] In a possible implementation, a positioning module is deployed in the electronic device, and the electronic device can obtain the driving speed of the vehicle through the positioning module; if the driving speed of the vehicle is greater than a preset speed, it is determined that the vehicle is in a driving state.
[0033] Since the electronic device is located in the vehicle, the moving speed of the electronic device is equal to the driving speed of the vehicle, and the electronic device can obtain its own moving speed through the built-in positioning module, so the driving speed of the vehicle can be obtained through the positioning module.
[0034] The preset speed may be a preset speed for determining whether the vehicle is in a driving state. Optionally, the preset speed may be set according to actual scene requirements. For example, the preset speed is 10 km / h.
[0035] The embodiments of the present application do not impose any restrictions on the specific type of the positioning module. For example, the positioning module can be any type of a global positioning system (GPS) module, a global navigation satellite system (GNSS) module, a Beidou navigation satellite system (BDS) or the like.
[0036] By comparing the vehicle's driving speed with a preset speed, it can be determined whether the vehicle is in a driving state. If the vehicle's driving speed is greater than the preset speed, it is determined that the vehicle is in a driving state; if the vehicle's driving speed is less than or equal to the preset speed, it is determined that the vehicle is stationary or that the vehicle is not in a driving state, and no control operation may be performed on the electronic device.
[0037] In another possible implementation, the electronic device may also obtain the vehicle's driving speed through sensors such as a speedometer, a gyroscope, and a magnetometer provided on the electronic device.
[0038] The driver area may refer to the area where the driver is located and / or the area that the driver can control, for example, the area where the driver's seat is located and the area where the center console in front of the driver's seat is located.
[0039] In one possible implementation, first position information of the electronic device in the vehicle can be obtained; if the first position information is located in the driver area, it is determined that the electronic device is located in the driver area; if the first position information is not located in the driver area, it is determined that the electronic device is not located in the driver area, and no control operation may be performed on the electronic device.
[0040] Optionally, the spatial coordinate range of the driver area (i.e., the boundary coordinates of the driver area) can be preset, which is usually set according to the actual layout of the interior of the vehicle and the position of the driver's seat. For example, a cube or rectangular area can be set as the driver area, and the boundary coordinates of this area are specified as (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).
[0041] Among them, the first position information of the electronic device in the vehicle can be represented by the coordinates of the electronic device in the vehicle. The driver area can be represented by the boundary coordinates of the driver area. For example, the three-dimensional coordinates of the electronic device in the vehicle are (x, y, z), and it is determined whether the x coordinate of the electronic device is between Xmin and Xmax, whether the y coordinate of the electronic device is between Ymin and Ymax, and whether the z coordinate of the electronic device is between Zmin and Zmax. If the x coordinate of the electronic device is between Xmin and Xmax, the y coordinate of the electronic device is between Ymin and Ymax, and the z coordinate of the electronic device is between Zmin and Zmax, it is determined that the electronic device is located in the driver area, otherwise it is determined that the electronic device is not located in the driver area.
[0042] In one possible implementation, a first ultra wide band (UWB) module is deployed in the electronic device, and at least three second UWB modules are deployed in the vehicle. The first position information of the electronic device in the vehicle can be obtained through the first UWB module in the electronic device and the at least three second UWB modules in the vehicle.
[0043] The at least three second UWB modules may be evenly distributed at different locations of the vehicle, such as the front of the vehicle, the rear of the vehicle, and both sides of the vehicle.
[0044] Specifically, based on the first UWB module and at least three second UWB modules, the respective distances between the first UWB module and the at least three second UWB modules are determined; based on the respective distances between the first UWB module and the at least three second UWB modules, and the second position information of the at least three second UWB modules in the vehicle, the first position information is determined.
[0045] Among them, the position information of at least three second UWB modules in the vehicle (i.e., the second position information) can be pre-set. On this basis, combined with the respective distances between the first UWB module in the electronic device and the at least three second UWB modules, the position information of the first UWB module in the vehicle can be calculated, and the position information is the first position information of the electronic device in the vehicle.
[0046] In one application scenario, three second UWB modules are arranged in the vehicle, and the position information of the three second UWB modules in the vehicle are respectively (x 1 ,y 1 ,z 1 )、(x 2 ,y 2 ,z 2 )、(x 3 ,y 3 ,z 3 ), the distances between the first UWB module and the three second UWB modules are d 1 ,d 2 ,d 3 , the first position information is (x, y, z).
[0047] The first position information can be obtained by solving the following set of equations.
[0048]
[0049] The above system of equations is a nonlinear system of three equations that can be solved by numerical methods.
[0050] In a possible implementation, a two-way ranging (TWR) technology may be used to calculate the distance between the first UWB module and the second UWB module. Specifically, based on the first UWB module and at least three second UWB modules, determining the respective distances between the first UWB module and at least three second UWB modules includes:
[0051] Sending a first UWB signal to the surroundings through the first UWB module and recording the sending time, the first UWB signal is used to instruct at least three second UWB modules to send a second UWB signal respectively, and the sending time is the time point when the first UWB signal is sent;
[0052] When receiving the second UWB signals from at least three second UWB modules, recording the receiving time corresponding to each of the at least three second UWB modules, the receiving time corresponding to one second UWB module being the time point at which the second UWB signal from the second UWB module is received;
[0053] Based on the transmission time and the reception time corresponding to each of the at least three second UWB modules, respective distances between the first UWB module and the at least three second UWB modules are determined.
[0054] The second UWB signal is sent after the second UWB module receives the first UWB signal, so the second UWB signal can also be called an echo signal or a response signal.
[0055] For the i-th UWB module, the i-th UWB module is any second UWB module among at least three second UWB modules. The electronic device sends a first UWB signal to the surrounding through the first UWB module and records the sending time T1; after the i-th UWB module receives the first UWB signal, it records the receiving time T2, and then sends the second UWB signal after a certain delay of time δ; the i-th UWB module receives the second UWB signal and records the receiving time T3 of the signal; based on the time recorded in the above process, the round-trip time RTT between the first UWB module and the i-th UWB module can be calculated as T3-T1-δ; the calculation formula for the distance between the first UWB module and the i-th UWB module is as follows:
[0056]
[0057] Wherein, d represents the distance between the first UWB module and the i-th UWB module, and c represents the propagation speed of the signal in the air.
[0058] It should be understood that after the i-th UWB module receives the first UWB signal, it sends the second UWB signal after a certain delay of δ, which can avoid echo interference. If the first UWB module sends the second UWB signal immediately after receiving the first UWB signal, it may cause echo interference, that is, the sent signal and the received signal are too close in time, thereby affecting the accuracy of the signal and the measurement accuracy. Introducing a delay time can effectively avoid such interference.
[0059] The delay time can also help distinguish different signal paths, especially in complex environments where multipath effects may cause signal reflections and attenuation. The delay time δ ensures that the response signal is distinguished from other possible reflected signals when it is sent, thereby improving the accuracy of the measurement.
[0060] In this embodiment, by using the UWB module built into the electronic device to communicate with the UWB base station in the vehicle, the precise position of the electronic device relative to the UWB base station in the vehicle can be measured to determine whether the electronic device is located in the driver's area.
[0061] It should be noted that the embodiment of the present application does not impose any limitation on the execution order of the three judgment steps that need to be performed before determining the application type currently running on the electronic device (i.e., judging whether the vehicle is in driving state, judging whether the electronic device is located in the driver's area, and judging whether the electronic device is in use).
[0062] The type of application currently running on the electronic device may refer to the type of application currently running on the electronic device. The application currently running on the electronic device may refer to the foreground application currently running on the electronic device.
[0063] In one possible implementation, an interface provided by the operating system of the electronic device can be used to detect whether the electronic device is currently in use (for example, whether the screen is on) and the currently running application, and determine the type of the currently running application (i.e., the type of the currently running application).
[0064] In order to avoid accidental control of the electronic device when the user using the electronic device is not the driver, before determining the type of application currently running on the electronic device, it can be determined whether the user using the electronic device is the driver. When the vehicle is in driving state, the electronic device is located in the driver area of the vehicle, the electronic device is in use, and the user using the electronic device is the driver, the type of application currently running on the electronic device is determined.
[0065] Since the driver's real face is usually within the shooting range of the camera in the electronic device when using an electronic device, the facial image of the user using the electronic device can be collected through the camera, and the user's facial image can be compared with the pre-stored facial image of the driver. If the user's facial image matches the driver's facial image, it is determined that the user using the electronic device is the driver; if the user's facial image does not match the driver's facial image, it is determined that the user using the electronic device is not the driver.
[0066] In order to reduce the power consumption of the electronic device, it is possible to determine whether the user of the electronic device is the driver when the electronic device is in use. If the electronic device is not in use, no control operation may be performed on the electronic device.
[0067] Step 102: If the type of the currently running application is a non-safe application type, the use of the currently running application is restricted.
[0068] Among them, the non-safe application types include application types that affect safe driving, for example, the types of applications that are not suitable for use during driving, or the types of applications that are likely to cause safety accidents after being used during driving.
[0069] As an example but not limitation, the above-mentioned non-safety application types may be social, game, video and other application types that require the driver to pay long-term attention.
[0070] In a possible implementation, a non-secure application type may be preset. After determining the currently running application type, the electronic device determines whether the currently running application type is a non-secure application type in combination with the preset non-secure application type.
[0071] In another possible implementation, the security application type can be pre-set. After determining the type of application currently running, the electronic device determines whether the currently running application type is a security application type based on the pre-set security application type. If it is not a security application type, the currently running application type is determined to be a non-security application type.
[0072] The above-mentioned safety application types may include application types that do not affect safe driving, or application types that do not require the driver to pay long-term attention.
[0073] As an example but not limitation, the above safety application type may be an application type such as navigation, emergency call, etc.
[0074] In a possible implementation, the electronic device may restrict the use of the currently running application by prohibiting the use of the currently running application, or controlling the electronic device to lock the screen, and other methods.
[0075] When it is detected that the vehicle is in motion and an electronic device is in the driver's area and being used, the type of application currently running on the electronic device can be automatically determined. If the electronic device is not running an allowed application such as navigation or emergency call, the electronic device screen will be automatically locked or access to non-safe applications will be restricted to prevent the driver from being distracted during driving.
[0076] For example, when a driver uses a mobile phone to play a video that is not related to driving while driving, the driver can be restricted from using the application that plays the video while driving by prohibiting the use of the application or controlling the phone to lock the screen, thereby improving driving safety.
[0077] In a possible implementation, after limiting the use of the currently running application, different degrees of control can be implemented on the electronic device through steps 201 to 203.
[0078] Step 201, determining the speed range to which the driving speed belongs.
[0079] The electronic device may pre-set a plurality of speed ranges. After acquiring the driving speed of the vehicle, the electronic device may determine the speed range to which the driving speed belongs by combining the plurality of speed ranges.
[0080] Step 202: Determine a corresponding control scheme based on the speed range to which the driving speed belongs.
[0081] Among them, different speed ranges correspond to different control schemes.
[0082] The above control scheme may refer to measures taken to control the use of electronic devices during driving.
[0083] The electronic device can pre-set control schemes corresponding to multiple speed ranges, so that different degrees of control of the electronic device can be achieved according to the driving speeds of different vehicles.
[0084] As an example but not a limitation, Table 1 shows the control schemes corresponding to different speed ranges.
[0085] Step 203: Control the electronic device based on the control scheme.
[0086] Based on the control scheme, electronic devices can realize multi-faceted control over their own functions or applications to reduce driver distraction while driving and improve driving safety.
[0087] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0088] Corresponding to the electronic device control method described in the above embodiment, Figure 3 A schematic diagram of the structure of an electronic device control device provided in an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0089] Reference Figure 3 , the electronic equipment control device comprises:
[0090] An application determination module 31, configured to determine the type of application currently running on the electronic device when the vehicle is in a driving state, the electronic device is located in a driver's area of the vehicle, and the electronic device is in a use state;
[0091] The application restriction module 32 is configured to restrict the use of the currently running application if the currently running application is a non-safe application type, wherein the non-safe application type includes an application type that affects safe driving.
[0092] Optionally, the electronic equipment control device further includes:
[0093] A position acquisition module, used to acquire first position information of the electronic device in the vehicle;
[0094] The area determination module is used to determine that the electronic device is located in the driver area if the first location information is located in the driver area.
[0095] Optionally, a first ultra-wideband UWB module is deployed in the electronic device, and at least three second UWB modules are deployed in the vehicle; the position acquisition module includes:
[0096] a distance determining unit, configured to determine, based on the first UWB module and the at least three second UWB modules, respective distances between the first UWB module and the at least three second UWB modules;
[0097] The position determination unit is used to determine the first position information based on the distances between the first UWB module and the at least three second UWB modules, and the second position information of each of the at least three second UWB modules in the vehicle.
[0098] Optionally, the distance determination unit is specifically used for:
[0099] Sending a first UWB signal to the surroundings through the first UWB module, and recording the sending time, wherein the first UWB signal is used to instruct the at least three second UWB modules to send a second UWB signal respectively, and the sending time is the time point when the first UWB signal is sent;
[0100] When receiving the second UWB signals from the at least three second UWB modules, recording the receiving time corresponding to each of the at least three second UWB modules, the receiving time corresponding to one second UWB module being the time point at which the second UWB signal from the second UWB module is received;
[0101] Based on the sending time and the receiving times corresponding to the at least three second UWB modules, respective distances between the first UWB module and the at least three second UWB modules are determined.
[0102] Optionally, a positioning module is deployed in the electronic device, and the electronic device control device further includes:
[0103] Acquiring the driving speed of the vehicle through the positioning module;
[0104] If the driving speed is greater than a preset speed, it is determined that the vehicle is in the driving state.
[0105] Optionally, the electronic equipment control device further includes:
[0106] A range determination module, used to determine a speed range to which the driving speed belongs;
[0107] A scheme determination module, used for determining a corresponding control scheme based on a speed range to which the driving speed belongs, wherein different speed ranges correspond to different control schemes;
[0108] The device control module is used to control the electronic device based on the control scheme.
[0109] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0110] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, and when the processor 40 executes the computer program 42, the steps in the above-mentioned electronic device control method embodiment are implemented.
[0111] The electronic device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 4 and does not constitute a limitation on the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0112] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0113] In some embodiments, the memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. In other embodiments, the memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit of the electronic device 4 and an external storage device. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0114] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0115] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0116] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0117] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0121] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling an electronic device, characterized in that: The electronic device is located in a vehicle, and the electronic device control method includes: When the vehicle is in a driving state, the electronic device is located in a driver's area of the vehicle, and the electronic device is in use, determining a type of application currently running on the electronic device; If the currently running application type is a non-safe application type, the use of the currently running application is restricted, and the non-safe application type includes an application type that affects safe driving.
2. The electronic device control method according to claim 1, characterized in that: The electronic device control method further includes: Acquiring first position information of the electronic device in the vehicle; If the first location information is located in the driver area, it is determined that the electronic device is located in the driver area.
3. The electronic device control method according to claim 2, characterized in that: The electronic device is equipped with a first ultra-wideband (UWB) module, and the vehicle is equipped with at least three second UWB modules; and obtaining first position information of the electronic device in the vehicle includes: Based on the first UWB module and the at least three second UWB modules, determining respective distances between the first UWB module and the at least three second UWB modules; The first position information is determined based on respective distances between the first UWB module and the at least three second UWB modules, and second position information of each of the at least three second UWB modules in the vehicle.
4. The electronic device control method according to claim 3, characterized in that: The determining, based on the first UWB module and the at least three second UWB modules, respective distances between the first UWB module and the at least three second UWB modules comprises: Sending a first UWB signal to the surroundings through the first UWB module, and recording the sending time, wherein the first UWB signal is used to instruct the at least three second UWB modules to send a second UWB signal respectively, and the sending time is the time point when the first UWB signal is sent; When receiving the second UWB signals from the at least three second UWB modules, recording the receiving time corresponding to each of the at least three second UWB modules, the receiving time corresponding to one second UWB module being the time point at which the second UWB signal from the second UWB module is received; Based on the sending time and the receiving times corresponding to the at least three second UWB modules, respective distances between the first UWB module and the at least three second UWB modules are determined.
5. The electronic device control method according to any one of claims 1 to 4, characterized in that: A positioning module is deployed in the electronic device, and the electronic device control method further includes: Acquiring the driving speed of the vehicle through the positioning module; If the driving speed is greater than a preset speed, it is determined that the vehicle is in the driving state.
6. The electronic device control method according to claim 5, characterized in that: After restricting the use of the currently running application, it also includes: determining a speed range to which the driving speed belongs; Determine a corresponding control scheme based on the speed range to which the driving speed belongs, and different speed ranges correspond to different control schemes; Based on the control scheme, the electronic device is controlled.
7. The electronic device control method according to any one of claims 1 to 4, characterized in that: The limiting the use of the currently running application includes: The use of the currently running application is prohibited, or the electronic device is controlled to lock the screen.
8. An electronic equipment control device, characterized in that: The electronic device is located in the vehicle, and the electronic device control device comprises: an application determination module, configured to determine a type of application currently running on the electronic device when the vehicle is in a driving state, the electronic device is located in a driver's area of the vehicle, and the electronic device is in a use state; The application restriction module is used to restrict the use of the currently running application if the currently running application type is a non-safe application type, and the non-safe application type includes an application type that affects safe driving.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device control method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electronic device control method according to any one of claims 1 to 7 is implemented.
