Do-more Technical Training

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

Socket Programming. Basics Socket is an interface between application and network – Application creates a socket – Socket type dictates the style of communication.
TCP-IP Primer David Cozens. Targets Have a basic understanding of Ethernet network technology Be aware of how this technology is applied on the 5000 series.
Transport Layer – TCP (Part2) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
UDP - User Datagram Protocol UDP – User Datagram Protocol Author : Nir Shafrir Reference The TCP/IP Guide - ( Version Version.
1 Java Networking – Part I CS , Spring 2008/9.
System Programming Practical session 10 Java sockets.
CSE/EE 461 Getting Started with Networking. Basic Concepts  A PROCESS is an executing program somewhere.  Eg, “./a.out”  A MESSAGE contains information.
STFTP (Simplified Trivial File Transfer Protocol) MODULE #1.
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Input/Output and Communication
SLAC asyn class, Day 1, August 26, 2010 Example asyn driver Modbus Mark Rivers, Marty Kraimer, Eric Norum University of Chicago Advanced Photon Source.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Huda AL_Omairl - Network 71 Protocols and Network Software.
Internet Ethernet Token Ring Video High Speed Router Host A: Client browser: REQUEST:http//mango.ee.nogradesu.edu/c461.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
Chapter 2 Applications and Layered Architectures Sockets.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
Queues, Pipes and Sockets. QUEUE A structure with a series of data elements with the first element waiting for an operation Used when an element is not.
Networking Tutorial Special Interest Group for Software Engineering Luke Rajlich.
CS 145A Implementation Issues Netlab.caltech.edu/course.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
GPRS functionality overview in Horner OCS. GPRS functionality – Peer to Peer communication over GPRS – CSCAPE connectivity over GPRS – Data exchange using.
UNIT-6. Basics of Networking TCP/IP Sockets Simple Client Server program Multiple clients Sending file from Server to Client Parallel search server.
1 Version 3.1 Module 10 Intermediate TCP/IP (Layer 4)
4343 X2 – The Transport Layer Tanenbaum Ch.6.
Socket programming in C. Socket programming Socket API introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
1 Network Communications A Brief Introduction. 2 Network Communications.
Do-more Technical Training Communications (Modbus TCP)
SOCKET PROGRAMMING Presented By : Divya Sharma.
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
The Transport Layer Implementation Services Functions Protocols
Chapter 9: Transport Layer
Do-more Technical Training
Do-more Technical Training
Instructor Materials Chapter 9: Transport Layer
Do-more Technical Training
Input/Output and Communication
Do-more Technical Training
TFTP Trivial File Transfer Protocol
Lecture 6: TCP/IP Networking By: Adal Alashban
CS703 - Advanced Operating Systems
Welcome! Thank you for joining us. We’ll get started in a few minutes.
Process-to-Process Delivery:
Do-more Technical Training
Sarah Diesburg Operating Systems COP 4610
I. Basic Network Concepts
Network Models, Hardware, Protocols and number systems
TCP/IP Protocol Suite: Review
Network Hardware and Protocols
Starting TCP Connection – A High Level View
TCP/IP Protocol Suite: Review
Andy Wang Operating Systems COP 4610 / CGS 5765
CPEG514 Advanced Computer Networkst
Do-more Technical Training
Socket Programming with UDP
Transport Layer 9/22/2019.
Exceptions and networking
Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.
Presentation transcript:

Do-more Technical Training Communications (Custom UDP)

Communications – Custom UDP Do-more built-in Ethernet

Communications – Custom UDP Serial & TCP Protocols are streams of data Serial medium is usually a private conversation Bye Stream of weather data… I’m only going to give you 5 data points. I need to give you the latest data on the weather. I’ll say ‘bye’. OK. I will talk at this rate and only to you. How will I know when the conversation is complete? OK, but don’t talk too slow; I’ve got other things to do. OK, I’m listening… Thanks. IMPLIMENTATION: Partner listens. IMPLIMENTATION: Transfer complete IMPLIMENTATION: (Processes data) ENGINEERING: How will the data end? ENGINEERING: What type of data will be sent? ENGINEERING: How is the data transmitted?

Communications – Custom UDP TCP Protocol medium is a network TCP is connection-based protocol Dial Ring Can we talk? OK. I’ll call you later. I’m sorry, but I’m pretty busy at the moment. Hello? Dial Ring A “connection” must be established before a conversation can take place. The client (man) must call the server (woman). One is initiating and the other is listening. <starts conversation> Can we talk? Sure. What’s up? Hello? The conversation is delimited because both parties will agree on when it is over and say, “Bye”, just like serial comms.

Communications – Custom UDP UDP Protocol medium is also a network UDP is connectionless protocol Since no connection is needed, no resources (i.e. cellphone) are monopolized A “connection” is not necessary. The client (man) simply sends a message to the server (woman).

Communications – Custom UDP UDP Connection (Initiator or Listener) Do-more CPU with built-in Ethernet port Must create a UDP Connection Use Device Configuration & <New Device> button  “UDP Connection”, press <OK> button Give it a Device Name Give it a UDP Port number – this Device will only receive packets that are sent to this port number Use PACKETOUT / PACKETIN instructions to send/receive data to/from partner

Communications – Custom UDP Custom Protocol Type Data Size Client Instruction Server Instruction Server Member Serial Stream Unlimited STREAMOUT STREAMIN InQueue (# of bytes) TCP OPENTCP TCPLISTEN UDP Packet 1 packet PACKETOUT PACKETIN PacketAvailable (bit)

Communications – Custom UDP @MyUDP (Initiator) @MyUDP (Listener) Output Buffer “TIME”<CR><LF> Input Buffer “TIME”<CR><LF> “TIME” <CR><LF> The logic for the PACKETIN can be set to monitor the PacketAvailable bit & when it is executed, will read the data out of the Input Buffer PacketAvailable = OFF PacketAvailable = ON PACKETOUT “TIME”<CR><LF> The data goes into the @MyUDP Device’s Input Buffer where it will stay until a PACKETIN is executed to get the data out When the @MyUDP Device “gets around to it”, it sends the data in its Output Buffer out on the wire PACKETOUT does not send data out on the wire; it merely writes the data to the @MyUDP Device’s Output Buffer @MyUDP Device’s structure member, PacketAvailable, is set ON indicate one or more packets are currently in the Input Buffer PACKETIN Memory “TIME”<CR><LF>

Communications – Custom UDP PACKETOUT “Output Data to Packet Device” Writes data to UDP Device’s output buffer Fully asynchronous instruction (red triangle) Parameters: Device – UDP Connection Device To IP Address: Variable Address From UDP Read – uses IP address read from the last PACKETIN instruction execution Fixed Address To UDP Port Number Data Source: String Structure – string to send Numeric Data Block Buffer Start – location of start of data buffer to send Number of Bytes to Output On Success: Set bit, JMP to Stage On Error: Set bit, JMP to Stage

Communications – Custom UDP PACKETIN “Input Data from Packet Device” Retrieves data from UDP Device’s input buffer Structure member PacketAvailable comes ON when there is one or more packets in the input buffer to receive Fully asynchronous instruction (red triangle) Parameters: Device – UDP Connection Device Came from IP Address – where to put the sender’s IP address from which the packet came from Came from UDP Port Number – where to put the packet’s sending port number value Network Timeout Max Number of Bytes to read from Packet Data Destination: String Structure Numeric Data Block: Start Address Number of Bytes Read On Success: Set bit, JMP to Stage On Error: Set bit, JMP to Stage The Came from IP Address & Came from UDP Port Number parameters are NOT something you provide, but instead are something the PACKETIN instruction provides you When attempting to get a PACKETIN to work the first time, the importance of Network Timeout cannot be overstressed because without it the PACKETIN has potential to lock the UDP Device

Communications – Custom UDP UDP Connection (Initiator) UDP Connection (Listener) Do-more CPU Do-more CPU Memory Memory PACKETOUT @MyUDP UDP @MyUDP PACKETIN

Communications – Custom UDP Communications Test IP Address: 10.1.1.200 UDP Port #: 1234 Commands delimited by <CR><LF>: TIME Response: “Current PLC Time is: 04:02:14 PM” DATE Response: “Current PLC Date is: 3/11/2016” SCANTIME Response: “Current PLC Scan Time is: 561us” FIRMWARE Response: “Current PLC Firmware is: 176201” IPADDRESS Response: “Current PLC IP Address is: 10.1.1.200”