Chapter 106 Problems
"Teacher Lin, I have read the position control program and there is no problem." Li Chengqian read the position control code and found no problems.
Although the running efficiency of this code is much slower than the space station control program he wrote, its functions are very complete.
After all, it is a supporting software for the space station. Under normal circumstances, it must have undergone a lot of testing. No one dares to be careless on these issues.
After hearing what Li Chengqian said, Lin Xiong's disappointment was almost written on his face.
Immediately afterwards, Li Chengqian continued to speak, "Teacher Lin, I think the problem may lie in the core code or the driver."
The position control program runs based on the core code of the space station.
Finally, the driver controls the space station hardware according to the instructions of the code.
"Can I take a look at the core code and driver of this system?"
"Yes, but the core code and driver are written in assembly..." In fact, after checking the control program many times and finding no problems, Lin Xiong had already thought that there might be a problem with the core code and driver.
However, the core code and driver programs are both written in assembly language, which is extremely difficult to interpret and difficult to understand. The original system developers are already looking for bugs, but it takes at least two months to complete, and they may not be able to troubleshoot them yet.
Where the problem lies.
"Teacher Lin, I actually understand assembly language," Li Chengqian said calmly.
"Here, this is the core code of the system."
"This is the driver for the device in question."
"Classmate Li Chengqian, after reading the code, I think you already know what this program does."
Seeing Li Chengqian nod, Lin Xiong said with great solemnity, "Today's matter must be kept secret and cannot be told to anyone."
"The code must also be kept secret and must not be leaked." If the source code is leaked, once a loophole is found and exploited, the consequences will be disastrous.
"Don't worry, I won't tell anyone about this." Li Chengqian naturally knew the seriousness of the matter.
"Classmate Li Chengqian, please try to interpret the core code and driver. It doesn't matter even if you don't find any problems." Writing a program in assembly language and interpreting a program written in assembly language are not the same difficulty at all.
Interpreting is ten times more difficult than writing, and that's even with comments.
Without comments, trying to find a bug is no different from finding a needle in a haystack.
Lin Xiong has already thought about it.
It will be time to get off work in 1 hour. If there is no result, he will activate the backup plan.
After all, Li Chengqian needs to conduct a software on-site defense tomorrow and needs to be prepared. This matter is also very important.
Li Chengqian's eyes fell on the two documents that Lin Xiong pulled out.
With the blessing of skills, he browsed quickly.
He can see through the meaning of codes that are like heavenly scriptures to others at a glance.
There are not many core codes for the space station operating system. After 10 minutes, he read all the core codes.
In his mind, the control program has already been run through the core code.
Suddenly, Li Chengqian discovered the key to the problem.
"So this is where the problem lies!"
A seemingly normal code was found by Li Chengqian.
This is a period conversion function.
After the control program is run, this function will be called.
Because the accuracy of the data definition is not enough, each position calculation will be offset a little. Accumulated in one day, the offset is exactly 1 centimeter.
After discovering this problem, Li Chengqian did not raise it immediately.
Because Lin Xiong was very busy, after opening the core code and driver for Li Chengqian, he was called away.
Li Chengqian didn't panic, he marked the problematic code.
Open the driver code file and read it.
What is the nature of a driver?
It is the most critical thing for the operation of computer control equipment.
The driver is equivalent to a hardware interface. The operating system can only control the work of the hardware device through this interface.
On the space station, the specific performance of the driver is that it can control the start of the Hall engine in all directions of the space station, control the operating power, control the operating time, etc., and can control the switches between various hatches, etc.
The quality of the driver directly determines the performance of the device.
Not long after, Li Chengqian finished reading all the driver parts of the control system.
Through the driver, he already knew the space station flying in the sky, especially the control system.
4 Hull thrusters, each with a power of 80 mN.
There are also 4 traditional thrusters that can provide temporary powerful power.
"If I redesign this part of the driver program, the efficiency of the space station's control system can be improved by about 50%!"
At this moment, at the Conference Center of the Institute of Space Research, Academician Gao Xiang, the director of the Institute of Space Research and the commander-in-chief of the space station construction, looked extremely serious, "Lin Xiong, have you checked out the problem with the space station position control system?"
"Dean, we are still investigating."
"After investigation, it has been found that the police station control system software is faulty."
"Preliminarily, the location of the fault is located in the core code and driver."
"How long will it take to solve the problem?" This is the question that Gao Xiang is most concerned about. The space station is a symbol of national power and must be foolproof! There must be no problems.
Nothing else is important now. The most important thing is to solve the hidden dangers of the space station, the sooner the better.
"If we continue to troubleshoot bugs, it may take another two months!"
"No!" Gao Xiang directly rejected the proposal. As soon as the space problem was solved, he couldn't sleep well all day, for fear that the space station would crash, which would be a terrible blow to the Shenlong Kingdom's aerospace industry.
"Another solution is to upload it to the space station operating system developed by Li Chengqian and use it as a control system during bug troubleshooting."
"This solution only takes one day to complete! But treating the symptoms rather than the root cause will cause greater trouble."
"Although this new space station operating system has proven its stability and advanced nature through many software simulation tests, there are still certain risks."
"The storage space on the space station is limited. Uploading a new space station operating system means that some functions need to be deactivated." Lin Xiong said with a face of embarrassment. In fact, the simplest and most reliable way to deal with it is to find the bugs in the original system and remove them.
repair.
"If you use a new operating system core, you need to modify and adapt the software, which will take at least two months." After the new system goes online, there will be a lot of troubles behind it.
The original software needs to be modified to adapt to the new operating system.
"Lin Xiong, I can only give you 3 days!"
"I don't care what method you use. The first is to ensure that the position of the space station will no longer shift. The second is to ensure that all software systems operate normally. The third is to ensure the absolute safety of the space station."
"If you can't safely solve this problem within three days, I will remove you from your position as the software director of the space station, and I will find someone else to do it." Gao Xiang's tone was extremely stern.
"Teacher..." Lin Xiong smiled bitterly.
"Lin Xiong, I know it's difficult."
"However, if the space station really falls, our country will become a joke to the international community, three astronauts will die, our country's aerospace industry will suffer a fatal blow, and we will be nailed to the pillar of shame forever."
Chapter completed!