IsMyNameTaken
Joined: 11 Jun 2009 Posts: 1
|
Posted: June 15, 2009 5:33 PM Post subject: Serial /TI link question |
|
|
I am currently trying to interface my TI-89 Titanium to an Atmel Atmega32 and have hit a brick wall. According to the data I have on the link protocol the message I am receiving from the calculator is wrong.
The program on the calculator is the following line:
send {1}
Now on the microcontroller side I get the following data stream:
89 06 08 00 03 00 00 00 04 01 FF 00 07 01
I should also note that send{a} and send{abc} works just as well provided the data fits in a single byte.
So 89 and 06 are correct for the device ID and command as are 0008 for the packet length. I think 00 00 00 03 is good for the variable size (as 1 can be stored in a byte and the size is the data size +2). The data type 04 is a list which seems right and the check sum of 0170 works out for the data. This leaves the Name size and Name data.
The name size is specified as 01 but the following data (FF 00) is two bytes.
Am I just reading this wrong or is my understanding of the TI-89 link protocol wrong? |
|