tom@origtech.com
09-19-2008, 10:02 AM
When using the “character mode” on the input for UART 1 (ie API stdinMode(1, False)) when does the RF engine pass the received characters to the SNAPpy script?
I assumed that the configuration parameters: Buffering Timeout and Inter-character Timeout could be used to make sure that the engine waited till all of my characters were received and then pass on the complete string to my hook function.
Currently I have Buffering Timeout set to 5 and Inter-character Timeout set to 2. I am sending a character sting of 5 to 40 characters at 9600 baud to UART 1. Looking on a scope there are no pauses in the transmitted character string to the RF engine. Still I occasionally get the 5 to 40 character stings broken into two (never three) calls to the hook function. Is there any way to insure that I can have the compete message (all 5 – 40 characters) received in one hook function call. My data structure does not enable me to use character mode as the data being sent is binary.
I assumed that the configuration parameters: Buffering Timeout and Inter-character Timeout could be used to make sure that the engine waited till all of my characters were received and then pass on the complete string to my hook function.
Currently I have Buffering Timeout set to 5 and Inter-character Timeout set to 2. I am sending a character sting of 5 to 40 characters at 9600 baud to UART 1. Looking on a scope there are no pauses in the transmitted character string to the RF engine. Still I occasionally get the 5 to 40 character stings broken into two (never three) calls to the hook function. Is there any way to insure that I can have the compete message (all 5 – 40 characters) received in one hook function call. My data structure does not enable me to use character mode as the data being sent is binary.