James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer.

Slides:



Advertisements
Similar presentations
Introduction to Sockets Jan Why do we need sockets? Provides an abstraction for interprocess communication.
Advertisements

NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
Sockets Programming Network API Socket Structures Socket Functions
Socket Programming Application Programming Interface.
Jieun Song Port-Binding & Connect-Back Shellcode.
Networks: TCP/IP Socket Calls1 Elementary TCP Sockets Chapter 4 UNIX Network Programming Vol. 1, Second Ed. Stevens.
Elementary TCP Sockets Chapter 4 UNIX Network Programming Vol. 1, Second Ed. Stevens.
Socket Programming.
1 Java Networking – Part I CS , Spring 2008/9.
EECS122 Communications Networks Socket Programming January 30th, 2003 Jörn Altmann.
1 Socket Interfaces Professor Jinhua Guo CIS527 Fall 2003.
Tutorial 8 Socket Programming
Remote Surveillance Vehicle Design Review By: Bill Burgdorf Tom Fisher Eleni Binopolus-Rumayor.
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
Introduction to Computers Personal Computing 10. What is a computer? Electronic device Performs instructions in a program Performs four functions –Accepts.
Socket Programming Based on tutorial prepared by EUISOK CHUNG CS3320 Spring2008.
Socket programming in C. Socket programming Socket API introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm.
TCP/IP Protocol Stack IP Device Drivers TCPUDP Application Sockets (Gate to network) TCP: –Establish connection –Maintain connection during the communication.
Fall 2000Datacom 11 Lecture 4 Socket Interface Programming: Service Interface between Applications and TCP.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
Translate the following message:
Week 13 - Monday.  What did we talk about last time?  Low level file I/O practice  File systems.
Server Sockets: A server socket listens on a given port Many different clients may be connecting to that port Ideally, you would like a separate file descriptor.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Outline Overview Video Format Conversion Connection with An authentication Streaming media Transferring media.
Sockets API Overview Sockets with UDP Sockets with TCP Fast Sockets (Fast UDP) IP Multicasting.
The Guts. CPU CPU Socket The CPU is generally a 2 inch ceramic square with a silicon chip located inside. The chip usually about the size of a thumbnail.
---- IT Acumens. COM IT Acumens. COMIT Acumens. COM.
Introduction to Computer and Computer Networking: Part I Xiangming Mu 9/16/2004.
Computer Network Sritrusta Sukaridhoto. Why Computer Network ??? Stand alone Computer …. FOR WHAT ???
Remote Shell CS230 Project #4 Assigned : Due date :
Networking Tutorial Special Interest Group for Software Engineering Luke Rajlich.
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
1 Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Lecture 3: Sockets.
James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer.
Introduction to Socket
Chapter 27 Socket API Interface The interface between an application program and the communication protocols in an operating system is known as the Application.
Socket Programming Tutorial Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki
1 Sockets Programming Socket to me!. 2 Network Application Programming Interface (API) The services provided by the operating system that provide the.
Getting Started With the Arduino Uno
CSCI 330 UNIX and Network Programming Unit XV: Transmission Control Protocol.
Today’s topic: UDP Reliable communication over UDP.
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: HsinYu Ha.
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Review: – Why layer architecture? – peer entities – Protocol and service interface – Connection-oriented/connectionless service – Reliable/unreliable service.
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
1 Spring Semester 2008, Dept. of Computer Science, Technion Internet Networking recitation #7 Socket Programming.
Seth Schwiethale James Crosetto James Ellison.  square pulse of ms, repeats every 20 ms  It is the same for both steering and acceleration 
CS 447 Networks and Data Communication Server-Process Organization IP address and SockAddr_In Data Structure Department of Computer Science Southern Illinois.
Lecture 15 Socket Programming CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
Lecture 3 TCP and UDP Sockets CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
Socket Programming(1/2). Outline  1. Introduction to Network Programming  2. Network Architecture – Client/Server Model  3. TCP Socket Programming.
1 Socket Interface. 2 Basic Sockets API Review Socket Library TCPUDP IP EthernetPPP ARP DHCP, Mail, WWW, TELNET, FTP... Network cardCom Layer 4 / Transport.
NETWORK RC CAR© James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
Jim Fawcett CSE 681 – Software Modeling & Analysis Fall 2002
Socket Programming in C
Transport layer API: Socket Programming
Controlling YOUR ROBOT
TCP Sockets Programming
Chapter 2 Application Layer
Chapter 3 Socket API © Bobby Hoggard, Department of Computer Science, East Carolina University These slides may not be used or duplicated without permission.
Socket Programming(1/2)
Sockets Programming Socket to me!.
Sockets Programming Socket to me!.
Socket Programming Neil Tang 09/08/2008
Internet Networking recitation #8
Jim Fawcett CSE 681 – Software Modeling & Analysis Summer 2003
Presentation transcript:

James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer Science)

 project objectives  requirements/specifications  design issues/technology

 expanding the range of a remote control car  control car over network, similar to a printer  be able to have first person view of car’s location

 establish connection between rc car and driver’s computer  get real time visual feed  control rc car  user friendly GUI  backtracking (retracing to reacquire lost signal)

 between rc car and user’s computer  TCP/IP protocol suite ◦ connection oriented ◦ reliable  sockets ◦ what are they?

 IP camera ◦ video stream ◦ wireless interface ◦ linux kernel  Axis® RTSP ◦ control protocol for media server ◦ “play” and “pause” type of commands ◦ control of media stream properties (bit rate, res, etc…)

 Power: 5.1 V DC, max 3.5 W  Alarm output (motion, audio, external)  Open API for software integration  CPU, video processing and compression; ◦ Ram: 32 MB ◦ Flash: 8 MB IP Camera

tcp/ip

 commands sent from user’s computer to camera  camera relays signal to microprocessor  microprocessor sends translated signal to car

 single connection  server on camera – C  client on user’s computer – Java

 create socket int socket_descriptor; socket_descriptor = socket(AF_INTET, SOCK_STREAM, 0);//domain, type, protocol) //0 = IPPROTO_TCP for AF_INET, SOCK_STREAM  bind socket to port struct sockaddr_in address; address.sin_family = AF_INET; address.sin_addr.s_addr = INADDR_ANY; address.sin_port = htons(7000); bind(socket_descriptor, (struct sockaddr *)&address, sizeof(address));  listen for connections listen(socket_descriptor, 5) //there can be up to 5 connections pending, >5 timeout error  accept connection int addrlen; struct sockaddr_in address; addrlen = sizeof(struct sockaddr_in); new_socket = accept(sock_descriptor, (struct sockaddr *)&address, &addrlen); if(new_socket<0) perror(“Accept connection”);

 3 Leads: ◦ Ground ◦ V cc ◦ Pulse width modulation

 Square Pulse wave of ms repeats every ~20ms  Width of pulse determines the position of the servo with 1.5ms as the normal center  The amplitude of the pulse is from the reference level to the V cc  V cc = V

 4-pin I/O terminal ◦ 1 transistor output  Max load of 100mA  Max voltage of 24V DC ◦ 1 digital input  Can be activated or left floating ◦ Auxiliary power and GND  Max 5V DC, 2.5W  Connector for main power  Power to auxiliary equip, Max 50mA

tcp/ip

 Receives signals from the transistor output of the IP camera  Translates the signals  Sends translated signals to steering box and speed control  Programmed with C and Assembly  Written, debugged, tested using CodeWarrior and a Dragon12 development board

 Every time the IP camera receives a command, it stores the command in memory  If a connection is lost, the camera sends signals to the car to make it backtrack  If a connection is reestablished, backtracking stops

 processing  can communicate directly to RTSP server on camera  have an instance of a client