Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:34 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Two questions about accessing a CMM from a Raspberry Pi

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:59pm 02 Nov 2019
Copy link to clipboard 
Print this post

Hi folks,

I'm trying to cast off the chains of using my Windows Laptop for Maximite development and switch to my largely unused Raspberry Pi 3 - not because I have any especial loathing of Windows but because using it feels too much like my day job.

Firstly I've tried using GtkTerm, minicom and CuteCom to access the CMM and they all work after a fashion, but the first output they give me is variations upon the theme of:


lour Maximite MMBasic V4.5C
Error: Incorrect expression syntax
> CoColour Maximite MMBasic V4.5C
Copyright 2011-2018 Geoff Graham


They seem to work fine after that but I'd still like to understand what is going on and stop it if I can.

Secondly is there a good way (something FTP-ish) of remotely accessing the files on the CMM's SD card? So far (on Windows) I've been pulling the card and plugging it into the Windows box when I want to, for example, upload my project files to github. I've looked at XMODEM but that seems very primitive with having to explicitly and separately specify the file to be sent and the filename to receive it under.

Thanks in advance,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:39pm 02 Nov 2019
Copy link to clipboard 
Print this post

In Windows there is the File Manager built in to MMEdit but that's not an option on the RPi
If you are willing to use Python, it should be feasible to write something similar for the RPi

The other method:
I run ser2net on my Pi's and use MMEdit's TCPIP ability to connect to the 'mites that are plugged into a RPi from my Windows PC, across the room or across the world.

Jim
VK7JH
MMedit
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:55am 03 Nov 2019
Copy link to clipboard 
Print this post

Thanks Jim,

I assume by your signature that you are the author?

Unfortunately as I said I'm looking for a Windows-free solution, so MMEdit is out, which is a shame, it looks very nice.

Would I be correct in guessing its file management works by making a serial connection to the MM, issuing the FILES command (and friends), scraping the output to build a file structure and then using XMODEM for the actual file transfers? That sounds do-able in Python, though whether I do it is another question, popping the SD card in and out is inconvenient, but is it that inconvenient? ;-)

Regards,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:28pm 03 Nov 2019
Copy link to clipboard 
Print this post

  thwill said  
Would I be correct in guessing its file management works by making a serial connection to the MM, issuing the FILES command (and friends), scraping the output to build a file structure and then using XMODEM for the actual file transfers? That sounds do-able in Python, though whether I do it is another question, popping the SD card in and out is inconvenient, but is it that inconvenient? ;-)

Regards,

Tom

Yes.
There are a few differences between the various 'mites but if you are only interested in the CMM, that won't be an issue.
XMODEM is old, reliable and relatively simple to implement. There are a few sources of example code on the net and there might be a Python script already done.

Serial connections will always be slow so if you have large files to transfer, popping the card will be a lot faster.

Jim
VK7JH
MMedit
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 02:04pm 04 Nov 2019
Copy link to clipboard 
Print this post

Thankyou Jim. Possibly it's something I'll look into.
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 02:06pm 04 Nov 2019
Copy link to clipboard 
Print this post

For anyone who ends up finding this post in the future.

I found that PuTTY (on Raspberry Pi) is more friendly than minicom as it "correctly" maps the Fn, Home and End keys when used with the CMM, you do however need to change the setting of the Backspace key.
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025