• Terminal Emulator For Talking to Embedded Targets

    From Lorem Ipsum@21:1/5 to All on Sun Dec 4 15:02:24 2022
    I wish to talk to a target board running Forth, through a serial port. The terminal program I have on my PC is Putty. I've used many over the years, but it seems they have winnowed down in number. It's been a while since I've used one, but Putty would
    seem to be the one I last used.

    The problems I'm having are two. I would like to be able to control how the text is displayed better. Different colors for the two directions would be nice. Also, seeing control characters would be useful. I can't find how to do either of those.

    Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.

    Should I look for another terminal emulator program? Or can anyone help me make this one more useful?

    --

    Rick C.

    - Get 1,000 miles of free Supercharging
    - Tesla referral code - https://ts.la/richard11209

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From SpainHackForth@21:1/5 to All on Sun Dec 4 15:08:05 2022
    Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.

    Should I look for another terminal emulator program? Or can anyone help me make this one more useful?

    Yes, trash PuTTy and get yourself TeraTerm, a lot more to offer.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorem Ipsum@21:1/5 to SpainHackForth on Sun Dec 4 15:51:02 2022
    On Sunday, December 4, 2022 at 6:08:07 PM UTC-5, SpainHackForth wrote:
    Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.

    Should I look for another terminal emulator program? Or can anyone help me make this one more useful?
    Yes, trash PuTTy and get yourself TeraTerm, a lot more to offer.

    Thanks. I had just found that one and was giving it a spin. It seems to do some of the things I need, like shooting a file over the serial port, but no display of control characters and no way to set colors for transmit and receive.

    I haven't dug into the support resources yet.

    --

    Rick C.

    + Get 1,000 miles of free Supercharging
    + Tesla referral code - https://ts.la/richard11209

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pablo PabloC@21:1/5 to All on Mon Dec 5 03:43:15 2022
    I have programmed TermFF for that purpose.
    Specifically for Forth embedded systems.

    https://sourceforge.net/projects/termff/


    I wish to talk to a target board running Forth, through a serial port. The terminal program I have on my PC is Putty. I've used many over the years, but it seems they have winnowed down in number. It's been a while since I've used one, but Putty would
    seem to be the one I last used.

    The problems I'm having are two. I would like to be able to control how the text is displayed better. Different colors for the two directions would be nice. Also, seeing control characters would be useful. I can't find how to do either of those.

    Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.

    Should I look for another terminal emulator program? Or can anyone help me make this one more useful?

    --

    Rick C.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From none) (albert@21:1/5 to gnuarm.deletethisbit@gmail.com on Mon Dec 5 12:18:40 2022
    In article <e08ae203-9355-4d91-87fb-4d012d402426n@googlegroups.com>,
    Lorem Ipsum <gnuarm.deletethisbit@gmail.com> wrote:
    I wish to talk to a target board running Forth, through a serial port.
    The terminal program I have on my PC is Putty. I've used many over the >years, but it seems they have winnowed down in number. It's been a
    while since I've used one, but Putty would seem to be the one I last
    used.

    The problems I'm having are two. I would like to be able to control how
    the text is displayed better. Different colors for the two directions
    would be nice. Also, seeing control characters would be useful. I
    can't find how to do either of those.

    Then to compile a Forth program will require sending the file through
    the serial port. I know many terminal programs provide a way to do
    this. I can't find it in Putty.

    Should I look for another terminal emulator program? Or can anyone help
    me make this one more useful?

    On linux picocom is recommended for mecrisp. Works good.

    Rick C.

    Groetjes Albert
    --
    "in our communism country Viet Nam, people are forced to be
    alive and in the western country like US, people are free to
    die from Covid 19 lol" duc ha
    albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorem Ipsum@21:1/5 to pbl...@gmail.com on Mon Dec 5 11:17:19 2022
    On Monday, December 5, 2022 at 6:43:18 AM UTC-5, pbl...@gmail.com wrote:
    I have programmed TermFF for that purpose.
    Specifically for Forth embedded systems.

    https://sourceforge.net/projects/termff/

    Hi Pablo,

    This looks interesting. Will it do the things I've asked about? Obviously it will download a file to be compiled on the target. Will it show the text in the two directions in different colors? Will it show control characters, as well as execute them?

    --

    Rick C.

    + Get 1,000 miles of free Supercharging
    + Tesla referral code - https://ts.la/richard11209


    I wish to talk to a target board running Forth, through a serial port. The terminal program I have on my PC is Putty. I've used many over the years, but it seems they have winnowed down in number. It's been a while since I've used one, but Putty
    would seem to be the one I last used.

    The problems I'm having are two. I would like to be able to control how the text is displayed better. Different colors for the two directions would be nice. Also, seeing control characters would be useful. I can't find how to do either of those.

    Then to compile a Forth program will require sending the file through the serial port. I know many terminal programs provide a way to do this. I can't find it in Putty.

    Should I look for another terminal emulator program? Or can anyone help me make this one more useful?

    --

    Rick C.

    --- SoupGate-Win32 v1.05
    *
  • From SpainHackForth@21:1/5 to pbl...@gmail.com on Mon Dec 5 13:07:53 2022
    On Monday, December 5, 2022 at 12:43:18 PM UTC+1, pbl...@gmail.com wrote:
    I have programmed TermFF for that purpose.
    Specifically for Forth embedded systems.

    https://sourceforge.net/projects/termff/
    Very nice!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pablo PabloC@21:1/5 to All on Tue Dec 6 13:03:23 2022
    Hi
    I don't want to bore you, but about the behavior of the terminal emulator, I try to clarify some issues about development with embedded Forth systems and I contribute my opinion.
    To display the sent text in a color and the received text in a different color, first it would be necessary to clarify what is the sent text and what is the received one?
    It would seem obvious that the sent is the one that comes out through TX of the serial channel, and the received one that arrives through RX.
    But I think it is not so.
    In a communication with a Forth system, normally the terminal emulator never presents what is sent.
    It is the Forth system that echoes what it receives, and adds the reply.
    For example, if we type '1 .<CR>' we send it without displaying anything to the terminal console, and then we receive '1 . 1 ok<CR>'.
    How would the system have to behave in order to output color attribute-1 in the part '1 .' and color attribute-2 the part ' ok<CR>'?
    (I want to keep it simple, regardless of whether the terminal sends each character or processes the line before.)
    There are many possible solutions, but they all involve some code or behavior alteration in the embedded Forth system.
    If the terminal emulator supports the input of VT100-type escape sequences, the simplest and most compatible is that the Forth system control and modify the attributes of the text it sends.
    I was doing tests with FlashForth from TeraTerm with a PIC18F from the K22 family, programming a Forth and asm debugger, VT100 text attribute control was the best solution for me. Then with TermFF.
    Some videos can be seen at https://www.youtube.com/@termff450 and in the final part of 'TermFF showing' how the control of text attributes is handled running a 'debug' in a FlashForth system.
    And the predecessor of this debugger with TeraTerm at https://www.youtube.com/watch?v=3L-cOGtUGzg
    Some time later I opted to have my own terminal emulator (TermFF) and a Forth with more features, for the Q4x family.
    In TermFF I tried several alternatives, and the best option for me was the control of VT100 text attributes from the remote Forth system.
    TermFF controls and allows changing different text colors for local mode (in the PC itself) and remote mode (the serial channel). (I am unable to attach a screenshot showing this.)
    In the case of managing a buffer of console lines (as TermFF does) the presentation of characters is more complex, since characters are presented as they are typed and when pressing <CR> they are deleted from the screen, to later present the ones that we
    arrives from the remote Forth system.
    On the other hand, when files are sent from the terminal, if the Forth system echoes what it receives, the screen fills up and the console buffer is overrun, without contributing anything. And if there is an error in the compilation and we keep sending
    the file, everything is full of lines of errors and we have difficulty in looking in the console where the error occurs.
    I have chosen to include in the Forth system the option of working without echo. Support in this mode is the ability to count lines and return to echo mode on error. And use some control character to notify the terminal of the status, so it stops sending
    lines of the file.
    This all involves some code on the Forth system side, but will work on any terminal emulator that supports VT100 (except notifying of an error to stop the download of the file).
    In summary, I would encourage you to program a few small modifications to the embedded Forth system, to make compilation more comfortable and have better text visibility.
    Regarding the control characters, I see even more questions to clarify.
    Is it about 'seeing' the recieved characters and executing them?
    I would not know how it should behave, for example when CTrl-C or Crtl-Q arrives, or when receiving XON or LF?
    There are terminal emulators or serial channel sniffers that can be show in Hex or/and in ascii.
    It has been useful for me to display the input flow in a separate window. Different from the ascii-VT100 terminal window itself.
    In TermFF, to be able to see the input stream, I have a Dump window of the reception, which is started with F9.
    There I present the hexadecimal value of the received bytes and in the right margin the corresponding character, if it is printable.

    Pablo

    Hi Pablo,

    This looks interesting. Will it do the things I've asked about? Obviously it will download a file to be compiled on the target. Will it show the text in the two directions in different colors? Will it show control characters, as well as execute them?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorem Ipsum@21:1/5 to pbl...@gmail.com on Tue Dec 6 18:01:05 2022
    On Tuesday, December 6, 2022 at 5:03:25 PM UTC-4, pbl...@gmail.com wrote:
    Hi
    I don't want to bore you, but about the behavior of the terminal emulator, I try to clarify some issues about development with embedded Forth systems and I contribute my opinion.
    To display the sent text in a color and the received text in a different color, first it would be necessary to clarify what is the sent text and what is the received one?

    I don't understand how this could be unclear. This program is talking to an embedded target over a serial port, or something equivalent to one. Characters are sent in two direction. When you type at the keyboard, or dump a file into the serial port,
    that would be transmit, no? The characters received from the target are the received characters, no?

    What are you thinking that would make this other than clear? I'm not understanding. Is this not what your program does?


    It would seem obvious that the sent is the one that comes out through TX of the serial channel, and the received one that arrives through RX.
    But I think it is not so.
    In a communication with a Forth system, normally the terminal emulator never presents what is sent.
    It is the Forth system that echoes what it receives, and adds the reply.
    For example, if we type '1 .<CR>' we send it without displaying anything to the terminal console, and then we receive '1 . 1 ok<CR>'.
    How would the system have to behave in order to output color attribute-1 in the part '1 .' and color attribute-2 the part ' ok<CR>'?

    I see what you are saying. In the general case, terminal emulators have the ability to locally echo the transmitted characters. Your tools is very specific to use as a Forth console. In my case, I am running a app which might not echo the typed
    characters, or in some cases I talk directly to the hardware, which also does not echo the typed characters.


    (I want to keep it simple, regardless of whether the terminal sends each character or processes the line before.)
    There are many possible solutions, but they all involve some code or behavior alteration in the embedded Forth system.

    When running the app, I'm pretty sure characters typed to the program are not echoed.


    If the terminal emulator supports the input of VT100-type escape sequences, the simplest and most compatible is that the Forth system control and modify the attributes of the text it sends.

    This is limiting the terminal to applications where the other end does the echoing.


    I was doing tests with FlashForth from TeraTerm with a PIC18F from the K22 family, programming a Forth and asm debugger, VT100 text attribute control was the best solution for me. Then with TermFF.

    I need to refresh my memory, but I think TeraTerm does everything else that I need, other than color coding the Xmt and Rx characters. For me, thee VT100 controls would not be useful, since there is no real intelligence at the other end.


    Some videos can be seen at https://www.youtube.com/@termff450 and in the final part of 'TermFF showing' how the control of text attributes is handled running a 'debug' in a FlashForth system.
    And the predecessor of this debugger with TeraTerm at https://www.youtube.com/watch?v=3L-cOGtUGzg
    Some time later I opted to have my own terminal emulator (TermFF) and a Forth with more features, for the Q4x family.
    In TermFF I tried several alternatives, and the best option for me was the control of VT100 text attributes from the remote Forth system.
    TermFF controls and allows changing different text colors for local mode (in the PC itself) and remote mode (the serial channel). (I am unable to attach a screenshot showing this.)

    I think I've seen this.


    In the case of managing a buffer of console lines (as TermFF does) the presentation of characters is more complex, since characters are presented as they are typed and when pressing <CR> they are deleted from the screen, to later present the ones that
    we arrives from the remote Forth system.
    On the other hand, when files are sent from the terminal, if the Forth system echoes what it receives, the screen fills up and the console buffer is overrun, without contributing anything. And if there is an error in the compilation and we keep sending
    the file, everything is full of lines of errors and we have difficulty in looking in the console where the error occurs.
    I have chosen to include in the Forth system the option of working without echo. Support in this mode is the ability to count lines and return to echo mode on error. And use some control character to notify the terminal of the status, so it stops
    sending lines of the file.
    This all involves some code on the Forth system side, but will work on any terminal emulator that supports VT100 (except notifying of an error to stop the download of the file).
    In summary, I would encourage you to program a few small modifications to the embedded Forth system, to make compilation more comfortable and have better text visibility.
    Regarding the control characters, I see even more questions to clarify.
    Is it about 'seeing' the recieved characters and executing them?
    I would not know how it should behave, for example when CTrl-C or Crtl-Q arrives, or when receiving XON or LF?
    There are terminal emulators or serial channel sniffers that can be show in Hex or/and in ascii.
    It has been useful for me to display the input flow in a separate window. Different from the ascii-VT100 terminal window itself.
    In TermFF, to be able to see the input stream, I have a Dump window of the reception, which is started with F9.
    There I present the hexadecimal value of the received bytes and in the right margin the corresponding character, if it is printable.

    Pablo
    Hi Pablo,

    This looks interesting. Will it do the things I've asked about? Obviously it will download a file to be compiled on the target. Will it show the text in the two directions in different colors? Will it show control characters, as well as execute them?

    I don't think TermFF is what I need, but thank you for discussing it.

    --

    Rick C.

    -- Get 1,000 miles of free Supercharging
    -- Tesla referral code - https://ts.la/richard11209

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorem Ipsum@21:1/5 to All on Fri Dec 9 00:58:32 2022
    I've had trouble finding a good terminal emulator under Windows, but it seems Hterm checks off all the items on my list. It shows the main six control codes, NUL, Bell, HT, FF, LF, CR and underlines Tx and Rx data with different colors, as well as
    letting me dump a text file to the serial port as if it were typed.

    The only thing I'd like to see some improvement in, is adjusting the fonts in the data display. It lets you adjust the font size, but it would be nice to change the font and/or set bold at least.

    --

    Rick C.

    -+ Get 1,000 miles of free Supercharging
    -+ Tesla referral code - https://ts.la/richard11209

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)