Commit Graph

2554 Commits

Author SHA1 Message Date
Simon Duquennoy
d88f0b157e Viewconf: now show config flags after module-specific .h file inclusion, i.e., show final values rather than _CONF_ flags 2017-10-11 17:27:31 +02:00
Simon Duquennoy
3117296ffc Make viewconf: pretty printing 2017-10-10 21:05:48 +02:00
Simon Duquennoy
11de95efea Added make target 'viewconf' to ease debugging of configuration flags 2017-10-10 21:04:38 +02:00
Simon Duquennoy
20559fd308 Auto-include project-conf.h whenever found 2017-10-07 09:45:38 +02:00
Simon Duquennoy
543408db68 Re-organzie ip stack implementation 2017-09-22 17:09:54 +02:00
Simon Duquennoy
0aa44c3c22 Homogenize NET layer config with MAC 2017-09-22 14:34:20 +02:00
Niclas Finne
2d1d366bce wpcapslip: core has been renamed to os 2017-09-01 15:45:40 +02:00
Niclas Finne
2c86194ef8 Renamed core to os 2017-09-01 15:29:00 +02:00
Simon Duquennoy
9ddae0c90f Update serialdump-linux binaries 2017-07-07 15:13:45 +02:00
Simon Duquennoy
dc35fcd557 Update mspsim to latest 2017-07-06 21:59:51 +02:00
Simon Duquennoy
c3ec92dc2c Refactor how packet sent callbacks are handled for TSCH, RPL, 6lowpan and DS6 2017-07-04 10:15:05 +02:00
Nicolas Tsiftes
9bb51087bf Renamed the drivers directory to arch to reflect that this is the main place for architecture-dependent functionality. 2017-06-28 16:20:43 +02:00
Simon Duquennoy
1a0f8ab737 Removing IPv4 stack 2017-06-16 17:32:22 +02:00
Simon Duquennoy
766c0e21dd Removing platform z1 2017-05-17 13:48:01 +02:00
Simon Duquennoy
54d6756815 Move cpu, dev and platform into a new top-level directory: drivers 2017-05-16 09:04:52 +02:00
Simon Duquennoy
6220aea14a Removing Rime, old platforms, old MAC layers, LLSEC (as a layer), some examples and apps 2017-05-14 01:14:05 +02:00
Oliver Schmidt
91beb8670f Added SLIP support to retro platforms.
The cc65 tool chain comes with V.24 drivers so it seems reasonable to use the existing Contiki SLIP driver to implement network access via SLIP as alternative to Ethernet.

Some notes:
- The Ethernet configuration was simplified in order to allow share it with SLIP.
- The Contiki SLIP driver presumes an interrupt driven serial receiver to write into the SLIP buffer. However the cc65 V.24 drivers aren't up to that. Therefore the main loops were extended to pull received data from the V.24 buffers and push it into the SLIP buffer.
- As far as I understand the serial sender is supposed to block until the data is sent. Therefore a loop calls the non-blocking V.24 driver until the data is sent.

On all platforms there's only one V.24 driver available. Therefore V.24 drivers are always loaded statically.

On the Apple][ the mouse driver is now loaded statically - independently from SLIP vs. Ethernet. After all there's only one mouse driver available. However there's a major benefit with SLIP: Here all drivers are loaded statically. Therefore the dynamic module loader isn't necessary at all. And without the loader the heap manager isn't necessary at all. This allows for a reduction in code size roughly compensating for the size of the SLIP buffer.
2017-02-15 23:43:28 +01:00
Oliver Schmidt
6463c91a4f Removed artifacts of former uip_appdata handling.
Adam Dunkels writes on 2/5/2017 on the Contiki mailing list:
[...] the original idea was that the application could just point the uip_appdata pointer to wherever the data was, but we then changed it so that the data actually had to be copied into the uip_aligned_buf buffer. So, yes, the network device driver should only need to read from this buffer. [...]

This change removes comments on the possibility of uip_appdata pointing somewhere outside the uip_aligned_buf. And it removes code in the SLIP drivers not necessary anymore.

Additionally it makes code in a SLIP driver optional that takes care of the Microsoft-specific CLIENT / SERVER / CLIENTSERVER chat.
2017-02-05 23:20:39 +01:00
Oliver Schmidt
a6472c8dd9 Revert to static Ethernet driver for the ATARI.
After all there's no momentum for a W5100-based Ethernet solution on the ATARI. So I revert to static linkage of the CS8900A driver as this improves program load times.
2017-01-27 00:18:25 +01:00
Antonio Lignan
10d54f228b Orion: update motelist string
Updates the expected motelist string
2017-01-12 11:23:20 +01:00
George Oikonomou
960b81d484 Merge pull request #2024 from alignan/pull/eth-gw
Zolertia Orion ethernet router with active POE support
2017-01-09 21:03:45 +00:00
Antonio Lignan
6e07fd7019 Merge pull request #2001 from joakimeriksson/cooja-quick-ui-fix
fixed so that Cooja can run in quick mode when having UI
2017-01-03 10:26:52 +01:00
Antonio Lignan
579620ce0e Added Zolertia Orion ethernet router with active POE support 2016-12-29 13:07:53 +01:00
Antonio Lignan
2464cdadc9 Merge pull request #1973 from g-oikonomou/contrib/sensniff-submodule
Add sensniff as a submodule
2016-12-25 19:42:18 +01:00
Joakim Eriksson
f069cef73a fixed so that Cooja can run in quick mode when having UI 2016-12-15 13:52:05 +01:00
Simon Duquennoy
bba5a973ba Merge pull request #1987 from joakimeriksson/cooja-fix
Fixed COOJA to avoid using UI based message list when not using UI.
2016-12-15 08:40:03 +01:00
Niclas Finne
a02481bc99 Fixed more MessageListUI to respect visualized in Cooja 2016-12-14 10:10:25 +01:00
Nicolas Tsiftes
8fca9ced8e Merge pull request #1976 from yatch/pr/missing-single-quote
Resolve  "unmatched single quote" error in Travis CI failed tests
2016-12-12 17:06:16 +01:00
Joakim Eriksson
2a3edc9136 Fixed so that COOJA sends in isVisible instead of quick as visibility parameter to plugins to get compile info back into COOJA - and fixed CoreComm to use MessageList text if no UI 2016-12-11 20:52:03 +01:00
Yasuyuki Tanaka
f5d6b7ed0f ContikiMoteType: add a missing single quote in a log message
This resolves the error of "unmatched single quote" by xargs seen in a
failed log of Travis CI.
2016-12-05 18:07:39 +01:00
George Oikonomou
11877b4b6b Add sensniff as a submodule 2016-12-04 18:43:17 +00:00
Antonio Lignan
af4f1e1c30 Merge pull request #1866 from yschroeder/pull-req/serialdump
Improved serialdump.c
2016-12-04 13:17:39 +01:00
Simon Duquennoy
728e417e04 Merge pull request #1502 from yatch/pr-radiologger
Fix timestamps of packets recorded in pcap files
2016-11-27 11:58:03 +01:00
Simon Duquennoy
ecd1d57eec Merge pull request #1661 from yatch/pr-tsch-cooja-mote
TSCH on Cooja mote
2016-11-23 11:59:29 +01:00
Oliver Schmidt
72cc19c680 Fixed ProDOS 800kB image.
The 800kB file claimed to be a 32MB image. Now the logical size and pysical size match.
2016-10-11 11:18:23 +02:00
Niclas Finne
e648373677 Cooja now supports Wismote and Z1 motes when exporting simulations as
executable JAR.
2016-09-22 10:56:56 +02:00
Yannic Schröder
d524211c2a Clean exit of serialdump when hitting Ctrl-C
Ctrl-C is the best way to close serialdump after using make login.
With a clean exit it will signal to make that the make run was successful.
2016-09-20 14:18:21 +02:00
Yannic Schröder
9e080e8aa5 Terminate serialdump when serial device disconnects
The running serialdump does not recover from a disconnected device but
runs indefinitely with outputting anything. This makes it quit with a
proper error message.
2016-09-20 14:16:40 +02:00
Yannic Schröder
2974b796d1 Initialize serialdump termios properly
termios i_flags were not initialized and could be set to arbitrary values
this resulted in unpredicted behaviour of the output like additional
newlines
2016-09-20 14:14:14 +02:00
Yasuyuki Tanaka
6d51c5f58e Reimplement Rtimer of Cooja mote as a microsecond resolution timer 2016-09-06 15:14:10 +02:00
Yasuyuki Tanaka
33e86042e5 Support RADIO_PARAM_LAST_PACKET_TIMESTAMP with get_object() 2016-09-06 15:14:10 +02:00
Yasuyuki Tanaka
ca715fdd6b Use appropriate types for "value" of setInt{16,32,64}ValueOf() 2016-09-06 15:14:10 +02:00
Antonio Lignan
23eb3756c0 Zoul: added firefly to motelist targets 2016-08-12 13:21:09 +02:00
Oliver Schmidt
98a795b967 Merge pull request #1730 from groessler/something_to_pull
Some 6502 target changes
2016-07-06 09:17:39 +02:00
Christian Groessler
4373aecec2 Tag non-file goals as ".PHONY" 2016-07-05 00:47:52 +02:00
Antonio Lignan
bc8b6cd8ed Updated cc2538-bsl to version 2.1 (c6100a7) 2016-06-24 22:10:39 +02:00
Christian Groessler
c26085ec8c Some 6502 target changes
- platform/atarixl/Makefile.atarixl: put two more objects into high memory
- platform/atarixl/contiki-conf.h: define WWW_CONF_WGET_EXEC
- tools/6502/Makefile: add 'clean' target; remove unused CONTIKI define
2016-06-17 16:42:50 +02:00
Fredrik Österlind
0313a429e2 Merge pull request #1575 from atiselsts/cooja_bit_errors
Cooja: add Msp802154BitErrorRadio interface
2016-06-06 11:39:45 +02:00
Fredrik Österlind
5f7e77b3f9 Merge pull request #1307 from cmorty/pull/uninitmotes
Cooja: Make sure motes are always removed from the list of unintialized motes
2016-06-06 10:55:29 +02:00
Oliver Schmidt
0151a7c27e Merge pull request #1706 from oliverschmidt/master
Make use of new cl65 option --print-target-path.
2016-06-03 15:13:08 +02:00
Oliver Schmidt
ae0c5f0dd0 Make use of new cl65 option --print-target-path.
The new cl65 option --print-target-path allows to get rid of CC65_HOME altogether.
2016-06-03 13:30:25 +02:00
Jens Dede
cd7885ae76 do not use setBaudrate 2016-05-02 18:48:16 +02:00
Joakim Eriksson
19120788c0 made a text-based version of the MessageList for headless execution 2016-04-27 19:32:14 +02:00
Nicolas Tsiftes
204dcb9bbc Merge pull request #1332 from tsparber/collect-view-add-osx
collect-view gui: Add support for OS X serialdump and motelist
2016-04-20 11:57:12 +02:00
Atis Elsts
c7c3ef3b9c Cooja: add Msp802154BitErrorRadio interface
The interface more accurately models bit errors due to signal fading as observed in IEEE 802.15.4-compatible radios, such as CC2420 and CC2520.
2016-03-31 13:41:16 +03:00
Yasuyuki Tanaka
15d30b1125 Make PcapExporter record timestamps with preserving packet intervals 2016-03-30 18:26:20 +02:00
Rémy Léone
60acf7de98 fix SerialSocketServer when run without GUI 2016-03-16 18:48:09 +01:00
Simon Duquennoy
dea04c67d7 Change the default IPv6 prefix from aaaa::/64 to fd00::/64 2016-03-07 17:47:44 +01:00
Simon Duquennoy
c7bb3b7b9f Merge pull request #1309 from iot-lab/tunslip_tun_conflict
Fix default tun/tap issue with multiple tunslip6
2016-03-02 09:53:00 +01:00
Jelmer Tiete
d7ee563023 Updates cc2538-bsl to 4340542, main changes are fix for contiki-os/contiki#1533 and an added option to invert the RTS and DTR lines when auto starting the bootloader 2016-02-29 13:48:24 +01:00
George Oikonomou
707353f71b Remove Sensinode platform, cpu, example and tools files
This is part of a set of commits that will obsolete the Sensinode platform
2016-01-10 15:01:58 +00:00
Joakim Eriksson
e4744d1e59 fixed make login for Zoul on MAC 2015-12-19 10:28:30 +01:00
Tommy Sparber
1eb1f88aa4 collect-view gui: Add support for OS X serialdump and motelist
Select the tools for macos when checking for motes or opening a
serial dump connection on OS X.
2015-12-02 14:37:36 +11:00
Antonio Lignan
27fd1a5eb8 Updated RE-Mote revision A support and cleaning up Zolertia platforms 2015-11-24 21:15:33 +01:00
Jelmer Tiete
6a40a4b749 Updated cc2538-bsl submodule to 6185d8b, small bugfix 2015-11-23 11:09:06 -08:00
Jelmer Tiete
80e29ad6a0 Pulled in cc2538-bsl submodule v2.0 (f1f070d) 2015-11-23 11:07:19 -08:00
Nicolas Tsiftes
139f427458 Merge pull request #1337 from tsparber/pr-ccittcrc-crlf
CCITT_CRC.java Change line endings from CRLF to LF
2015-11-02 14:00:51 +01:00
Nicolas Tsiftes
2e07e1fc48 Merge pull request #1329 from tsparber/serialdump-fix-warnings
Fix serialdump.c warnings (clang)
2015-11-02 13:59:21 +01:00
Oliver Schmidt
1639b712bb Removed CC_FASTCALL.
CC_FASTCALL was introduced many years ago for the cc65 tool chain. It was never used for another tool chain. With a798b1d648 the cc65 tool chain doesn't need CC_FASTCALL anymore.
2015-11-01 18:10:17 +01:00
Oliver Schmidt
8082ddac41 Adjusted tests to recent changes.
The email and ftp programs aren't relevant anymore so support for them was removed from the cc65 builds. The explicit 80 column programs were added. The 80 colum web browser and Telnet server are built for all cc65 platforms as they are the largest and as such show best code increase issues.
2015-10-31 12:36:37 +01:00
Oliver Schmidt
5443c740e9 Added 80 column IRC client / web browser for the C64.
Recently support for 80 column CONIO based on 320x200 graphics was added to the cc65 C library for the C64. This change leverages this for the IRC client and the web browser. Because not everybody prefers this 'soft80' display with its small 4x8 charbox the 40 column programs are still available as before (with the new programs called 'irc80' and 'webbrowser80').
2015-10-30 16:48:00 +01:00
Oliver Schmidt
fb5d0b7ef0 Made 80 column display a cc65 application attribute.
So far 80 column display was an attribute of a cc65 platform. Now each cc65 application can ask for 80 column display by defining WITH_80COL. Of course this is ignored by platforms incapable of 80 column display.

I see three types of application:

* Applications not benefitting from 80 column at all and in fact looking better with 40 column display. These are now using 40 column display. Examples: ethconfig, ipconfig

* Applications taking advantage of 80 column display if it is available without drawbacks. These stay as they were. Examples: Telnet server, web server, wget

* Applications needing 80 column display so urgently that it is likely desirable even if the display becomes harder to read. These come now in both flavors allowing the user to choose. Examples: IRC, web browser

Note: This change doesn't actually introduce any 80 column display with drawbacks. This if left to a subsequent change.
2015-10-30 12:42:58 +01:00
Tommy Sparber
d817540f19 CCITT_CRC.java Change line endings from CRLF to LF
and remove trailing whitespaces.
2015-10-29 22:54:12 +11:00
Tommy Sparber
64c66efd7f Fix serialdump.c warnings (clang)
Using clang (on osx) yields to some warnings
(conversion between signed/unsigned, unused variable)
which gcc would only produce when used with -Wall.
This commit fixes those.
2015-10-28 17:46:59 +11:00
Simon Duquennoy
0e31bb12ea Moved generic baudrate defines and selection code to a new module tools/tools-utils.[ch] 2015-10-23 10:54:58 +02:00
Simon Duquennoy
88118482a8 Added more baudrates, added missing defs for MacOS 2015-10-23 10:54:57 +02:00
Simon Duquennoy
55d81ddd3a tunslip6: support MTU configuration, XON/XOFF flow control, and baudrates up
to 1000000 mbps
2015-10-23 10:54:57 +02:00
Simon Duquennoy
9171ba17fc Merge pull request #1304 from simonduq/pr/fix-tunslip6
Fix tunslip6
2015-10-23 09:37:01 +02:00
Rémy Léone
f2440235b5 Fix CSC & XML export to match .gitattributes 2015-10-22 16:05:40 +02:00
Oliver Schmidt
61a5d234eb Merge pull request #1316 from oliverschmidt/master
Added ZIP file creation to retro distro Makefile.
2015-10-21 11:24:15 +02:00
Oliver Schmidt
4db4b7fcf2 Added ZIP file creation to retro distro Makefile.
The ZIP includes a comment containing the Git SHA of the code built.
2015-10-20 18:18:35 +02:00
Valentin Sawadski
b0c7dabf4c Removes duplicate of uip_is_addr_linklocal
A simple search and replace of `uip_is_addr_link_local` to ensure the more
commonly used `uip_is_addr_linklocal` is used consistently.
2015-10-20 11:18:46 +02:00
Gaëtan Harter
e5c7437e17 Fix default tun/tap issue with multiple tunslip6
When running multiple tunslip6 instances, it collides with tun0 being already
used (cannot open file).
However, system default is already to use "tun0" and "tap0".

By putting the default empty string as name, system automatically increment and
selects a free interface, "tun0", "tun1".
2015-10-19 17:52:23 +02:00
Simon Duquennoy
10bd49a71a Merge pull request #756 from sieben/dos2unix
dos2unix fix
2015-10-18 20:26:07 +02:00
Moritz 'Morty' Strübe
e544e4c5b0 Cooja: Make sure motes are always removed from the list of unintialized motes 2015-10-15 10:17:07 +02:00
Moritz 'Morty' Strübe
f17fc20fe7 Fix SafeRandom logic 2015-10-15 10:09:57 +02:00
Moritz 'Morty' Strübe
6f86e0bd92 Typos 2015-10-15 10:09:41 +02:00
Simon Duquennoy
a9a46b29cc tunslip6: disable IP address inquiry by default. Document -I flag 2015-10-13 09:54:06 +02:00
Simon Duquennoy
30f69b0852 Revert "tunslip6: make printing of sensible strings from mote more reliable"
This reverts commit 6608b62b01.
2015-10-13 09:35:25 +02:00
Simon Duquennoy
e6978aba4e Updating mspsim submodule to latest 2015-09-30 21:47:14 +02:00
Simon Duquennoy
2398b1c287 Merge pull request #676 from mcr/mcr_tunslip1
some additions to tunslip6 to make it a bit easier to diagnose problems with it
2015-09-28 13:19:26 +02:00
Simon Duquennoy
f9537b6355 Merge pull request #1219 from simonduq/jn516x-port
NXP JN516x Platform
2015-09-25 12:09:52 +02:00
Simon Duquennoy
11f9b780c8 Added tools for NXP JN516x 2015-09-23 14:38:40 +02:00
Fredrik Österlind
88f8d25070 Merge pull request #1122 from cetic/pr-always-add-crc
Add CRC to packets send by CoojaMote
2015-09-23 09:10:44 +02:00
Fredrik Österlind
e731848624 Merge pull request #1120 from cetic/pr-fix-cooja-packet-analyzer
Cooja: Clone packet data before modifying it in packet analyser
2015-09-23 09:08:08 +02:00
Lars Schmertmann
46ffc509c1 Added App/Tool/Example for usage of additional flash on econotag/mc1322x 2015-09-14 20:43:12 +02:00
Mattias Buelens
72aac552ef Cooja: Track CFS file size
Previously, the Cooja mote assumed that its file was always initially empty (file.endptr == 0). Therefore, a file uploaded to a mote's CFS could never be read by the mote, as the mote would prevent reads from going past the EOF (indicated by endptr).

By tracking the file size and making it accessible to Cooja, the correct size of the uploaded file can be reported to the mote and allow it to read the uploaded file.
2015-09-09 23:06:09 +02:00
Rémy Léone
7a5071dd30 Adding a gitattributes and correcting line-endings
https://help.github.com/articles/dealing-with-line-endings/
2015-09-07 15:40:02 +02:00
Fredrik Österlind
dde83500c9 Merge pull request #1056 from tim-ist/packet_sync
[Cooja/cc2420] Check the frame preamble and MPDU length before parsing an outgoing packet
2015-09-07 14:36:15 +02:00
Fredrik Österlind
650de13ad8 Merge pull request #822 from cmorty/pull/cooja_saferandom
Make Random simulation thread safe
2015-09-01 11:13:23 +02:00