![]() |
Forum Index : Microcontroller and PC projects : CMM2: terminal software other than Tera Term?
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi folks, Yes, it's me again, I seem to be hitting all the teething troubles. With help from the WhiteWizard I've managed to configure Tera Term on Win10 to connect to the CMM2 ... though I do have to power cycle it "after connection" before it will respond and even then I don't see the MMBasic banner, just the > prompt. However I don't have a Win10 box in my "cave" and have been connecting to my original CMM using PuTTY running on a Raspberry Pi 3 ... I can't get that to work with the CMM2. Do any of the creators or other early adopters have experience using a terminal client other than Tera Term? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Putty works fine under W10 Check baudrate - must be 115200 ![]() Edited 2020-05-15 07:50 by matherp |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
![]() I don't have a PRi with monitor attached but I can use Putty on Linux OK The CMM2 should appear as ttyACM0 not ttyUSB0 etc. During enumeration, Linux might complain about "failed to set dtr/rts" but you can safely ignore that message. I DO run a CMM2 off a RPi using ser2net (but not with the microchip serial port), so I do know that they work well. Jim VK7JH MMedit |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
I've been bashing away for an hour or so and got PuTTY on Raspberry Pi "sort of" talking to the CMM2 though I'm not sure how. - It is still not showing the MMBasic banner. - Nor is the file browser accepting the [Enter] key, though Ctrl-J is working. Jim is there any chance you could post the .putty/sessions/ file that you are using successfully, perhaps a comparison between your and mine might tell me where I am going wrong. MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5089 |
Hi thwill, Maybe your keyboard is not set to UK? Or language settings different. Using Putty exclusively (Linux). It has but 1 drawback: there is not end of line delay programmable. Make sure you set the right key for backspace (ctrl-H) Volhout PicomiteVGA PETSCII ROBOTS |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
thwill Please download the latest firmware V5.05.02RC27 from Geoff's site (construction pack). This should sort out the issue with putty and the FILE command allowing you to use ENTER |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Sorry thwill, Peter got a little confused. The latest version is not in the construction pack. It is here: http://geoffg.net/Downloads/Maximite/Colour_Maximite_2_MMBasic.zip Updates will always be at this URL. Geoff Geoff Graham - http://geoffg.net |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Thanks Peter & Geoff, I'll download and try to update the firmware this evening. Can one/both of you confirm that I should be seeing the MMBasic header and copyrights when I connect via serial (and not just going straight to the prompt) ? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
You probably won't see it as it gets lost during the computer enumerating the serial port. Press the reset button and you will get it as the Microbridge or MCP221A keeps its connection while the CMM2 processor resets Edited 2020-05-15 19:06 by matherp |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Good to know, so that's the tactile switch on the back of the Waveshare? MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
Yes - that acts as the reset button on this version of the CMM2. |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
is pin 7 of the 1455 wired up to the -RESET line, thereby allowing a break signal from the host PC to reset the H7 processor if a 1455 is fitted? from the datasheet, it looks like the MCP2221A has this pin configured as an input by default, so a direct connection (in theory) should cause no issues. cheers, rob :-) |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
OK, so I goofed off for an hour and updated the firmware (half of that was spent hunting for a USB-A -> USB-A cable, not something I see much of anymore) but this doesn't seem to resolve my Raspberry Pi / PuTTY / ENTER problem. I also built the latest 0.73 PuTTY from source which didn't help either. I'm guessing the problem is that ENTER isn't sending CRLF. Google reports this as a known PuTTY annoyance - there is even a fork of the code but that's more than a 10 minute job to build and it looks like it might be Windoze only. So how are those using PuTTY getting it to work? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
For future reference can I update the firmware via the micro USB port on the Waveshare or does it have to be via the USB-A keyboard port ? Best wishes, Tom Edited 2020-05-16 01:10 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Have you set putty to VT100+ mode? RC27 is sending ESC[20h which switches on VT100 LNM mode. I've checked it on putty on W10 and it definitely makes the difference if VT100+ mode is set. Yes you can use the microSD on the Waveshare |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
There are three ways that you can update the firmware: - Via the USB Type A keyboard connector (recommended). - Via the USB Type B connector over serial (slow but works). - Via the micro USB connector on the Waveshare board. The last is not recommended because to get to the USB connector you have to pull the Waveshare module off the motherboard and doing that too often will damage its pins. The first two are documented in the manual. Geoff Geoff Graham - http://geoffg.net |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
setting LNM mode does create a backwards compatibility issue with any basic programs that expect the enter key to just produce a CR. it also causes LF to no longer move down one line without changing the column that the cursor is in, causing a problem with the output from some basic programs. the behaviour of VT may also change, depending upon on the terminal implementation. on the whole, you may find a safer approach is to change the way the CMM2 handles receipt of the various combinations of CR/LF. the micromite will accept a line terminated with either CR or LF. if a LF is seen IMMEDIATELY after a CR, the LF is ignored. this then covers all combinations of what a terminal emulator may produce. cheers, rob :-) Edited 2020-05-16 03:14 by robert.rozee |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
You mean [Terminal -> Keyboard -> The Function keys and keypad -> VT100+] ? In this mode: - ENTER works on Windows - ENTER does not work on Linux - The function keys do not work on either. In the default mode ESC[n~: - ENTER works on Windows - ENTER does not work on Linux. - The function keys work on both. Note that I didn't test PuTTY on Windows with the earlier RC25(?) firmware so I cannot confirm if RC27 has made any difference. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Note that changing the behaviour of the function keys and keypad is the only thing this option is documented to do so I suspect it is a red herring with regards the behaviour of the ENTER key. My guess is that it works on Windows because the (nothing to do with PuTTY or serial comms) default line-ending on Windows is CRLF whereas on Linux it is just the LF character. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
you should be able to check the codes being sent by putty using the following program running on your CMM2: Do I=Timer Do a$=Inkey$ Loop Until a$<>"" If Timer-I>100 Then Print If a$=Chr$(13) Then Print "<cr>"; ElseIf a$=Chr$(10) Then Print "<lf>"; ElseIf a$=Chr$(27) Then Print "<esc>"; ElseIf a$<Chr$(32) Then Print "<";Hex$(Asc(a$),2);">"; Else Print a$; EndIf Loop control characters are printed out within <> pairs around them. the function keys should produce output something like <esc>[nn~, the arrow keys should produce <esc>[A to <esc>[D. home/end/pgup/pgdn/insert should produce <esc>[n~. tinker with the settings of putty until you can get this. it should be possible to do this without any intervention from the CMM2. i don't use putty myself. cheers, rob :-) Edited 2020-05-16 04:22 by robert.rozee |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |