We need all your code. Are you using Serial or Software Serial for your reading?
You should be able to just create your own buffer, read characters until you see a '$' and then read from the device into your buffer. No need to have the serial port buffer everything.