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

 
 

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

Submitter:  None
Submitted:  Mon 05 Nov 2018 02:06:54 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  lostbard
Originator Name:  Jesse Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.4.1
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 12 Apr 2019 07:40:27 PM UTC, comment #6: 

No reponse Dec 2018, changes have been made in the package since that may have made this no longer an issue so closing as fixed - will reopen if issues reappear.

John Donoghue <lostbard>
Group Member
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>
Group Member
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.

Anonymous
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>
Group Member
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!

Anonymous
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>
Group Member
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.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-12 lostbard StatusNeed Info Fixed
        Open/ClosedOpen Closed
    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.13-f8d8.
    Corresponding source code