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 : CMM2: Gibberish written to output when starts up

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 09:20pm 03 Sep 2020
Copy link to clipboard 
Print this post

Hi folks,

(Last new topic from me this evening, I promise)

When I start up the CMM2 I often get some initial gibberish written (slowly) to the output, usually something along the lines of:
°ff°ff°ff~x~~x

though occasionally with the keyword EDIT thrown in for good measure.

Does anyone know what this is ?

Is it something the Raspberry Pi (which is where I'm drawing power from) is sending it  ?

Is there anything I can do to stop it ?

Best wishes,

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

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 10:08pm 03 Sep 2020
Copy link to clipboard 
Print this post

Are you using the RPi as the terminal ?
my site
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 07:35am 04 Sep 2020
Copy link to clipboard 
Print this post

long shot - may be the terminal negotiation. DO, DON'T, WILL, WON'T of telnet. not strictly a telnet session but the "pc" end might think it is. Doesn't have to be over IP/network. The base code was intended  to work over any serial link, current loop, RS232 etc... for multiple drops on green screen users. Only later was it cobbled to do packet switched stuff

https://networkengineering.stackexchange.com/questions/26424/how-do-the-telnet-requests-do-and-will-differ

Edit... the RFC - page 14 "IAC"

https://tools.ietf.org/html/rfc854
Edited 2020-09-04 18:06 by CaptainBoing
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:07am 04 Sep 2020
Copy link to clipboard 
Print this post

  hitsware2 said  Are you using the RPi as the terminal ?


Yes, but at the point this is generated I haven't connected the terminal software (Putty) so this is presumably happening when the RPi is "negotiating" with a newly connected USB device (the CMM2 serial connection).

  CaptainBoing said  long shot - may be the terminal negotiation.


Thanks Captain, it seems very plausible that it is something like that. The character codes don't look correct for Telnet to me, but it is very possible I am misunderstanding in my brief skim of the references as it is out of my area of expertise.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 01:05pm 04 Sep 2020
Copy link to clipboard 
Print this post

kill modem manager:

sudo apt-get remove modemmanager


with linux: when a USB serial device is plugged in, modem manager connects to it and sends a query to see if it is a modem that needs configuring to create a network connection. what you are seeing looks like it may be this query.

i'm not sure the loss of modem manager is going to have any real impact these days, where most connections are made through either wifi or wired network. if you feel you still need modem manager, there are (complex) ways to configure it to ignore specific USB serial devices.


cheers,
rob   :-)
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 03:44pm 04 Sep 2020
Copy link to clipboard 
Print this post

If that doesn't do it, tell us more about what you're doing (programs run etc) that lets you see it.

So far it could just be wrong baud rate.

John
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 03:55pm 04 Sep 2020
Copy link to clipboard 
Print this post

I anxiously await hearing
( and possibly emulating )
your experience with RPi / CMM2
I have tried .... Can hook up ,
but something is wrong with
the resultant screen / keyboard
interaction .
my site
 
thwill

Guru

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

Just to be clear using the CMM2 from the  RPi via Putty is working fine.

I am just querying this harmless gibberish that is written to the output (VGA screen) when the CMM2 powers up. At that point I am not running anything on the CMM2 and no terminal software on the RPi.

When I get a chance I will try powering the CMM2 from a wall wart instead of the RPi and also disabling the modem manager and report back.

Best wishes,

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

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 04:23pm 04 Sep 2020
Copy link to clipboard 
Print this post

> Just to be clear using the CMM2 from the  RPi via Putty is working fine.

So you access the CMM2 editor via the keyboard plugged into the Pi ?
And read the CMM2 editor from the screen connected to the Pi ?
my site
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 05:47pm 04 Sep 2020
Copy link to clipboard 
Print this post

  hitsware2 said  > Just to be clear using the CMM2 from the  RPi via Putty is working fine.

So you access the CMM2 editor via the keyboard plugged into the Pi ?
And read the CMM2 editor from the screen connected to the Pi ?


"Yes" and "Yes", via the Putty serial terminal running on the RPi.
Just like using Tera Term to connect from Windows.
You don't get the graphics, you need a VGA monitor connected for those.

Best wishes,

Tom
Edited 2020-09-05 03:47 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 06:31pm 04 Sep 2020
Copy link to clipboard 
Print this post

O . K ....

What model RPi ?

Which OS ?

sudo apt install pterm


for Putty ?
my site
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 06:56pm 04 Sep 2020
Copy link to clipboard 
Print this post

  thwill said  Just to be clear using the CMM2 from the  RPi via Putty is working fine.

I am just querying this harmless gibberish that is written to the output (VGA screen) when the CMM2 powers up. At that point I am not running anything on the CMM2 and no terminal software on the RPi.

When I get a chance I will try powering the CMM2 from a wall wart instead of the RPi and also disabling the modem manager and report back.

Best wishes,

Tom

OK, let's deal with the first part after you've done those latter things.

It looks to be something specific to your setup.

John
 
thwill

Guru

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

OK, tested:

Gibberish isn't there if CMM2 powered directly from wall wart.

Disabled modem manager with:
systemctl disable ModemManager.service
systemctl stop ModemManager.service


... and the problem is gone when I connect via Putty from the RPi too.

I'm sure removing/purging ModemManager using apt would have done the job too.

Fingers crossed that's the end of that annoyance.

Thank you Rob
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

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

  hitsware2 said  What model RPi ?


Raspberry Pi 3 Model B Plus Rev 1.3

  Quote  Which OS ?


Raspbian GNU/Linux 10 (buster)
Linux raspberrypi 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux

  Quote  
sudo apt install pterm


for Putty ?


'putty' not 'pterm', though they may come together:

sudo apt install putty


Then look at this thread, starting from the last post and reading backwards as required:

http://www.thebackshed.com/forum/ViewTopic.php?TID=12143

Good luck,

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

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 10:32pm 04 Sep 2020
Copy link to clipboard 
Print this post

I think it's because /dev/ttyACMx implies modem, whereas ttyUSBx would not.

I tend to use udev (or the like) to set uC boards as the latter, though I recall being puzzled that modemmanager would be enabled (or, almost, that it exists at all) by default.

It'll be OK now, I expect.

John
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 12:47am 05 Sep 2020
Copy link to clipboard 
Print this post

> for Putty ?

Yes .... But I see the error of my ways  


my site
 
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