Preview

Nt1110 Unit 3 Assignment

Good Essays
Open Document
Open Document
655 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nt1110 Unit 3 Assignment
3.3 Hardware Assembly
The next part is assembling all the components together. The Raspberry Pi 2 (in this case) contains a single 40-pin ex-pansion header labeled as ‘J8’ providing access to 26 GPIO pins[1] which is illustrated in Fig. 4.

Fig. 4.Raspberry Pi J8 Header
Since Pi4J will be used as an external library which enables us to control the GPIO pins using Java Fig.5 illustrates the GPIO pinout using the Pi4J [18] numbering scheme. Fig. 5. GPIO Pinout of Raspberry Pi using Pi4J
After completely understanding the pinout of Raspberry Pi the (Fig. 6) will help us understand how the components are to be connected with the pi and it will also help us understand the flow of data in the Brain-Bot. Fig. 6. Flow of Data
In the above chart
…show more content…
Here, Raspberry Pi will act as a server which will open a socket on a specified port which will wait for the incoming connection from the client machine once the connection is established it will send and receive messages and the connection will termi-nate only when the client side application exits. As mentioned earlier it is similar to a simple chat server where the client ma-chine will send some instructions as messages and the Pi will send acknowledgment or error message as message only. One thing that should be kept in mind here is that in the case of an error the server side code should not terminate. Now from here code can be further divided into five parts i.e.:
4.1 Sever Side Code
Server side code will include the portion of opening a socket on a specific port as discussed earlier and in addition to it there will be some if-else construct or a switch case implementation that will interpret the incoming instructions from the client ma-chine and will call the related method associated with the in-struction

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 8 Assignment

    • 459 Words
    • 2 Pages

    In this paper you will find 3 factors that could affect splicing performance, 3 intrinsic factors, and 3 extrinsic factors.…

    • 459 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Assignment

    • 634 Words
    • 3 Pages

    The skin is an organ composed of three anatomical layers: epidermis, dermis, and hypodermis. These anatomical layers together function to provide the body with a protective barrier, body temperature regulation, sensation, excretion, the outer layer of skin…

    • 634 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 355 Words
    • 2 Pages

    Frequency: When describing energy that acts like waves, the number of times that the entire waveform repeats per second.…

    • 355 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 5 Assignment

    • 532 Words
    • 3 Pages

    There are different ways through which businesses can add value to their products and services.…

    • 532 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 629 Words
    • 3 Pages

    In a bus configuration, each computer in the network is responsible for carrying out its own communications without the help of a central unit. A common communications cable (the bus) connects all of the computers in the network. As data travels along the cable, each unit performs a query to determine if it is the intended recipient of the message. The bus network is less expensive than the star configuration and is thus widely in use for systems that connect only a few microcomputers and systems that do not emphasize the sharing of common resources.…

    • 629 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Assignment

    • 987 Words
    • 4 Pages

    Layer 5: The session layer...This layer sets up, coordinates, and terminates conversations, exchanges, and dialogs between the applications at each end. It deals with session and connection coordination.…

    • 987 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 5 Assignment 1

    • 1348 Words
    • 6 Pages

    4. The server accept the connection and to send the data from server to client and vice…

    • 1348 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 3 Assignment

    • 356 Words
    • 2 Pages

    Note: Follow these instructions carefully: There could be modifications that could limit your use of the Ghost software.…

    • 356 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    IT302 Assignment 5.1

    • 308 Words
    • 2 Pages

    g. What is the ability to respond to multiple IPs or names as if the server were multiple servers called?…

    • 308 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Assignment

    • 361 Words
    • 2 Pages

    According to the standard account, true belief is not sufficient for knowledge. It states that knowledge requires, not only that our beliefs be true, but that we have good reasons for believing them to be true. In standard account, knowledge is justified true belief.…

    • 361 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 1 Assignment

    • 2784 Words
    • 12 Pages

    • In 1970, Corning used pure silica to create a fiber with a loss of…

    • 2784 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Assignment

    • 468 Words
    • 2 Pages

    Main Reading: Solomon, M.R. (2011) Consumer behaviour; buying, having and being, 9th edn. New Jersey: Pearson Education Inc…

    • 468 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    3. How does a client app identify a server app on another computer on the network? Transmission Control Protocol (TCP) & Internet Protocol (IP)…

    • 692 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Essay

    • 443 Words
    • 2 Pages

    Client/ server computing – is a program that distinguishes relationship between the client and the server. The client will request a service or resource from another program and this is the server. Once the server has fulfilled the client’s request the connection is terminated. Overall a client/server computing is linking to a computer system where a central server supports a number of networked workstations.…

    • 443 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The server sits in an infinite loop listening for incoming UDP packets. When a packet comes in and if a…

    • 540 Words
    • 3 Pages
    Satisfactory Essays