CN111726186A - Synchronous configuration method of embedded chip and external equipment and embedded chip - Google Patents

Synchronous configuration method of embedded chip and external equipment and embedded chip Download PDF

Info

Publication number
CN111726186A
CN111726186A CN201910211673.4A CN201910211673A CN111726186A CN 111726186 A CN111726186 A CN 111726186A CN 201910211673 A CN201910211673 A CN 201910211673A CN 111726186 A CN111726186 A CN 111726186A
Authority
CN
China
Prior art keywords
operating system
embedded chip
time
configuration
real
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.)
Granted
Application number
CN201910211673.4A
Other languages
Chinese (zh)
Other versions
CN111726186B (en
Inventor
翟丽娜
苏俊
王国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Miwen Power Technology Co ltd
Original Assignee
Beijing Miwen Power Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Miwen Power Technology Co ltd filed Critical Beijing Miwen Power Technology Co ltd
Priority to CN201910211673.4A priority Critical patent/CN111726186B/en
Publication of CN111726186A publication Critical patent/CN111726186A/en
Application granted granted Critical
Publication of CN111726186B publication Critical patent/CN111726186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a synchronous configuration method of an embedded chip and external equipment, which comprises the following steps: presetting a multi-core CPU, and a time-sharing operating system and a real-time operating system which run in parallel and communicate with each other in the multi-core CPU; the time-sharing operating system generates configuration parameters and sends the configuration parameters to the real-time operating system; and the real-time operating system configures the synchronous operation of the embedded chip aiming at the external equipment according to the configuration parameters. Correspondingly, the invention also provides a corresponding computer medium and an embedded chip.

Description

Synchronous configuration method of embedded chip and external equipment and embedded chip
Technical Field
The invention relates to the field of clock synchronization of computer equipment, in particular to a configuration method for synchronizing an embedded chip and external equipment and the embedded chip.
Background
In the application of embedded intelligent devices such as unmanned vehicles, guiding robots, sweeping robots, sorting robots, etc., a system on chip is subject to access to a plurality of external devices, typically, the external devices are various sensors of different types, and as different sensors have different internal system times, the occurrence time of sensor data can be correctly identified only by synchronizing the sensors, that is, giving timestamps based on a uniform system clock to data generated by all sensors. And an accurate time basis is provided for a subsequent algorithm so as to effectively improve the algorithm precision. Because different sensors have different synchronization signal attributes and communication interface attributes, for example, a laser radar supporting a GPS synchronization function has predetermined requirements on the pulse width of a PPS synchronization signal, the transmission time of a GPRMC message, the baud rate of a data interface, and the like, while a synchronization-triggered live-action camera has predetermined requirements on the pulse width and frequency of a synchronization signal, and a system on chip needs to perform matched synchronization configuration on different sensors to correctly realize synchronization of the sensors.
The existing system on chip does not provide a solution for dynamically configuring parameters according to the synchronization requirement of the sensor, and the adaptation with the sensor needs to be realized by adding an additional adaptation chip or adaptation circuit, which leads to corresponding increase of integration difficulty, manufacturing cost, system redundancy, failure rate and the like of the system on chip, and the flexibility and applicability of the system on chip in practical application are also limited.
Disclosure of Invention
In order to overcome the above-mentioned drawbacks in the prior art, the present invention provides a method for configuring synchronization between an embedded chip and an external device, the method comprising:
presetting a multi-core CPU, and a time-sharing operating system and a real-time operating system which run in parallel and communicate with each other in the multi-core CPU;
the time-sharing operating system generates configuration parameters and sends the configuration parameters to the real-time operating system;
and the real-time operating system configures the synchronous operation of the embedded chip aiming at the external equipment according to the configuration parameters.
According to one aspect of the invention, the method for generating the configuration parameters by the time-sharing operating system comprises the following steps: a configuration program running in the time-sharing operating system outputs an interactive interface, and generates the configuration parameters according to the operation of a user on the interactive interface; or the configuration program sends parameter query information to the real-time operating system, the parameter query information triggers the real-time operating system to detect the attribute parameters of the interface of the embedded chip and/or the external equipment, and returns the attribute parameters to the time-sharing operating system, and the time-sharing operating system automatically generates the configuration parameters according to the attribute parameters.
According to another aspect of the invention, the method further comprises the real-time operating system sending status information to the time-sharing operating system according to the result of the configuration process.
According to another aspect of the present invention, the configuring, by the real-time operating system according to the configuration parameter, the synchronous operation of the embedded chip to the external device includes: and the real-time operating system configures the attribute of the interface of the embedded chip according to the configuration parameter, and configures the attribute of the synchronous signal output by the embedded chip or the attribute of the received synchronous signal.
According to another aspect of the invention, the method wherein the configuration parameters include: the attribute parameters of the synchronous signals and the attribute parameters of the interface of the embedded chip.
According to another aspect of the invention, the external device in the method is a sensor; the sensor is a GPS synchronous sensor, a synchronous trigger type sensor or a synchronous output type sensor.
According to another aspect of the invention, the interface of the embedded chip in the method comprises: the communication message interface is used for carrying out message interaction with the external equipment in the embedded chip; and/or a synchronous signal interface which is arranged in the embedded chip and transmits synchronous signals with the external equipment.
Accordingly, the present invention also provides one or more computer-readable media storing computer-executable instructions that, when used by one or more computer devices, cause the one or more computer devices to perform the configuration method for synchronization of an embedded chip and an external device as described above.
In addition, the invention also provides an embedded chip, which comprises a multi-core CPU, a time-sharing operating system and a real-time operating system which run in parallel in the multi-core CPU and are communicated with each other, wherein:
the time-sharing operating system is used for generating configuration parameters and sending the configuration parameters to the real-time operating system;
and the real-time operating system is used for configuring the synchronous operation of the embedded chip aiming at the external equipment according to the configuration parameters.
According to one aspect of the invention, a configuration program is run in the time-sharing operating system in the embedded chip; the configuration program is used for outputting an interactive interface and generating the configuration parameters according to the operation of a user on the interactive interface; or the time sharing operating system is used for sending parameter query information to the real-time operating system, the parameter query information triggers the real-time operating system to detect the attribute parameters of the interface of the embedded chip and/or the external equipment, and returns the attribute parameters to the time sharing operating system, and the time sharing operating system automatically generates the configuration parameters according to the attribute parameters.
According to another aspect of the present invention, the real-time operating system in the embedded chip is further configured to send status information to the time-sharing operating system according to a result of the configuration process.
According to another aspect of the present invention, the configuration process in the embedded chip includes: and configuring the attribute of the interface of the embedded chip according to the configuration parameters, and configuring the attribute of the synchronous signal output by the embedded chip or the attribute of the received synchronous signal.
According to another aspect of the present invention, the configuration parameters in the embedded chip include: the attribute parameters of the synchronous signals and the attribute parameters of the interface of the embedded chip.
According to another aspect of the invention, the external device in the embedded chip is a sensor; the sensor is a GPS synchronous sensor, a synchronous trigger type sensor or a synchronous output type sensor.
According to another aspect of the present invention, the interface of the embedded chip in the embedded chip comprises: the communication message interface is used for carrying out message interaction with the external equipment in the embedded chip; and/or a synchronous signal interface which is arranged in the embedded chip and transmits synchronous signals with the external equipment.
The synchronous configuration method of the embedded chip and the external equipment and the embedded chip provided by the invention run the time-sharing operating system and the real-time operating system which are communicated with each other in parallel in the multi-core CPU preset in the embedded chip, the real-time operating system is used for configuring the synchronous operation related to the embedded chip, and the time-sharing operating system is used for providing the configuration parameters for the configuration processing, thereby realizing the dynamic configuration of the embedded chip and the external equipment in the synchronization stage, enabling the embedded chip to be compatible with more types of external equipment during the synchronization without adding extra hardware cost, improving the flexibility, the applicability and the usability of the embedded chip in the actual application, the integration difficulty, the manufacturing cost and the system redundancy of the embedded chips with the same function are correspondingly reduced, and the failure rate of the embedded chips is further reduced.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is a flow diagram illustrating one embodiment of a configuration method for synchronization of an embedded chip and an external device according to the present invention;
FIG. 2 is a schematic diagram of an embodiment of an embedded chip according to the present invention;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
For a better understanding and explanation of the present invention, reference will now be made in detail to the present invention as illustrated in the accompanying drawings. The present invention is not limited to these specific embodiments only. Rather, modifications and equivalents of the invention are intended to be included within the scope of the claims.
It should be noted that numerous specific details are set forth in the following detailed description. It will be understood by those skilled in the art that the present invention may be practiced without these specific details. In the following detailed description of various embodiments, structures and components well known in the art are not described in detail in order to not unnecessarily obscure the present invention.
The present invention provides a method for configuring synchronization between an embedded chip and an external device, referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of the method for configuring synchronization between an embedded chip and an external device according to the present invention, the method includes:
step S100, presetting a multi-core CPU in an embedded chip, and a time-sharing operating system and a real-time operating system which run in parallel and are communicated with each other in the multi-core CPU;
step S200, the time-sharing operating system generates configuration parameters and sends the configuration parameters to the real-time operating system;
and step S300, the real-time operating system configures the synchronous operation of the embedded chip aiming at the external equipment according to the configuration parameters.
Specifically, considering that the specific product targeted by the synchronization method provided by the present invention is an embedded automatic road-finding robot device such as an unmanned vehicle, typically, the embedded chip in step S100 is implemented as a System On Chip (SOC), the multicore CPU is a central processing unit integrated on the SOC, the central processing unit has at least two operation engine cores, and in order to ensure that the time-sharing operating system and the real-time operating system can run in parallel in the multicore CPU, the SOC is preferably designed and implemented such that one core of the multicore CPU is used for running the real-time operating system, and the other cores of the multicore CPU are used for running the time-sharing operating system. Typically, the time-sharing operating system is a lightweight time-sharing operating system adapted to the SOC, such as Linux, Android, or Quick Unix, and the real-time operating system is a real-time operating system (RTOS) adapted to the SOC having an event-timely response characteristic, such as FreeRTOS; the operation of the specified split operating system on a part of cores in the multi-core CPU can be realized by a kernel configuration mode of the time-sharing operating system. As will be understood by those skilled in the art, the RTOS adapted to the SOC is specifically designed for the functions of the SOC, the threads in the RTOS are preferably designed to process data generated by external devices continuously and directly transmitted to the SOC, so as to ensure that the SOC can quickly respond to external events, and the time-sharing operating system is mostly used for implementing functions such as logic scheduling and human-computer interaction at an application program level. Given the nature of an RTOS and the computational resources allocated to the RTOS, it is not generally considered that the RTOS is designed to also assume the form of a human-machine interface that provides the SOC.
In this embodiment, a series of configuration operations required for synchronizing the external device are executed by the real-time operating system, and steps required to be manually participated or automatically executed in the configuration parameters involved in the configuration operations are assigned to the time-sharing operating system for execution, and data transmission is required between the real-time operating system and the time-sharing operating system.
In step S200, the time sharing operating system generates configuration parameters and sends the configuration parameters to the real-time operating system. It will be appreciated by those skilled in the art that with reference to the existing implementation principles of embedded chips, the configuration operation includes not only an adaptive configuration of the properties of the synchronization signals, but optionally also an adaptive configuration of the interfaces of the embedded chip. Typically, the interface of the embedded chip comprises a communication message interface in the embedded chip for performing message interaction with the external device; and/or a synchronous signal interface which is arranged in the embedded chip and transmits synchronous signals with the external equipment. For example, when the embedded chip is matched with an external device with a PPS synchronization function, the synchronization signal interface is a chip pin for sending or receiving PPS pulses, and the communication message interface is a serial port for sending or receiving a GPRMC message.
The configuration parameters are determined according to the specific implementation requirements of the external device accessed by the embedded chip during synchronization, and are used for the configuration processing in step S300. More specifically, in the face of a change in a synchronization mode of the external device and a change in an attribute of an input/output synchronization signal, it is necessary to trigger an update of the configuration parameter, and the real-time operating system cannot autonomously implement the update change of the configuration parameter, and it is necessary that data provided by the time-sharing operating system trigger the real-time operating system to implement the update change, and meanwhile, the real-time operating system further needs to configure the synchronization signal interface and/or the communication data interface according to the configuration parameter. In this embodiment, the configuration parameters are data provided by the time-sharing operating system. Configuration operations for the communication message interface include, but are not limited to: selecting a plurality of communication message interfaces, such as selecting a serial port or an I2C bus interface for communication; or changing the working condition attribute of the communication message interface, for example, adjusting the data transmission rate of the serial port. Configuration operations for the synchronization signal interface include, but are not limited to: the selection of a plurality of the synchronous signal interfaces is, for example, to select a PPS synchronous interface or a synchronous triggered synchronous interface, or to change the operating condition attribute of the synchronous signal interface, for example, to select a pull-up input mode or a pull-down input mode of the synchronous signal interface.
Typically, the external device is a sensor, and the sensor includes but is not limited to a GPS synchronization sensor, a synchronization trigger type sensor or a synchronization output type sensor according to the synchronization mode thereof; during synchronization, the embedded chip may output a synchronization signal to the external device, or the embedded chip may receive a synchronization signal sent by the external device.
In the process of generating the configuration parameters by the time-sharing operating system in step S200, the process may be implemented as: and outputting an interactive interface by a configuration program running in the time-sharing operating system, and generating the configuration parameters according to the operation of a user on the interactive interface. Usually, the interactive interface is used to show the parameters involved in the configuration parameters, and the user's operation on the interactive interface is usually a character output operation for the above parameters. Optionally, the process may be further embodied as: the configuration program sends parameter query information to the real-time operating system, the parameter query information triggers the real-time operating system to detect the attribute parameters of the interface of the embedded chip and/or the external equipment, and returns the attribute parameters to the time-sharing operating system, and the time-sharing operating system automatically generates the configuration parameters according to the attribute parameters. The real-time operating system can detect the attribute parameters of the interfaces of the embedded chips by sending test data to the interfaces of the embedded chips by the real-time operating system, wherein the test data is used for determining that the interfaces of the embedded chips are suitable for the working parameter range of the external equipment. The real-time operating system may detect the attribute parameters of the external device by means of a detection module coupled to the external device, the detection module having a data exchange interface recognizable to the real-time operating system and being triggered to generate a detection signal for the external device, the result of the detection signal being fed back to the real-time operating system via the data exchange interface, the attribute parameters being the result itself or a direct/indirect data transformation product thereof. In addition, the time-sharing operating system automatically generates the configuration parameters according to the attribute parameters, and the configuration parameters can be realized by using a preset database of a predetermined computer program running in the time-sharing operating system. In a specific implementation, the real-time operating system may be selected to detect only one of the interface of the embedded chip and the external device, that is, the configuration parameter may be generated according to the detection result, and in a necessary case, the real-time operating system may also be configured to detect both the interface of the embedded chip and the external device, so as to ensure the correctness of the generation of the configuration parameter.
After the configuration parameters are generated, the time-sharing operating system sends the configuration parameters to the real-time operating system, and an interface for mutual communication between the time-sharing operating system and the real-time operating system may be a shared memory, a universal serial bus, or the like, which can meet the requirement that the time-sharing operating system transmits the configuration parameters to the real-time operating system at a high speed, which is not limited in the present invention.
In step S300, the real-time operating system configures the embedded chip for the synchronous operation of the external device according to the configuration parameters. Specifically, the real-time operating system executing the configuration processing means that the real-time operating system configures attributes of an interface of the embedded chip according to the configuration parameters, and configures attributes of a synchronization signal output by the embedded chip or attributes of a received synchronization signal. In this embodiment, the configuration process is designed to be executed by the real-time operating system.
According to the specific implementation requirement of the external device accessed by the embedded chip during synchronization, typically, the configuration parameters include: the attribute parameters of the synchronous signals and the attribute parameters of the interface of the embedded chip. Wherein the attribute parameter of the synchronization signal is used to define the attribute of the synchronization signal, and the attribute of the synchronization signal includes but is not limited to: rising edge trigger or falling edge trigger of the input synchronous signal, and the like, and pulse width or frequency of the output synchronous signal, and the like. The attribute parameters of the interface are used to define the attributes of the interface, for example, the common communication message interfaces on the embedded chip include a serial port, an I2C bus interface, an SPI bus interface, and the like, and accordingly the attributes of the communication interface include but are not limited to: baud rate, data bit length, start bit, stop bit, parity check, etc. of the serial port, transmission rate, operating mode, duty ratio of SCL line clock, device address, etc. of the I2C bus interface, master-slave mode, data frame length, clock polarity, clock phase, MSB/LSB anticipatory, etc. of the SPI bus interface. The common synchronous signal interface on the embedded chip is a GPIO port, and the attributes of the corresponding synchronous signal interface include, but are not limited to: a pull-up input mode, a pull-down input mode, etc. of the GPIO port.
By implementing the steps S100 to S300, dynamic adjustment of the synchronization mode of the embedded chip can be realized, so that the synchronization mode of the embedded chip can be adaptively updated in time according to synchronization requirements of different types of external devices, and no additional adaptive chip or adaptive circuit needs to be added, thereby improving flexibility and applicability of the embedded chip in practical application and not increasing system redundancy and cost of the embedded chip.
Preferably, the specific embodiment shown in fig. 1 further comprises:
and step S400, the real-time operating system sends state information to the time-sharing operating system according to the configuration processing result. The purpose of executing step S400 is to use the state information to notify the time sharing operating system that the current configuration process is completed, so that the time sharing operating system can return to execute step S200 and step S300 again, or execute other additional tasks, and also so that the time sharing operating system can send a feedback to the user whether the configuration process is successful.
It is noted that while the operations of the method of the present invention are depicted in the drawings in a particular order, this is not intended to require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Accordingly, the present invention also discloses one or more computer-readable media storing computer-executable instructions that, when used by one or more computer devices, cause the one or more computer devices to perform a configuration method of synchronization of an embedded chip and an external device as described above, such as the configuration method shown in fig. 1. The computer readable media may be any available media that can be accessed by the computer device and includes both volatile and nonvolatile media, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer-readable media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computing device. Combinations of any of the above should also be included within the scope of computer readable media.
In addition, the present invention further provides an embedded chip, please refer to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of the embedded chip according to the present invention, as shown in fig. 2, the embedded chip 100 includes a multi-core CPU110, and a time-sharing operating system 111 and a real-time operating system 112 that run in parallel in the multi-core CPU110 and communicate with each other, wherein:
the time-sharing operating system 111 is configured to generate configuration parameters and send the configuration parameters to the real-time operating system 112;
the real-time operating system 112 is configured to perform configuration processing on the embedded chip 100 for the synchronous operation of the external device according to the configuration parameters.
The terms and terms appearing in this section have the same meanings as those of the terms and terms in the foregoing description, such as "multi-core CPU", "configuration parameters", and "configuration processing", and the terms and their related working principles can be referred to the description and explanation of the relevant sections in the foregoing description, and are not repeated herein for brevity.
Specifically, the embedded chip 100 needs to be configured adaptively for different external devices to correctly perform clock synchronization between the embedded chip 100 and the external devices, and typically, the embedded chip 100 may access a plurality of external devices at the same time, including but not limited to the external devices 201, 202, and 203 shown in fig. 2. Typically, the external devices 201, 202 and 203 are sensors, which include but are not limited to GPS synchronization sensors, synchronization trigger type sensors or synchronization output type sensors, etc. according to their synchronization manner.
The specific steps of the real-time operating system 112 executing the configuration process include: configuring the attribute of the interface of the embedded chip 100 according to the configuration parameter, and configuring the attribute of the synchronization signal output by the embedded chip 100 or the attribute of the received synchronization signal. Typically, the interface of the embedded chip 100 includes a communication data interface 120 in the embedded chip for data communication with the external device; and/or a synchronization signal interface 130 in the embedded chip that exchanges synchronization signals with the external device.
The configuration parameters include: attribute parameters of the synchronization signal and attribute parameters of the interface of the embedded chip 100. Wherein the attribute parameter of the synchronization signal is used to define the attribute of the synchronization signal, and the attribute of the synchronization signal includes but is not limited to: rising edge trigger or falling edge trigger of the input synchronous signal, and the like, and pulse width or frequency of the output synchronous signal, and the like. The attribute parameters of the interface are used to define the attributes of the interface, for example, the communication message interface 120 commonly found on the embedded chip has a serial port, an I2C bus interface, an SPI bus interface, and the like, and accordingly the attributes of the communication interface include but are not limited to: baud rate, data bit length, start bit, stop bit, parity check, etc. of the serial port, transmission rate, operating mode, duty ratio of SCL line clock, device address, etc. of the I2C bus interface, master-slave mode, data frame length, clock polarity, clock phase, MSB/LSB anticipatory, etc. of the SPI bus interface. The common synchronous signal interface on the embedded chip is a GPIO port, and the attributes of the corresponding synchronous signal interface include, but are not limited to: a pull-up input mode, a pull-down input mode, etc. of the GPIO port.
Accordingly, to generate the configuration parameters, a configuration program is run in the time-sharing operating system 111; the configuration program is implemented to output an interactive interface and generate the configuration parameters according to the operation of the user on the interactive interface, or alternatively, the configuration program is implemented to send parameter query information to the real-time operating system 112, where the parameter query information triggers the real-time operating system 112 to detect the interface of the embedded chip 100 and/or the attribute parameters of the external device, and returns the attribute parameters to the time-sharing operating system 111, and the time-sharing operating system 111 automatically generates the configuration parameters according to the attribute parameters.
Preferably, the real-time operating system 112 is further configured to send status information to the time-sharing operating system according to a result of the configuration process.
The parts of the configuration method of synchronization of embedded chips and external devices provided by the present invention that involve software logic may be implemented using programmable logic devices or as a computer program product that causes a computer to perform the method for demonstration. The computer program product includes a computer-readable storage medium having computer program logic or code portions embodied therein for performing the various steps described above with respect to the portions of software logic. The computer-readable storage medium may be a built-in medium installed in the computer or a removable medium detachable from the computer main body (e.g., a hot-pluggable storage device). The built-in medium includes, but is not limited to, rewritable nonvolatile memories such as RAM, ROM, and hard disk. The removable media include, but are not limited to: optical storage media (e.g., CD-ROMs and DVDs), magneto-optical storage media (e.g., MOs), magnetic storage media (e.g., magnetic tapes or removable hard disks), media with a built-in rewritable non-volatile memory (e.g., memory cards), and media with a built-in ROM (e.g., ROM cartridges).
Those skilled in the art will appreciate that any computer system having suitable programming means will be capable of executing the steps of the method of the invention as embodied in a computer program product. Although most of the specific embodiments described in this specification focus on software routines, alternative embodiments for implementing the methods provided by the present invention in hardware are also within the scope of the invention as claimed.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are, therefore, to be considered as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it will be obvious that the term "comprising" does not exclude other elements, units or steps, and the singular does not exclude the plural. A plurality of components, units or means recited in the claims may also be implemented by one component, unit or means in software or hardware.
The synchronous configuration method of the embedded chip and the external equipment and the embedded chip provided by the invention run the time-sharing operating system and the real-time operating system which are communicated with each other in parallel in the multi-core CPU preset in the embedded chip, the real-time operating system is used for configuring the synchronous operation related to the embedded chip, and the time-sharing operating system is used for providing the configuration parameters for the configuration processing, thereby realizing the dynamic configuration of the embedded chip and the external equipment in the synchronization stage, enabling the embedded chip to be compatible with more types of external equipment during the synchronization without adding extra hardware cost, improving the flexibility, the applicability and the usability of the embedded chip in the actual application, the integration difficulty, the manufacturing cost and the system redundancy of the embedded chips with the same function are correspondingly reduced, and the failure rate of the embedded chips is further reduced.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (15)

1. A configuration method for synchronization of an embedded chip and an external device, the method comprising:
presetting a multi-core CPU, and a time-sharing operating system and a real-time operating system which run in parallel and communicate with each other in the multi-core CPU;
the time-sharing operating system generates configuration parameters and sends the configuration parameters to the real-time operating system;
and the real-time operating system configures the synchronous operation of the embedded chip aiming at the external equipment according to the configuration parameters.
2. The configuration method of claim 1, wherein the time-sharing operating system generating configuration parameters comprises:
a configuration program running in the time-sharing operating system outputs an interactive interface, and generates the configuration parameters according to the operation of a user on the interactive interface; or
The configuration program sends parameter query information to the real-time operating system, the parameter query information triggers the real-time operating system to detect the attribute parameters of the interface of the embedded chip and/or the external equipment, and returns the attribute parameters to the time-sharing operating system, and the time-sharing operating system automatically generates the configuration parameters according to the attribute parameters.
3. The configuration method of claim 1, further comprising:
and the real-time operating system sends state information to the time-sharing operating system according to the configuration processing result.
4. The method of claim 1, wherein the configuring, by the real-time operating system, the synchronous operation of the embedded chip for the external device according to the configuration parameters comprises:
and the real-time operating system configures the attribute of the interface of the embedded chip according to the configuration parameter, and configures the attribute of the synchronous signal output by the embedded chip or the attribute of the received synchronous signal.
5. The configuration method of claim 1, 2 or 4, wherein the configuration parameters comprise:
the attribute parameters of the synchronous signals and the attribute parameters of the interface of the embedded chip.
6. The configuration method of claim 1, 2 or 4, wherein:
the external device is a sensor;
the sensor is a GPS synchronous sensor, a synchronous trigger type sensor or a synchronous output type sensor.
7. The configuration method of claim 2, 4 or 5, wherein the interface of the embedded chip comprises:
the communication message interface is used for carrying out message interaction with the external equipment in the embedded chip; and/or
And the embedded chip is provided with a synchronous signal interface for transmitting a synchronous signal with the external equipment.
8. An embedded chip, the embedded chip includes multicore CPU, and time sharing operating system and real-time operating system that run in parallel and communicate each other in the said multicore CPU, wherein:
the time-sharing operating system is used for generating configuration parameters and sending the configuration parameters to the real-time operating system;
and the real-time operating system is used for configuring the synchronous operation of the embedded chip aiming at the external equipment according to the configuration parameters.
9. The embedded chip of claim 8, wherein:
running a configuration program in the time-sharing operating system;
the configuration program is used for outputting an interactive interface and generating the configuration parameters according to the operation of a user on the interactive interface, or sending parameter query information to the real-time operating system, wherein the parameter query information triggers the real-time operating system to detect the attribute parameters of the interface of the embedded chip and/or the external equipment and returns the attribute parameters to the time-sharing operating system, and the time-sharing operating system automatically generates the configuration parameters according to the attribute parameters.
10. The embedded chip of claim 8, wherein:
and the real-time operating system is also used for sending state information to the time-sharing operating system according to the configuration processing result.
11. The embedded chip of claim 8, wherein the configuration process comprises:
and configuring the attribute of the interface of the embedded chip according to the configuration parameters, and configuring the attribute of the synchronous signal output by the embedded chip or the attribute of the received synchronous signal.
12. The embedded chip of claim 8, 9 or 11, wherein the configuration parameters comprise:
the attribute parameters of the synchronous signals and the attribute parameters of the interface of the embedded chip.
13. The embedded chip of claim 8, 9 or 11, wherein:
the external device is a sensor;
the sensor is a GPS synchronous sensor, a synchronous trigger type sensor or a synchronous output type sensor.
14. The embedded chip of claim 9, 11 or 12, wherein the interface of the embedded chip comprises:
the communication message interface is used for carrying out message interaction with the external equipment in the embedded chip; and/or
And the embedded chip is provided with a synchronous signal interface for transmitting a synchronous signal with the external equipment.
15. One or more computer-readable media storing computer-executable instructions that, when used by one or more computer devices, cause the one or more computer devices to perform the method of configuring for synchronization of an embedded chip and an external device of any of claims 1 to 7.
CN201910211673.4A 2019-03-20 2019-03-20 Synchronous configuration method of embedded chip and external equipment and embedded chip Active CN111726186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910211673.4A CN111726186B (en) 2019-03-20 2019-03-20 Synchronous configuration method of embedded chip and external equipment and embedded chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910211673.4A CN111726186B (en) 2019-03-20 2019-03-20 Synchronous configuration method of embedded chip and external equipment and embedded chip

Publications (2)

Publication Number Publication Date
CN111726186A true CN111726186A (en) 2020-09-29
CN111726186B CN111726186B (en) 2022-09-09

Family

ID=72563333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910211673.4A Active CN111726186B (en) 2019-03-20 2019-03-20 Synchronous configuration method of embedded chip and external equipment and embedded chip

Country Status (1)

Country Link
CN (1) CN111726186B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131067A (en) * 2020-11-26 2020-12-25 九州华兴集成电路设计(北京)有限公司 Multi-core password chip, and testing method and testing device of multi-core password chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2312442A2 (en) * 2009-08-27 2011-04-20 Siemens Product Lifecycle Management Software Inc. System and method for thread scheduling in processors
CN102866979A (en) * 2012-09-05 2013-01-09 四川省绵阳西南自动化研究所 Synchronous serial interface signal sensor data acquisition device
US20170171023A1 (en) * 2015-12-15 2017-06-15 Quanta Computer Inc. Remote zone management of jbod systems
CN108932213A (en) * 2017-10-10 2018-12-04 北京猎户星空科技有限公司 The means of communication, device, electronic equipment and storage medium between multiple operating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2312442A2 (en) * 2009-08-27 2011-04-20 Siemens Product Lifecycle Management Software Inc. System and method for thread scheduling in processors
CN102866979A (en) * 2012-09-05 2013-01-09 四川省绵阳西南自动化研究所 Synchronous serial interface signal sensor data acquisition device
US20170171023A1 (en) * 2015-12-15 2017-06-15 Quanta Computer Inc. Remote zone management of jbod systems
CN108932213A (en) * 2017-10-10 2018-12-04 北京猎户星空科技有限公司 The means of communication, device, electronic equipment and storage medium between multiple operating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131067A (en) * 2020-11-26 2020-12-25 九州华兴集成电路设计(北京)有限公司 Multi-core password chip, and testing method and testing device of multi-core password chip
CN112131067B (en) * 2020-11-26 2021-03-30 九州华兴集成电路设计(北京)有限公司 Multi-core password chip, and testing method and testing device of multi-core password chip

Also Published As

Publication number Publication date
CN111726186B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
US6812852B1 (en) System and method for selecting a subset of autonomous and independent slave entities
CN112599082B (en) Adaptive addressing and addressing method, device, equipment and storage medium
US20210081585A1 (en) Method for event-based simulation of a system
EP3242199A1 (en) Flash memory controller and control method for flash memory controller
US20190361833A1 (en) Bus system
CN110955715A (en) ERP system, data conversion method and device of target platform and electronic equipment
CN111726186B (en) Synchronous configuration method of embedded chip and external equipment and embedded chip
CN111830390B (en) Test method and related product
CN111726185B (en) Method for synchronizing system clocks of external device and local computing device
US20230367936A1 (en) Verification method, electronic device and storage medium
CN109660310B (en) Clock synchronization method and device, computing equipment and computer storage medium
CN112860495A (en) Debugging method of I2C slave device, I2C master device and storage medium
CN110120877B (en) Configuration circuit of exchange chip and configuration method of parameters of exchange chip
CN112612608B (en) Memory training method and system
CN111124592B (en) Simulation task execution method and device
CN110377272B (en) Method and device for realizing SDK based on TBOX
US20050209839A1 (en) Data processing apparatus simulation
WO2019113726A1 (en) Motion controller and motion control method
US20230315616A1 (en) Method for testing a data processing distributed to multiple programs
CN109274451A (en) A kind of time obtaining method, device and equipment
US10372644B2 (en) Programmable controller
CN113946529B (en) Circuit system, signal processing method and device
CN115993813B (en) Motor ringing control method and device
CN110268692A (en) A kind of data processing method, device, controller and movable fixture
CN109491648B (en) Method, system and equipment for realizing independent partition of library function in embedded software

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
GR01 Patent grant
GR01 Patent grant