Commit graph

221 commits

Author SHA1 Message Date
Oliver Schmidt ff9dd0fce4 Improved shell banner / prompt customization.
Working with string-type macros on cmdlines is a pain in the nack so rather go for global string constants activated by simple flag-type macros.
2011-05-21 11:48:50 +02:00
Oliver Schmidt 831312e311 Some Telnet server enhancements:
- PETSCII sending support
- Option to customize shell prompt and banner
- Stop all running commands on shell close
- New 'exit' and 'quit' commands to close shell
2011-04-16 21:10:22 +02:00
Oliver Schmidt 07f3df45be Converted scope-local variables into function-local variables.
The 6502-specific LC implementation doesn't allow for scope-local vaiables between PT_BEGIN/PROCESS_BEGIN/PSOCK_BEGIN and PT_BEGIN/PROCESS_END/PSOCK_END.
2011-04-12 14:12:09 +02:00
Enric M. Calvo 1716d837fc Merge branch 'master' of git://contiki.git.sourceforge.net/gitroot/contiki/contiki into master_cleanup
Makefile.z1 is broken into .common and .z1 to share it with Z1 Starter Platform

Conflicts:
	.gitignore
	platform/z1/Makefile.z1
2011-03-25 17:46:38 +01:00
Niclas Finne 1601b25d53 Updated to use new Rime sniffer API 2011-05-10 15:48:34 +02:00
Adam Dunkels f5a6b6f20a Fixed bugs in the types to the printf arguments 2011-03-02 15:49:04 +01:00
Enric M. Calvo 840c1331d1 examples/sky-shell now runs out-of-the-box on Z1
For best results, use a Z1 Starter Platform with an sht11 sensor plugged
in the ziglet port.
Keep in mind that the light-sensor is mapped to the potentiometer in this platform.
XXX Tracing why powertrace does not show anything different from 0.
2011-03-01 19:42:23 +01:00
Adam Dunkels 847c99d804 Explicitly turn LEDs off if the command is interrupted 2011-02-10 22:43:18 +01:00
Adam Dunkels 9c62a8c1a6 Set default number of retries to 8 to make the netperf command more robust 2011-02-07 17:34:39 +01:00
nifi 569895af1c Removed void * operations 2011-01-12 22:58:33 +00:00
adamdunkels 7f95059703 The collect view functions now take the node's routing metric, not the parent's routing metric. 2010-10-24 21:04:39 +00:00
adamdunkels d6cb77a1d0 Broke out shell code from the collect-view app to make it useful for non-shell apps too. Added a shell app for interacting with collect-view. Broke out handling of parent, rtmetric, etx, and num_neighbors to make collect-view independent of rime collect. 2010-10-20 15:21:43 +00:00
adamdunkels ce53d7b748 Rewrote part of the repeat command to make the repeat cycle deterministic 2010-10-20 15:18:49 +00:00
adamdunkels 5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
adamdunkels 0c5f9992c1 Increased the default number of retransmissions for the send command 2010-10-12 11:36:42 +00:00
adamdunkels 3f6dc30373 Added a powertrace command as an interface to the powertrace app 2010-10-12 11:34:49 +00:00
adamdunkels 04ede258d0 Bugfix: rfchannel did not print out over the correct command structure 2010-10-12 11:34:08 +00:00
oliverschmidt 32701dacb5 Fixed recent build error in example-shell.
Both apps/webbrowser and apps/webserver contain a http-strings.c. It seems unclear to me if the original intention was to have them identical (but then they should have been factored out in the first place) or if they were only very similiar by chance.

Anyway, currently webserver/http-strings.c is a clean superset of webbrowser/http-strings.c so if a project has both HTTP server and client parts it is desirable to use the webserver variant. In the case of apps/shell this can be archived by adding webserver *before* webbrowser to the APPS variable.

This seems like a hack to me - but the whole shell build qualifies as hack, doesn't it ;-)
2010-09-29 11:53:39 +00:00
adamdunkels 0261af4af2 Made use of the new collect keepalive timer 2010-09-22 22:11:20 +00:00
adamdunkels 2be8454a15 Const and typecast bugfix 2010-09-14 07:18:14 +00:00
adamdunkels f11b0d56ee Fixed compilation error 2010-09-14 06:40:17 +00:00
adamdunkels 6794154aa5 Set a default value for 'send' commands without arguments 2010-09-13 19:15:21 +00:00
adamdunkels 3be23eb3fc Fixed alignment issue 2010-09-13 13:29:47 +00:00
adamdunkels f1769a3622 Added the number of hop-by-hop retransmissions to the 'send' command 2010-09-13 13:29:29 +00:00
nifi a453acd325 Added support for IPv6 URLs 2010-06-09 08:36:43 +00:00
nifi b54c6e673b Updated API for uiplib and resolv to use uip_ipaddr_t instead of uint16_t for compability with IPv6 2010-05-31 15:22:08 +00:00
adamdunkels e53b93384a Print out rdc instead of mac 2010-04-30 07:17:50 +00:00
nifi a5264324b5 Added missing urlconv.c for optional URL filtering. 2010-04-19 21:25:49 +00:00
nvt-se 40f7541f88 Report an error if cfs_write failed. 2010-04-12 13:21:58 +00:00
adamdunkels 1fa81eac59 Print out the name of the radio duty cycling mechanism instead of the MAC 2010-04-04 12:27:31 +00:00
adamdunkels 2617274989 Updated to new announcement API 2010-03-25 08:55:20 +00:00
adamdunkels 79ba20ddcc Updated to new collect router API 2010-03-25 08:52:23 +00:00
adamdunkels f2c9b3e813 Remove old neighbor.h inclusion 2010-03-19 13:20:40 +00:00
joxe da36724ac8 updated for new uip APIs 2010-03-17 12:27:52 +00:00
fros4943 3769a28516 updated to new sensors API 2010-03-14 19:54:00 +00:00
adamdunkels 331f93b439 Removed the 'nodes' command from the shell: it never really worked 2010-02-28 14:16:19 +00:00
adamdunkels c4c4e8164d Enabled compilation without timesynch enabled 2010-02-23 18:22:44 +00:00
adamdunkels 6b523f2446 Fixed compilation without timesynch compiled in 2010-02-18 20:56:12 +00:00
adamdunkels ba56b22c03 Potential alignment problem fix 2010-02-04 16:21:15 +00:00
nifi 8cf4821a73 added check for too long server name 2010-02-04 15:23:15 +00:00
adamdunkels 4ea2312f23 Rewrote NULL-termination code to avoid writing to a const array 2010-02-04 14:59:08 +00:00
adamdunkels 35f8d24c2e Bugfix: zero-terminate string before copying 2010-02-04 11:20:09 +00:00
adamdunkels dda757aca7 I made a mess out of the dec64 command being moved to a new module; this commit should fix the previous issues though 2010-02-03 21:53:51 +00:00
adamdunkels 551f7fc7a7 Moved the dec64 command into the shell base64 module 2010-02-03 21:39:25 +00:00
adamdunkels 217fa504e7 Small documentation fix 2010-02-03 20:40:00 +00:00
adamdunkels 1a34dbe550 Broke out the base64 commands from the text module 2010-02-03 20:37:29 +00:00
adamdunkels 1a42eac80b Print out the performance test number for automatic processing 2010-02-02 15:29:24 +00:00
adamdunkels 7ed2af70f9 Two 'peek' and 'poke' commands for reading and writing directly to memory 2010-02-02 15:28:52 +00:00
adamdunkels 354243afcd Added missing Rime channel for the runicast debug command 2010-01-31 23:57:22 +00:00
adamdunkels 435add5e17 Added a debug command for testing reliable unicast (runicast) communication 2010-01-31 19:35:12 +00:00
joxe 318cf56564 fixed for new sensor api 2010-01-14 15:05:40 +00:00
adamdunkels f50b8db53b Implement repeats with a periodic second timer to allow for greater range than what is possible with Contiki ctimers. Use RTIMER_NOW() instead of rtimer_arch_now(). 2009-12-09 18:12:23 +00:00
adamdunkels 01153b468e Fixed compliation problem 2009-11-09 08:22:17 +00:00
adamdunkels 01442326b2 Made rimeaddr_t pointers const when they should be 2009-11-08 19:42:59 +00:00
adamdunkels 3c8d51e05f Added command line options for enabling the four different performance tests 2009-11-04 07:48:18 +00:00
adamdunkels 4928e43880 netperf: a new small shell command that measures the communication
performance between two local (single-hop) nodes. It sends packets
over both broadcast and unicast, both in one direction and in both, as
well as tested the stream mode of the underlying MAC protocol.
2009-11-03 22:52:39 +00:00
adamdunkels 2662c87d60 Printout power data as well 2009-11-03 10:04:23 +00:00
fros4943 b0a92c5f4e added log output + minor fix 2009-10-27 10:46:24 +00:00
adamdunkels 63f927fc8d Added missing string.h include, for memset() 2009-10-18 11:42:06 +00:00
adamdunkels bddd31abf2 Fixed compiler warnings 2009-09-09 21:06:51 +00:00
joxe 92f8ac6a2b added webserver-nogui.c to webserver sources 2009-06-23 21:06:34 +00:00
nvt-se 79b7cab36e the third read parameter must be checked for existence.
updated the documentation to cover the third parameter.
2009-05-12 14:22:58 +00:00
adamdunkels 2c6c665309 New Twitter tweet commands added 2009-05-11 17:11:56 +00:00
adamdunkels 6808bb387b A shell command for posting a #sensortweet message to Twitter 2009-05-11 17:11:37 +00:00
adamdunkels 3bb946fa51 A shell command for posting arbitrary messages to Twitter 2009-05-11 17:10:55 +00:00
adamdunkels a220da3e88 Added new shell commands 2009-05-10 21:05:06 +00:00
adamdunkels f6dbf82e05 Added two commands: unicast-send and unicast-recv that can be used to send unicast data 2009-05-10 21:04:40 +00:00
adamdunkels 904bb1487c Broke out the 'neighbor' command functionality from the shell-rime.c file; reimplemented it to use the announcemnet primitive instead 2009-05-10 21:04:06 +00:00
adamdunkels 8458a4fe28 Added a 'netstat' command that (currently) shows active TCP connections 2009-05-10 21:02:24 +00:00
fros4943 8f66601a5a fixed compiler warnings (as suggested by Niclas Finne) 2009-04-20 13:18:07 +00:00
fros4943 a23b4fd40b two new shell commands: download and sendcmd 2009-04-16 14:33:47 +00:00
adamdunkels 5d8d7844bb Avoid alignment problems by copying the crc from the header field into a local variable 2009-04-06 23:29:31 +00:00
adamdunkels 01d39d4149 Made sure netcmds are null-terminated 2009-04-06 21:17:34 +00:00
adamdunkels dc8338d248 Fixed alignment problem on the MSP430, where the ping message may be misaligned 2009-03-31 17:39:36 +00:00
fros4943 2e156afe2a bugfix: cfs_open must get aquire permissions 2009-03-26 12:22:52 +00:00
adamdunkels ecb7641ca7 from address is const 2009-03-24 14:44:42 +00:00
nvt-se 571c815ad3 use unsigned long to print total file size. 2009-03-19 20:42:39 +00:00
adamdunkels fb7fc1990d Fix types to make cc65 happy 2009-03-17 21:49:44 +00:00
adamdunkels a6be9a6d3c Removed NULL pointer to make sdcc happy 2009-03-17 20:12:55 +00:00
adamdunkels 65eb5fd4e8 Renamed the rimebuf module to packetbuf to signal that the module is used outside of a pure Rime context (e.g., the sicslowpan code uses it). 2009-03-12 21:58:20 +00:00
adamdunkels 4519f07a9b Fixed IPv6 compilation problems 2009-03-07 09:32:41 +00:00
adamdunkels 2289ced2bb Fixed compilation problems, added new commands to shell.h 2009-03-06 07:23:08 +00:00
adamdunkels ddafef15e9 Added three commands for IP interaction in the shell: ping (sends ICMP ping messages), tcpsend (sets up TCP connections for sending and receiving data), and udpsend (sends and receives UDP packets) 2009-03-06 00:29:33 +00:00
adamdunkels 482de817e0 Renamed the Rime 'ping' command to 'rime-ping' to differentiate it from the IP ping command 2009-03-05 23:54:14 +00:00
adamdunkels a3daf1d3cc Refactored the power commands out from the sky-specific shell commands into its own module. Also added compower idle consumption in the energy and power reports. 2009-03-05 21:12:02 +00:00
adamdunkels d52a527752 Added support for sniffing for packet attributes for both incoming and outgoing packets 2009-03-02 21:58:16 +00:00
adamdunkels da591f484f Added documentation for the shell functions 2009-03-02 20:44:15 +00:00
oliverschmidt 62662ee79b Override source file sets of included apps to exclude source files that would cause symbols to be defined twice in the Contiki library. 2009-03-01 23:36:47 +00:00
oliverschmidt eab1ea8c95 Added missing include. 2009-03-01 23:33:46 +00:00
nvt-se a0226e2418 switched all users of cfs_seek(x,y) to cfs_seek(x,y,CFS_SEEK_SET) 2009-02-27 14:28:02 +00:00
adamdunkels 8d1615459a Added dummy function callback because sdcc does not like NULL function pointers 2009-02-24 21:28:43 +00:00
adamdunkels d28bfe3f58 Fixed ugly function pointer cast by implementing a wrapper function for the protothread function. 2009-02-24 21:27:43 +00:00
adamdunkels 47a6eb5210 Fixes by Luca Mottola: don't call write with zero-length data; added parameter to specify block size to read command 2009-02-19 22:56:56 +00:00
adamdunkels 585620c102 Reverted the recent change from random_rand() to rand(). It turned out that
since libc rand() returns a signed int, there were frequently problems with
timer values wrapping. By reverting to random_rand(), we can provide a
random generator that returns an unsigned and the timer problems are solved.
2009-02-11 11:08:53 +00:00
adamdunkels 37e15ab537 Use C rand() instead of random_rand() 2009-02-09 20:54:49 +00:00
fros4943 bf39076206 added experimental checkpointing functionality:
currently only implemented on the sky platform
2009-02-04 17:49:15 +00:00
nvt-se 53355d095c increase file size range for display in the ls command. 2008-12-01 15:58:14 +00:00
adamdunkels eb2ecc69a2 Added an irc shell command that runs an IRC client from the shell. 2008-11-28 00:16:15 +00:00
nvt-se 1389555ad5 adjusted shell for the generic remove command. 2008-11-24 15:18:27 +00:00
oliverschmidt 7cf3165155 Replaced NETSIM macro with general (and now actually working) solution in Makefile.include. 2008-11-17 22:52:10 +00:00