History log of /haiku/src/apps/serialconnect/SerialApp.cpp
Revision Date Author Comments
# 16af9b4c 05-Nov-2017 Humdinger <humdingerb@gmail.com>

Style, no functional changes

Make termination consistant with that last commit hrev51521.
As wished and proof-read by waddlesplash. Hope all's well...


# 8bff17cf 26-Aug-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: support sending raw files

Add a generic FileSender interface, which XModemSender implements. Add a
new RawSender which implements the same interface.

The RawSender currently blocks the application thread while sending,
which is not a good idea. Will rework this when I allow cancelling
transfers before they complete.


# cd4d3a30 16-Jul-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: implement XMODEM-CRC

This is a common extension to XMODEM, which replaces the checksum with a
more resilient CRC.
The receiver must explicitly enable this, so if the receiver doesn't
handle it, the traditional checksum is still used. Hence, this is
backwards-compatible with XMODEM.


# ce058fa0 16-Jul-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: implement XMODEM send.


# 96e59cca 28-Feb-2016 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: allow custom baudrates from the GUI


# d9e93152 09-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

SerialConnect: add scripting support

It's now possible to configure the serial port through scripting:
hey SerialConnect set databits to 8
hey SerialConnect set parity to even
etc.

More useful is the ability to connect and disconnect from the port:
hey SerialConnect get port # returns "usb0"
hey SerialConnect set port to usb0
hey SerialConnect delete port

This allows a script to automatically disconnect SerialConnect, do
something with the serial port, and then reconnect SerialConnect. This
can be used for example to run a bootloader and update a firmware
through the same serial port used for debugging, something that's not
easily possible on other systems.


# 1e8185d9 22-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: even more style fixes.

Thanks to Korli for reviewing...


# 604dad94 22-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix return and backspace keys.


# c53c7dde 12-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Style fixes.


# 492ac416 22-Jan-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes CID 1162805, 1162804, 1162773, 1162759.


# e2367275 21-Dec-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix baudrate settings save.

There was a mixup of using the baudrate value (eg 115200), constant
(B_115200_BPS = 17) and position in the menu (18), leading to the
baudrate setting not being saved and restored properly.


# ccc6b9be 20-Nov-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Make SerialConnect more complete

* Mark the current connected device, or disable "Disconnect" menu when
there is no connection.
* Save and restore serial port settings
* Improve drawing code: make sure the border around the termview is
repainted, and do not leave a 1px space between lines unpainted.


# d481cb73 04-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Fix newline handling

Haiku sends '\n' when you press the enter key, but the terminal standard
mandates that we use "\r\n" instead. This can be made into a setting later.


# 469e6cd2 05-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Log serial input to a file.


# 04434656 04-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Serial port configuration

* Dynamically update the serial port list in the connection menu when devices get added or removed
* Make the settings in the settings menu actually do something


# 47b44bbe 26-Jul-2012 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix SerialConnect gcc4 build.


# f441fd03 25-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Working serial connection.
Still need some work on displaying the right chars at the right place.


# dae0a4e0 23-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

WIP version of SerialConnect. Not working, but added to the tree anyway so :
* You can code review it
* You can help developping
Uses libvterm as the backend for parsing ANSI escape sequences. The lib was
changed slightly to build with GCC2. It could be used by Terminal as well as
it seems cleaner and more reliable than our current parser.


# d9e931526c35e4b184c180d84d1684fb3a776cf8 09-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

SerialConnect: add scripting support

It's now possible to configure the serial port through scripting:
hey SerialConnect set databits to 8
hey SerialConnect set parity to even
etc.

More useful is the ability to connect and disconnect from the port:
hey SerialConnect get port # returns "usb0"
hey SerialConnect set port to usb0
hey SerialConnect delete port

This allows a script to automatically disconnect SerialConnect, do
something with the serial port, and then reconnect SerialConnect. This
can be used for example to run a bootloader and update a firmware
through the same serial port used for debugging, something that's not
easily possible on other systems.


# 1e8185d90328dbfa91cdc3a37d6fb8b662bd4e21 22-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: even more style fixes.

Thanks to Korli for reviewing...


# 604dad94904781892ef4b637facfe848282c206d 22-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix return and backspace keys.


# c53c7dded24f3f9dfbf9da1fb5d6fc062c04faae 12-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Style fixes.


# 492ac4160ab1c3a9dfba827bcbae34f08494ee2d 22-Jan-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes CID 1162805, 1162804, 1162773, 1162759.


# e2367275a8c1ac6fd49c3925f39ec48ea2a7ded5 21-Dec-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

SerialConnect: fix baudrate settings save.

There was a mixup of using the baudrate value (eg 115200), constant
(B_115200_BPS = 17) and position in the menu (18), leading to the
baudrate setting not being saved and restored properly.


# ccc6b9be5b6527d14bb35b6ce57dcb422c0422f0 20-Nov-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Make SerialConnect more complete

* Mark the current connected device, or disable "Disconnect" menu when
there is no connection.
* Save and restore serial port settings
* Improve drawing code: make sure the border around the termview is
repainted, and do not leave a 1px space between lines unpainted.


# d481cb73703367a949cedb2abeb4140cf0d29f0d 04-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Fix newline handling

Haiku sends '\n' when you press the enter key, but the terminal standard
mandates that we use "\r\n" instead. This can be made into a setting later.


# 469e6cd2280c0d42e37df77f331248d29a5b5a8b 05-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Log serial input to a file.


# 04434656afa98246c3c2122f710bb448afd03919 04-Nov-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Serial port configuration

* Dynamically update the serial port list in the connection menu when devices get added or removed
* Make the settings in the settings menu actually do something


# 47b44bbedb1a865f522191905b3d5f7067826691 26-Jul-2012 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix SerialConnect gcc4 build.


# f441fd03b6a6b31341c3f1d58d30395d220bcf50 25-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Working serial connection.
Still need some work on displaying the right chars at the right place.


# dae0a4e0abda9ce3dff8e31007a8f66bc14421c8 23-Jul-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

WIP version of SerialConnect. Not working, but added to the tree anyway so :
* You can code review it
* You can help developping
Uses libvterm as the backend for parsing ANSI escape sequences. The lib was
changed slightly to build with GCC2. It could be used by Terminal as well as
it seems cleaner and more reliable than our current parser.