Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:03 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 : Micromite and Chromebook

     Page 1 of 2    
Author Message
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 02:00pm 04 Apr 2018
Copy link to clipboard 
Print this post

I'm trying to get a Micromite and MM+ working with my Chromebook.

I can connect to the MM and enter commands etc.

But I can't get the built in editor to work, I can enter a program, move the cursor around and using 'backspace' delete characters. However, the Chromebook doesn't have function keys, so I can't save, run, etc.

There are two ways to access function keys on the Chromebook, either by holding the search key and pressing 1 thru 9, -, and +. Or by reassigning the top row of buttons which are used by chrome to func. by changing a setting in the keyboard dialogue. Neither work!

Pressing what should be F1 sends 'OP', F2 - 'OQ', F3 - 'OR', etc.

I've tried a couple of different serial terminal apps, BeagleTerm and SerialTerm for example but they all behave the same way.

Does anyone know how to get the function keys working?

 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 02:24pm 04 Apr 2018
Copy link to clipboard 
Print this post

Page 33 of the manual

You can also use control keys instead of the functions keys listed above. These control keystrokes are:
LEFT Ctrl-S RIGHT Ctrl-D UP Ctrl-E DOWN Ctrl-X
HOME Ctrl-U END Ctrl-K PageUp Ctrl-P PageDn Ctrl-L
DEL Ctrl-] INSERT Ctrl-N F1 Ctrl-Q F2 Ctrl-W
F3 Ctrl-R ShiftF3 Ctrl-G F4 Ctrl-T F5 Ctrl-Y
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 02:46pm 04 Apr 2018
Copy link to clipboard 
Print this post

Thanks Matherp that works a treat.

A case of RTFM!
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 03:48pm 04 Apr 2018
Copy link to clipboard 
Print this post

Following on from the above, I can see from SerialTerm that the MM is on /dev/ttyUSB0, it would be great to get MM Edit working!

So using Crouton (Chromium OS Universal Chroot Environment) I installed Ubuntu with a KDE desktop and GtkTerm.

At first GtkTerm couldn't access the serial port, but entering 'sudo chmod 666 /dev/ttyUSB0' in the terminal did the trick. GtkTerm can communicate with my MM, so I know Ubuntu is working.

Next I installed Wine and MM Edit. MM Edit starts up but doesn't find ttyUSB0.

So I needed to tell it where to look for the MM, in the terminal I entered:

'ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com7'

MM Edit now works!

I hope this helps others.

Steve




 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 08:25pm 04 Apr 2018
Copy link to clipboard 
Print this post

Hi SteveA

Here you can find MicromiteCons v.0.933 which is optimized to work with wine.
To make sure you can add a COM on Linux platform port just double click in the "UART LIST (0)" section and add a number. For example digit only 7 to add in list COM7.
Here you can find discussion on MicromiteCons.
Thanks
AntonioEdited by sagt3k 2018-04-06
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 09:10am 05 Apr 2018
Copy link to clipboard 
Print this post

Looks very interesting Antonio, I give it a try.
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 02:58pm 09 Apr 2018
Copy link to clipboard 
Print this post

Hello Antonio,

I had the the time to try your program, it runs, but unfortunately it doesn't detect any of the UARTS on my Chromebook, the drop down list is empty.

GtkTerm (Linux) and MMedit (Windows) both list all the available ports and allow me to select one.

It works on my Windows machine, so I'll have a play with it on that instead.

Steve

Added:

I,ve reread your post and had another quick play. I can double click and assign a port number, then when I click connect the program thinks its connected, buts it's not!

In the terminal window I get the following:-
fixme:ntdll:server_ioctl_file Unsupported ioctl 1b0048 (device=1b access=0 func=12 method=0
fixme:comm:set_queue_size insize 4096 outsize 4096 unimplemented stubEdited by SteveA 2018-04-11
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 03:33pm 09 Apr 2018
Copy link to clipboard 
Print this post

Hi SteveA

Generally COM (only on Windows) are recognized by extracting from the list of "COMx" strings.
I read the list from regedit "HLM\hardware\devicemap\serialcomm"
What kind of UART HW/USB are you using?
Thanks
AntonioEdited by sagt3k 2018-04-11
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 03:50pm 09 Apr 2018
Copy link to clipboard 
Print this post

Our posts overlapped!

<quote>What kind of UART HW/USB are you using?</quote>

Micromite plus.
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 04:02pm 09 Apr 2018
Copy link to clipboard 
Print this post

  SteveA said   Our posts overlapped!

<quote>What kind of UART HW/USB are you using?</quote>

Micromite plus.


Hi SteveA
Are you using wine on linux?
Antonio
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 04:52pm 09 Apr 2018
Copy link to clipboard 
Print this post

Yes, wine running on Ubuntu with KDE desktop,running in a chroot on ChromeOS.
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 07:17pm 09 Apr 2018
Copy link to clipboard 
Print this post

Hi SteveA

I try on Devian with a VMachine. My system see MicromitePlus connected by USB as "ttyACM0". Then in Linux I try with "ln -s /dev/ttyACM0 ~/.wine/dosdevices/com7".
Then start "wine MicromiteCons.exe" , add COM1 and I connected with console.

Antonio
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 07:55pm 09 Apr 2018
Copy link to clipboard 
Print this post

  Quote  My system see MicromitePlus connected by USB as "ttyACM0". Then in Linux I try with "ln -s /dev/ttyACM0 ~/.wine/dosdevices/com7".


I did exactly the same and gtkTerm and MM edit can connect to the MM.

  Quote  Then start "wine MicromiteCons.exe" , add COM1 and I connected with console.


This is the bit that doesn't work, the program runs but the dropdown list isn't populated and although I can add a port it doesn't connect.

There is obviously something very obscure going on between wine/ubuntu/chromeOS! I'm not a Linux expert, and I don't think I'll get to the bottom of it, so I'll carry on using MM edit.

Thanks for your help.

Steve

 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 05:48am 10 Apr 2018
Copy link to clipboard 
Print this post

Hi SteveA
Ok, thank you gor sharing you experience. Now I will work to give more suport on linux/wine.
Antonio
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 08:45am 10 Apr 2018
Copy link to clipboard 
Print this post

hi steve,
i'd be interested to hear if you have any success with gfxterm:

http://www.thebackshed.com/docregister/ViewDoc.asp?DocID=22

this also uses the registry to locate comm ports.


cheers,
rob :-)
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 10:12am 10 Apr 2018
Copy link to clipboard 
Print this post

  Quote  i'd be interested to hear if you have any success with gfxterm:


No problem, it runs but says 'No Serial Ports Found'
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 10:25am 10 Apr 2018
Copy link to clipboard 
Print this post

Hi SteveA
If you use wine on linux,you need execute a link between /dev/ttyXXX and logic link comx win compatible
Antonio
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 10:46am 10 Apr 2018
Copy link to clipboard 
Print this post

  Quote  If you use wine on linux,you need execute a link between /dev/ttyXXX and logic link comx win compatible


I've been doing this:

'ln -s /dev/ttyUSB0 ~/.wine/dosdevices/comx'

where 'comx' is the port number I want to assign, for example com1..com2..etc

Is that what you mean?
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 11:10am 10 Apr 2018
Copy link to clipboard 
Print this post

Hi SteveA

With command dmesg in linux you can see exatly how your device is,recognized. Micromite Plus perhaps it seen a ttyACM0.
Antonio
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 12:53pm 10 Apr 2018
Copy link to clipboard 
Print this post

MM+ show as ttyACM,USB to serial adaptors show up as ttyUSB.Edited by SteveA 2018-04-11
 
     Page 1 of 2    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025