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

819 Commits

Author SHA1 Message Date
Karl Fessel
4147042bc1 sys/shell: add missing includes 2022-02-28 14:53:07 +01:00
Francisco
ff39d5f388
Merge pull request #17657 from benpicco/shell/udp_cmd-fix
shell/sc_gnrc_udp: always use delay in µs
2022-02-22 10:44:57 +01:00
chrysn
40f7c66625
Merge pull request #17660 from chrysn-pull-requests/vfs-drop-per-fs-fstatvfs
vfs: Introduce reliable disk enumeration
2022-02-17 18:47:41 +01:00
chrysn
b9b0ca8972 sys/shell/vfs: Use vfs_iter_mount_dirs instead of vfs_iter_mounts
This solves highly theoretical race conditions of file systems being
unmounted in an application while a shell `df` runs, fixes the previous
weird behavior that `/mountpoint/non-existant-path` could be df'd and
would even report that non-existant path as a file name, but more
practically ensures that an example of vfs_iter_mount_dirs is around.
2022-02-16 19:15:02 +01:00
Benjamin Valentin
609ed81f36 sys/shell: add vfs mount command 2022-02-16 18:55:26 +01:00
Benjamin Valentin
8bb405a493 shell/sc_gnrc_udp: always use delay in µs 2022-02-15 15:08:53 +01:00
Benjamin Valentin
d5dee30368 shell/sc_gnrc_udp: don't add delay after last packet 2022-02-14 17:58:20 +01:00
Benjamin Valentin
e22698f9cd shell/sc_gnrc_udp: set proper timeout based on which timer is used 2022-02-14 17:52:55 +01:00
Benjamin Valentin
0cd3cf4506 sc_vfs: print files with unknown type 2022-02-08 16:28:33 +01:00
Benjamin Valentin
a486bae55a sc_vfs: print file size
This prints the size of the displayed files in `ls`.
It also makes it easier to distinguis files from directories.
2022-02-08 13:23:42 +01:00
Francisco
dbae3ed706
Merge pull request #16860 from haukepetersen/add_nimble_netifextadv
nimble/netif: add support for BT5 PHY modes
2022-02-04 11:16:11 +01:00
benpicco
5a57dec71a
Merge pull request #17093 from maribu/core/change_prio
core/sched: add sched_change_priority()
2022-01-28 20:01:20 +01:00
Hauke Petersen
7c3f4e0fe9 shell/sc_nimble_statconn: allow to set PHY mode 2022-01-27 10:30:29 +01:00
Hauke Petersen
f9386b4af7 shell/sc_nimble_netif: extend to support PHY modes 2022-01-27 10:30:29 +01:00
Jose Alamos
9955a35c63
[treewide] lora: use int16_t for RSSI value
The RSSI values reported by LoRa transceiver can be less than -127.
Therefore, `int8_t` is not enough. This commit defines the RSSI of
`netdev_lora_rx_info` as `int16_t` and adapt the drivers accordingly
(sx126x, sx127x).
2022-01-17 17:54:18 +01:00
Hauke Petersen
bc0adc19a8 shell/sc_gnrc_udp: rename static functions 2021-12-14 13:50:38 +01:00
Hauke Petersen
13363782b2 shell/sc_gnrc_udp: mark all feasible params const 2021-12-14 13:50:29 +01:00
benpicco
cfaa167469
Merge pull request #16598 from benpicco/sys/shell/udp
examples/gnrc_networking: move udp command to shell commands
2021-12-13 15:03:18 +01:00
Hauke Petersen
c7e11d5904 shell/sc_nimble_statconn: adapt to new return vals 2021-12-06 11:28:04 +01:00
Francisco
3afa47d8f2
Merge pull request #14955 from maribu/cflags-cast-align
makefiles/cflags.inc.mk: Add -Wcast-align
2021-12-03 17:47:24 +01:00
Marian Buschsieweke
be42be9d15
sys/shell: use container_of in sc_gnrc_netif 2021-12-03 10:12:36 +01:00
Hauke Petersen
47d1f72a6c shell/sc_nimble_netif: remove ping sub-command 2021-12-02 23:31:33 +01:00
Hauke Petersen
97780b3610 shell/sc_nimble_netif: adapt to scanner changes 2021-12-02 23:31:33 +01:00
Martine Lenders
76bda73235
Merge pull request #17261 from benpicco/shell/gnrc_icmpv6_echo-hang
shell/gnrc_icmpv6_echo: Fix hang with no msg queue
2021-12-01 00:16:30 +01:00
Gunar Schorcht
818c127513 sys/shell: update sc_i2c_scan to new I2C API 2021-11-29 06:35:25 +01:00
Benjamin Valentin
be8a364bb4 shell/gnrc_icmpv6_echo: fix duplicate datalen check 2021-11-24 12:07:14 +01:00
Benjamin Valentin
7d1dd27756 shell/gnrc_icmpv6_echo: Fix hang with no msg queue
`msg_avail()` will return -1 if the thread has no message queue.
Casting this to unsigned will result in the `ping` command to try
receiving 4294967295 messages, which hangs the shell.

Drop the cast to `unsigned` and the loop behaves as intended.
But then it's still wrong: If new messages become available, they
would be ignored.

So change the `for` loop to a `while` loop. The index variable is
not used at all.
2021-11-24 12:00:14 +01:00
Leandro Lanzieri
43c567ab53
sys/shell/commands/sc_dfplayer: make cppcheck happy 2021-11-22 12:25:58 +01:00
Leandro Lanzieri
e525e23143
drivers/dfplayer: add no_strerror option to Kconfig 2021-11-22 12:25:57 +01:00
Benjamin Valentin
f362a19eed sys/shell: hide random commands behind random_cmd pseudo-module
These commands cost 248 bytes of memory, we don't want to always
include them when the `random` module is selected.
2021-11-19 16:53:46 +01:00
Marian Buschsieweke
ed9bf358c5
sys/shell: Add nice shell command via module nice 2021-11-02 20:44:32 +01:00
Erik Ekman
ccfe80c844 sys/shell/gnrc_netif: Allow 'ifconfig help'
Currently a valid netif name must be passed to show the usage
instructions:

```
> ifconfig help
error: invalid interface given
> ifconfig 6 help
usage: ifconfig
usage: ifconfig <if_id> [up|down]
[...]
```

`ifconfig --help` is also accepted.
2021-10-22 14:14:58 +02:00
Hauke Petersen
b985ad2330 sys/shell/sc_nimble_netif: add ping subcommand 2021-10-06 16:47:34 +02:00
Hauke Petersen
8ac2ad8531 shell/sc_nimble_netif: adapt to scanner API change 2021-09-17 14:46:05 +02:00
Hauke Petersen
a83b171330 shell/sc_nimble_netif: adapt to new return values 2021-09-10 21:10:53 +02:00
Hauke Petersen
9106c56810 sc/nimble_netif: add cmd for diricted advertising 2021-09-09 15:19:10 +02:00
Benjamin Valentin
73b929b3b9 test_utils: add UDP benchmark 2021-09-02 23:12:31 +02:00
benpicco
149de73160
Merge pull request #16741 from benpicco/net_lwip_netif_get_name
pkg/lwip: implement netif_get_name()
2021-08-26 14:37:58 +02:00
Benjamin Valentin
4464999259 sys/shell: lwIP: make use of netif_get_name() 2021-08-26 13:20:24 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Benjamin Valentin
3b40ca2b26 shell/gnrc_icmpv6_echo: test for ICMPv6 echo reply corruption
The Linux ping utility has the nice feature that fills the ICMPv6 echo
request payload with a pattern `payload_index & 0xFF`.
Then the ICMPv6 echo response payload is checked to verify that the pattern
is still intact.

This way corrupted messages can be detected.
In the past that revealed some 6lo-fragmentation bugs in Linux when
corrupted replies arrived.

This feature is also useful for RIOT, so implement it in RIOTs `ping`
command.
2021-08-11 12:04:22 +02:00
Benjamin Valentin
da7d3779bf examples/gnrc_networking: move udp command to shell commands
The `udp` command is a valuable debugging tool that is also useful
outside of the gnrc_networking example.

To enable easy sending of udp messages in other applications during
development, move the `udp` command to the shell module and introduce
the `gnrc_udp_cmd` pseudo-module to enable it.
2021-07-21 11:19:47 +02:00
Benjamin Valentin
657be1c488 sys/shell/commands: gnrc_icmpv6_echo: use netutils_get_ipv6() 2021-07-20 22:44:40 +02:00
017d33825f sys/shell/commands: gnrc_icmpv6_echo: use msg_avail() 2021-07-05 10:35:40 +02:00
Hauke Petersen
1fb34b364b sys/shell/sc_gnrc_rpl: do not print tricke TC 2021-06-14 11:22:49 +02:00
chrysn
9ece00f10d sys/shell/sc_gnrc_rpl: Err out early if RPL not even started
Closes: https://github.com/RIOT-OS/RIOT/issues/16357
2021-04-20 17:04:27 +02:00
Hauke Petersen
feeffb2b2e sys/shell/sc_gnrc_6ctx: use ztimer if available 2021-04-16 11:38:54 +02:00
Hauke Petersen
d605cf4c15 shell/sc_nimble_netif: fix _connect_name scan dur 2021-04-15 12:42:41 +02:00
Hauke Petersen
01770fb9ae sys/shell/sc_nimble_netif: use ztimer 2021-04-15 09:11:53 +02:00
Marian Buschsieweke
78aa197ab8
sys/shell/commands/sc_sht1x.c: fix style 2021-04-01 10:19:30 +02:00