Thursday, July 23, 2009

Update

Just wanted to put a quick update on the blog about current progress and issues. I am currently trying to setup a system to deal with varying data size. Obiviously if I am going to use this data for any sort of processing it has to be parsed correctly, I need to have a section of data that is cleanly accepted and verified. Right now I have it basically just reading everything in the buffer and printing it on the screen.. that works because I can easily distingush that "44" *pause* "512" *pause* "423 means that it was 44, 512, 423. However, when I remove the built-in pauses I am getting an output similiar to this:

44512354235212361263271581246123. Which is, of course, useless. So now I am faced with a larger series of questions that need answering.

1. What data format is the Arduino sending out when I use the Serial.write(X); command.

2. What data format is the Python program assuming the data coming in is?

3. Assuming the data types are both ASCII, then doesn't that limit the size of the data to 1 byte? Or 255 in decimal form?


I spent yesterday fiddiling with it, setting the arduino to write decimal numbers, or bytes, and was not getting the expected results. I suppose I need to buckle down and just start working out a data packet system.

So, that is where I am right now. No code updates or examples.. just a bit of theory discussion.

No comments: