A burning configuration method and device, electronic equipment and storage medium
By acquiring the user-inputted programming task, the programming device port is automatically configured according to the preset hardware interface information, which solves the problem of cumbersome manual port configuration in the existing technology, realizes efficient and accurate programming device port configuration, and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI MXCHIP INFORMATION TECHN
- Filing Date
- 2022-08-12
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, the programming system requires manual configuration of the programming port and cannot achieve automatic port configuration. This results in the need for reconfiguration when changing to different protocol types, which is cumbersome and prone to errors.
By acquiring the user-inputted programming task, the hardware interface identification code is determined based on the preset hardware interface information, and the port of the programming device is automatically configured using the port configuration information corresponding to the hardware information and the interface identification code.
It enables automatic configuration of the programming device port, reducing the time spent on multiple manual configurations, improving configuration efficiency, reducing the probability of configuration failures due to human error, and enhancing the user experience.
Smart Images

Figure CN115344299B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer application technology, and in particular to a programming configuration method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the continuous development of society, electronic products are becoming increasingly common. After design and development, these products require software data to be programmed during production in order to function properly. For embedded firmware programming, different communication interfaces are used depending on the hardware, such as universal asynchronous receiver / transmitter interfaces, serial debug interfaces, and serial peripheral interfaces.
[0003] Currently, all programming systems use manual configuration of the programming port. That is, the operator selects the interface type and sets the interface parameters according to the device to be programmed, and then the programming system scans and identifies the hardware interface.
[0004] However, existing technologies require port configuration based on specific protocol types, and reconfiguration is needed when changing to different protocol types, making automatic port configuration impossible. Therefore, a programming configuration method that can automatically configure ports has become an urgent problem to be solved. Summary of the Invention
[0005] This invention provides a programming configuration method, apparatus, electronic device, and storage medium to achieve automatic configuration of programming device ports and improve user experience.
[0006] According to one aspect of the present invention, a programming configuration method is provided, wherein the method includes:
[0007] Obtain the user-inputted programming task, wherein the programming task includes at least hardware information;
[0008] Determine the hardware interface identification code of the programming device based on the preset hardware interface information;
[0009] Configure the port of the programming device according to the hardware information and the port configuration information corresponding to the hardware interface identification code.
[0010] According to another aspect of the present invention, a programming configuration apparatus is provided, wherein the method includes:
[0011] The task acquisition module is used to acquire the programming task input by the user, wherein the programming task includes at least hardware information;
[0012] The identification code module is used to determine the hardware interface identification code of the programming device based on the preset hardware interface information.
[0013] The port configuration module is used to configure the port of the programming device according to the hardware information and the port configuration information corresponding to the hardware interface identification code.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory that is communicatively connected to at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute a programming configuration method according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement a programming configuration method according to any embodiment of the present invention.
[0019] The technical solution of this invention obtains the user-inputted programming task, determines the hardware interface identification code of the programming device according to the preset hardware interface information, and configures the port of the programming device according to the port configuration information corresponding to the hardware information and the hardware interface identification code. This realizes the automatic configuration of the programming device port, reduces the time required for multiple configurations when connecting multiple types of interfaces, and increases the convenience of port configuration.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of a programming configuration method provided in Embodiment 1 of the present invention;
[0023] Figure 2 This is a flowchart of a programming configuration method provided in Embodiment 2 of the present invention;
[0024] Figure 3 This is a flowchart of a programming configuration method provided in Embodiment 3 of the present invention;
[0025] Figure 4 This is a schematic diagram of a programming configuration device according to Embodiment 4 of the present invention;
[0026] Figure 5 This is a schematic diagram of the structure of an electronic device that implements a programming and configuration method according to an embodiment of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Example 1
[0030] Figure 1 This is a flowchart of a programming configuration method according to Embodiment 1 of the present invention. This embodiment is applicable to programming configuration. The method can be executed by a programming configuration device, which can be implemented in hardware and / or software, and can be configured in a host computer. Figure 1 As shown, the method includes:
[0031] S110. Obtain the user-inputted programming task, wherein the programming task includes at least hardware information.
[0032] The programming task can refer to a task executed on the chip by the programming device issued by the host computer, or it can be a programming task input by the user through the host computer. The programming device can execute the programming task on the chip according to the programming task. The programming task may include hardware information, for example, firmware information, hardware module information, and chip information. Through the programming task, the information required for programming can be confirmed, and the information required for port configuration can be determined.
[0033] Specifically, the user can input a programming task into the host computer, which can then retrieve this task. The programming task may include hardware information, which can be obtained through the programming task itself. This hardware information may include firmware information, hardware module information, and chip information. Based on this hardware information, the hardware interface type and parameter information corresponding to the chip to be programmed can be determined.
[0034] S120. Determine the hardware interface identification code of the burning device based on the preset hardware interface information.
[0035] The preset hardware interface information refers to the device component information that connects to the host computer using a communication protocol. It can be a pre-defined device component for communication between two devices, representing the interface information for data output during data transmission between the two devices. The type of preset hardware interface is not limited; for example, it may include Universal Asynchronous Receiver / Transmitter (UART) interface information, Serial Wire Debug (SWD) interface information, and Serial Peripheral Interface (SPI) information. The hardware interface identification code can be a keyword used to identify the hardware interface. This code can be pre-defined, or a special identifier can be set in the hardware interface name as the hardware interface identification code. For example, the hardware interface identification code may include the interface name, communication protocol type, and identifier number.
[0036] Specifically, the hardware interface identification code can be information generated by the programming device. The host computer can read the preset hardware interface information stored locally and send a programming request to the programming device based on this information. The programming device can process the programming request sent by the host computer according to a preset communication protocol. When the programming device receives a programming request, it can confirm that it can handle requests of that communication protocol. If the programming device can handle requests of that communication protocol, it can send programming device information to the host computer. The hardware interface identification code of the programming device can be determined based on the preset hardware interface information. The hardware interface identification code can be the programming device information itself; alternatively, the hardware interface identification code can be keyword information with protocol characteristics extracted from the programming device information. The hardware interface identification code is generated based on the extracted keywords from the programming device information.
[0037] S130. Configure the port of the programming device according to the hardware information and the port configuration information corresponding to the hardware interface identification code.
[0038] Among them, port configuration information refers to the relevant parameter information of the programming device configuration. Port configuration information may include, but is not limited to, programming speed, programming start position and programming block size. Port configuration information can be stored locally on the host computer or stored on the cloud server. The programming device can be configured according to the port configuration information.
[0039] Specifically, the corresponding port configuration information can be queried based on hardware information and hardware interface identification codes. The port configuration information can be stored in a table or a configuration file. This port configuration information can be stored locally on the host computer or on a cloud server. When stored locally on the host computer, the port configuration information can be queried directly on the host computer. When stored on a cloud server, the table or configuration file containing the port configuration information can be sent to the host computer, and then the host computer can query the port configuration information. Alternatively, when stored on a cloud server, the port configuration information corresponding to the hardware information and hardware interface identification codes in the table or configuration file can be queried from the cloud server, and the queried port configuration information can be sent to the host computer. The port configuration information can include information such as writing speed, writing start position, and writing block size. The host computer can configure the ports of the programming device based on the extracted port configuration information; that is, the programming device can be configured according to information such as writing speed, writing start position, and writing block size.
[0040] Furthermore, the port configuration information includes at least one of the following: programming speed, programming start position, and programming block size.
[0041] Among them, the burning speed can refer to the speed at which the burning device performs the firmware burning process. The burning speed of different firmware can be the same or different. The burning start position can refer to the position at which the burning device starts burning the firmware. The burning start position of different types of firmware or the same type of firmware may be the same or different depending on the burning task. The burning block size can refer to the size of the burning block during the burning process. The burning block size of different types of firmware can be the same or different.
[0042] Specifically, the port configuration information includes information such as writing speed, writing start position, and writing block size. The port configuration information can be queried through hardware information and hardware interface identification code. The port configuration information can be stored in the form of a table or a configuration file. The port configuration information can be stored locally on the host computer or stored on a cloud server. By retrieving the port configuration information stored locally on the host computer or on the cloud server, information such as writing speed, writing start position, and writing block size can be obtained. The host computer can configure the port of the writing device based on the retrieved port configuration information.
[0043] The technical solution of this invention obtains the user-inputted programming task, determines the hardware interface identification code of the programming device according to the preset hardware interface information, and configures the port of the programming device according to the port configuration information corresponding to the hardware information and the hardware interface identification code. This realizes the automatic configuration of the programming device port, reduces the time required for multiple configurations when connecting multiple types of interfaces, improves the efficiency of programming device port configuration, reduces the probability of configuration failure due to human error, and enhances the user experience.
[0044] Furthermore, it also includes sending burning tasks to the burning device according to the configured port.
[0045] Specifically, the programming task can be sent to the programming device so that the programming device can program the corresponding chip according to the programming task. The host computer can send the programming task to the programming device through the port configured by the port configuration information so that the programming device can complete the programming.
[0046] Example 2
[0047] Figure 2 This is a flowchart of a programming configuration method according to Embodiment 2 of the present invention. The technical solution of this embodiment is a further refinement of the programming configuration method based on the above technical solution. Figure 2 As shown, the method includes:
[0048] S210. Obtain the user-inputted programming task, wherein the programming task includes at least hardware information.
[0049] S220. Read the preset hardware interface information, wherein the preset hardware interface information includes at least the general asynchronous transceiver interface information, the serial debug interface information, and the serial peripheral interface information.
[0050] The preset hardware interface information can refer to information determining the interface type, or it can be the communication method between the host computer and the programming device. This preset hardware interface information can be stored in the host computer, either as a table or a configuration file containing hardware interface information. The preset hardware interface information may include, but is not limited to, universal asynchronous transceiver (UART) interface information, serial debug interface information, and serial peripheral interface information. The hardware interface information may include communication protocol type, identifier, etc. A UART is a universal serial data bus used for asynchronous communication; it is a full-duplex communication protocol. A serial debug interface is a serial debugging interface. A serial peripheral interface is a synchronous peripheral interface that allows the microcontroller to communicate with various peripheral devices serially to exchange information.
[0051] Specifically, the host computer can read the preset hardware interface information stored locally on the host computer. The preset hardware interface information can be information to determine the interface type. Different types of hardware interface information can correspond to different programming devices. The preset hardware interface information read can include universal asynchronous transceiver interface information, serial debugging interface information, and serial peripheral interface information, etc. The host computer can search for information in a table or configuration file containing hardware interface information to extract the corresponding hardware interface information data.
[0052] S230: Poll the programming device according to the preset hardware interface information and collect the programming device information fed back by the programming device.
[0053] Among them, the programming device information can refer to the feedback information of the programming device to the host computer after polling. The programming device information can include the identification information of the communication protocol that the programming device needs to use, and can include feedback information such as the communication protocol name, identification number or confirmation information to identify and confirm the communication protocol. Polling can refer to the host computer issuing a query, which can sequentially query the programming device for preset hardware interface information and confirm the feedback information of the programming device.
[0054] Specifically, the host computer can poll the programming device according to preset interface information, which may include corresponding protocol information such as protocol name and identifier. The host computer can send the generated protocol information to the programming device to perform polling until the programming device can confirm the correct hardware interface type. The programming device can feed back programming device information to the host computer, which may include the identifier information corresponding to the communication protocol being polled.
[0055] S240. Extract the interface keywords from the burning device information as the hardware interface identification code.
[0056] The interface keywords can be keyword information corresponding to the interface extracted from the programming device information. This programming device information, fed back by the programming device, is used to distinguish hardware interface types. For example, programming device information may include protocol names, identifiers, etc. The hardware interface identification code can be keyword information with protocol characteristics extracted from the programming device information. A hardware interface identification code can be generated based on the extracted keywords from the programming device information. The hardware interface identifier code can be identification information used to identify the corresponding port configuration information to be used.
[0057] Specifically, the host computer can extract interface keywords from the programming device information. This can include extracting identification information from the programming device information name, or extracting special information from the programming device information as interface keywords. Interface keywords can include serial port parameters or identification names, etc. The interface keywords extracted by the host computer from the programming device information can be used as hardware interface identification codes to obtain the corresponding port configuration information.
[0058] S250: Query the pre-associated and stored port configuration information according to the hardware information and hardware interface identification code.
[0059] Among them, port configuration information refers to the relevant parameters of the programming device. Port configuration information may include programming speed, programming start position, programming block size, etc. The programming device can be configured according to the port configuration information.
[0060] Specifically, pre-stored port configuration information can be queried based on the hardware information and hardware interface identification code in the programming task. Different hardware information and hardware interface identification codes may correspond to the same or different port configuration information, and the configuration information corresponding to the hardware information and hardware interface identification code can be interrelated. Port configuration information includes programming speed, programming start position, programming block size, etc. Port configuration information can be queried using hardware information and hardware interface identification codes, and can be stored in a table or configuration file. The table or configuration file storing the port configuration information can be sent to a host computer. Using the port configuration information, information such as programming speed, programming start position, and programming block size can be obtained. The host computer can then configure the ports of the programming device based on the extracted port configuration information.
[0061] Furthermore, the storage location for port configuration information includes at least one of the following: local device location, cloud server location.
[0062] Specifically, port configuration information can be stored locally on the device or on a cloud server. Pre-stored port configuration information can be queried based on the hardware information and hardware interface identification code in the programming task. The port configuration information can be stored in a table or a configuration file. When the port configuration information is stored locally on the device, the host computer can directly query the port configuration information corresponding to the hardware information and hardware interface identification code in the table or configuration file. When the port configuration information is stored on a cloud server, the table or configuration file storing the port configuration information can be sent to the host computer, and the host computer can then query the port configuration information. Alternatively, the host computer can query the port configuration information corresponding to the hardware information and hardware interface identification code in the table or configuration file on the cloud server, and then send the queried port configuration information to the host computer.
[0063] S260. Send the port configuration information to the burning device to configure the port.
[0064] Specifically, port configuration information refers to the relevant parameters configured by the programming device. Based on the port configuration information, the appropriate port can be configured on the programming device to program the chip. The host computer can extract the pre-associated stored port configuration information queried based on hardware information and interface identification code. The port configuration information may include, but is not limited to, programming speed, programming start position, and programming block size. The host computer can complete the port configuration based on the port configuration information.
[0065] In this embodiment of the invention, by reading preset hardware interface information and polling the programming device according to the preset hardware interface information, the programming device can correctly identify the hardware interface information. The programming device information fed back by the programming device is collected, and the interface keywords in the programming device information are extracted as hardware interface identification codes. Pre-associated and stored port configuration information is queried according to the hardware information and the hardware interface identification code to accurately obtain the port configuration information. The ports are configured according to the port configuration information, realizing automatic configuration of the programming device ports, improving the efficiency of programming device port configuration, and enhancing the user experience.
[0066] Furthermore, it also includes: verifying the hardware interface identification code according to the standard identification code in the preset hardware interface information to determine the validity of the hardware interface identification code.
[0067] The standard identification code refers to pre-set, accurate interface keyword information used to verify the validity of the hardware interface code. The interface keyword information can include all interface information keywords from the programming information, and can at least include the interface keywords of the programming device information corresponding to the Universal Asynchronous Receiver / Transmitter interface information, serial debug interface information, and serial peripheral interface information. The standard identification code can be stored locally on the host computer, and all acquired hardware interface identification codes must be verified for validity using the standard identification code.
[0068] Specifically, after extracting the interface keywords from the device information as the hardware interface identification code, it is necessary to verify the validity of the hardware interface identification code. This can be done by extracting the standard identification code stored locally on the host computer and verifying the validity of the hardware interface. The obtained hardware interface identification code can be compared with the standard identification code. If they match, the hardware interface identification code is considered valid; otherwise, it is considered invalid.
[0069] Example 3
[0070] Figure 3 This is a flowchart of a programming configuration method according to Embodiment 3 of the present invention. This embodiment is a specific implementation of the programming configuration method based on the above-described embodiments of the invention. Figure 3 As shown, the method includes the following steps:
[0071] S100, Select the burning task.
[0072] Users can input the programming task into the host computer, and the host computer can select the programming task input by the user.
[0073] S200, connect to the burning device.
[0074] S300, start automatic configuration.
[0075] Furthermore, the S300 includes S310-S370:
[0076] S310, enable automatic configuration.
[0077] S320: Obtain hardware information for the programming task.
[0078] After automatic configuration begins, the host computer can obtain information about the programming task, which may include hardware information.
[0079] S330: Start polling and iterate through the hardware interfaces connected to the computer.
[0080] The host computer configures the interface type and parameters based on the hardware information in the task, and then starts polling to traverse the connected hardware interfaces.
[0081] S340, Data interaction, obtain identification code.
[0082] The host computer interacts with the device connected to the interface and obtains the device identification code.
[0083] S350. Determine if the identification code is correct. If yes, proceed to S370; otherwise, proceed to S360.
[0084] Determine if the identification code is correct based on the pre-set standard identification code.
[0085] S360, complete port configuration for the corresponding programming port.
[0086] If the identification code is correct, then match the device with the corresponding programming device port to complete the port configuration.
[0087] S370, not configured, continue polling.
[0088] If the identification code is incorrect, no configuration will be performed, and the polling process will continue to traverse the hardware interfaces connected to the computer.
[0089] S400, Start the burning task and begin burning.
[0090] In one embodiment, after automatically programming the device configuration begins, the host computer can obtain the programming task information. Based on the interface type and parameters configured in the hardware information of the task, the host computer starts polling the programming device, traversing the connected hardware interfaces, and interacting with the devices connected to the interfaces to obtain the device identification code. It then determines whether the device identification code is correct. If the identification code is correct, the device is associated with the corresponding port, completing the port configuration. The automatic configuration process can be executed automatically by software.
[0091] Example 4
[0092] Figure 4 This is a schematic diagram of a programming and configuration device according to Embodiment 4 of the present invention. Figure 4 As shown, the device includes: a task acquisition module 41, an identification code module 42, and a port configuration module 43.
[0093] The task acquisition module 41 is used to acquire the burning task input by the user, wherein the burning task includes at least hardware information.
[0094] The identification code module 42 is used to determine the hardware interface identification code of the programming device based on the preset hardware interface information.
[0095] The port configuration module 43 is used to configure the port of the programming device according to the port configuration information corresponding to the hardware information and the hardware interface identification code.
[0096] The technical solution of this invention obtains the user-input burning task through the task acquisition module, the identification code module determines the hardware interface identification code of the burning device according to the preset hardware interface information, and the port configuration module configures the port of the burning device according to the hardware information and the port configuration information corresponding to the hardware interface identification code. This realizes the automatic configuration of the burning device port, reduces the time required for multiple configurations when connecting multiple types of interfaces, improves the efficiency of burning device port configuration, reduces the probability of configuration failure due to human judgment errors, and enhances the user experience.
[0097] Furthermore, based on the above embodiments of the invention, the identification code module 42 includes:
[0098] The information reading unit is used to read preset hardware interface information, which includes at least universal asynchronous transceiver interface information, serial debug interface information, and serial peripheral interface information.
[0099] The information acquisition unit is used to poll the programming device according to the preset hardware interface information and collect the programming device information fed back by the programming device.
[0100] The identification code acquisition unit is used to extract interface keywords from the programming device information as hardware interface identification codes.
[0101] Furthermore, based on the above embodiments, the port configuration module 43 includes:
[0102] The information query unit is used to query pre-associated and stored port configuration information based on hardware information and hardware interface identification codes.
[0103] The port configuration unit is used to send port configuration information to the programming device to configure the port.
[0104] Furthermore, the storage location of port configuration information in port configuration module 43 includes at least one of the following: local device or cloud server.
[0105] Furthermore, the port configuration information in the port configuration module 43 includes at least one of the following: burning speed, burning start position, and burning block size.
[0106] Furthermore, based on the above embodiments of the invention, the programming and configuration device further includes:
[0107] The identification code verification module is used to verify the hardware interface identification code according to the standard identification code in the preset hardware interface information to determine the validity of the hardware interface identification code.
[0108] Furthermore, based on the above embodiments of the invention, the programming and configuration device further includes:
[0109] The port distribution module is used to distribute burning tasks to the burning device according to the configured port.
[0110] The programming and configuration device provided in this embodiment of the invention can execute a programming and configuration method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0111] Example 5
[0112] Figure 5 This is a schematic diagram of the structure of an electronic device 10 implementing a programming configuration method according to an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0113] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0114] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0115] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a programming configuration method.
[0116] In some embodiments, a programming configuration method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the programming configuration method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a programming configuration method by any other suitable means (e.g., by means of firmware).
[0117] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0118] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0119] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0120] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0121] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0122] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0123] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0124] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A programming configuration method, characterized in that, include: Obtain a programming task input by the user, wherein the programming task includes at least hardware information; Determine the hardware interface identification code of the programming device based on the preset hardware interface information; Configure the port of the programming device according to the hardware information and the port configuration information corresponding to the hardware interface identification code; The step of determining the hardware interface identification code of the programming device based on preset hardware interface information includes: Read the preset hardware interface information, wherein the preset hardware interface information includes at least general asynchronous transceiver interface information, serial debug interface information, and serial peripheral interface information; The programming device is polled according to the preset hardware interface information, and the programming device information fed back by the programming device is collected. Extract the interface keywords from the programming device information as the hardware interface identification code; The step of configuring the port of the programming device according to the hardware information and the port configuration information corresponding to the hardware interface identification code includes: The port configuration information is queried in advance according to the hardware information and the hardware interface identification code; The port configuration information is sent to the programming device to configure the port.
2. The method according to claim 1, characterized in that, Also includes: The hardware interface identification code is verified according to the standard identification code in the preset hardware interface information to determine that the hardware interface identification code is valid.
3. The method according to claim 1, characterized in that, The storage location of the port configuration information includes at least one of the following: local device, cloud server.
4. The method according to claim 1, characterized in that, The port configuration information includes at least one of the following: programming speed, programming start position, and programming block size.
5. The method according to claim 1, characterized in that, Also includes: The programming task is sent to the programming device according to the configured port.
6. A programming and configuration device, characterized in that, include: The task acquisition module is used to acquire the programming task input by the user, wherein the programming task includes at least hardware information; The identification code module is used to determine the hardware interface identification code of the programming device based on the preset hardware interface information. The port configuration module is used to configure the port of the programming device according to the hardware information and the port configuration information corresponding to the hardware interface identification code; The identification code module includes: An information reading unit is used to read the preset hardware interface information, wherein the preset hardware interface information includes at least universal asynchronous transceiver interface information, serial debug interface information, and serial peripheral interface information; An information acquisition unit is used to poll the programming device according to the preset hardware interface information and collect the programming device information fed back by the programming device. The identification code acquisition unit is used to extract the interface keywords from the programming device information as the hardware interface identification code; The port configuration module includes: The information query unit is used to query the port configuration information that is pre-associated and stored according to the hardware information and the hardware interface identification code; A port configuration unit is used to send the port configuration information to the programming device to configure the port.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the programming configuration method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the programming configuration method according to any one of claims 1-5.