|
Forum Index : Microcontroller and PC projects : XMODEM RECEIVE - "Remote did not respond"
| Author | Message | ||||
| rhiemann Newbie Joined: 24/11/2017 Location: GermanyPosts: 12 |
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: AustraliaPosts: 3308 |
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). Sorry, no. Geoff Geoff Graham - http://geoffg.net |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |