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

 
 

bug #56314: [octave forge] (arduino) Cannot get Octave to recognize Arduino Pro Mini

Submitted by:  Joel Falk <jdfalk>
Submitted on:  Sun 12 May 2019 09:02:12 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  None Assigned to:  None
Originator Name:  jdfalk Open/Closed:  Open
Release:  5.1.0 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.

 

( Jump to the original submission)

Wed 22 May 2019 05:02:20 PM UTC, comment #6:

Added changeto Arduino that will use the extended names for the scan, so it should detect the higher port number arduinos.

https://sourceforge.net/p/octave/arduino/ci/20956521351aad5bde3a13828b8b1c7ff1f68a10/

Will be released as Arduino-0.4.0 when it comes out

John Donoghue <lostbard>
Project Member
Mon 13 May 2019 02:36:05 AM UTC, comment #5:

Yes, that did it! Thank you, <lostbard>, for a very prompt solution!

>>

Joel Falk <jdfalk>
Mon 13 May 2019 02:35:48 AM UTC, comment #4:

Yep - you will need to use "\\\\.\\COM13"

AT some stage I will update instrument control to not require the extended name as I dont see anything in the matlab equivalent documentation mentioning having to do it

John Donoghue <lostbard>
Project Member
Mon 13 May 2019 02:18:30 AM UTC, comment #3:

Out of interest sake, with the instrument control package loaded, what does running:
instrhwinfo ('serial')
show ?

I get:

ans =
{
[1,1] = COM13
}

Joel Falk <jdfalk>
Mon 13 May 2019 01:50:17 AM UTC, comment #2:

I missed the comment about test_arduinoscan, so that is defin ately the issue - use the extended port name for the compor and it should work.

John Donoghue <lostbard>
Project Member
Mon 13 May 2019 01:47:47 AM UTC, comment #1:

The pro works for me, it sounds like the issue you are having may be because of the comport name rather than anything else.

For the instrument control package, comports greater than 9 need to be specified differently ie: "\\\\.\\COM13" [1]

Out of interest sake, with the instrument control package loaded, what does running:

instrhwinfo ('serial')

show ?

With the comport sepecified, it should work, however my guess is that the list from instrhwinfo doesnt show the extended numbering, but is what the arduino is attempting to use if not specified.

[1] https://wiki.octave.org/Instrument_control_package#Example:_Windows.2C_serial_port_.3ECOM9

John Donoghue <lostbard>
Project Member
Sun 12 May 2019 09:02:12 PM UTC, original submission:

Hi, I have a similar issue to bug #54957, except that when I try to connect Octave to the Arduino I get error messages.

Details:
Arduino Pro Mini ATMega328P 3.3v
Arduino IDE 1.8.9
Octave 5.1.0, 4.4.0, 4.0.1 ( I've tried with all three versions)
instrument-control 0.3.1
arduino 0.3.0
Windows 7 Home Premium

The packages load OK, and the arduinosetup seems to work properly - it loads a module which I upload to the arduino. I then close the arduino IDE.

However, it does not recognize the arduino:

trying

>> r=arduino('COM13')

also gives an error message

I tried your program test_arduinoscan and it sees correctly that the arduino is on COM13, but then gives an error message again.

I am suspecting that Octave does not work with the Arduino Pro Mini, although the documentation states it does. Am I missing something? Thanks.

Joel Falk <jdfalk>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46898:  test_arduinoscan.m added by jdfalk (1014B - application/octet-stream)

 

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 jdfalk (Submitted the item)
  • -email is unavailable- added by jdfalk
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-12 mtmiller SummaryCannot get Octave to recognize Arduino Pro Mini => [octave forge] (arduino) Cannot get Octave to recognize Arduino Pro Mini
    2019-05-12 jdfalk Attached File- => Added test_arduinoscan.m, #46898
    2019-05-12 jdfalk Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.4