Ok I have a small amount of progress...


I have managed to receive a single char!

I did this by connecting the pic to the max232 to the 232/usb dongle and using a comms app....

I got the pic to wait for the char and output its binary value on portb, sure enough, 65 for an A

Problem.....

if i send 'A' then it works, if I send AA or AAA it works, but if I send AAAA ith receives the A and display 65, then goes deaf on me and recieves nothing after that.

buffer overflow and then stalled?

program still running, but it goes deaf as a post, 4 chars and deafness.

It even seems to receive from the 3v gsm unit but says char received is 0, when it should be 'N', and then it goes deaf, no doubt as 'no carrier' is more than 4 chars as above.

surely theres a simple way to resolve this ?

I have set the buffer flag to clear over runs etc, and I read I have a 2 byte buffer, so do 2 hserins before i start the loop each time to clear it, I thought that would be enough....

if i can stop it choking, then i can just leave it running in a loop echoing back allowing me to investigate the probably 3v/5 issue, although using the max232 i dont have that issue at the moment