Page 1 of 1

send/receive string macro and 0xFF, 0x00

Posted: Tue Nov 27, 2012 9:32 pm
by Mathy
Hello !

I am using the send/receive string macro to import and export unknown strings from a computer but if I receive the byte 0xFF, the send string macro ignore it even if the byte is the second or the last one.
Do you know why and if there are other byte like 0xFF that are ignored ?

I would like to supress this byte manipulation, what i have to chance in the c code ?

Thank you for your help :)

Re: send/receive string macro and 0xFF, 0x00

Posted: Tue Nov 27, 2012 10:01 pm
by Mathy
My bad, I found in the component properties. I have to fill the extended data instead of legacy data.
So the problem is solved for the 0xFF byte but I found that I can't receive and send strinf with a 0x00 byte.
The send string macro stop as soon as there is 0x00 into the string.

How can I work around ?

Re: send/receive string macro and 0xFF, 0x00

Posted: Tue Nov 27, 2012 10:53 pm
by dbasnett
I believe strings are terminated by a byte of 0x0. I think you will need to read the data as char.