![]() |
Re: Increasing available program memory
Quote:
Byte 1: 'P' ; First synchronization byte. I use my younger son's first initial Byte 2: 'B' ; Second synchronization byte. I use my oldest son's first initial Byte 3: Command byte ; i.e., 01 = start motor #n, 02 = stop motor #n... Byte 4: Data needed for command; e.g., motor number Byte 5: Eight-bit checksum; Least significant eight bits of the summation of bytes 1-4. This is used to make sure the packet isn't corrupted. -Kevin |
Re: Increasing available program memory
When you write the example code on how to send packetized data between the FRC-RC and EDU-RC can you include an example of how to create a packet such as the one outlined in your last reply (Or any type of packet for that matter)?
Thanks again, |
Re: Increasing available program memory
Quote:
-Kevin |
Re: Increasing available program memory
Quote:
Thank you very much, |
Re: Increasing available program memory
Hey Kevin,
Any news on how its going with the example interface code between the EDU-RC and the FRC-RC? Thanks, |
Re: Increasing available program memory
Dan,
Reading over your posts in this thread, it looks like you have never programmed a serial link before... It is not really so hard. A simple Google search will yield thousands of hits. The issue is digging through them until you find a simple example... Start by reading the sections "Typical Protocols" and "Serial Client & Server Example Programs" at this link. Personally, I prefer the full or "complete" packet with a checksum after the ETX for data integrity. Now look at the specification and code for the CMU2cam we used this year. You will see that it is a very simple protocol. For example SV 1 200r is a command from one CPU to another to move servo #1 to position 200. Also, you have the default code which implements 1/2 of the protocol definition. Just as the CMU definition is specific to the requirements of the camera, your definition will be specific to your requirements. The biggest job that you have to do is to sit down and write the interface definition. After that, the coding is cake... You do not need to wait for Mr. Watson to do this for you. And as always, you can post here if you have more questions. Regards, Mike |
Re: Increasing available program memory
2 Attachment(s)
Quote:
-Kevin |
| All times are GMT -5. The time now is 00:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi