Equipment control method, equipment and storage medium
By setting up physical operating elements on the extended device, vehicle control commands can be directly generated and transmitted, solving the problem of complex operation of mobile phone vehicle control apps, realizing fast and convenient vehicle control, and improving the user experience.
Patent Information
- Application Number
- CN202510796023.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-11-11
AI Technical Summary
Existing mobile car control apps are complex to operate, making it difficult for users to quickly control their vehicles, resulting in a poor user experience.
By setting up physical operating elements on the extended device, users can directly press buttons to generate commands. The mobile terminal interprets the commands and sends them to the vehicle control system via wireless communication technologies such as Bluetooth or NFC, simplifying the operation process.
Vehicles can be controlled conveniently and efficiently without waking up the mobile device screen or launching the application, significantly improving the user experience and reducing operation time.
Smart Images

Figure CN120935540A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, specifically to a device control method, device, and storage medium. Background Technology
[0002] With the rapid development of intelligent vehicle technology, mobile phone car control apps have gradually become an important tool for users to remotely control their vehicles. After a user triggers an operation command through the app interface on their mobile terminal, the data is transmitted via the mobile network to the cloud server and then forwarded to the in-vehicle communication module (T-Box), ultimately driving the vehicle to perform the corresponding action. This technology system breaks through the spatial limitations of traditional physical keys, greatly facilitating users' remote management of their vehicles.
[0003] However, current mobile car control apps on the market have many inconveniences in operation. Users need to unlock their phones, open the app, find the corresponding function options, and then click buttons, which is a series of complicated operations. This not only increases the operation time and steps, but also makes it difficult to quickly control the vehicle when needed, resulting in a poor user experience. Summary of the Invention
[0004] In view of this, this application aims to provide a device control method, device, and storage medium that can simplify the steps for users to operate vehicles via mobile phones.
[0005] According to a first aspect of this application, a device control method is provided, applied to a mobile terminal, wherein the mobile terminal is communicatively connected to an extended device, and the extended device is provided with physical operating elements; comprising:
[0006] Obtain a first instruction sent by the extended device; the first instruction is generated by the extended device in response to a user's target operation on the physical operating element;
[0007] Based on the first instruction, a second instruction is sent to the target device; the second instruction is used to instruct the target device to perform a target action.
[0008] Optionally, sending a second instruction to the target device according to the first instruction includes:
[0009] Determine whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol;
[0010] If the mobile terminal and the target device are directly connected via the short-range wireless communication protocol, the second instruction is sent to the target device via the short-range wireless communication protocol.
[0011] Optionally, sending the second instruction to the target device via the short-range wireless communication protocol includes:
[0012] The target distance value between the mobile terminal and the target device is detected and obtained.
[0013] If the target distance value is less than the distance threshold, the second instruction is sent to the target device via the short-range wireless communication protocol; the distance threshold is a distance restriction condition for the target device to perform the target action.
[0014] Optionally, the detection of the target distance value between the mobile terminal and the target device includes:
[0015] Based on the short-range wireless communication protocol, a preliminary distance value between the mobile terminal and the target device is detected and obtained.
[0016] If the initial distance value is less than the distance threshold, or if the difference between the initial distance value and the distance threshold is within a preset range, a precise ranging command is sent to the extended device; the precise ranging command is used to instruct the extended device to detect the distance between the extended device and the target device based on the ultra-wideband protocol to obtain the target distance value;
[0017] Receive the target distance value returned in response to the precise ranging command.
[0018] Optionally, after obtaining the target distance value between the mobile terminal and the target device, the method further includes:
[0019] If the target distance value is less than the distance threshold, a third instruction is sent to the target device; the third instruction is used to instruct the target device to perform a user-preset automatic action.
[0020] Optionally, sending a second instruction to the target device according to the first instruction includes:
[0021] Determine whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol;
[0022] If the mobile terminal and the target device are not directly connected via a short-range wireless communication protocol, the second instruction is sent based on the vehicle-to-everything (V2X) protocol.
[0023] Optionally, the target device includes a target vehicle; sending a second instruction to the target device according to the first instruction includes:
[0024] Parse the first instruction to obtain the identification information of the target action;
[0025] According to a preset mapping rule, a second instruction corresponding to the identification information is sent to the target vehicle; the mapping rule is used to represent the correspondence between the identification information and the vehicle function.
[0026] Optionally, the target device includes a target vehicle; the mobile terminal is equipped with a target application and a vehicle control application;
[0027] The step of parsing the first instruction to obtain the identification information of the target action includes:
[0028] Based on the target application, the first instruction is parsed to obtain the identification information of the target action;
[0029] Sending the second instruction corresponding to the identification information to the target vehicle according to a preset mapping rule includes:
[0030] Based on the mapping rules, a second instruction carrying the identification information is generated;
[0031] Send a second instruction to the vehicle control application; the second instruction is used to instruct the vehicle control application to send a target vehicle control instruction to the target vehicle; the target vehicle control instruction is used to instruct the target vehicle to perform a target action.
[0032] Optionally, generating a second instruction carrying the identification information includes:
[0033] Obtain connection status information between the mobile terminal and the target vehicle; the connection status information is used to indicate the communication connection status between the mobile terminal and the target vehicle;
[0034] Based on the identification information and the connection status information, a second instruction carrying transmission path information specifying the target vehicle control instruction is generated; the transmission path information is determined based on the connection status information.
[0035] According to a second aspect of this application, another device control method is provided, applied to an extension device of a mobile terminal; the mobile terminal is communicatively connected to the extension device, and the extension device is provided with physical operating elements; the method includes:
[0036] Obtain the user's target operation on the physical manipulation element;
[0037] According to the target operation, a first instruction is sent to the mobile terminal; wherein, the mobile terminal is configured to send a second instruction to the target device according to the first instruction; the second instruction is configured to instruct the target device to perform the target action.
[0038] Optionally, the method further includes:
[0039] After receiving the precise ranging command sent by the mobile terminal, the target distance value is obtained by detecting the distance between the extended device and the target device based on the ultra-wideband protocol;
[0040] The target distance value is fed back to the mobile terminal;
[0041] The mobile terminal is used to send the second instruction to the target device when the target distance value is less than a distance threshold; the distance threshold is a distance restriction condition for the target device to perform the target action.
[0042] According to a third aspect of this application, a mobile terminal is provided, comprising: a processor, and a memory for storing processor-executable instructions; the processor being configured to perform any of the methods shown in the first aspect.
[0043] According to a fourth aspect of this application, an extension device is provided, comprising: an extension device body; and physical operating elements on the extension device body, a communication module for establishing a communication connection with a mobile terminal, and a control module;
[0044] The control module is used to execute any of the methods shown in the second aspect.
[0045] Optionally, the extended device body is a protective casing for a mobile terminal.
[0046] Optionally, the extended device body is a dust plug for the headphone jack of the mobile terminal.
[0047] Optionally, the extended device body is a wearable device.
[0048] Optionally, the communication module is used to communicate with the mobile terminal via a wireless communication protocol and / or a contact.
[0049] Optionally, the extended device may also include an ultra-wideband module.
[0050] According to a fifth aspect of this application, a computer-readable storage medium is provided, the storage medium storing a computer program for performing the methods described in any of the above embodiments.
[0051] This application provides a device control method, device, and storage medium. The solution includes: an extended device receiving a user's target operation on a physical operating element and generating a first instruction; a mobile terminal receiving the first instruction from the extended device; and sending a second instruction to a target device based on the first instruction, to instruct the target device to perform a target action corresponding to the target operation. Through the coordinated design of the physical operating element and device control function, IoT devices such as vehicles can be conveniently and efficiently controlled without waking the mobile terminal screen, unlocking the device, or launching an application, significantly reducing operation time and effectively improving the user experience. Attached Figure Description
[0052] Figure 1 The diagram shown is a schematic representation of an implementation environment provided in an embodiment of this application.
[0053] Figure 2 The diagram shown is a schematic flowchart of a device control method provided in one embodiment of this application.
[0054] Figure 3 This is a schematic flowchart of a device control method provided in another embodiment of this application.
[0055] Figure 4 The diagram shown is a block diagram of a mobile terminal provided in one embodiment of this application.
[0056] Figure 5 The diagram shown is a block diagram of an extension device provided in one embodiment of this application. Detailed Implementation
[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0058] Application Overview
[0059] With the development of automotive intelligence, mobile car control apps have become an important tool for enhancing user experience. However, current mobile car control apps on the market have many inconveniences in actual use. Users often need to unlock their phones, open the app, find the corresponding function options, and then perform a series of complex operations. These cumbersome steps not only increase the time and complexity of operation, but also make it difficult to achieve real-time operation when users urgently need to control the vehicle, resulting in a poor user experience. Therefore, how to simplify the steps for users to operate their vehicles via mobile phones has become an urgent technical problem to be solved.
[0060] To address the aforementioned issues, this application proposes a technical solution that receives user input via physical operating elements on an extended device. Specifically, physical operating elements such as buttons are installed on the vehicle's extended device, allowing users to trigger corresponding vehicle control functions by directly pressing these buttons. Upon receiving the user's button input, the extended device transmits the signal to a mobile phone. The mobile phone automatically generates action commands for the vehicle based on the received signal and sends these commands to the vehicle control system via Bluetooth, NFC, or other wireless communication technologies, thereby achieving rapid vehicle control. This simplifies cumbersome operations on the user's mobile phone and significantly improves the user experience.
[0061] After introducing the basic principles of this application, various non-limiting embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0062] Exemplary System
[0063] Figure 1 The diagram shown is a schematic representation of an implementation environment provided in an embodiment of this application. This implementation environment includes a mobile terminal 110, an extension device 120, and a target vehicle 130 as the target device; in some cases, it may also include a cloud server.
[0064] Mobile terminal 110 refers to electronic devices with computing and communication capabilities, such as smartphones and tablets. This embodiment uses a smartphone as an example. Extended device 120 is a control device with physical buttons (a form of physical operating element), such as a phone case, wearable device, and headphone dust plugs with buttons. It can be connected to mobile terminal 110 via wired or wireless means. Its main function is to receive the user's physical button operations and transmit the operation signals to mobile terminal 110. Target vehicle 130 refers to the vehicle that the user needs to control through mobile terminal 110. It can receive instructions from mobile terminal 110 and execute corresponding actions, such as opening doors, starting the vehicle, raising and lowering windows, opening and closing the trunk, and automatic parking. In some cases, extended device 120 can also interact directly wirelessly.
[0065] When controlling the vehicle, the user first presses the corresponding physical button on the extension device 120. After the extension device 120 captures the button command, it transmits it to the mobile terminal 110 via the communication network. The vehicle control application built into the mobile terminal 110 analyzes the received signal to determine the user's control request, generates the corresponding vehicle action signal, and then transmits it to the target vehicle 130 via wireless communication technologies such as Bluetooth and ultra-wideband, causing the vehicle to perform the corresponding action. When the mobile terminal 110 and the target vehicle 130 are far apart, the cloud server can forward the command to realize the remote vehicle control function.
[0066] Based on this solution, users can conveniently and efficiently control IoT devices such as vehicles without having to go through complicated steps such as unlocking the mobile terminal 110, opening the application, and searching for function options layer by layer. This greatly reduces the operation time and effectively improves the user experience.
[0067] Exemplary methods
[0068] Figure 2 This is a schematic flowchart of a device control method provided in one embodiment of this application.
[0069] From a procedural perspective, the execution entity of this process can be a mobile terminal (e.g., a mobile phone or tablet) or an application running on the mobile terminal, but this application embodiment is not limited thereto. Specifically, the application running on the mobile terminal may include a first control program for the target device (e.g., a vehicle control app), that is, adding [something] to the first control program of the target device. Figure 2 In some cases, the mobile terminal may carry a second control program dedicated to the expansion device, in addition to the control program of the target device. Of course, the application carried on the mobile terminal may only include the second control program, in which case the second control program may integrate the SDK (Software Development Kit) of the target device.
[0070] In this embodiment of the application, the mobile terminal is communicatively connected to an extension device of the mobile terminal, and the extension device is provided with physical operating elements;
[0071] like Figure 2 As shown, the method includes the following:
[0072] Step S210: Obtain a first instruction sent by the extended device; the first instruction is generated by the extended device in response to a user's target operation on the physical operating element.
[0073] In this embodiment, the mobile terminal can be an electronic device with computing and communication capabilities, such as a smartphone or tablet. The mobile terminal generally needs to be pre-installed with or running a control program for the target device, such as a vehicle control app, to realize the parsing and instruction encapsulation functions of the control logic of the target device, such as a vehicle.
[0074] In this embodiment, the extended device can serve as an accessory to the mobile terminal and can communicate with the mobile terminal. The extended device can be a protective casing for the mobile terminal, or a dust plug for the headphone jack; it can also be a wearable device such as a smartwatch, smart bracelet, or smart ring.
[0075] In this embodiment of the application, the extended device may be provided with one or more physical operating elements; these physical operating elements support operations such as single click, double click, triple click, long press, etc., without limitation.
[0076] In this embodiment, the physical operating element is relative to the virtual button on the mobile terminal screen, and is not limited to the form of a button. The physical operating element may include human-computer interaction devices that generate electrical signals through physical deformation, such as mechanical switches like knobs and toggle switches, or pressure-sensitive buttons; the physical operating element may also include human-computer interaction devices that generate electrical signals by detecting biometric features, such as capacitive buttons or sliders, or even fingerprint recognition devices.
[0077] In this embodiment, the target operation can be freely set according to the form of the physical operating element, without specific limitations. Taking a physical button as an example, the target operation can be a single click, double click, triple click, long press, or a combination of the above operations. In some cases, the target operation can also be a combination of operations on two or more physical buttons.
[0078] In this embodiment of the application, the first instruction is generated by the extended device in response to a user's target operation on the physical operating element.
[0079] Step S220: Based on the first instruction, send a second instruction to the target device; the second instruction is used to instruct the target device to perform a target action.
[0080] In this embodiment, the target device may include various Internet of Things (IoT) devices such as vehicles and smart home devices. The specific form of the target device is not limited, as long as it supports command interaction capabilities of at least one wireless communication protocol. For example, a vehicle may include a car, motorcycle, electric bicycle, etc. The specific form of the target vehicle is not limited, as long as the vehicle can execute commands sent by the mobile terminal.
[0081] In this embodiment of the application, the second instruction is generated and sent by the mobile terminal after receiving the first instruction.
[0082] When the executing entity is a first control program targeting a target device (such as a vehicle control application), sending a second instruction to the target device can mean: sending a second instruction to the target device. Taking a car as an example, the vehicle control application running on the mobile terminal parses the operation type code in the first instruction, matches it with a preset target vehicle control instruction template, and then sends the target vehicle control instruction.
[0083] When the executing entity is a second control program targeting an extended device, sending a second instruction to the target device can refer to sending a second instruction to the first control program. In this case, the first control program sends a control command to the target device based on the second instruction; the control command instructs the target device to perform a target action. Again, taking a car as an example, if the vehicle control application does not integrate control logic related to the extended device, the first control program parses the operation type code in the first instruction from the vehicle control application running on the mobile terminal, and calls the API (interface) provided by the vehicle control application to send the target vehicle control instruction.
[0084] When the application mounted on the mobile terminal only includes the second control program, the second control program may integrate the target device's SDK (Software Development Kit). This situation is similar to that of the first control program for the target device and will not be described further.
[0085] In this embodiment, the target action corresponds to a user's target operation on the physical operating element. The mobile terminal generates a second instruction based on the mapping relationship between the target action and the target operation. The mapping relationship supports user-defined configuration; for example, the user can bind specific physical operating element operations to target actions such as unlocking the vehicle, honking the horn to locate the car, and opening the trunk through the interactive interface of the vehicle control app.
[0086] In this embodiment, when the target device is a vehicle, the target action may include basic vehicle control functions such as door unlocking / locking, engine start / stop, trunk opening / closing, and charging port cover opening / closing; in-vehicle environment adjustment functions such as air conditioning system start / stop and temperature zone adjustment, and seat heating / ventilation mode switching; and driver assistance functions such as parking, parking exit, and navigation, without specific limitations. The target action may instruct the target device to perform a combination of the above functions. In this embodiment, the target action may also include application flow.
[0087] In this embodiment of the application, the number of target devices can be multiple. For example, the target devices may include multiple smart home devices such as air conditioners, lighting equipment, smart curtains, smart speakers, and televisions. After the user-initiated extended device is equipped with a physical operating element, each smart home device performs its own target action.
[0088] In this embodiment, the extended device generates a first instruction after receiving a user's target operation on the physical operating element; the mobile terminal receives the first instruction sent by the extended device; and sends a second instruction to the target device according to the first instruction, instructing the target device to perform the target action corresponding to the target operation. Thus, through the coordinated design of the physical operating element and device control function, IoT devices such as vehicles can be conveniently and efficiently controlled without waking the mobile terminal screen, unlocking the device, or launching an application, significantly reducing operation time and effectively improving the user experience.
[0089] based on Figure 2 In addition to the method described in the embodiments of this specification, some specific implementation schemes of the method are also provided, which will be described below.
[0090] Optionally, sending a second instruction to the target device according to the first instruction includes:
[0091] Determine whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol;
[0092] If the mobile terminal and the target device are directly connected via the short-range wireless communication protocol, the second instruction is sent to the target device via the short-range wireless communication protocol.
[0093] In this embodiment of the application, the short-range wireless communication protocol may include Bluetooth, ultra-wideband, WIFI, NFC, etc.
[0094] In this embodiment of the application, sending the second instruction to the target device through the short-range wireless communication protocol includes: selecting the appropriate communication module and parameters according to the type of the short-range wireless communication protocol, encapsulating the second instruction, and sending it to the target device.
[0095] In this embodiment of the application, if the mobile terminal does not directly communicate with the target device through a short-range wireless communication protocol, the second instruction can be sent subsequently based on the vehicle network protocol.
[0096] In this embodiment, whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol can be used to preliminarily determine whether the user is near the target device based on whether the user is within the connection range of the protocol. Some types of target operations require the user to be on or near the target device, such as autonomous driving, parking, and parking out operations involving vehicle movement. If the target action indicated by the second instruction requires the user to be near the target device, the instruction sending process can be terminated directly, or a prompt can be given to the user.
[0097] In this embodiment, the extended device generates a first instruction after receiving a user's target operation on the physical operating element; the mobile terminal receives the first instruction sent by the extended device; if the mobile terminal and the target device are directly connected via the short-range wireless communication protocol, the mobile terminal sends a second instruction to the target device via the short-range wireless communication protocol. Thus, the user can conveniently remotely control the target device via the physical operating element, and the short-range wireless communication protocol ensures communication stability and security, optimizing the user experience. Furthermore, sending instructions via the mobile terminal simplifies the extended device's functionality, helps simplify its structure, and reduces its hardware cost. Leveraging the high reliability and low latency of the short-range wireless communication protocol, the second instruction can be transmitted quickly and stably, ensuring the real-time performance and reliability of device control.
[0098] Optionally, sending the second instruction to the target device via the short-range wireless communication protocol includes:
[0099] The target distance value between the mobile terminal and the target device is detected and obtained.
[0100] If the target distance value is less than the distance threshold, the second instruction is sent to the target device via the short-range wireless communication protocol; the distance threshold is a distance restriction condition for the target device to perform the target action.
[0101] In this embodiment, the target action is an action with distance limitations during execution. In practical applications, some types of target operations require the user to be near the target device, or even under the user's observation. Taking a vehicle as an example, some types of target operations require the user to be on or near the target vehicle. These operations may include those related to vehicle driving safety, such as autonomous driving, parking, and parking exit, or those related to property safety, such as opening and closing vehicle doors. For example, operations such as application navigation require the user to be in the vehicle before execution.
[0102] In this embodiment of the application, the distance threshold is a distance restriction condition for the target device to perform the target action.
[0103] In this embodiment of the application, if the target distance value is not less than the distance threshold, the instruction sending process is terminated directly, and / or a prompt is given to the user.
[0104] In this embodiment of the application, if the second instruction is used to indicate multiple target actions, the instruction sending process can be terminated directly, or the second instruction can be sent to indicate some target actions that meet the distance restriction conditions or do not meet the distance restriction conditions.
[0105] In this embodiment of the application, if the execution of the target action requires a distance restriction, before sending the second instruction, the target distance value between the mobile terminal and the target device is detected and obtained, and it is determined whether the target distance value is less than a distance threshold; if the target distance value is less than the distance threshold, the second instruction is sent to the target device; thereby, it can be ensured that the target action is executed within a safe and appropriate distance range, effectively preventing safety hazards caused by accidental touch or incorrect operation, and improving the safety of user vehicle control.
[0106] In some cases, the distance detection and distance limit condition determination steps can also be performed at the target device, such as a vehicle or smart home device. That is, the target device is also used to detect and obtain the target distance value between the mobile terminal and the target device, and / or, if the target distance value is less than a distance threshold, the device performs a target action.
[0107] Optionally, the detection of the target distance value between the mobile terminal and the target device includes:
[0108] Based on the short-range wireless communication protocol, a preliminary distance value between the mobile terminal and the target device is detected and obtained.
[0109] If the initial distance value is less than the distance threshold, or if the difference between the initial distance value and the distance threshold is within a preset range, a precise ranging command is sent to the extended device; the precise ranging command is used to instruct the extended device to detect the distance between the extended device and the target device based on the ultra-wideband protocol to obtain the target distance value;
[0110] Receive the target distance value returned in response to the precise ranging command.
[0111] In this embodiment of the application, the extended device further includes an ultra-wideband module.
[0112] In practical applications, mobile terminals such as smartphones generally support short-range wireless communication protocols such as Bluetooth and WiFi, but most are not equipped with hardware that supports ultra-wideband (UWB) communication protocols. In comparison, UWB communication protocols offer higher ranging accuracy.
[0113] In this embodiment, a preliminary distance value is detected by a mobile terminal based on short-range wireless communication protocols such as Bluetooth and WiFi. After comparing this value with a distance threshold, a precise ranging command is sent to the extended device, which then performs precise ranging based on the UWB module of the extended device. This approach not only effectively improves ranging accuracy, ensuring that target actions are performed within a safe and appropriate distance range, but also further reduces safety hazards caused by accidental touches or incorrect operations. Furthermore, sending the precise ranging command to the extended device based on the preliminary distance value dynamically triggers the precise ranging process of the extended device, helping to reduce the frequency of invalid ranging measurements by the extended device, thereby reducing the power consumption of the extended device or mobile terminal, extending usage time, and improving the user experience.
[0114] Optionally, after obtaining the target distance value between the mobile terminal and the target device, the method further includes:
[0115] If the target distance value is less than the distance threshold, a third instruction is sent to the target device; the third instruction is used to instruct the target device to perform a user-preset automatic action.
[0116] In this embodiment of the application, the third instruction is used to instruct the target device to automatically perform other actions besides the target action.
[0117] Taking a vehicle as an example, when sending a second command to instruct the vehicle to start the air conditioning for preheating, if it is found that the distance between the user and the vehicle is less than a distance threshold, a third command is sent to instruct the vehicle to perform welcoming operations such as unlocking the doors. Specifically, the automatically executed actions may also include basic vehicle control functions such as unlocking / locking doors, starting / stopping the engine, adjusting lights, opening and closing the trunk, and opening and closing the charging port cover; in-vehicle environment adjustment functions such as starting and stopping the air conditioning system and adjusting the temperature zone, and switching seat heating / ventilation modes; or a combination of the above functions. In this embodiment, after detecting and obtaining the target distance value between the mobile terminal and the target device, if the target distance value is less than the distance threshold, a third command is sent to the target device to instruct the target device to perform the user-preset automatically executed actions. This further reduces the user's operation steps and improves the user experience.
[0118] Optionally, sending a second instruction to the target device according to the first instruction includes:
[0119] Determine whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol;
[0120] If the mobile terminal and the target device are not directly connected via a short-range wireless communication protocol, the second instruction is sent based on the vehicle-to-everything (V2X) protocol.
[0121] In this embodiment, the target device is equipped with a communication module (e.g., a T-Box). When the mobile terminal and the target device are not directly connected via a short-range wireless communication protocol, the second command is sent based on a vehicle-to-everything (V2X) protocol. This ensures that control commands can still be reliably sent even when the mobile terminal is far from the vehicle or short-range wireless communication is blocked, enabling remote vehicle control.
[0122] Optionally, the target device includes a target vehicle; sending a second instruction to the target device according to the first instruction includes:
[0123] Parse the first instruction to obtain the identification information of the target action;
[0124] According to a preset mapping rule, a second instruction corresponding to the identification information is sent to the target vehicle; the mapping rule is used to represent the correspondence between the identification information and the vehicle function.
[0125] In the embodiments of this application, the execution entity of the process may be a first control program for the target device, or a second control program that integrates an SDK for the extended device and the target device.
[0126] In this embodiment, the identification information can be a unique identifier generated after the user performs a target operation on the physical manipulation element, used to indicate the specific action the user intends to perform. For example, the identification information can be an encoding, a label, or a specific instruction format, used to distinguish different target actions input by the user. The generation of the identification information can be based on the hardware characteristics of the extended device or a predefined protocol to ensure its uniqueness and resolvability.
[0127] In this embodiment, the mapping rule is the correspondence between identification information and vehicle functions, used to convert user operations into device-recognizable instructions. The preset mapping rule can be flexibly adjusted according to the user's personal preferences and usage habits to achieve a personalized control scheme. The mapping rule can be in the form of a mapping table, which contains the correspondence between identification information and vehicle functions. The mapping table can be stored in the mobile terminal or dynamically obtained through cloud services.
[0128] In this embodiment, the functionality of the extension device is simplified because it only needs to receive user operations and generate the first instruction. This simplifies the hardware design and manufacturing process of the extension device, reduces the required electronic components and circuit board layout, and consequently lowers the hardware cost and failure rate of the extension device. Furthermore, as vehicle functions are continuously added and updated, the preset mapping rules can be easily upgraded and expanded to adapt to new vehicle function requirements without requiring large-scale hardware modifications to the extension device, thus reducing the cost and difficulty of system upgrades.
[0129] Optionally, the target device includes a target vehicle; the mobile terminal is equipped with a target application and a vehicle control application;
[0130] The step of parsing the first instruction to obtain the identification information of the target action includes:
[0131] Based on the target application, the first instruction is parsed to obtain the identification information of the target action;
[0132] Sending the second instruction corresponding to the identification information to the target vehicle according to a preset mapping rule includes:
[0133] Based on the mapping rules, a second instruction carrying the identification information is generated;
[0134] Send a second instruction to the vehicle control application; the second instruction is used to instruct the vehicle control application to send a target vehicle control instruction to the target vehicle; the target vehicle control instruction is used to instruct the target vehicle to perform a target action.
[0135] In this embodiment of the application, the target application is a second control program for the extended device; it can interact with the extended device and the vehicle control application; specifically, the vehicle control application can parse the first instruction, identify the identification information of the target action corresponding to the user's target operation on the extended device; and convert the identification information into a specific second instruction according to a preset mapping rule.
[0136] In this embodiment of the application, the vehicle control application, namely the vehicle control APP, can be used to communicate and interact with the target vehicle, has vehicle control functions, and belongs to the first control program for the target device mentioned above.
[0137] In this embodiment, the second instruction is not sent directly to the vehicle, but rather to the vehicle control application. The second instruction instructs the vehicle control application to send a target vehicle control instruction to the target vehicle; the target vehicle control instruction instructs the target vehicle to perform a target action.
[0138] In this embodiment, the target application parses the first instruction to obtain the identification information of the target action, and sends a second instruction corresponding to the identification information to the vehicle control application according to the mapping rule. When the vehicle control application receives the second instruction from the target application, it generates a corresponding target vehicle control instruction based on the second instruction and sends the target vehicle control instruction to the target vehicle via a short-range wireless communication protocol or vehicle networking function. Thus, neither the extended device nor the target application needs to integrate vehicle-specific communication protocols or control logic. By loading the mapping rules of different vehicle control applications into the target application, the operation of the same physical operating element can be dynamically bound to different vehicle models, achieving unified control of cross-vehicle and cross-brand devices.
[0139] Optionally, generating a second instruction carrying the identification information includes:
[0140] Obtain connection status information between the mobile terminal and the target vehicle; the connection status information is used to indicate the communication connection status between the mobile terminal and the target vehicle;
[0141] Based on the identification information and the connection status information, a second instruction carrying transmission path information specifying the target vehicle control instruction is generated; the transmission path information is determined based on the connection status information.
[0142] In this embodiment of the application, the connection status information is used to indicate the communication connection status between the mobile terminal and the target vehicle; specifically, the connection status information is used to indicate whether the mobile terminal and the target vehicle are directly connected via a short-range wireless communication protocol, and to indicate which short-range wireless communication protocol they are connected via.
[0143] In this embodiment of the application, the second instruction, in addition to instructing the target vehicle to perform the target action, is also used to specify the communication path through which the vehicle control application sends the second instruction to the target vehicle.
[0144] In this embodiment, based on the target application, the connection status between the mobile terminal and the target vehicle is detected. If the two are directly connected via the short-range wireless communication protocol, the transmission path of the target vehicle control command is determined to be the short-range wireless communication protocol, and the transmission path information of the target vehicle control command is specified as the short-range wireless communication protocol in the second instruction; if the two are not directly connected via the short-range wireless communication protocol, the transmission path of the target vehicle control command is determined to be the vehicle-to-everything (V2X) protocol, and the transmission path information of the target vehicle control command is specified as the V2X protocol in the second instruction.
[0145] In this embodiment, based on the target application, the most suitable communication path is automatically selected according to the connection status information. Short-range wireless communication protocols typically feature low latency and high stability. When the connection is normal, this protocol is used preferentially for command transmission, ensuring the vehicle's rapid response to control commands. When short-range wireless communication is unavailable, vehicle-to-everything (V2X) protocols, with their wide coverage, can continue to maintain communication, allowing vehicle control to be less restricted by geographical location and environmental factors, better adapting to various complex application scenarios, and improving communication stability.
[0146] Based on the same idea, this application also provides another wireless ranging method. This method includes the following:
[0147] Based on the target application, the first instruction sent by the extended device is acquired and parsed to obtain the identification information of the target action; the first instruction is generated by the extended device in response to the user's target operation on the physical operating element.
[0148] Based on the target application, the connection status between the mobile terminal and the target vehicle is detected. If the two are directly connected via the short-range wireless communication protocol, the transmission path information of the vehicle control command is determined to be the short-range wireless communication protocol; if the two are not directly connected via the short-range wireless communication protocol, the transmission path information of the vehicle control command is determined to be the vehicle networking protocol.
[0149] Based on the target application, the target vehicle needs to perform a target action according to the mapping rules. If the target action has a distance restriction, the target distance value between the mobile terminal and the target vehicle is detected. If the target distance value is less than a distance threshold, a second instruction is generated and sent to the vehicle control application. If the target action does not have a distance restriction, a second instruction is directly generated and sent to the vehicle control application. The second instruction also carries the transmission path information of the target vehicle control instruction.
[0150] Based on the vehicle control application, the second instruction is parsed to obtain the target action to be executed and the transmission path information. If the transmission path information is the vehicle-to-everything (V2X) protocol, the target vehicle control instruction is sent based on the V2X protocol. If the transmission path information is a short-range wireless communication protocol, the target vehicle control instruction is sent to the target vehicle through the short-range wireless communication protocol.
[0151] Based on the same idea, this application also provides another wireless ranging method. Figure 3 This is a flowchart illustrating a wireless ranging method provided in another embodiment of this application. Figure 3The method is performed by an extension device that is communicatively connected to the mobile terminal, the extension device being provided with physical operating elements.
[0152] like Figure 3 As shown, the method includes the following:
[0153] Step S310: Obtain the user's target operation on the entity operation element.
[0154] Step S320: According to the target operation, send a first instruction to the mobile terminal; wherein, the mobile terminal is used to send a second instruction for the target device according to the first instruction; the second instruction is used to instruct the target device to perform the target action.
[0155] For specific details regarding the aforementioned wireless ranging methods, please refer to the relevant references. Figure 2 The relevant descriptions and effects in the illustrated embodiments are for understanding purposes only and will not be repeated here.
[0156] Optionally, the method further includes:
[0157] After receiving the precise ranging command sent by the mobile terminal, the target distance value is obtained by detecting the distance between the extended device and the target device based on the ultra-wideband protocol;
[0158] The target distance value is fed back to the mobile terminal;
[0159] The mobile terminal is used to send the second instruction to the target device when the target distance value is less than a distance threshold; the distance threshold is a distance restriction condition for the target device to perform the target action.
[0160] Exemplary electronic devices
[0161] Below, for reference Figure 4 This application describes a mobile terminal according to an embodiment of the present application. Figure 4 The illustration shows a block diagram of a mobile terminal according to an embodiment of this application.
[0162] like Figure 4 As shown, the mobile terminal includes one or more processors 410 and memory 420.
[0163] The processor 410 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the mobile terminal to perform desired functions.
[0164] The memory 420 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 410 may execute the program instructions to implement the device control method for mobile terminals described above.
[0165] In one example, the mobile terminal may also include an input device 430 and an output device 440, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0166] In addition, the input device 430 may also include, for example, a keyboard, a mouse, etc. The output device 440 can output various information to the outside. The output device 440 may include, for example, a monitor, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0167] Of course, for the sake of simplicity, Figure 4 This illustration only shows some of the components of the mobile terminal relevant to this application, omitting components such as buses, input / output interfaces, etc. In addition, the mobile terminal may include any other suitable components depending on the specific application.
[0168] Below, for reference Figure 5 This describes the extended device according to embodiments of the present application. Figure 5 A block diagram of an extension device according to an embodiment of this application is illustrated.
[0169] like Figure 5 As shown, the extended device includes: an extended device body 500; and a physical operating element 510 disposed on the extended device body, a communication module 520 that establishes a communication connection with the mobile terminal, and a control module 530;
[0170] The control module is used to execute any of the above-described device control methods applied to the extended device.
[0171] In the specific embodiments described in this application, the communication module 520 and the control module 530 can be implemented in various ways. They can be implemented using physical hardware, such as MCU chips (microcontroller units), BLE (Bluetooth Low Energy) or UWB (Ultra-Wideband) chips, or WiFi chips. Some advanced single-chip designs can also accommodate BLE communication functions.
[0172] In this embodiment, the communication module 520 and the control module 530 are not limited to physical hardware; they may also exist as virtual program modules, which can implement corresponding functions through software programming.
[0173] Optionally, the extended device body is a protective casing for a mobile terminal.
[0174] Optionally, the extended device body is a dust plug for the headphone jack of the mobile terminal.
[0175] Optionally, the extended device body is a wearable device.
[0176] Optionally, the communication module 520 is used to communicate with a mobile terminal via a wireless communication protocol and / or a contact.
[0177] In this embodiment, the extended device can establish a data channel with the mobile terminal via a physical interface or a short-range wireless connection. The communication module 520 can be used to communicate with the mobile terminal via a physical interface such as a contact or a USB interface; the physical interface can also be used to provide power to the extended device.
[0178] In this embodiment, the communication module 520 can establish a data channel with the mobile terminal through short-range wireless connection methods such as Bluetooth or WiFi communication protocols.
[0179] Optionally, the extended device may also include an ultra-wideband module.
[0180] Optionally, the extended device may also include an energy storage device.
[0181] In this embodiment of the application, the energy storage device includes a battery.
[0182] Exemplary computer program products and computer-readable storage media
[0183] In addition to the methods and apparatus described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the device control methods according to various embodiments of this application as described in the "Exemplary Methods" section of this specification.
[0184] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0185] Furthermore, embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the device control methods according to various embodiments of this application described in the "Exemplary Methods" section above.
[0186] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0187] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.
[0188] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0189] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.
[0190] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0191] It should be understood that the qualifiers “first,” “second,” “third,” “fourth,” “fifth,” and “sixth” used in the description of the embodiments of this application are only used to more clearly illustrate the technical solutions and are not intended to limit the scope of protection of this application.
[0192] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A device control method, characterized in that, Applied to a mobile terminal, wherein the mobile terminal is communicatively connected to an extension device of the mobile terminal, and the extension device is provided with physical operating elements; including: Obtain a first instruction sent by the extended device; the first instruction is generated by the extended device in response to a user's target operation on the physical operating element; Based on the first instruction, a second instruction is sent to the target device; the second instruction is used to instruct the target device to perform a target action.
2. The method according to claim 1, characterized in that, Sending a second instruction to the target device according to the first instruction includes: Determine whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol; If the mobile terminal and the target device are directly connected via the short-range wireless communication protocol, the second instruction is sent to the target device via the short-range wireless communication protocol.
3. The method according to claim 2, characterized in that, Sending the second instruction to the target device via the short-range wireless communication protocol includes: The target distance value between the mobile terminal and the target device is detected and obtained. If the target distance value is less than the distance threshold, the second instruction is sent to the target device via the short-range wireless communication protocol; the distance threshold is a distance restriction condition for the target device to perform the target action.
4. The method according to claim 3, characterized in that, The detection process for obtaining the target distance value between the mobile terminal and the target device includes: Based on the short-range wireless communication protocol, a preliminary distance value between the mobile terminal and the target device is detected and obtained. If the initial distance value is less than the distance threshold, or if the difference between the initial distance value and the distance threshold is within a preset range, a precise ranging command is sent to the extended device; the precise ranging command is used to instruct the extended device to detect the distance between the extended device and the target device based on the ultra-wideband protocol to obtain the target distance value; Receive the target distance value returned in response to the precise ranging command.
5. The method according to claim 3, characterized in that, After obtaining the target distance value between the mobile terminal and the target device, the method further includes: If the target distance value is less than the distance threshold, a third instruction is sent to the target device; the third instruction is used to instruct the target device to perform a user-preset automatic action.
6. The method according to claim 1, characterized in that, Sending a second instruction to the target device according to the first instruction includes: Determine whether the mobile terminal and the target device are directly connected via a short-range wireless communication protocol; If the mobile terminal and the target device are not directly connected via a short-range wireless communication protocol, the second instruction is sent based on the vehicle-to-everything (V2X) protocol.
7. The method according to claim 1, characterized in that, The target device includes a target vehicle; the step of sending a second instruction to the target device according to the first instruction includes: Parse the first instruction to obtain the identification information of the target action; According to a preset mapping rule, a second instruction corresponding to the identification information is sent to the target vehicle; the mapping rule is used to represent the correspondence between the identification information and the vehicle function.
8. The method according to claim 7, characterized in that, The target equipment includes the target vehicle; The mobile terminal is equipped with a target application and a vehicle control application; The step of parsing the first instruction to obtain the identification information of the target action includes: Based on the target application, the first instruction is parsed to obtain the identification information of the target action; The step of sending the second instruction corresponding to the identification information to the target vehicle according to the preset mapping rule includes: According to the mapping rules, a second instruction carrying the identification information is generated; Send a second instruction to the vehicle control application; the second instruction is used to instruct the vehicle control application to send a target vehicle control instruction to the target vehicle; the target vehicle control instruction is used to instruct the target vehicle to perform a target action.
9. The method according to claim 8, characterized in that, The generation of the second instruction carrying the identification information includes: Obtain connection status information between the mobile terminal and the target vehicle; the connection status information is used to indicate the communication connection status between the mobile terminal and the target vehicle; Based on the identification information and the connection status information, a second instruction carrying transmission path information specifying the target vehicle control instruction is generated; the transmission path information is determined based on the connection status information.
10. A device control method, characterized in that, An extension device for use with a mobile terminal; the mobile terminal is communicatively connected to the extension device, and the extension device is provided with physical operating elements; the method includes: Obtain the user's target operation on the physical manipulation element; According to the target operation, a first instruction is sent to the mobile terminal; wherein, the mobile terminal is configured to send a second instruction to the target device according to the first instruction; the second instruction is configured to instruct the target device to perform the target action.
11. The method according to claim 10, characterized in that, The method further includes: After receiving the precise ranging command sent by the mobile terminal, the target distance value is obtained by detecting the distance between the extended device and the target device based on the ultra-wideband protocol; The target distance value is fed back to the mobile terminal; The mobile terminal is used to send the second instruction to the target device when the target distance value is less than a distance threshold; the distance threshold is a distance restriction condition for the target device to perform the target action.
12. A mobile terminal, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the method according to any one of claims 1 to 9.
13. An extension device, characterized in that, include: Expand the device itself; The extended device body includes physical operating elements, a communication module that establishes a communication connection with the mobile terminal, and a control module. The control module is used to execute the method according to any one of claims 10 to 11.
14. The extended device according to claim 13, characterized in that, The main body of the extended device is a protective casing for the mobile terminal; Alternatively, the extended device body can be a dust plug for the headphone jack of the mobile terminal; Alternatively, the extended device itself may be a wearable device.
15. The extended device according to claim 14, characterized in that, The communication module is used to communicate with the mobile terminal via a wireless communication protocol and / or a contact point.
16. The extended device according to claim 13, characterized in that, The extended device also includes an ultra-wideband module.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, cause the processor to perform the method as claimed in any one of claims 1 to 9 or the method as claimed in any one of claims 10 to 11.