Saturday, November 29, 2008

It Works!

So the API isn't supported but still seems to work.  Found some interesting behavior that only about 8 bytes of data default are read from the buffer on each callback even if you are streaming a bunch of bytes on the serial port.  Seems that this can be fixed by setting the defaults or if you don't care about where it ends, just doing continual reads.

As for the Atmel program, Hyperterminal to the rescue! I now have a program that just copys back whatever is sent over the serial line.  I just modified the example uart program from winavr that writes to the LCD and to the uart (I don't have an LCD hooked up at the moment).  Java app seems to send data fine to the serial port and read it back, even if it is chopped up in 8 byte segments.

Going to work on sending a square wave and triangle wave and just streaming them from the Atmega 16 (based off of a button press? or maybe a command from the java program over the serial port) and graphing the streamed data from the MCU.  Not sure what type of data we will need to stream yet, but will probably write some utils to put 16 and 32 bit values on the line in addition to the 8 bits I am currently streaming.

No comments: