Difference between revisions of "RCwiproc"

From RoboJackets Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
==Wireless Protocol==
 
==Wireless Protocol==
  
The host will be able to send each robot velocity, direction, and shoot directives, at with the time alloted between each sample of the playing field by the overhead camera. In such way the enitre system (host, camera, and robot) will behave as a real-time system. The robot will send its current error status, battery voltage, wheel velocity, unique ID, and whether or not it has the ball to the host but not in real-time.
+
The host will send each robot velocity, direction, and shoot directives, at a rate of about 40-50 Hz. '''(This data rate still needs to be confirmed with testing)''' In such a way the enitre system (host, camera, and robot) will behave as a real-time system. The robot will send its current error status, battery voltage, wheel velocity, unique ID, and whether or not it has the ball to the host but at the much slower rate of 10Hz.
  
 
==To Do==
 
==To Do==
Line 11: Line 11:
 
* Evaluate and compare UDP to a custom protocol
 
* Evaluate and compare UDP to a custom protocol
  
==Data Rate calculations==
+
==Protocol Structure==
These will need to be redone.
+
A protocol is a set of rules to define how two or more entities comunicate. It contains 5 basic elements:
 +
*A '''service''' definition - What information will the protocol provide the entities that utilize it?
 +
*A set of '''assumptions''' - What is assumed to in the protocol? What isn't?
 +
*A '''vocabulary''' - What will be the forms of data that I will use to communicate with this protocol
 +
*A '''format/encoding''' - How will my vocabulary coherantly  fit together to form larger msgs, and cmds
 +
*A set of '''procedural rules''' - How will I intiate communication? How are the entities using this protocol indentied? What are thier roles?<br>
 +
Other considerations such as the medium are not specifically stated in the protocol but influence how the protocol is formed. Consider the difference between Wi-Fi where one router can talk to multiple devices versus communication between a wired video game controller and a console. <br>
 +
<br>
 +
As an example of a protocol consider the english language in its vocal form. The '''service''' it provides is a means of conveying thoughts thruogh the use of sound. It '''assumes''' that all the parties involved can speak and understand english, that the medium is such that the transmission of sound waves is possible, and that meaning of the '''vocabulary''' used is the same among all parties involved. Its '''vocabulary''' is made up of 26 letters that by themselves or in groups represent a set of vocal patterns generated and recieved by all the parties involved. In this abstract defintion of '''vocabulary''', it is not words but rather letters and the sounds they make that form the protocol. The basic '''format''' of the english language is such that the vocabulary of letters is formed into words, which each carry the meaning of the thought being conveyed. The procedural rules change based on the situation. Sometimes one person is communicating with a group of passive listeners, at other times several people are communicating with one person at once. There are even times (eavesdropping) where one or more parties are listening to a speaker not directly communicating to them.<br>
 +
<br>
 +
For the robocup competition our teams robots will need to implement a wireless RF protocol in order to communicate with a host computer. This protocol will allow the host to contol each robot directly and for the robots to provide information about themselves to the host. To facilltate this communication a set of Rx and Tx 900mHz RF modules will be used to send and recieve packets of serial data . Each packet will be lead by a header to intiate communication, followed by a data identifing the type of msg being sent, its length in bytes, which robot the msg is for, the data, and a checksum to determine if there is an error.  
 +
 
 +
 
  
 
==Articles==
 
==Articles==

Revision as of 12:37, 8 August 2006

Wireless Protocol

The host will send each robot velocity, direction, and shoot directives, at a rate of about 40-50 Hz. (This data rate still needs to be confirmed with testing) In such a way the enitre system (host, camera, and robot) will behave as a real-time system. The robot will send its current error status, battery voltage, wheel velocity, unique ID, and whether or not it has the ball to the host but at the much slower rate of 10Hz.

To Do

  • Research protocols
    • UDP (User Datagram Protocol)
    • Protocol Book
  • Determine the rate at which to update robots
  • Specify a custom protocol
  • Evaluate and compare UDP to a custom protocol

Protocol Structure

A protocol is a set of rules to define how two or more entities comunicate. It contains 5 basic elements:

  • A service definition - What information will the protocol provide the entities that utilize it?
  • A set of assumptions - What is assumed to in the protocol? What isn't?
  • A vocabulary - What will be the forms of data that I will use to communicate with this protocol
  • A format/encoding - How will my vocabulary coherantly fit together to form larger msgs, and cmds
  • A set of procedural rules - How will I intiate communication? How are the entities using this protocol indentied? What are thier roles?

Other considerations such as the medium are not specifically stated in the protocol but influence how the protocol is formed. Consider the difference between Wi-Fi where one router can talk to multiple devices versus communication between a wired video game controller and a console.

As an example of a protocol consider the english language in its vocal form. The service it provides is a means of conveying thoughts thruogh the use of sound. It assumes that all the parties involved can speak and understand english, that the medium is such that the transmission of sound waves is possible, and that meaning of the vocabulary used is the same among all parties involved. Its vocabulary is made up of 26 letters that by themselves or in groups represent a set of vocal patterns generated and recieved by all the parties involved. In this abstract defintion of vocabulary, it is not words but rather letters and the sounds they make that form the protocol. The basic format of the english language is such that the vocabulary of letters is formed into words, which each carry the meaning of the thought being conveyed. The procedural rules change based on the situation. Sometimes one person is communicating with a group of passive listeners, at other times several people are communicating with one person at once. There are even times (eavesdropping) where one or more parties are listening to a speaker not directly communicating to them.

For the robocup competition our teams robots will need to implement a wireless RF protocol in order to communicate with a host computer. This protocol will allow the host to contol each robot directly and for the robots to provide information about themselves to the host. To facilltate this communication a set of Rx and Tx 900mHz RF modules will be used to send and recieve packets of serial data . Each packet will be lead by a header to intiate communication, followed by a data identifing the type of msg being sent, its length in bytes, which robot the msg is for, the data, and a checksum to determine if there is an error.


Articles

Links

Wireless Hompage