1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

582 Commits

Author SHA1 Message Date
Marian Buschsieweke
50e939e808
Merge pull request #11092 from benpicco/rssi_ping
shell_commands: include RSSI in ping output
2019-03-15 13:51:22 +01:00
Benjamin Valentin
d89dd0d9e9 shell_commands: include RSSI in ping output
I was looking for a quick way to gauge the link quality between two nodes,
so I added the rssi to the output of the ping6 command.

Maybe this is generally useful to have.
2019-03-06 10:58:09 +01:00
MrKevinWeiss
7a220d16a8 sys/shell: Add shell command for app_metadata
This make an easily accessable shell command to print app_metadata
2019-03-05 16:10:06 +01:00
Marian Buschsieweke
aaacd16248
sys/shell: NETOPT_MAX_{PACKET_SIZE -> PDU_SIZE}
Updated the ifconfig shell command to use NETOPT_MAX_PDU_SIZE instead of the
deprecated NETOPT_MAX_PACKET_SIZE
2019-02-18 20:18:48 +01:00
Juan I Carrano
f344bb20c5
Merge pull request #10630 from jcarrano/shell-flush-echo
sys/shell: ensure character is flushed when echoing.
2019-02-12 15:19:17 +01:00
Martine Lenders
45ec766871 shell_commands: adapt ping6 to original-ping-like implementation
Loosely based on [the original ping] and [netutil]'s ping

New features (compared to old RIOT version):
 - non-positional parameters
 - Better duplicate detection (addresses #9387)
 - Better asynchronous behavior
 - Potential for future move to `sock_ip`
 - (Optional) DNS-support
 - Multithreading-safe (in case shell-command handler gets called
   from multiple threads)

[the original ping]: http://ftp.arl.army.mil/~mike/ping.html
[netutil]: https://www.gnu.org/software/inetutils/
2019-02-04 12:42:49 +01:00
Peter Kietzmann
b927c6ffa6
Merge pull request #10923 from maribu/ifconfig_l2pdu
shell/ifconfig: Add L2-PDU info
2019-02-04 08:55:32 +01:00
Marian Buschsieweke
996a837fff
shell/ifconfig: Add L2-PDU info
When IPv6 is enabled, the MTU is given. So users(*) sending IPv6 packets can
easily figure out what the supported maximum protocol unit is.

However, when IPv6 is disabled and a user wants to send layer 2 frames directly,
no information about the maximum PDU is available using the shell.

When 6LoWPAN is used, a user may be interested in the layer 2 PDU as well in
order to avoid layer 2 fragmentation.

This PR adds the L2-PDU info to the output of the ifconfig shell command, which
is printed regardless of the use of IPv6.

(*): Here "users" refers to human beings interacting with the shell.
Applications can get the maximum PDU of each layer more easily using
gnrc_netapi_get() with NETOPT_MAX_PACKET_SIZE instead of using a shell command.
2019-02-01 16:55:16 +01:00
Marian Buschsieweke
0351577e18
shell/ifconfig: Fixed stringification 2019-02-01 16:22:37 +01:00
Marian Buschsieweke
d180339e5a
sys/shell: Removed fragments of old driver
The shell handlers of the old, depreciated and removed LTC4150 driver are still
in place. This commit removes them
2019-01-28 13:33:14 +01:00
Martine Lenders
28204e0a4f sc_gnrc_ipv6_nib: check interface existence
Currently an interface's existence is not checked when it is supplied
by the user with the `nib` command. This can lead to assertion errors
as soon as the generated entry tries to resolve an address or route
generated with that command and the network interface not being found.
2019-01-28 09:16:51 +01:00
Martine Lenders
8bd9e0f0c2 shell: sc_icmpv6_echo: release payload when pktbuf full
Otherwise it gets never released

Co-Authored-By: Gunar Schorcht <gunar@schorcht.net>
2019-01-15 15:07:46 +01:00
Martine Lenders
e88abc49b8 shell_commands/sc_gnrc_netif: get 6Lo flag 2019-01-03 16:21:52 +01:00
Juan Carrano
b34dc3a565 sys/shell: ensure character is flushed when echoing.
When using a serial terminal without local echo, the current line
would not get updated as the user typed because the shell module's
readline() was not flushing each character.

This commit fixes that behavior. For additional clarity, fflush is
turned into a macro (flush_if_needed) which expands to either a call
to fflush() or empty, according to the standard library used.

This also fixes the erase/line editing behavior (the delete characters
were not being flushed either.)
2018-12-19 12:08:54 +01:00
Marian Buschsieweke
92347a0dd8
sys/shell: Removed unneeded cpp directives 2018-12-18 16:37:52 +01:00
Martine Lenders
e4a922260e shell_commands/ifconfig: mark TENTATIVE addresses correctly 2018-12-04 15:53:46 +01:00
cladmi
ebd438cb58
sys/shell: select sc_rtc on USEMODULE
sc_rtc.c should only be compiled if periph_rtc module is actually used.

In practice there was not linking error when PERIPH_OPTIONAL|_REQUIRED
was not set as shell_commands hides calling the functions with
'#ifdef MODULE_PERIPH_RTC'.
2018-11-19 16:00:43 +01:00
Lucas Jenß
6ed11de354
Merge pull request #10105 from x3ro/fix-shell-prompt-infinite-loop
Do not try to continue reading shell commands if input source is closed
2018-10-30 19:24:01 +01:00
Lucas Jenss
62cecc9496 Do not try to continue reading shell commands if input source is closed
In RIOT native, sending CTRL+D to a shell started using shell_run would resulted in and
endless prompt loop. I've been unable to trigger such a behaviour
on actual hardware using a UART connection, but calling `pm_off` seemed
like a better alternative than having an `#ifdef BOARD_NATIVE`.

Fixes #9946
2018-10-30 19:06:42 +01:00
Hauke Petersen
cfe4370a95 sys/shell/rdcli: rename to sc_cord_ep.c 2018-10-17 15:21:49 +02:00
Hauke Petersen
152623577e net/rdcli_config: rename to cord_config 2018-10-17 09:29:19 +02:00
Hauke Petersen
787524400c net/rdcli_common: rename to cord_common 2018-10-17 09:29:19 +02:00
Hauke Petersen
899d7fee8a shell: add shell command for rdcli 2018-10-12 14:41:40 +02:00
Joakim Nohlgård
3466a862df
Merge pull request #9985 from kaspar030/add_missing_string.h_includes
sys: add missing <string.h> includes
2018-09-21 06:51:01 +02:00
3db24b4603 sys: saul: add missing stddef.h include (for NULL) 2018-09-20 23:54:46 +02:00
05b6af466c sys: add missig <string.h> includes 2018-09-20 23:47:40 +02:00
smlng
990a76c80c pkg: update ccn-lite and adapt shell commands
This updates the ccn-lite package version which brings in the
    latest upstream fixes for some compiler issues found on macOS
    with clang and newer GCC versions.

    A minor adaption of the RIOT shell commands is also included.
2018-08-10 10:21:24 +02:00
Sebastian Meiling
26c689ffbb
Merge pull request #9548 from RIOT-OS/new_i2c_if3
I2C: introduce and adapt new I2C interface (2nd attempt)
2018-08-02 12:00:59 +02:00
7a12293eb1 drivers/at30tse75x: adapt to new I2C api 2018-07-25 12:01:38 +02:00
Gaëtan Harter
eec88e3e53
shell/sc_can: fix uninitialized warning
When compiled for `hifive1` board with `gcc-7.2.0` this warning was raised:

'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
2018-07-24 13:58:21 +02:00
Marian Buschsieweke
de9b67bdc2
drivers/sht1x: Major refactoring
- Use RIOT's GPIO interface to access the sensor to increase portability
- Changed API to allow more than one sensor per board
- Added `sht1x_params.h` that specifies how the sensors is connected - each
  board can overwrite default settings by #defining SHT1X_PARAM_CLK and
  SHT1X_PARAM_DATA
- Changed arithmetic to use integer calculations only instead of floating point
  arithmetic
- Added support for checking the CRC sum
- Allow optional skipping of the CRC check to speed up measuring
- Added support for advanced features like reducing the resolution and skipping
  calibration to speed up measuring
- Allow specifying the supply voltage of sensor which heavily influences the
  temperature result (and use that information to calculate the correct
  temperature)
- Reset sensor on initialization to bring it in a well known state
- Support for the obscure heater feature. (Can be useful to check the
  temperature sensor?)
- Updated old SHT11 shell commands to the new driver interface, thus allowing
  more than one SHT10/11/15 sensor to be used
- Added new shell command to allow full configuration of all attached SHT1x
  sensors
- Removed old command for setting the SHT11 temperature offset, as this feature
  is implemented in the new configuration command
2018-06-27 08:58:00 +02:00
Marian Buschsieweke
d208c224b0
drivers: Renamed module sht11 to sht1x
The sensor family SHT10, SHT11 and SHT15 only differ in their accuracy (as in
calibration, not as in resolution). Thus, the same driver can be used for all.
The new driver name better reflects this fact.
2018-06-27 08:57:58 +02:00
Martine Lenders
a6a7357077 shell_commands: add command for packet buffer stats
I'm using something like this command for a while now for debugging
GNRC. Usually, I just patch it into the application I'm using it with,
but I think there is a benefit to also provide it to RIOT upstream
properly.
2018-06-22 09:51:17 +02:00
7d013eb2b6 sys: fix doxygen grouping 2018-06-11 19:12:02 +02:00
PeterKietzmann
d3d012c077 shell/ccnl: use new CS add method 2018-06-10 12:11:44 +02:00
BytesGalore
0c034c9220 rpl: add DIS Solicited Information option 2018-06-04 18:10:22 +02:00
Marian Buschsieweke
b4b088be9e
shell_commands/ping6: Fixed bug in calculation of average round trip time
The average rout trip time has been to low in case packets were lost, as lost
packets were treated as if that had an RTT of 0.
2018-05-29 12:36:05 +02:00
Cenk Gündoğan
441f11ea45 gnrc_rpl: shell: adapt to evtimer for RPL events 2018-05-23 09:42:12 +02:00
Cenk Gündoğan
4c9e947d43 gnrc_rpl: adjust author and copyright 2018-05-22 23:46:55 +02:00
Bas Stottelaar
7781da7799 sys: netopt: add busy option 2018-05-21 16:37:38 +02:00
Bas Stottelaar
02395e593d sys: netopt: add checksum option 2018-05-21 16:37:38 +02:00
Martine Lenders
dbccf06c5e
Merge pull request #8575 from miri64/shell/fix/6ctx
shell: adapt 6ctx command for NIB
2018-04-13 17:12:41 +02:00
PeterKietzmann
86c319aea7 pkg/ccn-lite:enable CS dump and rename shell command 2018-04-09 10:38:32 +02:00
Martine Lenders
ce807173ff
Merge pull request #8601 from bergzand/pr/netopt-link-status
netopt/drivers: Add phy link status output
2018-03-18 15:25:01 +00:00
9d61314c09
shell/netif: Add link status to interface status output 2018-03-18 15:32:40 +01:00
Cenk Gündoğan
92b761df2f pkg: ccn-lite: minor changes to integrate latest ccn-lite features 2018-03-05 21:25:26 +01:00
Martine Lenders
ed0fbbb2a3 shell: adapt 6ctx command for NIB
This somehow was left by the wayside when we moved from the old ND to
the NIB. Also piggybacks some fixes.
2018-02-16 12:22:56 +01:00
4ec8f4c2fc sys: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
Martine Lenders
e6fa76e9b0 shell_commands: sntp: increase default timeout 2018-01-30 21:07:26 +01:00
Martine Lenders
3c5d476f84 shell_commands: specify SNTP timeout time unit 2018-01-30 21:07:26 +01:00