Chapter 107 Puzzle
"Mr. Lin, I checked the position control program, and there is no problem." Li Chengqian read the position control code, but found no problem.
Although the running efficiency of this code is much slower than the space station control program he wrote, the function is perfect.
After all, it is the supporting software of the space station. Under normal circumstances, it must have been tested a lot. No one dares to be careless on these issues.
After hearing Li Chengqian's words, Lin Xiong's disappointment was almost written on his face.
Immediately afterwards, Li Chengqian continued, "Mr. Lin, I think the problem may be in the core code or the driver."
The position control program runs on the core code of the space station.
Finally, the driver program controls the hardware of the space station according to the instructions of the code.
"Can I take a look at the core code and drivers of this system."
"Yes, but the core code and driver program are written in assembly..." In fact, after checking the control program many times and finding no problems, Lin Xiong already thought that there might be a problem with the core code and driver program.
But the core code and the driver program are 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. What went wrong.
"Mr. Lin, I actually understand assembly language." Li Chengqian said calmly.
"Come on, this is the core code of the system."
"This is the driver for the associated device."
"Student Li Chengqian, after reading the code, I think you already know what this program does."
Seeing Li Chengqian nodded, Lin Xiong said very solemnly, "Today's matter must be kept secret, and we must not tell anyone."
"The code must also be kept secret and must not be leaked out." If the source code is leaked out, once someone finds a loophole and attacks the loophole, the consequences will be disastrous.
"Don't worry, I won't tell anyone about this." Li Chengqian naturally knew the seriousness of the matter.
"Student Li Chengqian, try to interpret the core code and the driver program. It doesn't matter if you don't find any problems." Writing a program in assembly language is not the same difficulty as interpreting a program written in assembly language.
Interpretation is ten times more difficult than writing, and there are still comments.
In the absence of comments, trying to find bugs is not much different from finding a needle in a haystack.
Lin Xiong has already considered it.
After 1 hour, it will be off-duty time, and if there is no result, he will activate the backup plan.
After all, Li Chengqian needs to conduct an on-site software defense tomorrow, so he needs to be prepared, which is also very important.
Li Chengqian's eyes fell on the two files that Lin Xiong had transferred.
With the blessing of skills, he browsed quickly.
Those codes that are like a bible to others, he can see through the meaning at a glance.
There are not many core codes of the space station operating system. After 10 minutes, he read all the core codes.
In his mind, the control program has already run through the core code.
Suddenly, Li Chengqian discovered the key to the problem.
"So the problem is here!"
A seemingly normal code was found by Li Chengqian.
This is a time conversion function.
After the control program runs, it will call this function.
Because the precision of the data definition is not enough, there will be a slight offset in each position calculation, and the accumulated offset in a day is exactly 1 cm.
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 out the problematic code.
Open the code file of the driver and read it.
What is the nature of the driver?
is the most critical thing in the operation of computer-controlled equipment.
The driver is equivalent to the hardware interface, and the operating system can only control the work of the hardware device through this interface.
On the space station, the driver program can control the start of the Hall engine in all directions of the space station, control the power of operation, control the time of operation, etc., and can control the switches between the various hatches, etc.
The quality of the driver directly determines the performance of the device.
Not long after, Li Chengqian read all the driver part of the control system.
Through the driver, he already knows the space station flying in the sky, especially the control system.
4 Hull thrusters, each with a power of 80mN.
There are also 4 traditional propellers, which can provide temporary powerful power.
"If I reset this part of the driver program, the efficiency of the control system of the space station can be increased by about 50%!"
At this moment, in the Conference Center of the Space Research Institute, Academician Gao Xiang, the director of the Space Research Institute and the chief commander of the space station construction, looked very serious, "Lin Xiong, have you checked out the problem with the space station's position control system?"
"Dean, we are still investigating."
"After investigation, the software of the control system of the police station has failed."
"Preliminarily locate the location of the fault on the core code and the driver."
"How long will it take to solve the problem?" This is Gao Xiang's most concerned question. The space station is a symbol of national strength and must be foolproof! Absolutely nothing can go wrong.
Now nothing else is important, the most important thing is to solve the hidden dangers of the space station, the sooner the better.
"If you continue to troubleshoot bugs, it may take another two months!"
"No way!" Gao Xiang directly rejected this proposal. Once the problem in the sky was resolved, he would not be able to sleep well. He was afraid that the space station would crash, which would be a terrible blow to Shenlong Kingdom's aerospace industry.
"Another set of plans is uploaded on the space station operating system developed by Li Chengqian, and used as a control system during bug investigation."
"This kind of solution can be completed in only one day! But it will cause more trouble if it doesn't cure the symptoms."
"This new space station operating system, although it has passed many software simulation tests and proved its stability and advancement, 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 disabled." Lin Xiong said with a face of embarrassment. In fact, the simplest and safest way to deal with it is to find the bugs in the original system and fix them. repair.
"If you use the new operating system core, you need to modify and adapt the software, which will take at least 2 months." After the new system goes online, there will be a lot of troubles behind.
It is necessary to modify the original software 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 not shift, the second is to ensure that all software systems are running normally, and the third is to ensure the absolute safety of the space station."
"If you can't solve this problem safely within 3 days, I will dismiss you as the person in charge of the software of the space station, and I will find someone else to do it." Gao Xiang's tone was extremely severe.
"Teacher..." Lin Xiong smiled wryly.
"Lin Xiong, I know it's difficult."
"However, if the space station really falls, our country will become a joke of the international community, three astronauts will sacrifice, our country's aerospace industry will be fatally hit, and we will be forever nailed to the pillar of shame."
"There is no room for negotiation on this matter. It must be resolved. No matter what method is considered, it must be resolved!" Gao Xiang was extremely serious.
(end of this chapter)