![]() |
Forum Index : Microcontroller and PC projects : Micromite and Chromebook
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
SteveA Regular Member ![]() Joined: 10/03/2017 Location: United KingdomPosts: 48 |
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 KingdomPosts: 10310 |
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 KingdomPosts: 48 |
Thanks Matherp that works a treat. A case of RTFM! |
||||
SteveA Regular Member ![]() Joined: 10/03/2017 Location: United KingdomPosts: 48 |
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: ItalyPosts: 313 |
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 Antonio |
||||
SteveA Regular Member ![]() Joined: 10/03/2017 Location: United KingdomPosts: 48 |
Looks very interesting Antonio, I give it a try. |
||||
SteveA Regular Member ![]() Joined: 10/03/2017 Location: United KingdomPosts: 48 |
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 stub |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
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 Antonio |
||||
SteveA Regular Member ![]() Joined: 10/03/2017 Location: United KingdomPosts: 48 |
Our posts overlapped! <quote>What kind of UART HW/USB are you using?</quote> Micromite plus. |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Hi SteveA Are you using wine on linux? Antonio |
||||
SteveA Regular Member ![]() Joined: 10/03/2017 Location: United KingdomPosts: 48 |
Yes, wine running on Ubuntu with KDE desktop,running in a chroot on ChromeOS. |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
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 KingdomPosts: 48 |
I did exactly the same and gtkTerm and MM edit can connect to the MM. 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: ItalyPosts: 313 |
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 ZealandPosts: 2442 |
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 KingdomPosts: 48 |
No problem, it runs but says 'No Serial Ports Found' |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
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 KingdomPosts: 48 |
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: ItalyPosts: 313 |
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 KingdomPosts: 48 |
MM+ show as ttyACM,USB to serial adaptors show up as ttyUSB. |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |