Commit graph

273 commits

Author SHA1 Message Date
adamdunkels cc73becbd2 Bugfix: a repeat command with 0 interval only ran half its commands because the repeat server process was started during the exithandler of the previous repeat server process. The kernel detected this and did not start every second repeat server process. 2008-11-13 07:51:23 +00:00
oliverschmidt 933aa3bb7e Keep override directive from breaking win32 build - things are getting quite messy here :-( 2008-11-10 22:45:10 +00:00
oliverschmidt c109e102c4 Include wget shell command in "standard" shell environments. 2008-11-10 22:10:32 +00:00
oliverschmidt 7aa23e002a Removed unused variable (and some whitespaces). 2008-11-10 21:57:26 +00:00
adamdunkels 8526049749 Bugfix: the web client previously implicitly depended on uip_buf to be larger than an HTTP GET request. This made the web client fail when uip_buf was smaller, and lead to memory corruption. Also, there was a bug when HTTP request headers would arrive when the GET request was being sent out. 2008-11-09 12:39:31 +00:00
adamdunkels 6b34b4f092 Added httpd and wget commands 2008-11-09 12:38:02 +00:00
adamdunkels ca0752d988 Added httpd command that sets up a local web server, reading files from the CFS file system 2008-11-09 12:37:26 +00:00
adamdunkels eaf5c42682 Added wget command for downloading files over HTTP 2008-11-09 12:36:23 +00:00
adamdunkels 80c71c9f03 Updated version number in server and user agent strings 2008-11-09 12:27:58 +00:00
adamdunkels a53bce4236 Reduce the default number of pagewidgets to make file compile out-of-the-box on MSP430 2008-11-09 10:58:06 +00:00
adamdunkels 942e8f37c2 Remove unguarded printf() 2008-11-09 10:53:25 +00:00
adamdunkels 6677b949b8 Guard against NULL input, remove unguarded printf() 2008-11-09 10:50:14 +00:00
oliverschmidt 9d84a484d0 - Removed Quit button code
- Added Quit menu entry
- Added menu removal on quit (to avoid memory access violations)
- Removed recently added opening of setup window on close of main window
2008-11-06 20:48:08 +00:00
adamdunkels 414c4e9eab Added a menu for opening the setup dialog, removed the quit button 2008-11-06 08:31:01 +00:00
adamdunkels 9429358395 Added process declaration 2008-11-06 08:30:23 +00:00
adamdunkels 7b87c2f5dc Bugfix: the code tried to shave off the ending newline character even if it did not exist 2008-10-31 18:07:13 +00:00
c_oflynn 1375511179 Fix to allow building without LCD interface 2008-10-15 14:38:20 +00:00
c_oflynn 6e42bd3496 example\webserver-ipv6-raven works! 2008-10-14 21:29:23 +00:00
julienabeille 30f545c397 *** empty log message *** 2008-10-14 14:54:23 +00:00
julienabeille 4f9bc05f90 ping-ipv6 example compiles on native cygwin 2008-10-14 13:39:12 +00:00
adamdunkels 28d52894a0 Reverted raven changes, which are now in the raven-webserver directory 2008-10-14 11:07:57 +00:00
julienabeille 47a46ded91 webserver app for RAVEN platform 2008-10-14 10:14:13 +00:00
julienabeille 8a401ea9d9 apps for raven LCD menu 2008-10-14 09:45:17 +00:00
julienabeille 4cfc98cb7b end of apps for uIPv6 2008-10-14 09:44:20 +00:00
julienabeille 3f394fe927 applications updates for uIPv6 2008-10-14 09:40:11 +00:00
joxe ea52955ce9 added voltage value in sky-shell sense and senseconv command 2008-09-18 21:30:24 +00:00
nvt-se 10dc0fd152 error check got triggered on valid file descriptor 0. 2008-08-21 19:15:41 +00:00
adamdunkels 76e03317c7 Fixed problem with erroneous pointer type 2008-08-16 10:04:55 +00:00
adamdunkels 86b835dd2c Added a 'nodeid' command for setting and retreiving the node ID from the external flash. Made the powergraph command optional to save code space. 2008-08-15 19:07:04 +00:00
adamdunkels 66988436f8 Rewrote the 'nodes' command to use netflood rather than trickle - but the 'nodes' command don't seem to work reliably anyway, so it currently is a candidate for removal. 2008-08-15 19:06:14 +00:00
adamdunkels cab149cad0 Moved all rime channel definitions to the shell-rime.h file 2008-08-15 18:58:42 +00:00
adamdunkels ec0de7b82e Removed serial-shell.h (now a separate app) 2008-07-10 16:56:27 +00:00
adamdunkels 1879b4b346 Fixed erroneous character 2008-07-09 21:46:31 +00:00
adamdunkels 304a4cfa0b Broke out serial-shell from the shell app into its own app. Project can use the serial-shell to get a shell running over the serial line, just like a project can use the telnetd to get a shell running over Telnet/TCP/IP. 2008-07-09 20:53:30 +00:00
adamdunkels a40791e6c4 Flush energy estimates before reading them 2008-07-09 09:32:54 +00:00
adamdunkels ee4862f082 Remove XXX todo comment: this has now been fixed 2008-07-07 23:47:07 +00:00
adamdunkels 9cc5a0098e Use the clock_second() function to get time in seconds 2008-07-07 23:46:12 +00:00
adamdunkels 9f08d7c6de Add a CRC checksum to all collect packets to ensure that they are valid, even if they are running on top of a radio link with bit errors 2008-07-07 23:22:59 +00:00
adamdunkels 144927c12b Add a CRC checksum to all netcmd packets to ensure that they are valid, even if they are running on top of a radio link with bit errors 2008-07-07 23:22:38 +00:00
oliverschmidt 0d8e8136e9 Avoid compiler warning. 2008-07-06 10:34:44 +00:00
adamdunkels ec773fb63b Separated the 'debug' commands (unicast and broadcast) from shell-rime into a separate shell-rime-debug 2008-07-04 08:23:00 +00:00
adamdunkels 4395efeb4f Make cfs-coffee compiled on all platforms 2008-07-03 23:43:21 +00:00
adamdunkels cd6ab0ec47 Shave off whitespace at the end of a command (they would otherwise cause problems with filenames having 'invisible' trailing spaces). 2008-07-03 21:15:12 +00:00
adamdunkels f4f812d81a Better error handling if the file could not be opened 2008-07-03 21:14:29 +00:00
adamdunkels fa9a34993f Added an optional 'offset' parameter to the read command. With the offset parameter, reading starts 'offset' bytes into the file 2008-07-03 21:13:54 +00:00
adamdunkels 56fd2519f7 Slightly more informative output 2008-07-03 21:13:13 +00:00
adamdunkels 86bbb86ed9 If the reps argument to the repeat command is 0, it means to repeat infinitely 2008-07-03 17:56:56 +00:00
adamdunkels 38e39bbc1c Added a separate file for CFS Coffee-specific commands 2008-07-03 17:56:17 +00:00
adamdunkels 7ed816840e Fixed compiled warnings 2008-07-03 09:52:15 +00:00
adamdunkels 09f5b6d2f5 Send one extra byte to ensure that the terminating zero is included 2008-07-03 09:51:21 +00:00
adamdunkels 0000a091cc Bugfix: CFS file handles can be 0 2008-07-03 09:50:23 +00:00
matsutsuka d194d54e8e CC_CONST_FUNCTION replaces some const keywords in order to workaround a sdcc bug, which cannot handle function pointers as const. 2008-07-02 15:02:33 +00:00
adamdunkels b8820a7d89 Added a 'format' command that formats a CFS Coffee flash file system 2008-07-02 14:14:37 +00:00
adamdunkels 88fb193a68 Print MAC layer with mac command 2008-07-02 14:08:06 +00:00
adamdunkels adbf6c47ab Bugfix: don't try to read/write/append to file if it was not possible to open it. Bugfix: CFS file descriptors that are 0 are OK. 2008-07-02 14:06:46 +00:00
adamdunkels 66876625d4 Changed name of the simple-cc2420 module to cc2420: changed all function names and variable names from simple_cc2420_* to cc2420_*. 2008-07-02 09:05:40 +00:00
adamdunkels 1586d8f36f Changed filename of the CC2420 driver from simple-cc2420 to cc2420. 2008-07-01 21:02:51 +00:00
adamdunkels 3b72a403ba Fixed help text on rfchannel command 2008-06-23 19:51:29 +00:00
adamdunkels 9f65ebf161 Added 'graphical' (ASCII-graphics) power display 2008-06-21 18:33:22 +00:00
oliverschmidt 90797f15a7 Fixed copy&paste issue. 2008-05-24 08:31:56 +00:00
oliverschmidt 6deed3d9aa Print directory entry size right-justified. 2008-03-29 13:57:30 +00:00
oliverschmidt e6cc0105b0 - It doesn't make sense to me add the shell sources here _AND_ link to the shell app.
- The shell app needs to be there so the '-' prefix is wrong here.
2008-03-28 22:40:55 +00:00
oliverschmidt 47dc2d8020 It doesn't seem reasonable to me to presume that all targets support the elfloader. Therefore shell-exec.c may not be part of the common source files. For now I just moved it to the sky dependent source. In case the dependency on the sky target is undesirable someone needs to come up with a more flexible approach. 2008-03-28 22:36:52 +00:00
adamdunkels 7d06f1bfe0 Added netsim output 2008-03-03 16:10:09 +00:00
oliverschmidt c4250420ce As adding some commands to the telnet server shell doesn't seem to be desirable in the application it's now done in the gui-specific code. 2008-02-29 00:07:03 +00:00
oliverschmidt aa7ba44fb1 Avoided compiler warning. 2008-02-28 23:59:05 +00:00
oliverschmidt 2ce444c175 Made use of shell_quit(). 2008-02-28 23:50:02 +00:00
adamdunkels 6479f001fa Added a shell_quit() function that cleanly exits the shell (currently untested though) 2008-02-28 23:29:07 +00:00
adamdunkels 8906441004 Changed all sprintf() calls to snprintf() to make it useful for systems with very low buffer size 2008-02-24 20:59:51 +00:00
adamdunkels bd04cc1a32 Added command for turning the MAC protocol on or off 2008-02-24 20:58:35 +00:00
adamdunkels 814558b1fe Rewrote the telnet server to buffer the output in a single, large buffer rather than as individual lines. This both makes output faster and makes it possible to buffer more outgoing data. 2008-02-24 20:43:28 +00:00
adamdunkels 10692296a1 Specify that the telnet server uses the shell application 2008-02-24 20:38:57 +00:00
adamdunkels 9c51d8ef1b Added a shell_start() function that prints out the shell prompt and a small helpful message 2008-02-24 20:35:03 +00:00
adamdunkels 33c2116f6a Better looking senseconv output 2008-02-24 20:34:05 +00:00
adamdunkels 42f52947e0 Made ping output nicer, made rtt measurement work without timesynch too 2008-02-24 20:33:38 +00:00
oliverschmidt f5e7da082c Replaced '404.html' with 'notfound.html' as '404.html' is no valid filename for the Apple2 disk operating system ProDOS 8. 2008-02-21 09:25:54 +00:00
oliverschmidt f74e918f00 Adjusted process display cgi to recent change in process states. 2008-02-17 13:59:22 +00:00
oliverschmidt 2add546d00 Improve consistency if WITH_LOADER_ARCH is 0. 2008-02-15 17:31:44 +00:00
oliverschmidt f4095c7289 Avoided compiler warnings by adding casts and moved variable definitions to the begin of function bodies. 2008-02-10 12:29:54 +00:00
oliverschmidt 4e6508b578 Avoided compiler warnings by adding casts. However it might make sense to start taking into account that C pointer differences do not have the type 'int'... 2008-02-10 12:24:43 +00:00
oliverschmidt f244bdbf2d Accomodate for the now more complex shell output. 2008-02-09 18:51:56 +00:00
oliverschmidt b1c748c137 Adjusted telnet server to the new shell logic. 2008-02-09 17:15:58 +00:00
oliverschmidt 518a84fc66 Added a 'run' shell command similiar to the 'exec' command but using the high-level LOADER_LOAD() interface instead of the ELF-loader specific interface. 2008-02-09 14:07:58 +00:00
oliverschmidt 614fa668cd Removed SELFSTART_PROCESS as AUTOSTART_ENABLE generally serves that purpose - and AUTOSTART_ENABLE gets already set as required :-) 2008-02-08 22:48:28 +00:00
adamdunkels e70e729be6 Description made clearer 2008-02-08 20:40:10 +00:00
oliverschmidt d2886875ec Added a 'run' shell command similiar to the 'exec' command but using the high-level LOADER_LOAD() interface instead of the ELF-loader specific interface. 2008-02-08 12:49:54 +00:00
oliverschmidt bdceab824a Renamed shell-gui.c to gui-shell.c to fit the new shell file naming scheme. 2008-02-07 23:11:56 +00:00
oliverschmidt b2bcdfd55b Adjust shell GUI to the new shell logic. 2008-02-07 23:08:48 +00:00
oliverschmidt 0a8f384a40 Allow to optionally (triggered with SELFSTART_PROCESS) self start the application. 2008-02-07 16:28:11 +00:00
adamdunkels 9444e5cbc1 Refactored netcmd command code that was broken out from shell-rime.c 2008-02-05 20:35:21 +00:00
adamdunkels b69001cbd4 Broke out the netcmd command from shell-rime.c into shell-rime-netcmd.c 2008-02-05 12:23:32 +00:00
adamdunkels 3fbff69658 Compile shell-sky.c only for the sky target, added shell-rime-netcmd.c 2008-02-05 12:22:49 +00:00
adamdunkels a26d87e09e Rewrite of the old Contiki shell. The new shell supports dynamic
insertion of new commands and command pipelining. There are also a
bunch of new commands for network access (using Rime): ping, data
collection, packet sniffing, sending shell commands across the
network, and testing the single-hop throughput to neighboring
nodes. Commands are also available for reading from and writing to
files, reading the sensors (on the Tmote Sky platform), and accessing
the power and energy consumption of the system. Dynamic loading of
programs across the network is also possible, although a little
untested at the moment.
2008-02-04 23:42:17 +00:00
oliverschmidt 00d75c8d16 Made use of uip_ipaddr_to_quad(). 2008-01-04 23:28:33 +00:00
oliverschmidt a5ab7ee5b7 Don't depend on program handler if building without wget support. 2007-12-15 21:56:23 +00:00
oliverschmidt f51a6a6807 Have ctk (at least on conio) work correctly without menus. 2007-12-15 21:04:51 +00:00
oliverschmidt 2db90feaab Minimal reformatting. 2007-12-15 13:03:17 +00:00
oliverschmidt b1e1f07f64 Yet another PETSCII<->ASCII issue solved - this time it caused failure to send the right content type. 2007-12-09 23:35:03 +00:00
oliverschmidt d2d85b4303 Avoid file handle leaks. 2007-12-01 21:27:48 +00:00
oliverschmidt 52436163aa Made webbrowser configuration defaults visible. 2007-11-30 21:53:50 +00:00