1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

338 Commits

Author SHA1 Message Date
052b216326 Bumped version to 2.2, rebuilt docs. 2.2 2016-10-04 19:51:29 +03:00
18ae4385a7 Merge pull request #39 from changyuheng/pr-flow-usage
Amend wrong flow control usage
2016-10-04 19:25:57 +03:00
367c9f9ed8 Merge pull request #40 from germuth/patch-1
Fixed some minor spelling mistakes in README
2016-10-04 19:24:04 +03:00
13dffed5b2 Fixed some minor spelling mistakes in README 2016-06-17 10:40:29 -07:00
98707cc8bb Amend wrong flow control usage 2016-06-12 15:42:41 -07:00
238547d717 Added Peter Bradstreet to CONTRIBUTORS 2015-10-27 02:17:17 +02:00
764b86ca31 Read multiple bytes from serial port
Don't read a single byte at a time from the serial port. Read
multiple (up to TTY_RD_SZ = 128) bytes with a single read(2) call. Also
write multiple bytes to the terminal (STO) with a single write(2) call.
2015-10-23 11:36:04 +03:00
1b8a9e42af Bumped version number to 2.2a 2015-10-16 00:38:50 +03:00
14288582f1 Changed version number to 2.1 2.1 2015-10-16 00:25:02 +03:00
72cab71ebd Define dummy CMSPAR (=0) if undefined
Some BSDs (and possibly other systems too) have no mark / space parity
support, and they don't define CMSPAR. Define a dummy (zero) CMSPAR in
these cases. If the user tries to set P_MARK or P_SPACE he will get
P_EVEN or P_ODD instead.
2015-10-15 23:42:43 +03:00
3842a9aefc Added Vicente Riera (Vincent.Riera@imgtec.com) to CONTRIBUTORS 2015-10-08 12:20:54 +03:00
44fe603663 Define a standard CMSPAR, if undefined, only on Linux. 2015-10-08 12:10:26 +03:00
26ec40be0e Merge branch 'vriera-master' 2015-10-08 12:04:15 +03:00
2c4c231759 term.c: define CMSPAR when a specific termios.h doesn't do it
CMSPAR is defined by bits/termios.h, and glibc has two flavours of it: a
generic one and an architecture-specific one. glibc will install the
architecture-specific one if it exists, otherwise it will install the
generic one. Only Alpha, MIPS, PPC and Sparc have their own
bits/termios.h.

The generic bits/termios.h, as well as the Alpha, PPC and Sparc flavours
do define CMSPAR. However, the MIPS flavour does not define it.

Define CMSPAR to the value from the generic value, which is also the
value known to the Linux kernel for MIPS.

Patch inspired by:

  http://git.buildroot.net/buildroot/commit/?id=78cd32631e959e04b1a2f18be7b0757e21482438

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
2015-10-07 17:48:59 +01:00
35e40193af Work around GLIBC issue for powerpc. Only for USE_CUSTOM_BAUD.
For powerpc the termios ioctl numbers are defined with reference to the
argument-structure size. This structure must be the one expected by the
kernel (kernel termios) not the one defined by GLIBC (in
termios.h). Work around this by defining ioctl numbers with reference
to the privately defined termios2 structure.

Applies only to Linux/PowePC, and only if USE_CUSTOM_BAUD is enabled.
2015-09-18 10:50:07 +03:00
999a2299b2 Fixed typo in man-page 2015-09-10 04:05:03 +03:00
3326701ff4 Updated README.md: Typos and wording. 2015-08-29 23:00:43 +03:00
35a94c1663 Updated README.md: Typos, re-wording, formatting. 2015-08-29 21:06:36 +03:00
261041b7ea Updated README.md: Formatting changes. 2015-08-29 18:06:00 +03:00
194ae7c8ce Updated README.md: Terminal server section + some formatting changes
Describe a possible setup of picocom as a very-simple very low-tech
terminal (console) server.
2015-08-29 18:00:52 +03:00
a65e9e1e3a USE_CUSTOM_BAUD support for linux/powerpc[64le].
The powerpc[64le] arch uses different ioctls for custom baud setting: It
uses the old TCSETS*, TCGETS ioctls, not the new TCSETS*2, TCGETS2 ones.

Cross-compiles cleanly, not tested (no h/w currently available).
2015-08-27 23:22:56 +03:00
bc9ab1fdf5 Removed unnecessary gnu-make-isms from Makefile.
Now picocom can be compiled using either GNU- or BSD-make
2015-08-27 16:30:56 +03:00
8e9cf33cc2 Updated README.md: Use GNU Make or compatible. 2015-08-26 23:17:42 +03:00
02c92807cb Incremented version number to 2.1a 2015-08-26 10:09:54 +03:00
c638cbed80 Changed version number to 2.0 2.0 2015-08-25 20:53:25 +03:00
31e1a13e22 Updated scripts 2015-08-25 20:46:02 +03:00
c560a119e9 Command view-status (C-v) also displays modem-control-lines status. 2015-08-25 16:20:22 +03:00
3f627d5cff term.[ch]: Added term_get_mctl() function
Returns the status of modem-control lines (DTR, DSR, DCD, etc...).
2015-08-25 16:19:26 +03:00
4f409a28e8 Increased TTY_Q_SY to 32KB 2015-08-25 15:08:08 +03:00
d21c94eb75 Changed TCSAFLUSH to TCSANOW
In all cases the pattern was tcflush(fd, TCIOFLUSH) followed by
tcsetattr(fd, TCSAFLUSH, ...). The problem was that, for some drivers,
tcflush() was apparently doing nothing, so tcsetattr() might hang
forever waiting for the output buffers to drain (possible if flow
control is enabled). Replaced tcflush(fd, TCSAFLUSH), with tcsetattr(fd,
TCSANOW) which, after a tcflush() should anyway be equivalent.
2015-08-25 15:00:18 +03:00
f6f71b6f5b Updated manual. New C-b (set baudrate) command 2015-08-23 15:54:33 +03:00
679f89b498 Added command "set baudrate" (**C-b**).
Set baudrate numerically.

Also reassigned the key for the "change databits" command from **C-b**
to **C-i**.
2015-08-23 15:51:48 +03:00
8f41c3440e Changed default receive-cmd to "rz -vv -E" 2015-08-23 15:50:29 +03:00
78d6c18bcc Check if baudrate is valid, when parsing command-line arguments.
Before, every baudrate was initially accepted, and term_set() failed
when it attempted to set the baudrate.
2015-08-23 14:30:24 +03:00
1c933e3797 Updated CONTRIBUTORS 2015-08-22 17:10:41 +03:00
ace77cfd15 Update README.md: Say "make clean" after editing Makefile. 2015-08-22 16:53:55 +03:00
5916997d40 Added term_baud_ok(). Check if baudrate is valid. 2015-08-22 16:49:57 +03:00
991ddfe638 fd_readline: Fixed bug when displaying non-printables (xput).
Was writing one char less than required.
2015-08-22 16:19:34 +03:00
b443e39e43 Converted mapage source to pandoc's MarkDown and moved it to section 1.
- Much metter groff and html formating. Much easier to write and edit.
- Page had no reason to be in section 8.
2015-08-22 14:46:24 +03:00
0f09071f69 Disabled USE_CUSTOM_BAUD support in (default) Makefile. 2015-08-20 17:22:42 +03:00
cfa943dfe2 Linux and custom serial-port baudrates (the gory details) 2015-08-20 13:55:21 +03:00
fd306077d6 Added support for setting custom baud rates.
If the requested baudrate is not a custom one (i.e. does not match one
of the Bxxx macros), then the cfsetospeed_custom() and
cfsetispeed_custom() are called to configure the "nexttermios" structure
with the requested non-standard baudrate. Same thing for reading the
baudrate: If cfgetospeed() and / or cfgetispeed() return a value that is
not among the Bxxx macros, cfgetospeed_custom() and cfgetispeed_custom()
are called, to read (and decode) the non-standard baudrate from the
"nexttermios" structure.

Currently the cf[set|get][i|o]speed_custom functions are only
implemented for Linux, and work only with non-ancient kernels (>2.6). So
in effect, custom baud-rate support is currently only supported for
Linux.
2015-08-20 12:40:28 +03:00
30a06fd05f termios2.[ch]: Comments clean-up and corrections. 2015-08-20 12:02:27 +03:00
495d142467 Cleaned-up and reordered architecture conditionals + comments. 2015-08-20 00:47:58 +03:00
46d2a20dcc Removed inclusion of unused header from termios2.c 2015-08-19 23:51:25 +03:00
a5208a560b termios2: Clear both CBAUD and CBAUDEX bits. Not only CBAUD.
This is pure pedantry since CBAUDEX *is* included in CBAUD, but lets be
explicit.
2015-08-19 21:31:35 +03:00
6642a7f1f2 Moved definition of termios2 struct and related macros to termbits2.h
Also: Fill the user-space termios structure's "c_cc[]" slots beyond
K_NCCS with _POSIX_VDISABLE.
2015-08-19 09:45:40 +03:00
fa16dbc429 Defined macros to override tcXXX / cfXXX functions with tc2 equivalent.
They become:

  tcsetattr --> tc2setatter
  tcgetattr --> tc2getattr
  cfsetispeed --> cf2setispeed
  cfgetispeed --> cf2getispeed

Also defined:

  cfsetospeed_custom, cfsetispeed_custom

And

  cfgetospeed_custom, cfgetispeed_custom
2015-08-19 09:39:53 +03:00
2741018a66 Removed debugging helpers. 2015-08-19 09:38:56 +03:00
e709254a9b Merge branch 'master' into custombaud 2015-08-19 01:26:18 +03:00