Reborn Ace Hack

Chapter 679 Digital-to-Analog Conversion

"Sister, come here and take a look." Xiao Yuan called.

Tang Sa opened his eyes and saw Xiao Yuan staring at the polar coordinate system with green characters on a black background on the screen of the machine. He stood up and walked over and asked, "What's going on?"

"Have you seen this signal source? It's very strange." Xiao Yuan said, pointing to a flashing green dot on the polar coordinate system.

"Why is it weird?" Tang Sa asked. In addition to this light spot, there were other light spots flashing on the screen at this moment, but Xiao Yuan singled out that light spot and gave it to her, which made her feel very uncomfortable.

curious.

"According to the diagram on the manual, the flashing frequency of this light spot does not belong to a mobile phone signal, nor is it a walkie-talkie signal, but an unknown signal source, and this signal source is continuously sending information outwards," Xiao Yuan said.

After hearing Xiao Yuan's words, Tang Sa frowned but said nothing.

"The most important thing is that the signal source is 31.75 meters away from the center of the polar coordinates, that is, the machine. It should be in a corner of the Queen's Ballroom. Sister, would you like someone to follow the location shown above?

Let's go look for it." Seeing that Tang Sa was silent, Xiao Yuan added some more and then asked.

"Don't look for it first. It's best to figure out what information this signal source is sending." Tang Sa had his own ideas.

"This machine has a signal receiving function. I can try it and see if it can receive these signals." Xiao Yuan said.

"You try it." Tang Sa said.

Xiao Yuan opened the manual, read the operating instructions above, and then recorded the frequency band of the strange signal source displayed on the screen with a pen, then fiddled with the machine and switched to the signal receiving function.

, set the receiving frequency band of the machine according to the frequency band just copied, and a constantly changing composite waveform appeared on the machine screen.

"The signal is received, but the waveform output is like an oscilloscope, and you can't see anything at all?" Xiao Yuan said.

"If you look back at the manual, I remember seeing that this machine has a digital-to-analog conversion function to see if it can convert this analog waveform into a digital stream." Tang Sa said.

After being reminded by Tang Sa, Xiao Yuan flipped through the manual and found the detailed description of the signal receiving function. He looked through it carefully and found the instructions and operation guide for digital-to-analog conversion.

"Sister, digital-to-analog conversion requires the help of a computer, and the machine needs to be connected to the computer through a serial port, and there is also special data receiving software. Do you have all these things?" Xiao Yuan looked at it and asked.

"This machine was stolen. It would be great to have a manual. How can it have what you mentioned? It seems that the digital-to-analog conversion is not working." Tang Sa said with some disappointment.

"This is really a bit troublesome." Xiao Yuan was also a little disappointed. He turned back two pages and saw an interface specification for the digital-to-analog conversion module attached to the operation process. After scanning it briefly, he said,

"Sister, according to this interface specification, I can write a simple version if there is no software. Can you find a serial port line?"

"The serial port line is here. Just wait, I will help you find it." Tang Sa stood up and came to a cardboard box placed on the side of the room. After opening it, he found a serial port line and took it out to Xiao.

Yuanhou asked, "Can you write this software?"

"Digital-to-analog conversion has actually been completed on this machine. All the computer has to do is receive the digital stream converted from the analog signal and store it in the computer. There are interface specifications, so it is not difficult to write such software.

"Xiao Yuan said.

"Okay, but it seems to be getting light soon. How long will it take you to write it?" Tang Sa asked.

"If everything goes well, it will take three or four hours." Xiao Yuan said. After saying that, he felt that three or four hours seemed a bit long, so he added, "After all, it is something I am not familiar with. I need to get familiar with it first, plus the debugging time."

, three or four hours is not much.”

"Can you really write it in three or four hours?" Tang Sa was startled by Xiao Yuan's somewhat conservative estimate and asked in disbelief.

"I'm talking about three or four hours if everything goes well. You are also a professional in this field. You know that there is still a possibility of encountering difficulties when writing real-time data collection software for this kind of hardware interface. If you encounter such a problem, is there any way?

With the help of specialized tools, it is difficult to say how long it will take to solve the problem, but it is possible in one day," Xiao Yuan said.

"Even if you can write it in one day, I really admire you. Even though I have a doctorate in this field, compared to your practical ability, I am really far behind you." Tang Sa said again.

"A doctorate should mainly focus on theory and algorithm research, and practical ability is secondary. You know, that is the foundation of computer science. With algorithms, are you afraid you can't find someone to help you realize it?" Xiao Yuan

said.

"You know a lot, but my theoretical research ability has been neglected. I'm afraid that my current level is not even comparable to a master's degree. Forget it, let's forget about it. Just hurry up and get to work. My sister will help you." Tang Sa

said.

"Actually, there's no need to do anything. You haven't slept all night. If you feel tired, just take a nap. There might be some trouble waiting for you when it gets dark. It's not okay if you're not in good spirits." Xiao Yuan said.

"No need, staying up late is nothing to my sister. In order to carry out a mission, my sister lurked in a thatched hut for three days and three nights. When she came out, she was still very active. My sister wants to watch you work." Tang Sa didn't care.

, rejected Xiao Yuan's request to let her rest.

"Okay." Xiao Yuan said. He changed his position and sat in front of the terminal monitor of the blade server. He turned on the monitor and logged into the blade server. Because he wanted to directly manipulate the hardware this time, he used the root user.

After logging into the server, Xiao Yuan first set up a development environment to write a program that directly reads and writes hardware. There is no other choice. Linked programming using C and assembly is the best choice. C language is used to improve programming efficiency.

Those modules that need to directly interact with the hardware use assembly fragments. This programming method is familiar to Xiao Yuan and is also his favorite.

After configuring the programming environment, Xiao Yuan did not start coding immediately. Instead, he carefully read the interface specifications, got a piece of paper and drew a simplified diagram of the system architecture, and then opened his usual editor vi.

, started coding, and fell into it. When he raised his head again, it was Tang Sa who brought him breakfast.

"It's already dawn, and you can't feel it here at all. If you stay here for a long time, I'm afraid it will really feel like there is no sun and moon in the mountains." Xiao Yuan said with a smile while eating the delicious breakfast Tang Sa prepared for himself.

"Eat quickly, sister, I hope you'll be full, so hurry up and finish writing." Tang Sa said.

"It's almost done. The first few paragraphs have been written very smoothly. According to this progress, the program will be written in another hour, and then all modules can be jointly debugged." Xiao Yuan said.

"Come on, sister, keep an eye on me." Tang Sa waved his fist and cheered for Xiao Yuan.

After dinner, Tang Sa took out the breakfast dishes and did not come back. Xiao Yuan, on the other hand, was immersed in his digital world and did not notice this at all.

The program was written smoothly, and there were no unpredictable errors as he said before. When he had written all the modules and was about to conduct joint debugging, he discovered that Tang Sa was not in the computer room, but he did not think too much, because

He knew that Tang Sa would have a lot of things to do during the day, Tong Yuping's funeral arrangements would have to be taken care of, and the Xinhuayi Gang would also need to be careful, etc.

It was already eight o'clock in the morning, which was longer than the three or four hours he originally expected. Therefore, he was unwilling to waste any more time and immediately started debugging the program. When he had passed all the functional modules, he

When the complete software was finally compiled and generated, although the process went smoothly, more than an hour passed. It was almost ten o'clock, and Tang Sa still never came again.

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like