I have a problem with receiving a serial line using Br@dys terminal program.
I have had it working before, but if I send a command from the macro it works fine, but if I type the same command into the send line, it adds extra data, and the display unit that it feeds does not display.
I have attached a screenshot, the top trace is when I send #2 from the second macro, and the bottom trace is when I type it in and send.
My actual command line is #002#032123456#003 which is supposed to be start of message, space, data , and end of message.
If I send that from the macro, everything works, and it tells me that I sent |123456| ( where the pipes there are actually a thick vertical line )
If I send it from the typed line it says I sent #002#032123456#003 and the display doesnt respond ( the data sent is also twice as long as the working one )
In macros you can use all characters from keyboard and any ASCII char if you use $xx or #xxx. Where $xx is hex and #xxx dec format of ascii code. If you want to use # or $ char in macro you should type it twice ($$=$ and ##=#).
When your sending #2 as a macro your sending just a single ascii character 2 but when you type #2 to send your actually sending ascii characters 35 & 50. You may also be sending CR & LF characters as well (ascii 13 & 10)