Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:55 11 Nov 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 : XMODEM RECEIVE - "Remote did not respond"

Author Message
rhiemann
Newbie

Joined: 24/11/2017
Location: Germany
Posts: 12
Posted: 07:20pm 08 Feb 2018
Copy link to clipboard 
Print this post

I am using following lines with MM plus 5.0408 to transfer an image to my SD card.
Works quite well if remote is available.


OPTION ERROR CONTINUE
XMODEM RECEIVE "File.bmp"


If remote is not available (approx. after 30s) I get following error message and my program stops:
"Remote did not respond"

I am using this option

OPTION ERROR CONTINUE

If I have issues with my SD card than I am able to handle the error with my code

IF MM.ERRNO<>0 THEN CtrlVal(TextStatus)= "ERROR"


Any idea how to handle this remote did not respond error?
Is there a way to define the wait time? By default it is approx. 30s.

Thanks in advance
Rico
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 09:39pm 08 Feb 2018
Copy link to clipboard 
Print this post

Welcome to the forum Rico.

OPTION ERROR CONTINUE only applies to file I/O errors and this error is due to a communications timeout - which is why the error is not caught.

To catch this error you can use ON ERROR IGNORE or ON ERROR SKIP.

OPTION ERROR has been removed from the manual and in a future version will be removed from MMBasic. Its functionality has been replaced with ON ERROR which essentially does the same thing and can handle a wider range of errors (such as your timeout).

  Quote  Is there a way to define the wait time? By default it is approx. 30s.

Sorry, no.

Geoff
Geoff Graham - http://geoffg.net
 
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