rs232 buffer "Where's the beef"?
micoder
Posts: 36
I am programming in Axcess. I am receiving data into a buffer sized to 100. I receive a transmission that is 28 bytes long. At least when I look at the debugging window it says length is 28.
However, all I can see is three bytes. I must be doing something wrong. I just want to see all 28 characters, but the debugging window just won't show anything but three??? I made a command that Y = LENGTH_STRING of this buffer. Y shows that it equals 28.
I am at a loss.
However, all I can see is three bytes. I must be doing something wrong. I just want to see all 28 characters, but the debugging window just won't show anything but three??? I made a command that Y = LENGTH_STRING of this buffer. Y shows that it equals 28.
I am at a loss.
0
Comments
Try switching the view to Hex in the debugger window.
I don't know what I am expecting but there are only 3 bytes in all views. I will need to interpret them once I see them.
Michael
Yup, all terminal and debug outputs will stop displaying on a null. Whatever library they are using for that implements null terminated strings, apparently. I pass all my debug feedback through a routine that converts all non-printable ASCII to a meta format, so that a null comes out as ASCII '<0>'.
This, of course, precludes using any of the built-in tools. You have to do your own debugging at this point (I just use SEND_STRING 0 and open a terminal window).
I tried using open axcess and could not find any way to look at the buffer??