Cristian Maglie
50f89d9665
Refactored OS detection subroutine.
...
Moved from Base into a specific utility class OSUtils.
Removed unused platform constants.
2014-11-13 16:23:40 +01:00
Matthijs Kooijman
d4ca6ce127
Allow setting a line timeout in MessageSiphon
...
Previously, the MessageSiphon class would read characters from an
InputStream and then push them to the passed MessageConsumer one line at
a time.
Now, you can specify a line timeout. Normally, messages are still
processed line by line, but if no line ending is received within the
specified timeout (counting from the first character in the line), then
the incomplete line is passed on as a message, without waiting for the
line ending.
This feature is used for the uploader command output. In particular,
this allows the avrdude progress bar to be shown in the IDE as expected,
character by character (previously, the entire progress bar would be
buffered, making it show up completely at the end of the upload).
2014-10-30 12:36:06 +01:00
Federico Fissore
1b783fa48c
Formatter: cursor position is saved when invoking autoformat. Fixes #2293
2014-09-30 17:17:13 +02:00
Cristian Maglie
aa776b30ba
Fix for upload problems on Arduino Leonardo (and derivatives) with OSX 10.9.4
2014-09-01 12:16:41 +02:00
Cristian Maglie
dcc1020a6e
Better check for programmers configuration when uploading using programmer
2014-08-06 15:20:53 +02:00
Cristian Maglie
1a167b7a6f
Allow to run empty recipes in platform.txt
2014-07-28 18:40:53 +02:00
David A. Mellis
fcd633686f
Don't wrap a RunnerException in a redundant RunnerException.
2014-06-11 12:21:52 -04:00
David A. Mellis
b5fe1b1eb5
Proceed with upload even if port can't be found. (Issue #1791 )
2014-06-11 12:07:46 -04:00
Cristian Maglie
f50ec335fe
Removing the magic baudrate is no longer needed with JSSC
...
Fixes #1203 .
The original patch was introduced to workaround a problem with ArduinoISP reported
in #995 . After some debugging it seems caused by a glitch in RXTX library,
more discussion here: https://github.com/arduino/Arduino/issues/1203
2014-03-16 12:17:25 +01:00
Federico Fissore
f3619c3123
Closes #277 . Cores files intentionally left out of the commit as they require a different approach and have a different history
2014-02-21 16:21:32 +01:00
Cristian Maglie
f91670e0d0
Fixed JSSC upload problem with Arduino Due on MacOSX
...
JSSC, on unix based systems like linux and MacOSX, when listing serial ports
tries to open each port to ensure its existence. While this check works well for
linux ports /dev/ttyS0..31, it leads to unexpected behaviuors on MacOSX in
particular with USB-CDC virtual serial ports.
This patch disable the check and keep it enabled only for linux ttySxx ports.
This adds also tty.* and cu.* to the list of available serial ports on MacOSX.
2014-02-20 14:48:28 +01:00
Cristian Maglie
4a7cee4b3c
Fixed upload on Arduino Leonardo (and derivatives) with JSSC on Mac.
...
See #1633
2013-11-28 17:27:13 +01:00
Federico Fissore
f334e673a5
removing RXTX, switching to JSSC
2013-11-28 17:27:13 +01:00
Federico Fissore
54253ee5c3
Improved error message when unable to connect to the board via SSH
2013-10-16 17:04:07 +02:00
Federico Fissore
9898fd7ae6
Added support to openssh config file
2013-10-15 17:17:16 +02:00
Federico Fissore
56bdebb8d7
Introducing Artistic Style: new IDE autoformatter
2013-10-14 18:11:30 +02:00
Cristian Maglie
ea8c14421a
Merge branch 'ide-1.5.x' into dev-ide-1.5.x-discovery
...
Conflicts:
app/src/processing/app/Preferences.java
app/src/processing/app/debug/Uploader.java
2013-08-23 15:59:24 +02:00
Federico Fissore
94ed153f39
Re-added licence header to cc.arduino classes
2013-07-23 12:11:13 +02:00
Federico Fissore
6af672ff6c
Added licence header to cc.arduino classes
2013-07-22 17:47:54 +02:00
Federico Fissore
652168cb03
Zeroconf services may have multiple IP addresses: let's consider them all
2013-07-22 10:25:25 +02:00
Federico Fissore
def612e7b7
NetworkDiscovery: InetAddress.isReachable() is unreliable, let's open a socket
2013-07-19 15:17:27 +02:00
Federico Fissore
dec06c0423
Merge remote-tracking branch 'arduino/ide-1.5.x' into dev-ide-1.5.x-discovery
2013-07-17 19:39:42 +02:00
Cristian Maglie
008818868c
Merge branch 'ide-1.5.x' into dev-ide-1.5.x-discovery
...
Conflicts:
app/src/cc/arduino/packages/uploaders/SerialUploader.java
app/src/processing/app/Editor.java
app/src/processing/app/Sketch.java
app/src/processing/app/debug/Uploader.java
2013-07-14 12:01:03 +02:00
Federico Fissore
f648715621
Introducing uploader "warnings", a first attempt to give users more feedback with complex uploads
2013-07-10 09:44:49 +02:00
Federico Fissore
39c032b490
cleanup
2013-07-10 09:42:27 +02:00
Federico Fissore
7b7f26f9d2
NetworkDiscovery: a duplicate board is identified by its IP address only
2013-07-08 14:18:09 +02:00
Federico Fissore
172007b475
renamed two lua scripts
2013-07-05 13:50:00 +02:00
Federico Fissore
2165ecaa07
Avoiding duplicate boards in port menu
2013-06-28 15:29:39 +02:00
Federico Fissore
f41dc69c08
Refactored Uploader.stringContainsOneOf and StringMatchers.wildcardMatch into StringUitils
...
SSHUploader: filtered out some platform specific files
2013-06-28 15:29:39 +02:00
Federico Fissore
92ee034964
Faster implementation of scp copy of www folder contents
2013-06-28 15:29:39 +02:00
Federico Fissore
0d07ff9b41
First (slow) implementation of "copy everything from sketch www folder to yun's www/sketch folder, if available"
2013-06-28 15:29:39 +02:00
Federico Fissore
67cb6047de
Added source folder to Uploader.uploadUsingPreferences
...
Cleaned up Uploader.message
Better SSH output streams consuming
Introduced generic SCP.scpFile method and refactored SCP.scpHexToBoard
2013-06-28 15:29:38 +02:00
Cristian Maglie
9f84ae1d64
Workaround for IDE crash when uploading on Leonardo (and derivatives) on Linux
2013-06-28 09:50:51 +02:00
Federico Fissore
1f7ad71218
IDE network discovery now reacts to new networks: it monitors available IP addresses and, when one is added, it starts listening to bonjours coming from it
2013-06-25 16:13:14 +02:00
Federico Fissore
cca59f7e91
NetworkDiscovery is a bit more responsive when boards go OFFLINE
2013-06-14 16:43:05 +02:00
Federico Fissore
ae222c10e7
HTTPUploader is now SSHUploader
...
running avrdude with ssh, thus recovering incremental output
2013-06-13 13:01:21 +02:00
Federico Fissore
d28c656d7d
httpuploader actually uses scp to move the sketch on the board
2013-06-11 17:33:04 +02:00
Federico Fissore
21203cbe1b
introducing jsch. now network monitor uses SSH to trigger a telnet session at yun side
2013-06-11 15:02:10 +02:00
Federico Fissore
f791329ddc
extremely ugly hack to fix bad behaviour of java6 when dealing with SSL
2013-06-10 09:11:21 +02:00
Federico Fissore
137da0326d
found a bug in java6, fixed removing a https protocol from the list
...
see http://stackoverflow.com/questions/15589880/how-to-make-java-6-which-fails-ssl-connection-with-ssl-peer-shut-down-incorrec
2013-06-10 09:11:21 +02:00
Cristian Maglie
0ab4f8b24b
Temporary workaround on network discovery
2013-06-04 21:45:03 +02:00
Cristian Maglie
b4852f353c
Merge remote-tracking branch 'dog/ide-1.5.x-discovery' into ide-1.5.x-discovery
...
Conflicts:
app/src/processing/app/Base.java
app/src/processing/app/Editor.java
2013-06-04 19:33:38 +02:00
Cristian Maglie
7452ce824f
Small refactory to HttpUploader class
2013-06-03 13:12:36 +02:00
Cristian Maglie
3f9bb3e58c
Removed cleanup for jmDNS
2013-06-03 00:47:41 +02:00
Cristian Maglie
4b0a976686
First refactoring of uploaders
2013-06-03 00:44:15 +02:00
Cristian Maglie
6b05276b7e
Removed duplicate Uploader interface class
2013-06-03 00:42:26 +02:00
Cristian Maglie
ab6eb0843c
Refactored port (Serial and Network) discovery.
2013-06-02 19:02:57 +02:00