![]() |
Forum Index : Microcontroller and PC projects : Would SomeBody Try ........
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
O.K........ After re-connect : option list only gives version ( not US keyboard ( as before ) ) No keyboard disabled ... AND Editor still the same ... my site |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
That makes sense if you hadn't got a PS/2 keyboard connected. Now it's disabled the IO pins and you won't get stray signals on them. Check with MM.INFO$(PINNO GPn) for 8 and 9 and they should both be "UNUSED". *Can* you check the PicoMite with Win 10 and Tera Term? I know you want to use it with a Pi, but we have to rule something out. At the moment we have too many variables. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2642 |
If you have some special reason not to try Win 10 and Tera Term then load a different OS on one of the RPi's to see if that makes a difference. Two Pico's and RPi's doing the same thing excludes a hardware problem. Many people are using the VGA firmware connected a wide variety of computers so it is unlikely to be that. As previously noted the only common factor is the OS so change it. |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Works good with my Wife's Win10 / Tera Term ..... my site |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Connected to the Pi4 you have the Pico (via USB) and what is connected as your Pi terminal/console? What's displaying the bad stuff you see & how is it connected? John |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
Ok, so the PicoMite is fine, it's working as expected. Make sure that the terminal emulation settings on the Pi are set the same as they are in Tera Term. In particular check that you send CR on transmit and use CR to indicate end of line on receive. Check terminal size (rows, columns) and start & stop bits too while you're at it. You need to get the connection as close to Tera Term as you can. It probably doesn't matter which terminal emulator you use. They will all use the same device, but you may get different facilities. Do you have to do something special on the Pi to route serial via a virtual serial port over USB? Linux is designed to use "real" serial devices. It's been ages since I used a Pi - and I've never used USB serial or had a Pi4. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
Worked with serial terminals for decades. Tried the lot on linux. Minicom, gtkcom, ktcom, screen... and settled on putty. There is 1 shortcomming in putty: you cannot set a end of line delay, or character delay. A shortcomming of linux is it closes the USB port when the peripheral restarts. With a MM2 that is rare, there is a dedicated USB setial convertor. But the RP2040 restarts USB when it restarts MMBasic. This happens when OPTIONs are set. Volhout PicomiteVGA PETSCII ROBOTS |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
All good ideas - though I've not needed to do any of those on a (PC-based) Linux. The reason I asked what he's using on his Pi4 is that I have various Pis but none connected to a display device (or connected at all) right now so as-is I can't reproduce what he's doing. Yes. Not really right: at the program level it hardly ever knows whether a device is real or not & rarely cares. So, you just tell a terminal emulator a file name (which is typically a device file name) and it does its stuff. It really doesn't care what you gave it so long as that thing (device or file - same thing in Linux) follows the usual API behaviours. In this case, because MMBasic on a Pico via USB enumerates (identifies itself) as an ACM you would normally have Linux (usually Linux default behaviour) create a file along the lines of ttyACMx (x being 0 or 1 or ...) and in the /dev folder. So, you'd use a command like screen /dev/ttyACM0 It actually doesn't matter how it's connected (USB or whatever, but here it will be via USB). It's the same on my laptop. (There are things knows as rules, kicked into action by the USB device enumeration, which make this "just happen". Clearly these are working.) John Edited 2023-03-08 19:48 by JohnS |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
O.K. Tera Term w / Win10 sets terminal size 81 x 40 ( font size 9 ) What happened to 80 x 24 ? Works on RPi ![]() ![]() Why would the VGA version work different than the other version as far as the editor ( on the PC screen ) ? Is maybe the editor screen geared for the VGA display ( or some such ) ? my site |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
VGA on the picomite does not support true type fonts that can be scaled to your liking. The editor is designed to work optimal with font 1 (12x8 pixels) representing a 80x40 character screen on the 640x480 VGA resolution. The editor will also work with mode 2 (320x240). PicomiteVGA PETSCII ROBOTS |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7938 |
You should be able to set Tera Term's terminal window (in Win 10) to 80x24, I think. That's the PicoMite default for the console. You can also change the font used. I listed my settings on the first page of this thread. PicoMite VGA doesn't have OPTION DISPLAY. You can only use its default so you have to get your terminal to suit it. (I just looked in the VGA 5.07.04 manual). It will default to font 1 (8x12). Edited 2023-03-09 06:54 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2642 |
If you are not using the VGA screen for the editor, just the USB then the window size can be made adjustable. Otherwise it is locked to the Mode setting. Manual p53 OPTION LCDPANEL NOCONSOLE then OPTION DISPLAY lines [,chars] Set the characteristics of the display terminal used for the console. Both the LIST and EDIT commands need to know this information to correctly format the text for display. 'lines' is the number of lines on the display and 'chars' is the width of the display in characters. The default is 24 lines x 80 chars and when changed this option will be remembered even when the power is removed. Maximum values are 100 lines and 240chars. This command is only available if the display is not being used as a console by setting OPTION LCDPANEL NOCONSOLE |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Bingo ! .... The editor matches VGA rather than the specified ( console ) 80 x 24 AND .... That does't work right with SCREEN .... ( As does the non-VGA version ) Tera Type ( evedently ) sets itself to match . Do You have a RPi ? .... 4-B or 400 ? AND : > option lcdpanel noconsole > option display 24,80 Error : Invalid Option > option display 80,24 Error : Invalid Option > option display 24, 80 Error : Invalid Option > option display 24 80 Error : Invalid Option > Edited 2023-03-09 07:27 by hitsware2 my site |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
The VGA version can only support the character width and height that matches the VGA screen. Hence OPTION DISPLAY is disabled. It sends to the serial terminal commands to configure the terminal to the correct format. If you terminal program does not accept those commands you will have a problem. Teraterm and Putty on Windows both accept the commands. |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I use screen most of the time, with PicoMite VGA. It just works, including in EDIT, with coloured text. If it doesn't work for you I think you're still looking for some specific reason why. I've also used putty and it worked too. John Edited 2023-03-09 08:48 by JohnS |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
With a Raspberry Pi ? Which OS ? my site |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
As I posted before - I can't reproduce what you're doing using a Pi because I don't know what you have connected to your Pi (I did ask you), so I'm using a (Linux) PC. John Edited 2023-03-09 09:32 by JohnS |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
The VGA version can only support the character width and height that matches the VGA screen. Hence OPTION DISPLAY is disabled. It sends to the serial terminal commands to configure the terminal to the correct format. If you terminal program does not accept those commands you will have a problem. Thank You ! ...... I think that covers my situation .. > Teraterm and Putty on Windows both accept the commands How nice for Bill Gates ![]() my site |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
John RPi 400 Latest RaspBerry Pi OS ( 32 bit ) my site |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Latest RaspBerry Pi OS ( 32 bit ) Please see my original request about what you have connected to it (apart from the PicoMite). John |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |