Chapter 146: Ping Pong Game [Asking for a Monthly Pass]

Chapter 146 Ping Pong Game Asking for a Monthly Pass (Saint King txt download)

Like the Internet protocol, the infrared protocol designed by Lin Hong also has a hierarchical structure, with a total of three layers, from bottom to top, namely the physical layer, the network layer and the application layer, which is more streamlined than the protocol.

These are the basic functions of the protocol, and the content of the agreements of the manufacturers that Arthur has seen before is similar to the content, but from the second manuscript onwards, the content begins to change, and the expression on Arthur's face begins to slowly become serious.

"Asynchronous half-duplex communication? Waveform compression? Arthur was surprised.

These technologies are already very advanced technologies, and as far as Arthur knows, only a few manufacturers can implement this part of the content.

"This ......," a look of shock began to appear on Arthur's face, "how come this codec principle has never been seen before?" ”

He was shocked to see that the encoding and decoding principles described in the manuscript in his hand were completely different from those protocols that were now in vogue.

The existing infrared communication is based on the asynchronous communication transceiver UART, which is limited by its communication rate, and the maximum rate of the protocol realized by all manufacturers can only reach the maximum rate of the computer serial communication port.

However, Arthur saw that the data transmission principle realized by Lin Hong is "to distinguish the transmitted data information through the phase of the pulse", the communication principle is completely different from before, but it can be well compatible with the previous communication protocol, what makes Arthur feel even more uninteresting is that using this principle, its maximum communication rate has a qualitative leap, which can reach 4mkbps!

4mkbps, what is this concept? Nearly forty times the boost!

Arthur couldn't sit still any longer, he didn't care about the class, and in the surprised eyes of the teacher and the other students, he packed up his things, ran out of the classroom, ran towards Matthew's classroom, and called Matthew, who was taking economics, out.

"Arthur, what the hell is going on, so urgent?" Matthew asked.

When he saw Arthur appear at the door of his classroom just now, he came out without the slightest hesitation. In the United States, although the teaching environment is relatively relaxed, such open skipping classes is not encouraged, and if the teacher is more serious, he is likely to be called to the principal's office for a conversation.

"Do you have a calculator on you?". Arthur didn't answer the rhetorical question.

"Yes." Arthur patted the bag he was carrying, since he cracked it, it was now a must-have item for him, and he used to only carry it on his body during math classes or exams.

"Let's go to the school computer room now." Arthur turned around and left.

"Wait a minute." Matthew hurriedly grabbed him, "What the hell is going on, you tell me first, so that I can have an idea in my heart." ”

"Probably the communication problem has been solved!" Arthur said with some excitement.

"Really?". Matthew suddenly perked up, "Have you found the right protocol for the calculator?" ”

Last night, the two of them went to bed after discussing it on the Internet until late at night, but they didn't find a suitable solution, either it was difficult to implement, or the hardware didn't meet the requirements, and then the communication rate was too slow to meet the standards needed to play the game.

Originally, Matthew also thought that he could not solve this problem before the dance began, but he didn't expect that this was only the first lesson, and Arthur said that he had found a way.

"I didn't find it, it's Stone!" Arthur still can't believe it, "You can't imagine that this protocol was written by Stone in a matter of hours!" ”

He took a stack of manuscripts out of his bag and shook it.

"Stone is so cool!" Matthew complimented.

Arthur was only slightly surprised to see him, knowing that he had not yet realized the meaning of the manuscripts in his possession.

He shook his head: "It's not just cool to describe! Do you know what the maximum transmission rate of this protocol can theoretically reach? ”。

When Matthew saw him like this, he couldn't help but be stunned: "How much can it achieve?" Could it be that I can reach the maximum limit, if that's the case, then I really have to admire the stone so much! ”

He also knew about infrared communication, and knew that this rate was usually only theoretical, in fact, many manufacturers could not reach this height, and even the protocol implemented by Texas Instruments could only reach a pitiful 9.6kbps.

"You're wrong, you're very wrong!" Arthur looked proud and said loudly, "Theoretically, this protocol implemented by Stone can reach 4mkbps!" ”

"Sorry, can you repeat that?".

"Haha, your understanding is not wrong, and I am not wrong, it is really 4mkbps!" Seeing the expected reaction, Arthur smirked.

Matthew grabbed Arthur: "Are you kidding? How is this possible? I've also worked on infrared communication protocols before is the maximum speed, which is the upper limit, which is determined by its basic principles. ”

"Here's the key." Arthur pulled out a manuscript and pointed to it, saying, "The communication method used by Stone is not to modulate according to the width of the pulse signal, as in the past, but to use phase, yes, to modulate using pulse phase. It is for this reason that the uplink rate of infrared communication can be increased to 4mkbps! What's even more rare is that this protocol is still backwards compatible with some previous protocols, which is unbelievable! ”

When Matthew heard this, he snatched the manuscript from Arthur's hand and looked at it.

"Oh my God, be careful, don't break it!" Arthur reminded.

Matthew looked at it for a long time, but he didn't understand what the picture on it meant, he was still not as good as Arthur in the software.

He returned the manuscript to Arthur: "You mean that Stone may have created a communication protocol that is stronger than all the others?" ”

Arthur was slightly stunned, then nodded: "Yes, so to speak." ”

"Wow, that's pretty cool!"

Matthew's first thought was how much of a sensation this agreement would cause if it was known to those manufacturers.

"Arthur, do you know what that means? Dollars, lots of dollars! ”

Matthew's understanding of business is not comparable to Arthur's, he thought of the commercial significance of this agreement, at present, the major manufacturers are fighting for the standard of communication protocols, and they all think that their protocols are the best, but they never imagined that now a middle school student from China, only a few hours, wrote a protocol that is better than their protocols I don't know how many times, and their engineers would definitely be ashamed to hit the wall if they knew.

Arthur had just been completely blown away by the speed that the protocol could transmit, and he didn't think about it at all. Now after he reminded him, thinking that this is indeed the case, these dozen manuscripts in his hand may really be worth a lot of dollars.

"This ......" Arthur couldn't do it for a while, "will you go and return it to Stone now?" ”。

"It definitely belongs to Stone, but let's see if this protocol can really work on our calculator first, let's go to the computer room and implement its first application." In the end, Matthew still wanted to see for himself whether this agreement really worked as Arthur said, you know, there had been no such cases before.

So, the two of them quickly came to the school computer room.

Then start writing the corresponding code according to the rules described on the protocol. Arthur's table tennis game is all that remains of communication, and it can be implemented using this protocol.

In the morning class, Arthur and Matthew both skipped. They are fully immersed in the implementation of this agreement, and at least for now, they have not found anything wrong.

Soon, the first version that could pass the various grammar rules was released, and Arthur compiled it into machine code, and then ported the game program to the calculators of the two of them.

"Hopefully it will work!" Arthur said, holding back the excitement in her heart.

"Haha, you can't go wrong!" Matthew was completely confident at the moment. "This agreement is complete, it has come to this point, will there be any problems?"

The two of them each launched a game called "pingpong" and then turned the computer's infrared communication transceiver against each other.

I saw that the calculator display began to display:

"Signal search ......"

"The following devices were found, and please check whether they are connected to ......"

Confirm!

"Connecting ......"

"The connection has been successfully established."

Seeing this prompt, Arthur and Matthew glanced at each other and shouted cheeringly:

β€œyes!”

Then they entered the game screen, and a small black oval appeared in their display, indicating the racket, which was at the lower end and could only move left and right.

In the middle of the display, there is a rectangular box that represents half a table.

The game begins, and Arthur serves first.

After pressing the tee button, a small black round ball appears in the monitor.

Arthur moved the racket to the right end, then pressed the hit button, only to hear the calculator make a "beep" sound, and the ball began to fly in an arc like a front, and when it flew to the very top, the black ball suddenly disappeared. However, in the next moment, it suddenly appeared in the monitor of the calculator in Matthew's hand, and looked at its trajectory, which was completely consistent with the trajectory of the ball that Arthur sent before.

Matthew saw the ball appear, and with an excited smile on his face, he immediately pressed the arrow keys to adjust the direction of his racket, and when the ball fell on his table and bounced again, his racket hit the ball right on.

"Toot-"

The ball flew back again.

This time, Arthur failed to react, and the ball fell into the perimeter.

After a few simple tones, different results appeared on their respective displays.

In the center of Arthur's display: "You've lost!" "Top right, 0:1.

Matthew's display: "You win!" "Top right, 1:0.

After pressing the confirm button, the next round begins......

*

Chapter 146 Ping Pong Game [Asking for a Monthly Pass (Saint King txt Download)]

Chapter 146 Ping Pong Game [Ask for a monthly ticket (Saint King txt download), go to (Saint King txt download) to read the novel