Remote collaborative embedded development system and methodTechnical Field
The invention relates to the technical field of embedded development, in particular to a remote collaborative embedded development system and method.
Background
For a long time, the embedded development environment has localization and diversification, and the working efficiency of embedded development is greatly restricted.
In the embedded development process, the development machine is connected with the development board through the network cable and the serial port cable, and the development board is limited by the technical specification requirements of the network cable and the serial port cable, and the development board is relatively close to the development machine in physical distance, so that a developer can only perform embedded development work locally. Meanwhile, the embedded system enters an integration stage, developers of different subsystems can only perform integration work locally, and a working mode of different-place coordination cannot be realized.
Meanwhile, due to the diversity of embedded system technology and the diversity of manufacturers, embedded development environments are difficult to unify, and various development environments exist. The developer needs to manually install the development environment on the development machine, so that the efficiency is low; meanwhile, in the same development machine, the problem of software installation conflict is frequently encountered when a plurality of development environments are installed; when the development machine is changed, the development software needs to be repeatedly installed.
Disclosure of Invention
By providing the remote collaborative embedded development system and method, a series of problems of localization of an embedded development environment, long deployment time, conflict in software installation, waste of hardware resources, low efficiency and the like in the prior art are solved, remote collaborative work is realized, hardware resources are fully utilized, the construction speed of the development environment is improved, and the development efficiency is improved.
The embodiment of the application provides a remote collaborative embedded development system, which comprises:
the cloud platform is provided with a development environment object pool and a development environment dispatcher, and a plurality of development environment templates are built in the development environment object pool;
the system comprises a combined test center, a cloud platform and a network platform, wherein the combined test center comprises a development board pool, a serial port switch and a network switch, the development board pool comprises a plurality of development boards, the development boards are respectively connected with the serial port switch and the network switch, the serial port switch is also connected with the network switch, and the network switch is also connected with the cloud platform through a network;
the development environment dispatcher is used for calling the development board and the development environment template corresponding to the development board to generate a development environment instance.
The beneficial effects of the above embodiment are that: the development board pool comprises various types of development boards, such as X86, powerPC, ARM and the like; the development board is connected to the serial port switch, and the serial port switch converts the serial port protocol into the network protocol and is connected to the network switch, and is connected with the cloud platform through the network switch. The engineer accesses the cloud platform through the terminal, selects a specific development board in the cloud platform, the development environment dispatcher calls the development board and a development environment template corresponding to the development board to generate a development environment instance, and the engineer remotely connects the development board through a network port and serial port software in the distributed development environment instance to realize the embedded development of the remote coordination. The development system can realize the remote collaborative work of engineers, the hardware resources of the development board are shared, the resource utilization efficiency of the development board is improved, and meanwhile, the construction speed of the development environment is improved by presetting the development environment instance generated by the corresponding template, so that the development efficiency is improved.
Based on the above embodiments, the present application may be further improved, specifically as follows:
in one embodiment of the present application, the development board is connected to the serial port switch through a serial port line, the development board is connected to the network switch through a network line, and the serial port switch is connected to the network switch through a network line. The development environment instance debugs the development board through network protocol software and serial tools.
In one embodiment of the present application, the test center further comprises a power supply pool for powering the development board pool. The power supply pool comprises power supplies with various voltage and current requirements and is used for supplying power to the corresponding development boards.
In one embodiment of the present application, the power supply pool includes a plurality of power supplies corresponding to the development boards, the power supplies supply power to the development boards through power lines, and the power supplies are further connected to the serial port switch through serial port lines. The cloud platform is synchronously connected with the specific development board and the corresponding power supply thereof through the serial port tool, so that the remote control of the power supply corresponding to the development board in different places can be realized, and the power supply is energy-saving and environment-friendly.
In one embodiment of the present application, the cloud platform has virtual resources, where the virtual resources are virtualized from physical resources, and the physical resources include computing resources, network resources, and storage resources.
In one embodiment of the present application, the development system further includes an access terminal, the access terminal being in network connection with the cloud platform. An engineer logs into the cloud platform through an access terminal.
The embodiment of the application also provides a remote collaborative embedded development method, which is based on the development system and specifically comprises the following steps:
s1, connecting to the cloud platform through the access terminal;
s2: selecting the development board through the cloud platform, and copying the corresponding development environment template from the development environment object pool according to the selected development board by the development environment dispatcher to generate the development environment instance;
s3: debugging the development board through network protocol software and a serial port tool in the development environment example to perform embedded development;
s4: and after the debugging development is finished, the development environment dispatcher recovers the development environment instance.
The beneficial effects of the above embodiment are that: by the development method, engineers can quickly construct an embedded development environment, and the embedded development work is cooperatively developed in different places.
In one embodiment of the present application, in the step S2, after the development board is selected, the development environment scheduler simultaneously controls the power source corresponding to the development board to maintain a power-on state.
One or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
1. the development system can realize the remote collaborative work of engineers, the hardware resources of the development board are shared, the resource utilization efficiency of the development board is improved, and meanwhile, the construction speed of the development environment is improved by presetting the development environment instance generated by the corresponding template, so that the development efficiency is improved;
2. the cloud platform is synchronously connected with the specific development board and the corresponding power supply thereof through the serial port tool, so that the remote control of the power supply corresponding to the development board in different places can be realized, and the power supply is energy-saving and environment-friendly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. Like elements or portions are generally identified by like reference numerals throughout the several figures. In the drawings, elements or portions thereof are not necessarily drawn to scale.
FIG. 1 is a schematic block diagram of a remote collaborative embedded development system according to embodiment 1 of the present invention;
FIG. 2 is a schematic block diagram of a joint center in embodiment 1 of the present invention;
fig. 3 is a flowchart of a remote collaborative embedded development method according to embodiment 2 of the present invention.
Detailed Description
The present invention is further illustrated below in conjunction with the specific embodiments, it being understood that these embodiments are meant to be illustrative of the invention only and not limiting the scope of the invention, and that modifications of the invention, which are equivalent to those skilled in the art to which the invention pertains, will fall within the scope of the invention as defined in the claims appended hereto.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains.
By providing the remote collaborative embedded development system and method, the embodiment of the application solves a series of problems of localization of an embedded development environment, long deployment time, conflict in software installation, waste of hardware resources, low efficiency and the like in the prior art, realizes remote collaborative work, fully utilizes hardware resources, improves the construction speed of the development environment and improves the development efficiency.
Example 1:
as shown in fig. 1-2, a remote collaborative embedded development system includes: the system comprises a joint test center, a cloud platform and an access terminal.
The joint test center comprises a development board pool, a power supply pool, a serial port switch and a network switch, wherein the development board pool comprises various types of development boards, such as X86, powerPC, ARM and the like; each development board is connected with the serial port switch and the network switch through serial port lines and network lines respectively, the power supply pool comprises a plurality of power supplies corresponding to the development boards, power is supplied to the corresponding development boards through the power lines, the power supplies are connected to the serial port switch through the serial port lines to convert serial port protocols into network protocols, the serial port switch is connected with the network switch through the network lines, and the network switch is connected with the cloud platform network.
The cloud platform is provided with a development environment object pool and a development environment dispatcher, a plurality of development environment templates are built in the development environment object pool, the development environment templates correspond to the development boards, the development environment dispatcher is used for calling the development boards and the development environment templates corresponding to the development boards to generate development environment instances, and the development environment instances debug the development boards through network protocol software and serial port tools. Multiple development environment instances make up a development environment instance pool. The cloud platform is synchronously connected with the corresponding power supply of the specific development board through the serial port tool, so that the power on and power off of the corresponding power supply of the development board can be remotely controlled in different places. The cloud platform is provided with virtual resources, the virtual resources are virtualized by physical resources, and the physical resources comprise computing resources, network resources and storage resources.
The access terminal is connected with the cloud platform network and is used for an engineer to log in the cloud platform.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
1. the development system can realize the remote collaborative work of engineers, the hardware resources of the development board are shared, the resource utilization efficiency of the development board is improved, and meanwhile, the construction speed of the development environment is improved by presetting the development environment instance generated by the corresponding template, so that the development efficiency is improved;
2. the cloud platform is synchronously connected with the specific development board and the corresponding power supply thereof through the serial port tool, so that the remote control of the power supply corresponding to the development board in different places can be realized, and the power supply is energy-saving and environment-friendly.
Example 2:
as shown in fig. 3, the remote collaborative embedded development method specifically comprises the following steps based on the development system:
s1, an engineer at a site i is connected to a cloud platform through an access terminal;
s2: the engineer selects a development board M through the cloud platform, a development environment scheduler controls a power supply N corresponding to the development board M to keep a power-on state according to the selected development board M, and the development environment scheduler copies a corresponding development environment template J from a development environment object pool and generates a development environment instance K;
s3: an engineer debugs the development board M through network protocol software and a serial port tool in the development environment example K to carry out embedded development work;
s4: after the engineer finishes debugging and development, the development environment dispatcher recovers the development environment instance K.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
1. the development method can realize that engineers quickly construct an embedded development environment, and cooperatively develop embedded development work in different places, thereby improving development efficiency.
2. The development method shares the hardware resources of the development board and improves the resource utilization efficiency of the development board.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.