1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

46 Commits

Author SHA1 Message Date
Martine Lenders
29842bb5e4 netdev2: rename to netdev and remove gnrc_netdev
With some minor hand-edits I used the following chain of commands:

```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
        xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
                     -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
                     -e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
        grep "netdev2" | while read dir; do
                new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
                git mv -f "$dir" "$new_dir"
        done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | while read file; do
                new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
                git mv -f "$file" "$new_file"
        done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
        xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
kYc0o
ee741a4296 drivers/xbee: add UL to constants for 8 and 16 bit compatibility 2017-01-20 14:22:19 +01:00
Oleg Hahm
4f4214235b timex: unambiguous time conversion macros 2017-01-19 13:18:08 +01:00
Hauke Petersen
83d206e2b0 drivers/xbee: adapted to netdev2 2017-01-10 11:47:31 +01:00
Francisco Acosta
84d0d61279 Merge pull request #5608 from gebart/pr/xtimer-ticks
xtimer: Allow arbitrary timer frequency, second attempt
2016-11-29 23:00:31 +01:00
Joakim Nohlgård
7c48c891a0 xtimer: Update xtimer usage to match API changes 2016-11-29 20:44:31 +01:00
Hauke Petersen
52fdf4c886 drivers/xbee: use named UART return values 2016-10-28 10:32:00 +02:00
Francesco Ermini
9fa4684203 drivers/xbee: encryption support
add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

modify drivers/xbee/xbee.c

fix white spaces on xbee.c

Update xbee encryption driver

white line at end xbee.h

fix error

fix sc_netif.c

fix rebase master interactive

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

modify drivers/xbee/xbee.c

fix white spaces on xbee.c

Update xbee encryption driver

white line at end xbee.h

fix error

fix rebase  conflict 4

fix same missing in patches changes

fix ascii to hex index parser

fix syntax rules

fix syntax issue 2

add _netopt_strmap NETOPT_ENCRYPTION e NETOPT_ENCRYPTION_KEY

fix trailng white spaces
2016-04-20 17:43:09 +02:00
kYc0o
724276e913 Merge pull request #4734 from Yonezawa-T2/xbee_resp_timeout
xbee: add timeout for AT command response (fixes #4731)
2016-04-19 13:34:21 +02:00
Yonezawa-T2
4042239b04 xbee: add timeout for AT command response (fixes #4731) 2016-04-19 11:19:25 +09:00
Yonezawa-T2
eb7cc30494 xbee: enriched debug output 2016-04-19 11:17:13 +09:00
Yonezawa-T2
15ecee46ee xbee: add packet filtering to emulate non-transitive network.
When debugging multihop wireless network, it is useful to emulate non-transitive
network, that is, node A can communicate with B and B can communicate with C,
but A cannot communicate with C directly.

If `XBEE_DENIED_ADDRESSES`, which is an array of XBee long addresses, is
defined, packets from those addresses are dropped silently.

Example:
CFLAGS += "-DXBEE_DENIED_ADDRESSES={ 0x02, 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0x02, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11 }"
2016-04-19 11:17:13 +09:00
Yonezawa-T2
a6ae7c8091 xbee: fixed that _set_addr destructed given address.
`_set_addr` is called from `xbee_init` with lower bytes of the long address.
If `_set_addr` destructs the given address, the long address is also destructed.
2016-04-19 11:17:13 +09:00
Yonezawa-T2
66dd84eff2 xbee: disable short address when the address length is set to 8
XBee sends short address even for `API_ID_TX_LONG_ADDR` if short address is
enabled. This results in check sum error of ICMPv6 since the IP address is
computed based on long address on the sender side while it is computed based on
short address on the receiver side.
2016-04-19 11:17:13 +09:00
Yonezawa-T2
8481d85ead xbee: fixed RSSI header parsing 2016-04-19 11:17:12 +09:00
Yonezawa-T2
bea5eacea2 xbee: fixed broadcast header
Destination address is at tx_buf[5] and tx_buf[6] rather than tx_buf[4] and
tx_buf[5].

Broadcast header is overridden by following code mistakenly.
2016-04-18 10:21:15 +09:00
Yonezawa-T2
4f864b0ec8 xbee: fixed missing unlocks 2016-04-18 10:20:52 +09:00
Oleg Hahm
a59e100d41 ieee802154: replace literals for lengths by macros 2016-04-04 15:24:47 +02:00
Hauke Petersen
af8f4040ac drivers/xbee: fixed missing newline in DEBUG 2016-04-01 11:48:35 +02:00
Oleg Hahm
59674a679b netdev2: use params parameter for setup 2016-03-28 20:22:20 +02:00
Hauke Petersen
e51d634aeb drivers: adapted gpio_init(_x)() calls 2016-03-17 14:55:30 +01:00
Hauke Petersen
368d96ccd1 drivers/xbee: adapted to changed uart cb type 2016-03-15 11:59:08 +01:00
Yonezawa-T2
9e1bc0d94d xbee: add error handling on initialization 2016-02-05 19:03:38 +09:00
Yonezawa-T2
c36766a31f OSX: fix warnings/errors thrown by clang on OS X
gnrc_ipv6_nc, gnrc_sixlowpan, gnrc_netdev2_eth, gnrc_ipv6, xbee, sixlowpan,
sc_gnrc_6ctx
2015-12-10 11:23:56 +09:00
Oleg Hahm
b978510188 802154 drivers: set first bit to 0 in 16 bit addr
The first bit is required to be 0 for short addresses when used with 6LoWPAN  by https://tools.ietf.org/html/rfc4944#section-12.
2015-11-03 11:06:54 +09:00
Hauke Petersen
82afb07f16 drivers/xbee: adapted to UART interface changes 2015-10-27 14:59:39 +01:00
c9aa280710 drivers: xbee: switch to xtimer 2015-09-16 10:58:51 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00
Martine Lenders
e8d5d5576a gnrc: piggy-back some code style changes 2015-08-07 16:53:05 +02:00
Martine Lenders
9cf5e5fb6a ieee802154: remove ng_ prefix 2015-08-07 14:36:04 +02:00
Hauke Petersen
97a19016cf drivers: adapted to renamed NETOPT header 2015-08-06 15:36:56 +02:00
Martine Lenders
6f56b983f0 gnrc: replace all instances of ng_netconf with ng_netopt 2015-07-28 13:33:12 +02:00
Martine Lenders
3238ccd47e Merge pull request #3159 from authmillenon/ng_net/feat/iid
ng_net: add IID option and simplify upper layers accordingly
2015-07-01 12:47:49 +02:00
Martine Lenders
5ac2c61236 xbee: add NETCONF_OPT_IPV6_IID handler 2015-06-15 12:32:14 +02:00
Hauke Petersen
55e0362814 drivers/xbee: use GPIO_UNDEF instead of GPIO_NUMOF 2015-06-14 16:12:47 +02:00
Hauke Petersen
2cc2d9f740 drivers: adjusted drivers to changed GPIO interface 2015-06-12 19:10:29 +02:00
Martine Lenders
f4392f7661 xbee: make address length configurable
6LoWPAN-ND states [1] that the IPv6 address should be generated from the
EUI-64 of the interface, since it can be assumed as globally unique and
would not require duplicate address detection. Currently the xbee module is
not able to use any other address for short address with IPv6 since
NETCONF_OPT_SRC_LEN always returns 2. This patch fixes that.

[1] https://tools.ietf.org/html/rfc6775#section-5.2
2015-06-11 19:51:35 +02:00
Oleg Hahm
67042901bc xbee: remove superfluous includes 2015-05-18 15:30:25 +02:00
Oleg Hahm
92f4dec8da xbee: use last 2 octets of EUI64 for short address
Dependency two CPUID and hard coded default short address are
superfluous now.
2015-05-18 15:30:25 +02:00
Hauke Petersen
b48561785e drivers/xbee: added getter for addr_len and src_len 2015-04-23 16:30:07 +02:00
Hauke Petersen
7b29947b6d drivers/xbee: optimized addr generation from CPUID 2015-04-23 15:52:54 +02:00
Hauke Petersen
727ddb9dc4 drivers/xbee: misc fixes to xbee driver
- fixed sending of with long addresses
- corrected type setting of netif hdr pktsnips
2015-04-20 18:13:17 +02:00
Martine Lenders
e4deb1e50e xbee: add maximum packet size option 2015-04-16 18:46:16 +02:00
Hauke Petersen
fa0a887dd5 drivers/xbee: declared private functions as static 2015-04-14 11:49:10 +02:00
Martine Lenders
26e72b594f drivers.xbee: adapt driver for bc/mc flags 2015-04-03 16:05:10 +02:00
Hauke Petersen
8a20f2f401 drivers: added support for Xbee modules 2015-03-24 23:19:29 +01:00