Commit Graph

12322 Commits

Author SHA1 Message Date
Nicolas Tsiftes
7e273ff48c Removed servreg-hack. 2017-06-16 15:37:14 +02:00
Simon Duquennoy
d61cb46e59 Removing contki-version.h; now only relying on Makefile.include 2017-05-18 12:57:46 +02:00
Simon Duquennoy
d51a9a0811 Making apps makefile optional. Removing shell. 2017-05-18 11:42:06 +02:00
Simon Duquennoy
2928e3e440 Remove cooja-ip64 compiler warnings 2017-05-18 10:23:28 +02:00
Simon Duquennoy
ea09903d67 Move llsec802154.h to core/net/mac 2017-05-18 09:56:57 +02:00
Simon Duquennoy
dd4ea6d412 Move zoul examples one level up 2017-05-18 09:56:47 +02:00
Simon Duquennoy
78e424200b http-socket as an app 2017-05-18 09:26:44 +02:00
Simon Duquennoy
f79aa2174e All MAC layers as distinct modules 2017-05-17 22:00:16 +02:00
Simon Duquennoy
880e69f770 Merging csma and nullrdc 2017-05-17 21:50:33 +02:00
Simon Duquennoy
b81e039e34 Added missing include 2017-05-17 15:38:51 +02:00
Simon Duquennoy
6366ad162e Fix makefiles for native-border-router and sensniff 2017-05-17 15:30:36 +02:00
Simon Duquennoy
2018c18130 Removing unused features of nullrdc 2017-05-17 15:30:17 +02:00
Simon Duquennoy
d1641530dd Merge branch 'wip/platform-cleanup' into wip/mac-rdc
Conflicts:
	drivers/dev/cc2520/cc2520.c
	drivers/platform/wismote/Makefile.wismote
	drivers/platform/wismote/contiki-conf.h
	drivers/platform/wismote/contiki-wismote-main.c
	drivers/platform/z1/Makefile.z1
	drivers/platform/z1/contiki-conf.h
	drivers/platform/z1/contiki-z1-main.c
	examples/ipso-objects/cooja-example-ipso-objects.csc
	examples/rssi-scanner/Makefile
2017-05-17 15:13:16 +02:00
Simon Duquennoy
aa1191d8f0 Remove RDC layer 2017-05-17 15:09:19 +02:00
Simon Duquennoy
bd6f26963a Fix cc2538-common example makefile 2017-05-17 15:09:07 +02:00
Simon Duquennoy
95323b9ce7 Remove channel_check_interval 2017-05-17 14:34:29 +02:00
Simon Duquennoy
682e8f42b9 nullmac: now a MAC that does nothing 2017-05-17 14:27:12 +02:00
Simon Duquennoy
c3559a6df3 slip-radio: use CSMA instead of nullmac 2017-05-17 14:26:53 +02:00
Simon Duquennoy
5a04f1969e Remove explicit configuration of nullrdc as it is the new default 2017-05-17 14:19:14 +02:00
Simon Duquennoy
8cc5e082ac Removing more refs to old platforms 2017-05-17 13:56:30 +02:00
Simon Duquennoy
802e498380 Removed refs to econotag and micaz 2017-05-17 13:49:51 +02:00
Simon Duquennoy
766c0e21dd Removing platform z1 2017-05-17 13:48:01 +02:00
Simon Duquennoy
e7088ec6c4 Removing platform wismote 2017-05-17 13:37:27 +02:00
Simon Duquennoy
a346959ba4 Removing unused framer 2017-05-16 22:23:05 +02:00
Simon Duquennoy
35a9984122 Removing the need for nullrdc-noframer 2017-05-16 22:12:40 +02:00
Simon Duquennoy
e1f8a1e0db Cleanup cooja netstack config 2017-05-16 22:12:38 +02:00
Simon Duquennoy
e8efe98c71 Use nullmac less 2017-05-16 22:12:36 +02:00
Simon Duquennoy
3e07d4a060 Netstack defaults 2017-05-16 22:12:34 +02:00
Simon Duquennoy
9d10d6ba1f Remove netstack-conf-example.h 2017-05-16 22:12:32 +02:00
Simon Duquennoy
8a988396d7 New default: CSMA over 802.15.4 2017-05-16 22:12:29 +02:00
Simon Duquennoy
90361f2719 Remove example that uses deprecated MAC layers 2017-05-16 22:12:26 +02:00
Simon Duquennoy
a980593bd6 Added framer sub-directory to core/net/mac 2017-05-16 21:05:21 +02:00
Simon Duquennoy
3eefb4e10f Merge Travis sub-tests for faster check time 2017-05-16 20:55:13 +02:00
Simon Duquennoy
ccbb55de2e Enable code size optimization by default on most platforms 2017-05-16 17:47:59 +02:00
Simon Duquennoy
51beaee1b5 Re-arrange examples, in particular, move platform-specific examples to examples/platform-specific 2017-05-16 17:47:57 +02:00
Simon Duquennoy
85477e0243 Disable large network test (temporarily). Re-arrange RPL tests. 2017-05-16 16:12:59 +02:00
Simon Duquennoy
b5f501c59e Remove outdated README files, link to wiki instead 2017-05-16 16:06:13 +02:00
Simon Duquennoy
ff29a4a22b Move top-level directory lib to core 2017-05-16 15:20:35 +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
16611693e3 Cleanup Travis configuration file 2017-05-16 08:59:50 +02:00
Simon Duquennoy
edb4bb092c Remove Travis icon from readme: not available as a private repository 2017-05-16 08:59:45 +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
Peter Sjödin
8a384685b0 Untabify mqtt.c 2017-05-13 15:58:05 +02:00
Robert Olsson
209fcd1c0c Whitespace change to force new travis-check.
modified:   apps/mqtt/mqtt.h
2017-05-13 15:58:03 +02:00
Peter
b2cfb727ed Several changes to fix bugs and harden mqtt code.
1. The PT_MQTT_WAIT_SEND() macro has several issues:

- It does not check the return value from process_post(), which
  sometimes returns an error code. See next issue.

- Each time the macro is called, is posts an event to itself. The idea
seems to be that the event should be absorbed by the macro itself, so
when the macro terminates there is NOT a net growth of the event
queue. This does not work.  The reason is that the
PROCESS_WAIT_EVENT() sometimes absorbs a broadcast event instead of
its own event, and then the number of events in the event queue
increases. This leads to event explosions and overflow in the event
queue.

- The macro cannot call PT_EXIT(). This will expand to a return
statement, causing a return from the function calling the macro
(mqtt_process), rather then exiting the protothread (which was
probably the intention). Protothreads have lexical scope...

Fixes: 1) Check return value from process_post() 2) Loop until the
event posted to itself is absorbed (rather than just absorbing the
next event) 3) Replace PT_EXIT() with PT_INIT() (doesn't really make a
difference, could probably just be removed).

2. Change order of the checks in the protothread-calling loops in
mqtt_process().  Reason: When a protothread has been cleared by
PT_MQTT_WAIT_SEND(), it will not return a value, so checking against
PT_EXITED does not make sense.

3. PT_MQTT_WRITE_BYTES() should initialize conn->out_write_pos to 0.
When PT_MQTT_WRITE_BYTES() does not finish (due to TCP disconnect for
instance), it may leave conn->out_write_pos with a non-zero
value. Next time PT_MQTT_WRITE_BYTES() is called, it will take data
from the wrong place.

4. Put MQTT_CONN_STATE_ABORT_IMMEDIATE before
MQTT_CONN_STATE_NOT_CONNECTED in the enum list, so that the check
if(conn->state > MQTT_CONN_STATE_NOT_CONNECTED) in mqtt_connect()
fails when in state MQTT_CONN_STATE_ABORT_IMMEDIATE. Otherwise, it
will deadlock and not reattempt connections while in this state.
2017-05-13 15:58:01 +02:00
George Oikonomou
cbde8855cf Use ccaInfo.ccaState to decide whether CCA is complete
This commit changes the logic of `get_cca_info()` in the CC26xx IEEE mode driver. We now use the command's return status bits to determine whether the radio's CCA monitoring function has concluded, instead of drawing conclusions based on RSSI readings.
2017-05-13 15:57:59 +02:00
George Oikonomou
edebc1dd2c Add documentation for the new boards 2017-05-13 15:57:56 +02:00
George Oikonomou
dcd0ad22e7 Add travis tests for CC1350 boards 2017-05-13 15:57:54 +02:00
George Oikonomou
c6523d010d Add support for the CC1350 Launchpad 2017-05-13 15:57:52 +02:00
George Oikonomou
6216b7f8e6 Re-organise sensortag documentation modules
Many of those doxygen blocks are now applicable to both sensortags, with only a couple of them being different between the CC1350 and CC2650 tags
2017-05-13 15:57:50 +02:00