Do-more Technical Training

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
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.
Csc333 Data communication & Networking Credit: 2.
1 Java Networking – Part I CS , Spring 2008/9.
System Programming Practical session 10 Java sockets.
STFTP (Simplified Trivial File Transfer Protocol) MODULE #1.
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.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
TCP/IP: Basics1 User Datagram Protocol (UDP) Another protocol at transport layer is UDP. It is Connectionless protocol i.e. no need to establish & terminate.
Huda AL_Omairl - Network 71 Protocols and Network Software.
Introduction to Interprocess communication SE-2811 Dr. Mark L. Hornick 1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
Computer Communications Sunggu Lee EE Dept., POSTECH Sep. 7, 2006.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Chapter 2 Applications and Layered Architectures Sockets.
1 Figure 3-27: Use of TCP and UDP Port Number Client From: :50047 To: :80 SMTP Server Port 25 Webserver.
Networking Tutorial Special Interest Group for Software Engineering Luke Rajlich.
GPRS functionality overview in Horner OCS. GPRS functionality – Peer to Peer communication over GPRS – CSCAPE connectivity over GPRS – Data exchange using.
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
Socket programming in C. Socket programming Socket API introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm.
Agenda Socket Programming The OSI reference Model The OSI protocol stack Sockets Ports Java classes for sockets Input stream and.
Do-more Technical Training The Do-more Way. Do-more Architecture Hardware or System Resource Device MemoryInstruction Server Do-more PLCs are “device-centric”
1 Network Communications A Brief Introduction. 2 Network Communications.
Do-more Technical Training Communications (Modbus TCP)
Ch 3. Transport Layer Myungchul Kim
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
The Transport Layer Implementation Services Functions Protocols
Do-more Technical Training
Chapter 9: Transport Layer
BRX Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Instructor Materials Chapter 9: Transport Layer
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Do-more Technical Training
Input/Output and Communication
Chapter 17 and 18: TCP is connection oriented
Operating Systems (CS 340 D)
Transport Layer.
What the OSI Protocol Layers Do
TCP Transport layer Er. Vikram Dhiman LPU.
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
Do-more Technical Training
Serial Communication Interface: Using 8251
Starting TCP Connection – A High Level View
Andy Wang Operating Systems COP 4610 / CGS 5765
Do-more Technical Training
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
Chapter 13: I/O Systems.
RSLinx Enterprise 5.70 Unsolicited Messages
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 Serial)

Communications – Custom Serial Do-more built-in serial port Do-more with SERIO/SERIO4

Communications – Custom Serial 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 Serial 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 Serial 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 Serial 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 Serial General Purpose comms (Initiator/Listener) Do-more CPU with built-in serial port or SERIO/SERIO4 Serial Port Mode must be configured Use CPU Configuration for built-in or Module Configuration for SERIO/SERIO4 Select “General Purpose” Use <Device Settings> button to change port settings as desired Use STREAMOUT (write) & STREAMIN (read) instructions

Communications – Custom Serial @IntSerial (Initiator) @IntSerial (Listener) Output Buffer “TIME”<CR><LF> Input Buffer “TIME”<CR><LF> “TIME” <CR><LF> The logic for the STREAMIN can be set to monitor the InQueue value & when it is executed, will read the data out of the Input Buffer InQueue = 0 InQueue = 6 STREAMOUT “TIME”<CR><LF> The data goes into the @IntSerial Device’s Input Buffer where it will stay until a STREAMIN is executed to get the data out When the @IntSerial Device “gets around to it”, it sends the data in its Output Buffer out on the wire STREAMOUT does not send data out on the wire; it merely writes the data to the @IntSerial Device’s Output Buffer @IntSerial Device’s structure member, InQueue, is set to indicate how many bytes are currently in the Input Buffer STREAMIN Memory “TIME”<CR><LF>

Communications – Custom Serial STREAMOUT “Stream Out Data to Device” Writes data from to stream-capable device Fully asynchronous instruction (red triangle) Parameters: Device – stream-capable Device 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 Endian Settings: Swap Byte Swap Word Flush INPUT device first On Success: Set bit, JMP to Stage On Error: Set bit, JMP to Stage

Communications – Custom Serial STREAMIN “Stream in Data from Device” Reads data from a stream-capable device Fully asynchronous instruction (red triangle) Parameters: Device – stream-capable Device Complete when… Length is x bytes OR Delimeter(s) received OR Number of delimiters Delimiter characters Exact sequence Any one delimiter(s) Trim Delimiter(s) from Output String Network Timeout <Advanced…> button Data Destination String Structure Numeric Data Block Start Address Buffer Size in Bytes Number of Bytes Read Endian Settings: Swap Byte, Swap Word On Success/On Error: Set bit, JMP to Stage When attempting to get a STREAMIN to work the first time, the importance of Network Timeout cannot be overstressed because without it the STREAMIN has potential to lock the streaming Device

Communications – Custom Serial General Purpose (Initiator) General Purpose (Listener) Do-more CPU Do-more CPU Memory Memory STREAMOUT @IntSerial @IntSerial STREAMIN

Communications – Custom Serial Communications Test 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”