Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:38 28 Nov 2024 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 : .bas files to picomite (no webmite)

Author Message
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 123
Posted: 08:51pm 25 May 2023
Copy link to clipboard 
Print this post

Hello from germany!

How can i transfer files (.bas files or other) from my computer (mac or pc) to the picomite? on my picoW it is easy with tftp, but how to handle this on my picos without wlan?
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 123
Posted: 08:54pm 25 May 2023
Copy link to clipboard 
Print this post

ok. i can connect the pico to a sd card reader. but is there a possibility to transfer files via usb?
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 09:11pm 25 May 2023
Copy link to clipboard 
Print this post

AUTOSAVE or XMODEM using your preferred terminal program

or

easier with the file manager in MMEdit (but I am biased)


Jim
VK7JH
MMedit   MMBasic Help
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 11:15pm 25 May 2023
Copy link to clipboard 
Print this post

As Jim says, AUTOSAVE or XMODEM if you're not using MMEDIT. I find AUTOSAVE easy to use, and it takes longer to describe how to do it than it does to actually do it.

I do most of my editing on the PC in Notepad++ (but use the built-in editor to correct little mistakes--while trying to keep the PC version updated with any changes). Then, when connected with TeraTerm, press F10 (AUTOSAVE); in the PC file, Ctrl+A, Ctrl+C, back in TeraTerm, right-click or Alt+V (depending on your TeraTerm settings, you may need to confirm); when the transfer is complete <Enter> to add a carriage return to your last line (optional), then Ctrl+Z to finish the transfer. Best then to SAVE the file (to the built-in flash file system or to SD). Then you can RUN or EDIT.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 06:09am 26 May 2023
Copy link to clipboard 
Print this post

  hhtg1968 said  Hello from germany!

How can i transfer files (.bas files or other) from my computer (mac or pc) to the picomite? on my picoW it is easy with tftp, but how to handle this on my picos without wlan?


another option is GFXterm (i'm only slightly biased :-) available here:
https://github.com/robert-rozee/GFXterm/tree/main/binaries

just connect to mite, and at the > prompt press the f11 key. everything should be automated from there. note that upload/downloads go directly to/from the editor's memory. f12 transfers in the other direction.

you can also paste into the editor. leave a space character to the right of the cursor to override the mite's auto-indenting.


cheers,
rob   :-)
Edited 2023-05-26 16:13 by robert.rozee
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 123
Posted: 02:22pm 26 May 2023
Copy link to clipboard 
Print this post

many thanks. pasting into the editor is ok.

i am a mac user, so i cannot useGFXterm.

is there a possibility to copy a FILE directly to the drive a on the pi pico?

it is not so easy to transfer longer source files via copy and paste...
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 03:10pm 26 May 2023
Copy link to clipboard 
Print this post

  hhtg1968 said  is there a possibility to copy a FILE directly to the drive a on the pi pico?


XMODEM, assuming you have a suitable XMODEM-capable terminal program. You have to remember to LOAD the file before you can RUN or EDIT.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2140
Posted: 11:12pm 26 May 2023
Copy link to clipboard 
Print this post

  Quote  XMODEM, assuming you have a suitable XMODEM-capable terminal program.
In the terminal window type:-
A: or B: 'to choose internal flash FS or SD card

XMODEM R "FileName.BAS"

Then get your terminal to open it's XMODEM Send dialogue to choose the file to send.
The Pico will 'timeout' if you take too long.

eg. in TeraTerm click File => Transfer => Xmodem => Send
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 123
Posted: 06:46am 27 May 2023
Copy link to clipboard 
Print this post

ok and thank you. i am still searching for an easy way to send or receive a file via xmodem for my mac...

it seems that the standard terminal in macos has no xmodem feature? or i am not able to find/ use it...
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 06:58am 27 May 2023
Copy link to clipboard 
Print this post

I think you need to install a linux package on a Mac to get xterm. I'm not sure.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 07:07am 27 May 2023
Copy link to clipboard 
Print this post

  hhtg1968 said  ok and thank you. i am still searching for an easy way to send or receive a file via xmodem for my mac...

it seems that the standard terminal in macos has no xmodem feature? or i am not able to find/ use it...

Look for terminal emulators for the Mac and probably some will either do xmodem or allow an escape to xmodem send/receive programs (such as rz/sz on Linux).

E.g. it's easy to escape (aka shell out) from several on Linux so probably also on Mac.

John
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 08:02am 27 May 2023
Copy link to clipboard 
Print this post

can you run a windows or linux VM?

or if really keen you could download the GFXterm source code, install FPC and lazarus, and compile. you could then publish the resulting macOS binary. unfortunately a little bit of tinkering with the code would be needed, though not much.


cheers,
rob   :-)
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4043
Posted: 08:59am 27 May 2023
Copy link to clipboard 
Print this post

According to professor Google there is a Mac app called "Serial" in the app store that can do xmodem.

Alternatively a Google will show you how you can use the Linux command line tools ("screen" and friends) on Mac.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 123
Posted: 10:46am 27 May 2023
Copy link to clipboard 
Print this post

ok and thanx. but the price is about 45 euros! i try serialTools from app store. meanwhile i have connected the sd crd reader successfully. so i can exchange data via sd card. but i will try with xmodem further too.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 11:33am 27 May 2023
Copy link to clipboard 
Print this post

How large is your file? I find that using AUTOSAVE and pasting works well enough even for pretty large files (tens of thousands of characters at about 5 seconds per 10,000 characters).

You get AUTOSAVE with F10 in TeraTerm on a PC, but with a Mac, you could just type AUTOSAVE at the ">" prompt, paste in your file, and type Ctrl+Z when done.

(You may have to set a between-characters pause--which is easily done in TeraTerm, but I wouldn't know about a Mac terminal program.)

~
Edited 2023-05-27 21:37 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
hhtg1968
Senior Member

Joined: 25/05/2023
Location: Germany
Posts: 123
Posted: 05:36pm 27 May 2023
Copy link to clipboard 
Print this post

ok. i will try it.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024