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

 
 

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

Submitter:  Joel Falk <jdfalk>
Submitted:  Sun 12 May 2019 09:02:12 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  lostbard
Originator Name:  jdfalk Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 07 Jun 2019 03:23:25 PM UTC, comment #7: 

0.4.0 is released - closing as fixed

John Donoghue <lostbard>
Group Member
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>
Group Member
Mon 13 May 2019 02:36:05 AM UTC, comment #5: 

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



>> r=arduino("\\\\.\\COM13");
>> r
r =
  arduino object with fields of:
    port = \\.\COM13
    board = promini
    libraries = {
      core
      i2c
      spi
      servo
      shiftregister
    }
    availablepins = {
      d0 - d13
      a0 - a7
    }


>>

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


>> pkg load instrument-control
>> pkg load arduino
>> arduinosetup('arduinobinary','C:\Program Files (x86)\Arduino\arduino')
Running "C:\Program Files (x86)\Arduino\arduino" "C:\Users\Joel\AppData\Local\Temp\oct-f2m8ZT\octave\octave.ino"
ans = 1


However, it does not recognize the arduino:


>> scanForArduinos
ans = {}(0x0)
>> r=arduino()
error: arduino: No arduinos found on serial scan
error: called from
    arduino at line 77 column 11


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.


>> test_arduinoscan
scanning for possible arduinos
ports =
{
  [1,1] = COM13
}

* trying comport COM13
 ** caught err: serial: Error opening the interface: The system cannot find the file specified.


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
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-06-07 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-05-29 lostbard StatusNone Ready For Test
    2019-05-28 lostbard Assigned toNone lostbard
    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.13-758e.
    Corresponding source code