bugGNU Octave - Bugs: bug #54957, [octave forge] (arduino) Command...


bug #54957: [octave forge] (arduino) Command Window Hangs When Attempting to Initiate Connection with Arduino

Submitted by:  None
Submitted on:  Mon 05 Nov 2018 02:06:54 AM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Need Info Assigned to:  John Donoghue <lostbard>
Originator Name:  Jesse Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.4.1
Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 18 Dec 2018 03:20:09 PM UTC, comment #5:

Without the comport, the Arduino call calls scanForArduinos, so that makes sense.

You should be able press Ctrl-C and stop the function rather than have to restart octave.

The scanForArduino functions is effective getting a list of ports wuing that function and then sending an init arduino command to each detected port to see if there is a response.

Can you try running the attached script and send the results ?

(file #45690)

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 18 Dec 2018 01:05:27 PM UTC, comment #4:

If I only do ar=arduino() it hangs and I have to restart GNU Octave. But if I specify COM9 (or whichever) is works. ScanForArduinos makes it hang as well.

Tue 18 Dec 2018 11:18:15 AM UTC, comment #3:

Now that 2. is done, what happens you try a = arduino();

Without the comport, it should scan each comport to find the one that responds back to teh arduino commands.

Without the arduinosetup done to the board, of course none will respond back, however, it should timeout on each comport.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 18 Dec 2018 12:51:12 AM UTC, comment #2:

Just followed your advice, numbers 2 and 3 did it for me - I'm in business. Thank you!

Mon 17 Dec 2018 03:54:20 PM UTC, comment #1:

A couple of questions:

1. Have you tried the 0.3.0 version of the Arduino package ?

2. Did you run setuparduino to program the arduino?

3. If you run ar=arduino("whateveryourcomportis") does it work?

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 05 Nov 2018 02:06:54 AM UTC, original submission:

I have the Arduino and Instrument-Control packages installed. I uploaded the required sketch to my Arduino Uno and have it plugged in. I have put pkg load arduino without issue.

However, when I type ar=arduino() in order to initiate the connection as directed in the documentation the command window just hangs - it looks like it is still processing the action. I haven't been able to leave it trying for longer than 30 minutes but that's at least how long it lasts.

How can I fix this? I've tried uninstalling and reinstalling the program and package.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #45690:  test_arduinoscan.m added by lostbard (1014B - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-07 mtmiller SummaryCommand Window Hangs When Attempting to Initiate Connection with Arduino => [octave forge] (arduino) Command Window Hangs When Attempting to Initiate Connection with Arduino
    2018-12-18 lostbard Attached File- => Added test_arduinoscan.m, #45690
    2018-12-17 lostbard Assigned toNone => lostbard
    2018-12-17 lostbard StatusNone => Need Info

    Back to the top

    Powered by Savane 3.4