Very likely the problem is the time taken to dtmfout between the two serin command. If the for/next loop takes just longer than allowed you miss tx bytes and your system is out of syncronism. (Remember you have a wait comand)
Remove
And dtmfout after the second serin command, to be sure to avoid loosing tx bytesCode:dtmfout porta.3 ,100 ,100,[ 10 , 0 , 10 ] for x = 0 to 20 pause 10 if gdata[x] = "." then gdata[x] = 12 endif dtmfout porta.3 ,100,100,[ gdata[x] ] next x
Al.




Bookmarks