BlueSmirf Silver, RN42 Issues

Hi,

I have recently bought my BlueSmirf Silver bluetooth module. It all works great apart from its responses do not contain a NULL terminator. This is a big issue for me as it means I am struggling to read data correctly as I cannot rely on the timeout of the arduino libraries.

I am asking for anyones help in fixing this issue. The bluesmirf will reply something like "CMD\r\n" when it should be replying "CMD\r\n\0". Please can someone help me get around this problem, have any of you had to parse strings that contain no NULL terminators?

Thanks,
Dan

It all works great apart from its responses do not contain a NULL terminator.

Messages never do contain NULL terminators. The NULL terminator tells the sender that the end of the message is here, so stop sending.

The bluesmirf will reply something like "CMD\r\n" when it should be replying "CMD\r\n\0".

No, it shouldn't. Why is using \n as the end of message so difficult?

Please can someone help me get around this problem

The problem is in your perceptions. Only you can deal with the problem.

have any of you had to parse strings that contain no NULL terminators?

All the time.

Ok great maybe you can help me out then, because you can identify weather or not a NULL terminator is being sent by just having a look and calling the "read()" method of a "Stream". I can assure you that no NULL terminator is being sent by the bluetooth device, the only way it is terminating its self is by sending a carriage return then a new line. So how can I parse this using the "readString" function inside the arduino?. Also because it sends no NULL terminator the timeout will not work correctly...