- Joined
- Jul 4, 2009
- Messages
- 16,474
- Helped
- 5,156
- Reputation
- 10,345
- Reaction score
- 5,202
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 139,397
It seems you are only seeing the final character at the end of each message. That implies you are not incrementing 'j' each time a character arrives OR you are not resetting 'J' to zero at the end of each message. Quoting myself from post #14:
It will work, I have similar PIC devices here that receive similar strings to your GSM messages several times a second and have been doing so 24/7 for many years.
Brian.
Consider what happens when a message has been received, you need to do something with it and also reset 'j' back to zero or it will hit maximum value and stop storing anything else.I suggest you modify the code inside the while() loop so it looks for the terminator at the end of the message.
It will work, I have similar PIC devices here that receive similar strings to your GSM messages several times a second and have been doing so 24/7 for many years.
Brian.