Create a peer-to-peer connection

Assignment Help Electrical Engineering
Reference no: EM131090698

The overall goal of this lab is to design, implement, and test a peer-to-peer communication system. Peer-to-peer means people on two computers communicate without the people on the other computers seeing the information. The system must use a ring-connected RS232 serial channel (Figure 14.4), must use interrupt-driven I/O, and must have a layered software configuration. The lowest-level software performs serial I/O. The middle-level software sends message packets from one computer to another. The highest-level software interfaces with the human operator (keypad/LCD) and provides a mechanism to create a peer-to-peer connection. In a layered system, software in one layer can call routines only within that layer or the layer immediately below it. You need a way to see who is on the network and a way to request/accept or terminate connection between two operators. Local operator input/output will occur via a keypad and LCD. You may assume all nodes on the system are willing to cooperate and will not perform malicious activity. On the other hand, it is possible that another computer on the network may not be plugged in, or the network connection may be broken
The communication system between two or more microcomputers will be designed in three layers. The first layer, the physical layer is implemented by the SCI hardware and the interrupt-driven device driver. The second layer may consist of a simplified binary synchronous communication protocol (BSC). At this level, message packets will be transmitted between the two machines. Possible formats of the control-code packet and the data packet are shown in Figure 14.25. This control-code packet contains exactly six bytes.

Figure 14.4

808_597d4233-8c79-4383-a6bf-ab4e2e7920e7.png

Figure 14.25

1267_0d43053a-bc35-47c9-9e38-13144ee154cb.png

1718_12acfd6f-a382-4301-aef5-c438105d938d.png

In the data packet, the data c1, c2, . . ., cn are ASCII characters that constitute the information being sent from source to destination. It is OK to limit message sizes to a maximum of 20 bytes. The destination computer will respond with an ACK control packet if the message was received properly and will respond with a NAK if there are any framing, overrun, noise, or LRC errors. The transmitter will send a message and "stop and wait" for either an ACK or a NAK. If an ACK is received, then it can continue. If a NAK is received or if no response is received after a reasonable delay, then the message is retransmitted Because there is a ring physical channel, there is no possibility of a collision. You must handle the situations when the destination computer does not exist or when the ring is broken. To solve this fault you will need some time-out mechanism to retransmit the packet if an ACK is not received in some reasonable time. You should choose an upper limit (e.g., three) on the number of times a packet is retransmitted. After three tries an error is reported to the operator. The highest level will be a keypad interpreter and an LCD display. The LCD should show interactive feedback to the operator creates messages to be sent and should display messages received.

Reference no: EM131090698

Questions Cloud

Two bible commentaries or religion-centered websites : Must use at least one or two Bible commentaries or religion-centered websites as well. At the end of your essay you should briefly list the sources that you used, i.e. Arnold and Beyer, Encountering the Old Testament, name/link/date of website, et..
Explain linux process accounting : 1. What do you understand about remote logging? 2. Explain Linux process accounting.
What is required to get this concept developed and tested : What is required to get this concept developed and tested? Consider timing issues and potential roadblocks.
Imperative for an organization to learn that strategic moves : Wrtite a dissertation on given title "It is imperative for an organization to learn that strategic moves should be targeted on the shareholders and that the value should also be delivered to their financial statements"Report should be formed as below..
Create a peer-to-peer connection : The LCD should show interactive feedback to the operator creates messages to be sent and should display messages received.
Determine how comfortable the shopper was in a store : In a study conducted to investing browsing activity by shoppers, each shopper was initially classified as a nonbrowser, light browser, or heavy browser. For each shopper, the study obtained a measure to determine how comfortable the shopper was in..
Used to describe such nonstandard instruments : Suppose that a party wanted to enter into a FRA that expires in 42 days and is basedon 137-day LIBOR. The dealer quotes a rate of 4.75 percent on this FRA. Assume thatat expiration, the 137-day LIBOR is 4 percent and the notional principal is$20,..
Provide truearth with recommended promotion strategy : Given your assessment of what this target tribe values and the corresponding product, price, and promotion strategy that you feel TruEarth would have to implement to be successful, do you recommend that TruEarth go ahead with the launch of this li..
Standard of a harvard business school case : The aim of the project is to give you an opportunity to apply the concepts learnt in the course to a real life merger/acquisition/divestiture/LBO/restructuring etc. kind of deal.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Design an elevator controller for simple two-floor elevator

Design an elevator controller for a simple two-floor elevator. On the 1st floor, there is only an up button, and on the 2nd floor, there is only a down button. Within the elevator, there are two buttons: door open and door close.

  What are the values of a-b-c and d of harmonic function

A signal x(t) is sampled 4 times and the samples are {x[0], x[1], x[2], x[3]}. Its DFT harmonic function is {X[0], X[1], X[2], X[3]}. X[3] can be written as X[3] = a x[0] + b x[1] + c x[2] + d x[3]. What are the values of a,b,c and d

  Design a four pole lowpass filter with sallen-key topology

Design a four pole lowpass filter with Sallen-Key topology and a Butterworth characteristic. The cutoff frequency of the filter must be 16 kHz.

  Which side of pn junction should be connected to positve v

Which side of a pn junction should be connected to the positive voltage for forward bias In normal operation, which type of bias (forward or reverse) is applied to the emitter-base junction of a BJT To the collector-base junction

  Parallel versus in series

How do resistors add in parallel versus in series? How do capacitors add in parallel versus in series? Are they different?

  What is the value of the instantaneous voltage

1. A sinusoidal waveform is described by the equation: v(t) = 20V sin(120pit) pi = 3.1416 What is the value of the frequency 2. A sinusoidal waveform is described by the equation

  Find the number of binary digits n required to have ber

The samples are binary PCM encoded into n bits whichare transmitted using two waveforms S1 (t)=1.414 sin(w1t) and S2(t)=1.414 sin(w1t) + 1.414 cos(w1t) where t is between 0 and Tb,and the a priory probability of S1 is p(s1) = 0.4.

  Sketch the magnitude bode plot of a suitable filter

The frequency of the interference slowly varies in the range 950 to 1050Hz. A filter that attenuates the interference by at least 20 dB and passes most of the audio components is desired. What type of filter is needed? Sketch the magnitude Bode pl..

  Find interconnection between roms address and data lines

Reduce the two functions given below and implement them using fewest 8x2 ROM's. Draw a neat labeled diagram showing interconnection between the ROM's address and data lines, and content of each ROM.

  Determine latent heat of fusion for the substance of object

They melt when 3.9 × 104 J of heat is added to A and when 11 × 104 J is added to B. (a), (b) Determine the latent heat of fusion for the substance from which each object is made. (c) Find the heat required to melt object A when its mass is 7.4 kg.

  What is the gain of an ideal amplifier connected to drive

A power amplifier employs an output stage whose gain varies from 2 to 12 for various reasons. What is the gain of an ideal (non varying) amplifier connected to drive It so that an overall gain with feedback of 100 ± 5% V/V can be achieved

  Find thepower factor at which the machine is operating

One of the machines which has a synchronous reactanceof 50% and a resistanceof 1% delivers a power output in kW equals to 70% of its rated kVA. If the mf of this unit equals 1.2 times the terminal voltage, find thepower factor at which the machine..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd