Hello all.
I'm trying to push some data (3 values per record) from a file on the PC to the 40X2. I noticed that the data received on the picaxe was not what I was sending. I am using a simple (liberty basic) app and the text file containing the lines with the data. I wrote a small program to receive 3 word variables (serrxd) and then send back (sertxd) those values. Using a logic probe I was able to watch both serial directions and also the data.
This is the code I am using to test the data transfer:
This is how I send every data line to the picaxe: '1st value' + 'space' + '2nd value' + 'space' + '3rd value' + 'space'
I was expecting to see a response from the picaxe for every data line sent (3 values), but this is how it looks on my logic probe:
It seems I'm getting a response every 3 data lines, which of course messes up the data.
Data is sent at 9600 with 500ms delay between data lines.
Any ideas or tips for troubleshooting?
I'm trying to push some data (3 values per record) from a file on the PC to the 40X2. I noticed that the data received on the picaxe was not what I was sending. I am using a simple (liberty basic) app and the text file containing the lines with the data. I wrote a small program to receive 3 word variables (serrxd) and then send back (sertxd) those values. Using a logic probe I was able to watch both serial directions and also the data.
This is the code I am using to test the data transfer:
Code:
for b0 = 1 to 20
serrxd #w10, #w11, #w12
sertxd (#w10, ",", #w11, ",", #w12, 10, 13)
next b0
I was expecting to see a response from the picaxe for every data line sent (3 values), but this is how it looks on my logic probe:
It seems I'm getting a response every 3 data lines, which of course messes up the data.
Data is sent at 9600 with 500ms delay between data lines.
Any ideas or tips for troubleshooting?