My tries to send an Y-Variable / string / program (which are Y-Variables according to http://merthsoft.com/linkguide/ti83+/vars.html ) crash my calc (ti-82 stats aka. TI-83 "minus" ) everytime, which sometimes looks awesome but isn´t what i want ;)
How about an small example that sends and receives those (Y-) Variables?
Here is my code to make the header and data which gets sent to the calc (doesn´t work (un)fortunatly)
int onSendAsCBL2(uint8_t type, enum Endpoint model, int* headerlen,
int* datalen, data_callback* data_callback) {
[...]
*datalen = 2 + 1; //2 length, one token
TIVar::intToSizeWord(*datalen, &header[0]);
//header[0] = 0x00; //length 0
//header[1] = 0x00; //length 0
header[2] = 0x0c; //0x04; //package id (string = 0x04) (which one should be used?)
header[3] = 0x9A; //string token A
header[4] = 0x9A; //string token A
header[5] = 0x8E; //string token 0
header[6] = 0x97; //string token 9
header[7] = 0x8E; //padding 0
header[8] = 0x8E; //padding 0
header[9] = 0x8E; //padding 0
header[10] = 0x8E; //padding 0
//header[11] = 0x00; //ver null
//header[12] = 0x00; //checksum null
*headerlen = 11;
data[0] = 0x03; //length
data[1] = 0x00; //length
data[2] = 0xAF; //token "V"
//*datalen = 3;
[...] ```
My tries to send an Y-Variable / string / program (which are Y-Variables according to http://merthsoft.com/linkguide/ti83+/vars.html ) crash my calc (ti-82 stats aka. TI-83 "minus" ) everytime, which sometimes looks awesome but isn´t what i want ;)
How about an small example that sends and receives those (Y-) Variables?
Here is my code to make the header and data which gets sent to the calc (doesn´t work (un)fortunatly)