Commit Graph

550 Commits

Author SHA1 Message Date
Gregory Nutt
d5a897fa1b Merge branch 'master' of bitbucket.org:nuttx/apps into ieee802154 2017-06-19 13:35:34 -06:00
Gregory Nutt
2f975e8f06 nshlib: fix size of 6LoWPAN extended address. 2017-06-19 09:47:17 -06:00
Oleg Evseev
f13d4125a4 Merged in lukegluke/apps (pull request #91)
fix copy-paste typo in nsh_usbconsole.c

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-19 15:29:09 +00:00
Oleg Evseev
8ee1e79d03 fix copy-paste typo in nsh_usbconsole.c 2017-06-19 15:05:06 +00:00
Gregory Nutt
2bb14d854d L should be capitalized in 6LoWPAN 2017-06-18 16:02:11 -06:00
Gregory Nutt
2e4740e6bb i8sak: Missing newline in fprintf output 2017-06-18 11:28:36 -06:00
Gregory Nutt
9485744265 NSH network initialization: Do not set the IP address for 6loWPAN. The 6loWPAN stack uses IP address that derive from the ieee 802.15.4 addressing and cannot be (safely) configured by the user. 2017-06-17 11:31:04 -06:00
Gregory Nutt
22d9c69d87 NSH network configuration: Re-factor a function that has gotten too big and too complex. 2017-06-17 10:37:31 -06:00
Gregory Nutt
033b42789b NSH: Fix some ieee 802.15.4 initialization logic. It should not set the saddr or panid; those cannot be hard-coded but must come from the coordinator. 2017-06-17 10:04:18 -06:00
Masayuki Ishikawa
41dee001ad Merge branch 'master' into bug_fix_by_sony 2017-05-22 09:13:02 +09:00
Gregory Nutt
4e7b17d783 Fix some typos in comments. 2017-05-21 12:05:07 -06:00
Gregory Nutt
8c1446671c apps/nshlib: Add a new option CONFIG_NSH_NETLOCAL that will suppress some built in operations and will support manual configuration of a wireless network 2017-05-21 12:00:55 -06:00
Simon Piriou
523d7645c4 wapi: add basic wapi_event_stream_extract implementation 2017-05-21 16:24:49 +02:00
Nobutaka Toyoshima
3a8cfb6c04 nshlib: Fix a resource leak in cmd_hexdump()
Jira: PDFW15IS-265
Coverity-ID: 10786
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-20 17:57:03 +09:00
Sebastien Lorquet
ea1025ead2 DHCPC: Remove hard-coded interface device. Now passed as a parameter to dhcpc_open(). 2017-05-19 15:31:22 -06:00
Sebastien Lorquet
297844b1ce Fix comments formatting 2017-05-19 17:50:26 +02:00
Sebastien Lorquet
aefddc3648 Second batch of changes (no problems) 2017-05-19 17:37:17 +02:00
Gregory Nutt
13911d9b17 Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:40:03 -06:00
Gregory Nutt
1bad025c81 Cosmetic changes to comments 2017-05-11 07:46:08 -06:00
Gregory Nutt
5fbf2fd8d1 NSH wireless setup: Move call to nsh_associate(). It should be possible to associate with an AP when DHCPC is disabled. 2017-05-09 06:39:08 -06:00
Gregory Nutt
8380447e1a Merge remote-tracking branch 'origin/master' into ieee802154 2017-05-08 14:31:54 -06:00
Gregory Nutt
0376019c35 WPA associate: NSH was not setting the algorithm parameter. 2017-05-08 13:28:08 -06:00
Gregory Nutt
6ec8e56f89 Merge remote-tracking branch 'origin/master' into ieee802154 2017-05-06 11:30:48 -06:00
Gregory Nutt
40a1fbf498 Forgot to add a file in the last commit. 2017-05-06 11:28:56 -06:00
Gregory Nutt
a0915850b9 wireless/wapi: wpa_driver_wext_associate() now accepts a configuration parameter that can be used to specify the wireless properties. nshlib: NSH now has configuration options to select the wireless properties. It builds the configuration structure and passes this to wpa_driver_wext_associate() so that it will setwork the network as configured. 2017-05-06 11:28:11 -06:00
Gregory Nutt
44ace8e1cc 6loWPAN: Replace some Rime address naming with more consistent short/exended address terminology 2017-05-04 08:21:12 -06:00
Simon Piriou
33027bd66e wireless/wext: Add drivers_wext from the WPA supplicant; Integrate into NSH 2017-05-02 09:43:48 -06:00
Gregory Nutt
a5c439777d nshlib/nsh_netinit.c: If IEEE802.11 selected use wlan0 instead of eth0 for network device name. 2017-05-02 08:26:21 -06:00
Gregory Nutt
5b7f2b0ce2 Eliminate a warning 2017-04-29 08:52:10 -06:00
Gregory Nutt
08b2fee0fb NSH: Needs to include tftp.h if TFTP no disabled 2017-04-29 08:42:26 -06:00
Ian McAfee
8007332ab1 I need to look at the registers that are at or around 0xe000ef90. Using mw and xd, I see that nsh does not support pointers greater than 0x7fffffff. A quick look at the source shows that the pointers for those two commands are set with calls to strtol() rather than strtoul(). Changing the two pointer-setting instances to strtoul() fixes the problem, at least for my architecture/config. 2017-04-26 17:54:56 -06:00
Gregory Nutt
ad608c705c nshlib: nsh_netcmds.c should include netlib.h even if neither TCP nor UDP are enabled 2017-04-25 08:25:23 -06:00
Gregory Nutt
c2bdd49421 netlib and NSH: Add logic to set the IEEE802.15.4 PAN ID. 2017-04-19 18:10:39 -06:00
Masayuki Ishikawa
6b75120352 NSH library: Fix open flags in nsh_codeccmd.c
Jira: PDFW15IS-2824
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-04-19 16:12:44 +09:00
Gregory Nutt
775d1052a5 NSH set command: Eliminate useless argc check of SCRIPTS are enabled but ENVIRONMENT is disabled 2017-04-09 12:03:18 -06:00
Gregory Nutt
169bcab331 NSH: Eliminate warning about unused variable. 2017-04-09 11:54:59 -06:00
Gregory Nutt
8369052a22 NSH library: Extend ifconfig to support 6loWPAN. Adapt to some changes in configuration variable usage. 2017-04-08 12:21:40 -06:00
Gregory Nutt
194c2d86a8 6loWPAN: Add network IOCTL support to set the node address 2017-04-06 16:00:41 -06:00
David Sidrane
35cf98d4df Print expanded variables if -x 2017-04-05 18:31:47 -06:00
David Sidrane
d03aa9112e Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]
Set the 'exit on error control' and/or 'print a trace' of commands when parsing scripts in NSH.  The settinngs are in effect from the point of exection, until they are changed again, or in the case of the init script, the settings are returned to the default settings when it exits.

Included child scripts will run with the parents settings and changes made in the child script will effect the parent on return.

Use 'set -e' to enable and 'set +e' to disable (ignore) the exit condition on commands. The default is -e. Errors cause script to exit.

Use 'set -x' to enable and 'set +x' to disable (silence) printing a trace of the script commands as they are ececuted. The default is +x. No printing of a trace of script commands as they are executed.
2017-04-05 18:25:59 -06:00
Gregory Nutt
eef0161dd4 examples/nettest: Trying to adapt to use for testing 6loWPAN. 2017-04-03 15:33:39 -06:00
Gregory Nutt
efa2de16a4 NSH: Fix some warnings about integer/pointer casts of different sizes (probably only effects 64-bit simulation) 2017-04-03 09:26:10 -06:00
Jussi Kivilinna
3e2743e826 nshlib: fix building when CONFIG_NET_USRSOCK enabled with other link-layer 2017-03-31 09:10:55 -06:00
Tomasz Wozniak
71b45ed2c2 built-in libc defect workaround: replace '%6.6u' format with an equivalent '%06u' 2017-03-21 09:39:51 +01:00
Gregory Nutt
2ef46ce4ba NSH library: In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not defined, then there is a situation that causes an infinite loop in the parser. Noted by Freddie Chopin. 2017-03-09 08:07:22 -06:00
Alan Carvalho de Assis
8e7ed15cce NSHLIB uname command: Eliminate 'defined but not used' warning in some configurations 2017-03-07 15:36:18 -06:00
Alan Carvalho de Assis
d506939b59 NSHLIB ps command: Eliminate 'defined but not used' warning in some configurations 2017-03-07 15:10:17 -06:00
Gregory Nutt
a7e34f3b97 Make use of FAR storage class consistent 2017-02-27 07:54:21 -06:00
Gregory Nutt
fa4b047d35 Fix typo in last commit 2017-02-27 07:49:49 -06:00
Gregory Nutt
590791e12d NSH: Eliminate a warning when all memory inspection commands are disabled. 2017-02-27 07:30:52 -06:00