![]() |
Forum Index : Microcontroller and PC projects : MM+ File Transfer To/From SD Card
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
I'm happily saving data to a comma separated value format on an SD card on a MM+ (BackPack). Apart from swapping the card between the MM and PC I can't for the life of me see how to transfer files between the MM and PC. Xmodem transfer (Page 21 of the manual) doesn't work for me, nor do Xmodem in MMEdit or TeraTerm. I've searched TBS and others have had the same question but I can't see answers. Am I missing something? (OK I could write code to read the SD file and write it to a Comm port with code on the PC to read and save it but there has to be a better way?? . . .) Thanks, Andrew |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
'MM File' in MMEDIT should do this for you. Little icon of two columns, forth from the right, beside 'MM Chat' Smoke makes things work. When the smoke gets out, it stops! |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Grogs. Thanks. It doesn't work for me. In the LH panel I see the files in the PC's directory that I am using (and I can move around) and the RH (MM) panel is blank. Is it a set up thing (I've looked)? On page 52 of Jim's manual it says: "The Micromite Plus does have some file support and you can do some of the things that the Maximite can do." but it doesn't elaborate. ??? Andrew |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
Just tried for the first time on my MM+. If I click the Icon, the LH column populates & the RH comes up with A:/ & says Working.. then populates the column. If no SD card inserted MMEdit seems to hang as I just found out. Not sure what happens if the SD card in not configured though. If you click the same icon from a working MMChat window, you know you do at least have a connection to the MM+ ChopperP |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 1003 |
I just checked. You need to have a micromite-plus syntax file selected. if you have just the Micromite then it doesnot work. The syntax files have an entry which defines the capability of the connected device. e.g. mmdeviceoptions 00001001 'MM mmdeviceoptions 01011011 'MM Plus One of those bits will decide if MMEdit tries to enumerate whats on the SDCard. regards Gerry Latest F4 Latest H7 FotS |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Chopper and Gerry: 1) which SD slot are you using. I'm using the micro SD on the MM+, not the one on the LCD 2) which OPTION settings do you have (I'm using the ones from the Silicon Chip article which differ from those in the MM+ manual) 3) Gerry where and how are the mmdeviceoptions set? (my SD card was formatted in my reader to FAT32) 4) are you powering it from the USB or the 4pin console connection? We might be getting somewhere ... Andrew |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
I'm using the Standard SD Card one on the LCD panel. Haven't tried the other one yet. OPTION SDCARD 21 RE Syntax. I must have set mine to the Plus one. Note to self. Must remember this when going back to the standard MM ChopperP |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Chopper, thanks. But how does one set the syntax?? |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Chopper, Gerry and Grogs, Thank so very much! You helped me look in the right direction and I have found how to change the syntax. I now see files in both panes so I guess it will work (independent of which card slot is being used etc) - another lesson learned (and I have read the manual many times). For other readers, just above the icon ribbon at the top of the MMEdit screen there is the type of device displayed eg "Micromite . . ." click on that to change the syntax. See page 15 of the MMEdit manual (I'd searched the MM and MM+ manuals but not MMEdit). Thanks again, Andrew |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Sorry but I am not there yet! I now see the file on the SD card but it appears (using quick view) to only be a listing of the program! BUT: - if I read the file line by line from the console (eg ... Line Input #1, In$: print In$ ...) I see the correct data - if I use MMEdit to transfer the file to the PC I see only the program listing - if I take the SD card and read it in the PC I see the correct data! I suspect a MMEdit issue? Andrew (it does it with the SD card in either slot) |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
What I am doing right now testing SD cards is in the right column of MM File Master, highlight the appropriate file (Click on the file you want to transfer), then click the red arrow icon above it (2 over from New Folder). A windows directory comes up & then save from there. ChopperP |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Chopper - yep that is what I am doing. If I do this from the console: "open "test2.csv" for input as #1:do while not eof(#1):line input #1, Out$:print out$:loop" - I get the correct listing of the data file. If I open MM file manager and use the file viewer (the icon to the left of the red arrow) all it contains is a listing of the program. When I transfer the file (via the red arrow) the one that gets to the PC is is just a listing of the program (smaller than the data file of the same name) If I put the SD card in the PC it is the correct data file. (I'm out for a couple of hours so a lack of response is not a lack of interest) Andrew |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1097 |
Ah, that's what that button is for. That's not working for me either for transfer. Don't select the Quickview button. Just select the file & click the red arrow icon. (Image 1) This will transfer the file to the directory you select. (Image 2) You will need to open the PC directory to get the file. (Image 3) ![]() ![]() ![]() BTW, thanks for the the other things you mentioned ChopperP |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Chopper, Thanks but still no joy. That is what I have been doing and my screen grabs are ~ the same as yours. ![]() ![]() (I've tried every inconceivable combination but am of course happy to try more.) Cheers, Andrew |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
I have just re-tried TeraTerm and it is doing the same thing. A file on the SD card that appears to be in text/csv format when transferred (via XModem) appears on the PC as a text listing of the program in the MM+ memory. So it is not a MMEdit thing? Andrew |
||||
Azure![]() Guru ![]() Joined: 09/11/2017 Location: AustraliaPosts: 446 |
Just to make sure everything is working OK have you tried reloading the MM firmware (and/or using the latest version). It is unlikely, but good to eliminate any possible corruption by doing a clean install. |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Azure, good thought - I will do and report back! Andrew |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Ajure (and Chopper, Grogs & Disco4Now), Many thanks - problem appears to have been solved by re-loading the .HEX. (Most annoying! I lost a day when I should have been doing other things. But thanks to your help it was limited to a day and it now works!). My testing so far is creating the file, transferring it to the PC sending a copy back to the MM+ and using the console to verify that the copy from the PC was the same data. Thanks again, Andrew (Interesting that an old file, that according to the MMEdit File Manager was only the program listing, now shows itself as correct data - most strange . . .) |
||||
Azure![]() Guru ![]() Joined: 09/11/2017 Location: AustraliaPosts: 446 |
![]() Glad you have managed to get that part sorted. Good luck with the project. |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Thanks Azure. A |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |