![]() |
Forum Index : Microcontroller and PC projects : Slight glitch MiniCom - MousePad - MiniCom ( PicoMite (Raspberry Pi))
Author | Message | ||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
I can copy a session of MMBasic/minicom and then paste to MousePad Works fine .... BUT .... If I copy from MousePad and then try to paste to MMBasic/minicom I loose and confuse the left side ( see pic ): ![]() .............????????????? ![]() my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
you are trying to paste into MMbasic's onboard editor, yes? to do this successfully you need to be using a terminal emulator that is 'MMbasic aware'. minicom is not such a terminal emulator. cheers, rob :-) |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Is there an 'aware' emulator for Raspberry Pi ? my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
yes, GFXterm: http://www.thebackshed.com/docregister/ViewDoc.asp?DocID=22 for the RPi, you'll need to download the source, install Lazarus 2.0.12 (not tried with 2.2.0 yet), then compile it. others have done this successfully with earlier releases of GFXterm. if you post the compiled version here, i'll add it to the doc register. cheers, rob :-) |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Then this is a little misleading ? From Manual : " Programming and control is done via the USB interface. All that is needed is a laptop/desktop computer running a VT100 terminal emulator. Once the program has been written and debugged the PicoMite can be instructed to automatically run the program on power up with no user intervention. " Edited 2022-02-19 11:21 by hitsware2 my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
provided you don't want to paste from the host (Windows/Linux/RPi) into MMbasic's internal editor, then everything is ok. the 'problem' as such, is just that MMbasic's internal editor can not cope with input arriving at anything faster than human typing speed. this is a problem that exists for all small systems connected via a terminal/serial/USB-CDC interface. micromites (and other small systems) just don't have enough free RAM to be able to buffer any significant quantity of input arriving faster than they can process it. the solution is to make use of flow control (either hardware, or x-on/x-off in software), but adding this adds even more complexity to said small system and places more strain on already limited resources. all for a feature (pasting from the host) that is not excessively important to many users. cheers, rob :-) |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Thank You ... ![]() I'll try some of the MiniCom settings. It would take me 3 years to figure out how to 'compile' etc. FWIW my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
oops, i may have misled you there... when i said, "the solution is to make use of flow control", i meant the solution when creating MMbasic. ie, if Geoff had built in flow control when writing the editor. he did not, however, build it in. so your changing settings in MiniCom, etc will make no difference. to be clear: MMbasic's internal editor does NOT make use of or support any sort of flow control. IF someone added flow control to the MMbasic firmware, then this would allow pasting into the editor from any terminal emulator. but no one has done this. adding flow control into MMbasic, at this time, would be a very major project. cheers, rob :-) Edited 2022-02-19 14:30 by robert.rozee |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
So .... The MMB editor comunicates with the PC via the terminal program .... Right ? So shouldn't slowing the terminal, in effect, control the editor ????? ![]() my site |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
If you are using the Pico's USB to connect to the PC, the speed will be full USB speed no matter what baud rate you set on the PC. If you are using an external USB-TTL adapter, you can give it a try. The terminal program really needs a delay at the end on each line. TeraTerm has that ability. Jim VK7JH MMedit |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
yes, it does, and a slower baud rate in theory fixes some of the problem. but you need to use a baud rate so slow that the editor become unusable. i believe that, to some extent, TeraTerm can be persuaded to operate by adding delays between characters sent, and even longer delays at the end of lines. GFXterm monitors how the micromite responds during pasting, and if it sees escape sequences coming back - generated by the editor - it (1) slows down the rate at which characters are sent and (2) does a sort of hand-shaking at each carriage return. there was quite bit of 'tuning' involved to make it work reliably. cheers, rob :-) Edited 2022-02-19 15:02 by robert.rozee |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
try the version here: https://www.thebackshed.com/forum/ViewTopic.php?TID=14161&PID=175954#175954#175961 "GFXterm(2021-10-08) for Raspberry Pi Buster 32bit OS", scroll to LAST message in thread. not quite the latest, but should be fully functional. cheers, rob :-) Edited 2022-02-19 15:10 by robert.rozee |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Thank You Again, ..... The link gives me a terminal screen, but I don't know where to go from there. Minicom still does best for me. If I set character delay to 5mS, it works fine, but I can't figure out how to make that setting permanent. my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
hmmm, i do need to have it display some something more intuitive, like instructions, on startup! right-click within the terminal window to bring up the menu. this is the main command interface. select 'CONNECT' from the menu, and go from there. you can, alternatively, press ctrl-space to resume the last successful connection. cheers, rob :-) ![]() Edited 2022-02-20 21:00 by robert.rozee |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
I don't know how I missed that ..... NICE ![]() ... When I paste, it appears slow ... Same effect as character delay to 5 mS .. ![]() Edited 2022-02-21 04:03 by hitsware2 my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
as it should be ![]() if you type AUTOSAVE at the command prompt and then paste in a long file, you'll see that after half a second the rate increases considerably. if you paste the same file into the editor, the rate will remain slow as the editor can only accept input at that slow rate. btw: when pasting into the editor, keep a space character to the right of the cursor location to disable auto-indenting. ie, press space, then left arrow before beginning the paste. cheers, rob :-) |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
BUT ![]() When I load options it drops the connection....??? MiniCom gives a short message, but then reconnects .... ![]() my site |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
that is because the pico drops the USB connection when certain option settings are changed. MMbasic on the pico then restarts itself from scratch and establishes a new USB link, often (but not always) under the same /dev/tty name as previously. you can try reconnecting (using the same /dev/tty name) by (1) hitting ENTER to close the error window and then (2) pressing ctrl-space. this may well work provided it was a 'clean' USB unplug event. on some systems the pico does not cleanly drop the USB connection, which results in either a new /dev/tty/ name being assigned, or linux's USB subsystem crashing. if the usb subsystem crashes, the attached shell script should fix it: fixUSB.zip cheers, rob :-) |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
For some reason .... With MiniCom .... No matter what the option is .... When I hit enter ( the option ) There is a quick flash of the same message I get if I ( from the terminal ) type in minicom , enter ..... But have no connection ( USB unplugged or switch off ) But it lasts only few moments then reconnects ????? Nice feature actually ........ my site |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
A nit: Slightly Mint-specific. John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |