Tiago Medicci Serrano
3516a5d2ee
wireless/wapi: support WPA3 on wapi psk
command
...
Similarly to the alg_flag (which can be set by text), the ver_flag
is able to select the WPA version which will be sent to the Wi-Fi
driver through the `IW_AUTH_WPA_VERSION` command. A new bit field
(IW_AUTH_WPA_VERSION_WPA3) was created to indicate WPA3 is set.
It's up to the arch's Wi-Fi driver to implement handling of this
new bit field and config the underlying driver to handle WPA3 on
AP and/or STA mode.
This implementation doesn't interfere with commonly used commands.
`wapi psk wlan0 mypasswd 3` still selects CCMP algorithm and WPA2
and is equivalent to `wapi psk wlan0 mypasswd 3 WPA_VER_2`.
One can use `wapi psk wlan0 mypasswd 3 WPA_VER_3` to set WPA3.
2023-04-29 10:02:52 -03:00
wangchen
c2f75330f7
nshlib/netcmds:support to set MTU
...
Usage:ifconfig interfacename mtu ***
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2023-04-27 18:02:23 +08:00
Petro Karashchenko
a926c8bf12
include/netutils: fix code alignments
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-04-19 03:11:19 +08:00
Petro Karashchenko
f15605da2f
nuttx: add missing FAR and CODE
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-04-19 03:11:19 +08:00
Xiang Xiao
aa99d267b7
Change the private default signal number to 32
...
and remove the unused private signal number macro
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-05 03:38:24 -07:00
raiden00pl
220a5a2ce6
nxscope: use the entire reserved channel length when sending strings
...
The previous version makes stream data parser too complicated and susceptible to errors.
2023-02-08 10:29:28 +08:00
qiaohaijiao1
61c4050d31
nxrecorder: add support to record media file.
...
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-02-02 22:12:00 +08:00
qiaohaijiao1
3648ddce0f
nxlooper: add loopback of compressed audio data.
...
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-02-02 14:36:08 +08:00
qiaohaijiao1
20fb7e1898
nxplayer: enqueue streaming data to audio driver.
...
audio offload playback, change data form to streaming.
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-01-31 22:26:39 +08:00
ligd
0e06cfeaec
system/media: replace sem lock with pthread_mutex
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-20 22:47:26 +08:00
Zhe Weng
64f9dc100c
netutils: Add iptables in netlib.
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-29 14:26:41 +08:00
raiden00pl
cd499f9d37
add the NxScope library - a real-time data logging tool
2022-12-28 01:40:24 +08:00
Xiang Xiao
d1e46c2d3e
compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
...
align with other macro naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:12 +02:00
huangjian
19553cb395
nshlib:fix "Long line"
...
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-20 23:39:36 +08:00
huangjian
9f3e2cd234
nshlib:add platform_skip_login to nshlib.h
...
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-20 23:39:36 +08:00
zhanghongyu
c7e8ade590
arp: change arptable get struct from arp_entry_s to arpreq
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-12-14 21:19:37 +08:00
zhanghongyu
df3121213e
cmd_arp: add device input for arp interface
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-12-14 21:19:37 +08:00
Peter Bee
38a190156a
apps/system: add nxcamera app
...
Add NxCamera app similar to NxLooper, which can be used to control video
capture device. The basic capture n' display function is complete, while
file output and camera control features are left TODO.
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2022-12-10 02:46:31 +08:00
huangjian
5a623cc9e3
nshlib:add platform challenge function for nsh login
...
Signed-off-by: huangjian <huangjian@xiaomi.com>
2022-12-04 19:24:57 +08:00
qiaohaijiao1
05eadd1bd6
nxplayer: add mp3 offload playback demo
...
Mask: Only parse ID3v2 header simple.
Usage:
nxplayer
device pcm0p
play /stream/1.mp3
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2022-12-02 22:51:58 +08:00
Xiang Xiao
76e6a03d71
fix Error: include/graphics/twm4nx/apps/ccalibration.hxx:149:34: error: private field 'm_stop' is not used [-Werror,-Wunused-private-field]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-11 21:12:22 +01:00
Xiang Xiao
5f4525bf0c
Fix Error: include/graphics/twm4nx/cwindow.hxx:145:35: error: private field 'm_eventObj' is not used [-Werror,-Wunused-private-field]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-11 21:12:22 +01:00
Xiang Xiao
dbc757d79d
Fix error: 'CTouchscreen' defined as a class here but previously declared as a struct
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-07 21:38:21 +01:00
Xiang Xiao
7bc1c17ecd
Fix error: private field 'm_stop' is not used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-07 21:38:21 +01:00
Xiang Xiao
56da7efc57
Fix error: struct 'CWindow' was previously declared as a class
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-07 21:38:21 +01:00
Xiang Xiao
a95d34c346
Fix error: 'NXWidgets::CTextBox::insertText' hides overloaded virtual functio
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-07 21:38:21 +01:00
Xiang Xiao
36a0c924f7
netutils: Support telnetd in the kernel mode
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2022-11-07 15:24:08 +09:00
Xiang Xiao
58c3dbac95
Revert "netutils: Make telnetd_daemon() in public"
...
This reverts commit 000d1455b4
.
2022-11-07 15:24:08 +09:00
raiden00pl
8d61a10a74
industry/foc/foc_ident: make the Ki resistance measurement parameter configurable
...
The hardcoded parameter may not be suitable for various types of motors
2022-10-24 01:14:52 +08:00
Petro Karashchenko
7c8f0e41fc
Revert "Revert "include/canutils/lely: fix file path in comment header""
...
This reverts commit 8e1ee24f9e
.
2022-10-24 01:13:27 +08:00
Petro Karashchenko
8e1ee24f9e
Revert "include/canutils/lely: fix file path in comment header"
...
This reverts commit bc84e5eb3c
.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
bc84e5eb3c
include/canutils/lely: fix file path in comment header
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
raiden00pl
003dbe1837
Lely CANopen port
2022-10-22 23:31:26 +08:00
Xiang Xiao
b659f0fbdf
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 18:40:23 +02:00
Xiang Xiao
893387b2c5
Fix the minor style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
Xiang Xiao
9291d07a87
Fix the coding style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-06 12:20:32 +02:00
Alan Carvalho de Assis
ed78d25934
webserver: Help users to easily identify missing configurations
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-04 20:22:33 +02:00
Fotis Panagiotopoulos
1975f7c485
nxstyle fixes.
2022-09-30 14:23:04 +08:00
Fotis Panagiotopoulos
2c0c02fe78
Fixed non-UTF8 characters.
2022-09-30 14:23:04 +08:00
Fotis Panagiotopoulos
387eba2efd
ftpd: server port made configurable.
2022-09-04 11:03:28 -04:00
Fotis Panagiotopoulos
e3a9be0d05
Minor changes in ftpd.
2022-09-03 21:49:15 +08:00
Takayoshi Koizumi
80eb94da8a
audioutils/nxaudio: Add audio utility library for nuttx audio
...
Add an utility library for easier use of NuttX's Audio driver.
2022-08-25 20:29:55 +09:00
Takayoshi Koizumi
40c506f3a0
audioutils/fmsynth: Add FM synthesizer library
...
Add simple FM synthesizer library in audioutils.
2022-08-25 20:29:55 +09:00
zouboan
bd82e8d39f
improve flux linkage identification method
...
improve flux linkage identification method
2022-08-22 13:57:12 +08:00
zhanghongyu
8fe295de32
wireless: Add ioctl cmd to setting PTA prio
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-18 11:48:23 +08:00
Masayuki Ishikawa
3f70a78dd3
nshlib: Make nsh_telnetmain() in public
...
Summary:
- This commit makes nsh_telnetmain() in public so that we can
call it from applications.
- Also, CONFIG_NSH_DISABLE_TELNETSTART is introduced so that
we can disable nsh_telnetstart()
Impact:
- nsh with telnet daemon
Testing:
- Tested with sabre-6quad:netknsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-09 23:17:25 +08:00
Masayuki Ishikawa
000d1455b4
netutils: Make telnetd_daemon() in public
...
Summary:
- This commit makes telnetd_daemon() in public so that we
can call it from applications.
- Also, adds new configs to support posix_spawnp()
Impact:
- telnetd only
Testing:
- Tested with sabre-6quad:netknsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-08-09 23:17:25 +08:00
liyi
c5102fe504
ifconfig support set IPv6 DNS server
...
Signed-off-by: liyi <liyi25@xiaomi.com>
2022-08-04 19:47:15 +08:00
Peter van der Perk
819c34e975
Add libcanardv1 for Cyphal, rename libcanard to libcanardv0
2022-08-02 17:01:28 +08:00
haopengxiang
6b635d575a
gps/minmea: replace minmea file with github repo
...
apply kosma/minmea origin github repo in gpsutils
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2022-07-26 19:29:12 +08:00
Xiang Xiao
c252ec1481
Add printflike to all printf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
chao.an
61250d5516
wireless/wapi: add get country code support
...
Country command with no args to get the ccode:
Get country code:
cp> wapi country wlan0
CN
Set country code:
cp> wapi country wlan0 JP
Get country code:
cp> wapi country wlan0
JP
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-23 23:40:20 +08:00
YAMAMOTO Takashi
d435858c53
webclient: Export a few ops on webclient_conn_s
...
* Make webclient_conn_s self-contained so that it can be
used without webclient_context.
* Add missing FAR.
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
fca5b186b1
webclient: Make webclient_get_tunnel returns void
...
As it does never fail.
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
5cfc5cd4f2
webclient.h: Update the state diagram after the tunnelling stuff
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
2be66e83a4
webclient_conn_s: Add a missing FAR
2022-06-20 13:56:53 +08:00
YAMAMOTO Takashi
159ca00752
webclient: Allow users to specify extra headers for proxy
...
My primary motivation at this point is to use it for basic proxy auth.
(specify "Proxy-Authorization" header)
But there can be other use cases for proxy-specific extra headers.
If/when we want to support other non-trivial auth methods, probably
a callback-based mechanism will be necessary. But at this point,
this serves my purpose well.
2022-06-15 20:40:53 +08:00
Norman Rasmussen
ce7c9ae65b
wireless/wapi: fix wapi wpa_wconfig_s sta_mode data type error
2022-06-13 21:01:13 +08:00
YAMAMOTO Takashi
5e3a3dae10
webclient.h: Avoid relying on indirect inclusion
...
Include stdint.h for uint16_t explicitly.
This was necessary when I was trying to build this natively
on Ubuntu. It seems some other headers happen to pull
the uint16_t definition by luck on NuttX and macOS.
2022-06-03 17:28:05 +03:00
YAMAMOTO Takashi
c116f8b673
webclient: Add https proxy (https over http) support
...
Use a separate webclient_context for tunnel establishment.
I chose this way (instead of having tunnelling steps in
the state machine of a single webclient_context) because
I want to allow tunnelling of non-HTTP protocols sooner or later.
2022-06-02 12:45:41 +08:00
YAMAMOTO Takashi
a95dd30f0e
webclient: Add tunneling support
...
Add a primitive API for tunnel establishment.
(WEBCLIENT_FLAG_TUNNEL and webclient_get_tunnel)
I plan to use this to implement https proxy support.
That is, the primary user will be webclient itself.
2022-06-02 12:45:41 +08:00
zouboan
30dbdf71ff
industry/foc foc_ident: adding flux linkage identification
2022-06-01 01:06:26 +08:00
Ville Juven
871c59dc31
nxwm: Fix warning about on_exit() dependency
2022-05-25 21:52:22 +08:00
YAMAMOTO Takashi
41aee40a2c
webclient: Add proxy setting in webclient_context
2022-05-24 22:42:54 +08:00
Takayoshi Koizumi
5040719911
audioutils/mml_parser: Add mml_parser library
...
Add Music Macro Language parser library in audioutils.
audioutils is also created for several audio utilities
not only mml_parser.
2022-05-07 13:56:53 +08:00
Alin Jerpelea
d60fb1168d
nxstyle fixes
...
fixes for nxstyle errors reported by CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
7c46bbc34d
include: netutils: pppd.h: update license to Apache
...
Brennan Ashton has signed the ICLA. As a result we can migrate the
license to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
zrrong
d17c9509f6
wireless/wapi: fix wapi wpa_wconfig_s alg data type error
...
Signed-off-by: zrrong <zrrong@bouffalolab.com>
2022-04-14 18:24:33 +03:00
ligd
9730eaad9e
nsh: sh_main also support isctty = true
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-03-30 22:47:37 +03:00
songlinzhang
f85388578c
Add dhcp6c module
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2022-03-19 23:25:50 +08:00
xuewenliang
c69ec94d13
Modifying the ping command
...
1、Round trip times in the ping command range from millisecond to subtle
2、Add statistics on RTT related min/avg/Max/mdev in ping program
3、The ping command supports ctrl+c interruption operations
Signed-off-by: xuewenliang <xuewenliang@xiaomi.com>
2022-03-18 09:54:01 +08:00
zhanghongyu
e0e41c5d7f
feature: wapi add encode parse when scan
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00
YAMAMOTO Takashi
44e80ac972
webclient: Implement chunked transfer (receiving side)
...
This is a requirement for HTTP 1.1.
Tested against:
* http://httpbin.org/stream/10
* Docker API
2022-03-08 09:39:55 +08:00
YAMAMOTO Takashi
3759da3d00
webclient: Add a parameter to specifiy protocol version
2022-03-08 09:39:55 +08:00
Alin Jerpelea
73258b3b39
apps: wireless: ieee802154: nxstyle fixes
...
fix for errors reported by the nxstyle tool
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
Alin Jerpelea
c7c556ebae
apps: wireless: ieee802154: update licenses to Apache
...
Gregory Nutt has submitted the SGA
Verge Inc has submitted the SGA
Sebastien Lorquet has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-03-08 01:44:49 +08:00
raiden00pl
fbb09ff128
foclib/fixed16: add support for observers
2022-02-20 21:55:14 +08:00
zouboan
34e4da2304
industry/foc: add support for angle from sensorless observer
2022-02-19 15:37:35 +01:00
raiden00pl
5ef9d3630b
industry/foc/float: add velocity observers support
2022-02-16 23:49:12 +08:00
Petro Karashchenko
9480c0ec12
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
Xiang Xiao
66dbaa4539
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
...
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 16:04:29 -03:00
Xiang Xiao
58586f86e3
system/cle: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
Xiang Xiao
c8439368ac
system/readline: Make it work without CONFIG_FILE_STREAM
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-30 22:06:03 -06:00
songlinzhang
e0fc53b23c
netutils/dhcpc: add non-blocking interface
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2021-11-29 02:04:49 -06:00
raiden00pl
54c0b9a9d8
industry/foc/foc_align: add support for sensor index search
2021-11-07 03:46:17 -06:00
Gustavo Henrique Nihei
fbdfb0ef96
crypto/mbedtls: Bump Mbed TLS to version 3.0.0
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:19:58 -05:00
Brennan Ashton
c2057d77b2
crypto: Initial support for mbedtls
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-11-04 15:20:14 -03:00
raiden00pl
4001d27571
industry/foc: add support for Hall sensor
2021-10-30 10:17:07 -05:00
raiden00pl
5b52247625
industry/foc: add support for qenco
2021-10-30 10:17:07 -05:00
raiden00pl
515a25fbb8
industry/foc/*/foc_velocity.c: add methods to set the zero velocity and direction of the velocity
2021-10-30 10:17:07 -05:00
raiden00pl
6cafdae44a
industry/foc/*/foc_angle.c: add methods to set the zero angle and direction of the angle
2021-10-30 10:17:07 -05:00
raiden00pl
2e61b3e310
industry/foc/*/foc_velocity.c: run method should return int
2021-10-30 10:17:07 -05:00
raiden00pl
cb78f6d0df
industry/foc/*/foc_angle.c: run method should return int
2021-10-30 10:17:07 -05:00
raiden00pl
27c282a58a
include/industry/foc/*/foc_angle.h: add a field with angle type
2021-10-30 10:17:07 -05:00
raiden00pl
9362fe760d
include/industry/foc/*/foc_handler.h: remove useless FAR
2021-10-30 01:19:43 -05:00
raiden00pl
f009d68a91
industry/foc: add motor identification routine
2021-10-30 01:18:12 -05:00
raiden00pl
f2fc2af8e3
industry/foc: add sensor alignment routine
2021-10-30 01:18:12 -05:00
raiden00pl
084cfa4e5e
industry/foc: add general FOC routine handler
2021-10-30 01:18:12 -05:00
Jiuzhu Dong
5c1626c764
netutils: add NETLIB_SOCK_TYPE for AF_RPMSG
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-12 11:37:53 +08:00