Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Rework serial ports handling #4482

Closed
wants to merge 41 commits into from

Commits on Jan 25, 2016

  1. Configuration menu
    Copy the full SHA
    4a9d339 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d349acc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cd4871c View commit details
    Browse the repository at this point in the history
  4. [AVR] [USB] Discover newer bootloader at runtime

    Replaces arduino#4280, only checks for the bootloader once
    
    Tested with Hoodloader2, should work with every LUFA-derived bootloader released after 2014 (.apitable_signatures section must be placed at end of the flash)
    
    BootloaderAPITable.S :
    
    .global BootloaderAPI_Signatures
    BootloaderAPI_Signatures:
    
        .long BOOT_START_ADDR ; Start address of the bootloader
        .word 0xDF00 ; Signature for the CDC class bootloader
        .word 0xDCFB ; Signature for a LUFA class bootloader
    
    makefile:
    
    BOOT_API_LD_FLAGS    += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures,  BootloaderAPI_Signatures,  8)
    facchinm committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    f027003 View commit details
    Browse the repository at this point in the history
  5. Avoid multiple concurrent compile/upload operations

    Disable Compile/Run buttons as they get press, and reenable only on function exit.
    The launched upload process has now a 2minutes timeout before being terminated forcefully.
    10 second after pressing "Upload" the button comes pressable again, but this time the previous upload command gets killed explicitely
    facchinm committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    3f07b8a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2c6d8d0 View commit details
    Browse the repository at this point in the history
  7. Rework Serial ports handling and add Board info menu

    This commit introduces the concept of stateful board list (vs. original stateless) and board serial number.
    
    The board is now an "entity" composed by the triplet port/vid/pid. These informations come from libListSerial "light" function. When the board list changes, it triggers a request for the additional infos to libListSerial. These information contains the serial number of the boards.
    
    These brings a lighter and faster scanning process. Some logic has been introduced to handle a board with the S/N only exposed in the bootloader (like 32u4).
    In this case the disappearing port acquires the bootloader's S/N
    
    A menu (under Ports menu) shows the currently connected port info and can be used for bugreporting
    facchinm committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    91b94c8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9568d8b View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2016

  1. Configuration menu
    Copy the full SHA
    a0ac217 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2016

  1. Configuration menu
    Copy the full SHA
    5812d42 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2016

  1. Configuration menu
    Copy the full SHA
    a9ed40a View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2016

  1. Avoid generating an exception if upload fails

    The current method of reporting upload errors is based on an exoteric combination of exceptions which makes return error code useless
    The Uploader.java message() implementation is too avrdude-dependant to allow easy portability since the upload tools are becoming a lot and very different
    
    With this commit we try to avoid exceptions and only use the external uploader's exit code to decide the status bar message.
    The message can be:
    - the last line containing "error" string (any case) or
    - the usual avrdude message parsing (to keep compatibility with translations)
    
    Needs testing with all platform and all supported upload tools
    facchinm committed Feb 11, 2016
    Configuration menu
    Copy the full SHA
    a65f577 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da77080 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2016

  1. add specifier to generated tool property keys

    by doing so, runtime variable are resolved by using the board specific tools
    
    real life example:
    - Intel i585 defines sketchUploader (version 1.6.2)
    - Intel arc32 defines sketchUploader (version 1.6.4)
    - runtime.tools.sketchUploader.path gets the value of the last one processed
    
    with this PR
    
    runtime.tools.sketchUploader.path.Intel.arc32 and runtime.tools.sketchUploader.path.Intel.i586 get created
    
    when resolving {runtime.tools.sketchUploader}, the routine searches for a key runtime.tools.sketchUploader.Vendor.Architecture
    
    If found, the value is obtained by {runtime.tools.sketchUploader.Vendor.Architecture}.getKey(), which always contains the required value.
    If no value is found, the old methos is applied
    facchinm committed Feb 12, 2016
    Configuration menu
    Copy the full SHA
    1bc2121 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2016

  1. Configuration menu
    Copy the full SHA
    58f4ad0 View commit details
    Browse the repository at this point in the history
  2. update jmdns to 3.4.2

    facchinm committed Feb 15, 2016
    Configuration menu
    Copy the full SHA
    162e2cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d403c9a View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2016

  1. Configuration menu
    Copy the full SHA
    f38056c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a2dfa4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9031af8 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2016

  1. Configuration menu
    Copy the full SHA
    e3561ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a86176d View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2016

  1. Configuration menu
    Copy the full SHA
    f6bccab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b418316 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2016

  1. Configuration menu
    Copy the full SHA
    1ada616 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4286c7 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2016

  1. Configuration menu
    Copy the full SHA
    a4ed0fa View commit details
    Browse the repository at this point in the history
  2. Increase wait for upload port timeout to 5s on all platforms

    OS X 10.11 seems to be slower, increasing timeout to 5s on all
    platforms to keep things simple.
    sandeepmistry authored and facchinm committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    09fbef6 View commit details
    Browse the repository at this point in the history
  3. Add OS X specific delay after waiting for upload port, to prevent "Re…

    …source busy" errors on open
    sandeepmistry authored and facchinm committed Mar 10, 2016
    Configuration menu
    Copy the full SHA
    5a69e51 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a63ec15 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2016

  1. TEST: jmdns hacking

    facchinm committed Mar 11, 2016
    Configuration menu
    Copy the full SHA
    944dcf1 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2016

  1. Revert "set a real pty for sending ssh commands"

    This reverts commit a86176d.
    facchinm committed Mar 15, 2016
    Configuration menu
    Copy the full SHA
    a1efb61 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2016

  1. Configuration menu
    Copy the full SHA
    d64cb94 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2016

  1. Enable links to directly open Lib/Board manager

    If a sketch contains a link to http://librarymanager/${dropdown}#${filter} or http://boardmanager/${dropdown}#${filter} (for example http://librarymanager/All#OneWire) Library or Board manager will be opened applying the secified filters
    facchinm committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    d1516f6 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2016

  1. Configuration menu
    Copy the full SHA
    2cd64e5 View commit details
    Browse the repository at this point in the history
  2. Changed color of version text in About box

    Ivan Esparza authored and facchinm committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    dd970b2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    655be00 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    60c3ca8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    815ccf1 View commit details
    Browse the repository at this point in the history
  6. Revert using 3 seconds poll on Windows

    from listSerialsj library 1.0.8 the serial polling is executed using the listComPorts method (which is much more cpu intensive than the previous one) to avoid bug arduino#4700. The 3 second poll rate is needed to avoid cpu hogging
    facchinm committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    51dcc5d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dfe75e8 View commit details
    Browse the repository at this point in the history