Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:05 02 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 : MMEdit update V3.6.3

     Page 2 of 2    
Author Message
CFLY

Regular Member

Joined: 20/05/2015
Location: France
Posts: 41
Posted: 08:45pm 06 Sep 2015
Copy link to clipboard 
Print this post

Jim,
I have a micromite+ with a lcd 5' and sd card.
With mmedit 3.6.3 I can see the list of files on the sdcard (with MM file icon) but when I want to display the contents I have only the contents of the program on displays!! (Furthermore, the program is not on the sdcard !!)

Pb known?

 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:09pm 06 Sep 2015
Copy link to clipboard 
Print this post

@CFLY
The uM Plus doesn't have the ability to transfer files from the SDcard to/from the PC.
XMODEM only works on the program in memory, just the same as the uM and uM Mk2

Hopefully a future beta firmware will have the missing function. When it does, I can update MMEdit to do the file manager operations the same as the Maximite.

@TZ
Some USB adapters send a short pulse on the handshake lines when the port is connected.
The pulses are very short but can still cause a reset. This is why I put the "Enable Handshake Lines" toggle in.


Jim
VK7JH
MMedit
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 09:14pm 06 Sep 2015
Copy link to clipboard 
Print this post

@Jim, yes after enabling handshake lines it works
Sorry i missed the obvious.

Microblocks. Build with logic.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:23pm 06 Sep 2015
Copy link to clipboard 
Print this post

  TZAdvantage said   @Jim, yes after enabling handshake lines it works
Sorry i missed the obvious.

That means it was not obvious enough.
I had considered putting in a warning message if you try to pulse the lines without 'Enable' turned on.

If you are using the Chat window, you can use a Macro to pulse the lines.

From the help:
\U pulses DTR line (if enable handshake lines)
\u pulses RTS line (if enable handshake lines)


Jim
VK7JH
MMedit
 
CFLY

Regular Member

Joined: 20/05/2015
Location: France
Posts: 41
Posted: 09:35pm 06 Sep 2015
Copy link to clipboard 
Print this post

Jim,
OK thank you.
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 12:53am 08 Sep 2015
Copy link to clipboard 
Print this post

Is there any way to get rid of MMchat completely and set MMedit to use TeraTerm by default instead?

http://rittle.org

--------------
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 02:34pm 08 Sep 2015
Copy link to clipboard 
Print this post

  kiiid said   Is there any way to get rid of MMchat completely and set MMedit to use TeraTerm by default instead?


From the Help file:
  Quote  Using MMEdit with TeraTerm:

TeraTerm is a much better VT100 terminal than the one built in to MMEdit and is recommended for extended use.

TeraTerm can also do macros and this feature allows you to easily upload programs using XMODEM.

Every time you do a save, MMEdit save two extra copies of your program. One is a true copy of your program and will always be named "LASTFILE.BAS"
The second one is a copy that has been crunched – all comments and blank lines removed to save space. This file is always named "LASTFILE.BAS"

The files are always saved to the same location which will be similar to "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas"

You may have the location hidden but it doesn't matter. The location will be correctly written to a TeraTerm macro file in the next step.

To create two macro files for uploading the programs, normal and crunched, run File/Preferences/Advanced/Make TeraTerm Macros.

You should place the two macros into the TeraTerm program folder. If TeraTerm is installed under Program Files, Windows will not like you placing the file there. In this case, place the files in any convenient location and then use Windows Explorer to copy the to the TeraTerm folder.

If you are likely to play with more TeraTerm macros, it would be a good idea to install TeraTerm into another folder, NOT under Program Files.

Once created, the macros will not be changed by MMEdit so it is save to amend them.
A typical macro for uploading is:


send #3
pause 2
sendln "XMODEM RECEIVE"
pause 3
xmodemsend "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas" 1


The macro sends a CTRL-C
Waits 2 seconds
Sends the command to start XMODEM
Waits 3 seconds
Sends the program

Another useful macro is one for setting the MicroMite's clock

send #3
pause 1
gettime now
getdate today "%d/%m/%Y"
sendln "time$ = " #34 now #34
sendln "date$ = " #34 today #34

This macro sends CTRL-C
Waits 1 second
Gets the time and date from the PC time
Sends the commands to set time and date.

You could add this macro contents to the start of the upload macros.

To always set the clock on loading, change the upload macro to

send #3
pause 1
gettime now
getdate today "%d/%m/%Y"
sendln "time$ = " #34 now #34
sendln "date$ = " #34 today #34
pause 1
sendln "XMODEM RECEIVE"
pause 3

xmodemsend "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas" 1

The macros will need modifying if you want to use them with a Maximite.

To run the macro from TeraTerm use Control/Macro and select the appropriate macro file.

With the MicromitePlus, you can have a problem when the device is reset. This causes the USB-serial to reset also and the connection to Teraterm is lost.

To re-establish connection, the following macro by Robert Rozee is useful:

dispstr 10 13 'closing connection' 10 13
disconnect
do
mpause 500
connect '/C'
loop until result = 2
dispstr 'reconnected' 10 13
sendln

Save it as "reconnect.ttl" and make a few changes to Teraterm.

In the TeraTerm folder, edit the file called
keyboard.cnf so that near the end, instead of reading:

;Example of user key definitions.
;[User keys]
; Ctrl + F1 key: character string
;User1=1083,0,telnet host

it now reads:

;Example of user key definitions.
[User keys]
; Ctrl + F1 key: character string
User1=1083,2,reconnect.ttl

That is, you are removing the ";" from the start of two lines, changing a "0" parameter to "2", and replacing 'telnet host' with 'reconnect.ttl'. This will cause the macro file reconnect.ttl to be executed whenever you press Ctrl + F1. As keyboard.cnf is only read at startup, you will need to close TeraTerm before these changes will take effect.

Usage:

1. Press reset on your Micromite+
2. Press Ctrl + F1 on your PC keyboard

Using a similar technique, you could link the other new macro files to other function keys.


Any problems, ask again.

Jim
VK7JH
MMedit
 
Lou

Senior Member

Joined: 01/02/2014
Location: United States
Posts: 229
Posted: 09:13pm 08 Sep 2015
Copy link to clipboard 
Print this post

Jim wrote
Every time you do a save, MMEdit save two extra copies of your program. One is a true copy of your program and will always be named "LASTFILE.BAS"
The second one is a copy that has been crunched – all comments and blank lines removed to save space. This file is always named "LASTFILE.BAS"

My crunched file is lastfile.baz, a typo above I think. Anyway, a great MMEdit feature.

Lou
Microcontrollers - the other white meat
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:34pm 08 Sep 2015
Copy link to clipboard 
Print this post

Thanks for the correction Lou,

A typo in my copy to here. Its correct 'LASTFILE.BAZ' for the crunched one in the help file.

Jim
VK7JH
MMedit
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 11:27pm 08 Sep 2015
Copy link to clipboard 
Print this post

  TassyJim said   Jim


Thanks, I should read a little bit more documentation, I guess... :)

http://rittle.org

--------------
 
     Page 2 of 2    
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