Device control method, apparatus and electronic device

CN116740912BActive Publication Date: 2026-03-27BEIJING CO WHEELS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

因此,针对每种设备单独开发通讯模型成本较高,不足以满足快速开发的需求

Benefits of technology

[0008]In the embodiment, the device to be controlled is determined, the control information and the target communication mode are determined according to the configuration file corresponding to the device to be controlled, the configuration file is used to describe the abstract function of the device to be controlled, and the control information is sent to the device to be controlled in the target communication mode. Various devices can be controlled and managed according to the unified configuration file, without paying attention to different communication protocols of various devices, and device expansion is easy, so that the requirement of rapid development of Internet of Vehicles can be met, and the technical effects of reducing development cost and development time are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116740912B_ABST
    Figure CN116740912B_ABST
Patent Text Reader

Abstract

The present disclosure provides a device control method, device and electronic device, and relates to the technical field of vehicle-mounted devices. The method comprises the following steps: determining a device to be controlled, determining control information and a target communication mode according to a configuration file corresponding to the device to be controlled, wherein the configuration file is used to describe the abstract function of the device to be controlled, and the control information is sent to the device to be controlled in the target communication mode. The unified configuration file can be used to control and manage various devices, without the need to pay attention to different communication protocols of various devices, and the device can be easily expanded, thereby meeting the needs of rapid development of Internet of Vehicles, and achieving the technical effects of reducing development cost and development time.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of in-vehicle equipment, and particularly relates to an equipment control method and device and electronic equipment. BACKGROUND

[0002] With the development of in-vehicle systems towards intelligence, the communication types of vehicle networking communication systems are gradually enriched, and existing communication mechanisms such as Controller Area Network (CAN), LIN bus, Bluetooth low energy (BLE), Wi-Fi, Ethernet, etc. need to define signals according to different vehicle models, and these communication mechanisms have different characteristics. Therefore, it is costly to develop a communication model for each device separately, which cannot meet the needs of rapid development. SUMMARY

[0003] The present disclosure proposes an equipment control method, device and electronic equipment, which aims to at least solve one of the technical problems in the related art to some extent.

[0004] The first aspect embodiment of the present disclosure proposes an equipment control method, comprising: determining a to-be-controlled device; determining control information and a target communication mode according to a configuration file corresponding to the to-be-controlled device, wherein the configuration file is used to describe the abstract function of the to-be-controlled device; and sending the control information to the to-be-controlled device in the target communication mode.

[0005] The second aspect embodiment of the present disclosure proposes an equipment control device, comprising: a first determining module configured to determine a to-be-controlled device; a second determining module configured to determine control information and a target communication mode according to a configuration file corresponding to the to-be-controlled device, wherein the configuration file is used to describe the abstract function of the to-be-controlled device; and a sending module configured to send the control information to the to-be-controlled device in the target communication mode.

[0006] The third aspect embodiment of the present disclosure proposes an electronic equipment, comprising: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the equipment control method of the embodiments of the present disclosure.

[0007] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer readable storage medium storing computer instructions, the computer instructions being used to enable the computer to execute the equipment control method disclosed by the embodiments of the present disclosure.

[0008] In the embodiment, the device to be controlled is determined, the control information and the target communication mode are determined according to the configuration file corresponding to the device to be controlled, the configuration file is used to describe the abstract function of the device to be controlled, and the control information is sent to the device to be controlled in the target communication mode. Various devices can be controlled and managed according to the unified configuration file, without paying attention to different communication protocols of various devices, and device expansion is easy, so that the requirement of rapid development of Internet of Vehicles can be met, and the technical effects of reducing development cost and development time are achieved.

[0009] Additional aspects and advantages of the present disclosure will be made apparent from the following description, which, taken in conjunction with the accompanying drawings, that will be part of this disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0010] The above and / or additional aspects and advantages of the present disclosure will become apparent and be readily understood from the following description, taken in conjunction with the accompanying drawings, in which:

[0011] Figure 1 is a flowchart of a device control method according to an embodiment of the present disclosure;

[0012] Figure 2 is a content structure diagram of a configuration file according to an embodiment of the present disclosure;

[0013] Figure 3A is an interaction process diagram of sending attribute instructions according to an embodiment of the present disclosure;

[0014] Figure 3B is an interaction process diagram of sending action instructions according to an embodiment of the present disclosure;

[0015] Figure 4 is a flowchart of a device control method according to another embodiment of the present disclosure;

[0016] Figure 5 is a diagram of a control information sending process according to an embodiment of the present disclosure;

[0017] Figure 6 is a flowchart of a device control method according to another embodiment of the present disclosure;

[0018] Figure 7A is a diagram of an attribute instruction reporting process according to an embodiment of the present disclosure;

[0019] Figure 7B is a diagram of an event instruction reporting process according to an embodiment of the present disclosure;

[0020] Figure 8 is a diagram of a device control apparatus according to another embodiment of the present disclosure;

[0021] Figure 9 A block diagram illustrating an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0022] Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings, in which the same or like reference numerals in different drawings denote the same or like elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are for the purpose of explanation only, and are not to be understood as limiting the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications and equivalents falling within the spirit and scope of the appended claims.

[0023] It should be noted that the execution subject of the device control method of the present embodiment can be a device control apparatus, which can be implemented in software and / or hardware, and can be configured in an electronic device, which can include but is not limited to a terminal, a server end, etc.

[0024] Figure 1 is a flowchart of a device control method according to an embodiment of the present disclosure, as shown in Figure 1 The method comprises the following steps.

[0025] S101: Determine a device to be controlled.

[0026] The device that needs to be controlled at present can be referred to as a device to be controlled, which can be any type of hardware device supporting communication function, and is not limited in this regard.

[0027] In one specific application scenario, the device control method provided by the embodiments of the present disclosure can be applied to a vehicle Internet system, and is executed by a device management module of a vehicle, which can be a physical vehicle machine system on board, or a cloud vehicle machine system (cloud), and is not limited in this regard. Correspondingly, the device to be controlled is a vehicle-mounted device controlled by the vehicle machine system, such as an image acquisition device (camera), intelligent windshield wiper, intelligent vehicle lamp, and other arbitrary possible intelligent hardware devices supported by the vehicle machine, and is not limited in this regard.

[0028] S102: Determine control information and a target communication mode according to a configuration file corresponding to the device to be controlled.

[0029] The profile is used to describe the abstract functions and capabilities of the to-be-controlled device. The functions of the to-be-controlled device are abstracted to obtain the profile. Different to-be-controlled devices can correspond to different profiles. The form or format of the profile corresponding to each to-be-controlled device can be uniform, that is, the capabilities of the plurality of to-be-controlled devices are respectively abstracted according to a uniform model to obtain the corresponding profile.

[0030] In some embodiments, the profile can describe basic information, configuration parameters, functions or capabilities and the like of the to-be-controlled device, that is, the function attributes supported by the to-be-controlled device can be described in the profile, and functions beyond the description of the profile are not supported. For example, Figure 2 The content structure of the profile is provided according to the embodiments of the present disclosure, as shown in Figure 2 The profile can describe, for example, the device name, device ID, communication protocol, attribute information, action information and event information of the to-be-controlled device, and the like, without limitation.

[0031] The attribute information is used to describe the basic state of the to-be-controlled device, for example, the brightness level, light direction and the like of the intelligent car lamp. In some embodiments, the attribute information part described in the profile can be in the form of a list, which is composed of a plurality of objects. Each object includes the name, description, id number, data type, value range, value list, maximum length and the like of an attribute. In addition, the attribute information can be reported by the to-be-controlled device to the car system (cloud), or can also be actively acquired or set by the car, without limitation.

[0032] The action information action is used to control the to-be-controlled device to execute a certain action or function, for example, to control the opening of the car lamp and the opening of the windshield wiper. The to-be-controlled device can execute the action according to the action action. In some embodiments, the action information part described in the profile can be in the form of a list, which is composed of a plurality of objects. Each object includes the name, description, id number, parameter list definition, result list definition and the like of an action action, without limitation.

[0033] The event information event is sent to the vehicle machine when the to-be-controlled device detects that some external or internal changes occur, for example, the intelligent rain sensor detects rain and sends event information event to the vehicle machine. In some embodiments, the event information part described in the configuration file can be in the form of a list composed of multiple objects. Each object includes the name, description, id number, parameter list definition and other information of an event event, and this is not limited.

[0034] In some embodiments, the function description information (attribute, action, event and other parameters) in the configuration file profile can flexibly select a data type according to data transmission requirements. For example, the vehicle machine and the to-be-controlled device use serial port, BLE, CAN and other communication methods. The function description information in the configuration file profile can define the function description information using a data type that occupies a small space. For WiFi, eth and other communication methods, the function description information can be defined using a higher extension json. The data type can include basic data types such as bool (Boolean), u8 (unsigned 8-bit number), u16 (unsigned 16-bit number), u32 (unsigned 32-bit number), u64 (unsigned 64-bit number), i8 (signed 8-bit number), i16 (signed 16-bit number), i32 (signed 32-bit number), i64 (signed 64-bit number), Float (floating point number), string (string), and the like, and this is not limited.

[0035] After determining the to-be-controlled device, the vehicle machine can further determine the control information and the target communication method according to the configuration file corresponding to the to-be-controlled device.

[0036] The control information is used to control the to-be-controlled device, for example, to control the attribute of the to-be-controlled device, to control the action of the to-be-controlled device, and the like, and this is not limited.

[0037] The communication method between the vehicle machine and the to-be-controlled device can be referred to as the target communication method, for example, BLE communication, WiFi communication, CAN communication, serial port communication, LIN communication and any one of other possible communication methods, and this is not limited. It can be understood that different to-be-controlled devices can use different communication methods.

[0038] In actual applications, the disclosed embodiments can first query the configuration file to determine the function information and the target communication method of the function to be controlled, wherein the function information includes, for example, the function name, the function ID, for example, an action ID or an attribute ID. Further, the control information is determined based on the function information.

[0039] Figure 3A is a schematic diagram of an interaction process of sending attribute instruction provided by an embodiment of the present disclosure, as shown in Figure 3A As shown in the figure, the car machine (cloud) can obtain the attribute of the device to be controlled, and the car machine (cloud) can also set the attribute of the device to be controlled.

[0040] In some embodiments, in the operation of obtaining the attribute of the device to be controlled, the car machine (cloud) first determines the attribute obtaining function information based on the configuration file, wherein the attribute obtaining function information includes, for example, attribute name, attribute ID and other possible information, which is not limited. It can be understood that each device to be controlled can have multiple attributes (i.e. multiple objects), and different attributes can correspond to different attribute obtaining function information, for example: obtaining the car light brightness attribute and obtaining the car light irradiation direction attribute can correspond to different attribute obtaining function information respectively.

[0041] Further, the attribute obtaining instruction property_get is generated according to the attribute obtaining function information, which can be used as control information, and the attribute obtaining instruction property_get is sent to the device to be controlled, that is, different attributes can generate different attribute obtaining instructions.

[0042] In some embodiments, in the operation of setting the attribute of the device to be controlled, the car machine (cloud) first determines the attribute setting function information based on the configuration file, and determines the attribute parameter. Wherein each device to be controlled can have multiple attributes (i.e. multiple objects), and different attributes can correspond to different attribute setting function information, for example, car light brightness function setting, car light irradiation direction function setting, corresponding to different attribute setting function information respectively; and the attribute parameter is the parameter of the attribute to be set, for example: if the attribute to be set is the car light brightness, the attribute parameter can be the specific brightness level; further, the attribute setting instruction property_set is generated according to the attribute setting function information and the attribute parameter, wherein the attribute setting instruction is used as control information. Thus, the configuration file can realize the technical effect of flexible control of the attribute of the device to be controlled.

[0043] In some embodiments, Figure 3B is a schematic diagram of an interaction process of sending action instruction provided by an embodiment of the present disclosure, as shown in Figure 3B As shown in the figure, the car machine (cloud) can send the action instruction action to the device to be controlled, that is, the embodiment of the present disclosure can control the action of the device to be controlled.

[0044] Specifically, in the operation of determining the control information according to the configuration file corresponding to the device to be controlled, the car machine (cloud) first determines the information of the action control function based on the configuration file, and determines the action parameter.

[0045] For example, the action to be controlled is the movement frequency of the wiper, the embodiment first queries the information of the wiper action control function from the configuration file corresponding to the intelligent wiper, wherein the information of the wiper action control function includes the wiper action name, the action ID and other possible information, which is not limited. The action parameter corresponds to the movement frequency of the wiper, for example, 2 seconds / time.

[0046] Further, the action control instruction action is generated according to the information of the action control function and the action parameter (2 seconds / time), and the action control instruction action is sent to the device to be controlled as the control information. Thus, the technical effect of controlling the action of the device to be controlled through the configuration file can be achieved by the embodiment of the disclosure.

[0047] S103: sending the control information to the device to be controlled through the target communication mode.

[0048] After determining the target communication mode and the control information, further, the car machine (or cloud) sends the control information to the device to be controlled through the target communication mode, so that the device to be controlled can perform corresponding control according to the control information, for example, reporting attribute information, setting attribute information, executing action, which is not limited. Thus, the car machine side can manage the device and call the device function through the unified configuration file profile of the device, only needs to focus on the data information to be transmitted and does not need to focus on the communication implementation, and the device and the configuration file profile are corresponding, so as to achieve the effect of decoupling the device and the specific implementation process, and decoupling the communication protocol and the function.

[0049] In the embodiment, the device to be controlled is determined, the control information and the target communication mode are determined according to the configuration file corresponding to the device to be controlled, wherein the configuration file is used to describe the abstract function of the device to be controlled, and the control information is sent to the device to be controlled through the target communication mode. Various devices can be controlled and managed according to the unified configuration file, without focusing on different communication protocols of various devices, and the device expansion is easy, so that the requirement of rapid development of Internet of Vehicles can be met, and the technical effects of reducing development cost and development time are achieved.

[0050] Figure 4 is a flow diagram of a device control method according to another embodiment of the disclosure, as shown in Figure 4 the method comprises:

[0051] S401: Determine a device to be controlled.

[0052] S402: Determine control information and a target communication mode according to a configuration file corresponding to the device to be controlled, wherein the configuration file is used to describe an abstract function of the device to be controlled.

[0053] The description of S401-S402 can refer to the above embodiments, and will not be described here.

[0054] S403: Call a preset communication program interface to send the control information to the device to be controlled.

[0055] Figure 5 is a schematic diagram of a control information sending process provided according to an embodiment of the present disclosure, as shown in Figure 5 The communication program interface api can adapt to multiple communication modes, for example, including BLE communication, WiFi communication, CAN communication, serial port communication, LIN communication and the like.

[0056] In the operation of sending the control information to the device to be controlled through the target communication mode, the car machine (or the cloud) can call the communication program interface api to send the control information to the device to be controlled.

[0057] For example, the device to be controlled is a smart wiper, and the car machine and the smart wiper adopt a BLE communication mode, in the operation of sending the control information to the smart wiper, the car machine can call the BLE communication mode in the communication program interface api to send the control information.

[0058] For another example, the device to be controlled is a smart car light, and the car machine and the smart car light adopt a serial port communication mode, in the operation of sending the control information to the smart car light, the car machine can call the serial port communication mode in the communication program interface api to send the control information.

[0059] Therefore, the embodiment of the present disclosure can encapsulate multiple communication modes into the form of api interface, so that the car machine can directly call the interface to send the control information to the device to be controlled, without needing to pay attention to the specific communication mode, which can improve the efficiency of sending the control information and make the operation more convenient.

[0060] In this embodiment, the device to be controlled is determined, and the control information and the target communication mode are determined according to the configuration file corresponding to the device to be controlled, the configuration file is used to describe the abstract function of the device to be controlled, and the control information is sent to the device to be controlled in the target communication mode. Various devices can be controlled and managed according to a unified configuration file, without the need to pay attention to different communication protocols of various devices, and the device expansion is easy, so that the demand of rapid development of Internet of Vehicles can be met, and the technical effects of reducing development cost and development time are achieved. In addition, the disclosure embodiment can encapsulate various communication modes into the form of api interface, so that the car machine can directly call the interface to send the control information to the device to be controlled, without the need to pay attention to the specific communication mode, the efficiency of sending the control information can be improved, and the operation is more convenient.

[0061] Figure 6 is a flow diagram of a device control method according to another embodiment of the disclosure, as shown in Figure 6 , the method comprises:

[0062] S601: determining a device to be controlled.

[0063] S602: determining control information and a target communication mode according to a configuration file corresponding to the device to be controlled, wherein the configuration file is used to describe the abstract function of the device to be controlled.

[0064] S603: sending the control information to the device to be controlled through the target communication mode.

[0065] The description of S601-S603 can be specifically referred to the above-mentioned embodiments, which will not be repeated here.

[0066] S604: receiving a reporting instruction from the device to be controlled.

[0067] In the embodiment of the disclosure, the car machine (or cloud) can also receive the reporting instruction from the device to be controlled, wherein the instruction can be generated by the device to be controlled according to the content of the configuration file.

[0068] In some embodiments, Figure 7A is a property instruction reporting process diagram according to an embodiment of the disclosure, as shown in Figure 7A , the device to be controlled (device) can actively report the attribute reporting instruction property_notify to the car machine (or cloud), in this case, the car machine (or cloud) can receive the attribute reporting instruction property_notify, that is, the reporting instruction.

[0069] In some other embodiments, Figure 7B is an event instruction reporting process diagram according to an embodiment of the disclosure, as shown in Figure 7BAs shown, when the to-be-controlled device detects that some external or internal change occurs, the to-be-controlled device can send an event reporting instruction event to the vehicle machine, in which case the vehicle machine (or the cloud) can receive the event reporting instruction event, i.e., the reporting instruction.

[0070] It can be understood that the above is only an exemplary description of the reporting attribute instruction and the event instruction, and in actual application, the to-be-controlled device can also report any instruction to the vehicle machine (or the cloud), which is not limited.

[0071] S605: Analyzing the reporting instruction according to the configuration file to determine the reporting information.

[0072] After receiving the reporting instruction, the vehicle machine (or the cloud) can further analyze the reporting instruction according to the configuration file to determine the reporting information.

[0073] In actual application, the reporting instruction reported by the to-be-controlled device can include a device ID, specific information, etc., for example, the attribute reporting instruction property_notify includes a device ID, an attribute ID, and attribute information, etc. The vehicle machine (or the cloud) can analyze the device ID based on the configuration file to determine the to-be-controlled device that sends the reporting instruction, and further determine the specific attribute information reported according to the attribute ID, which is the reporting information.

[0074] For another example, the event reporting instruction event includes a device ID, an event ID, and event information, the vehicle machine (or the cloud) can analyze the device ID based on the configuration file to determine the to-be-controlled device that sends the reporting instruction, and further determine the specific event information reported according to the event ID, which is the reporting information.

[0075] S606: Processing the reporting information.

[0076] After determining the reporting information, the vehicle machine (or the cloud) can further process the reporting information, for example, performing feedback control on the to-be-controlled device according to the reporting information, or storing and analyzing the reporting information, etc., which is not limited.

[0077] For example, the reporting information is the rainfall information sent by the intelligent wiper, and the vehicle machine (or the cloud) can control the intelligent wiper according to the rainfall information; for another example, the reporting information is the road image information sent by the image acquisition device, and the vehicle machine (or the cloud) can control the driving of the vehicle according to the image information.

[0078] Therefore, the embodiment of the disclosure only needs to receive the reporting instruction and parse the reporting information, and the communication process with the to-be-controlled device does not need to be concerned in the process, so the device side and the vehicle side can easily process the correspondence relationship between the capabilities of the two ends, and have good expansion capability.

[0079] In the embodiment, the to-be-controlled device is determined, and the control information and the target communication mode are determined according to the configuration file corresponding to the to-be-controlled device, the configuration file is used to describe the abstract function of the to-be-controlled device, and the control information is sent to the to-be-controlled device in the target communication mode. Various devices can be controlled and managed according to a unified configuration file, without concerning different communication protocols of various devices, and device expansion is easy, so that the demand of rapid development of Internet of Vehicles can be met, and the technical effects of reducing development cost and development time are achieved. In addition, the embodiment of the disclosure only needs to receive the reporting instruction and parse to realize the control of the device, and the communication process with the to-be-controlled device does not need to be concerned in the process, so the device side and the vehicle side can easily process the correspondence relationship between the capabilities of the two ends, and have good expansion capability.

[0080] In order to realize the above-mentioned embodiment, the disclosure further provides a device control apparatus.

[0081] Figure 8 is a schematic diagram of a device control apparatus provided according to another embodiment of the disclosure.

[0082] As shown in Figure 8 , the device control apparatus 80 comprises:

[0083] A first determination module 801 is configured to determine a to-be-controlled device.

[0084] A second determination module 802 is configured to determine control information and a target communication mode according to a configuration file corresponding to the to-be-controlled device, wherein the configuration file is used to describe the abstract function of the to-be-controlled device.

[0085] A sending module 803 is configured to send the control information to the to-be-controlled device through the target communication mode.

[0086] In some embodiments, the sending module 803 is specifically configured to:

[0087] invoke a preset communication program interface to send the control information to the to-be-controlled device, wherein the communication program interface is adapted to multiple communication modes.

[0088] In some embodiments, the second determination module 802 is specifically configured to:

[0089] determine information of an attribute acquisition function based on the configuration file, and generate an attribute acquisition instruction according to the information of the attribute acquisition function;

[0090] or

[0091] determine attribute parameter based on the profile, and generate an attribute setting instruction according to the attribute setting function information and the attribute parameter;

[0092] The attribute setting instruction and the attribute obtaining instruction are used as control information.

[0093] In some embodiments, the second determining module 802 is specifically configured to:

[0094] determine action control function information based on the profile, and determine action parameter;

[0095] generate an action control instruction according to the action control function information and the action parameter, wherein the action control instruction is used as control information.

[0096] In some embodiments, the device 80 further includes:

[0097] a receiving module configured to receive a reporting instruction from the device to be controlled, wherein the reporting instruction is an attribute reporting instruction or an event reporting instruction;

[0098] a parsing module configured to parse the reporting instruction according to the profile to determine reporting information; and

[0099] a control module configured to process the reporting information.

[0100] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, which will not be described here.

[0101] The device control apparatus in the embodiments of the present disclosure determines the device to be controlled, and determines the control information and the target communication mode according to the profile corresponding to the device to be controlled, wherein the profile is used to describe the abstract function of the device to be controlled, and the target communication mode is used to send the control information to the device to be controlled. The device control apparatus can control and manage various devices according to the unified profile, without paying attention to different communication protocols of various devices, and is easy to expand the devices, so as to meet the needs of rapid development of Internet of Vehicles, and achieve the technical effects of reducing development cost and development time.

[0102] According to the embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium and a computer program product.

[0103] In order to implement the above-mentioned embodiments, the present disclosure further provides a computer program product, when the instruction processor in the computer program product executes, the device control method as proposed in the above-mentioned embodiments of the present disclosure is executed.

[0104] Figure 9A block diagram illustrating an exemplary electronic device suitable for use in implementing an embodiment of the disclosure is shown. Figure 9 The electronic device 12 shown is merely one example. It should be appreciated that the functions and scope of use of embodiments of the disclosure should not be limited to that of the electronic device 12 shown.

[0105] As Figure 9 shown, the electronic device 12 is in the form of a general-purpose computing device. The components of the electronic device 12 can include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 to the processing unit 16.

[0106] The bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration bus (e.g., an Accelerated Graphics Port, or AGP bus) and a processor or local bus using any of a variety of bus architectures. By way of example, these bus architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0107] The electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by the electronic device 12 and includes both volatile and non- volatile media, removable and non-removable media.

[0108] The memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 34 can be provided for reading from and writing to non-removable, non-volatile magnetic media (e.g., a "hard drive"). Figure 9 Not shown, a removable / non-removable, volatile / non-volatile computer system storage medium can be a magnetic disk drive for reading from and writing to a magnetic disk, e.g., a "hard drive".

[0109] Although Figure 9A disk drive, a floppy disk drive, a CD-ROM drive, a DVD-ROM drive, or other removable media drive, can be provided for reading from and writing to a removable n onvolatile magnetic disk (e.g., a "floppy disk"), and to a removable nonvolatile optical disk (e.g., a CD ROM, a DVD ROM, or another optical medium). In such instances, each drive can be connected to the bus 18 by one or more data media interfaces. The memory 28 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.

[0110] Program / utility 40, having a set (at least one) of program modules 42, can be stored in memory 28 by way of example, and can include an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof, can include implementation of a networking environment. Program modules 42 generally carry out the functions and / or methodologies of embodiments of the disclosure as described herein.

[0111] The electronic device 12 can also communicate with one or more external devices 14 such as a keyboard or a pointing device, displays 24, etc.; other devices such as devices that enable a user to interact with the electronic device 12; and / or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication can occur via the input / output (I / O) interface 22. Still yet, the electronic device 12 can communicate with one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or the Internet, through a network adapter 20. As depicted, the network adapter 20 communicates with the other components of the electronic device 12 via the bus 18. It should be appreciated that the network adapter 20 and / or the other hardware and / or software components depicted in FIG. 1 can be utilized in conjunction with the electronic device 12, although they are not explicitly shown. For example, a

[0112] The processing unit 16 can execute the various components of the device control method described in the aforementioned embodiments by running programs stored in the system memory 28.

[0113] Those skilled in the art will readily understand that the application is well adapted to carry out the objects and obtain the ends and advantages mentioned, as well as those inherent therein, and that the application is capable of being carried to further useful results and methods of achieving the ends specified in the claims that follow, whenever necessary or desirable, in addition, such as changes, omissions, substitutions and changes in procedures and equipment, as will occur to those skilled in the art, can be made without departing from the spirit of the application. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

[0114] It is to be understood that the application is not limited to the precise construction herein described and as shown in the attached drawings, and that changes can be made to the exact construction and arrangement of parts as therein shown and described without departing from the scope of the application. The scope of the application is to be limited only to the claims appended hereto.

[0115] It should be noted that in the description of the present disclosure, the terms "first", "second", etc. are used only for descriptive purposes and are not to be construed as indicating or implying relative importance. In addition, in the description of the present disclosure, the meaning of "a plurality of" is two or more unless otherwise specified.

[0116] Any process or method descriptions or blocks in flow charts or otherwise herein described can be understood as representing modules, segments, or portions of code that include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are possible. In some embodiments, the processes and methods described can be undertaken in an alternative order from those described or with various steps combined or divided into additional steps of similar function.

[0117] It is to be understood that the various parts of the present disclosure can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, the plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, and as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: discrete logic circuit with logic gates for implementing logical functions of data signals, application specific integrated circuit with suitable combination logic gates, programmable gate array (PGA), field programmable gate array (FPGA), etc.

[0118] Those skilled in the art can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by programs instructing relevant hardware, and the programs can be stored in a computer readable storage medium, which includes one or a combination of steps of the method embodiments when executed.

[0119] In addition, each functional unit in each embodiment of the present disclosure can be integrated in one processing module, or each unit can be physically present separately, or two or more units can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.

[0120] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0121] In the description of the present specification, the description referring to the terms "one embodiment", "some embodiments", "an example", "a specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the present specification, the illustrative description of the above terms does not necessarily mean the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0122] Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present disclosure, and those of ordinary skill in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present disclosure.

Claims

1. A device control method characterized by, The application is applied to the technical field of vehicle-mounted equipment and comprises the following steps: determining a vehicle-mounted equipment to be controlled; determining control information and a target communication mode according to a configuration file corresponding to the vehicle-mounted equipment to be controlled, wherein the configuration file is used for describing the abstract function of the vehicle-mounted equipment to be controlled, the target communication mode comprises at least one of BLE communication, CAN communication, serial communication and LIN communication, and different vehicle-mounted equipments to be controlled adopt different communication modes; and calling a preset communication program interface and sending the control information to the vehicle-mounted equipment to be controlled; wherein the communication program interface is adapted to the target communication mode.

2. The method of claim 1, wherein, The control information is determined according to the configuration file corresponding to the vehicle-mounted equipment to be controlled, and comprises the following steps: determining attribute acquisition function information based on the configuration file and generating attribute acquisition instructions according to the attribute acquisition function information; or determining attribute setting function information and attribute parameters based on the configuration file and generating attribute setting instructions according to the attribute setting function information and the attribute parameters; wherein the attribute setting instructions and the attribute acquisition instructions are used as the control information.

3. The method of claim 1, wherein, The control information is determined according to the configuration file corresponding to the vehicle-mounted equipment to be controlled, and comprises the following steps: determining action control function information based on the configuration file and determining action parameters; generating action control instructions according to the action control function information and the action parameters, wherein the action control instructions are used as the control information.

4. The method of claim 1, wherein, The application further comprises the following steps: receiving a reporting instruction from the vehicle-mounted equipment to be controlled, wherein the reporting instruction is an attribute reporting instruction or an event reporting instruction; analyzing the reporting instruction according to the configuration file to determine reporting information; and processing the reporting information.

5. An apparatus control device characterized by comprising: The application is applied to the technical field of vehicle-mounted equipment and comprises the following steps: a first determining module is configured to determine a vehicle-mounted equipment to be controlled; a second determining module is configured to determine control information and a target communication mode according to a configuration file corresponding to the vehicle-mounted equipment to be controlled, wherein the configuration file is used for describing the abstract function of the vehicle-mounted equipment to be controlled, the target communication mode comprises at least one of BLE communication, CAN communication, serial communication and LIN communication, and different vehicle-mounted equipments to be controlled adopt different communication modes; and a sending module is configured to call a preset communication program interface and send the control information to the vehicle-mounted equipment to be controlled; wherein the communication program interface is adapted to the target communication mode.

6. The apparatus of claim 5, wherein, The second determining module is specifically configured to: determine attribute acquisition function information based on the configuration file and generate attribute acquisition instructions according to the attribute acquisition function information; or determine attribute setting function information and attribute parameters based on the configuration file and generate attribute setting instructions according to the attribute setting function information and the attribute parameters; wherein the attribute setting instructions and the attribute acquisition instructions are used as the control information.

7. The apparatus of claim 5, wherein, The second determining module is specifically configured to: determine action control function information based on the configuration file and determine action parameters; generate an action control instruction according to the information of the action control function and the action parameter, wherein the action control instruction is the control information.

8. The apparatus of claim 5, wherein, The apparatus further includes: a receiving module, configured to receive a reporting instruction from the vehicle-mounted device to be controlled, wherein the reporting instruction is an attribute reporting instruction or an event reporting instruction; a parsing module, configured to parse the reporting instruction according to the configuration file to determine reporting information; and a control module, configured to process the reporting information. 9.An electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.

10. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to make the computer execute the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Gateway supporting multiple protocols, control method and event reporting method

    CN110912813A

  • Control method of intelligent terminal equipment, linkage method, auxiliary method and device thereof

    CN111478832A

  • IOT-based method for realizing network connection of vehicle-end rear-mounted equipment, method and system for interacting with vehicle remote control terminal

    CN113766458A

  • Equipment data interaction method, system and platform based on object model structural body

    CN113868868A