Sunday, October 16, 2016

Studio Code Protocol Reflection

Develop Your Protocol Develop a protocol that allows you to use Internet Stimulator to relay a 2-bit message, i.e.  one member sends a message and the other member send the same message back. You or a teacher will say "Go" to begin the exchange, but otherwise at communication must be through the widget. As you're working, consider:
How will you know when the exchange is supposed to begin?
-  By creating a signal, or a specific message that will let us both know when to exactly start and with which specific protocol.
How will you know whose turn it is to send or receive the message?
- We'll both give a thumbs up when we send each other or receive a message.
How will you coordinate your actions? 
- Through simple hand gestures, we tell each other beforehand what they mean so we can later use them.

A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB. Unfortunately, your friend set the bit on the wire once every 2 seconds, but you read the wire once every second. Assuming that the first bit was sent and read at the same time, what message did you receive instead?
- AABB
 
A binary message was recorded as a wave as shown in the image below. Can you decode the message? Explain what information you would need in order to successfully decode the message into A’s and B’s.

- I would need the seconds of when each bit was sent during which state. I would also need to know what is a "yes" or a "no" which is whether it'll be a A or a B. I can't decode this message clearly yet. 

1 comment: