CN116594668A - Method, device, configuration equipment, medium and product for configuring main control chip function - Google Patents
Method, device, configuration equipment, medium and product for configuring main control chip function Download PDFInfo
- Publication number
- CN116594668A CN116594668A CN202310375399.0A CN202310375399A CN116594668A CN 116594668 A CN116594668 A CN 116594668A CN 202310375399 A CN202310375399 A CN 202310375399A CN 116594668 A CN116594668 A CN 116594668A
- Authority
- CN
- China
- Prior art keywords
- interface
- function
- configuration
- pin
- main control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 230000006870 function Effects 0.000 claims abstract description 520
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 10
- 238000011161 development Methods 0.000 abstract description 16
- 230000000007 visual effect Effects 0.000 abstract description 8
- 238000012800 visualization Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 20
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 229910003460 diamond Inorganic materials 0.000 description 4
- 239000010432 diamond Substances 0.000 description 4
- 101150042711 adc2 gene Proteins 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 101100434411 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) ADH1 gene Proteins 0.000 description 2
- 101150102866 adc1 gene Proteins 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 101100162020 Mesorhizobium japonicum (strain LMG 29417 / CECT 9101 / MAFF 303099) adc3 gene Proteins 0.000 description 1
- 101710096655 Probable acetoacetate decarboxylase 1 Proteins 0.000 description 1
- 101710096660 Probable acetoacetate decarboxylase 2 Proteins 0.000 description 1
- 108091022873 acetoacetate decarboxylase Proteins 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a method, a device, configuration equipment, media and products for configuring functions of a main control chip, which are particularly applied to the field of vehicles. The method comprises the following steps: responding to the configuration operation of the main control chip, and displaying a function configuration interface; displaying an interface configuration interface of the first function under the condition that the first function is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function; determining the identification of the first interface under the condition that the first interface is selected; and sending the identification of the first interface to the main control chip so that the main control chip configures the first function. The method can provide a visual configuration mode when a developer develops the functions of the main control chip, so that the developer can finish the definition of the functions of the main control chip on different display interfaces. The configuration mode which is simple and easy to understand in visualization can reduce the workload of developers, shorten the development period of the main control chip function and effectively improve the configuration efficiency of the main control chip function.
Description
Technical Field
The present application relates to the field of vehicles, and more particularly, to a method, an apparatus, a configuration device, a medium, and a product for configuring a function of a main control chip in the field of vehicles.
Background
At present, along with the continuous development of technology in the vehicle industry, more and more intelligent devices gradually replace original hardware products in the vehicle, and compared with the original hardware products in the vehicle, the intelligent devices are more perfect and rich in functions, and can meet more demands of users.
In the process of realizing function development of the intelligent equipment, a developer develops a purchased main control chip of the intelligent equipment so as to enable the intelligent equipment to realize corresponding functions.
The development process of the main control chip generally needs a developer to have certain development capability, has high requirements on professional capability of the developer, and takes longer time, so that the development period is prolonged.
In summary, how to provide a high-efficiency and rapid development scheme for developers in the process of developing a main control chip becomes a problem to be solved.
Disclosure of Invention
The application provides a method, a device, configuration equipment, media and a product for configuring the functions of a main control chip. The configuration mode which is simple and easy to understand in visualization can reduce the workload of developers, shorten the development period of the main control chip function and effectively improve the configuration efficiency of the main control chip function.
In a first aspect, a method for configuring functions of a main control chip is provided, where the method includes: responding to the configuration operation of the main control chip, displaying a function configuration interface of the main control chip, wherein the function configuration interface is used for configuring the related functions of the vehicle; displaying an interface configuration interface of a first function in the function configuration interfaces under the condition that the first function is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function, and the interface of the first function is used for connecting a component capable of realizing the first function; determining an identification of a first interface in the interfaces of the first function when the first interface is selected; and sending the identifier of the first interface to the main control chip so that the main control chip configures the first function corresponding to the first interface according to the identifier of the first interface.
In the above technical solution, when the function configuration of the main control chip is required, the present application provides a method for configuring the function of the main control chip. Specifically, the function configuration interface of the main control chip is displayed in response to the configuration operation of the main control chip. Wherein the function configuration interface may be used to configure vehicle-related functions. Further, in the case of selecting a first function in the function configuration interfaces, displaying the interface configuration interfaces of the first function, wherein the interface configuration interfaces of the first function comprise interfaces capable of realizing the first function. The visualized display function configuration interface and the interface configuration interface of the first function are realized by the developer through corresponding selected operations on the interface, and the method is simple, efficient and easy to operate. Further, in the interface configuration interface of the first function, the developer can determine the first interface for realizing the first function through selecting operation. Therefore, the configuration process of the first function is a visual and visual simple configuration mode. The development personnel are not required to have strong technical properties, so that the workload of the development personnel is reduced, the development period is shortened, and the development efficiency is improved.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, the interface of the first function corresponds to a different pin of the main control chip, and after determining the identifier of the first interface in the case that the first interface of the interfaces of the first function is selected, the method further includes: and configuring the function of the first pin corresponding to the first interface as the first function.
It should be understood that in the present application, each pin has multiple interfaces, and each pin may implement different functions through the multiple interfaces. Each pin can only be configured for one function during each configuration. That is, only one interface is active at a time for each pin.
In the above technical solution, after the first interface is selected, it is indicated that the first pin corresponding to the first interface has been configured as the first function. The present application may configure the function of the first pin of the first interface as the first function in order to avoid the problem that the function of the first pin is repeatedly configured.
With reference to the first aspect, in some possible implementations, configuring a function of a first pin corresponding to the first interface as the first function includes: determining a plurality of functions of the first pin and interfaces corresponding to the plurality of functions of the first pin, wherein the plurality of functions of the first pin comprise the first function; and configuring the display states of other interfaces except the first interface in the interfaces of the first pin to be not displayed so that the first pin realizes the first function through the first interface.
In the above technical solution, specifically, when the function of the first pin of the first interface is configured as the first function, all interfaces of the first pin may be determined first. Since the first interface of the first pin has been selected, it is stated that the first pin is no longer able to perform further functions via the other interfaces. Therefore, the display states of the interfaces except the first interface in the interfaces of the first pin can be configured to be not displayed so as to indicate that the other interfaces of the first pin cannot be selected. The above process ensures the accuracy and the uniqueness of each pin in each configuration, and achieves the effect that the function of the first pin cannot be repeatedly configured under the condition that the first pin is already configured.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, the method further includes: for a second interface which is not configured as the first function, determining a second pin corresponding to the second interface, a plurality of functions of the second pin and interfaces corresponding to the functions of the second pin; and displaying an interface configuration interface of the second function under the condition that the second function is selected, wherein the interface configuration interface of the second function comprises a third interface, the second function is any one of the functions of the second pin except the first function, and the third interface is an interface used for realizing the second function in the interfaces of the second pin.
In the above technical solution, after the first interface is selected, the present application may also determine which interfaces are not selected (i.e. not configured) among the interfaces of the first function. Wherein the third interface not configured as the first function indicates that the function of the second pin where the third interface is located is not configured. Since the functions of the second pin include the functions of the first function, the application can display the third interface for realizing the functions in the interfaces of the second pin under the condition that the functions except the first function are selected in the functions of the second pin on the premise that the second pin is not configured as the first function, so that the second pin can realize other functions except the first function through other interfaces.
It can be seen that in the above procedure, the second pin can be configured as both the first function and the second function, depending on which interface is selected. That is, each pin provided by the application can realize different functions through different configuration modes, thereby realizing the function multiplexing effect of the pin and improving the utilization rate of the pin.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, in response to an update operation on the first interface, determining a fourth interface corresponding to the update operation; and configuring the function of the third pin corresponding to the fourth interface as the first function.
In the above technical solution, when the first interface of the first function needs to be updated, the present application may determine the fourth interface corresponding to the update operation again in response to the update operation. The process of updating in time can avoid the problem of inaccurate function configuration of the main control chip caused by untimely updating, and improves the accuracy of the function configuration of the main control chip. Further, after the fourth interface is determined, the function of the third pin where the fourth interface is located is described as the first function, and the method and the device can configure the third pin of the fourth interface as the first function in the same configuration mode of the first pin of the first interface, so that the problem of repeated configuration of the function of the third pin is avoided.
With reference to the first aspect and the foregoing implementation manner, in some possible implementation manners, in a case that a first function in the function configuration interface is selected, displaying an interface configuration interface of the first function includes: determining an interface of the first function if the first function is selected; generating an interface configuration interface of the first function according to the interface of the first function; displaying the interface configuration interface of the first function.
In the above technical solution, a manner of displaying an interface configuration interface of a first function is provided. Specifically, under the condition that the first function is selected, the interface of the first function can be determined according to the first function. And generating and displaying an interface configuration interface of the first function based on the interface of the first function. The above process can intelligently provide a visual interface configuration interface for a developer in the case that the first function is selected.
In summary, the application provides a method for configuring the functions of a main control chip when the functions of the main control chip are required to be configured. Specifically, the function configuration interface of the main control chip is displayed in response to the configuration operation of the main control chip. Wherein the function configuration interface may be used to configure vehicle-related functions. Further, in the case of selecting a first function in the function configuration interfaces, displaying the interface configuration interfaces of the first function, wherein the interface configuration interfaces of the first function comprise interfaces capable of realizing the first function. The visualized display function configuration interface and the interface configuration interface of the first function are realized by the developer through corresponding selected operations on the interface, and the method is simple, efficient and easy to operate. Further, in the interface configuration interface of the first function, the developer can determine the first interface for realizing the first function through selecting operation. Therefore, the configuration process of the first function is a visual and visual simple configuration mode. The development personnel are not required to have strong technical properties, so that the workload of the development personnel is reduced, the development period is shortened, and the development efficiency is improved.
It should be understood that in the present application, each pin has multiple interfaces, and each pin may implement different functions through the multiple interfaces. Each pin can only be configured for one function during each configuration. That is, only one interface is active at a time for each pin.
In the above technical solution, after the first interface is selected, it is indicated that the first pin corresponding to the first interface has been configured as the first function. The present application may configure the function of the first pin of the first interface as the first function in order to avoid the problem that the function of the first pin is repeatedly configured.
Specifically, when the function of the first pin of the first interface is configured as the first function, all interfaces of the first pin may be determined first. Since the first interface of the first pin has been selected, it is stated that the first pin is no longer able to perform further functions via the other interfaces. Therefore, the display states of the interfaces except the first interface in the interfaces of the first pin can be configured to be not displayed so as to indicate that the other interfaces of the first pin cannot be selected. The above process ensures the accuracy and the uniqueness of each pin in each configuration, and achieves the effect that the function of the first pin cannot be repeatedly configured under the condition that the first pin is already configured.
After the first interface is selected, the present application may also determine which interfaces are not selected (i.e., not configured) among the interfaces of the first function. Wherein the third interface not configured as the first function indicates that the function of the second pin where the third interface is located is not configured. Since the functions of the second pin include the functions of the first function, the application can display the third interface for realizing the functions in the interfaces of the second pin under the condition that the functions except the first function are selected in the functions of the second pin on the premise that the second pin is not configured as the first function, so that the second pin can realize other functions except the first function through other interfaces.
It can be seen that in the above procedure, the second pin can be configured as both the first function and the second function, depending on which interface is selected. That is, each pin provided by the application can realize different functions through different configuration modes, thereby realizing the function multiplexing effect of the pin and improving the utilization rate of the pin.
When the first interface of the first function needs to be updated, the application can respond to the updating operation to redetermine the fourth interface corresponding to the updating operation. The process of updating in time can avoid the problem of inaccurate function configuration of the main control chip caused by untimely updating, and improves the accuracy of the function configuration of the main control chip. Further, after the fourth interface is determined, the function of the third pin where the fourth interface is located is described as the first function, and the method and the device can configure the third pin of the fourth interface as the first function in the same configuration mode of the first pin of the first interface, so that the problem of repeated configuration of the function of the third pin is avoided.
In addition, a way of displaying an interface configuration interface of the first function is proposed. Specifically, under the condition that the first function is selected, the interface of the first function can be determined according to the first function. And generating and displaying an interface configuration interface of the first function based on the interface of the first function. The above process can intelligently provide a visual interface configuration interface for a developer in the case that the first function is selected.
In a second aspect, an apparatus for configuring a function of a main control chip is provided, where the apparatus includes: the display module is used for responding to the configuration operation of the main control chip and displaying a function configuration interface of the main control chip, wherein the function configuration interface is used for configuring the related functions of the vehicle; displaying an interface configuration interface of a first function in the function configuration interfaces under the condition that the first function is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function, and the interface of the first function is used for connecting a component capable of realizing the first function; a determining module, configured to determine an identifier of a first interface in the interfaces of the first function if the first interface is selected; and the sending module is used for sending the identification of the first interface to the main control chip so that the main control chip configures the first function corresponding to the first interface according to the identification of the first interface.
With reference to the second aspect, in some possible implementations, the interfaces of the first function correspond to different pins of the main control chip, and after determining the identifier of the first interface in the case that the first interface of the interfaces of the first function is selected, the apparatus further includes: the first configuration module is configured to configure a function of a first pin corresponding to the first interface as the first function.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the first configuration module is specifically configured to: determining a plurality of functions of the first pin and interfaces corresponding to the plurality of functions of the first pin, wherein the plurality of functions of the first pin comprise the first function; and configuring the display states of other interfaces except the first interface in the interfaces of the first pin to be not displayed so that the first pin realizes the first function through the first interface.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the apparatus further includes: a processing module, configured to determine, for a second interface that is not configured as the first function, a second pin corresponding to the second interface, a plurality of functions of the second pin, and interfaces corresponding to the plurality of functions of the second pin; and displaying an interface configuration interface of the second function under the condition that the second function is selected, wherein the interface configuration interface of the second function comprises a third interface, the second function is any one of the functions of the second pin except the first function, and the third interface is an interface used for realizing the second function in the interfaces of the second pin.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the apparatus further includes: the second configuration module is used for responding to the updating operation of the first interface and determining a fourth interface corresponding to the updating operation; and configuring the function of the third pin corresponding to the fourth interface as the first function.
With reference to the second aspect and the foregoing implementation manner, in some possible implementation manners, the display module is specifically configured to: determining an interface of the first function if the first function is selected; generating an interface configuration interface of the first function according to the interface of the first function; displaying the interface configuration interface of the first function.
In a third aspect, a configuration device is provided that includes a memory and a processor. The memory is for storing executable program code and the processor is for calling and running the executable program code from the memory to cause the configuration device to perform the method of the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, there is provided a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, a computer readable storage medium is provided, the computer readable storage medium storing computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic diagram of a scenario for configuring functions of a main control chip according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for configuring functions of a main control chip according to an embodiment of the present application;
FIG. 3 is a schematic view of a display function configuration interface according to an embodiment of the present application;
fig. 4 is a schematic view of a scene of a display interface configuration interface according to an embodiment of the present application;
FIG. 5 is a schematic view of another display interface configuration interface according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a scenario for updating a first interface according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for configuring functions of a main control chip according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a configuration device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B: the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present application, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
Fig. 1 is a schematic diagram of a scenario for configuring functions of a main control chip according to an embodiment of the present application.
Illustratively, as shown in fig. 1, the configuration device 101 is configured to configure functions of the main control chip 102.
Specifically, the main control chip 102 includes a plurality of pins. Typically, each pin can implement a pin multiplexing function in addition to the most basic functions, general purpose input output (General Purpose Input Output, GPIO). Such as pulse width modulation (Pulse Width Modulation, PWM), analog-to-Digital Converter (ADC), integrated circuit bus serial data lines (Inter-Integrated Circuit Serial Data Line, I) 2 C-SDA) and integrated circuit bus serial signal line (Inter-Integrated Circuit Serial Clock Line, I 2 C-SCL), etc., the embodiments of the present application are not specifically recited. Main part in the embodiment of the application The intelligent devices (e.g., child seats, humidifiers, etc.) corresponding to the control chip 102 are mainly applied to the vehicle, so the functions in the embodiments of the present application can be understood as functions related to the vehicle.
The multiplexing function that each pin of the main control chip 102 can implement is preset. In the embodiment of the application, on the basis of the preset multiplexing function which can be realized by each pin, the peripheral circuit and the IO interface are combined, and each pin is abstracted into a plurality of interfaces (such as J1, J2 … … Jn and the like), so that each pin realizes the multiplexing function through different interfaces. For example, for pin 1, except for the basic function GPIO, if the multiplexing function is ADC, the corresponding interface is J1. The configurator can access the pin 1 through the voltage division of the two resistors by the J1, and the subsequent developer can directly access the temperature sensor to the J1, so that the function of the pin 1 is ADC.
After the interfaces of each pin are obtained, the configurator can also burn the driver of each interface to the main control chip 102 for storage through the burning process.
Alternatively, the model of the master chip 102 may be ESP32-C3.
Further, after the above-mentioned configuration personnel has configured the main control chip 102, after the developer of the intelligent device purchases the main control chip 102, the functions of the main control chip 102 may be configured by the configuration equipment 101 based on the above-mentioned interface configuration. The configuration device 101 is provided with a configuration tool for the functions of the main control chip 102, and different configuration interfaces can be displayed in the display area of the configuration device 101 for a developer to define and configure the functions of the main control chip 102.
Illustratively, the display area of the configuration device 101 displays an interface configuration interface of the first function. Wherein the interface configuration interface of the first function includes an interface capable of implementing the first function or an interface capable of being configured as the first function. Specifically, the developer may configure (select) the first interface implementing the first function at the interface configuration interface of the first function.
Alternatively, the configuration device 102 may be any one of a wearable device, a notebook computer, a smart phone, and a computer, which is not limited in the embodiment of the present application.
After the configuration is completed, the configuration device 101 may determine the identifier of the first interface, and send the identifier of the first interface to the main control chip 102, so that the main control chip 102 configures the first function corresponding to the first interface according to the identifier of the first interface.
After the configuration scenario of the main control chip function is introduced, a method for configuring the main control chip function provided by the embodiment of the application is described in detail below.
Fig. 2 is a schematic flowchart of a method for configuring functions of a main control chip according to an embodiment of the present application. It will be appreciated that the method may be applied to the scenario shown in fig. 1, and in particular to the configuration device 101 in fig. 1.
Illustratively, as shown in FIG. 2, the method 200 includes:
201, in response to the configuration operation of the main control chip, displaying a function configuration interface of the main control chip, wherein the function configuration interface is used for configuring the functions related to the vehicle.
It should be understood that the multiplexing function of each pin of the main control chip is preset. The configurator can draw out a plurality of interfaces under each pin according to the multiplexing function of each pin.
For example, the multiplexing function corresponding to the pin 1 is ADC1/PWM1/I 2 C-SDA1/GPIO1, configuration personnel can obtain interfaces J1, J2, J3 and J4 capable of realizing the functions through matching with an IO interface through a peripheral circuit. Wherein J1 can be understood as the sensor input interface 1 corresponding to ADC 1; j2 can be understood as the motor interface 1 corresponding to PWM 1; j3 can be understood as I 2 I corresponding to C-SDA1 2 C, an interface; j4 can be understood as the indicator light interface corresponding to GPIO 1.
For another example, the multiplexing function corresponding to the pin 2 is ADC2/PWM2/I 2 C-SCL1/GPIO2, the same procedure as described above. The embodiment of the application can obtain the interfaces J5, J6, J3 and J7 which can realize the functions. Wherein J5 can be understood as the sensor input interface 2 to which ADC2 corresponds; j6 can be understood as PWA motor interface 2 corresponding to M2; j3 can be understood as I 2 C-SCL1 corresponding I 2 C, an interface; j7 can be understood as the key input interface corresponding to GPIO 2.
It should be appreciated that due to I 2 C-SDA1 and I 2 C-SCL1 is I 2 C corresponds to the data line and the clock line, both lines being present in pairs. Thus I 2 C-SDA1 and I 2 The interface of C-SCL1 is the same interface J3.
In the embodiment of the application, the configuration tool is installed in the configuration device, and all functions, all interfaces of each pin and interfaces capable of realizing each function can be stored in the configuration tool. Therefore, the configuration equipment can generate a function configuration interface and an interface configuration interface of each function, so that a subsequent developer can configure the functions of the main control chip based on the configuration tool.
In the process of defining the functions of the main control chip, a developer can control the configuration equipment to display a function configuration interface through configuration operation on the main control chip.
Alternatively, the configuration operation may be any one of voice information, gesture operation, and click operation.
In one possible implementation manner, a developer may control the configuration device to start running a program corresponding to the configuration tool through a clicking operation.
In another possible implementation manner, the developer may enable the configuration device to start running the program corresponding to the configuration tool by outputting voice information, such as voice of "open configuration tool".
In another possible implementation manner, the developer may enable the configuration device to start running the program corresponding to the configuration tool through a gesture operation corresponding to the configuration tool, for example, a "V-gesture".
The above modes of opening the configuration tool make the opening process of the configuration tool more flexible and intelligent, and further can improve the configuration efficiency of the main control chip function.
Further, the configuration device may display a functional configuration interface of the main control chip in the display area in response to a configuration operation of the main control chip by a developer. The function configuration interface displays all functions of the main control chip, and a developer can select functions needing to be configured on the function configuration interface.
Fig. 3 is a schematic view of a scenario of a display function configuration interface according to an embodiment of the present application.
Illustratively, as shown in fig. 3, the configuration device displays the functional configuration interface 300 of the main control chip in the display area in response to any one of the configuration operations on the main control chip.
The function configuration interface 300 displays the functions of the main control chip (functions related to the vehicle). Such as PWM, ADC, GPIO-input and GPIO-output shown in fig. 3. Based on the function configuration interface 300, a developer can select a function to be configured.
Alternatively, the display form of the function may be an identifier for displaying the function, such as PWM, ADC, GPIO-input and GPIO-output shown in fig. 3, which are identifiers of the function; different geometries or letters may also be used to represent different functions, and embodiments of the present application are not limited in this regard.
Alternatively, each function corresponds to a display frame, and as shown in fig. 3, a developer may select a function to be configured by clicking to select a display frame of a different function. Each function may also correspond to a selection control, for example, a "o" selection control is displayed on the left side of each function, and the developer may click on the "o" to select the corresponding function.
Alternatively, the outline shape of the display frame may be any geometric shape such as rectangle, pentagon, hexagon, diamond, circle, etc. The outline color of the display frame may be any one color of black, white, red, yellow, and the like, which is not limited in the embodiment of the present application. The position of the selection control can be any position on the left side, the right side, the upper side or the lower side of the function; the outline shape of the selection control can be any geometric shape such as a circle, a rectangle, a diamond, an ellipse, a pentagon and the like, and the outline color of the selection control can be any color such as red, black, green and the like, which is not limited by the embodiment of the application.
In addition, a "clear" selection control and a "send" selection control are also displayed on the right side of each function. When a "clear" selection control is selected, it can be understood that the corresponding function is initialized to an unconfigured state. When a certain "send" selection control is selected, the identification of the interface representing the corresponding function which has been configured is sent to the main control chip.
202, displaying an interface configuration interface of a first function when the first function in the function configuration interfaces is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function, and the interface of the first function is used for connecting a component capable of realizing the first function.
Alternatively, the developer may select the first function in the function configuration interface by any one of clicking operation or voice information (e.g., voice of "configure first function"). The embodiment of the application does not limit the way of selecting the first function.
In one possible implementation, after the first function is selected, displaying the interface configuration interface of the first function includes:
determining an interface of the first function in the case that the first function is selected;
Generating an interface configuration interface of the first function according to the interface of the first function;
an interface configuration interface of the first function is displayed.
It should be understood that each function and all interfaces that can be configured for each function are stored in the configuration tool. When the first function is selected, the configuration device may determine all interfaces corresponding to the selected first function based on the stored correspondence between the plurality of functions and the plurality of interfaces, generate an interface configuration interface of the first function according to all interfaces that can be configured as the first function, and display the interface configuration interface in the display area.
Fig. 4 is a schematic view of a scene of a display interface configuration interface according to an embodiment of the present application.
Illustratively, as shown in (a) of fig. 4, it is assumed that the master chip includes a total of 4 pins, namely pin 1, pin 2, pin 3 and pin 4. The multiplexing function corresponding to the pin 1 is ADC1/PWM1/GPIO1, and the corresponding interfaces are J1, J2 and J3 respectively. The multiplexing function corresponding to the pin 2 is ADC2/PWM2/GPIO2, and the corresponding interfaces are J4, J5 and J6 respectively. The multiplexing function corresponding to the pin 3 is ADC3/PWM3/GPIO3, and the corresponding interfaces are J7, J8 and J9 respectively. The multiplexing function corresponding to the pin 4 is ADC4/PWM4/GPIO4, and the corresponding interfaces are J10, J11 and J12 respectively.
That is, all interfaces that can be configured as ADCs are J1, J4, J7, J10. Pins corresponding to J1, J4, J7 and J10 are pin 1, pin 2, pin 3 and pin 4 respectively. All of J1, J4, J7, J10 can be connected to the sensor.
All interfaces that can be configured as PWM are J2, J5, J8, J11. Pins corresponding to J2, J5, J8 and J11 are pin 1, pin 2, pin 3 and pin 4 respectively. All of J2, J5, J8, J11 can be connected to the motor.
All interfaces that can be configured as GPIOs are J3, J6, J9, J12. Pins corresponding to J3, J6, J9 and J12 are pin 1, pin 2, pin 3 and pin 4 respectively. All of J3, J6, J9 and J12 can be connected with keys or indicator lights.
The developer may select the first function, PWM, in the function configuration interface 300 by a click operation. The configuration device can determine all interfaces-J2, J5, J8 and J11 corresponding to PWM.
As shown in (b) of fig. 4, the configuration device may generate the interface configuration interface 400 of PWM according to J2, J5, J8, and J11, and display it in the display area. A developer may configure the interface of the PWM through the interface configuration interface 400 of the PWM.
The interface configuration interface of the first function includes an interface for implementing the first function, and it is also understood that the interface configuration interface of the first function displays an interface capable of being configured as the first function. Optionally, the display form of the interface may be the identifier of the interface, and J2, J5, J8 and J11 shown in (b) in fig. 4 are the identifiers of the interface; the interfaces may also be represented by different geometric shapes or letters, which are not limited by the embodiments of the present application.
Alternatively, each interface corresponds to a display frame, and as shown in (b) in fig. 4, a developer may select an interface to be configured by clicking on the display frame of a different interface. Each interface may also correspond to a selection control, for example, a "o" selection control may be displayed on the left side of each interface, and the developer may click on the "o" to select the corresponding interface.
Alternatively, the outline shape of the display frame may be any geometric shape such as rectangle, pentagon, hexagon, diamond, circle, etc. The outline color of the display frame may be any one color of black, white, red, yellow, and the like, which is not limited in the embodiment of the present application. The position of the selection control can be any position on the left side, the right side, the upper side or the lower side of the interface; the outline shape of the selection control can be any geometric shape such as a circle, a rectangle, a diamond, an ellipse, a pentagon and the like, and the outline color of the selection control can be any color such as red, black, green and the like, which is not limited by the embodiment of the application.
In the above technical solution, a manner of displaying an interface configuration interface of a first function is provided. Specifically, under the condition that the first function is selected, the interface of the first function can be determined according to the first function. And generating and displaying an interface configuration interface of the first function based on the interface of the first function. The above process can intelligently provide a visual interface configuration interface for a developer in the case that the first function is selected.
203, determining the identification of the first interface in the case that the first interface in the interfaces of the first function is selected.
It should be appreciated that the number of components corresponding to the first function may be more than one, and thus the number of first interfaces corresponding to the first function may be more than one. For example, the component corresponding to the PWM function is a motor, and one intelligent device may need to configure two motors, so when a developer selects the first interfaces corresponding to the PWM function, the number of the first interfaces is two, and the number of the first interfaces is not limited in the embodiment of the present application.
In a possible implementation manner, when a developer selects a first interface from interfaces of a first function, the first interface may be selected through a click operation or voice information, and a manner of selecting the first interface is not limited in the embodiment of the present application.
For example, as shown in (b) of fig. 4, when the number of motors to be connected to the main control chip is one, in the interface configuration interface 400 of PWM, a developer may select one first interface J2 through a click operation.
As another example, as shown in (c) of fig. 4, when the number of motors to be connected to the main control chip is two, the developer may select two first interfaces-J2 and J8 through a clicking operation in the interface configuration interface 400 of PWM.
Further, the configuration device may determine an identity of the first interface based on the selected first interface. For example, if the display form of the interface is the identifier of the interface, the configuration device may directly determine the identifier of the selected first interface based on the selected operation of the developer; if the interfaces are represented by different geometric shapes or letters, the configuration device may determine the identifier of the first interface based on the correspondence between the icon corresponding to the selected operation and the identifier of the interface.
After determining the identifier of the first interface, in order to avoid repeated configuration of the functions of the pins, the method further comprises the following steps:
and configuring the function of the first pin corresponding to the first interface as a first function.
It should be understood that in the embodiment of the present application, one pin corresponds to a plurality of interfaces, and a plurality of interfaces correspond to different functions, so that multiplexing of each pin can be achieved. But each pin can only be configured for one function at a time. Therefore, after the developer selects the first interface, the configuration device may configure the first pin corresponding to the first interface as the first function, so as to indicate that the first pin is not reconfigurable.
Specifically, the configuring the function of the first pin corresponding to the first interface by the configuration device as the first function includes:
Determining a plurality of functions of the first pin and interfaces corresponding to the plurality of functions of the first pin, wherein the plurality of functions of the first pin comprise a first function;
and configuring the display states of other interfaces except the first interface in the interfaces of the first pin to be not displayed so that the first pin realizes the first function through the first interface.
In the above process, the display states of the other interfaces except the first interface are configured not to be displayed, so that after the developer selects the other functions of the first pin, the interface for realizing the functions in the first pin is not displayed in the interface configuration interfaces of the other functions.
In another scenario, for a second interface that is not selected in the interface configuration interface of the first function, the embodiment of the present application may configure a second pin corresponding to the second interface as another function. The method specifically comprises the following steps:
for a second interface which is not configured as the first function, determining a second pin corresponding to the second interface, a plurality of functions of the second pin and interfaces corresponding to the plurality of functions of the second pin;
and displaying an interface configuration interface of the second function under the condition that the second function is selected, wherein the interface configuration interface of the second function comprises a third interface, the second function is any one of the functions of the second pin except the first function, and the third interface is an interface for realizing the second function in the interfaces of the second pin.
Fig. 5 is a schematic view of another display interface configuration interface according to an embodiment of the present application.
As illustrated by way of example, in fig. 5, in combination with fig. 4. As shown in fig. 4 (b), in the interface configuration interface 400 of PWM, the developer selects the pin corresponding to the first interface J2, J2 as pin 1. Indicating that the function of pin 1 has been configured to PWM via J2. The configuration device may configure the display states of the other two interfaces J1 and J3 of pin 1 to not be displayed.
Since J5, J8 and J11 are not configured as PWM in the interface configuration interface 400 of PWM. Wherein, the pin corresponding to J5 is pin 2, the pin corresponding to J8 is pin 3, the pin corresponding to J11 is pin 4, indicating that the functions of pin 2, pin 3 and pin 4 are not configured. Therefore, the embodiment of the application can configure interfaces at interfaces of other functions (ADC and GPIO) and display interfaces of the pin 2, the pin 3 and the pin 4. Specifically, in the interface configuration interface of the ADC, an interface J4 for implementing the ADC in the interface of the display pin 2, an interface J7 for implementing the ADC in the interface of the display pin 3, and an interface J10 for implementing the ADC in the interface of the display pin 4. In the interface configuration interface of GPIOs, an interface J6 for implementing GPIOs in the interface of the display pin 2, an interface J9 for implementing GPIOs in the interface of the display pin 3, and an interface J12 for implementing GPIOs in the interface of the display pin 4.
As shown in fig. 5 (a), if the developer further selects the ADC through the clicking operation after completing the PWM configuration on the functional configuration interface 300, the configuration device may determine that all interfaces corresponding to the ADC are J1, J4, J7 and J10, and the four interfaces correspond to pin 1, pin 2, pin 3 and pin 4, respectively.
Pin 1 is already occupied when configuring PWM. Thus, the configuration device may configure J1 not to be displayed when generating the interface configuration interface of the ADC according to the J1, J4, J7, and J10 interfaces. As shown in (b) of fig. 5, in the interface configuration interface 500 of the ADC, only interfaces J4, J7, and J10 of the ADC corresponding to the pin 2, the pin 3, and the pin 4 are displayed.
Similarly, the display process of the interface configuration interface of the GPIO is the same as that described above, and will not be repeated here.
When the number of the first interfaces is two, as shown in (c) of fig. 4, the developer selects two first interfaces J2 and J8 in the interface configuration interface 400 of PWM through a click operation, and pins corresponding to J2 and J8 are pin 1 and pin 3, respectively. Then when the developer configures the ADC, the configuration device will not display interfaces J1 and J7 of the ADC for pins 1 and 3, only J4 and J10, at the interface configuration interface of the ADC.
In the above technical solution, specifically, when the function of the first pin of the first interface is configured as the first function, all interfaces of the first pin may be determined first. Since the first interface of the first pin has been selected, it is stated that the first pin is no longer able to perform further functions via the other interfaces. Therefore, the display states of the interfaces except the first interface in the interfaces of the first pin can be configured to be not displayed so as to indicate that the other interfaces of the first pin cannot be selected. The above process ensures the accuracy and the uniqueness of each pin in each configuration, and achieves the effect that the function of the first pin cannot be repeatedly configured under the condition that the first pin is already configured.
After the first interface is selected, the present application may also determine which interfaces are not selected (i.e., not configured) among the interfaces of the first function. Wherein the third interface not configured as the first function indicates that the function of the second pin where the third interface is located is not configured. Since the functions of the second pin include the functions of the first function, the application can display the third interface for realizing the functions in the interfaces of the second pin under the condition that the functions except the first function are selected in the functions of the second pin on the premise that the second pin is not configured as the first function, so that the second pin can realize other functions except the first function through other interfaces.
It can be seen that in the above procedure, the second pin can be configured as both the first function and the second function, depending on which interface is selected. That is, each pin provided by the application can realize different functions through different configuration modes, thereby realizing the function multiplexing effect of the pin and improving the utilization rate of the pin.
204, sending the identifier of the first interface to the main control chip, so that the main control chip configures the first function corresponding to the first interface according to the identifier of the first interface.
In step 203, after determining the identifier of the first interface according to the selected operation of the developer, the configuration device may send the identifier of the first interface to the main control chip.
It should be understood that the host chip stores a driver for each interface, and the host chip may implement different functions by running different drivers. Therefore, after the main control chip receives the identification of the first interface sent by the configuration device, the driver of the first interface can be determined to realize the first function.
In one possible implementation manner, after the configuration device is connected with the main control chip, the configuration device may send the identifier of the first interface to the main control chip, so that the main control chip configures the first function corresponding to the first interface according to the identifier of the first interface.
Alternatively, the configuration device may be connected to the main control chip by a universal asynchronous receiver Transmitter (Universal Asynchronous Receiver/Transmitter, UART) interface.
For example, the configuration device may send the identifier of the first interface to the main control chip in the form of UART instruction, so that the main control chip determines the driver of the first interface according to the identifier of the first interface. So that the first function is implemented after the driver of the first interface is running.
In another scenario, if the configuration device stores a correspondence between the identifier of the first interface and the identifier of the driver of the first interface, the configuration device may further send the identifier of the driver of the first interface to the main control chip.
In an exemplary embodiment, after determining the identifier of the first interface, the configuration device may further determine the identifier of the driver of the first interface according to a stored correspondence between the identifier of the first interface and the identifier of the driver of the first interface. And then the identification of the driver of the first interface is sent to the main control chip in the form of UART instructions. The main control chip can determine the driver of the first interface according to the identification of the driver of the first interface.
It should be understood that, the timing of sending the identifier of the first interface may be sent after the configuration of the first function is finished, or the identifiers of the interfaces corresponding to all the functions or the identifiers of the drivers of the interfaces corresponding to all the functions may be sent to the main control chip after all the functions of the main control chip are configured, which is not limited in the embodiment of the present application.
After the first function is configured, if the developer needs to update the first interface of the first function, the first interface of the first function can be adjusted on the configuration device through updating operation.
In one possible implementation manner, when updating the first interface, the method specifically includes:
determining a fourth interface corresponding to the update operation in response to the update operation of the first interface;
and configuring the function of the third pin corresponding to the fourth interface as the first function.
Optionally, the update operation may be any one of a click operation or voice information, which is not limited in the embodiment of the present application.
After determining the updated fourth interface, the embodiment of the application may also configure the function of the third pin corresponding to the fourth interface as the first function in the same manner of configuring the first pin corresponding to the first interface.
Fig. 6 is a schematic diagram of a scenario for updating a first interface according to an embodiment of the present application.
For example, as shown in fig. 6, if the developer has last configured the PWM interface, the first interface J2 in the PWM interface configuration interface 400 is selected. When the first interface J2 needs to be updated this time, the developer may click on the PWM in the function configuration interface 300 again, so that the display area of the configuration device displays the interface configuration interface 400 of the PWM. The developer may click on the first interface J2 again to place J2 in an unselected state. And then selecting the interface J5 through clicking operation to obtain a fourth interface J5 corresponding to the clicking operation.
Still another example, when the number of the first interfaces is plural. As shown in (c) of fig. 4, when the first interfaces of the PWM are J2 and J8. The developer may update all of the first interface by a click operation. For example by clicking to leave both J2 and J8 in the unselected state. And further selecting J5 and J11 through clicking operation, wherein J5 and J11 are fourth interfaces corresponding to the clicking operation. The developer may also update the first interface partially, for example, make J2 be in an unselected state through a click operation, and further select J5 through a click operation, where J5 and J8 are fourth interfaces corresponding to the click operation.
Further, in the same manner, the configuration device may determine a third pin corresponding to the fourth interface. For example, the fourth interface is J5. The configuration device may determine that the pin corresponding to J5 is pin 2, and the interface of pin 2 includes J4, J5, and J6. The function of the pin 2 realized by the J4 is ADC (ADC 2), the function of the pin 2 realized by the J5 is PWM (PWM 2), and the function of the pin 2 realized by the J6 is GPIO (GPIO 2).
In this update process, the developer reselects to implement the first function, PWM, via J5 in pin 2. That is, the function of pin 2 has been configured as PWM. In order to avoid repeated configuration of the functions of the pin 2, the embodiment of the present application may configure the display states of the interfaces J4 and J6 other than the J5 interface in the interfaces of the pin 2 to be not displayed.
In the above technical solution, when the first interface of the first function needs to be updated, the present application may determine the fourth interface corresponding to the update operation again in response to the update operation. The process of updating in time can avoid the problem of inaccurate function configuration of the main control chip caused by untimely updating, and improves the accuracy of the function configuration of the main control chip. Further, after the fourth interface is determined, the function of the third pin where the fourth interface is located is described as the first function, and the method and the device can configure the third pin of the fourth interface as the first function in the same configuration mode of the first pin of the first interface, so that the problem of repeated configuration of the function of the third pin is avoided.
Fig. 7 is a schematic structural diagram of a device for configuring functions of a main control chip according to an embodiment of the present application.
Illustratively, as shown in FIG. 7, the apparatus 700 includes:
the display module 701 is configured to respond to a configuration operation on the main control chip, and display a function configuration interface of the main control chip, where the function configuration interface is used to configure functions related to the vehicle; displaying an interface configuration interface of a first function in the function configuration interfaces under the condition that the first function is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function, and the interface of the first function is used for connecting a component capable of realizing the first function;
A determining module 702, configured to determine, if a first interface of the interfaces of the first function is selected, an identifier of the first interface;
the sending module 703 is configured to send the identifier of the first interface to the main control chip, so that the main control chip configures the first function corresponding to the first interface according to the identifier of the first interface.
Optionally, the interface of the first function corresponds to different pins of the main control chip, and after determining the identifier of the first interface in the case that the first interface of the interfaces of the first function is selected, the apparatus further includes: the first configuration module is configured to configure a function of a first pin corresponding to the first interface as the first function.
In a possible implementation manner, the first configuration module is specifically configured to: determining a plurality of functions of the first pin and interfaces corresponding to the plurality of functions of the first pin, wherein the plurality of functions of the first pin comprise the first function; and configuring the display states of other interfaces except the first interface in the interfaces of the first pin to be not displayed so that the first pin realizes the first function through the first interface.
Optionally, the apparatus further comprises: a processing module, configured to determine, for a second interface that is not configured as the first function, a second pin corresponding to the second interface, a plurality of functions of the second pin, and interfaces corresponding to the plurality of functions of the second pin; and displaying an interface configuration interface of the second function under the condition that the second function is selected, wherein the interface configuration interface of the second function comprises a third interface, the second function is any one of the functions of the second pin except the first function, and the third interface is an interface used for realizing the second function in the interfaces of the second pin.
Optionally, the apparatus further comprises: the second configuration module is used for responding to the updating operation of the first interface and determining a fourth interface corresponding to the updating operation; and configuring the function of the third pin corresponding to the fourth interface as the first function.
In a possible implementation manner, the display module 701 is specifically configured to: determining an interface of the first function if the first function is selected; generating an interface configuration interface of the first function according to the interface of the first function; displaying the interface configuration interface of the first function.
Fig. 8 is a schematic structural diagram of a configuration device according to an embodiment of the present application.
Illustratively, as shown in FIG. 8, the configuration device 101 includes: a memory 801, and a processor 802, wherein the memory 801 stores executable program code 8011, and the processor 802 is configured to call and execute the executable program code 8011 to perform a method for configuring functions of a main control chip.
In this embodiment, the configuration device may be divided into functional modules according to the above method example, for example, each functional module may be corresponding to one processing module, or two or more functions may be integrated into one processing module, where the integrated modules may be implemented in a hardware form. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
In the case of dividing each function module with corresponding each function, the configuration device may include: a display module, a determination module, a sending module, etc. It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The configuration device provided in this embodiment is configured to execute the above method for configuring the function of the main control chip, so that the same effect as the above implementation method can be achieved.
In case an integrated unit is employed, the configuration device may comprise a processing module, a memory module. The processing module can be used for controlling and managing the actions of the configuration equipment. The memory module may be used to support the configuration device in executing inter-program code and data, etc.
Wherein a processing module may be a processor or controller that may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the present disclosure. A processor may also be a combination of computing functions, e.g., including one or more microprocessors, digital signal processing (digital signal processing, DSP) and microprocessor combinations, etc., and a memory module may be a memory.
The present embodiment also provides a computer-readable storage medium having stored therein computer program code which, when run on a computer, causes the computer to perform the above-described related method steps to implement a method for configuring the functions of a main control chip in the above-described embodiments.
The present embodiment also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement a method for configuring the functions of a main control chip in the above-mentioned embodiments.
In addition, the configuration device provided by the embodiment of the application can be a chip, a component or a module, and the configuration device can comprise a processor and a memory which are connected; the memory is used for storing instructions, and when the configuration device runs, the processor can call and execute the instructions to enable the chip to execute one of the methods for configuring the functions of the main control chip in the embodiment.
The configuration device, the computer readable storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (10)
1. A method for configuring functions of a main control chip, the method comprising:
responding to configuration operation of a main control chip, displaying a function configuration interface of the main control chip, wherein the function configuration interface is used for configuring functions related to a vehicle;
displaying an interface configuration interface of a first function in the function configuration interfaces under the condition that the first function is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function, and the interface of the first function is used for connecting a component capable of realizing the first function;
determining an identification of a first interface in the interfaces of the first function under the condition that the first interface is selected;
and sending the identification of the first interface to the main control chip so that the main control chip configures the first function corresponding to the first interface according to the identification of the first interface.
2. The method of claim 1, wherein the interfaces of the first function correspond to different pins of the main control chip, and wherein after determining the identity of a first interface of the interfaces of the first function if the first interface is selected, the method further comprises:
And configuring the function of the first pin corresponding to the first interface as the first function.
3. The method of claim 2, wherein configuring the function of the first pin corresponding to the first interface as the first function comprises:
determining a plurality of functions of the first pin and interfaces corresponding to the functions of the first pin, wherein the functions of the first pin comprise the first function;
and configuring display states of other interfaces except the first interface in the interfaces of the first pin to be not displayed so that the first pin realizes the first function through the first interface.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
for a second interface which is not configured as the first function, determining a second pin corresponding to the second interface, a plurality of functions of the second pin and interfaces corresponding to the plurality of functions of the second pin;
and displaying an interface configuration interface of the second function under the condition that the second function is selected, wherein the interface configuration interface of the second function comprises a third interface, the second function is any one of the functions of the second pin except the first function, and the third interface is an interface used for realizing the second function in the interfaces of the second pin.
5. The method according to claim 1, wherein the method further comprises:
determining a fourth interface corresponding to the updating operation in response to the updating operation of the first interface;
and configuring the function of a third pin corresponding to the fourth interface as the first function.
6. The method of claim 1, wherein displaying the interface configuration interface for a first function in the function configuration interface if the first function is selected comprises:
determining an interface of the first function under the condition that the first function is selected;
generating an interface configuration interface of the first function according to the interface of the first function;
and displaying an interface configuration interface of the first function.
7. An apparatus for configuring a function of a main control chip, the apparatus comprising:
the display module is used for responding to the configuration operation of the main control chip and displaying a function configuration interface of the main control chip, wherein the function configuration interface is used for configuring the related functions of the vehicle; displaying an interface configuration interface of a first function in the function configuration interfaces under the condition that the first function is selected, wherein the interface configuration interface of the first function comprises an interface for realizing the first function, and the interface of the first function is used for connecting a component capable of realizing the first function;
A determining module, configured to determine an identifier of a first interface in the interfaces of the first function, where the first interface is selected;
and the sending module is used for sending the identification of the first interface to the main control chip so that the main control chip configures the first function corresponding to the first interface according to the identification of the first interface.
8. A configuration device, the configuration device comprising:
a memory for storing executable program code;
a processor for calling and running the executable program code from the memory, causing the configuration device to perform the method of any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed, implements the method according to any of claims 1 to 6.
10. A computer program product, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310375399.0A CN116594668A (en) | 2023-04-10 | 2023-04-10 | Method, device, configuration equipment, medium and product for configuring main control chip function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310375399.0A CN116594668A (en) | 2023-04-10 | 2023-04-10 | Method, device, configuration equipment, medium and product for configuring main control chip function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116594668A true CN116594668A (en) | 2023-08-15 |
Family
ID=87606909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310375399.0A Pending CN116594668A (en) | 2023-04-10 | 2023-04-10 | Method, device, configuration equipment, medium and product for configuring main control chip function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116594668A (en) |
-
2023
- 2023-04-10 CN CN202310375399.0A patent/CN116594668A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI391860B (en) | Method for producing a fixed-size firmware image for hardware device | |
US20160288801A1 (en) | Vehicle System Control Method and Control System | |
CN105814541B (en) | The method of computer equipment and computer equipment internal storage starting | |
US8892935B2 (en) | Dynamic bus clock rate adjusting method and device | |
WO2019205018A1 (en) | Method, system, device, computer readable storage medium for switching interface | |
KR950001418B1 (en) | Pop up control system for portable computer having setup function and popup function | |
US11132182B2 (en) | Software development support device, software development support method, and software development support program | |
CN114840200A (en) | Vehicle configuration method, device, electronic equipment and storage medium | |
CN116594668A (en) | Method, device, configuration equipment, medium and product for configuring main control chip function | |
CN109285495B (en) | Electric appliance and screen driving method and device thereof | |
CN109857638B (en) | Universal framework for test system software | |
CN115630011A (en) | Method and device for realizing I2C bus communication of master and slave equipment by using CPLD | |
CN111679649B (en) | Vehicle-mounted terminal starting method and device, terminal equipment and storage medium | |
US7647127B2 (en) | Component data managing method | |
CN114332340A (en) | Workshop visualization monitoring method and computer device | |
CN100462948C (en) | Computer peripheral device containing contents and method of outputting contents using the same | |
CN116662124B (en) | Computer working state display system and method | |
CN213934625U (en) | Host and display unit split type numerical control system | |
CN110708787B (en) | Control device and method of double-color lamp, storage medium and equipment | |
CN111722843A (en) | HMI system, HMI component thereof, HMI component development method and vehicle-mounted display equipment | |
CN210591733U (en) | Abnormal log acquisition system applied to vehicle-mounted entertainment host and vehicle-mounted entertainment host | |
JP7332377B2 (en) | Cable selection device and computer program for cable selection | |
CN118672962A (en) | Data transmission method and intelligent cabin of automobile | |
CN117075703A (en) | Power supply control system and control method | |
CN112860159A (en) | Touch key display method and device of operation interface, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |